From 4eecffe69c1349209ae7226b98113ead67a4afae Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 4 Sep 2026 18:04:45 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ...t.AuthenticationGenerateWidgetSession.g.cs | 37 + ...IWorkoutsClient.WorkoutsCreateWorkout.g.cs | 16 +- ...utsClient.WorkoutsListPlannedWorkouts.g.cs | 4 +- ...sonConverters.CompletionConditionType.g.cs | 354 +++- ...ters.CompletionConditionTypeVariant12.g.cs | 53 + ...pletionConditionTypeVariant12Nullable.g.cs | 60 + ...ters.CompletionConditionTypeVariant13.g.cs | 53 + ...pletionConditionTypeVariant13Nullable.g.cs | 60 + ...ters.CompletionConditionTypeVariant14.g.cs | 53 + ...pletionConditionTypeVariant14Nullable.g.cs | 60 + ...ters.CompletionConditionTypeVariant15.g.cs | 53 + ...pletionConditionTypeVariant15Nullable.g.cs | 60 + ...ters.CompletionConditionTypeVariant16.g.cs | 53 + ...pletionConditionTypeVariant16Nullable.g.cs | 60 + ...ters.CompletionConditionTypeVariant17.g.cs | 53 + ...pletionConditionTypeVariant17Nullable.g.cs | 60 + ...ra.JsonConverters.PlannedWorkoutSport.g.cs | 162 ++ ...sonConverters.PlannedWorkoutSportEnum.g.cs | 53 + ...rters.PlannedWorkoutSportEnumNullable.g.cs | 60 + ....JsonConverters.WorkoutStepTargetType.g.cs | 464 ++++- ...erters.WorkoutStepTargetTypeVariant12.g.cs | 53 + ...orkoutStepTargetTypeVariant12Nullable.g.cs | 60 + ...erters.WorkoutStepTargetTypeVariant13.g.cs | 53 + ...orkoutStepTargetTypeVariant13Nullable.g.cs | 60 + ...erters.WorkoutStepTargetTypeVariant14.g.cs | 53 + ...orkoutStepTargetTypeVariant14Nullable.g.cs | 60 + ...erters.WorkoutStepTargetTypeVariant15.g.cs | 53 + ...orkoutStepTargetTypeVariant15Nullable.g.cs | 60 + ...erters.WorkoutStepTargetTypeVariant16.g.cs | 53 + ...orkoutStepTargetTypeVariant16Nullable.g.cs | 60 + ...erters.WorkoutStepTargetTypeVariant17.g.cs | 53 + ...orkoutStepTargetTypeVariant17Nullable.g.cs | 60 + ...erters.WorkoutStepTargetTypeVariant18.g.cs | 53 + ...orkoutStepTargetTypeVariant18Nullable.g.cs | 60 + ...erters.WorkoutStepTargetTypeVariant19.g.cs | 53 + ...orkoutStepTargetTypeVariant19Nullable.g.cs | 60 + .../Terra.JsonSerializerContext.g.cs | 781 ++++--- .../Terra.JsonSerializerContextTypes.g.cs | 1806 +++++++++-------- .../Terra.Models.CoercionWarning.Json.g.cs | 141 ++ .../Terra.Models.CoercionWarning.g.cs | 59 + .../Terra.Models.CompletionConditionType.g.cs | 506 ++++- ...dels.CompletionConditionTypeVariant12.g.cs | 45 + ...dels.CompletionConditionTypeVariant13.g.cs | 45 + ...dels.CompletionConditionTypeVariant14.g.cs | 45 + ...dels.CompletionConditionTypeVariant15.g.cs | 45 + ...dels.CompletionConditionTypeVariant16.g.cs | 45 + ...dels.CompletionConditionTypeVariant17.g.cs | 45 + .../Terra.Models.PlannedWorkout.g.cs | 76 +- .../Terra.Models.PlannedWorkoutBody.Json.g.cs | 141 ++ .../Terra.Models.PlannedWorkoutBody.g.cs | 167 ++ .../Terra.Models.PlannedWorkoutDetails2.g.cs | 3 +- ...Terra.Models.PlannedWorkoutSport.Json.g.cs | 141 ++ .../Terra.Models.PlannedWorkoutSport.g.cs | 295 +++ .../Terra.Models.PlannedWorkoutSportEnum.g.cs | 45 + .../Terra.Models.PlannedWorkoutSummary.g.cs | 30 +- ...els.PlannedWorkoutSummaryWorkout.Json.g.cs | 141 ++ ...a.Models.PlannedWorkoutSummaryWorkout.g.cs | 19 + ...rra.Models.PlannedWorkoutWorkout.Json.g.cs | 141 ++ .../Terra.Models.PlannedWorkoutWorkout.g.cs | 19 + .../Terra.Models.WorkoutStepTargetType.g.cs | 672 +++++- ...Models.WorkoutStepTargetTypeVariant12.g.cs | 45 + ...Models.WorkoutStepTargetTypeVariant13.g.cs | 45 + ...Models.WorkoutStepTargetTypeVariant14.g.cs | 45 + ...Models.WorkoutStepTargetTypeVariant15.g.cs | 45 + ...Models.WorkoutStepTargetTypeVariant16.g.cs | 45 + ...Models.WorkoutStepTargetTypeVariant17.g.cs | 45 + ...Models.WorkoutStepTargetTypeVariant18.g.cs | 45 + ...Models.WorkoutStepTargetTypeVariant19.g.cs | 45 + .../Terra.Models.WorkoutTemplate.g.cs | 44 +- ...ra.Models.WorkoutsPlanWorkoutResponse.g.cs | 19 +- ....WorkoutsClient.WorkoutsCreateWorkout.g.cs | 20 +- ...utsClient.WorkoutsListPlannedWorkouts.g.cs | 4 +- .../Generated/autosdk.generated-examples.json | 6 +- src/libs/Terra/openapi.yaml | 342 +++- 74 files changed, 7682 insertions(+), 1298 deletions(-) create mode 100644 src/libs/Terra/Generated/Terra.JsonConverters.CompletionConditionTypeVariant12.g.cs create mode 100644 src/libs/Terra/Generated/Terra.JsonConverters.CompletionConditionTypeVariant12Nullable.g.cs create mode 100644 src/libs/Terra/Generated/Terra.JsonConverters.CompletionConditionTypeVariant13.g.cs create mode 100644 src/libs/Terra/Generated/Terra.JsonConverters.CompletionConditionTypeVariant13Nullable.g.cs create mode 100644 src/libs/Terra/Generated/Terra.JsonConverters.CompletionConditionTypeVariant14.g.cs create mode 100644 src/libs/Terra/Generated/Terra.JsonConverters.CompletionConditionTypeVariant14Nullable.g.cs create mode 100644 src/libs/Terra/Generated/Terra.JsonConverters.CompletionConditionTypeVariant15.g.cs create mode 100644 src/libs/Terra/Generated/Terra.JsonConverters.CompletionConditionTypeVariant15Nullable.g.cs create mode 100644 src/libs/Terra/Generated/Terra.JsonConverters.CompletionConditionTypeVariant16.g.cs create mode 100644 src/libs/Terra/Generated/Terra.JsonConverters.CompletionConditionTypeVariant16Nullable.g.cs create mode 100644 src/libs/Terra/Generated/Terra.JsonConverters.CompletionConditionTypeVariant17.g.cs create mode 100644 src/libs/Terra/Generated/Terra.JsonConverters.CompletionConditionTypeVariant17Nullable.g.cs create mode 100644 src/libs/Terra/Generated/Terra.JsonConverters.PlannedWorkoutSport.g.cs create mode 100644 src/libs/Terra/Generated/Terra.JsonConverters.PlannedWorkoutSportEnum.g.cs create mode 100644 src/libs/Terra/Generated/Terra.JsonConverters.PlannedWorkoutSportEnumNullable.g.cs create mode 100644 src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetTypeVariant12.g.cs create mode 100644 src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetTypeVariant12Nullable.g.cs create mode 100644 src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetTypeVariant13.g.cs create mode 100644 src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetTypeVariant13Nullable.g.cs create mode 100644 src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetTypeVariant14.g.cs create mode 100644 src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetTypeVariant14Nullable.g.cs create mode 100644 src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetTypeVariant15.g.cs create mode 100644 src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetTypeVariant15Nullable.g.cs create mode 100644 src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetTypeVariant16.g.cs create mode 100644 src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetTypeVariant16Nullable.g.cs create mode 100644 src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetTypeVariant17.g.cs create mode 100644 src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetTypeVariant17Nullable.g.cs create mode 100644 src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetTypeVariant18.g.cs create mode 100644 src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetTypeVariant18Nullable.g.cs create mode 100644 src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetTypeVariant19.g.cs create mode 100644 src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetTypeVariant19Nullable.g.cs create mode 100644 src/libs/Terra/Generated/Terra.Models.CoercionWarning.Json.g.cs create mode 100644 src/libs/Terra/Generated/Terra.Models.CoercionWarning.g.cs create mode 100644 src/libs/Terra/Generated/Terra.Models.CompletionConditionTypeVariant12.g.cs create mode 100644 src/libs/Terra/Generated/Terra.Models.CompletionConditionTypeVariant13.g.cs create mode 100644 src/libs/Terra/Generated/Terra.Models.CompletionConditionTypeVariant14.g.cs create mode 100644 src/libs/Terra/Generated/Terra.Models.CompletionConditionTypeVariant15.g.cs create mode 100644 src/libs/Terra/Generated/Terra.Models.CompletionConditionTypeVariant16.g.cs create mode 100644 src/libs/Terra/Generated/Terra.Models.CompletionConditionTypeVariant17.g.cs create mode 100644 src/libs/Terra/Generated/Terra.Models.PlannedWorkoutBody.Json.g.cs create mode 100644 src/libs/Terra/Generated/Terra.Models.PlannedWorkoutBody.g.cs create mode 100644 src/libs/Terra/Generated/Terra.Models.PlannedWorkoutSport.Json.g.cs create mode 100644 src/libs/Terra/Generated/Terra.Models.PlannedWorkoutSport.g.cs create mode 100644 src/libs/Terra/Generated/Terra.Models.PlannedWorkoutSportEnum.g.cs create mode 100644 src/libs/Terra/Generated/Terra.Models.PlannedWorkoutSummaryWorkout.Json.g.cs create mode 100644 src/libs/Terra/Generated/Terra.Models.PlannedWorkoutSummaryWorkout.g.cs create mode 100644 src/libs/Terra/Generated/Terra.Models.PlannedWorkoutWorkout.Json.g.cs create mode 100644 src/libs/Terra/Generated/Terra.Models.PlannedWorkoutWorkout.g.cs create mode 100644 src/libs/Terra/Generated/Terra.Models.WorkoutStepTargetTypeVariant12.g.cs create mode 100644 src/libs/Terra/Generated/Terra.Models.WorkoutStepTargetTypeVariant13.g.cs create mode 100644 src/libs/Terra/Generated/Terra.Models.WorkoutStepTargetTypeVariant14.g.cs create mode 100644 src/libs/Terra/Generated/Terra.Models.WorkoutStepTargetTypeVariant15.g.cs create mode 100644 src/libs/Terra/Generated/Terra.Models.WorkoutStepTargetTypeVariant16.g.cs create mode 100644 src/libs/Terra/Generated/Terra.Models.WorkoutStepTargetTypeVariant17.g.cs create mode 100644 src/libs/Terra/Generated/Terra.Models.WorkoutStepTargetTypeVariant18.g.cs create mode 100644 src/libs/Terra/Generated/Terra.Models.WorkoutStepTargetTypeVariant19.g.cs diff --git a/src/libs/Terra/Generated/Terra.AuthenticationClient.AuthenticationGenerateWidgetSession.g.cs b/src/libs/Terra/Generated/Terra.AuthenticationClient.AuthenticationGenerateWidgetSession.g.cs index 36761ae4..79b20ab0 100644 --- a/src/libs/Terra/Generated/Terra.AuthenticationClient.AuthenticationGenerateWidgetSession.g.cs +++ b/src/libs/Terra/Generated/Terra.AuthenticationClient.AuthenticationGenerateWidgetSession.g.cs @@ -374,6 +374,43 @@ partial void ProcessAuthenticationGenerateWidgetSessionResponseContent( h => h.Key, h => h.Value)); } + // Returned for Terra accounts created after the widget relaunch (2026-09-03) — this endpoint is deprecated for them. Create widget sessions with POST https://access.tryterra.co/api/widget/session instead. The response carries Deprecation and Link (rel="deprecation") headers. + if ((int)__response.StatusCode == 410) + { + string? __content_410 = null; + global::System.Exception? __exception_410 = null; + global::Terra.Problem? __value_410 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_410 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_410 = global::Terra.Problem.FromJson(__content_410, JsonSerializerContext); + } + else + { + __content_410 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_410 = global::Terra.Problem.FromJson(__content_410, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_410 = __ex; + } + + + throw global::Terra.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_410 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_410, + responseBody: __content_410, + responseObject: __value_410, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { diff --git a/src/libs/Terra/Generated/Terra.IWorkoutsClient.WorkoutsCreateWorkout.g.cs b/src/libs/Terra/Generated/Terra.IWorkoutsClient.WorkoutsCreateWorkout.g.cs index b784bc71..cb26869e 100644 --- a/src/libs/Terra/Generated/Terra.IWorkoutsClient.WorkoutsCreateWorkout.g.cs +++ b/src/libs/Terra/Generated/Terra.IWorkoutsClient.WorkoutsCreateWorkout.g.cs @@ -40,9 +40,6 @@ public partial interface IWorkoutsClient /// /// Description of the workout /// - /// - /// Sport a workout template targets. Indoor/outdoor is expressed separately via environment. - /// /// /// /// Pool length in meters, for swim workouts @@ -57,22 +54,33 @@ public partial interface IWorkoutsClient /// /// Estimated calories burned /// + /// + /// Planned training stress score, where the provider or author supplies one. Read-only today: accepted on create but not forwarded to providers. + /// + /// + /// Planned intensity factor, where the provider or author supplies one. Read-only today: accepted on create but not forwarded to providers. + /// /// /// Terra identifier of the stored template. Set by Terra in responses; ignored on create. /// + /// + /// Sport a workout template targets. Indoor/outdoor is expressed separately via environment. + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// global::System.Threading.Tasks.Task WorkoutsCreateWorkoutAsync( string name, - global::Terra.WorkoutSport sport, global::System.Collections.Generic.IList stepBlocks, + global::Terra.WorkoutSport sport, string? description = default, global::Terra.EnvironmentType? environment = default, double? poolLengthMeters = default, double? estimatedDurationSeconds = default, double? estimatedDistanceMeters = default, double? estimatedCalories = default, + double? estimatedTss = default, + double? estimatedIntensityFactor = default, string? workoutId = default, global::Terra.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/Terra/Generated/Terra.IWorkoutsClient.WorkoutsListPlannedWorkouts.g.cs b/src/libs/Terra/Generated/Terra.IWorkoutsClient.WorkoutsListPlannedWorkouts.g.cs index d7e85cb7..86356e07 100644 --- a/src/libs/Terra/Generated/Terra.IWorkoutsClient.WorkoutsListPlannedWorkouts.g.cs +++ b/src/libs/Terra/Generated/Terra.IWorkoutsClient.WorkoutsListPlannedWorkouts.g.cs @@ -6,7 +6,7 @@ public partial interface IWorkoutsClient { /// /// List planned workouts
- /// Returns the user's planned workouts, including workouts created on the provider side (is_external true) where the provider exposes them. External workouts carry their full body (title, description, planned metrics, structured steps) under `details`; they are fetched live from the provider and are not stored by Terra. Note that providers may limit how far ahead planned workouts are visible. + /// Returns the user's planned workouts, including workouts created on the provider side (is_external true) where the provider exposes them. Every item carries its workout body under `template`, in the same shape for Terra-created and external workouts. External workouts are fetched live from the provider and are not stored by Terra; a workout pushed through Terra that the provider echoes back is listed once, as the Terra row. When the provider could not be read, or a template could not be loaded, the response is still 200 with the rows Terra has and carries the `X-Terra-Provider-Data-Truncated: true` header. Note that providers may limit how far ahead planned workouts are visible. ///
/// /// @@ -22,7 +22,7 @@ public partial interface IWorkoutsClient global::System.Threading.CancellationToken cancellationToken = default); /// /// List planned workouts
- /// Returns the user's planned workouts, including workouts created on the provider side (is_external true) where the provider exposes them. External workouts carry their full body (title, description, planned metrics, structured steps) under `details`; they are fetched live from the provider and are not stored by Terra. Note that providers may limit how far ahead planned workouts are visible. + /// Returns the user's planned workouts, including workouts created on the provider side (is_external true) where the provider exposes them. Every item carries its workout body under `template`, in the same shape for Terra-created and external workouts. External workouts are fetched live from the provider and are not stored by Terra; a workout pushed through Terra that the provider echoes back is listed once, as the Terra row. When the provider could not be read, or a template could not be loaded, the response is still 200 with the rows Terra has and carries the `X-Terra-Provider-Data-Truncated: true` header. Note that providers may limit how far ahead planned workouts are visible. ///
/// /// diff --git a/src/libs/Terra/Generated/Terra.JsonConverters.CompletionConditionType.g.cs b/src/libs/Terra/Generated/Terra.JsonConverters.CompletionConditionType.g.cs index 4bd93fa5..891685de 100644 --- a/src/libs/Terra/Generated/Terra.JsonConverters.CompletionConditionType.g.cs +++ b/src/libs/Terra/Generated/Terra.JsonConverters.CompletionConditionType.g.cs @@ -148,6 +148,72 @@ public class CompletionConditionTypeJsonConverter : global::System.Text.Json.Ser } } } + var __score11 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(global::Terra.CompletionConditionTypeVariant12), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score11++; + } + } + } + var __score12 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(global::Terra.CompletionConditionTypeVariant13), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score12++; + } + } + } + var __score13 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(global::Terra.CompletionConditionTypeVariant14), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score13++; + } + } + } + var __score14 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(global::Terra.CompletionConditionTypeVariant15), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score14++; + } + } + } + var __score15 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(global::Terra.CompletionConditionTypeVariant16), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score15++; + } + } + } + var __score16 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(global::Terra.CompletionConditionTypeVariant17), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score16++; + } + } + } var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } @@ -161,6 +227,12 @@ public class CompletionConditionTypeJsonConverter : global::System.Text.Json.Ser if (__score8 > __bestScore) { __bestScore = __score8; __bestIndex = 8; } if (__score9 > __bestScore) { __bestScore = __score9; __bestIndex = 9; } if (__score10 > __bestScore) { __bestScore = __score10; __bestIndex = 10; } + if (__score11 > __bestScore) { __bestScore = __score11; __bestIndex = 11; } + if (__score12 > __bestScore) { __bestScore = __score12; __bestIndex = 12; } + if (__score13 > __bestScore) { __bestScore = __score13; __bestIndex = 13; } + if (__score14 > __bestScore) { __bestScore = __score14; __bestIndex = 14; } + if (__score15 > __bestScore) { __bestScore = __score15; __bestIndex = 15; } + if (__score16 > __bestScore) { __bestScore = __score16; __bestIndex = 16; } global::Terra.CompletionConditionTypeVariant1? completionConditionTypeVariant1 = default; global::Terra.CompletionConditionTypeVariant2? completionConditionTypeVariant2 = default; @@ -173,6 +245,12 @@ public class CompletionConditionTypeJsonConverter : global::System.Text.Json.Ser global::Terra.CompletionConditionTypeVariant9? completionConditionTypeVariant9 = default; global::Terra.CompletionConditionTypeVariant10? completionConditionTypeVariant10 = default; global::Terra.CompletionConditionTypeVariant11? completionConditionTypeVariant11 = default; + global::Terra.CompletionConditionTypeVariant12? completionConditionTypeVariant12 = default; + global::Terra.CompletionConditionTypeVariant13? completionConditionTypeVariant13 = default; + global::Terra.CompletionConditionTypeVariant14? completionConditionTypeVariant14 = default; + global::Terra.CompletionConditionTypeVariant15? completionConditionTypeVariant15 = default; + global::Terra.CompletionConditionTypeVariant16? completionConditionTypeVariant16 = default; + global::Terra.CompletionConditionTypeVariant17? completionConditionTypeVariant17 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -361,9 +439,111 @@ public class CompletionConditionTypeJsonConverter : global::System.Text.Json.Ser { } } + + else if (__bestIndex == 11) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Terra.CompletionConditionTypeVariant12), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Terra.CompletionConditionTypeVariant12).Name}"); + completionConditionTypeVariant12 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + else if (__bestIndex == 12) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Terra.CompletionConditionTypeVariant13), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Terra.CompletionConditionTypeVariant13).Name}"); + completionConditionTypeVariant13 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + else if (__bestIndex == 13) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Terra.CompletionConditionTypeVariant14), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Terra.CompletionConditionTypeVariant14).Name}"); + completionConditionTypeVariant14 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + else if (__bestIndex == 14) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Terra.CompletionConditionTypeVariant15), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Terra.CompletionConditionTypeVariant15).Name}"); + completionConditionTypeVariant15 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + else if (__bestIndex == 15) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Terra.CompletionConditionTypeVariant16), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Terra.CompletionConditionTypeVariant16).Name}"); + completionConditionTypeVariant16 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + else if (__bestIndex == 16) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Terra.CompletionConditionTypeVariant17), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Terra.CompletionConditionTypeVariant17).Name}"); + completionConditionTypeVariant17 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } } - if (completionConditionTypeVariant1 == null && completionConditionTypeVariant2 == null && completionConditionTypeVariant3 == null && completionConditionTypeVariant4 == null && completionConditionTypeVariant5 == null && completionConditionTypeVariant6 == null && completionConditionTypeVariant7 == null && completionConditionTypeVariant8 == null && completionConditionTypeVariant9 == null && completionConditionTypeVariant10 == null && completionConditionTypeVariant11 == null) + if (completionConditionTypeVariant1 == null && completionConditionTypeVariant2 == null && completionConditionTypeVariant3 == null && completionConditionTypeVariant4 == null && completionConditionTypeVariant5 == null && completionConditionTypeVariant6 == null && completionConditionTypeVariant7 == null && completionConditionTypeVariant8 == null && completionConditionTypeVariant9 == null && completionConditionTypeVariant10 == null && completionConditionTypeVariant11 == null && completionConditionTypeVariant12 == null && completionConditionTypeVariant13 == null && completionConditionTypeVariant14 == null && completionConditionTypeVariant15 == null && completionConditionTypeVariant16 == null && completionConditionTypeVariant17 == null) { try { @@ -380,7 +560,7 @@ public class CompletionConditionTypeJsonConverter : global::System.Text.Json.Ser } } - if (completionConditionTypeVariant1 == null && completionConditionTypeVariant2 == null && completionConditionTypeVariant3 == null && completionConditionTypeVariant4 == null && completionConditionTypeVariant5 == null && completionConditionTypeVariant6 == null && completionConditionTypeVariant7 == null && completionConditionTypeVariant8 == null && completionConditionTypeVariant9 == null && completionConditionTypeVariant10 == null && completionConditionTypeVariant11 == null) + if (completionConditionTypeVariant1 == null && completionConditionTypeVariant2 == null && completionConditionTypeVariant3 == null && completionConditionTypeVariant4 == null && completionConditionTypeVariant5 == null && completionConditionTypeVariant6 == null && completionConditionTypeVariant7 == null && completionConditionTypeVariant8 == null && completionConditionTypeVariant9 == null && completionConditionTypeVariant10 == null && completionConditionTypeVariant11 == null && completionConditionTypeVariant12 == null && completionConditionTypeVariant13 == null && completionConditionTypeVariant14 == null && completionConditionTypeVariant15 == null && completionConditionTypeVariant16 == null && completionConditionTypeVariant17 == null) { try { @@ -397,7 +577,7 @@ public class CompletionConditionTypeJsonConverter : global::System.Text.Json.Ser } } - if (completionConditionTypeVariant1 == null && completionConditionTypeVariant2 == null && completionConditionTypeVariant3 == null && completionConditionTypeVariant4 == null && completionConditionTypeVariant5 == null && completionConditionTypeVariant6 == null && completionConditionTypeVariant7 == null && completionConditionTypeVariant8 == null && completionConditionTypeVariant9 == null && completionConditionTypeVariant10 == null && completionConditionTypeVariant11 == null) + if (completionConditionTypeVariant1 == null && completionConditionTypeVariant2 == null && completionConditionTypeVariant3 == null && completionConditionTypeVariant4 == null && completionConditionTypeVariant5 == null && completionConditionTypeVariant6 == null && completionConditionTypeVariant7 == null && completionConditionTypeVariant8 == null && completionConditionTypeVariant9 == null && completionConditionTypeVariant10 == null && completionConditionTypeVariant11 == null && completionConditionTypeVariant12 == null && completionConditionTypeVariant13 == null && completionConditionTypeVariant14 == null && completionConditionTypeVariant15 == null && completionConditionTypeVariant16 == null && completionConditionTypeVariant17 == null) { try { @@ -414,7 +594,7 @@ public class CompletionConditionTypeJsonConverter : global::System.Text.Json.Ser } } - if (completionConditionTypeVariant1 == null && completionConditionTypeVariant2 == null && completionConditionTypeVariant3 == null && completionConditionTypeVariant4 == null && completionConditionTypeVariant5 == null && completionConditionTypeVariant6 == null && completionConditionTypeVariant7 == null && completionConditionTypeVariant8 == null && completionConditionTypeVariant9 == null && completionConditionTypeVariant10 == null && completionConditionTypeVariant11 == null) + if (completionConditionTypeVariant1 == null && completionConditionTypeVariant2 == null && completionConditionTypeVariant3 == null && completionConditionTypeVariant4 == null && completionConditionTypeVariant5 == null && completionConditionTypeVariant6 == null && completionConditionTypeVariant7 == null && completionConditionTypeVariant8 == null && completionConditionTypeVariant9 == null && completionConditionTypeVariant10 == null && completionConditionTypeVariant11 == null && completionConditionTypeVariant12 == null && completionConditionTypeVariant13 == null && completionConditionTypeVariant14 == null && completionConditionTypeVariant15 == null && completionConditionTypeVariant16 == null && completionConditionTypeVariant17 == null) { try { @@ -431,7 +611,7 @@ public class CompletionConditionTypeJsonConverter : global::System.Text.Json.Ser } } - if (completionConditionTypeVariant1 == null && completionConditionTypeVariant2 == null && completionConditionTypeVariant3 == null && completionConditionTypeVariant4 == null && completionConditionTypeVariant5 == null && completionConditionTypeVariant6 == null && completionConditionTypeVariant7 == null && completionConditionTypeVariant8 == null && completionConditionTypeVariant9 == null && completionConditionTypeVariant10 == null && completionConditionTypeVariant11 == null) + if (completionConditionTypeVariant1 == null && completionConditionTypeVariant2 == null && completionConditionTypeVariant3 == null && completionConditionTypeVariant4 == null && completionConditionTypeVariant5 == null && completionConditionTypeVariant6 == null && completionConditionTypeVariant7 == null && completionConditionTypeVariant8 == null && completionConditionTypeVariant9 == null && completionConditionTypeVariant10 == null && completionConditionTypeVariant11 == null && completionConditionTypeVariant12 == null && completionConditionTypeVariant13 == null && completionConditionTypeVariant14 == null && completionConditionTypeVariant15 == null && completionConditionTypeVariant16 == null && completionConditionTypeVariant17 == null) { try { @@ -448,7 +628,7 @@ public class CompletionConditionTypeJsonConverter : global::System.Text.Json.Ser } } - if (completionConditionTypeVariant1 == null && completionConditionTypeVariant2 == null && completionConditionTypeVariant3 == null && completionConditionTypeVariant4 == null && completionConditionTypeVariant5 == null && completionConditionTypeVariant6 == null && completionConditionTypeVariant7 == null && completionConditionTypeVariant8 == null && completionConditionTypeVariant9 == null && completionConditionTypeVariant10 == null && completionConditionTypeVariant11 == null) + if (completionConditionTypeVariant1 == null && completionConditionTypeVariant2 == null && completionConditionTypeVariant3 == null && completionConditionTypeVariant4 == null && completionConditionTypeVariant5 == null && completionConditionTypeVariant6 == null && completionConditionTypeVariant7 == null && completionConditionTypeVariant8 == null && completionConditionTypeVariant9 == null && completionConditionTypeVariant10 == null && completionConditionTypeVariant11 == null && completionConditionTypeVariant12 == null && completionConditionTypeVariant13 == null && completionConditionTypeVariant14 == null && completionConditionTypeVariant15 == null && completionConditionTypeVariant16 == null && completionConditionTypeVariant17 == null) { try { @@ -465,7 +645,7 @@ public class CompletionConditionTypeJsonConverter : global::System.Text.Json.Ser } } - if (completionConditionTypeVariant1 == null && completionConditionTypeVariant2 == null && completionConditionTypeVariant3 == null && completionConditionTypeVariant4 == null && completionConditionTypeVariant5 == null && completionConditionTypeVariant6 == null && completionConditionTypeVariant7 == null && completionConditionTypeVariant8 == null && completionConditionTypeVariant9 == null && completionConditionTypeVariant10 == null && completionConditionTypeVariant11 == null) + if (completionConditionTypeVariant1 == null && completionConditionTypeVariant2 == null && completionConditionTypeVariant3 == null && completionConditionTypeVariant4 == null && completionConditionTypeVariant5 == null && completionConditionTypeVariant6 == null && completionConditionTypeVariant7 == null && completionConditionTypeVariant8 == null && completionConditionTypeVariant9 == null && completionConditionTypeVariant10 == null && completionConditionTypeVariant11 == null && completionConditionTypeVariant12 == null && completionConditionTypeVariant13 == null && completionConditionTypeVariant14 == null && completionConditionTypeVariant15 == null && completionConditionTypeVariant16 == null && completionConditionTypeVariant17 == null) { try { @@ -482,7 +662,7 @@ public class CompletionConditionTypeJsonConverter : global::System.Text.Json.Ser } } - if (completionConditionTypeVariant1 == null && completionConditionTypeVariant2 == null && completionConditionTypeVariant3 == null && completionConditionTypeVariant4 == null && completionConditionTypeVariant5 == null && completionConditionTypeVariant6 == null && completionConditionTypeVariant7 == null && completionConditionTypeVariant8 == null && completionConditionTypeVariant9 == null && completionConditionTypeVariant10 == null && completionConditionTypeVariant11 == null) + if (completionConditionTypeVariant1 == null && completionConditionTypeVariant2 == null && completionConditionTypeVariant3 == null && completionConditionTypeVariant4 == null && completionConditionTypeVariant5 == null && completionConditionTypeVariant6 == null && completionConditionTypeVariant7 == null && completionConditionTypeVariant8 == null && completionConditionTypeVariant9 == null && completionConditionTypeVariant10 == null && completionConditionTypeVariant11 == null && completionConditionTypeVariant12 == null && completionConditionTypeVariant13 == null && completionConditionTypeVariant14 == null && completionConditionTypeVariant15 == null && completionConditionTypeVariant16 == null && completionConditionTypeVariant17 == null) { try { @@ -499,7 +679,7 @@ public class CompletionConditionTypeJsonConverter : global::System.Text.Json.Ser } } - if (completionConditionTypeVariant1 == null && completionConditionTypeVariant2 == null && completionConditionTypeVariant3 == null && completionConditionTypeVariant4 == null && completionConditionTypeVariant5 == null && completionConditionTypeVariant6 == null && completionConditionTypeVariant7 == null && completionConditionTypeVariant8 == null && completionConditionTypeVariant9 == null && completionConditionTypeVariant10 == null && completionConditionTypeVariant11 == null) + if (completionConditionTypeVariant1 == null && completionConditionTypeVariant2 == null && completionConditionTypeVariant3 == null && completionConditionTypeVariant4 == null && completionConditionTypeVariant5 == null && completionConditionTypeVariant6 == null && completionConditionTypeVariant7 == null && completionConditionTypeVariant8 == null && completionConditionTypeVariant9 == null && completionConditionTypeVariant10 == null && completionConditionTypeVariant11 == null && completionConditionTypeVariant12 == null && completionConditionTypeVariant13 == null && completionConditionTypeVariant14 == null && completionConditionTypeVariant15 == null && completionConditionTypeVariant16 == null && completionConditionTypeVariant17 == null) { try { @@ -516,7 +696,7 @@ public class CompletionConditionTypeJsonConverter : global::System.Text.Json.Ser } } - if (completionConditionTypeVariant1 == null && completionConditionTypeVariant2 == null && completionConditionTypeVariant3 == null && completionConditionTypeVariant4 == null && completionConditionTypeVariant5 == null && completionConditionTypeVariant6 == null && completionConditionTypeVariant7 == null && completionConditionTypeVariant8 == null && completionConditionTypeVariant9 == null && completionConditionTypeVariant10 == null && completionConditionTypeVariant11 == null) + if (completionConditionTypeVariant1 == null && completionConditionTypeVariant2 == null && completionConditionTypeVariant3 == null && completionConditionTypeVariant4 == null && completionConditionTypeVariant5 == null && completionConditionTypeVariant6 == null && completionConditionTypeVariant7 == null && completionConditionTypeVariant8 == null && completionConditionTypeVariant9 == null && completionConditionTypeVariant10 == null && completionConditionTypeVariant11 == null && completionConditionTypeVariant12 == null && completionConditionTypeVariant13 == null && completionConditionTypeVariant14 == null && completionConditionTypeVariant15 == null && completionConditionTypeVariant16 == null && completionConditionTypeVariant17 == null) { try { @@ -533,7 +713,7 @@ public class CompletionConditionTypeJsonConverter : global::System.Text.Json.Ser } } - if (completionConditionTypeVariant1 == null && completionConditionTypeVariant2 == null && completionConditionTypeVariant3 == null && completionConditionTypeVariant4 == null && completionConditionTypeVariant5 == null && completionConditionTypeVariant6 == null && completionConditionTypeVariant7 == null && completionConditionTypeVariant8 == null && completionConditionTypeVariant9 == null && completionConditionTypeVariant10 == null && completionConditionTypeVariant11 == null) + if (completionConditionTypeVariant1 == null && completionConditionTypeVariant2 == null && completionConditionTypeVariant3 == null && completionConditionTypeVariant4 == null && completionConditionTypeVariant5 == null && completionConditionTypeVariant6 == null && completionConditionTypeVariant7 == null && completionConditionTypeVariant8 == null && completionConditionTypeVariant9 == null && completionConditionTypeVariant10 == null && completionConditionTypeVariant11 == null && completionConditionTypeVariant12 == null && completionConditionTypeVariant13 == null && completionConditionTypeVariant14 == null && completionConditionTypeVariant15 == null && completionConditionTypeVariant16 == null && completionConditionTypeVariant17 == null) { try { @@ -550,6 +730,108 @@ public class CompletionConditionTypeJsonConverter : global::System.Text.Json.Ser } } + if (completionConditionTypeVariant1 == null && completionConditionTypeVariant2 == null && completionConditionTypeVariant3 == null && completionConditionTypeVariant4 == null && completionConditionTypeVariant5 == null && completionConditionTypeVariant6 == null && completionConditionTypeVariant7 == null && completionConditionTypeVariant8 == null && completionConditionTypeVariant9 == null && completionConditionTypeVariant10 == null && completionConditionTypeVariant11 == null && completionConditionTypeVariant12 == null && completionConditionTypeVariant13 == null && completionConditionTypeVariant14 == null && completionConditionTypeVariant15 == null && completionConditionTypeVariant16 == null && completionConditionTypeVariant17 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Terra.CompletionConditionTypeVariant12), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Terra.CompletionConditionTypeVariant12).Name}"); + completionConditionTypeVariant12 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (completionConditionTypeVariant1 == null && completionConditionTypeVariant2 == null && completionConditionTypeVariant3 == null && completionConditionTypeVariant4 == null && completionConditionTypeVariant5 == null && completionConditionTypeVariant6 == null && completionConditionTypeVariant7 == null && completionConditionTypeVariant8 == null && completionConditionTypeVariant9 == null && completionConditionTypeVariant10 == null && completionConditionTypeVariant11 == null && completionConditionTypeVariant12 == null && completionConditionTypeVariant13 == null && completionConditionTypeVariant14 == null && completionConditionTypeVariant15 == null && completionConditionTypeVariant16 == null && completionConditionTypeVariant17 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Terra.CompletionConditionTypeVariant13), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Terra.CompletionConditionTypeVariant13).Name}"); + completionConditionTypeVariant13 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (completionConditionTypeVariant1 == null && completionConditionTypeVariant2 == null && completionConditionTypeVariant3 == null && completionConditionTypeVariant4 == null && completionConditionTypeVariant5 == null && completionConditionTypeVariant6 == null && completionConditionTypeVariant7 == null && completionConditionTypeVariant8 == null && completionConditionTypeVariant9 == null && completionConditionTypeVariant10 == null && completionConditionTypeVariant11 == null && completionConditionTypeVariant12 == null && completionConditionTypeVariant13 == null && completionConditionTypeVariant14 == null && completionConditionTypeVariant15 == null && completionConditionTypeVariant16 == null && completionConditionTypeVariant17 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Terra.CompletionConditionTypeVariant14), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Terra.CompletionConditionTypeVariant14).Name}"); + completionConditionTypeVariant14 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (completionConditionTypeVariant1 == null && completionConditionTypeVariant2 == null && completionConditionTypeVariant3 == null && completionConditionTypeVariant4 == null && completionConditionTypeVariant5 == null && completionConditionTypeVariant6 == null && completionConditionTypeVariant7 == null && completionConditionTypeVariant8 == null && completionConditionTypeVariant9 == null && completionConditionTypeVariant10 == null && completionConditionTypeVariant11 == null && completionConditionTypeVariant12 == null && completionConditionTypeVariant13 == null && completionConditionTypeVariant14 == null && completionConditionTypeVariant15 == null && completionConditionTypeVariant16 == null && completionConditionTypeVariant17 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Terra.CompletionConditionTypeVariant15), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Terra.CompletionConditionTypeVariant15).Name}"); + completionConditionTypeVariant15 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (completionConditionTypeVariant1 == null && completionConditionTypeVariant2 == null && completionConditionTypeVariant3 == null && completionConditionTypeVariant4 == null && completionConditionTypeVariant5 == null && completionConditionTypeVariant6 == null && completionConditionTypeVariant7 == null && completionConditionTypeVariant8 == null && completionConditionTypeVariant9 == null && completionConditionTypeVariant10 == null && completionConditionTypeVariant11 == null && completionConditionTypeVariant12 == null && completionConditionTypeVariant13 == null && completionConditionTypeVariant14 == null && completionConditionTypeVariant15 == null && completionConditionTypeVariant16 == null && completionConditionTypeVariant17 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Terra.CompletionConditionTypeVariant16), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Terra.CompletionConditionTypeVariant16).Name}"); + completionConditionTypeVariant16 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (completionConditionTypeVariant1 == null && completionConditionTypeVariant2 == null && completionConditionTypeVariant3 == null && completionConditionTypeVariant4 == null && completionConditionTypeVariant5 == null && completionConditionTypeVariant6 == null && completionConditionTypeVariant7 == null && completionConditionTypeVariant8 == null && completionConditionTypeVariant9 == null && completionConditionTypeVariant10 == null && completionConditionTypeVariant11 == null && completionConditionTypeVariant12 == null && completionConditionTypeVariant13 == null && completionConditionTypeVariant14 == null && completionConditionTypeVariant15 == null && completionConditionTypeVariant16 == null && completionConditionTypeVariant17 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Terra.CompletionConditionTypeVariant17), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Terra.CompletionConditionTypeVariant17).Name}"); + completionConditionTypeVariant17 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + var __value = new global::Terra.CompletionConditionType( completionConditionTypeVariant1, @@ -571,7 +853,19 @@ public class CompletionConditionTypeJsonConverter : global::System.Text.Json.Ser completionConditionTypeVariant10, - completionConditionTypeVariant11 + completionConditionTypeVariant11, + + completionConditionTypeVariant12, + + completionConditionTypeVariant13, + + completionConditionTypeVariant14, + + completionConditionTypeVariant15, + + completionConditionTypeVariant16, + + completionConditionTypeVariant17 ); return __value; @@ -652,6 +946,42 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Terra.CompletionConditionTypeVariant11).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.CompletionConditionTypeVariant11!.Value, typeInfo); } + else if (value.IsCompletionConditionTypeVariant12) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Terra.CompletionConditionTypeVariant12), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Terra.CompletionConditionTypeVariant12).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CompletionConditionTypeVariant12!.Value, typeInfo); + } + else if (value.IsCompletionConditionTypeVariant13) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Terra.CompletionConditionTypeVariant13), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Terra.CompletionConditionTypeVariant13).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CompletionConditionTypeVariant13!.Value, typeInfo); + } + else if (value.IsCompletionConditionTypeVariant14) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Terra.CompletionConditionTypeVariant14), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Terra.CompletionConditionTypeVariant14).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CompletionConditionTypeVariant14!.Value, typeInfo); + } + else if (value.IsCompletionConditionTypeVariant15) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Terra.CompletionConditionTypeVariant15), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Terra.CompletionConditionTypeVariant15).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CompletionConditionTypeVariant15!.Value, typeInfo); + } + else if (value.IsCompletionConditionTypeVariant16) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Terra.CompletionConditionTypeVariant16), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Terra.CompletionConditionTypeVariant16).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CompletionConditionTypeVariant16!.Value, typeInfo); + } + else if (value.IsCompletionConditionTypeVariant17) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Terra.CompletionConditionTypeVariant17), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Terra.CompletionConditionTypeVariant17).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CompletionConditionTypeVariant17!.Value, typeInfo); + } } } } \ No newline at end of file diff --git a/src/libs/Terra/Generated/Terra.JsonConverters.CompletionConditionTypeVariant12.g.cs b/src/libs/Terra/Generated/Terra.JsonConverters.CompletionConditionTypeVariant12.g.cs new file mode 100644 index 00000000..7784e5f0 --- /dev/null +++ b/src/libs/Terra/Generated/Terra.JsonConverters.CompletionConditionTypeVariant12.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Terra.JsonConverters +{ + /// + public sealed class CompletionConditionTypeVariant12JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Terra.CompletionConditionTypeVariant12 Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Terra.CompletionConditionTypeVariant12Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Terra.CompletionConditionTypeVariant12)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Terra.CompletionConditionTypeVariant12); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Terra.CompletionConditionTypeVariant12 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Terra.CompletionConditionTypeVariant12Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Terra/Generated/Terra.JsonConverters.CompletionConditionTypeVariant12Nullable.g.cs b/src/libs/Terra/Generated/Terra.JsonConverters.CompletionConditionTypeVariant12Nullable.g.cs new file mode 100644 index 00000000..251809f5 --- /dev/null +++ b/src/libs/Terra/Generated/Terra.JsonConverters.CompletionConditionTypeVariant12Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Terra.JsonConverters +{ + /// + public sealed class CompletionConditionTypeVariant12NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Terra.CompletionConditionTypeVariant12? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Terra.CompletionConditionTypeVariant12Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Terra.CompletionConditionTypeVariant12)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Terra.CompletionConditionTypeVariant12?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Terra.CompletionConditionTypeVariant12? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Terra.CompletionConditionTypeVariant12Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Terra/Generated/Terra.JsonConverters.CompletionConditionTypeVariant13.g.cs b/src/libs/Terra/Generated/Terra.JsonConverters.CompletionConditionTypeVariant13.g.cs new file mode 100644 index 00000000..f88c7d54 --- /dev/null +++ b/src/libs/Terra/Generated/Terra.JsonConverters.CompletionConditionTypeVariant13.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Terra.JsonConverters +{ + /// + public sealed class CompletionConditionTypeVariant13JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Terra.CompletionConditionTypeVariant13 Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Terra.CompletionConditionTypeVariant13Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Terra.CompletionConditionTypeVariant13)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Terra.CompletionConditionTypeVariant13); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Terra.CompletionConditionTypeVariant13 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Terra.CompletionConditionTypeVariant13Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Terra/Generated/Terra.JsonConverters.CompletionConditionTypeVariant13Nullable.g.cs b/src/libs/Terra/Generated/Terra.JsonConverters.CompletionConditionTypeVariant13Nullable.g.cs new file mode 100644 index 00000000..7044eeac --- /dev/null +++ b/src/libs/Terra/Generated/Terra.JsonConverters.CompletionConditionTypeVariant13Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Terra.JsonConverters +{ + /// + public sealed class CompletionConditionTypeVariant13NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Terra.CompletionConditionTypeVariant13? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Terra.CompletionConditionTypeVariant13Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Terra.CompletionConditionTypeVariant13)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Terra.CompletionConditionTypeVariant13?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Terra.CompletionConditionTypeVariant13? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Terra.CompletionConditionTypeVariant13Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Terra/Generated/Terra.JsonConverters.CompletionConditionTypeVariant14.g.cs b/src/libs/Terra/Generated/Terra.JsonConverters.CompletionConditionTypeVariant14.g.cs new file mode 100644 index 00000000..7922d2b7 --- /dev/null +++ b/src/libs/Terra/Generated/Terra.JsonConverters.CompletionConditionTypeVariant14.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Terra.JsonConverters +{ + /// + public sealed class CompletionConditionTypeVariant14JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Terra.CompletionConditionTypeVariant14 Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Terra.CompletionConditionTypeVariant14Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Terra.CompletionConditionTypeVariant14)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Terra.CompletionConditionTypeVariant14); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Terra.CompletionConditionTypeVariant14 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Terra.CompletionConditionTypeVariant14Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Terra/Generated/Terra.JsonConverters.CompletionConditionTypeVariant14Nullable.g.cs b/src/libs/Terra/Generated/Terra.JsonConverters.CompletionConditionTypeVariant14Nullable.g.cs new file mode 100644 index 00000000..31216967 --- /dev/null +++ b/src/libs/Terra/Generated/Terra.JsonConverters.CompletionConditionTypeVariant14Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Terra.JsonConverters +{ + /// + public sealed class CompletionConditionTypeVariant14NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Terra.CompletionConditionTypeVariant14? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Terra.CompletionConditionTypeVariant14Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Terra.CompletionConditionTypeVariant14)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Terra.CompletionConditionTypeVariant14?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Terra.CompletionConditionTypeVariant14? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Terra.CompletionConditionTypeVariant14Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Terra/Generated/Terra.JsonConverters.CompletionConditionTypeVariant15.g.cs b/src/libs/Terra/Generated/Terra.JsonConverters.CompletionConditionTypeVariant15.g.cs new file mode 100644 index 00000000..65323ec9 --- /dev/null +++ b/src/libs/Terra/Generated/Terra.JsonConverters.CompletionConditionTypeVariant15.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Terra.JsonConverters +{ + /// + public sealed class CompletionConditionTypeVariant15JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Terra.CompletionConditionTypeVariant15 Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Terra.CompletionConditionTypeVariant15Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Terra.CompletionConditionTypeVariant15)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Terra.CompletionConditionTypeVariant15); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Terra.CompletionConditionTypeVariant15 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Terra.CompletionConditionTypeVariant15Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Terra/Generated/Terra.JsonConverters.CompletionConditionTypeVariant15Nullable.g.cs b/src/libs/Terra/Generated/Terra.JsonConverters.CompletionConditionTypeVariant15Nullable.g.cs new file mode 100644 index 00000000..ecfd0bd1 --- /dev/null +++ b/src/libs/Terra/Generated/Terra.JsonConverters.CompletionConditionTypeVariant15Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Terra.JsonConverters +{ + /// + public sealed class CompletionConditionTypeVariant15NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Terra.CompletionConditionTypeVariant15? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Terra.CompletionConditionTypeVariant15Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Terra.CompletionConditionTypeVariant15)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Terra.CompletionConditionTypeVariant15?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Terra.CompletionConditionTypeVariant15? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Terra.CompletionConditionTypeVariant15Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Terra/Generated/Terra.JsonConverters.CompletionConditionTypeVariant16.g.cs b/src/libs/Terra/Generated/Terra.JsonConverters.CompletionConditionTypeVariant16.g.cs new file mode 100644 index 00000000..66bcd0aa --- /dev/null +++ b/src/libs/Terra/Generated/Terra.JsonConverters.CompletionConditionTypeVariant16.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Terra.JsonConverters +{ + /// + public sealed class CompletionConditionTypeVariant16JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Terra.CompletionConditionTypeVariant16 Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Terra.CompletionConditionTypeVariant16Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Terra.CompletionConditionTypeVariant16)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Terra.CompletionConditionTypeVariant16); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Terra.CompletionConditionTypeVariant16 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Terra.CompletionConditionTypeVariant16Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Terra/Generated/Terra.JsonConverters.CompletionConditionTypeVariant16Nullable.g.cs b/src/libs/Terra/Generated/Terra.JsonConverters.CompletionConditionTypeVariant16Nullable.g.cs new file mode 100644 index 00000000..5746b6e6 --- /dev/null +++ b/src/libs/Terra/Generated/Terra.JsonConverters.CompletionConditionTypeVariant16Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Terra.JsonConverters +{ + /// + public sealed class CompletionConditionTypeVariant16NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Terra.CompletionConditionTypeVariant16? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Terra.CompletionConditionTypeVariant16Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Terra.CompletionConditionTypeVariant16)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Terra.CompletionConditionTypeVariant16?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Terra.CompletionConditionTypeVariant16? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Terra.CompletionConditionTypeVariant16Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Terra/Generated/Terra.JsonConverters.CompletionConditionTypeVariant17.g.cs b/src/libs/Terra/Generated/Terra.JsonConverters.CompletionConditionTypeVariant17.g.cs new file mode 100644 index 00000000..d6fa2000 --- /dev/null +++ b/src/libs/Terra/Generated/Terra.JsonConverters.CompletionConditionTypeVariant17.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Terra.JsonConverters +{ + /// + public sealed class CompletionConditionTypeVariant17JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Terra.CompletionConditionTypeVariant17 Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Terra.CompletionConditionTypeVariant17Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Terra.CompletionConditionTypeVariant17)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Terra.CompletionConditionTypeVariant17); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Terra.CompletionConditionTypeVariant17 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Terra.CompletionConditionTypeVariant17Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Terra/Generated/Terra.JsonConverters.CompletionConditionTypeVariant17Nullable.g.cs b/src/libs/Terra/Generated/Terra.JsonConverters.CompletionConditionTypeVariant17Nullable.g.cs new file mode 100644 index 00000000..127428e6 --- /dev/null +++ b/src/libs/Terra/Generated/Terra.JsonConverters.CompletionConditionTypeVariant17Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Terra.JsonConverters +{ + /// + public sealed class CompletionConditionTypeVariant17NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Terra.CompletionConditionTypeVariant17? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Terra.CompletionConditionTypeVariant17Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Terra.CompletionConditionTypeVariant17)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Terra.CompletionConditionTypeVariant17?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Terra.CompletionConditionTypeVariant17? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Terra.CompletionConditionTypeVariant17Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Terra/Generated/Terra.JsonConverters.PlannedWorkoutSport.g.cs b/src/libs/Terra/Generated/Terra.JsonConverters.PlannedWorkoutSport.g.cs new file mode 100644 index 00000000..6da2415b --- /dev/null +++ b/src/libs/Terra/Generated/Terra.JsonConverters.PlannedWorkoutSport.g.cs @@ -0,0 +1,162 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace Terra.JsonConverters +{ + /// + public class PlannedWorkoutSportJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Terra.PlannedWorkoutSport Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + + using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); + var __rawJson = __jsonDocument.RootElement.GetRawText(); + var __jsonProps = new global::System.Collections.Generic.HashSet(); + if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) + { + foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) + { + __jsonProps.Add(__jsonProp.Name); + } + } + + var __score0 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(global::Terra.WorkoutSport), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score0++; + } + } + } + var __score1 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(global::Terra.PlannedWorkoutSportEnum), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score1++; + } + } + } + var __bestScore = 0; + var __bestIndex = -1; + if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } + if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + + global::Terra.WorkoutSport? workoutSport = default; + global::Terra.PlannedWorkoutSportEnum? @enum = default; + if (__bestIndex >= 0) + { + if (__bestIndex == 0) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Terra.WorkoutSport), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Terra.WorkoutSport).Name}"); + workoutSport = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + else if (__bestIndex == 1) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Terra.PlannedWorkoutSportEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Terra.PlannedWorkoutSportEnum).Name}"); + @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + } + + if (workoutSport == null && @enum == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Terra.WorkoutSport), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Terra.WorkoutSport).Name}"); + workoutSport = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (workoutSport == null && @enum == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Terra.PlannedWorkoutSportEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Terra.PlannedWorkoutSportEnum).Name}"); + @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + var __value = new global::Terra.PlannedWorkoutSport( + workoutSport, + + @enum + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Terra.PlannedWorkoutSport value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsWorkoutSport) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Terra.WorkoutSport), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Terra.WorkoutSport).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.WorkoutSport!.Value, typeInfo); + } + else if (value.IsEnum) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Terra.PlannedWorkoutSportEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Terra.PlannedWorkoutSportEnum).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Enum!.Value, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/Terra/Generated/Terra.JsonConverters.PlannedWorkoutSportEnum.g.cs b/src/libs/Terra/Generated/Terra.JsonConverters.PlannedWorkoutSportEnum.g.cs new file mode 100644 index 00000000..9fb1a578 --- /dev/null +++ b/src/libs/Terra/Generated/Terra.JsonConverters.PlannedWorkoutSportEnum.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Terra.JsonConverters +{ + /// + public sealed class PlannedWorkoutSportEnumJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Terra.PlannedWorkoutSportEnum Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Terra.PlannedWorkoutSportEnumExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Terra.PlannedWorkoutSportEnum)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Terra.PlannedWorkoutSportEnum); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Terra.PlannedWorkoutSportEnum value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Terra.PlannedWorkoutSportEnumExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Terra/Generated/Terra.JsonConverters.PlannedWorkoutSportEnumNullable.g.cs b/src/libs/Terra/Generated/Terra.JsonConverters.PlannedWorkoutSportEnumNullable.g.cs new file mode 100644 index 00000000..bf23504d --- /dev/null +++ b/src/libs/Terra/Generated/Terra.JsonConverters.PlannedWorkoutSportEnumNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Terra.JsonConverters +{ + /// + public sealed class PlannedWorkoutSportEnumNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Terra.PlannedWorkoutSportEnum? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Terra.PlannedWorkoutSportEnumExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Terra.PlannedWorkoutSportEnum)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Terra.PlannedWorkoutSportEnum?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Terra.PlannedWorkoutSportEnum? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Terra.PlannedWorkoutSportEnumExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetType.g.cs b/src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetType.g.cs index 0b52a536..3bf9f9ed 100644 --- a/src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetType.g.cs +++ b/src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetType.g.cs @@ -148,6 +148,94 @@ public class WorkoutStepTargetTypeJsonConverter : global::System.Text.Json.Seria } } } + var __score11 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(global::Terra.WorkoutStepTargetTypeVariant12), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score11++; + } + } + } + var __score12 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(global::Terra.WorkoutStepTargetTypeVariant13), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score12++; + } + } + } + var __score13 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(global::Terra.WorkoutStepTargetTypeVariant14), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score13++; + } + } + } + var __score14 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(global::Terra.WorkoutStepTargetTypeVariant15), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score14++; + } + } + } + var __score15 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(global::Terra.WorkoutStepTargetTypeVariant16), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score15++; + } + } + } + var __score16 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(global::Terra.WorkoutStepTargetTypeVariant17), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score16++; + } + } + } + var __score17 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(global::Terra.WorkoutStepTargetTypeVariant18), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score17++; + } + } + } + var __score18 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(global::Terra.WorkoutStepTargetTypeVariant19), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score18++; + } + } + } var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } @@ -161,6 +249,14 @@ public class WorkoutStepTargetTypeJsonConverter : global::System.Text.Json.Seria if (__score8 > __bestScore) { __bestScore = __score8; __bestIndex = 8; } if (__score9 > __bestScore) { __bestScore = __score9; __bestIndex = 9; } if (__score10 > __bestScore) { __bestScore = __score10; __bestIndex = 10; } + if (__score11 > __bestScore) { __bestScore = __score11; __bestIndex = 11; } + if (__score12 > __bestScore) { __bestScore = __score12; __bestIndex = 12; } + if (__score13 > __bestScore) { __bestScore = __score13; __bestIndex = 13; } + if (__score14 > __bestScore) { __bestScore = __score14; __bestIndex = 14; } + if (__score15 > __bestScore) { __bestScore = __score15; __bestIndex = 15; } + if (__score16 > __bestScore) { __bestScore = __score16; __bestIndex = 16; } + if (__score17 > __bestScore) { __bestScore = __score17; __bestIndex = 17; } + if (__score18 > __bestScore) { __bestScore = __score18; __bestIndex = 18; } global::Terra.WorkoutStepTargetTypeVariant1? workoutStepTargetTypeVariant1 = default; global::Terra.WorkoutStepTargetTypeVariant2? workoutStepTargetTypeVariant2 = default; @@ -173,6 +269,14 @@ public class WorkoutStepTargetTypeJsonConverter : global::System.Text.Json.Seria global::Terra.WorkoutStepTargetTypeVariant9? workoutStepTargetTypeVariant9 = default; global::Terra.WorkoutStepTargetTypeVariant10? workoutStepTargetTypeVariant10 = default; global::Terra.WorkoutStepTargetTypeVariant11? workoutStepTargetTypeVariant11 = default; + global::Terra.WorkoutStepTargetTypeVariant12? workoutStepTargetTypeVariant12 = default; + global::Terra.WorkoutStepTargetTypeVariant13? workoutStepTargetTypeVariant13 = default; + global::Terra.WorkoutStepTargetTypeVariant14? workoutStepTargetTypeVariant14 = default; + global::Terra.WorkoutStepTargetTypeVariant15? workoutStepTargetTypeVariant15 = default; + global::Terra.WorkoutStepTargetTypeVariant16? workoutStepTargetTypeVariant16 = default; + global::Terra.WorkoutStepTargetTypeVariant17? workoutStepTargetTypeVariant17 = default; + global::Terra.WorkoutStepTargetTypeVariant18? workoutStepTargetTypeVariant18 = default; + global::Terra.WorkoutStepTargetTypeVariant19? workoutStepTargetTypeVariant19 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -361,9 +465,145 @@ public class WorkoutStepTargetTypeJsonConverter : global::System.Text.Json.Seria { } } + + else if (__bestIndex == 11) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Terra.WorkoutStepTargetTypeVariant12), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Terra.WorkoutStepTargetTypeVariant12).Name}"); + workoutStepTargetTypeVariant12 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + else if (__bestIndex == 12) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Terra.WorkoutStepTargetTypeVariant13), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Terra.WorkoutStepTargetTypeVariant13).Name}"); + workoutStepTargetTypeVariant13 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + else if (__bestIndex == 13) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Terra.WorkoutStepTargetTypeVariant14), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Terra.WorkoutStepTargetTypeVariant14).Name}"); + workoutStepTargetTypeVariant14 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + else if (__bestIndex == 14) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Terra.WorkoutStepTargetTypeVariant15), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Terra.WorkoutStepTargetTypeVariant15).Name}"); + workoutStepTargetTypeVariant15 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + else if (__bestIndex == 15) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Terra.WorkoutStepTargetTypeVariant16), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Terra.WorkoutStepTargetTypeVariant16).Name}"); + workoutStepTargetTypeVariant16 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + else if (__bestIndex == 16) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Terra.WorkoutStepTargetTypeVariant17), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Terra.WorkoutStepTargetTypeVariant17).Name}"); + workoutStepTargetTypeVariant17 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + else if (__bestIndex == 17) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Terra.WorkoutStepTargetTypeVariant18), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Terra.WorkoutStepTargetTypeVariant18).Name}"); + workoutStepTargetTypeVariant18 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + else if (__bestIndex == 18) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Terra.WorkoutStepTargetTypeVariant19), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Terra.WorkoutStepTargetTypeVariant19).Name}"); + workoutStepTargetTypeVariant19 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } } - if (workoutStepTargetTypeVariant1 == null && workoutStepTargetTypeVariant2 == null && workoutStepTargetTypeVariant3 == null && workoutStepTargetTypeVariant4 == null && workoutStepTargetTypeVariant5 == null && workoutStepTargetTypeVariant6 == null && workoutStepTargetTypeVariant7 == null && workoutStepTargetTypeVariant8 == null && workoutStepTargetTypeVariant9 == null && workoutStepTargetTypeVariant10 == null && workoutStepTargetTypeVariant11 == null) + if (workoutStepTargetTypeVariant1 == null && workoutStepTargetTypeVariant2 == null && workoutStepTargetTypeVariant3 == null && workoutStepTargetTypeVariant4 == null && workoutStepTargetTypeVariant5 == null && workoutStepTargetTypeVariant6 == null && workoutStepTargetTypeVariant7 == null && workoutStepTargetTypeVariant8 == null && workoutStepTargetTypeVariant9 == null && workoutStepTargetTypeVariant10 == null && workoutStepTargetTypeVariant11 == null && workoutStepTargetTypeVariant12 == null && workoutStepTargetTypeVariant13 == null && workoutStepTargetTypeVariant14 == null && workoutStepTargetTypeVariant15 == null && workoutStepTargetTypeVariant16 == null && workoutStepTargetTypeVariant17 == null && workoutStepTargetTypeVariant18 == null && workoutStepTargetTypeVariant19 == null) { try { @@ -380,7 +620,7 @@ public class WorkoutStepTargetTypeJsonConverter : global::System.Text.Json.Seria } } - if (workoutStepTargetTypeVariant1 == null && workoutStepTargetTypeVariant2 == null && workoutStepTargetTypeVariant3 == null && workoutStepTargetTypeVariant4 == null && workoutStepTargetTypeVariant5 == null && workoutStepTargetTypeVariant6 == null && workoutStepTargetTypeVariant7 == null && workoutStepTargetTypeVariant8 == null && workoutStepTargetTypeVariant9 == null && workoutStepTargetTypeVariant10 == null && workoutStepTargetTypeVariant11 == null) + if (workoutStepTargetTypeVariant1 == null && workoutStepTargetTypeVariant2 == null && workoutStepTargetTypeVariant3 == null && workoutStepTargetTypeVariant4 == null && workoutStepTargetTypeVariant5 == null && workoutStepTargetTypeVariant6 == null && workoutStepTargetTypeVariant7 == null && workoutStepTargetTypeVariant8 == null && workoutStepTargetTypeVariant9 == null && workoutStepTargetTypeVariant10 == null && workoutStepTargetTypeVariant11 == null && workoutStepTargetTypeVariant12 == null && workoutStepTargetTypeVariant13 == null && workoutStepTargetTypeVariant14 == null && workoutStepTargetTypeVariant15 == null && workoutStepTargetTypeVariant16 == null && workoutStepTargetTypeVariant17 == null && workoutStepTargetTypeVariant18 == null && workoutStepTargetTypeVariant19 == null) { try { @@ -397,7 +637,7 @@ public class WorkoutStepTargetTypeJsonConverter : global::System.Text.Json.Seria } } - if (workoutStepTargetTypeVariant1 == null && workoutStepTargetTypeVariant2 == null && workoutStepTargetTypeVariant3 == null && workoutStepTargetTypeVariant4 == null && workoutStepTargetTypeVariant5 == null && workoutStepTargetTypeVariant6 == null && workoutStepTargetTypeVariant7 == null && workoutStepTargetTypeVariant8 == null && workoutStepTargetTypeVariant9 == null && workoutStepTargetTypeVariant10 == null && workoutStepTargetTypeVariant11 == null) + if (workoutStepTargetTypeVariant1 == null && workoutStepTargetTypeVariant2 == null && workoutStepTargetTypeVariant3 == null && workoutStepTargetTypeVariant4 == null && workoutStepTargetTypeVariant5 == null && workoutStepTargetTypeVariant6 == null && workoutStepTargetTypeVariant7 == null && workoutStepTargetTypeVariant8 == null && workoutStepTargetTypeVariant9 == null && workoutStepTargetTypeVariant10 == null && workoutStepTargetTypeVariant11 == null && workoutStepTargetTypeVariant12 == null && workoutStepTargetTypeVariant13 == null && workoutStepTargetTypeVariant14 == null && workoutStepTargetTypeVariant15 == null && workoutStepTargetTypeVariant16 == null && workoutStepTargetTypeVariant17 == null && workoutStepTargetTypeVariant18 == null && workoutStepTargetTypeVariant19 == null) { try { @@ -414,7 +654,7 @@ public class WorkoutStepTargetTypeJsonConverter : global::System.Text.Json.Seria } } - if (workoutStepTargetTypeVariant1 == null && workoutStepTargetTypeVariant2 == null && workoutStepTargetTypeVariant3 == null && workoutStepTargetTypeVariant4 == null && workoutStepTargetTypeVariant5 == null && workoutStepTargetTypeVariant6 == null && workoutStepTargetTypeVariant7 == null && workoutStepTargetTypeVariant8 == null && workoutStepTargetTypeVariant9 == null && workoutStepTargetTypeVariant10 == null && workoutStepTargetTypeVariant11 == null) + if (workoutStepTargetTypeVariant1 == null && workoutStepTargetTypeVariant2 == null && workoutStepTargetTypeVariant3 == null && workoutStepTargetTypeVariant4 == null && workoutStepTargetTypeVariant5 == null && workoutStepTargetTypeVariant6 == null && workoutStepTargetTypeVariant7 == null && workoutStepTargetTypeVariant8 == null && workoutStepTargetTypeVariant9 == null && workoutStepTargetTypeVariant10 == null && workoutStepTargetTypeVariant11 == null && workoutStepTargetTypeVariant12 == null && workoutStepTargetTypeVariant13 == null && workoutStepTargetTypeVariant14 == null && workoutStepTargetTypeVariant15 == null && workoutStepTargetTypeVariant16 == null && workoutStepTargetTypeVariant17 == null && workoutStepTargetTypeVariant18 == null && workoutStepTargetTypeVariant19 == null) { try { @@ -431,7 +671,7 @@ public class WorkoutStepTargetTypeJsonConverter : global::System.Text.Json.Seria } } - if (workoutStepTargetTypeVariant1 == null && workoutStepTargetTypeVariant2 == null && workoutStepTargetTypeVariant3 == null && workoutStepTargetTypeVariant4 == null && workoutStepTargetTypeVariant5 == null && workoutStepTargetTypeVariant6 == null && workoutStepTargetTypeVariant7 == null && workoutStepTargetTypeVariant8 == null && workoutStepTargetTypeVariant9 == null && workoutStepTargetTypeVariant10 == null && workoutStepTargetTypeVariant11 == null) + if (workoutStepTargetTypeVariant1 == null && workoutStepTargetTypeVariant2 == null && workoutStepTargetTypeVariant3 == null && workoutStepTargetTypeVariant4 == null && workoutStepTargetTypeVariant5 == null && workoutStepTargetTypeVariant6 == null && workoutStepTargetTypeVariant7 == null && workoutStepTargetTypeVariant8 == null && workoutStepTargetTypeVariant9 == null && workoutStepTargetTypeVariant10 == null && workoutStepTargetTypeVariant11 == null && workoutStepTargetTypeVariant12 == null && workoutStepTargetTypeVariant13 == null && workoutStepTargetTypeVariant14 == null && workoutStepTargetTypeVariant15 == null && workoutStepTargetTypeVariant16 == null && workoutStepTargetTypeVariant17 == null && workoutStepTargetTypeVariant18 == null && workoutStepTargetTypeVariant19 == null) { try { @@ -448,7 +688,7 @@ public class WorkoutStepTargetTypeJsonConverter : global::System.Text.Json.Seria } } - if (workoutStepTargetTypeVariant1 == null && workoutStepTargetTypeVariant2 == null && workoutStepTargetTypeVariant3 == null && workoutStepTargetTypeVariant4 == null && workoutStepTargetTypeVariant5 == null && workoutStepTargetTypeVariant6 == null && workoutStepTargetTypeVariant7 == null && workoutStepTargetTypeVariant8 == null && workoutStepTargetTypeVariant9 == null && workoutStepTargetTypeVariant10 == null && workoutStepTargetTypeVariant11 == null) + if (workoutStepTargetTypeVariant1 == null && workoutStepTargetTypeVariant2 == null && workoutStepTargetTypeVariant3 == null && workoutStepTargetTypeVariant4 == null && workoutStepTargetTypeVariant5 == null && workoutStepTargetTypeVariant6 == null && workoutStepTargetTypeVariant7 == null && workoutStepTargetTypeVariant8 == null && workoutStepTargetTypeVariant9 == null && workoutStepTargetTypeVariant10 == null && workoutStepTargetTypeVariant11 == null && workoutStepTargetTypeVariant12 == null && workoutStepTargetTypeVariant13 == null && workoutStepTargetTypeVariant14 == null && workoutStepTargetTypeVariant15 == null && workoutStepTargetTypeVariant16 == null && workoutStepTargetTypeVariant17 == null && workoutStepTargetTypeVariant18 == null && workoutStepTargetTypeVariant19 == null) { try { @@ -465,7 +705,7 @@ public class WorkoutStepTargetTypeJsonConverter : global::System.Text.Json.Seria } } - if (workoutStepTargetTypeVariant1 == null && workoutStepTargetTypeVariant2 == null && workoutStepTargetTypeVariant3 == null && workoutStepTargetTypeVariant4 == null && workoutStepTargetTypeVariant5 == null && workoutStepTargetTypeVariant6 == null && workoutStepTargetTypeVariant7 == null && workoutStepTargetTypeVariant8 == null && workoutStepTargetTypeVariant9 == null && workoutStepTargetTypeVariant10 == null && workoutStepTargetTypeVariant11 == null) + if (workoutStepTargetTypeVariant1 == null && workoutStepTargetTypeVariant2 == null && workoutStepTargetTypeVariant3 == null && workoutStepTargetTypeVariant4 == null && workoutStepTargetTypeVariant5 == null && workoutStepTargetTypeVariant6 == null && workoutStepTargetTypeVariant7 == null && workoutStepTargetTypeVariant8 == null && workoutStepTargetTypeVariant9 == null && workoutStepTargetTypeVariant10 == null && workoutStepTargetTypeVariant11 == null && workoutStepTargetTypeVariant12 == null && workoutStepTargetTypeVariant13 == null && workoutStepTargetTypeVariant14 == null && workoutStepTargetTypeVariant15 == null && workoutStepTargetTypeVariant16 == null && workoutStepTargetTypeVariant17 == null && workoutStepTargetTypeVariant18 == null && workoutStepTargetTypeVariant19 == null) { try { @@ -482,7 +722,7 @@ public class WorkoutStepTargetTypeJsonConverter : global::System.Text.Json.Seria } } - if (workoutStepTargetTypeVariant1 == null && workoutStepTargetTypeVariant2 == null && workoutStepTargetTypeVariant3 == null && workoutStepTargetTypeVariant4 == null && workoutStepTargetTypeVariant5 == null && workoutStepTargetTypeVariant6 == null && workoutStepTargetTypeVariant7 == null && workoutStepTargetTypeVariant8 == null && workoutStepTargetTypeVariant9 == null && workoutStepTargetTypeVariant10 == null && workoutStepTargetTypeVariant11 == null) + if (workoutStepTargetTypeVariant1 == null && workoutStepTargetTypeVariant2 == null && workoutStepTargetTypeVariant3 == null && workoutStepTargetTypeVariant4 == null && workoutStepTargetTypeVariant5 == null && workoutStepTargetTypeVariant6 == null && workoutStepTargetTypeVariant7 == null && workoutStepTargetTypeVariant8 == null && workoutStepTargetTypeVariant9 == null && workoutStepTargetTypeVariant10 == null && workoutStepTargetTypeVariant11 == null && workoutStepTargetTypeVariant12 == null && workoutStepTargetTypeVariant13 == null && workoutStepTargetTypeVariant14 == null && workoutStepTargetTypeVariant15 == null && workoutStepTargetTypeVariant16 == null && workoutStepTargetTypeVariant17 == null && workoutStepTargetTypeVariant18 == null && workoutStepTargetTypeVariant19 == null) { try { @@ -499,7 +739,7 @@ public class WorkoutStepTargetTypeJsonConverter : global::System.Text.Json.Seria } } - if (workoutStepTargetTypeVariant1 == null && workoutStepTargetTypeVariant2 == null && workoutStepTargetTypeVariant3 == null && workoutStepTargetTypeVariant4 == null && workoutStepTargetTypeVariant5 == null && workoutStepTargetTypeVariant6 == null && workoutStepTargetTypeVariant7 == null && workoutStepTargetTypeVariant8 == null && workoutStepTargetTypeVariant9 == null && workoutStepTargetTypeVariant10 == null && workoutStepTargetTypeVariant11 == null) + if (workoutStepTargetTypeVariant1 == null && workoutStepTargetTypeVariant2 == null && workoutStepTargetTypeVariant3 == null && workoutStepTargetTypeVariant4 == null && workoutStepTargetTypeVariant5 == null && workoutStepTargetTypeVariant6 == null && workoutStepTargetTypeVariant7 == null && workoutStepTargetTypeVariant8 == null && workoutStepTargetTypeVariant9 == null && workoutStepTargetTypeVariant10 == null && workoutStepTargetTypeVariant11 == null && workoutStepTargetTypeVariant12 == null && workoutStepTargetTypeVariant13 == null && workoutStepTargetTypeVariant14 == null && workoutStepTargetTypeVariant15 == null && workoutStepTargetTypeVariant16 == null && workoutStepTargetTypeVariant17 == null && workoutStepTargetTypeVariant18 == null && workoutStepTargetTypeVariant19 == null) { try { @@ -516,7 +756,7 @@ public class WorkoutStepTargetTypeJsonConverter : global::System.Text.Json.Seria } } - if (workoutStepTargetTypeVariant1 == null && workoutStepTargetTypeVariant2 == null && workoutStepTargetTypeVariant3 == null && workoutStepTargetTypeVariant4 == null && workoutStepTargetTypeVariant5 == null && workoutStepTargetTypeVariant6 == null && workoutStepTargetTypeVariant7 == null && workoutStepTargetTypeVariant8 == null && workoutStepTargetTypeVariant9 == null && workoutStepTargetTypeVariant10 == null && workoutStepTargetTypeVariant11 == null) + if (workoutStepTargetTypeVariant1 == null && workoutStepTargetTypeVariant2 == null && workoutStepTargetTypeVariant3 == null && workoutStepTargetTypeVariant4 == null && workoutStepTargetTypeVariant5 == null && workoutStepTargetTypeVariant6 == null && workoutStepTargetTypeVariant7 == null && workoutStepTargetTypeVariant8 == null && workoutStepTargetTypeVariant9 == null && workoutStepTargetTypeVariant10 == null && workoutStepTargetTypeVariant11 == null && workoutStepTargetTypeVariant12 == null && workoutStepTargetTypeVariant13 == null && workoutStepTargetTypeVariant14 == null && workoutStepTargetTypeVariant15 == null && workoutStepTargetTypeVariant16 == null && workoutStepTargetTypeVariant17 == null && workoutStepTargetTypeVariant18 == null && workoutStepTargetTypeVariant19 == null) { try { @@ -533,7 +773,7 @@ public class WorkoutStepTargetTypeJsonConverter : global::System.Text.Json.Seria } } - if (workoutStepTargetTypeVariant1 == null && workoutStepTargetTypeVariant2 == null && workoutStepTargetTypeVariant3 == null && workoutStepTargetTypeVariant4 == null && workoutStepTargetTypeVariant5 == null && workoutStepTargetTypeVariant6 == null && workoutStepTargetTypeVariant7 == null && workoutStepTargetTypeVariant8 == null && workoutStepTargetTypeVariant9 == null && workoutStepTargetTypeVariant10 == null && workoutStepTargetTypeVariant11 == null) + if (workoutStepTargetTypeVariant1 == null && workoutStepTargetTypeVariant2 == null && workoutStepTargetTypeVariant3 == null && workoutStepTargetTypeVariant4 == null && workoutStepTargetTypeVariant5 == null && workoutStepTargetTypeVariant6 == null && workoutStepTargetTypeVariant7 == null && workoutStepTargetTypeVariant8 == null && workoutStepTargetTypeVariant9 == null && workoutStepTargetTypeVariant10 == null && workoutStepTargetTypeVariant11 == null && workoutStepTargetTypeVariant12 == null && workoutStepTargetTypeVariant13 == null && workoutStepTargetTypeVariant14 == null && workoutStepTargetTypeVariant15 == null && workoutStepTargetTypeVariant16 == null && workoutStepTargetTypeVariant17 == null && workoutStepTargetTypeVariant18 == null && workoutStepTargetTypeVariant19 == null) { try { @@ -550,6 +790,142 @@ public class WorkoutStepTargetTypeJsonConverter : global::System.Text.Json.Seria } } + if (workoutStepTargetTypeVariant1 == null && workoutStepTargetTypeVariant2 == null && workoutStepTargetTypeVariant3 == null && workoutStepTargetTypeVariant4 == null && workoutStepTargetTypeVariant5 == null && workoutStepTargetTypeVariant6 == null && workoutStepTargetTypeVariant7 == null && workoutStepTargetTypeVariant8 == null && workoutStepTargetTypeVariant9 == null && workoutStepTargetTypeVariant10 == null && workoutStepTargetTypeVariant11 == null && workoutStepTargetTypeVariant12 == null && workoutStepTargetTypeVariant13 == null && workoutStepTargetTypeVariant14 == null && workoutStepTargetTypeVariant15 == null && workoutStepTargetTypeVariant16 == null && workoutStepTargetTypeVariant17 == null && workoutStepTargetTypeVariant18 == null && workoutStepTargetTypeVariant19 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Terra.WorkoutStepTargetTypeVariant12), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Terra.WorkoutStepTargetTypeVariant12).Name}"); + workoutStepTargetTypeVariant12 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (workoutStepTargetTypeVariant1 == null && workoutStepTargetTypeVariant2 == null && workoutStepTargetTypeVariant3 == null && workoutStepTargetTypeVariant4 == null && workoutStepTargetTypeVariant5 == null && workoutStepTargetTypeVariant6 == null && workoutStepTargetTypeVariant7 == null && workoutStepTargetTypeVariant8 == null && workoutStepTargetTypeVariant9 == null && workoutStepTargetTypeVariant10 == null && workoutStepTargetTypeVariant11 == null && workoutStepTargetTypeVariant12 == null && workoutStepTargetTypeVariant13 == null && workoutStepTargetTypeVariant14 == null && workoutStepTargetTypeVariant15 == null && workoutStepTargetTypeVariant16 == null && workoutStepTargetTypeVariant17 == null && workoutStepTargetTypeVariant18 == null && workoutStepTargetTypeVariant19 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Terra.WorkoutStepTargetTypeVariant13), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Terra.WorkoutStepTargetTypeVariant13).Name}"); + workoutStepTargetTypeVariant13 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (workoutStepTargetTypeVariant1 == null && workoutStepTargetTypeVariant2 == null && workoutStepTargetTypeVariant3 == null && workoutStepTargetTypeVariant4 == null && workoutStepTargetTypeVariant5 == null && workoutStepTargetTypeVariant6 == null && workoutStepTargetTypeVariant7 == null && workoutStepTargetTypeVariant8 == null && workoutStepTargetTypeVariant9 == null && workoutStepTargetTypeVariant10 == null && workoutStepTargetTypeVariant11 == null && workoutStepTargetTypeVariant12 == null && workoutStepTargetTypeVariant13 == null && workoutStepTargetTypeVariant14 == null && workoutStepTargetTypeVariant15 == null && workoutStepTargetTypeVariant16 == null && workoutStepTargetTypeVariant17 == null && workoutStepTargetTypeVariant18 == null && workoutStepTargetTypeVariant19 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Terra.WorkoutStepTargetTypeVariant14), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Terra.WorkoutStepTargetTypeVariant14).Name}"); + workoutStepTargetTypeVariant14 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (workoutStepTargetTypeVariant1 == null && workoutStepTargetTypeVariant2 == null && workoutStepTargetTypeVariant3 == null && workoutStepTargetTypeVariant4 == null && workoutStepTargetTypeVariant5 == null && workoutStepTargetTypeVariant6 == null && workoutStepTargetTypeVariant7 == null && workoutStepTargetTypeVariant8 == null && workoutStepTargetTypeVariant9 == null && workoutStepTargetTypeVariant10 == null && workoutStepTargetTypeVariant11 == null && workoutStepTargetTypeVariant12 == null && workoutStepTargetTypeVariant13 == null && workoutStepTargetTypeVariant14 == null && workoutStepTargetTypeVariant15 == null && workoutStepTargetTypeVariant16 == null && workoutStepTargetTypeVariant17 == null && workoutStepTargetTypeVariant18 == null && workoutStepTargetTypeVariant19 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Terra.WorkoutStepTargetTypeVariant15), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Terra.WorkoutStepTargetTypeVariant15).Name}"); + workoutStepTargetTypeVariant15 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (workoutStepTargetTypeVariant1 == null && workoutStepTargetTypeVariant2 == null && workoutStepTargetTypeVariant3 == null && workoutStepTargetTypeVariant4 == null && workoutStepTargetTypeVariant5 == null && workoutStepTargetTypeVariant6 == null && workoutStepTargetTypeVariant7 == null && workoutStepTargetTypeVariant8 == null && workoutStepTargetTypeVariant9 == null && workoutStepTargetTypeVariant10 == null && workoutStepTargetTypeVariant11 == null && workoutStepTargetTypeVariant12 == null && workoutStepTargetTypeVariant13 == null && workoutStepTargetTypeVariant14 == null && workoutStepTargetTypeVariant15 == null && workoutStepTargetTypeVariant16 == null && workoutStepTargetTypeVariant17 == null && workoutStepTargetTypeVariant18 == null && workoutStepTargetTypeVariant19 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Terra.WorkoutStepTargetTypeVariant16), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Terra.WorkoutStepTargetTypeVariant16).Name}"); + workoutStepTargetTypeVariant16 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (workoutStepTargetTypeVariant1 == null && workoutStepTargetTypeVariant2 == null && workoutStepTargetTypeVariant3 == null && workoutStepTargetTypeVariant4 == null && workoutStepTargetTypeVariant5 == null && workoutStepTargetTypeVariant6 == null && workoutStepTargetTypeVariant7 == null && workoutStepTargetTypeVariant8 == null && workoutStepTargetTypeVariant9 == null && workoutStepTargetTypeVariant10 == null && workoutStepTargetTypeVariant11 == null && workoutStepTargetTypeVariant12 == null && workoutStepTargetTypeVariant13 == null && workoutStepTargetTypeVariant14 == null && workoutStepTargetTypeVariant15 == null && workoutStepTargetTypeVariant16 == null && workoutStepTargetTypeVariant17 == null && workoutStepTargetTypeVariant18 == null && workoutStepTargetTypeVariant19 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Terra.WorkoutStepTargetTypeVariant17), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Terra.WorkoutStepTargetTypeVariant17).Name}"); + workoutStepTargetTypeVariant17 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (workoutStepTargetTypeVariant1 == null && workoutStepTargetTypeVariant2 == null && workoutStepTargetTypeVariant3 == null && workoutStepTargetTypeVariant4 == null && workoutStepTargetTypeVariant5 == null && workoutStepTargetTypeVariant6 == null && workoutStepTargetTypeVariant7 == null && workoutStepTargetTypeVariant8 == null && workoutStepTargetTypeVariant9 == null && workoutStepTargetTypeVariant10 == null && workoutStepTargetTypeVariant11 == null && workoutStepTargetTypeVariant12 == null && workoutStepTargetTypeVariant13 == null && workoutStepTargetTypeVariant14 == null && workoutStepTargetTypeVariant15 == null && workoutStepTargetTypeVariant16 == null && workoutStepTargetTypeVariant17 == null && workoutStepTargetTypeVariant18 == null && workoutStepTargetTypeVariant19 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Terra.WorkoutStepTargetTypeVariant18), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Terra.WorkoutStepTargetTypeVariant18).Name}"); + workoutStepTargetTypeVariant18 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (workoutStepTargetTypeVariant1 == null && workoutStepTargetTypeVariant2 == null && workoutStepTargetTypeVariant3 == null && workoutStepTargetTypeVariant4 == null && workoutStepTargetTypeVariant5 == null && workoutStepTargetTypeVariant6 == null && workoutStepTargetTypeVariant7 == null && workoutStepTargetTypeVariant8 == null && workoutStepTargetTypeVariant9 == null && workoutStepTargetTypeVariant10 == null && workoutStepTargetTypeVariant11 == null && workoutStepTargetTypeVariant12 == null && workoutStepTargetTypeVariant13 == null && workoutStepTargetTypeVariant14 == null && workoutStepTargetTypeVariant15 == null && workoutStepTargetTypeVariant16 == null && workoutStepTargetTypeVariant17 == null && workoutStepTargetTypeVariant18 == null && workoutStepTargetTypeVariant19 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Terra.WorkoutStepTargetTypeVariant19), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Terra.WorkoutStepTargetTypeVariant19).Name}"); + workoutStepTargetTypeVariant19 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + var __value = new global::Terra.WorkoutStepTargetType( workoutStepTargetTypeVariant1, @@ -571,7 +947,23 @@ public class WorkoutStepTargetTypeJsonConverter : global::System.Text.Json.Seria workoutStepTargetTypeVariant10, - workoutStepTargetTypeVariant11 + workoutStepTargetTypeVariant11, + + workoutStepTargetTypeVariant12, + + workoutStepTargetTypeVariant13, + + workoutStepTargetTypeVariant14, + + workoutStepTargetTypeVariant15, + + workoutStepTargetTypeVariant16, + + workoutStepTargetTypeVariant17, + + workoutStepTargetTypeVariant18, + + workoutStepTargetTypeVariant19 ); return __value; @@ -652,6 +1044,54 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Terra.WorkoutStepTargetTypeVariant11).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.WorkoutStepTargetTypeVariant11!.Value, typeInfo); } + else if (value.IsWorkoutStepTargetTypeVariant12) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Terra.WorkoutStepTargetTypeVariant12), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Terra.WorkoutStepTargetTypeVariant12).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.WorkoutStepTargetTypeVariant12!.Value, typeInfo); + } + else if (value.IsWorkoutStepTargetTypeVariant13) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Terra.WorkoutStepTargetTypeVariant13), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Terra.WorkoutStepTargetTypeVariant13).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.WorkoutStepTargetTypeVariant13!.Value, typeInfo); + } + else if (value.IsWorkoutStepTargetTypeVariant14) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Terra.WorkoutStepTargetTypeVariant14), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Terra.WorkoutStepTargetTypeVariant14).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.WorkoutStepTargetTypeVariant14!.Value, typeInfo); + } + else if (value.IsWorkoutStepTargetTypeVariant15) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Terra.WorkoutStepTargetTypeVariant15), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Terra.WorkoutStepTargetTypeVariant15).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.WorkoutStepTargetTypeVariant15!.Value, typeInfo); + } + else if (value.IsWorkoutStepTargetTypeVariant16) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Terra.WorkoutStepTargetTypeVariant16), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Terra.WorkoutStepTargetTypeVariant16).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.WorkoutStepTargetTypeVariant16!.Value, typeInfo); + } + else if (value.IsWorkoutStepTargetTypeVariant17) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Terra.WorkoutStepTargetTypeVariant17), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Terra.WorkoutStepTargetTypeVariant17).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.WorkoutStepTargetTypeVariant17!.Value, typeInfo); + } + else if (value.IsWorkoutStepTargetTypeVariant18) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Terra.WorkoutStepTargetTypeVariant18), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Terra.WorkoutStepTargetTypeVariant18).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.WorkoutStepTargetTypeVariant18!.Value, typeInfo); + } + else if (value.IsWorkoutStepTargetTypeVariant19) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Terra.WorkoutStepTargetTypeVariant19), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Terra.WorkoutStepTargetTypeVariant19).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.WorkoutStepTargetTypeVariant19!.Value, typeInfo); + } } } } \ No newline at end of file diff --git a/src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetTypeVariant12.g.cs b/src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetTypeVariant12.g.cs new file mode 100644 index 00000000..cb0e82d4 --- /dev/null +++ b/src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetTypeVariant12.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Terra.JsonConverters +{ + /// + public sealed class WorkoutStepTargetTypeVariant12JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Terra.WorkoutStepTargetTypeVariant12 Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Terra.WorkoutStepTargetTypeVariant12Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Terra.WorkoutStepTargetTypeVariant12)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Terra.WorkoutStepTargetTypeVariant12); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Terra.WorkoutStepTargetTypeVariant12 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Terra.WorkoutStepTargetTypeVariant12Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetTypeVariant12Nullable.g.cs b/src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetTypeVariant12Nullable.g.cs new file mode 100644 index 00000000..8a7e5fc6 --- /dev/null +++ b/src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetTypeVariant12Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Terra.JsonConverters +{ + /// + public sealed class WorkoutStepTargetTypeVariant12NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Terra.WorkoutStepTargetTypeVariant12? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Terra.WorkoutStepTargetTypeVariant12Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Terra.WorkoutStepTargetTypeVariant12)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Terra.WorkoutStepTargetTypeVariant12?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Terra.WorkoutStepTargetTypeVariant12? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Terra.WorkoutStepTargetTypeVariant12Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetTypeVariant13.g.cs b/src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetTypeVariant13.g.cs new file mode 100644 index 00000000..828ab80b --- /dev/null +++ b/src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetTypeVariant13.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Terra.JsonConverters +{ + /// + public sealed class WorkoutStepTargetTypeVariant13JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Terra.WorkoutStepTargetTypeVariant13 Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Terra.WorkoutStepTargetTypeVariant13Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Terra.WorkoutStepTargetTypeVariant13)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Terra.WorkoutStepTargetTypeVariant13); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Terra.WorkoutStepTargetTypeVariant13 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Terra.WorkoutStepTargetTypeVariant13Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetTypeVariant13Nullable.g.cs b/src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetTypeVariant13Nullable.g.cs new file mode 100644 index 00000000..6b368b27 --- /dev/null +++ b/src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetTypeVariant13Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Terra.JsonConverters +{ + /// + public sealed class WorkoutStepTargetTypeVariant13NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Terra.WorkoutStepTargetTypeVariant13? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Terra.WorkoutStepTargetTypeVariant13Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Terra.WorkoutStepTargetTypeVariant13)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Terra.WorkoutStepTargetTypeVariant13?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Terra.WorkoutStepTargetTypeVariant13? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Terra.WorkoutStepTargetTypeVariant13Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetTypeVariant14.g.cs b/src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetTypeVariant14.g.cs new file mode 100644 index 00000000..747c657d --- /dev/null +++ b/src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetTypeVariant14.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Terra.JsonConverters +{ + /// + public sealed class WorkoutStepTargetTypeVariant14JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Terra.WorkoutStepTargetTypeVariant14 Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Terra.WorkoutStepTargetTypeVariant14Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Terra.WorkoutStepTargetTypeVariant14)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Terra.WorkoutStepTargetTypeVariant14); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Terra.WorkoutStepTargetTypeVariant14 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Terra.WorkoutStepTargetTypeVariant14Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetTypeVariant14Nullable.g.cs b/src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetTypeVariant14Nullable.g.cs new file mode 100644 index 00000000..8dad0704 --- /dev/null +++ b/src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetTypeVariant14Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Terra.JsonConverters +{ + /// + public sealed class WorkoutStepTargetTypeVariant14NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Terra.WorkoutStepTargetTypeVariant14? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Terra.WorkoutStepTargetTypeVariant14Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Terra.WorkoutStepTargetTypeVariant14)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Terra.WorkoutStepTargetTypeVariant14?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Terra.WorkoutStepTargetTypeVariant14? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Terra.WorkoutStepTargetTypeVariant14Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetTypeVariant15.g.cs b/src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetTypeVariant15.g.cs new file mode 100644 index 00000000..28a8350b --- /dev/null +++ b/src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetTypeVariant15.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Terra.JsonConverters +{ + /// + public sealed class WorkoutStepTargetTypeVariant15JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Terra.WorkoutStepTargetTypeVariant15 Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Terra.WorkoutStepTargetTypeVariant15Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Terra.WorkoutStepTargetTypeVariant15)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Terra.WorkoutStepTargetTypeVariant15); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Terra.WorkoutStepTargetTypeVariant15 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Terra.WorkoutStepTargetTypeVariant15Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetTypeVariant15Nullable.g.cs b/src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetTypeVariant15Nullable.g.cs new file mode 100644 index 00000000..9fc6a330 --- /dev/null +++ b/src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetTypeVariant15Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Terra.JsonConverters +{ + /// + public sealed class WorkoutStepTargetTypeVariant15NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Terra.WorkoutStepTargetTypeVariant15? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Terra.WorkoutStepTargetTypeVariant15Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Terra.WorkoutStepTargetTypeVariant15)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Terra.WorkoutStepTargetTypeVariant15?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Terra.WorkoutStepTargetTypeVariant15? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Terra.WorkoutStepTargetTypeVariant15Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetTypeVariant16.g.cs b/src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetTypeVariant16.g.cs new file mode 100644 index 00000000..9a18d4ca --- /dev/null +++ b/src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetTypeVariant16.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Terra.JsonConverters +{ + /// + public sealed class WorkoutStepTargetTypeVariant16JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Terra.WorkoutStepTargetTypeVariant16 Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Terra.WorkoutStepTargetTypeVariant16Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Terra.WorkoutStepTargetTypeVariant16)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Terra.WorkoutStepTargetTypeVariant16); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Terra.WorkoutStepTargetTypeVariant16 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Terra.WorkoutStepTargetTypeVariant16Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetTypeVariant16Nullable.g.cs b/src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetTypeVariant16Nullable.g.cs new file mode 100644 index 00000000..fdd0eb2a --- /dev/null +++ b/src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetTypeVariant16Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Terra.JsonConverters +{ + /// + public sealed class WorkoutStepTargetTypeVariant16NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Terra.WorkoutStepTargetTypeVariant16? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Terra.WorkoutStepTargetTypeVariant16Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Terra.WorkoutStepTargetTypeVariant16)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Terra.WorkoutStepTargetTypeVariant16?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Terra.WorkoutStepTargetTypeVariant16? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Terra.WorkoutStepTargetTypeVariant16Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetTypeVariant17.g.cs b/src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetTypeVariant17.g.cs new file mode 100644 index 00000000..a39191ef --- /dev/null +++ b/src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetTypeVariant17.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Terra.JsonConverters +{ + /// + public sealed class WorkoutStepTargetTypeVariant17JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Terra.WorkoutStepTargetTypeVariant17 Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Terra.WorkoutStepTargetTypeVariant17Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Terra.WorkoutStepTargetTypeVariant17)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Terra.WorkoutStepTargetTypeVariant17); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Terra.WorkoutStepTargetTypeVariant17 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Terra.WorkoutStepTargetTypeVariant17Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetTypeVariant17Nullable.g.cs b/src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetTypeVariant17Nullable.g.cs new file mode 100644 index 00000000..1b8e1a19 --- /dev/null +++ b/src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetTypeVariant17Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Terra.JsonConverters +{ + /// + public sealed class WorkoutStepTargetTypeVariant17NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Terra.WorkoutStepTargetTypeVariant17? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Terra.WorkoutStepTargetTypeVariant17Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Terra.WorkoutStepTargetTypeVariant17)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Terra.WorkoutStepTargetTypeVariant17?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Terra.WorkoutStepTargetTypeVariant17? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Terra.WorkoutStepTargetTypeVariant17Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetTypeVariant18.g.cs b/src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetTypeVariant18.g.cs new file mode 100644 index 00000000..d2a3358f --- /dev/null +++ b/src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetTypeVariant18.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Terra.JsonConverters +{ + /// + public sealed class WorkoutStepTargetTypeVariant18JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Terra.WorkoutStepTargetTypeVariant18 Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Terra.WorkoutStepTargetTypeVariant18Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Terra.WorkoutStepTargetTypeVariant18)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Terra.WorkoutStepTargetTypeVariant18); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Terra.WorkoutStepTargetTypeVariant18 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Terra.WorkoutStepTargetTypeVariant18Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetTypeVariant18Nullable.g.cs b/src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetTypeVariant18Nullable.g.cs new file mode 100644 index 00000000..9baf0f9e --- /dev/null +++ b/src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetTypeVariant18Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Terra.JsonConverters +{ + /// + public sealed class WorkoutStepTargetTypeVariant18NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Terra.WorkoutStepTargetTypeVariant18? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Terra.WorkoutStepTargetTypeVariant18Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Terra.WorkoutStepTargetTypeVariant18)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Terra.WorkoutStepTargetTypeVariant18?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Terra.WorkoutStepTargetTypeVariant18? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Terra.WorkoutStepTargetTypeVariant18Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetTypeVariant19.g.cs b/src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetTypeVariant19.g.cs new file mode 100644 index 00000000..7ab65ec8 --- /dev/null +++ b/src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetTypeVariant19.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Terra.JsonConverters +{ + /// + public sealed class WorkoutStepTargetTypeVariant19JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Terra.WorkoutStepTargetTypeVariant19 Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Terra.WorkoutStepTargetTypeVariant19Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Terra.WorkoutStepTargetTypeVariant19)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Terra.WorkoutStepTargetTypeVariant19); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Terra.WorkoutStepTargetTypeVariant19 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Terra.WorkoutStepTargetTypeVariant19Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetTypeVariant19Nullable.g.cs b/src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetTypeVariant19Nullable.g.cs new file mode 100644 index 00000000..7b3b9f59 --- /dev/null +++ b/src/libs/Terra/Generated/Terra.JsonConverters.WorkoutStepTargetTypeVariant19Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Terra.JsonConverters +{ + /// + public sealed class WorkoutStepTargetTypeVariant19NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Terra.WorkoutStepTargetTypeVariant19? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Terra.WorkoutStepTargetTypeVariant19Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Terra.WorkoutStepTargetTypeVariant19)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Terra.WorkoutStepTargetTypeVariant19?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Terra.WorkoutStepTargetTypeVariant19? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Terra.WorkoutStepTargetTypeVariant19Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Terra/Generated/Terra.JsonSerializerContext.g.cs b/src/libs/Terra/Generated/Terra.JsonSerializerContext.g.cs index 709849dc..2f9257b7 100644 --- a/src/libs/Terra/Generated/Terra.JsonSerializerContext.g.cs +++ b/src/libs/Terra/Generated/Terra.JsonSerializerContext.g.cs @@ -21,15 +21,19 @@ namespace Terra [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutTemplate))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(object))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutSport), TypeInfoPropertyName = "WorkoutSport2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.EnvironmentType))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(double))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.StepBlock))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutSport), TypeInfoPropertyName = "WorkoutSport2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.PlannedWorkout))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.PlannedWorkoutSummary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.CoercionWarning))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.PlannedWorkoutBody))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.PlannedWorkoutSport), TypeInfoPropertyName = "PlannedWorkoutSport2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.Problem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WidgetSessionParams))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.TerraUser))] @@ -510,10 +514,6 @@ namespace Terra [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.StrengthRangeOfMotionVariant4), TypeInfoPropertyName = "StrengthRangeOfMotionVariant42")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.StrengthRangeOfMotionVariant5), TypeInfoPropertyName = "StrengthRangeOfMotionVariant52")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.StrengthRangeOfMotionVariant6), TypeInfoPropertyName = "StrengthRangeOfMotionVariant62")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.StrengthRangeOfMotionVariant7), TypeInfoPropertyName = "StrengthRangeOfMotionVariant72")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.StrengthProgramme), TypeInfoPropertyName = "StrengthProgramme2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.StrengthProgrammeVariant1), TypeInfoPropertyName = "StrengthProgrammeVariant12")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.StrengthProgrammeVariant2), TypeInfoPropertyName = "StrengthProgrammeVariant22")] internal sealed partial class SourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -526,6 +526,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex Converters = new global::System.Type[] { })] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.StrengthRangeOfMotionVariant7), TypeInfoPropertyName = "StrengthRangeOfMotionVariant72")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.StrengthProgramme), TypeInfoPropertyName = "StrengthProgramme2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.StrengthProgrammeVariant1), TypeInfoPropertyName = "StrengthProgrammeVariant12")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.StrengthProgrammeVariant2), TypeInfoPropertyName = "StrengthProgrammeVariant22")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.StrengthExerciseModifiers))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.StrengthMuscle), TypeInfoPropertyName = "StrengthMuscle2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.StrengthMuscleVariant1), TypeInfoPropertyName = "StrengthMuscleVariant12_3")] @@ -628,26 +632,11 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.SleepHypnogramSample))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.OtherSleepDurations))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutSportVariant1), TypeInfoPropertyName = "WorkoutSportVariant12_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutSportVariant2), TypeInfoPropertyName = "WorkoutSportVariant22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutSportVariant3), TypeInfoPropertyName = "WorkoutSportVariant32")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutSportVariant4), TypeInfoPropertyName = "WorkoutSportVariant42")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutSportVariant5), TypeInfoPropertyName = "WorkoutSportVariant52")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutSportVariant6), TypeInfoPropertyName = "WorkoutSportVariant62")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutSportVariant7), TypeInfoPropertyName = "WorkoutSportVariant72")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutSportVariant8), TypeInfoPropertyName = "WorkoutSportVariant82")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutSportVariant9), TypeInfoPropertyName = "WorkoutSportVariant92")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutSportVariant10), TypeInfoPropertyName = "WorkoutSportVariant102")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutSportVariant11), TypeInfoPropertyName = "WorkoutSportVariant112")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutSportVariant12), TypeInfoPropertyName = "WorkoutSportVariant122")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutSportVariant13), TypeInfoPropertyName = "WorkoutSportVariant132")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutSportVariant14), TypeInfoPropertyName = "WorkoutSportVariant142")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutSportVariant15), TypeInfoPropertyName = "WorkoutSportVariant152")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.EnvironmentTypeVariant1), TypeInfoPropertyName = "EnvironmentTypeVariant12")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.EnvironmentTypeVariant2), TypeInfoPropertyName = "EnvironmentTypeVariant22")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.EnvironmentTypeVariant3), TypeInfoPropertyName = "EnvironmentTypeVariant32")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.CompletionConditionType), TypeInfoPropertyName = "CompletionConditionType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.CompletionConditionTypeVariant1), TypeInfoPropertyName = "CompletionConditionTypeVariant12")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.CompletionConditionTypeVariant1), TypeInfoPropertyName = "CompletionConditionTypeVariant12_3")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.CompletionConditionTypeVariant2), TypeInfoPropertyName = "CompletionConditionTypeVariant22")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.CompletionConditionTypeVariant3), TypeInfoPropertyName = "CompletionConditionTypeVariant32")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.CompletionConditionTypeVariant4), TypeInfoPropertyName = "CompletionConditionTypeVariant42")] @@ -658,9 +647,15 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.CompletionConditionTypeVariant9), TypeInfoPropertyName = "CompletionConditionTypeVariant92")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.CompletionConditionTypeVariant10), TypeInfoPropertyName = "CompletionConditionTypeVariant102")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.CompletionConditionTypeVariant11), TypeInfoPropertyName = "CompletionConditionTypeVariant112")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.CompletionConditionTypeVariant12), TypeInfoPropertyName = "CompletionConditionTypeVariant122")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.CompletionConditionTypeVariant13), TypeInfoPropertyName = "CompletionConditionTypeVariant132")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.CompletionConditionTypeVariant14), TypeInfoPropertyName = "CompletionConditionTypeVariant142")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.CompletionConditionTypeVariant15), TypeInfoPropertyName = "CompletionConditionTypeVariant152")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.CompletionConditionTypeVariant16), TypeInfoPropertyName = "CompletionConditionTypeVariant162")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.CompletionConditionTypeVariant17), TypeInfoPropertyName = "CompletionConditionTypeVariant172")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.CompletionCondition))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutStepTargetType), TypeInfoPropertyName = "WorkoutStepTargetType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutStepTargetTypeVariant1), TypeInfoPropertyName = "WorkoutStepTargetTypeVariant12")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutStepTargetTypeVariant1), TypeInfoPropertyName = "WorkoutStepTargetTypeVariant12_3")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutStepTargetTypeVariant2), TypeInfoPropertyName = "WorkoutStepTargetTypeVariant22")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutStepTargetTypeVariant3), TypeInfoPropertyName = "WorkoutStepTargetTypeVariant32")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutStepTargetTypeVariant4), TypeInfoPropertyName = "WorkoutStepTargetTypeVariant42")] @@ -671,6 +666,14 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutStepTargetTypeVariant9), TypeInfoPropertyName = "WorkoutStepTargetTypeVariant92")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutStepTargetTypeVariant10), TypeInfoPropertyName = "WorkoutStepTargetTypeVariant102")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutStepTargetTypeVariant11), TypeInfoPropertyName = "WorkoutStepTargetTypeVariant112")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutStepTargetTypeVariant12), TypeInfoPropertyName = "WorkoutStepTargetTypeVariant122")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutStepTargetTypeVariant13), TypeInfoPropertyName = "WorkoutStepTargetTypeVariant132")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutStepTargetTypeVariant14), TypeInfoPropertyName = "WorkoutStepTargetTypeVariant142")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutStepTargetTypeVariant15), TypeInfoPropertyName = "WorkoutStepTargetTypeVariant152")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutStepTargetTypeVariant16), TypeInfoPropertyName = "WorkoutStepTargetTypeVariant162")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutStepTargetTypeVariant17), TypeInfoPropertyName = "WorkoutStepTargetTypeVariant172")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutStepTargetTypeVariant18), TypeInfoPropertyName = "WorkoutStepTargetTypeVariant182")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutStepTargetTypeVariant19), TypeInfoPropertyName = "WorkoutStepTargetTypeVariant192")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.IntensityTarget))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutStepIntensity), TypeInfoPropertyName = "WorkoutStepIntensity2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutStepIntensityVariant1), TypeInfoPropertyName = "WorkoutStepIntensityVariant12")] @@ -711,7 +714,23 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutSportVariant1), TypeInfoPropertyName = "WorkoutSportVariant12_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutSportVariant2), TypeInfoPropertyName = "WorkoutSportVariant22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutSportVariant3), TypeInfoPropertyName = "WorkoutSportVariant32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutSportVariant4), TypeInfoPropertyName = "WorkoutSportVariant42")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutSportVariant5), TypeInfoPropertyName = "WorkoutSportVariant52")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutSportVariant6), TypeInfoPropertyName = "WorkoutSportVariant62")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutSportVariant7), TypeInfoPropertyName = "WorkoutSportVariant72")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutSportVariant8), TypeInfoPropertyName = "WorkoutSportVariant82")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutSportVariant9), TypeInfoPropertyName = "WorkoutSportVariant92")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutSportVariant10), TypeInfoPropertyName = "WorkoutSportVariant102")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutSportVariant11), TypeInfoPropertyName = "WorkoutSportVariant112")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutSportVariant12), TypeInfoPropertyName = "WorkoutSportVariant122")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutSportVariant13), TypeInfoPropertyName = "WorkoutSportVariant132")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutSportVariant14), TypeInfoPropertyName = "WorkoutSportVariant142")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutSportVariant15), TypeInfoPropertyName = "WorkoutSportVariant152")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.AthleteMetrics))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.PlannedWorkoutSportEnum), TypeInfoPropertyName = "PlannedWorkoutSportEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.PlannedWorkoutDetailsMetadata))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.PlannedWorkoutDetailsStepDuration))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.PlannedWorkoutDetailsStepTarget))] @@ -822,6 +841,7 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutSport?), TypeInfoPropertyName = "NullableWorkoutSport2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.PlannedWorkoutSport?), TypeInfoPropertyName = "NullablePlannedWorkoutSport2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.DataSentToWebhookStatus?), TypeInfoPropertyName = "NullableDataSentToWebhookStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.LabReportWebhook?), TypeInfoPropertyName = "NullableLabReportWebhook2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WebhookEventType?), TypeInfoPropertyName = "NullableWebhookEventType2")] @@ -1006,6 +1026,18 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.StrengthTarget?), TypeInfoPropertyName = "NullableStrengthTarget2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.StrengthTargetVariant1?), TypeInfoPropertyName = "NullableStrengthTargetVariant12_3")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.StrengthTargetVariant2?), TypeInfoPropertyName = "NullableStrengthTargetVariant22_3")] + internal sealed partial class SourceGenerationContextChunk1 : global::System.Text.Json.Serialization.JsonSerializerContext + { + } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, + Converters = new global::System.Type[] + { + })] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.StrengthTargetVariant3?), TypeInfoPropertyName = "NullableStrengthTargetVariant32")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.StrengthTargetVariant4?), TypeInfoPropertyName = "NullableStrengthTargetVariant42")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.StrengthTargetVariant5?), TypeInfoPropertyName = "NullableStrengthTargetVariant52")] @@ -1026,18 +1058,6 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.StrengthTargetVariant20?), TypeInfoPropertyName = "NullableStrengthTargetVariant202")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.StrengthTargetVariant21?), TypeInfoPropertyName = "NullableStrengthTargetVariant212")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.StrengthTargetVariant22?), TypeInfoPropertyName = "NullableStrengthTargetVariant222")] - internal sealed partial class SourceGenerationContextChunk1 : global::System.Text.Json.Serialization.JsonSerializerContext - { - } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - Converters = new global::System.Type[] - { - })] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.StrengthTargetVariant23?), TypeInfoPropertyName = "NullableStrengthTargetVariant232")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.StrengthTargetVariant24?), TypeInfoPropertyName = "NullableStrengthTargetVariant242")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.StrengthTargetVariant25?), TypeInfoPropertyName = "NullableStrengthTargetVariant252")] @@ -1193,26 +1213,11 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.StrengthSetTypeVariant5?), TypeInfoPropertyName = "NullableStrengthSetTypeVariant52")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.StrengthSetTypeVariant6?), TypeInfoPropertyName = "NullableStrengthSetTypeVariant62")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.StrengthSetTypeVariant7?), TypeInfoPropertyName = "NullableStrengthSetTypeVariant72")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutSportVariant1?), TypeInfoPropertyName = "NullableWorkoutSportVariant12_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutSportVariant2?), TypeInfoPropertyName = "NullableWorkoutSportVariant22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutSportVariant3?), TypeInfoPropertyName = "NullableWorkoutSportVariant32")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutSportVariant4?), TypeInfoPropertyName = "NullableWorkoutSportVariant42")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutSportVariant5?), TypeInfoPropertyName = "NullableWorkoutSportVariant52")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutSportVariant6?), TypeInfoPropertyName = "NullableWorkoutSportVariant62")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutSportVariant7?), TypeInfoPropertyName = "NullableWorkoutSportVariant72")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutSportVariant8?), TypeInfoPropertyName = "NullableWorkoutSportVariant82")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutSportVariant9?), TypeInfoPropertyName = "NullableWorkoutSportVariant92")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutSportVariant10?), TypeInfoPropertyName = "NullableWorkoutSportVariant102")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutSportVariant11?), TypeInfoPropertyName = "NullableWorkoutSportVariant112")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutSportVariant12?), TypeInfoPropertyName = "NullableWorkoutSportVariant122")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutSportVariant13?), TypeInfoPropertyName = "NullableWorkoutSportVariant132")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutSportVariant14?), TypeInfoPropertyName = "NullableWorkoutSportVariant142")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutSportVariant15?), TypeInfoPropertyName = "NullableWorkoutSportVariant152")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.EnvironmentTypeVariant1?), TypeInfoPropertyName = "NullableEnvironmentTypeVariant12")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.EnvironmentTypeVariant2?), TypeInfoPropertyName = "NullableEnvironmentTypeVariant22")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.EnvironmentTypeVariant3?), TypeInfoPropertyName = "NullableEnvironmentTypeVariant32")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.CompletionConditionType?), TypeInfoPropertyName = "NullableCompletionConditionType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.CompletionConditionTypeVariant1?), TypeInfoPropertyName = "NullableCompletionConditionTypeVariant12")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.CompletionConditionTypeVariant1?), TypeInfoPropertyName = "NullableCompletionConditionTypeVariant12_3")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.CompletionConditionTypeVariant2?), TypeInfoPropertyName = "NullableCompletionConditionTypeVariant22")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.CompletionConditionTypeVariant3?), TypeInfoPropertyName = "NullableCompletionConditionTypeVariant32")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.CompletionConditionTypeVariant4?), TypeInfoPropertyName = "NullableCompletionConditionTypeVariant42")] @@ -1223,8 +1228,14 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.CompletionConditionTypeVariant9?), TypeInfoPropertyName = "NullableCompletionConditionTypeVariant92")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.CompletionConditionTypeVariant10?), TypeInfoPropertyName = "NullableCompletionConditionTypeVariant102")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.CompletionConditionTypeVariant11?), TypeInfoPropertyName = "NullableCompletionConditionTypeVariant112")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.CompletionConditionTypeVariant12?), TypeInfoPropertyName = "NullableCompletionConditionTypeVariant122")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.CompletionConditionTypeVariant13?), TypeInfoPropertyName = "NullableCompletionConditionTypeVariant132")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.CompletionConditionTypeVariant14?), TypeInfoPropertyName = "NullableCompletionConditionTypeVariant142")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.CompletionConditionTypeVariant15?), TypeInfoPropertyName = "NullableCompletionConditionTypeVariant152")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.CompletionConditionTypeVariant16?), TypeInfoPropertyName = "NullableCompletionConditionTypeVariant162")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.CompletionConditionTypeVariant17?), TypeInfoPropertyName = "NullableCompletionConditionTypeVariant172")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutStepTargetType?), TypeInfoPropertyName = "NullableWorkoutStepTargetType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutStepTargetTypeVariant1?), TypeInfoPropertyName = "NullableWorkoutStepTargetTypeVariant12")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutStepTargetTypeVariant1?), TypeInfoPropertyName = "NullableWorkoutStepTargetTypeVariant12_3")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutStepTargetTypeVariant2?), TypeInfoPropertyName = "NullableWorkoutStepTargetTypeVariant22")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutStepTargetTypeVariant3?), TypeInfoPropertyName = "NullableWorkoutStepTargetTypeVariant32")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutStepTargetTypeVariant4?), TypeInfoPropertyName = "NullableWorkoutStepTargetTypeVariant42")] @@ -1235,6 +1246,14 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutStepTargetTypeVariant9?), TypeInfoPropertyName = "NullableWorkoutStepTargetTypeVariant92")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutStepTargetTypeVariant10?), TypeInfoPropertyName = "NullableWorkoutStepTargetTypeVariant102")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutStepTargetTypeVariant11?), TypeInfoPropertyName = "NullableWorkoutStepTargetTypeVariant112")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutStepTargetTypeVariant12?), TypeInfoPropertyName = "NullableWorkoutStepTargetTypeVariant122")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutStepTargetTypeVariant13?), TypeInfoPropertyName = "NullableWorkoutStepTargetTypeVariant132")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutStepTargetTypeVariant14?), TypeInfoPropertyName = "NullableWorkoutStepTargetTypeVariant142")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutStepTargetTypeVariant15?), TypeInfoPropertyName = "NullableWorkoutStepTargetTypeVariant152")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutStepTargetTypeVariant16?), TypeInfoPropertyName = "NullableWorkoutStepTargetTypeVariant162")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutStepTargetTypeVariant17?), TypeInfoPropertyName = "NullableWorkoutStepTargetTypeVariant172")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutStepTargetTypeVariant18?), TypeInfoPropertyName = "NullableWorkoutStepTargetTypeVariant182")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutStepTargetTypeVariant19?), TypeInfoPropertyName = "NullableWorkoutStepTargetTypeVariant192")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutStepIntensity?), TypeInfoPropertyName = "NullableWorkoutStepIntensity2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutStepIntensityVariant1?), TypeInfoPropertyName = "NullableWorkoutStepIntensityVariant12")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutStepIntensityVariant2?), TypeInfoPropertyName = "NullableWorkoutStepIntensityVariant22")] @@ -1266,6 +1285,22 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.SwimEquipmentTypeVariant4?), TypeInfoPropertyName = "NullableSwimEquipmentTypeVariant42")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.SwimEquipmentTypeVariant5?), TypeInfoPropertyName = "NullableSwimEquipmentTypeVariant52")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.SwimEquipmentTypeVariant6?), TypeInfoPropertyName = "NullableSwimEquipmentTypeVariant62")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutSportVariant1?), TypeInfoPropertyName = "NullableWorkoutSportVariant12_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutSportVariant2?), TypeInfoPropertyName = "NullableWorkoutSportVariant22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutSportVariant3?), TypeInfoPropertyName = "NullableWorkoutSportVariant32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutSportVariant4?), TypeInfoPropertyName = "NullableWorkoutSportVariant42")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutSportVariant5?), TypeInfoPropertyName = "NullableWorkoutSportVariant52")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutSportVariant6?), TypeInfoPropertyName = "NullableWorkoutSportVariant62")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutSportVariant7?), TypeInfoPropertyName = "NullableWorkoutSportVariant72")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutSportVariant8?), TypeInfoPropertyName = "NullableWorkoutSportVariant82")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutSportVariant9?), TypeInfoPropertyName = "NullableWorkoutSportVariant92")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutSportVariant10?), TypeInfoPropertyName = "NullableWorkoutSportVariant102")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutSportVariant11?), TypeInfoPropertyName = "NullableWorkoutSportVariant112")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutSportVariant12?), TypeInfoPropertyName = "NullableWorkoutSportVariant122")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutSportVariant13?), TypeInfoPropertyName = "NullableWorkoutSportVariant132")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutSportVariant14?), TypeInfoPropertyName = "NullableWorkoutSportVariant142")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.WorkoutSportVariant15?), TypeInfoPropertyName = "NullableWorkoutSportVariant152")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.PlannedWorkoutSportEnum?), TypeInfoPropertyName = "NullablePlannedWorkoutSportEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.AuthSuccessEventType?), TypeInfoPropertyName = "NullableAuthSuccessEventType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.AuthSuccessEventStatus?), TypeInfoPropertyName = "NullableAuthSuccessEventStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.AuthErrorEventType?), TypeInfoPropertyName = "NullableAuthErrorEventType2")] @@ -1317,6 +1352,7 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.UserListResponseStatus?), TypeInfoPropertyName = "NullableUserListResponseStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.IntegrationsListResponseStatus?), TypeInfoPropertyName = "NullableIntegrationsListResponseStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] @@ -1450,7 +1486,6 @@ static void AddConverters(global::System.Text.Json.JsonSerializerOptions options options.Converters.Add(new global::Terra.JsonConverters.StrengthSourceJsonConverter()); options.Converters.Add(new global::Terra.JsonConverters.StrengthLoadTypeJsonConverter()); options.Converters.Add(new global::Terra.JsonConverters.StrengthSetTypeJsonConverter()); - options.Converters.Add(new global::Terra.JsonConverters.WorkoutSportJsonConverter()); options.Converters.Add(new global::Terra.JsonConverters.EnvironmentTypeJsonConverter()); options.Converters.Add(new global::Terra.JsonConverters.CompletionConditionTypeJsonConverter()); options.Converters.Add(new global::Terra.JsonConverters.WorkoutStepTargetTypeJsonConverter()); @@ -1460,6 +1495,8 @@ static void AddConverters(global::System.Text.Json.JsonSerializerOptions options options.Converters.Add(new global::Terra.JsonConverters.SwimStrokeTypeJsonConverter()); options.Converters.Add(new global::Terra.JsonConverters.DrillTypeJsonConverter()); options.Converters.Add(new global::Terra.JsonConverters.SwimEquipmentTypeJsonConverter()); + options.Converters.Add(new global::Terra.JsonConverters.WorkoutSportJsonConverter()); + options.Converters.Add(new global::Terra.JsonConverters.PlannedWorkoutSportJsonConverter()); options.Converters.Add(new global::Terra.JsonConverters.WebhookEventTypeJsonConverter()); options.Converters.Add(new global::Terra.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::Terra.JsonConverters.OneOfJsonConverter()); @@ -2860,66 +2897,6 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::Terra.StrengthSetTypeVariant7?) - || typeToConvert == typeof(global::Terra.WorkoutSportVariant1) - - || typeToConvert == typeof(global::Terra.WorkoutSportVariant1?) - - || typeToConvert == typeof(global::Terra.WorkoutSportVariant2) - - || typeToConvert == typeof(global::Terra.WorkoutSportVariant2?) - - || typeToConvert == typeof(global::Terra.WorkoutSportVariant3) - - || typeToConvert == typeof(global::Terra.WorkoutSportVariant3?) - - || typeToConvert == typeof(global::Terra.WorkoutSportVariant4) - - || typeToConvert == typeof(global::Terra.WorkoutSportVariant4?) - - || typeToConvert == typeof(global::Terra.WorkoutSportVariant5) - - || typeToConvert == typeof(global::Terra.WorkoutSportVariant5?) - - || typeToConvert == typeof(global::Terra.WorkoutSportVariant6) - - || typeToConvert == typeof(global::Terra.WorkoutSportVariant6?) - - || typeToConvert == typeof(global::Terra.WorkoutSportVariant7) - - || typeToConvert == typeof(global::Terra.WorkoutSportVariant7?) - - || typeToConvert == typeof(global::Terra.WorkoutSportVariant8) - - || typeToConvert == typeof(global::Terra.WorkoutSportVariant8?) - - || typeToConvert == typeof(global::Terra.WorkoutSportVariant9) - - || typeToConvert == typeof(global::Terra.WorkoutSportVariant9?) - - || typeToConvert == typeof(global::Terra.WorkoutSportVariant10) - - || typeToConvert == typeof(global::Terra.WorkoutSportVariant10?) - - || typeToConvert == typeof(global::Terra.WorkoutSportVariant11) - - || typeToConvert == typeof(global::Terra.WorkoutSportVariant11?) - - || typeToConvert == typeof(global::Terra.WorkoutSportVariant12) - - || typeToConvert == typeof(global::Terra.WorkoutSportVariant12?) - - || typeToConvert == typeof(global::Terra.WorkoutSportVariant13) - - || typeToConvert == typeof(global::Terra.WorkoutSportVariant13?) - - || typeToConvert == typeof(global::Terra.WorkoutSportVariant14) - - || typeToConvert == typeof(global::Terra.WorkoutSportVariant14?) - - || typeToConvert == typeof(global::Terra.WorkoutSportVariant15) - - || typeToConvert == typeof(global::Terra.WorkoutSportVariant15?) - || typeToConvert == typeof(global::Terra.EnvironmentTypeVariant1) || typeToConvert == typeof(global::Terra.EnvironmentTypeVariant1?) @@ -2976,6 +2953,30 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::Terra.CompletionConditionTypeVariant11?) + || typeToConvert == typeof(global::Terra.CompletionConditionTypeVariant12) + + || typeToConvert == typeof(global::Terra.CompletionConditionTypeVariant12?) + + || typeToConvert == typeof(global::Terra.CompletionConditionTypeVariant13) + + || typeToConvert == typeof(global::Terra.CompletionConditionTypeVariant13?) + + || typeToConvert == typeof(global::Terra.CompletionConditionTypeVariant14) + + || typeToConvert == typeof(global::Terra.CompletionConditionTypeVariant14?) + + || typeToConvert == typeof(global::Terra.CompletionConditionTypeVariant15) + + || typeToConvert == typeof(global::Terra.CompletionConditionTypeVariant15?) + + || typeToConvert == typeof(global::Terra.CompletionConditionTypeVariant16) + + || typeToConvert == typeof(global::Terra.CompletionConditionTypeVariant16?) + + || typeToConvert == typeof(global::Terra.CompletionConditionTypeVariant17) + + || typeToConvert == typeof(global::Terra.CompletionConditionTypeVariant17?) + || typeToConvert == typeof(global::Terra.WorkoutStepTargetTypeVariant1) || typeToConvert == typeof(global::Terra.WorkoutStepTargetTypeVariant1?) @@ -3020,6 +3021,38 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::Terra.WorkoutStepTargetTypeVariant11?) + || typeToConvert == typeof(global::Terra.WorkoutStepTargetTypeVariant12) + + || typeToConvert == typeof(global::Terra.WorkoutStepTargetTypeVariant12?) + + || typeToConvert == typeof(global::Terra.WorkoutStepTargetTypeVariant13) + + || typeToConvert == typeof(global::Terra.WorkoutStepTargetTypeVariant13?) + + || typeToConvert == typeof(global::Terra.WorkoutStepTargetTypeVariant14) + + || typeToConvert == typeof(global::Terra.WorkoutStepTargetTypeVariant14?) + + || typeToConvert == typeof(global::Terra.WorkoutStepTargetTypeVariant15) + + || typeToConvert == typeof(global::Terra.WorkoutStepTargetTypeVariant15?) + + || typeToConvert == typeof(global::Terra.WorkoutStepTargetTypeVariant16) + + || typeToConvert == typeof(global::Terra.WorkoutStepTargetTypeVariant16?) + + || typeToConvert == typeof(global::Terra.WorkoutStepTargetTypeVariant17) + + || typeToConvert == typeof(global::Terra.WorkoutStepTargetTypeVariant17?) + + || typeToConvert == typeof(global::Terra.WorkoutStepTargetTypeVariant18) + + || typeToConvert == typeof(global::Terra.WorkoutStepTargetTypeVariant18?) + + || typeToConvert == typeof(global::Terra.WorkoutStepTargetTypeVariant19) + + || typeToConvert == typeof(global::Terra.WorkoutStepTargetTypeVariant19?) + || typeToConvert == typeof(global::Terra.WorkoutStepIntensityVariant1) || typeToConvert == typeof(global::Terra.WorkoutStepIntensityVariant1?) @@ -3120,6 +3153,70 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::Terra.SwimEquipmentTypeVariant6?) + || typeToConvert == typeof(global::Terra.WorkoutSportVariant1) + + || typeToConvert == typeof(global::Terra.WorkoutSportVariant1?) + + || typeToConvert == typeof(global::Terra.WorkoutSportVariant2) + + || typeToConvert == typeof(global::Terra.WorkoutSportVariant2?) + + || typeToConvert == typeof(global::Terra.WorkoutSportVariant3) + + || typeToConvert == typeof(global::Terra.WorkoutSportVariant3?) + + || typeToConvert == typeof(global::Terra.WorkoutSportVariant4) + + || typeToConvert == typeof(global::Terra.WorkoutSportVariant4?) + + || typeToConvert == typeof(global::Terra.WorkoutSportVariant5) + + || typeToConvert == typeof(global::Terra.WorkoutSportVariant5?) + + || typeToConvert == typeof(global::Terra.WorkoutSportVariant6) + + || typeToConvert == typeof(global::Terra.WorkoutSportVariant6?) + + || typeToConvert == typeof(global::Terra.WorkoutSportVariant7) + + || typeToConvert == typeof(global::Terra.WorkoutSportVariant7?) + + || typeToConvert == typeof(global::Terra.WorkoutSportVariant8) + + || typeToConvert == typeof(global::Terra.WorkoutSportVariant8?) + + || typeToConvert == typeof(global::Terra.WorkoutSportVariant9) + + || typeToConvert == typeof(global::Terra.WorkoutSportVariant9?) + + || typeToConvert == typeof(global::Terra.WorkoutSportVariant10) + + || typeToConvert == typeof(global::Terra.WorkoutSportVariant10?) + + || typeToConvert == typeof(global::Terra.WorkoutSportVariant11) + + || typeToConvert == typeof(global::Terra.WorkoutSportVariant11?) + + || typeToConvert == typeof(global::Terra.WorkoutSportVariant12) + + || typeToConvert == typeof(global::Terra.WorkoutSportVariant12?) + + || typeToConvert == typeof(global::Terra.WorkoutSportVariant13) + + || typeToConvert == typeof(global::Terra.WorkoutSportVariant13?) + + || typeToConvert == typeof(global::Terra.WorkoutSportVariant14) + + || typeToConvert == typeof(global::Terra.WorkoutSportVariant14?) + + || typeToConvert == typeof(global::Terra.WorkoutSportVariant15) + + || typeToConvert == typeof(global::Terra.WorkoutSportVariant15?) + + || typeToConvert == typeof(global::Terra.PlannedWorkoutSportEnum) + + || typeToConvert == typeof(global::Terra.PlannedWorkoutSportEnum?) + || typeToConvert == typeof(global::Terra.AuthSuccessEventType) || typeToConvert == typeof(global::Terra.AuthSuccessEventType?) @@ -6675,167 +6772,17 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::Terra.JsonConverters.StrengthSetTypeVariant7NullableJsonConverter(); } - if (typeToConvert == typeof(global::Terra.WorkoutSportVariant1)) + if (typeToConvert == typeof(global::Terra.EnvironmentTypeVariant1)) { - return new global::Terra.JsonConverters.WorkoutSportVariant1JsonConverter(); + return new global::Terra.JsonConverters.EnvironmentTypeVariant1JsonConverter(); } - if (typeToConvert == typeof(global::Terra.WorkoutSportVariant1?)) + if (typeToConvert == typeof(global::Terra.EnvironmentTypeVariant1?)) { - return new global::Terra.JsonConverters.WorkoutSportVariant1NullableJsonConverter(); + return new global::Terra.JsonConverters.EnvironmentTypeVariant1NullableJsonConverter(); } - if (typeToConvert == typeof(global::Terra.WorkoutSportVariant2)) - { - return new global::Terra.JsonConverters.WorkoutSportVariant2JsonConverter(); - } - - if (typeToConvert == typeof(global::Terra.WorkoutSportVariant2?)) - { - return new global::Terra.JsonConverters.WorkoutSportVariant2NullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Terra.WorkoutSportVariant3)) - { - return new global::Terra.JsonConverters.WorkoutSportVariant3JsonConverter(); - } - - if (typeToConvert == typeof(global::Terra.WorkoutSportVariant3?)) - { - return new global::Terra.JsonConverters.WorkoutSportVariant3NullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Terra.WorkoutSportVariant4)) - { - return new global::Terra.JsonConverters.WorkoutSportVariant4JsonConverter(); - } - - if (typeToConvert == typeof(global::Terra.WorkoutSportVariant4?)) - { - return new global::Terra.JsonConverters.WorkoutSportVariant4NullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Terra.WorkoutSportVariant5)) - { - return new global::Terra.JsonConverters.WorkoutSportVariant5JsonConverter(); - } - - if (typeToConvert == typeof(global::Terra.WorkoutSportVariant5?)) - { - return new global::Terra.JsonConverters.WorkoutSportVariant5NullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Terra.WorkoutSportVariant6)) - { - return new global::Terra.JsonConverters.WorkoutSportVariant6JsonConverter(); - } - - if (typeToConvert == typeof(global::Terra.WorkoutSportVariant6?)) - { - return new global::Terra.JsonConverters.WorkoutSportVariant6NullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Terra.WorkoutSportVariant7)) - { - return new global::Terra.JsonConverters.WorkoutSportVariant7JsonConverter(); - } - - if (typeToConvert == typeof(global::Terra.WorkoutSportVariant7?)) - { - return new global::Terra.JsonConverters.WorkoutSportVariant7NullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Terra.WorkoutSportVariant8)) - { - return new global::Terra.JsonConverters.WorkoutSportVariant8JsonConverter(); - } - - if (typeToConvert == typeof(global::Terra.WorkoutSportVariant8?)) - { - return new global::Terra.JsonConverters.WorkoutSportVariant8NullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Terra.WorkoutSportVariant9)) - { - return new global::Terra.JsonConverters.WorkoutSportVariant9JsonConverter(); - } - - if (typeToConvert == typeof(global::Terra.WorkoutSportVariant9?)) - { - return new global::Terra.JsonConverters.WorkoutSportVariant9NullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Terra.WorkoutSportVariant10)) - { - return new global::Terra.JsonConverters.WorkoutSportVariant10JsonConverter(); - } - - if (typeToConvert == typeof(global::Terra.WorkoutSportVariant10?)) - { - return new global::Terra.JsonConverters.WorkoutSportVariant10NullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Terra.WorkoutSportVariant11)) - { - return new global::Terra.JsonConverters.WorkoutSportVariant11JsonConverter(); - } - - if (typeToConvert == typeof(global::Terra.WorkoutSportVariant11?)) - { - return new global::Terra.JsonConverters.WorkoutSportVariant11NullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Terra.WorkoutSportVariant12)) - { - return new global::Terra.JsonConverters.WorkoutSportVariant12JsonConverter(); - } - - if (typeToConvert == typeof(global::Terra.WorkoutSportVariant12?)) - { - return new global::Terra.JsonConverters.WorkoutSportVariant12NullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Terra.WorkoutSportVariant13)) - { - return new global::Terra.JsonConverters.WorkoutSportVariant13JsonConverter(); - } - - if (typeToConvert == typeof(global::Terra.WorkoutSportVariant13?)) - { - return new global::Terra.JsonConverters.WorkoutSportVariant13NullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Terra.WorkoutSportVariant14)) - { - return new global::Terra.JsonConverters.WorkoutSportVariant14JsonConverter(); - } - - if (typeToConvert == typeof(global::Terra.WorkoutSportVariant14?)) - { - return new global::Terra.JsonConverters.WorkoutSportVariant14NullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Terra.WorkoutSportVariant15)) - { - return new global::Terra.JsonConverters.WorkoutSportVariant15JsonConverter(); - } - - if (typeToConvert == typeof(global::Terra.WorkoutSportVariant15?)) - { - return new global::Terra.JsonConverters.WorkoutSportVariant15NullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Terra.EnvironmentTypeVariant1)) - { - return new global::Terra.JsonConverters.EnvironmentTypeVariant1JsonConverter(); - } - - if (typeToConvert == typeof(global::Terra.EnvironmentTypeVariant1?)) - { - return new global::Terra.JsonConverters.EnvironmentTypeVariant1NullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Terra.EnvironmentTypeVariant2)) + if (typeToConvert == typeof(global::Terra.EnvironmentTypeVariant2)) { return new global::Terra.JsonConverters.EnvironmentTypeVariant2JsonConverter(); } @@ -6965,6 +6912,66 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::Terra.JsonConverters.CompletionConditionTypeVariant11NullableJsonConverter(); } + if (typeToConvert == typeof(global::Terra.CompletionConditionTypeVariant12)) + { + return new global::Terra.JsonConverters.CompletionConditionTypeVariant12JsonConverter(); + } + + if (typeToConvert == typeof(global::Terra.CompletionConditionTypeVariant12?)) + { + return new global::Terra.JsonConverters.CompletionConditionTypeVariant12NullableJsonConverter(); + } + + if (typeToConvert == typeof(global::Terra.CompletionConditionTypeVariant13)) + { + return new global::Terra.JsonConverters.CompletionConditionTypeVariant13JsonConverter(); + } + + if (typeToConvert == typeof(global::Terra.CompletionConditionTypeVariant13?)) + { + return new global::Terra.JsonConverters.CompletionConditionTypeVariant13NullableJsonConverter(); + } + + if (typeToConvert == typeof(global::Terra.CompletionConditionTypeVariant14)) + { + return new global::Terra.JsonConverters.CompletionConditionTypeVariant14JsonConverter(); + } + + if (typeToConvert == typeof(global::Terra.CompletionConditionTypeVariant14?)) + { + return new global::Terra.JsonConverters.CompletionConditionTypeVariant14NullableJsonConverter(); + } + + if (typeToConvert == typeof(global::Terra.CompletionConditionTypeVariant15)) + { + return new global::Terra.JsonConverters.CompletionConditionTypeVariant15JsonConverter(); + } + + if (typeToConvert == typeof(global::Terra.CompletionConditionTypeVariant15?)) + { + return new global::Terra.JsonConverters.CompletionConditionTypeVariant15NullableJsonConverter(); + } + + if (typeToConvert == typeof(global::Terra.CompletionConditionTypeVariant16)) + { + return new global::Terra.JsonConverters.CompletionConditionTypeVariant16JsonConverter(); + } + + if (typeToConvert == typeof(global::Terra.CompletionConditionTypeVariant16?)) + { + return new global::Terra.JsonConverters.CompletionConditionTypeVariant16NullableJsonConverter(); + } + + if (typeToConvert == typeof(global::Terra.CompletionConditionTypeVariant17)) + { + return new global::Terra.JsonConverters.CompletionConditionTypeVariant17JsonConverter(); + } + + if (typeToConvert == typeof(global::Terra.CompletionConditionTypeVariant17?)) + { + return new global::Terra.JsonConverters.CompletionConditionTypeVariant17NullableJsonConverter(); + } + if (typeToConvert == typeof(global::Terra.WorkoutStepTargetTypeVariant1)) { return new global::Terra.JsonConverters.WorkoutStepTargetTypeVariant1JsonConverter(); @@ -7075,6 +7082,86 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::Terra.JsonConverters.WorkoutStepTargetTypeVariant11NullableJsonConverter(); } + if (typeToConvert == typeof(global::Terra.WorkoutStepTargetTypeVariant12)) + { + return new global::Terra.JsonConverters.WorkoutStepTargetTypeVariant12JsonConverter(); + } + + if (typeToConvert == typeof(global::Terra.WorkoutStepTargetTypeVariant12?)) + { + return new global::Terra.JsonConverters.WorkoutStepTargetTypeVariant12NullableJsonConverter(); + } + + if (typeToConvert == typeof(global::Terra.WorkoutStepTargetTypeVariant13)) + { + return new global::Terra.JsonConverters.WorkoutStepTargetTypeVariant13JsonConverter(); + } + + if (typeToConvert == typeof(global::Terra.WorkoutStepTargetTypeVariant13?)) + { + return new global::Terra.JsonConverters.WorkoutStepTargetTypeVariant13NullableJsonConverter(); + } + + if (typeToConvert == typeof(global::Terra.WorkoutStepTargetTypeVariant14)) + { + return new global::Terra.JsonConverters.WorkoutStepTargetTypeVariant14JsonConverter(); + } + + if (typeToConvert == typeof(global::Terra.WorkoutStepTargetTypeVariant14?)) + { + return new global::Terra.JsonConverters.WorkoutStepTargetTypeVariant14NullableJsonConverter(); + } + + if (typeToConvert == typeof(global::Terra.WorkoutStepTargetTypeVariant15)) + { + return new global::Terra.JsonConverters.WorkoutStepTargetTypeVariant15JsonConverter(); + } + + if (typeToConvert == typeof(global::Terra.WorkoutStepTargetTypeVariant15?)) + { + return new global::Terra.JsonConverters.WorkoutStepTargetTypeVariant15NullableJsonConverter(); + } + + if (typeToConvert == typeof(global::Terra.WorkoutStepTargetTypeVariant16)) + { + return new global::Terra.JsonConverters.WorkoutStepTargetTypeVariant16JsonConverter(); + } + + if (typeToConvert == typeof(global::Terra.WorkoutStepTargetTypeVariant16?)) + { + return new global::Terra.JsonConverters.WorkoutStepTargetTypeVariant16NullableJsonConverter(); + } + + if (typeToConvert == typeof(global::Terra.WorkoutStepTargetTypeVariant17)) + { + return new global::Terra.JsonConverters.WorkoutStepTargetTypeVariant17JsonConverter(); + } + + if (typeToConvert == typeof(global::Terra.WorkoutStepTargetTypeVariant17?)) + { + return new global::Terra.JsonConverters.WorkoutStepTargetTypeVariant17NullableJsonConverter(); + } + + if (typeToConvert == typeof(global::Terra.WorkoutStepTargetTypeVariant18)) + { + return new global::Terra.JsonConverters.WorkoutStepTargetTypeVariant18JsonConverter(); + } + + if (typeToConvert == typeof(global::Terra.WorkoutStepTargetTypeVariant18?)) + { + return new global::Terra.JsonConverters.WorkoutStepTargetTypeVariant18NullableJsonConverter(); + } + + if (typeToConvert == typeof(global::Terra.WorkoutStepTargetTypeVariant19)) + { + return new global::Terra.JsonConverters.WorkoutStepTargetTypeVariant19JsonConverter(); + } + + if (typeToConvert == typeof(global::Terra.WorkoutStepTargetTypeVariant19?)) + { + return new global::Terra.JsonConverters.WorkoutStepTargetTypeVariant19NullableJsonConverter(); + } + if (typeToConvert == typeof(global::Terra.WorkoutStepIntensityVariant1)) { return new global::Terra.JsonConverters.WorkoutStepIntensityVariant1JsonConverter(); @@ -7325,6 +7412,166 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::Terra.JsonConverters.SwimEquipmentTypeVariant6NullableJsonConverter(); } + if (typeToConvert == typeof(global::Terra.WorkoutSportVariant1)) + { + return new global::Terra.JsonConverters.WorkoutSportVariant1JsonConverter(); + } + + if (typeToConvert == typeof(global::Terra.WorkoutSportVariant1?)) + { + return new global::Terra.JsonConverters.WorkoutSportVariant1NullableJsonConverter(); + } + + if (typeToConvert == typeof(global::Terra.WorkoutSportVariant2)) + { + return new global::Terra.JsonConverters.WorkoutSportVariant2JsonConverter(); + } + + if (typeToConvert == typeof(global::Terra.WorkoutSportVariant2?)) + { + return new global::Terra.JsonConverters.WorkoutSportVariant2NullableJsonConverter(); + } + + if (typeToConvert == typeof(global::Terra.WorkoutSportVariant3)) + { + return new global::Terra.JsonConverters.WorkoutSportVariant3JsonConverter(); + } + + if (typeToConvert == typeof(global::Terra.WorkoutSportVariant3?)) + { + return new global::Terra.JsonConverters.WorkoutSportVariant3NullableJsonConverter(); + } + + if (typeToConvert == typeof(global::Terra.WorkoutSportVariant4)) + { + return new global::Terra.JsonConverters.WorkoutSportVariant4JsonConverter(); + } + + if (typeToConvert == typeof(global::Terra.WorkoutSportVariant4?)) + { + return new global::Terra.JsonConverters.WorkoutSportVariant4NullableJsonConverter(); + } + + if (typeToConvert == typeof(global::Terra.WorkoutSportVariant5)) + { + return new global::Terra.JsonConverters.WorkoutSportVariant5JsonConverter(); + } + + if (typeToConvert == typeof(global::Terra.WorkoutSportVariant5?)) + { + return new global::Terra.JsonConverters.WorkoutSportVariant5NullableJsonConverter(); + } + + if (typeToConvert == typeof(global::Terra.WorkoutSportVariant6)) + { + return new global::Terra.JsonConverters.WorkoutSportVariant6JsonConverter(); + } + + if (typeToConvert == typeof(global::Terra.WorkoutSportVariant6?)) + { + return new global::Terra.JsonConverters.WorkoutSportVariant6NullableJsonConverter(); + } + + if (typeToConvert == typeof(global::Terra.WorkoutSportVariant7)) + { + return new global::Terra.JsonConverters.WorkoutSportVariant7JsonConverter(); + } + + if (typeToConvert == typeof(global::Terra.WorkoutSportVariant7?)) + { + return new global::Terra.JsonConverters.WorkoutSportVariant7NullableJsonConverter(); + } + + if (typeToConvert == typeof(global::Terra.WorkoutSportVariant8)) + { + return new global::Terra.JsonConverters.WorkoutSportVariant8JsonConverter(); + } + + if (typeToConvert == typeof(global::Terra.WorkoutSportVariant8?)) + { + return new global::Terra.JsonConverters.WorkoutSportVariant8NullableJsonConverter(); + } + + if (typeToConvert == typeof(global::Terra.WorkoutSportVariant9)) + { + return new global::Terra.JsonConverters.WorkoutSportVariant9JsonConverter(); + } + + if (typeToConvert == typeof(global::Terra.WorkoutSportVariant9?)) + { + return new global::Terra.JsonConverters.WorkoutSportVariant9NullableJsonConverter(); + } + + if (typeToConvert == typeof(global::Terra.WorkoutSportVariant10)) + { + return new global::Terra.JsonConverters.WorkoutSportVariant10JsonConverter(); + } + + if (typeToConvert == typeof(global::Terra.WorkoutSportVariant10?)) + { + return new global::Terra.JsonConverters.WorkoutSportVariant10NullableJsonConverter(); + } + + if (typeToConvert == typeof(global::Terra.WorkoutSportVariant11)) + { + return new global::Terra.JsonConverters.WorkoutSportVariant11JsonConverter(); + } + + if (typeToConvert == typeof(global::Terra.WorkoutSportVariant11?)) + { + return new global::Terra.JsonConverters.WorkoutSportVariant11NullableJsonConverter(); + } + + if (typeToConvert == typeof(global::Terra.WorkoutSportVariant12)) + { + return new global::Terra.JsonConverters.WorkoutSportVariant12JsonConverter(); + } + + if (typeToConvert == typeof(global::Terra.WorkoutSportVariant12?)) + { + return new global::Terra.JsonConverters.WorkoutSportVariant12NullableJsonConverter(); + } + + if (typeToConvert == typeof(global::Terra.WorkoutSportVariant13)) + { + return new global::Terra.JsonConverters.WorkoutSportVariant13JsonConverter(); + } + + if (typeToConvert == typeof(global::Terra.WorkoutSportVariant13?)) + { + return new global::Terra.JsonConverters.WorkoutSportVariant13NullableJsonConverter(); + } + + if (typeToConvert == typeof(global::Terra.WorkoutSportVariant14)) + { + return new global::Terra.JsonConverters.WorkoutSportVariant14JsonConverter(); + } + + if (typeToConvert == typeof(global::Terra.WorkoutSportVariant14?)) + { + return new global::Terra.JsonConverters.WorkoutSportVariant14NullableJsonConverter(); + } + + if (typeToConvert == typeof(global::Terra.WorkoutSportVariant15)) + { + return new global::Terra.JsonConverters.WorkoutSportVariant15JsonConverter(); + } + + if (typeToConvert == typeof(global::Terra.WorkoutSportVariant15?)) + { + return new global::Terra.JsonConverters.WorkoutSportVariant15NullableJsonConverter(); + } + + if (typeToConvert == typeof(global::Terra.PlannedWorkoutSportEnum)) + { + return new global::Terra.JsonConverters.PlannedWorkoutSportEnumJsonConverter(); + } + + if (typeToConvert == typeof(global::Terra.PlannedWorkoutSportEnum?)) + { + return new global::Terra.JsonConverters.PlannedWorkoutSportEnumNullableJsonConverter(); + } + if (typeToConvert == typeof(global::Terra.AuthSuccessEventType)) { return new global::Terra.JsonConverters.AuthSuccessEventTypeJsonConverter(); diff --git a/src/libs/Terra/Generated/Terra.JsonSerializerContextTypes.g.cs b/src/libs/Terra/Generated/Terra.JsonSerializerContextTypes.g.cs index a8100f8d..d83a9c7f 100644 --- a/src/libs/Terra/Generated/Terra.JsonSerializerContextTypes.g.cs +++ b/src/libs/Terra/Generated/Terra.JsonSerializerContextTypes.g.cs @@ -45,23 +45,23 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Terra.WorkoutSport? Type3 { get; set; } + public global::Terra.EnvironmentType? Type3 { get; set; } /// /// /// - public global::Terra.EnvironmentType? Type4 { get; set; } + public double? Type4 { get; set; } /// /// /// - public double? Type5 { get; set; } + public global::System.Collections.Generic.IList? Type5 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type6 { get; set; } + public global::Terra.StepBlock? Type6 { get; set; } /// /// /// - public global::Terra.StepBlock? Type7 { get; set; } + public global::Terra.WorkoutSport? Type7 { get; set; } /// /// /// @@ -81,3111 +81,3187 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Terra.Problem? Type12 { get; set; } + public global::System.Collections.Generic.IList? Type12 { get; set; } /// /// /// - public global::Terra.WidgetSessionParams? Type13 { get; set; } + public global::Terra.CoercionWarning? Type13 { get; set; } /// /// /// - public global::Terra.TerraUser? Type14 { get; set; } + public global::Terra.PlannedWorkoutBody? Type14 { get; set; } /// /// /// - public global::Terra.DataSentToWebhook? Type15 { get; set; } + public global::Terra.PlannedWorkoutSport? Type15 { get; set; } /// /// /// - public global::Terra.DataSentToWebhookStatus? Type16 { get; set; } + public global::Terra.Problem? Type16 { get; set; } /// /// /// - public global::Terra.DataSentToWebhookUser? Type17 { get; set; } + public global::Terra.WidgetSessionParams? Type17 { get; set; } /// /// /// - public global::Terra.Activity? Type18 { get; set; } + public global::Terra.TerraUser? Type18 { get; set; } /// /// /// - public global::Terra.ActiveDurationsData? Type19 { get; set; } + public global::Terra.DataSentToWebhook? Type19 { get; set; } /// /// /// - public global::Terra.CaloriesData? Type20 { get; set; } + public global::Terra.DataSentToWebhookStatus? Type20 { get; set; } /// /// /// - public global::Terra.DataEnrichment? Type21 { get; set; } + public global::Terra.DataSentToWebhookUser? Type21 { get; set; } /// /// /// - public global::Terra.DeviceData? Type22 { get; set; } + public global::Terra.Activity? Type22 { get; set; } /// /// /// - public global::Terra.DistanceData? Type23 { get; set; } + public global::Terra.ActiveDurationsData? Type23 { get; set; } /// /// /// - public global::Terra.EnergyData? Type24 { get; set; } + public global::Terra.CaloriesData? Type24 { get; set; } /// /// /// - public global::Terra.HeartRateData? Type25 { get; set; } + public global::Terra.DataEnrichment? Type25 { get; set; } /// /// /// - public global::Terra.LapData? Type26 { get; set; } + public global::Terra.DeviceData? Type26 { get; set; } /// /// /// - public global::Terra.METData? Type27 { get; set; } + public global::Terra.DistanceData? Type27 { get; set; } /// /// /// - public global::Terra.ActivityMetadata? Type28 { get; set; } + public global::Terra.EnergyData? Type28 { get; set; } /// /// /// - public global::Terra.MovementData? Type29 { get; set; } + public global::Terra.HeartRateData? Type29 { get; set; } /// /// /// - public global::Terra.OxygenData? Type30 { get; set; } + public global::Terra.LapData? Type30 { get; set; } /// /// /// - public global::Terra.PolylineMapData? Type31 { get; set; } + public global::Terra.METData? Type31 { get; set; } /// /// /// - public global::Terra.PositionData? Type32 { get; set; } + public global::Terra.ActivityMetadata? Type32 { get; set; } /// /// /// - public global::Terra.ActivityStrengthData2? Type33 { get; set; } + public global::Terra.MovementData? Type33 { get; set; } /// /// /// - public global::Terra.PowerData? Type34 { get; set; } + public global::Terra.OxygenData? Type34 { get; set; } /// /// /// - public global::Terra.StrainData? Type35 { get; set; } + public global::Terra.PolylineMapData? Type35 { get; set; } /// /// /// - public global::Terra.TSSData? Type36 { get; set; } + public global::Terra.PositionData? Type36 { get; set; } /// /// /// - public global::Terra.WorkData? Type37 { get; set; } + public global::Terra.ActivityStrengthData2? Type37 { get; set; } /// /// /// - public global::Terra.Athlete? Type38 { get; set; } + public global::Terra.PowerData? Type38 { get; set; } /// /// /// - public int? Type39 { get; set; } + public global::Terra.StrainData? Type39 { get; set; } /// /// /// - public global::Terra.AthleteCollection? Type40 { get; set; } + public global::Terra.TSSData? Type40 { get; set; } /// /// /// - public global::Terra.Body? Type41 { get; set; } + public global::Terra.WorkData? Type41 { get; set; } /// /// /// - public global::Terra.BloodPressureData? Type42 { get; set; } + public global::Terra.Athlete? Type42 { get; set; } /// /// /// - public global::Terra.HeartData? Type43 { get; set; } + public int? Type43 { get; set; } /// /// /// - public global::Terra.HydrationData? Type44 { get; set; } + public global::Terra.AthleteCollection? Type44 { get; set; } /// /// /// - public global::Terra.KetoneData? Type45 { get; set; } + public global::Terra.Body? Type45 { get; set; } /// /// /// - public global::Terra.MeasurementsData? Type46 { get; set; } + public global::Terra.BloodPressureData? Type46 { get; set; } /// /// /// - public global::Terra.BodyMetadata? Type47 { get; set; } + public global::Terra.HeartData? Type47 { get; set; } /// /// /// - public global::Terra.TemperatureData? Type48 { get; set; } + public global::Terra.HydrationData? Type48 { get; set; } /// /// /// - public global::Terra.GlucoseData? Type49 { get; set; } + public global::Terra.KetoneData? Type49 { get; set; } /// /// /// - public global::Terra.Daily? Type50 { get; set; } + public global::Terra.MeasurementsData? Type50 { get; set; } /// /// /// - public global::Terra.DailyDataEnrichment2? Type51 { get; set; } + public global::Terra.BodyMetadata? Type51 { get; set; } /// /// /// - public global::Terra.DailyDistanceData2? Type52 { get; set; } + public global::Terra.TemperatureData? Type52 { get; set; } /// /// /// - public global::Terra.DailyMetadata? Type53 { get; set; } + public global::Terra.GlucoseData? Type53 { get; set; } /// /// /// - public global::Terra.ScoresData? Type54 { get; set; } + public global::Terra.Daily? Type54 { get; set; } /// /// /// - public global::Terra.StressData? Type55 { get; set; } + public global::Terra.DailyDataEnrichment2? Type55 { get; set; } /// /// /// - public global::Terra.TagData? Type56 { get; set; } + public global::Terra.DailyDistanceData2? Type56 { get; set; } /// /// /// - public global::Terra.Menstruation? Type57 { get; set; } + public global::Terra.DailyMetadata? Type57 { get; set; } /// /// /// - public global::Terra.MenstruationMetadata? Type58 { get; set; } + public global::Terra.ScoresData? Type58 { get; set; } /// /// /// - public global::Terra.MenstruationData? Type59 { get; set; } + public global::Terra.StressData? Type59 { get; set; } /// /// /// - public global::Terra.HormoneSample? Type60 { get; set; } + public global::Terra.TagData? Type60 { get; set; } /// /// /// - public global::Terra.Connection? Type61 { get; set; } + public global::Terra.Menstruation? Type61 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type62 { get; set; } + public global::Terra.MenstruationMetadata? Type62 { get; set; } /// /// /// - public global::Terra.Nutrition? Type63 { get; set; } + public global::Terra.MenstruationData? Type63 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type64 { get; set; } + public global::Terra.HormoneSample? Type64 { get; set; } /// /// /// - public global::Terra.DrinkSample? Type65 { get; set; } + public global::Terra.Connection? Type65 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type66 { get; set; } + public global::System.Collections.Generic.IList? Type66 { get; set; } /// /// /// - public global::Terra.Meal? Type67 { get; set; } + public global::Terra.Nutrition? Type67 { get; set; } /// /// /// - public global::Terra.NutritionMetadata? Type68 { get; set; } + public global::System.Collections.Generic.IList? Type68 { get; set; } /// /// /// - public global::Terra.NutritionSummary2? Type69 { get; set; } + public global::Terra.DrinkSample? Type69 { get; set; } /// /// /// - public global::Terra.Sleep? Type70 { get; set; } + public global::System.Collections.Generic.IList? Type70 { get; set; } /// /// /// - public global::Terra.SleepDataEnrichment2? Type71 { get; set; } + public global::Terra.Meal? Type71 { get; set; } /// /// /// - public global::Terra.SleepMetadata? Type72 { get; set; } + public global::Terra.NutritionMetadata? Type72 { get; set; } /// /// /// - public global::Terra.ReadinessData? Type73 { get; set; } + public global::Terra.NutritionSummary2? Type73 { get; set; } /// /// /// - public global::Terra.RespirationData? Type74 { get; set; } + public global::Terra.Sleep? Type74 { get; set; } /// /// /// - public global::Terra.SleepScores2? Type75 { get; set; } + public global::Terra.SleepDataEnrichment2? Type75 { get; set; } /// /// /// - public global::Terra.SleepDurationsData? Type76 { get; set; } + public global::Terra.SleepMetadata? Type76 { get; set; } /// /// /// - public global::Terra.SleepTemperatureData2? Type77 { get; set; } + public global::Terra.ReadinessData? Type77 { get; set; } /// /// /// - public global::Terra.AuthSuccessEvent? Type78 { get; set; } + public global::Terra.RespirationData? Type78 { get; set; } /// /// /// - public global::Terra.AuthErrorEvent? Type79 { get; set; } + public global::Terra.SleepScores2? Type79 { get; set; } /// /// /// - public global::Terra.PermissionChangeEvent? Type80 { get; set; } + public global::Terra.SleepDurationsData? Type80 { get; set; } /// /// /// - public global::Terra.UserReauthEvent? Type81 { get; set; } + public global::Terra.SleepTemperatureData2? Type81 { get; set; } /// /// /// - public global::Terra.DeauthEvent? Type82 { get; set; } + public global::Terra.AuthSuccessEvent? Type82 { get; set; } /// /// /// - public global::Terra.AccessRevokedEvent? Type83 { get; set; } + public global::Terra.AuthErrorEvent? Type83 { get; set; } /// /// /// - public global::Terra.ConnectionErrorEvent? Type84 { get; set; } + public global::Terra.PermissionChangeEvent? Type84 { get; set; } /// /// /// - public global::Terra.LargeRequestSendingEvent? Type85 { get; set; } + public global::Terra.UserReauthEvent? Type85 { get; set; } /// /// /// - public global::Terra.LargeRequestProcessingEvent? Type86 { get; set; } + public global::Terra.DeauthEvent? Type86 { get; set; } /// /// /// - public global::Terra.S3PayloadEvent? Type87 { get; set; } + public global::Terra.AccessRevokedEvent? Type87 { get; set; } /// /// /// - public global::Terra.ActivityEvent? Type88 { get; set; } + public global::Terra.ConnectionErrorEvent? Type88 { get; set; } /// /// /// - public global::Terra.DailyEvent? Type89 { get; set; } + public global::Terra.LargeRequestSendingEvent? Type89 { get; set; } /// /// /// - public global::Terra.NutritionEvent? Type90 { get; set; } + public global::Terra.LargeRequestProcessingEvent? Type90 { get; set; } /// /// /// - public global::Terra.AthleteEvent? Type91 { get; set; } + public global::Terra.S3PayloadEvent? Type91 { get; set; } /// /// /// - public global::Terra.SleepEvent? Type92 { get; set; } + public global::Terra.ActivityEvent? Type92 { get; set; } /// /// /// - public global::Terra.MenstruationEvent? Type93 { get; set; } + public global::Terra.DailyEvent? Type93 { get; set; } /// /// /// - public global::Terra.BodyEvent? Type94 { get; set; } + public global::Terra.NutritionEvent? Type94 { get; set; } /// /// /// - public global::Terra.PlannedWorkoutEvent? Type95 { get; set; } + public global::Terra.AthleteEvent? Type95 { get; set; } /// /// /// - public global::Terra.HormoneEvent? Type96 { get; set; } + public global::Terra.SleepEvent? Type96 { get; set; } /// /// /// - public global::Terra.HealthObservationEvent? Type97 { get; set; } + public global::Terra.MenstruationEvent? Type97 { get; set; } /// /// /// - public global::Terra.LabReportWebhook? Type98 { get; set; } + public global::Terra.BodyEvent? Type98 { get; set; } /// /// /// - public global::Terra.LabReportCompletedEvent? Type99 { get; set; } + public global::Terra.PlannedWorkoutEvent? Type99 { get; set; } /// /// /// - public global::Terra.LabReportFailedEvent? Type100 { get; set; } + public global::Terra.HormoneEvent? Type100 { get; set; } /// /// /// - public global::Terra.IntegrationsResponse? Type101 { get; set; } + public global::Terra.HealthObservationEvent? Type101 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type102 { get; set; } + public global::Terra.LabReportWebhook? Type102 { get; set; } /// /// /// - public global::Terra.IntegrationProvider? Type103 { get; set; } + public global::Terra.LabReportCompletedEvent? Type103 { get; set; } /// /// /// - public global::Terra.IntegrationProviderTypes? Type104 { get; set; } + public global::Terra.LabReportFailedEvent? Type104 { get; set; } /// /// /// - public global::Terra.WebhookEventType? Type105 { get; set; } + public global::Terra.IntegrationsResponse? Type105 { get; set; } /// /// /// - public global::Terra.LabReportUploadResponse? Type106 { get; set; } + public global::System.Collections.Generic.IList? Type106 { get; set; } /// /// /// - public global::Terra.LabReportReprocessResponse? Type107 { get; set; } + public global::Terra.IntegrationProvider? Type107 { get; set; } /// /// /// - public global::Terra.LabReportListResponse? Type108 { get; set; } + public global::Terra.IntegrationProviderTypes? Type108 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type109 { get; set; } + public global::Terra.WebhookEventType? Type109 { get; set; } /// /// /// - public global::Terra.LabReportSession? Type110 { get; set; } + public global::Terra.LabReportUploadResponse? Type110 { get; set; } /// /// /// - public long? Type111 { get; set; } + public global::Terra.LabReportReprocessResponse? Type111 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type112 { get; set; } + public global::Terra.LabReportListResponse? Type112 { get; set; } /// /// /// - public global::Terra.LabReportStatusEntry? Type113 { get; set; } + public global::System.Collections.Generic.IList? Type113 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type114 { get; set; } + public global::Terra.LabReportSession? Type114 { get; set; } /// /// /// - public global::Terra.LabReportResult? Type115 { get; set; } + public long? Type115 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type116 { get; set; } + public global::System.Collections.Generic.IList? Type116 { get; set; } /// /// /// - public global::Terra.LabReportPanel? Type117 { get; set; } + public global::Terra.LabReportStatusEntry? Type117 { get; set; } /// /// /// - public global::Terra.LabReportResultSource? Type118 { get; set; } + public global::System.Collections.Generic.IList? Type118 { get; set; } /// /// /// - public global::Terra.LabReportBiomarker? Type119 { get; set; } + public global::Terra.LabReportResult? Type119 { get; set; } /// /// /// - public global::Terra.LabReportMeasurement? Type120 { get; set; } + public global::System.Collections.Generic.IList? Type120 { get; set; } /// /// /// - public global::Terra.LabReportInterpretation? Type121 { get; set; } + public global::Terra.LabReportPanel? Type121 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type122 { get; set; } + public global::Terra.LabReportResultSource? Type122 { get; set; } /// /// /// - public global::Terra.LabReportReferenceRange? Type123 { get; set; } + public global::Terra.LabReportBiomarker? Type123 { get; set; } /// /// /// - public global::Terra.LabReportBoundedValue? Type124 { get; set; } + public global::Terra.LabReportMeasurement? Type124 { get; set; } /// /// /// - public global::Terra.LabReportQualitativeValue? Type125 { get; set; } + public global::Terra.LabReportInterpretation? Type125 { get; set; } /// /// /// - public global::Terra.LabReportAppliedRange? Type126 { get; set; } + public global::System.Collections.Generic.IList? Type126 { get; set; } /// /// /// - public global::Terra.LabReportRangeContext? Type127 { get; set; } + public global::Terra.LabReportReferenceRange? Type127 { get; set; } /// /// /// - public global::Terra.LabReportDeliveriesResponse? Type128 { get; set; } + public global::Terra.LabReportBoundedValue? Type128 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type129 { get; set; } + public global::Terra.LabReportQualitativeValue? Type129 { get; set; } /// /// /// - public global::Terra.LabReportDelivery? Type130 { get; set; } + public global::Terra.LabReportAppliedRange? Type130 { get; set; } /// /// /// - public global::Terra.LabReportFilesResponse? Type131 { get; set; } + public global::Terra.LabReportRangeContext? Type131 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type132 { get; set; } + public global::Terra.LabReportDeliveriesResponse? Type132 { get; set; } /// /// /// - public global::Terra.LabReportFile? Type133 { get; set; } + public global::System.Collections.Generic.IList? Type133 { get; set; } /// /// /// - public global::Terra.LabReportArtifactsResponse? Type134 { get; set; } + public global::Terra.LabReportDelivery? Type134 { get; set; } /// /// /// - public global::Terra.ActivityLevelSample? Type135 { get; set; } + public global::Terra.LabReportFilesResponse? Type135 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type136 { get; set; } + public global::System.Collections.Generic.IList? Type136 { get; set; } /// /// /// - public global::Terra.CalorieSample? Type137 { get; set; } + public global::Terra.LabReportFile? Type137 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type138 { get; set; } + public global::Terra.LabReportArtifactsResponse? Type138 { get; set; } /// /// /// - public global::Terra.RecordFloat? Type139 { get; set; } + public global::Terra.ActivityLevelSample? Type139 { get; set; } /// /// /// - public global::Terra.DeviceDataType? Type140 { get; set; } + public global::System.Collections.Generic.IList? Type140 { get; set; } /// /// /// - public global::Terra.OtherDeviceData? Type141 { get; set; } + public global::Terra.CalorieSample? Type141 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type142 { get; set; } + public global::System.Collections.Generic.IList? Type142 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type143 { get; set; } + public global::Terra.RecordFloat? Type143 { get; set; } /// /// /// - public global::Terra.DistanceSample? Type144 { get; set; } + public global::Terra.DeviceDataType? Type144 { get; set; } /// /// /// - public global::Terra.ElevationSample? Type145 { get; set; } + public global::Terra.OtherDeviceData? Type145 { get; set; } /// /// /// - public global::Terra.FloorsClimbedSample? Type146 { get; set; } + public global::System.Collections.Generic.IList? Type146 { get; set; } /// /// /// - public global::Terra.StepSample? Type147 { get; set; } + public global::System.Collections.Generic.IList? Type147 { get; set; } /// /// /// - public global::Terra.DistanceDataDetailed? Type148 { get; set; } + public global::Terra.DistanceSample? Type148 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type149 { get; set; } + public global::Terra.ElevationSample? Type149 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type150 { get; set; } + public global::Terra.FloorsClimbedSample? Type150 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type151 { get; set; } + public global::Terra.StepSample? Type151 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type152 { get; set; } + public global::Terra.DistanceDataDetailed? Type152 { get; set; } /// /// /// - public global::Terra.ElevationData? Type153 { get; set; } + public global::System.Collections.Generic.IList? Type153 { get; set; } /// /// /// - public global::Terra.SwimmingData? Type154 { get; set; } + public global::System.Collections.Generic.IList? Type154 { get; set; } /// /// /// - public global::Terra.DistanceDataSummary? Type155 { get; set; } + public global::System.Collections.Generic.IList? Type155 { get; set; } /// /// /// - public global::Terra.HeartRateDataSample? Type156 { get; set; } + public global::System.Collections.Generic.IList? Type156 { get; set; } /// /// /// - public global::Terra.HeartRateVariabilityDataSampleRMSSD? Type157 { get; set; } + public global::Terra.ElevationData? Type157 { get; set; } /// /// /// - public global::Terra.HeartRateVariabilityDataSampleSDNN? Type158 { get; set; } + public global::Terra.SwimmingData? Type158 { get; set; } /// /// /// - public global::Terra.HeartRateDataDetailed? Type159 { get; set; } + public global::Terra.DistanceDataSummary? Type159 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type160 { get; set; } + public global::Terra.HeartRateDataSample? Type160 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type161 { get; set; } + public global::Terra.HeartRateVariabilityDataSampleRMSSD? Type161 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type162 { get; set; } + public global::Terra.HeartRateVariabilityDataSampleSDNN? Type162 { get; set; } /// /// /// - public global::Terra.HeartRateZoneData? Type163 { get; set; } + public global::Terra.HeartRateDataDetailed? Type163 { get; set; } /// /// /// - public global::Terra.HeartRateDataSummary? Type164 { get; set; } + public global::System.Collections.Generic.IList? Type164 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type165 { get; set; } + public global::System.Collections.Generic.IList? Type165 { get; set; } /// /// /// - public global::Terra.LapSample? Type166 { get; set; } + public global::System.Collections.Generic.IList? Type166 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type167 { get; set; } + public global::Terra.HeartRateZoneData? Type167 { get; set; } /// /// /// - public global::Terra.METSample? Type168 { get; set; } + public global::Terra.HeartRateDataSummary? Type168 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type169 { get; set; } + public global::System.Collections.Generic.IList? Type169 { get; set; } /// /// /// - public global::Terra.CadenceSample? Type170 { get; set; } + public global::Terra.LapSample? Type170 { get; set; } /// /// /// - public global::Terra.SpeedSample? Type171 { get; set; } + public global::System.Collections.Generic.IList? Type171 { get; set; } /// /// /// - public global::Terra.TorqueSample? Type172 { get; set; } + public global::Terra.METSample? Type172 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type173 { get; set; } + public global::System.Collections.Generic.IList? Type173 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type174 { get; set; } + public global::Terra.CadenceSample? Type174 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type175 { get; set; } + public global::Terra.SpeedSample? Type175 { get; set; } /// /// /// - public global::Terra.OxygenSaturationSample? Type176 { get; set; } + public global::Terra.TorqueSample? Type176 { get; set; } /// /// /// - public global::Terra.Vo2MaxSample? Type177 { get; set; } + public global::System.Collections.Generic.IList? Type177 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type178 { get; set; } + public global::System.Collections.Generic.IList? Type178 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type179 { get; set; } + public global::System.Collections.Generic.IList? Type179 { get; set; } /// /// /// - public global::Terra.PositionSample? Type180 { get; set; } + public global::Terra.OxygenSaturationSample? Type180 { get; set; } /// /// /// - public byte[]? Type181 { get; set; } + public global::Terra.Vo2MaxSample? Type181 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type182 { get; set; } + public global::System.Collections.Generic.IList? Type182 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type183 { get; set; } + public global::System.Collections.Generic.IList? Type183 { get; set; } /// /// /// - public global::Terra.StrengthMovement? Type184 { get; set; } + public global::Terra.PositionSample? Type184 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant1? Type185 { get; set; } + public byte[]? Type185 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant2? Type186 { get; set; } + public global::System.Collections.Generic.IList? Type186 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant3? Type187 { get; set; } + public global::System.Collections.Generic.IList? Type187 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant4? Type188 { get; set; } + public global::Terra.StrengthMovement? Type188 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant5? Type189 { get; set; } + public global::Terra.StrengthMovementVariant1? Type189 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant6? Type190 { get; set; } + public global::Terra.StrengthMovementVariant2? Type190 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant7? Type191 { get; set; } + public global::Terra.StrengthMovementVariant3? Type191 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant8? Type192 { get; set; } + public global::Terra.StrengthMovementVariant4? Type192 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant9? Type193 { get; set; } + public global::Terra.StrengthMovementVariant5? Type193 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant10? Type194 { get; set; } + public global::Terra.StrengthMovementVariant6? Type194 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant11? Type195 { get; set; } + public global::Terra.StrengthMovementVariant7? Type195 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant12? Type196 { get; set; } + public global::Terra.StrengthMovementVariant8? Type196 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant13? Type197 { get; set; } + public global::Terra.StrengthMovementVariant9? Type197 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant14? Type198 { get; set; } + public global::Terra.StrengthMovementVariant10? Type198 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant15? Type199 { get; set; } + public global::Terra.StrengthMovementVariant11? Type199 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant16? Type200 { get; set; } + public global::Terra.StrengthMovementVariant12? Type200 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant17? Type201 { get; set; } + public global::Terra.StrengthMovementVariant13? Type201 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant18? Type202 { get; set; } + public global::Terra.StrengthMovementVariant14? Type202 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant19? Type203 { get; set; } + public global::Terra.StrengthMovementVariant15? Type203 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant20? Type204 { get; set; } + public global::Terra.StrengthMovementVariant16? Type204 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant21? Type205 { get; set; } + public global::Terra.StrengthMovementVariant17? Type205 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant22? Type206 { get; set; } + public global::Terra.StrengthMovementVariant18? Type206 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant23? Type207 { get; set; } + public global::Terra.StrengthMovementVariant19? Type207 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant24? Type208 { get; set; } + public global::Terra.StrengthMovementVariant20? Type208 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant25? Type209 { get; set; } + public global::Terra.StrengthMovementVariant21? Type209 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant26? Type210 { get; set; } + public global::Terra.StrengthMovementVariant22? Type210 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant27? Type211 { get; set; } + public global::Terra.StrengthMovementVariant23? Type211 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant28? Type212 { get; set; } + public global::Terra.StrengthMovementVariant24? Type212 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant29? Type213 { get; set; } + public global::Terra.StrengthMovementVariant25? Type213 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant30? Type214 { get; set; } + public global::Terra.StrengthMovementVariant26? Type214 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant31? Type215 { get; set; } + public global::Terra.StrengthMovementVariant27? Type215 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant32? Type216 { get; set; } + public global::Terra.StrengthMovementVariant28? Type216 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant33? Type217 { get; set; } + public global::Terra.StrengthMovementVariant29? Type217 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant34? Type218 { get; set; } + public global::Terra.StrengthMovementVariant30? Type218 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant35? Type219 { get; set; } + public global::Terra.StrengthMovementVariant31? Type219 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant36? Type220 { get; set; } + public global::Terra.StrengthMovementVariant32? Type220 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant37? Type221 { get; set; } + public global::Terra.StrengthMovementVariant33? Type221 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant38? Type222 { get; set; } + public global::Terra.StrengthMovementVariant34? Type222 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant39? Type223 { get; set; } + public global::Terra.StrengthMovementVariant35? Type223 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant40? Type224 { get; set; } + public global::Terra.StrengthMovementVariant36? Type224 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant41? Type225 { get; set; } + public global::Terra.StrengthMovementVariant37? Type225 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant42? Type226 { get; set; } + public global::Terra.StrengthMovementVariant38? Type226 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant43? Type227 { get; set; } + public global::Terra.StrengthMovementVariant39? Type227 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant44? Type228 { get; set; } + public global::Terra.StrengthMovementVariant40? Type228 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant45? Type229 { get; set; } + public global::Terra.StrengthMovementVariant41? Type229 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant46? Type230 { get; set; } + public global::Terra.StrengthMovementVariant42? Type230 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant47? Type231 { get; set; } + public global::Terra.StrengthMovementVariant43? Type231 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant48? Type232 { get; set; } + public global::Terra.StrengthMovementVariant44? Type232 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant49? Type233 { get; set; } + public global::Terra.StrengthMovementVariant45? Type233 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant50? Type234 { get; set; } + public global::Terra.StrengthMovementVariant46? Type234 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant51? Type235 { get; set; } + public global::Terra.StrengthMovementVariant47? Type235 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant52? Type236 { get; set; } + public global::Terra.StrengthMovementVariant48? Type236 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant53? Type237 { get; set; } + public global::Terra.StrengthMovementVariant49? Type237 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant54? Type238 { get; set; } + public global::Terra.StrengthMovementVariant50? Type238 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant55? Type239 { get; set; } + public global::Terra.StrengthMovementVariant51? Type239 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant56? Type240 { get; set; } + public global::Terra.StrengthMovementVariant52? Type240 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant57? Type241 { get; set; } + public global::Terra.StrengthMovementVariant53? Type241 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant58? Type242 { get; set; } + public global::Terra.StrengthMovementVariant54? Type242 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant59? Type243 { get; set; } + public global::Terra.StrengthMovementVariant55? Type243 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant60? Type244 { get; set; } + public global::Terra.StrengthMovementVariant56? Type244 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant61? Type245 { get; set; } + public global::Terra.StrengthMovementVariant57? Type245 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant62? Type246 { get; set; } + public global::Terra.StrengthMovementVariant58? Type246 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant63? Type247 { get; set; } + public global::Terra.StrengthMovementVariant59? Type247 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant64? Type248 { get; set; } + public global::Terra.StrengthMovementVariant60? Type248 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant65? Type249 { get; set; } + public global::Terra.StrengthMovementVariant61? Type249 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant66? Type250 { get; set; } + public global::Terra.StrengthMovementVariant62? Type250 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant67? Type251 { get; set; } + public global::Terra.StrengthMovementVariant63? Type251 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant68? Type252 { get; set; } + public global::Terra.StrengthMovementVariant64? Type252 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant69? Type253 { get; set; } + public global::Terra.StrengthMovementVariant65? Type253 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant70? Type254 { get; set; } + public global::Terra.StrengthMovementVariant66? Type254 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant71? Type255 { get; set; } + public global::Terra.StrengthMovementVariant67? Type255 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant72? Type256 { get; set; } + public global::Terra.StrengthMovementVariant68? Type256 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant73? Type257 { get; set; } + public global::Terra.StrengthMovementVariant69? Type257 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant74? Type258 { get; set; } + public global::Terra.StrengthMovementVariant70? Type258 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant75? Type259 { get; set; } + public global::Terra.StrengthMovementVariant71? Type259 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant76? Type260 { get; set; } + public global::Terra.StrengthMovementVariant72? Type260 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant77? Type261 { get; set; } + public global::Terra.StrengthMovementVariant73? Type261 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant78? Type262 { get; set; } + public global::Terra.StrengthMovementVariant74? Type262 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant79? Type263 { get; set; } + public global::Terra.StrengthMovementVariant75? Type263 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant80? Type264 { get; set; } + public global::Terra.StrengthMovementVariant76? Type264 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant81? Type265 { get; set; } + public global::Terra.StrengthMovementVariant77? Type265 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant82? Type266 { get; set; } + public global::Terra.StrengthMovementVariant78? Type266 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant83? Type267 { get; set; } + public global::Terra.StrengthMovementVariant79? Type267 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant84? Type268 { get; set; } + public global::Terra.StrengthMovementVariant80? Type268 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant85? Type269 { get; set; } + public global::Terra.StrengthMovementVariant81? Type269 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant86? Type270 { get; set; } + public global::Terra.StrengthMovementVariant82? Type270 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant87? Type271 { get; set; } + public global::Terra.StrengthMovementVariant83? Type271 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant88? Type272 { get; set; } + public global::Terra.StrengthMovementVariant84? Type272 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant89? Type273 { get; set; } + public global::Terra.StrengthMovementVariant85? Type273 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant90? Type274 { get; set; } + public global::Terra.StrengthMovementVariant86? Type274 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant91? Type275 { get; set; } + public global::Terra.StrengthMovementVariant87? Type275 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant92? Type276 { get; set; } + public global::Terra.StrengthMovementVariant88? Type276 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant93? Type277 { get; set; } + public global::Terra.StrengthMovementVariant89? Type277 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant94? Type278 { get; set; } + public global::Terra.StrengthMovementVariant90? Type278 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant95? Type279 { get; set; } + public global::Terra.StrengthMovementVariant91? Type279 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant96? Type280 { get; set; } + public global::Terra.StrengthMovementVariant92? Type280 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant97? Type281 { get; set; } + public global::Terra.StrengthMovementVariant93? Type281 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant98? Type282 { get; set; } + public global::Terra.StrengthMovementVariant94? Type282 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant99? Type283 { get; set; } + public global::Terra.StrengthMovementVariant95? Type283 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant100? Type284 { get; set; } + public global::Terra.StrengthMovementVariant96? Type284 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant101? Type285 { get; set; } + public global::Terra.StrengthMovementVariant97? Type285 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant102? Type286 { get; set; } + public global::Terra.StrengthMovementVariant98? Type286 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant103? Type287 { get; set; } + public global::Terra.StrengthMovementVariant99? Type287 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant104? Type288 { get; set; } + public global::Terra.StrengthMovementVariant100? Type288 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant105? Type289 { get; set; } + public global::Terra.StrengthMovementVariant101? Type289 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant106? Type290 { get; set; } + public global::Terra.StrengthMovementVariant102? Type290 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant107? Type291 { get; set; } + public global::Terra.StrengthMovementVariant103? Type291 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant108? Type292 { get; set; } + public global::Terra.StrengthMovementVariant104? Type292 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant109? Type293 { get; set; } + public global::Terra.StrengthMovementVariant105? Type293 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant110? Type294 { get; set; } + public global::Terra.StrengthMovementVariant106? Type294 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant111? Type295 { get; set; } + public global::Terra.StrengthMovementVariant107? Type295 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant112? Type296 { get; set; } + public global::Terra.StrengthMovementVariant108? Type296 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant113? Type297 { get; set; } + public global::Terra.StrengthMovementVariant109? Type297 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant114? Type298 { get; set; } + public global::Terra.StrengthMovementVariant110? Type298 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant115? Type299 { get; set; } + public global::Terra.StrengthMovementVariant111? Type299 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant116? Type300 { get; set; } + public global::Terra.StrengthMovementVariant112? Type300 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant117? Type301 { get; set; } + public global::Terra.StrengthMovementVariant113? Type301 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant118? Type302 { get; set; } + public global::Terra.StrengthMovementVariant114? Type302 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant119? Type303 { get; set; } + public global::Terra.StrengthMovementVariant115? Type303 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant120? Type304 { get; set; } + public global::Terra.StrengthMovementVariant116? Type304 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant121? Type305 { get; set; } + public global::Terra.StrengthMovementVariant117? Type305 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant122? Type306 { get; set; } + public global::Terra.StrengthMovementVariant118? Type306 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant123? Type307 { get; set; } + public global::Terra.StrengthMovementVariant119? Type307 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant124? Type308 { get; set; } + public global::Terra.StrengthMovementVariant120? Type308 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant125? Type309 { get; set; } + public global::Terra.StrengthMovementVariant121? Type309 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant126? Type310 { get; set; } + public global::Terra.StrengthMovementVariant122? Type310 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant127? Type311 { get; set; } + public global::Terra.StrengthMovementVariant123? Type311 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant128? Type312 { get; set; } + public global::Terra.StrengthMovementVariant124? Type312 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant129? Type313 { get; set; } + public global::Terra.StrengthMovementVariant125? Type313 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant130? Type314 { get; set; } + public global::Terra.StrengthMovementVariant126? Type314 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant131? Type315 { get; set; } + public global::Terra.StrengthMovementVariant127? Type315 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant132? Type316 { get; set; } + public global::Terra.StrengthMovementVariant128? Type316 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant133? Type317 { get; set; } + public global::Terra.StrengthMovementVariant129? Type317 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant134? Type318 { get; set; } + public global::Terra.StrengthMovementVariant130? Type318 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant135? Type319 { get; set; } + public global::Terra.StrengthMovementVariant131? Type319 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant136? Type320 { get; set; } + public global::Terra.StrengthMovementVariant132? Type320 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant137? Type321 { get; set; } + public global::Terra.StrengthMovementVariant133? Type321 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant138? Type322 { get; set; } + public global::Terra.StrengthMovementVariant134? Type322 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant139? Type323 { get; set; } + public global::Terra.StrengthMovementVariant135? Type323 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant140? Type324 { get; set; } + public global::Terra.StrengthMovementVariant136? Type324 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant141? Type325 { get; set; } + public global::Terra.StrengthMovementVariant137? Type325 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant142? Type326 { get; set; } + public global::Terra.StrengthMovementVariant138? Type326 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant143? Type327 { get; set; } + public global::Terra.StrengthMovementVariant139? Type327 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant144? Type328 { get; set; } + public global::Terra.StrengthMovementVariant140? Type328 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant145? Type329 { get; set; } + public global::Terra.StrengthMovementVariant141? Type329 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant146? Type330 { get; set; } + public global::Terra.StrengthMovementVariant142? Type330 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant147? Type331 { get; set; } + public global::Terra.StrengthMovementVariant143? Type331 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant148? Type332 { get; set; } + public global::Terra.StrengthMovementVariant144? Type332 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant149? Type333 { get; set; } + public global::Terra.StrengthMovementVariant145? Type333 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant150? Type334 { get; set; } + public global::Terra.StrengthMovementVariant146? Type334 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant151? Type335 { get; set; } + public global::Terra.StrengthMovementVariant147? Type335 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant152? Type336 { get; set; } + public global::Terra.StrengthMovementVariant148? Type336 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant153? Type337 { get; set; } + public global::Terra.StrengthMovementVariant149? Type337 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant154? Type338 { get; set; } + public global::Terra.StrengthMovementVariant150? Type338 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant155? Type339 { get; set; } + public global::Terra.StrengthMovementVariant151? Type339 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant156? Type340 { get; set; } + public global::Terra.StrengthMovementVariant152? Type340 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant157? Type341 { get; set; } + public global::Terra.StrengthMovementVariant153? Type341 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant158? Type342 { get; set; } + public global::Terra.StrengthMovementVariant154? Type342 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant159? Type343 { get; set; } + public global::Terra.StrengthMovementVariant155? Type343 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant160? Type344 { get; set; } + public global::Terra.StrengthMovementVariant156? Type344 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant161? Type345 { get; set; } + public global::Terra.StrengthMovementVariant157? Type345 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant162? Type346 { get; set; } + public global::Terra.StrengthMovementVariant158? Type346 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant163? Type347 { get; set; } + public global::Terra.StrengthMovementVariant159? Type347 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant164? Type348 { get; set; } + public global::Terra.StrengthMovementVariant160? Type348 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant165? Type349 { get; set; } + public global::Terra.StrengthMovementVariant161? Type349 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant166? Type350 { get; set; } + public global::Terra.StrengthMovementVariant162? Type350 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant167? Type351 { get; set; } + public global::Terra.StrengthMovementVariant163? Type351 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant168? Type352 { get; set; } + public global::Terra.StrengthMovementVariant164? Type352 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant169? Type353 { get; set; } + public global::Terra.StrengthMovementVariant165? Type353 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant170? Type354 { get; set; } + public global::Terra.StrengthMovementVariant166? Type354 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant171? Type355 { get; set; } + public global::Terra.StrengthMovementVariant167? Type355 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant172? Type356 { get; set; } + public global::Terra.StrengthMovementVariant168? Type356 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant173? Type357 { get; set; } + public global::Terra.StrengthMovementVariant169? Type357 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant174? Type358 { get; set; } + public global::Terra.StrengthMovementVariant170? Type358 { get; set; } /// /// /// - public global::Terra.StrengthMovementVariant175? Type359 { get; set; } + public global::Terra.StrengthMovementVariant171? Type359 { get; set; } /// /// /// - public global::Terra.StrengthTarget? Type360 { get; set; } + public global::Terra.StrengthMovementVariant172? Type360 { get; set; } /// /// /// - public global::Terra.StrengthTargetVariant1? Type361 { get; set; } + public global::Terra.StrengthMovementVariant173? Type361 { get; set; } /// /// /// - public global::Terra.StrengthTargetVariant2? Type362 { get; set; } + public global::Terra.StrengthMovementVariant174? Type362 { get; set; } /// /// /// - public global::Terra.StrengthTargetVariant3? Type363 { get; set; } + public global::Terra.StrengthMovementVariant175? Type363 { get; set; } /// /// /// - public global::Terra.StrengthTargetVariant4? Type364 { get; set; } + public global::Terra.StrengthTarget? Type364 { get; set; } /// /// /// - public global::Terra.StrengthTargetVariant5? Type365 { get; set; } + public global::Terra.StrengthTargetVariant1? Type365 { get; set; } /// /// /// - public global::Terra.StrengthTargetVariant6? Type366 { get; set; } + public global::Terra.StrengthTargetVariant2? Type366 { get; set; } /// /// /// - public global::Terra.StrengthTargetVariant7? Type367 { get; set; } + public global::Terra.StrengthTargetVariant3? Type367 { get; set; } /// /// /// - public global::Terra.StrengthTargetVariant8? Type368 { get; set; } + public global::Terra.StrengthTargetVariant4? Type368 { get; set; } /// /// /// - public global::Terra.StrengthTargetVariant9? Type369 { get; set; } + public global::Terra.StrengthTargetVariant5? Type369 { get; set; } /// /// /// - public global::Terra.StrengthTargetVariant10? Type370 { get; set; } + public global::Terra.StrengthTargetVariant6? Type370 { get; set; } /// /// /// - public global::Terra.StrengthTargetVariant11? Type371 { get; set; } + public global::Terra.StrengthTargetVariant7? Type371 { get; set; } /// /// /// - public global::Terra.StrengthTargetVariant12? Type372 { get; set; } + public global::Terra.StrengthTargetVariant8? Type372 { get; set; } /// /// /// - public global::Terra.StrengthTargetVariant13? Type373 { get; set; } + public global::Terra.StrengthTargetVariant9? Type373 { get; set; } /// /// /// - public global::Terra.StrengthTargetVariant14? Type374 { get; set; } + public global::Terra.StrengthTargetVariant10? Type374 { get; set; } /// /// /// - public global::Terra.StrengthTargetVariant15? Type375 { get; set; } + public global::Terra.StrengthTargetVariant11? Type375 { get; set; } /// /// /// - public global::Terra.StrengthTargetVariant16? Type376 { get; set; } + public global::Terra.StrengthTargetVariant12? Type376 { get; set; } /// /// /// - public global::Terra.StrengthTargetVariant17? Type377 { get; set; } + public global::Terra.StrengthTargetVariant13? Type377 { get; set; } /// /// /// - public global::Terra.StrengthTargetVariant18? Type378 { get; set; } + public global::Terra.StrengthTargetVariant14? Type378 { get; set; } /// /// /// - public global::Terra.StrengthTargetVariant19? Type379 { get; set; } + public global::Terra.StrengthTargetVariant15? Type379 { get; set; } /// /// /// - public global::Terra.StrengthTargetVariant20? Type380 { get; set; } + public global::Terra.StrengthTargetVariant16? Type380 { get; set; } /// /// /// - public global::Terra.StrengthTargetVariant21? Type381 { get; set; } + public global::Terra.StrengthTargetVariant17? Type381 { get; set; } /// /// /// - public global::Terra.StrengthTargetVariant22? Type382 { get; set; } + public global::Terra.StrengthTargetVariant18? Type382 { get; set; } /// /// /// - public global::Terra.StrengthTargetVariant23? Type383 { get; set; } + public global::Terra.StrengthTargetVariant19? Type383 { get; set; } /// /// /// - public global::Terra.StrengthTargetVariant24? Type384 { get; set; } + public global::Terra.StrengthTargetVariant20? Type384 { get; set; } /// /// /// - public global::Terra.StrengthTargetVariant25? Type385 { get; set; } + public global::Terra.StrengthTargetVariant21? Type385 { get; set; } /// /// /// - public global::Terra.StrengthImplement? Type386 { get; set; } + public global::Terra.StrengthTargetVariant22? Type386 { get; set; } /// /// /// - public global::Terra.StrengthImplementVariant1? Type387 { get; set; } + public global::Terra.StrengthTargetVariant23? Type387 { get; set; } /// /// /// - public global::Terra.StrengthImplementVariant2? Type388 { get; set; } + public global::Terra.StrengthTargetVariant24? Type388 { get; set; } /// /// /// - public global::Terra.StrengthImplementVariant3? Type389 { get; set; } + public global::Terra.StrengthTargetVariant25? Type389 { get; set; } /// /// /// - public global::Terra.StrengthImplementVariant4? Type390 { get; set; } + public global::Terra.StrengthImplement? Type390 { get; set; } /// /// /// - public global::Terra.StrengthImplementVariant5? Type391 { get; set; } + public global::Terra.StrengthImplementVariant1? Type391 { get; set; } /// /// /// - public global::Terra.StrengthImplementVariant6? Type392 { get; set; } + public global::Terra.StrengthImplementVariant2? Type392 { get; set; } /// /// /// - public global::Terra.StrengthImplementVariant7? Type393 { get; set; } + public global::Terra.StrengthImplementVariant3? Type393 { get; set; } /// /// /// - public global::Terra.StrengthImplementVariant8? Type394 { get; set; } + public global::Terra.StrengthImplementVariant4? Type394 { get; set; } /// /// /// - public global::Terra.StrengthImplementVariant9? Type395 { get; set; } + public global::Terra.StrengthImplementVariant5? Type395 { get; set; } /// /// /// - public global::Terra.StrengthImplementVariant10? Type396 { get; set; } + public global::Terra.StrengthImplementVariant6? Type396 { get; set; } /// /// /// - public global::Terra.StrengthImplementVariant11? Type397 { get; set; } + public global::Terra.StrengthImplementVariant7? Type397 { get; set; } /// /// /// - public global::Terra.StrengthImplementVariant12? Type398 { get; set; } + public global::Terra.StrengthImplementVariant8? Type398 { get; set; } /// /// /// - public global::Terra.StrengthImplementVariant13? Type399 { get; set; } + public global::Terra.StrengthImplementVariant9? Type399 { get; set; } /// /// /// - public global::Terra.StrengthImplementVariant14? Type400 { get; set; } + public global::Terra.StrengthImplementVariant10? Type400 { get; set; } /// /// /// - public global::Terra.StrengthImplementVariant15? Type401 { get; set; } + public global::Terra.StrengthImplementVariant11? Type401 { get; set; } /// /// /// - public global::Terra.StrengthImplementVariant16? Type402 { get; set; } + public global::Terra.StrengthImplementVariant12? Type402 { get; set; } /// /// /// - public global::Terra.StrengthImplementVariant17? Type403 { get; set; } + public global::Terra.StrengthImplementVariant13? Type403 { get; set; } /// /// /// - public global::Terra.StrengthImplementVariant18? Type404 { get; set; } + public global::Terra.StrengthImplementVariant14? Type404 { get; set; } /// /// /// - public global::Terra.StrengthImplementVariant19? Type405 { get; set; } + public global::Terra.StrengthImplementVariant15? Type405 { get; set; } /// /// /// - public global::Terra.StrengthImplementVariant20? Type406 { get; set; } + public global::Terra.StrengthImplementVariant16? Type406 { get; set; } /// /// /// - public global::Terra.StrengthImplementVariant21? Type407 { get; set; } + public global::Terra.StrengthImplementVariant17? Type407 { get; set; } /// /// /// - public global::Terra.StrengthImplementVariant22? Type408 { get; set; } + public global::Terra.StrengthImplementVariant18? Type408 { get; set; } /// /// /// - public global::Terra.StrengthImplementVariant23? Type409 { get; set; } + public global::Terra.StrengthImplementVariant19? Type409 { get; set; } /// /// /// - public global::Terra.StrengthImplementVariant24? Type410 { get; set; } + public global::Terra.StrengthImplementVariant20? Type410 { get; set; } /// /// /// - public global::Terra.StrengthImplementVariant25? Type411 { get; set; } + public global::Terra.StrengthImplementVariant21? Type411 { get; set; } /// /// /// - public global::Terra.StrengthSurface? Type412 { get; set; } + public global::Terra.StrengthImplementVariant22? Type412 { get; set; } /// /// /// - public global::Terra.StrengthSurfaceVariant1? Type413 { get; set; } + public global::Terra.StrengthImplementVariant23? Type413 { get; set; } /// /// /// - public global::Terra.StrengthSurfaceVariant2? Type414 { get; set; } + public global::Terra.StrengthImplementVariant24? Type414 { get; set; } /// /// /// - public global::Terra.StrengthSurfaceVariant3? Type415 { get; set; } + public global::Terra.StrengthImplementVariant25? Type415 { get; set; } /// /// /// - public global::Terra.StrengthSurfaceVariant4? Type416 { get; set; } + public global::Terra.StrengthSurface? Type416 { get; set; } /// /// /// - public global::Terra.StrengthSurfaceVariant5? Type417 { get; set; } + public global::Terra.StrengthSurfaceVariant1? Type417 { get; set; } /// /// /// - public global::Terra.StrengthSurfaceVariant6? Type418 { get; set; } + public global::Terra.StrengthSurfaceVariant2? Type418 { get; set; } /// /// /// - public global::Terra.StrengthSurfaceVariant7? Type419 { get; set; } + public global::Terra.StrengthSurfaceVariant3? Type419 { get; set; } /// /// /// - public global::Terra.StrengthSurfaceVariant8? Type420 { get; set; } + public global::Terra.StrengthSurfaceVariant4? Type420 { get; set; } /// /// /// - public global::Terra.StrengthSurfaceVariant9? Type421 { get; set; } + public global::Terra.StrengthSurfaceVariant5? Type421 { get; set; } /// /// /// - public global::Terra.StrengthSurfaceVariant10? Type422 { get; set; } + public global::Terra.StrengthSurfaceVariant6? Type422 { get; set; } /// /// /// - public global::Terra.StrengthSurfaceVariant11? Type423 { get; set; } + public global::Terra.StrengthSurfaceVariant7? Type423 { get; set; } /// /// /// - public global::Terra.StrengthGripWidth? Type424 { get; set; } + public global::Terra.StrengthSurfaceVariant8? Type424 { get; set; } /// /// /// - public global::Terra.StrengthGripWidthVariant1? Type425 { get; set; } + public global::Terra.StrengthSurfaceVariant9? Type425 { get; set; } /// /// /// - public global::Terra.StrengthGripWidthVariant2? Type426 { get; set; } + public global::Terra.StrengthSurfaceVariant10? Type426 { get; set; } /// /// /// - public global::Terra.StrengthGripWidthVariant3? Type427 { get; set; } + public global::Terra.StrengthSurfaceVariant11? Type427 { get; set; } /// /// /// - public global::Terra.StrengthGripOrientation? Type428 { get; set; } + public global::Terra.StrengthGripWidth? Type428 { get; set; } /// /// /// - public global::Terra.StrengthGripOrientationVariant1? Type429 { get; set; } + public global::Terra.StrengthGripWidthVariant1? Type429 { get; set; } /// /// /// - public global::Terra.StrengthGripOrientationVariant2? Type430 { get; set; } + public global::Terra.StrengthGripWidthVariant2? Type430 { get; set; } /// /// /// - public global::Terra.StrengthGripOrientationVariant3? Type431 { get; set; } + public global::Terra.StrengthGripWidthVariant3? Type431 { get; set; } /// /// /// - public global::Terra.StrengthGripOrientationVariant4? Type432 { get; set; } + public global::Terra.StrengthGripOrientation? Type432 { get; set; } /// /// /// - public global::Terra.StrengthGripOrientationVariant5? Type433 { get; set; } + public global::Terra.StrengthGripOrientationVariant1? Type433 { get; set; } /// /// /// - public global::Terra.StrengthGripOrientationVariant6? Type434 { get; set; } + public global::Terra.StrengthGripOrientationVariant2? Type434 { get; set; } /// /// /// - public global::Terra.StrengthGripOrientationVariant7? Type435 { get; set; } + public global::Terra.StrengthGripOrientationVariant3? Type435 { get; set; } /// /// /// - public global::Terra.StrengthGripOrientationVariant8? Type436 { get; set; } + public global::Terra.StrengthGripOrientationVariant4? Type436 { get; set; } /// /// /// - public global::Terra.StrengthLaterality? Type437 { get; set; } + public global::Terra.StrengthGripOrientationVariant5? Type437 { get; set; } /// /// /// - public global::Terra.StrengthLateralityVariant1? Type438 { get; set; } + public global::Terra.StrengthGripOrientationVariant6? Type438 { get; set; } /// /// /// - public global::Terra.StrengthLateralityVariant2? Type439 { get; set; } + public global::Terra.StrengthGripOrientationVariant7? Type439 { get; set; } /// /// /// - public global::Terra.StrengthLateralityVariant3? Type440 { get; set; } + public global::Terra.StrengthGripOrientationVariant8? Type440 { get; set; } /// /// /// - public global::Terra.StrengthLateralityVariant4? Type441 { get; set; } + public global::Terra.StrengthLaterality? Type441 { get; set; } /// /// /// - public global::Terra.StrengthStance? Type442 { get; set; } + public global::Terra.StrengthLateralityVariant1? Type442 { get; set; } /// /// /// - public global::Terra.StrengthStanceVariant1? Type443 { get; set; } + public global::Terra.StrengthLateralityVariant2? Type443 { get; set; } /// /// /// - public global::Terra.StrengthStanceVariant2? Type444 { get; set; } + public global::Terra.StrengthLateralityVariant3? Type444 { get; set; } /// /// /// - public global::Terra.StrengthStanceVariant3? Type445 { get; set; } + public global::Terra.StrengthLateralityVariant4? Type445 { get; set; } /// /// /// - public global::Terra.StrengthStanceVariant4? Type446 { get; set; } + public global::Terra.StrengthStance? Type446 { get; set; } /// /// /// - public global::Terra.StrengthStanceVariant5? Type447 { get; set; } + public global::Terra.StrengthStanceVariant1? Type447 { get; set; } /// /// /// - public global::Terra.StrengthPosition? Type448 { get; set; } + public global::Terra.StrengthStanceVariant2? Type448 { get; set; } /// /// /// - public global::Terra.StrengthPositionVariant1? Type449 { get; set; } + public global::Terra.StrengthStanceVariant3? Type449 { get; set; } /// /// /// - public global::Terra.StrengthPositionVariant2? Type450 { get; set; } + public global::Terra.StrengthStanceVariant4? Type450 { get; set; } /// /// /// - public global::Terra.StrengthPositionVariant3? Type451 { get; set; } + public global::Terra.StrengthStanceVariant5? Type451 { get; set; } /// /// /// - public global::Terra.StrengthPositionVariant4? Type452 { get; set; } + public global::Terra.StrengthPosition? Type452 { get; set; } /// /// /// - public global::Terra.StrengthPositionVariant5? Type453 { get; set; } + public global::Terra.StrengthPositionVariant1? Type453 { get; set; } /// /// /// - public global::Terra.StrengthPositionVariant6? Type454 { get; set; } + public global::Terra.StrengthPositionVariant2? Type454 { get; set; } /// /// /// - public global::Terra.StrengthPositionVariant7? Type455 { get; set; } + public global::Terra.StrengthPositionVariant3? Type455 { get; set; } /// /// /// - public global::Terra.StrengthPositionVariant8? Type456 { get; set; } + public global::Terra.StrengthPositionVariant4? Type456 { get; set; } /// /// /// - public global::Terra.StrengthPositionVariant9? Type457 { get; set; } + public global::Terra.StrengthPositionVariant5? Type457 { get; set; } /// /// /// - public global::Terra.StrengthPositionVariant10? Type458 { get; set; } + public global::Terra.StrengthPositionVariant6? Type458 { get; set; } /// /// /// - public global::Terra.StrengthPositionVariant11? Type459 { get; set; } + public global::Terra.StrengthPositionVariant7? Type459 { get; set; } /// /// /// - public global::Terra.StrengthPositionVariant12? Type460 { get; set; } + public global::Terra.StrengthPositionVariant8? Type460 { get; set; } /// /// /// - public global::Terra.StrengthPositionVariant13? Type461 { get; set; } + public global::Terra.StrengthPositionVariant9? Type461 { get; set; } /// /// /// - public global::Terra.StrengthPositionVariant14? Type462 { get; set; } + public global::Terra.StrengthPositionVariant10? Type462 { get; set; } /// /// /// - public global::Terra.StrengthPositionVariant15? Type463 { get; set; } + public global::Terra.StrengthPositionVariant11? Type463 { get; set; } /// /// /// - public global::Terra.StrengthPositionVariant16? Type464 { get; set; } + public global::Terra.StrengthPositionVariant12? Type464 { get; set; } /// /// /// - public global::Terra.StrengthPositionVariant17? Type465 { get; set; } + public global::Terra.StrengthPositionVariant13? Type465 { get; set; } /// /// /// - public global::Terra.StrengthPositionVariant18? Type466 { get; set; } + public global::Terra.StrengthPositionVariant14? Type466 { get; set; } /// /// /// - public global::Terra.StrengthPositionVariant19? Type467 { get; set; } + public global::Terra.StrengthPositionVariant15? Type467 { get; set; } /// /// /// - public global::Terra.StrengthBarPosition? Type468 { get; set; } + public global::Terra.StrengthPositionVariant16? Type468 { get; set; } /// /// /// - public global::Terra.StrengthBarPositionVariant1? Type469 { get; set; } + public global::Terra.StrengthPositionVariant17? Type469 { get; set; } /// /// /// - public global::Terra.StrengthBarPositionVariant2? Type470 { get; set; } + public global::Terra.StrengthPositionVariant18? Type470 { get; set; } /// /// /// - public global::Terra.StrengthBarPositionVariant3? Type471 { get; set; } + public global::Terra.StrengthPositionVariant19? Type471 { get; set; } /// /// /// - public global::Terra.StrengthBarPositionVariant4? Type472 { get; set; } + public global::Terra.StrengthBarPosition? Type472 { get; set; } /// /// /// - public global::Terra.StrengthBarPositionVariant5? Type473 { get; set; } + public global::Terra.StrengthBarPositionVariant1? Type473 { get; set; } /// /// /// - public global::Terra.StrengthBarPositionVariant6? Type474 { get; set; } + public global::Terra.StrengthBarPositionVariant2? Type474 { get; set; } /// /// /// - public global::Terra.StrengthBarPositionVariant7? Type475 { get; set; } + public global::Terra.StrengthBarPositionVariant3? Type475 { get; set; } /// /// /// - public global::Terra.StrengthTempo? Type476 { get; set; } + public global::Terra.StrengthBarPositionVariant4? Type476 { get; set; } /// /// /// - public global::Terra.StrengthTempoVariant1? Type477 { get; set; } + public global::Terra.StrengthBarPositionVariant5? Type477 { get; set; } /// /// /// - public global::Terra.StrengthTempoVariant2? Type478 { get; set; } + public global::Terra.StrengthBarPositionVariant6? Type478 { get; set; } /// /// /// - public global::Terra.StrengthTempoVariant3? Type479 { get; set; } + public global::Terra.StrengthBarPositionVariant7? Type479 { get; set; } /// /// /// - public global::Terra.StrengthTempoVariant4? Type480 { get; set; } + public global::Terra.StrengthTempo? Type480 { get; set; } /// /// /// - public global::Terra.StrengthTempoVariant5? Type481 { get; set; } + public global::Terra.StrengthTempoVariant1? Type481 { get; set; } /// /// /// - public global::Terra.StrengthTempoVariant6? Type482 { get; set; } + public global::Terra.StrengthTempoVariant2? Type482 { get; set; } /// /// /// - public global::Terra.StrengthTempoVariant7? Type483 { get; set; } + public global::Terra.StrengthTempoVariant3? Type483 { get; set; } /// /// /// - public global::Terra.StrengthTempoVariant8? Type484 { get; set; } + public global::Terra.StrengthTempoVariant4? Type484 { get; set; } /// /// /// - public global::Terra.StrengthRangeOfMotion? Type485 { get; set; } + public global::Terra.StrengthTempoVariant5? Type485 { get; set; } /// /// /// - public global::Terra.StrengthRangeOfMotionVariant1? Type486 { get; set; } + public global::Terra.StrengthTempoVariant6? Type486 { get; set; } /// /// /// - public global::Terra.StrengthRangeOfMotionVariant2? Type487 { get; set; } + public global::Terra.StrengthTempoVariant7? Type487 { get; set; } /// /// /// - public global::Terra.StrengthRangeOfMotionVariant3? Type488 { get; set; } + public global::Terra.StrengthTempoVariant8? Type488 { get; set; } /// /// /// - public global::Terra.StrengthRangeOfMotionVariant4? Type489 { get; set; } + public global::Terra.StrengthRangeOfMotion? Type489 { get; set; } /// /// /// - public global::Terra.StrengthRangeOfMotionVariant5? Type490 { get; set; } + public global::Terra.StrengthRangeOfMotionVariant1? Type490 { get; set; } /// /// /// - public global::Terra.StrengthRangeOfMotionVariant6? Type491 { get; set; } + public global::Terra.StrengthRangeOfMotionVariant2? Type491 { get; set; } /// /// /// - public global::Terra.StrengthRangeOfMotionVariant7? Type492 { get; set; } + public global::Terra.StrengthRangeOfMotionVariant3? Type492 { get; set; } /// /// /// - public global::Terra.StrengthProgramme? Type493 { get; set; } + public global::Terra.StrengthRangeOfMotionVariant4? Type493 { get; set; } /// /// /// - public global::Terra.StrengthProgrammeVariant1? Type494 { get; set; } + public global::Terra.StrengthRangeOfMotionVariant5? Type494 { get; set; } /// /// /// - public global::Terra.StrengthProgrammeVariant2? Type495 { get; set; } + public global::Terra.StrengthRangeOfMotionVariant6? Type495 { get; set; } /// /// /// - public global::Terra.StrengthExerciseModifiers? Type496 { get; set; } + public global::Terra.StrengthRangeOfMotionVariant7? Type496 { get; set; } /// /// /// - public global::Terra.StrengthMuscle? Type497 { get; set; } + public global::Terra.StrengthProgramme? Type497 { get; set; } /// /// /// - public global::Terra.StrengthMuscleVariant1? Type498 { get; set; } + public global::Terra.StrengthProgrammeVariant1? Type498 { get; set; } /// /// /// - public global::Terra.StrengthMuscleVariant2? Type499 { get; set; } + public global::Terra.StrengthProgrammeVariant2? Type499 { get; set; } /// /// /// - public global::Terra.StrengthMuscleVariant3? Type500 { get; set; } + public global::Terra.StrengthExerciseModifiers? Type500 { get; set; } /// /// /// - public global::Terra.StrengthMuscleVariant4? Type501 { get; set; } + public global::Terra.StrengthMuscle? Type501 { get; set; } /// /// /// - public global::Terra.StrengthMuscleVariant5? Type502 { get; set; } + public global::Terra.StrengthMuscleVariant1? Type502 { get; set; } /// /// /// - public global::Terra.StrengthMuscleVariant6? Type503 { get; set; } + public global::Terra.StrengthMuscleVariant2? Type503 { get; set; } /// /// /// - public global::Terra.StrengthMuscleVariant7? Type504 { get; set; } + public global::Terra.StrengthMuscleVariant3? Type504 { get; set; } /// /// /// - public global::Terra.StrengthMuscleVariant8? Type505 { get; set; } + public global::Terra.StrengthMuscleVariant4? Type505 { get; set; } /// /// /// - public global::Terra.StrengthMuscleVariant9? Type506 { get; set; } + public global::Terra.StrengthMuscleVariant5? Type506 { get; set; } /// /// /// - public global::Terra.StrengthMuscleVariant10? Type507 { get; set; } + public global::Terra.StrengthMuscleVariant6? Type507 { get; set; } /// /// /// - public global::Terra.StrengthMuscleVariant11? Type508 { get; set; } + public global::Terra.StrengthMuscleVariant7? Type508 { get; set; } /// /// /// - public global::Terra.StrengthMuscleVariant12? Type509 { get; set; } + public global::Terra.StrengthMuscleVariant8? Type509 { get; set; } /// /// /// - public global::Terra.StrengthMuscleVariant13? Type510 { get; set; } + public global::Terra.StrengthMuscleVariant9? Type510 { get; set; } /// /// /// - public global::Terra.StrengthMuscleVariant14? Type511 { get; set; } + public global::Terra.StrengthMuscleVariant10? Type511 { get; set; } /// /// /// - public global::Terra.StrengthMuscleVariant15? Type512 { get; set; } + public global::Terra.StrengthMuscleVariant11? Type512 { get; set; } /// /// /// - public global::Terra.StrengthMuscleVariant16? Type513 { get; set; } + public global::Terra.StrengthMuscleVariant12? Type513 { get; set; } /// /// /// - public global::Terra.StrengthMuscleVariant17? Type514 { get; set; } + public global::Terra.StrengthMuscleVariant13? Type514 { get; set; } /// /// /// - public global::Terra.StrengthMuscleVariant18? Type515 { get; set; } + public global::Terra.StrengthMuscleVariant14? Type515 { get; set; } /// /// /// - public global::Terra.StrengthMuscleVariant19? Type516 { get; set; } + public global::Terra.StrengthMuscleVariant15? Type516 { get; set; } /// /// /// - public global::Terra.StrengthMuscleVariant20? Type517 { get; set; } + public global::Terra.StrengthMuscleVariant16? Type517 { get; set; } /// /// /// - public global::Terra.StrengthMuscleVariant21? Type518 { get; set; } + public global::Terra.StrengthMuscleVariant17? Type518 { get; set; } /// /// /// - public global::Terra.StrengthMuscleVariant22? Type519 { get; set; } + public global::Terra.StrengthMuscleVariant18? Type519 { get; set; } /// /// /// - public global::Terra.StrengthMuscleVariant23? Type520 { get; set; } + public global::Terra.StrengthMuscleVariant19? Type520 { get; set; } /// /// /// - public global::Terra.StrengthSource? Type521 { get; set; } + public global::Terra.StrengthMuscleVariant20? Type521 { get; set; } /// /// /// - public global::Terra.StrengthSourceVariant1? Type522 { get; set; } + public global::Terra.StrengthMuscleVariant21? Type522 { get; set; } /// /// /// - public global::Terra.StrengthSourceVariant2? Type523 { get; set; } + public global::Terra.StrengthMuscleVariant22? Type523 { get; set; } /// /// /// - public global::Terra.StrengthSourceVariant3? Type524 { get; set; } + public global::Terra.StrengthMuscleVariant23? Type524 { get; set; } /// /// /// - public global::Terra.StrengthLoadType? Type525 { get; set; } + public global::Terra.StrengthSource? Type525 { get; set; } /// /// /// - public global::Terra.StrengthLoadTypeVariant1? Type526 { get; set; } + public global::Terra.StrengthSourceVariant1? Type526 { get; set; } /// /// /// - public global::Terra.StrengthLoadTypeVariant2? Type527 { get; set; } + public global::Terra.StrengthSourceVariant2? Type527 { get; set; } /// /// /// - public global::Terra.StrengthLoadTypeVariant3? Type528 { get; set; } + public global::Terra.StrengthSourceVariant3? Type528 { get; set; } /// /// /// - public global::Terra.StrengthLoadTypeVariant4? Type529 { get; set; } + public global::Terra.StrengthLoadType? Type529 { get; set; } /// /// /// - public global::Terra.StrengthLoadTypeVariant5? Type530 { get; set; } + public global::Terra.StrengthLoadTypeVariant1? Type530 { get; set; } /// /// /// - public global::Terra.StrengthSetType? Type531 { get; set; } + public global::Terra.StrengthLoadTypeVariant2? Type531 { get; set; } /// /// /// - public global::Terra.StrengthSetTypeVariant1? Type532 { get; set; } + public global::Terra.StrengthLoadTypeVariant3? Type532 { get; set; } /// /// /// - public global::Terra.StrengthSetTypeVariant2? Type533 { get; set; } + public global::Terra.StrengthLoadTypeVariant4? Type533 { get; set; } /// /// /// - public global::Terra.StrengthSetTypeVariant3? Type534 { get; set; } + public global::Terra.StrengthLoadTypeVariant5? Type534 { get; set; } /// /// /// - public global::Terra.StrengthSetTypeVariant4? Type535 { get; set; } + public global::Terra.StrengthSetType? Type535 { get; set; } /// /// /// - public global::Terra.StrengthSetTypeVariant5? Type536 { get; set; } + public global::Terra.StrengthSetTypeVariant1? Type536 { get; set; } /// /// /// - public global::Terra.StrengthSetTypeVariant6? Type537 { get; set; } + public global::Terra.StrengthSetTypeVariant2? Type537 { get; set; } /// /// /// - public global::Terra.StrengthSetTypeVariant7? Type538 { get; set; } + public global::Terra.StrengthSetTypeVariant3? Type538 { get; set; } /// /// /// - public global::Terra.StrengthSet? Type539 { get; set; } + public global::Terra.StrengthSetTypeVariant4? Type539 { get; set; } /// /// /// - public global::Terra.StrengthExercise? Type540 { get; set; } + public global::Terra.StrengthSetTypeVariant5? Type540 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type541 { get; set; } + public global::Terra.StrengthSetTypeVariant6? Type541 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type542 { get; set; } + public global::Terra.StrengthSetTypeVariant7? Type542 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type543 { get; set; } + public global::Terra.StrengthSet? Type543 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type544 { get; set; } + public global::Terra.StrengthExercise? Type544 { get; set; } /// /// /// - public global::Terra.PowerSample? Type545 { get; set; } + public global::System.Collections.Generic.IList? Type545 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type546 { get; set; } + public global::System.Collections.Generic.IList? Type546 { get; set; } /// /// /// - public global::Terra.TSSSample? Type547 { get; set; } + public global::System.Collections.Generic.IList? Type547 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type548 { get; set; } + public global::System.Collections.Generic.IList? Type548 { get; set; } /// /// /// - public global::Terra.BloodPressureSample? Type549 { get; set; } + public global::Terra.PowerSample? Type549 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type550 { get; set; } + public global::System.Collections.Generic.IList? Type550 { get; set; } /// /// /// - public global::Terra.AFibClassificationSample? Type551 { get; set; } + public global::Terra.TSSSample? Type551 { get; set; } /// /// /// - public global::Terra.RawECGSample? Type552 { get; set; } + public global::System.Collections.Generic.IList? Type552 { get; set; } /// /// /// - public global::Terra.ECGReading? Type553 { get; set; } + public global::Terra.BloodPressureSample? Type553 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type554 { get; set; } + public global::System.Collections.Generic.IList? Type554 { get; set; } /// /// /// - public global::Terra.PulseVelocitySample? Type555 { get; set; } + public global::Terra.AFibClassificationSample? Type555 { get; set; } /// /// /// - public global::Terra.RRIntervalSample? Type556 { get; set; } + public global::Terra.RawECGSample? Type556 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type557 { get; set; } + public global::Terra.ECGReading? Type557 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type558 { get; set; } + public global::System.Collections.Generic.IList? Type558 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type559 { get; set; } + public global::Terra.PulseVelocitySample? Type559 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type560 { get; set; } + public global::Terra.RRIntervalSample? Type560 { get; set; } /// /// /// - public global::Terra.HydrationMeasurementSample? Type561 { get; set; } + public global::System.Collections.Generic.IList? Type561 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type562 { get; set; } + public global::System.Collections.Generic.IList? Type562 { get; set; } /// /// /// - public global::Terra.KetoneSample? Type563 { get; set; } + public global::System.Collections.Generic.IList? Type563 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type564 { get; set; } + public global::System.Collections.Generic.IList? Type564 { get; set; } /// /// /// - public global::Terra.MeasurementDataSample? Type565 { get; set; } + public global::Terra.HydrationMeasurementSample? Type565 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type566 { get; set; } + public global::System.Collections.Generic.IList? Type566 { get; set; } /// /// /// - public global::Terra.TemperatureSample? Type567 { get; set; } + public global::Terra.KetoneSample? Type567 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type568 { get; set; } + public global::System.Collections.Generic.IList? Type568 { get; set; } /// /// /// - public global::Terra.GlucoseDataSample? Type569 { get; set; } + public global::Terra.MeasurementDataSample? Type569 { get; set; } /// /// /// - public global::Terra.DailyPatternSample? Type570 { get; set; } + public global::System.Collections.Generic.IList? Type570 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type571 { get; set; } + public global::Terra.TemperatureSample? Type571 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type572 { get; set; } + public global::System.Collections.Generic.IList? Type572 { get; set; } /// /// /// - public global::Terra.StressSample? Type573 { get; set; } + public global::Terra.GlucoseDataSample? Type573 { get; set; } /// /// /// - public global::Terra.BodyBatterySample? Type574 { get; set; } + public global::Terra.DailyPatternSample? Type574 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type575 { get; set; } + public global::System.Collections.Generic.IList? Type575 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type576 { get; set; } + public global::System.Collections.Generic.IList? Type576 { get; set; } /// /// /// - public global::Terra.TagEntry? Type577 { get; set; } + public global::Terra.StressSample? Type577 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type578 { get; set; } + public global::Terra.BodyBatterySample? Type578 { get; set; } /// /// /// - public global::Terra.MenstruationFlowSample? Type579 { get; set; } + public global::System.Collections.Generic.IList? Type579 { get; set; } /// /// /// - public global::Terra.MenstruationIntervalSample? Type580 { get; set; } + public global::System.Collections.Generic.IList? Type580 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type581 { get; set; } + public global::Terra.TagEntry? Type581 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type582 { get; set; } + public global::System.Collections.Generic.IList? Type582 { get; set; } /// /// /// - public global::Terra.NutritionMicros? Type583 { get; set; } + public global::Terra.MenstruationFlowSample? Type583 { get; set; } /// /// /// - public global::Terra.NutritionQuantity? Type584 { get; set; } + public global::Terra.MenstruationIntervalSample? Type584 { get; set; } /// /// /// - public global::Terra.NutritionMacros? Type585 { get; set; } + public global::System.Collections.Generic.IList? Type585 { get; set; } /// /// /// - public global::Terra.BreathSample? Type586 { get; set; } + public global::System.Collections.Generic.IList? Type586 { get; set; } /// /// /// - public global::Terra.BreathsData? Type587 { get; set; } + public global::Terra.NutritionMicros? Type587 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type588 { get; set; } + public global::Terra.NutritionQuantity? Type588 { get; set; } /// /// /// - public global::Terra.OxygenSaturationData? Type589 { get; set; } + public global::Terra.NutritionMacros? Type589 { get; set; } /// /// /// - public global::Terra.SnoringSample? Type590 { get; set; } + public global::Terra.BreathSample? Type590 { get; set; } /// /// /// - public global::Terra.SnoringData? Type591 { get; set; } + public global::Terra.BreathsData? Type591 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type592 { get; set; } + public global::System.Collections.Generic.IList? Type592 { get; set; } /// /// /// - public global::Terra.AsleepDurations? Type593 { get; set; } + public global::Terra.OxygenSaturationData? Type593 { get; set; } /// /// /// - public global::Terra.AwakeDurations? Type594 { get; set; } + public global::Terra.SnoringSample? Type594 { get; set; } /// /// /// - public global::Terra.SleepHypnogramSample? Type595 { get; set; } + public global::Terra.SnoringData? Type595 { get; set; } /// /// /// - public global::Terra.OtherSleepDurations? Type596 { get; set; } + public global::System.Collections.Generic.IList? Type596 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type597 { get; set; } + public global::Terra.AsleepDurations? Type597 { get; set; } /// /// /// - public global::Terra.WorkoutSportVariant1? Type598 { get; set; } + public global::Terra.AwakeDurations? Type598 { get; set; } /// /// /// - public global::Terra.WorkoutSportVariant2? Type599 { get; set; } + public global::Terra.SleepHypnogramSample? Type599 { get; set; } /// /// /// - public global::Terra.WorkoutSportVariant3? Type600 { get; set; } + public global::Terra.OtherSleepDurations? Type600 { get; set; } /// /// /// - public global::Terra.WorkoutSportVariant4? Type601 { get; set; } + public global::System.Collections.Generic.IList? Type601 { get; set; } /// /// /// - public global::Terra.WorkoutSportVariant5? Type602 { get; set; } + public global::Terra.EnvironmentTypeVariant1? Type602 { get; set; } /// /// /// - public global::Terra.WorkoutSportVariant6? Type603 { get; set; } + public global::Terra.EnvironmentTypeVariant2? Type603 { get; set; } /// /// /// - public global::Terra.WorkoutSportVariant7? Type604 { get; set; } + public global::Terra.EnvironmentTypeVariant3? Type604 { get; set; } /// /// /// - public global::Terra.WorkoutSportVariant8? Type605 { get; set; } + public global::Terra.CompletionConditionType? Type605 { get; set; } /// /// /// - public global::Terra.WorkoutSportVariant9? Type606 { get; set; } + public global::Terra.CompletionConditionTypeVariant1? Type606 { get; set; } /// /// /// - public global::Terra.WorkoutSportVariant10? Type607 { get; set; } + public global::Terra.CompletionConditionTypeVariant2? Type607 { get; set; } /// /// /// - public global::Terra.WorkoutSportVariant11? Type608 { get; set; } + public global::Terra.CompletionConditionTypeVariant3? Type608 { get; set; } /// /// /// - public global::Terra.WorkoutSportVariant12? Type609 { get; set; } + public global::Terra.CompletionConditionTypeVariant4? Type609 { get; set; } /// /// /// - public global::Terra.WorkoutSportVariant13? Type610 { get; set; } + public global::Terra.CompletionConditionTypeVariant5? Type610 { get; set; } /// /// /// - public global::Terra.WorkoutSportVariant14? Type611 { get; set; } + public global::Terra.CompletionConditionTypeVariant6? Type611 { get; set; } /// /// /// - public global::Terra.WorkoutSportVariant15? Type612 { get; set; } + public global::Terra.CompletionConditionTypeVariant7? Type612 { get; set; } /// /// /// - public global::Terra.EnvironmentTypeVariant1? Type613 { get; set; } + public global::Terra.CompletionConditionTypeVariant8? Type613 { get; set; } /// /// /// - public global::Terra.EnvironmentTypeVariant2? Type614 { get; set; } + public global::Terra.CompletionConditionTypeVariant9? Type614 { get; set; } /// /// /// - public global::Terra.EnvironmentTypeVariant3? Type615 { get; set; } + public global::Terra.CompletionConditionTypeVariant10? Type615 { get; set; } /// /// /// - public global::Terra.CompletionConditionType? Type616 { get; set; } + public global::Terra.CompletionConditionTypeVariant11? Type616 { get; set; } /// /// /// - public global::Terra.CompletionConditionTypeVariant1? Type617 { get; set; } + public global::Terra.CompletionConditionTypeVariant12? Type617 { get; set; } /// /// /// - public global::Terra.CompletionConditionTypeVariant2? Type618 { get; set; } + public global::Terra.CompletionConditionTypeVariant13? Type618 { get; set; } /// /// /// - public global::Terra.CompletionConditionTypeVariant3? Type619 { get; set; } + public global::Terra.CompletionConditionTypeVariant14? Type619 { get; set; } /// /// /// - public global::Terra.CompletionConditionTypeVariant4? Type620 { get; set; } + public global::Terra.CompletionConditionTypeVariant15? Type620 { get; set; } /// /// /// - public global::Terra.CompletionConditionTypeVariant5? Type621 { get; set; } + public global::Terra.CompletionConditionTypeVariant16? Type621 { get; set; } /// /// /// - public global::Terra.CompletionConditionTypeVariant6? Type622 { get; set; } + public global::Terra.CompletionConditionTypeVariant17? Type622 { get; set; } /// /// /// - public global::Terra.CompletionConditionTypeVariant7? Type623 { get; set; } + public global::Terra.CompletionCondition? Type623 { get; set; } /// /// /// - public global::Terra.CompletionConditionTypeVariant8? Type624 { get; set; } + public global::Terra.WorkoutStepTargetType? Type624 { get; set; } /// /// /// - public global::Terra.CompletionConditionTypeVariant9? Type625 { get; set; } + public global::Terra.WorkoutStepTargetTypeVariant1? Type625 { get; set; } /// /// /// - public global::Terra.CompletionConditionTypeVariant10? Type626 { get; set; } + public global::Terra.WorkoutStepTargetTypeVariant2? Type626 { get; set; } /// /// /// - public global::Terra.CompletionConditionTypeVariant11? Type627 { get; set; } + public global::Terra.WorkoutStepTargetTypeVariant3? Type627 { get; set; } /// /// /// - public global::Terra.CompletionCondition? Type628 { get; set; } + public global::Terra.WorkoutStepTargetTypeVariant4? Type628 { get; set; } /// /// /// - public global::Terra.WorkoutStepTargetType? Type629 { get; set; } + public global::Terra.WorkoutStepTargetTypeVariant5? Type629 { get; set; } /// /// /// - public global::Terra.WorkoutStepTargetTypeVariant1? Type630 { get; set; } + public global::Terra.WorkoutStepTargetTypeVariant6? Type630 { get; set; } /// /// /// - public global::Terra.WorkoutStepTargetTypeVariant2? Type631 { get; set; } + public global::Terra.WorkoutStepTargetTypeVariant7? Type631 { get; set; } /// /// /// - public global::Terra.WorkoutStepTargetTypeVariant3? Type632 { get; set; } + public global::Terra.WorkoutStepTargetTypeVariant8? Type632 { get; set; } /// /// /// - public global::Terra.WorkoutStepTargetTypeVariant4? Type633 { get; set; } + public global::Terra.WorkoutStepTargetTypeVariant9? Type633 { get; set; } /// /// /// - public global::Terra.WorkoutStepTargetTypeVariant5? Type634 { get; set; } + public global::Terra.WorkoutStepTargetTypeVariant10? Type634 { get; set; } /// /// /// - public global::Terra.WorkoutStepTargetTypeVariant6? Type635 { get; set; } + public global::Terra.WorkoutStepTargetTypeVariant11? Type635 { get; set; } /// /// /// - public global::Terra.WorkoutStepTargetTypeVariant7? Type636 { get; set; } + public global::Terra.WorkoutStepTargetTypeVariant12? Type636 { get; set; } /// /// /// - public global::Terra.WorkoutStepTargetTypeVariant8? Type637 { get; set; } + public global::Terra.WorkoutStepTargetTypeVariant13? Type637 { get; set; } /// /// /// - public global::Terra.WorkoutStepTargetTypeVariant9? Type638 { get; set; } + public global::Terra.WorkoutStepTargetTypeVariant14? Type638 { get; set; } /// /// /// - public global::Terra.WorkoutStepTargetTypeVariant10? Type639 { get; set; } + public global::Terra.WorkoutStepTargetTypeVariant15? Type639 { get; set; } /// /// /// - public global::Terra.WorkoutStepTargetTypeVariant11? Type640 { get; set; } + public global::Terra.WorkoutStepTargetTypeVariant16? Type640 { get; set; } /// /// /// - public global::Terra.IntensityTarget? Type641 { get; set; } + public global::Terra.WorkoutStepTargetTypeVariant17? Type641 { get; set; } /// /// /// - public global::Terra.WorkoutStepIntensity? Type642 { get; set; } + public global::Terra.WorkoutStepTargetTypeVariant18? Type642 { get; set; } /// /// /// - public global::Terra.WorkoutStepIntensityVariant1? Type643 { get; set; } + public global::Terra.WorkoutStepTargetTypeVariant19? Type643 { get; set; } /// /// /// - public global::Terra.WorkoutStepIntensityVariant2? Type644 { get; set; } + public global::Terra.IntensityTarget? Type644 { get; set; } /// /// /// - public global::Terra.WorkoutStepIntensityVariant3? Type645 { get; set; } + public global::Terra.WorkoutStepIntensity? Type645 { get; set; } /// /// /// - public global::Terra.WorkoutStepIntensityVariant4? Type646 { get; set; } + public global::Terra.WorkoutStepIntensityVariant1? Type646 { get; set; } /// /// /// - public global::Terra.WorkoutStepIntensityVariant5? Type647 { get; set; } + public global::Terra.WorkoutStepIntensityVariant2? Type647 { get; set; } /// /// /// - public global::Terra.StepControlType? Type648 { get; set; } + public global::Terra.WorkoutStepIntensityVariant3? Type648 { get; set; } /// /// /// - public global::Terra.StepControlTypeVariant1? Type649 { get; set; } + public global::Terra.WorkoutStepIntensityVariant4? Type649 { get; set; } /// /// /// - public global::Terra.StepControlTypeVariant2? Type650 { get; set; } + public global::Terra.WorkoutStepIntensityVariant5? Type650 { get; set; } /// /// /// - public global::Terra.StepControl? Type651 { get; set; } + public global::Terra.StepControlType? Type651 { get; set; } /// /// /// - public global::Terra.WeightUnit? Type652 { get; set; } + public global::Terra.StepControlTypeVariant1? Type652 { get; set; } /// /// /// - public global::Terra.WeightUnitVariant1? Type653 { get; set; } + public global::Terra.StepControlTypeVariant2? Type653 { get; set; } /// /// /// - public global::Terra.WeightUnitVariant2? Type654 { get; set; } + public global::Terra.StepControl? Type654 { get; set; } /// /// /// - public global::Terra.StrengthData? Type655 { get; set; } + public global::Terra.WeightUnit? Type655 { get; set; } /// /// /// - public global::Terra.SwimStrokeType? Type656 { get; set; } + public global::Terra.WeightUnitVariant1? Type656 { get; set; } /// /// /// - public global::Terra.SwimStrokeTypeVariant1? Type657 { get; set; } + public global::Terra.WeightUnitVariant2? Type657 { get; set; } /// /// /// - public global::Terra.SwimStrokeTypeVariant2? Type658 { get; set; } + public global::Terra.StrengthData? Type658 { get; set; } /// /// /// - public global::Terra.SwimStrokeTypeVariant3? Type659 { get; set; } + public global::Terra.SwimStrokeType? Type659 { get; set; } /// /// /// - public global::Terra.SwimStrokeTypeVariant4? Type660 { get; set; } + public global::Terra.SwimStrokeTypeVariant1? Type660 { get; set; } /// /// /// - public global::Terra.SwimStrokeTypeVariant5? Type661 { get; set; } + public global::Terra.SwimStrokeTypeVariant2? Type661 { get; set; } /// /// /// - public global::Terra.SwimStrokeTypeVariant6? Type662 { get; set; } + public global::Terra.SwimStrokeTypeVariant3? Type662 { get; set; } /// /// /// - public global::Terra.SwimStrokeTypeVariant7? Type663 { get; set; } + public global::Terra.SwimStrokeTypeVariant4? Type663 { get; set; } /// /// /// - public global::Terra.DrillType? Type664 { get; set; } + public global::Terra.SwimStrokeTypeVariant5? Type664 { get; set; } /// /// /// - public global::Terra.DrillTypeVariant1? Type665 { get; set; } + public global::Terra.SwimStrokeTypeVariant6? Type665 { get; set; } /// /// /// - public global::Terra.DrillTypeVariant2? Type666 { get; set; } + public global::Terra.SwimStrokeTypeVariant7? Type666 { get; set; } /// /// /// - public global::Terra.DrillTypeVariant3? Type667 { get; set; } + public global::Terra.DrillType? Type667 { get; set; } /// /// /// - public global::Terra.SwimEquipmentType? Type668 { get; set; } + public global::Terra.DrillTypeVariant1? Type668 { get; set; } /// /// /// - public global::Terra.SwimEquipmentTypeVariant1? Type669 { get; set; } + public global::Terra.DrillTypeVariant2? Type669 { get; set; } /// /// /// - public global::Terra.SwimEquipmentTypeVariant2? Type670 { get; set; } + public global::Terra.DrillTypeVariant3? Type670 { get; set; } /// /// /// - public global::Terra.SwimEquipmentTypeVariant3? Type671 { get; set; } + public global::Terra.SwimEquipmentType? Type671 { get; set; } /// /// /// - public global::Terra.SwimEquipmentTypeVariant4? Type672 { get; set; } + public global::Terra.SwimEquipmentTypeVariant1? Type672 { get; set; } /// /// /// - public global::Terra.SwimEquipmentTypeVariant5? Type673 { get; set; } + public global::Terra.SwimEquipmentTypeVariant2? Type673 { get; set; } /// /// /// - public global::Terra.SwimEquipmentTypeVariant6? Type674 { get; set; } + public global::Terra.SwimEquipmentTypeVariant3? Type674 { get; set; } /// /// /// - public global::Terra.SwimStepData? Type675 { get; set; } + public global::Terra.SwimEquipmentTypeVariant4? Type675 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type676 { get; set; } + public global::Terra.SwimEquipmentTypeVariant5? Type676 { get; set; } /// /// /// - public global::Terra.WorkoutStep? Type677 { get; set; } + public global::Terra.SwimEquipmentTypeVariant6? Type677 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type678 { get; set; } + public global::Terra.SwimStepData? Type678 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type679 { get; set; } + public global::System.Collections.Generic.IList? Type679 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type680 { get; set; } + public global::Terra.WorkoutStep? Type680 { get; set; } /// /// /// - public global::Terra.AthleteMetrics? Type681 { get; set; } + public global::System.Collections.Generic.IList? Type681 { get; set; } /// /// /// - public global::Terra.PlannedWorkoutDetailsMetadata? Type682 { get; set; } + public global::System.Collections.Generic.IList? Type682 { get; set; } /// /// /// - public global::Terra.PlannedWorkoutDetailsStepDuration? Type683 { get; set; } + public global::System.Collections.Generic.IList? Type683 { get; set; } /// /// /// - public global::Terra.PlannedWorkoutDetailsStepTarget? Type684 { get; set; } + public global::Terra.WorkoutSportVariant1? Type684 { get; set; } /// /// /// - public global::Terra.PlannedWorkoutDetailsStep? Type685 { get; set; } + public global::Terra.WorkoutSportVariant2? Type685 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type686 { get; set; } + public global::Terra.WorkoutSportVariant3? Type686 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type687 { get; set; } + public global::Terra.WorkoutSportVariant4? Type687 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type688 { get; set; } + public global::Terra.WorkoutSportVariant5? Type688 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type689 { get; set; } + public global::Terra.WorkoutSportVariant6? Type689 { get; set; } /// /// /// - public global::Terra.PlannedWorkoutDetails? Type690 { get; set; } + public global::Terra.WorkoutSportVariant7? Type690 { get; set; } /// /// /// - public global::Terra.WebhookEvent? Type691 { get; set; } + public global::Terra.WorkoutSportVariant8? Type691 { get; set; } /// /// /// - public global::Terra.AuthSuccessEventType? Type692 { get; set; } + public global::Terra.WorkoutSportVariant9? Type692 { get; set; } /// /// /// - public global::Terra.AuthSuccessEventStatus? Type693 { get; set; } + public global::Terra.WorkoutSportVariant10? Type693 { get; set; } /// /// /// - public global::Terra.AuthErrorEventType? Type694 { get; set; } + public global::Terra.WorkoutSportVariant11? Type694 { get; set; } /// /// /// - public global::Terra.AuthErrorEventStatus? Type695 { get; set; } + public global::Terra.WorkoutSportVariant12? Type695 { get; set; } /// /// /// - public global::Terra.DeauthEventType? Type696 { get; set; } + public global::Terra.WorkoutSportVariant13? Type696 { get; set; } /// /// /// - public global::Terra.DeauthEventStatus? Type697 { get; set; } + public global::Terra.WorkoutSportVariant14? Type697 { get; set; } /// /// /// - public global::Terra.UserReauthEventType? Type698 { get; set; } + public global::Terra.WorkoutSportVariant15? Type698 { get; set; } /// /// /// - public global::Terra.UserReauthEventStatus? Type699 { get; set; } + public global::Terra.AthleteMetrics? Type699 { get; set; } /// /// /// - public global::Terra.AccessRevokedEventType? Type700 { get; set; } + public global::Terra.PlannedWorkoutSportEnum? Type700 { get; set; } /// /// /// - public global::Terra.AccessRevokedEventStatus? Type701 { get; set; } + public global::Terra.PlannedWorkoutDetailsMetadata? Type701 { get; set; } /// /// /// - public global::Terra.PermissionChangeEventType? Type702 { get; set; } + public global::Terra.PlannedWorkoutDetailsStepDuration? Type702 { get; set; } /// /// /// - public global::Terra.PermissionChangeEventStatus? Type703 { get; set; } + public global::Terra.PlannedWorkoutDetailsStepTarget? Type703 { get; set; } /// /// /// - public global::Terra.ConnectionErrorEventType? Type704 { get; set; } + public global::Terra.PlannedWorkoutDetailsStep? Type704 { get; set; } /// /// /// - public global::Terra.ConnectionErrorEventStatus? Type705 { get; set; } + public global::System.Collections.Generic.IList? Type705 { get; set; } /// /// /// - public global::Terra.LargeRequestSendingEventType? Type706 { get; set; } + public global::System.Collections.Generic.IList? Type706 { get; set; } /// /// /// - public global::Terra.LargeRequestProcessingEventType? Type707 { get; set; } + public global::System.Collections.Generic.IList? Type707 { get; set; } /// /// /// - public global::Terra.LargeRequestProcessingEventStatus? Type708 { get; set; } + public global::System.Collections.Generic.IList? Type708 { get; set; } /// /// /// - public global::Terra.S3PayloadEventType? Type709 { get; set; } + public global::Terra.PlannedWorkoutDetails? Type709 { get; set; } /// /// /// - public global::Terra.S3PayloadEventStatus? Type710 { get; set; } + public global::Terra.WebhookEvent? Type710 { get; set; } /// /// /// - public global::Terra.ActivityEventType? Type711 { get; set; } + public global::Terra.AuthSuccessEventType? Type711 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type712 { get; set; } + public global::Terra.AuthSuccessEventStatus? Type712 { get; set; } /// /// /// - public global::Terra.AthleteEventType? Type713 { get; set; } + public global::Terra.AuthErrorEventType? Type713 { get; set; } /// /// /// - public global::Terra.NutritionEventType? Type714 { get; set; } + public global::Terra.AuthErrorEventStatus? Type714 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type715 { get; set; } + public global::Terra.DeauthEventType? Type715 { get; set; } /// /// /// - public global::Terra.DailyEventType? Type716 { get; set; } + public global::Terra.DeauthEventStatus? Type716 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type717 { get; set; } + public global::Terra.UserReauthEventType? Type717 { get; set; } /// /// /// - public global::Terra.SleepEventType? Type718 { get; set; } + public global::Terra.UserReauthEventStatus? Type718 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type719 { get; set; } + public global::Terra.AccessRevokedEventType? Type719 { get; set; } /// /// /// - public global::Terra.MenstruationEventType? Type720 { get; set; } + public global::Terra.AccessRevokedEventStatus? Type720 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type721 { get; set; } + public global::Terra.PermissionChangeEventType? Type721 { get; set; } /// /// /// - public global::Terra.BodyEventType? Type722 { get; set; } + public global::Terra.PermissionChangeEventStatus? Type722 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type723 { get; set; } + public global::Terra.ConnectionErrorEventType? Type723 { get; set; } /// /// /// - public global::Terra.LabReportEventResultSource? Type724 { get; set; } + public global::Terra.ConnectionErrorEventStatus? Type724 { get; set; } /// /// /// - public global::Terra.LabReportEventResult? Type725 { get; set; } + public global::Terra.LargeRequestSendingEventType? Type725 { get; set; } /// /// /// - public global::Terra.LabReportEventData? Type726 { get; set; } + public global::Terra.LargeRequestProcessingEventType? Type726 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type727 { get; set; } + public global::Terra.LargeRequestProcessingEventStatus? Type727 { get; set; } /// /// /// - public global::Terra.LabReportCompletedEventType? Type728 { get; set; } + public global::Terra.S3PayloadEventType? Type728 { get; set; } /// /// /// - public global::Terra.LabReportEventError? Type729 { get; set; } + public global::Terra.S3PayloadEventStatus? Type729 { get; set; } /// /// /// - public global::Terra.LabReportFailureData? Type730 { get; set; } + public global::Terra.ActivityEventType? Type730 { get; set; } /// /// /// - public global::Terra.LabReportFailedEventType? Type731 { get; set; } + public global::System.Collections.Generic.IList? Type731 { get; set; } /// /// /// - public global::Terra.PlannedWorkoutEventType? Type732 { get; set; } + public global::Terra.AthleteEventType? Type732 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type733 { get; set; } + public global::Terra.NutritionEventType? Type733 { get; set; } /// /// /// - public global::Terra.HormoneEventType? Type734 { get; set; } + public global::System.Collections.Generic.IList? Type734 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type735 { get; set; } + public global::Terra.DailyEventType? Type735 { get; set; } /// /// /// - public global::Terra.HealthObservationMetadata? Type736 { get; set; } + public global::System.Collections.Generic.IList? Type736 { get; set; } /// /// /// - public global::Terra.ObservationCode? Type737 { get; set; } + public global::Terra.SleepEventType? Type737 { get; set; } /// /// /// - public global::Terra.ObservationValue? Type738 { get; set; } + public global::System.Collections.Generic.IList? Type738 { get; set; } /// /// /// - public global::Terra.ObservationComponent? Type739 { get; set; } + public global::Terra.MenstruationEventType? Type739 { get; set; } /// /// /// - public global::Terra.HealthObservationData? Type740 { get; set; } + public global::System.Collections.Generic.IList? Type740 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type741 { get; set; } + public global::Terra.BodyEventType? Type741 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type742 { get; set; } + public global::System.Collections.Generic.IList? Type742 { get; set; } /// /// /// - public global::Terra.HealthObservation? Type743 { get; set; } + public global::Terra.LabReportEventResultSource? Type743 { get; set; } /// /// /// - public global::Terra.HealthObservationEventType? Type744 { get; set; } + public global::Terra.LabReportEventResult? Type744 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type745 { get; set; } + public global::Terra.LabReportEventData? Type745 { get; set; } /// /// /// - public global::Terra.AuthenticationAuthenticateUserRequest? Type746 { get; set; } + public global::System.Collections.Generic.IList? Type746 { get; set; } /// /// /// - public global::Terra.AuthenticationAuthenticateUserRequestSdkApp? Type747 { get; set; } + public global::Terra.LabReportCompletedEventType? Type747 { get; set; } /// /// /// - public global::Terra.WorkoutsPlanWorkoutRequest? Type748 { get; set; } + public global::Terra.LabReportEventError? Type748 { get; set; } /// /// /// - public global::Terra.WorkoutsUpdatePlannedWorkoutRequest? Type749 { get; set; } + public global::Terra.LabReportFailureData? Type749 { get; set; } /// /// /// - public global::Terra.LabReportsUploadRequest? Type750 { get; set; } + public global::Terra.LabReportFailedEventType? Type750 { get; set; } /// /// /// - public global::Terra.OneOf? Type751 { get; set; } + public global::Terra.PlannedWorkoutEventType? Type751 { get; set; } /// /// /// - public global::Terra.AuthenticationAuthenticateUserResponse? Type752 { get; set; } + public global::System.Collections.Generic.IList? Type752 { get; set; } /// /// /// - public global::Terra.AuthenticationAuthenticateUserResponseStatus? Type753 { get; set; } + public global::Terra.HormoneEventType? Type753 { get; set; } /// /// /// - public global::Terra.AuthenticationGenerateWidgetSessionResponse? Type754 { get; set; } + public global::System.Collections.Generic.IList? Type754 { get; set; } /// /// /// - public global::Terra.AuthenticationGenerateWidgetSessionResponseStatus? Type755 { get; set; } + public global::Terra.HealthObservationMetadata? Type755 { get; set; } /// /// /// - public global::Terra.AuthenticationDeauthenticateUserResponse? Type756 { get; set; } + public global::Terra.ObservationCode? Type756 { get; set; } /// /// /// - public global::Terra.AuthenticationDeauthenticateUserResponseStatus? Type757 { get; set; } + public global::Terra.ObservationValue? Type757 { get; set; } /// /// /// - public global::Terra.AuthenticationCreateAuthTokenResponse? Type758 { get; set; } + public global::Terra.ObservationComponent? Type758 { get; set; } /// /// /// - public global::Terra.AuthenticationGenerateAuthTokenResponse? Type759 { get; set; } + public global::Terra.HealthObservationData? Type759 { get; set; } /// /// /// - public global::Terra.OneOf? Type760 { get; set; } + public global::System.Collections.Generic.IList? Type760 { get; set; } /// /// /// - public global::Terra.ActivityGetResponse2? Type761 { get; set; } + public global::System.Collections.Generic.IList? Type761 { get; set; } /// /// /// - public global::Terra.OneOf? Type762 { get; set; } + public global::Terra.HealthObservation? Type762 { get; set; } /// /// /// - public global::Terra.OneOf? Type763 { get; set; } + public global::Terra.HealthObservationEventType? Type763 { get; set; } /// /// /// - public global::Terra.BodyGetResponse2? Type764 { get; set; } + public global::System.Collections.Generic.IList? Type764 { get; set; } /// /// /// - public global::Terra.OneOf? Type765 { get; set; } + public global::Terra.AuthenticationAuthenticateUserRequest? Type765 { get; set; } /// /// /// - public global::Terra.DailyGetResponse2? Type766 { get; set; } + public global::Terra.AuthenticationAuthenticateUserRequestSdkApp? Type766 { get; set; } /// /// /// - public global::Terra.OneOf? Type767 { get; set; } + public global::Terra.WorkoutsPlanWorkoutRequest? Type767 { get; set; } /// /// /// - public global::Terra.MenstruationGetResponse2? Type768 { get; set; } + public global::Terra.WorkoutsUpdatePlannedWorkoutRequest? Type768 { get; set; } /// /// /// - public global::Terra.OneOf? Type769 { get; set; } + public global::Terra.LabReportsUploadRequest? Type769 { get; set; } /// /// /// - public global::Terra.NutritionGetResponse2? Type770 { get; set; } + public global::Terra.OneOf? Type770 { get; set; } /// /// /// - public global::Terra.OneOf? Type771 { get; set; } + public global::Terra.AuthenticationAuthenticateUserResponse? Type771 { get; set; } /// /// /// - public global::Terra.SleepGetResponse2? Type772 { get; set; } + public global::Terra.AuthenticationAuthenticateUserResponseStatus? Type772 { get; set; } /// /// /// - public global::Terra.WorkoutsCreateWorkoutResponse? Type773 { get; set; } + public global::Terra.AuthenticationGenerateWidgetSessionResponse? Type773 { get; set; } /// /// /// - public global::Terra.WorkoutsCreateWorkoutResponseStatus? Type774 { get; set; } + public global::Terra.AuthenticationGenerateWidgetSessionResponseStatus? Type774 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type775 { get; set; } + public global::Terra.AuthenticationDeauthenticateUserResponse? Type775 { get; set; } /// /// /// - public global::Terra.WorkoutsDeleteWorkoutResponse? Type776 { get; set; } + public global::Terra.AuthenticationDeauthenticateUserResponseStatus? Type776 { get; set; } /// /// /// - public global::Terra.WorkoutsPlanWorkoutResponse? Type777 { get; set; } + public global::Terra.AuthenticationCreateAuthTokenResponse? Type777 { get; set; } /// /// /// - public global::Terra.WorkoutsPlanWorkoutResponseStatus? Type778 { get; set; } + public global::Terra.AuthenticationGenerateAuthTokenResponse? Type778 { get; set; } /// /// /// - public global::Terra.OneOf>? Type779 { get; set; } + public global::Terra.OneOf? Type779 { get; set; } /// /// /// - public global::Terra.UserGetResponse2? Type780 { get; set; } + public global::Terra.ActivityGetResponse2? Type780 { get; set; } /// /// /// - public global::Terra.AllOf? Type781 { get; set; } + public global::Terra.OneOf? Type781 { get; set; } /// /// /// - public global::Terra.UserGetResponseUser? Type782 { get; set; } + public global::Terra.OneOf? Type782 { get; set; } /// /// /// - public global::Terra.UserGetResponseStatus? Type783 { get; set; } + public global::Terra.BodyGetResponse2? Type783 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type784 { get; set; } + public global::Terra.OneOf? Type784 { get; set; } /// /// /// - public global::Terra.UserListResponse? Type785 { get; set; } + public global::Terra.DailyGetResponse2? Type785 { get; set; } /// /// /// - public global::Terra.UserListResponseStatus? Type786 { get; set; } + public global::Terra.OneOf? Type786 { get; set; } /// /// /// - public global::Terra.IntegrationsListResponse? Type787 { get; set; } + public global::Terra.MenstruationGetResponse2? Type787 { get; set; } /// /// /// - public global::Terra.IntegrationsListResponseStatus? Type788 { get; set; } + public global::Terra.OneOf? Type788 { get; set; } + /// + /// + /// + public global::Terra.NutritionGetResponse2? Type789 { get; set; } + /// + /// + /// + public global::Terra.OneOf? Type790 { get; set; } + /// + /// + /// + public global::Terra.SleepGetResponse2? Type791 { get; set; } + /// + /// + /// + public global::Terra.WorkoutsCreateWorkoutResponse? Type792 { get; set; } + /// + /// + /// + public global::Terra.WorkoutsCreateWorkoutResponseStatus? Type793 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type794 { get; set; } + /// + /// + /// + public global::Terra.WorkoutsDeleteWorkoutResponse? Type795 { get; set; } + /// + /// + /// + public global::Terra.WorkoutsPlanWorkoutResponse? Type796 { get; set; } + /// + /// + /// + public global::Terra.WorkoutsPlanWorkoutResponseStatus? Type797 { get; set; } + /// + /// + /// + public global::Terra.OneOf>? Type798 { get; set; } + /// + /// + /// + public global::Terra.UserGetResponse2? Type799 { get; set; } + /// + /// + /// + public global::Terra.AllOf? Type800 { get; set; } + /// + /// + /// + public global::Terra.UserGetResponseUser? Type801 { get; set; } + /// + /// + /// + public global::Terra.UserGetResponseStatus? Type802 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type803 { get; set; } + /// + /// + /// + public global::Terra.UserListResponse? Type804 { get; set; } + /// + /// + /// + public global::Terra.UserListResponseStatus? Type805 { get; set; } + /// + /// + /// + public global::Terra.IntegrationsListResponse? Type806 { get; set; } + /// + /// + /// + public global::Terra.IntegrationsListResponseStatus? Type807 { get; set; } /// /// @@ -3194,326 +3270,330 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType1 { get; set; } + public global::System.Collections.Generic.List? ListType1 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType2 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType2 { get; set; } + public global::System.Collections.Generic.List? ListType3 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType3 { get; set; } + public global::System.Collections.Generic.List? ListType4 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType4 { get; set; } + public global::System.Collections.Generic.List? ListType5 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType5 { get; set; } + public global::System.Collections.Generic.List? ListType6 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType6 { get; set; } + public global::System.Collections.Generic.List? ListType7 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType7 { get; set; } + public global::System.Collections.Generic.List? ListType8 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType8 { get; set; } + public global::System.Collections.Generic.List? ListType9 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType9 { get; set; } + public global::System.Collections.Generic.List? ListType10 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType10 { get; set; } + public global::System.Collections.Generic.List? ListType11 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType11 { get; set; } + public global::System.Collections.Generic.List? ListType12 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType12 { get; set; } + public global::System.Collections.Generic.List? ListType13 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType13 { get; set; } + public global::System.Collections.Generic.List? ListType14 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType14 { get; set; } + public global::System.Collections.Generic.List? ListType15 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType15 { get; set; } + public global::System.Collections.Generic.List? ListType16 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType16 { get; set; } + public global::System.Collections.Generic.List? ListType17 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType17 { get; set; } + public global::System.Collections.Generic.List? ListType18 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType18 { get; set; } + public global::System.Collections.Generic.List? ListType19 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType19 { get; set; } + public global::System.Collections.Generic.List? ListType20 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType20 { get; set; } + public global::System.Collections.Generic.List? ListType21 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType21 { get; set; } + public global::System.Collections.Generic.List? ListType22 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType22 { get; set; } + public global::System.Collections.Generic.List? ListType23 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType23 { get; set; } + public global::System.Collections.Generic.List? ListType24 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType24 { get; set; } + public global::System.Collections.Generic.List? ListType25 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType25 { get; set; } + public global::System.Collections.Generic.List? ListType26 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType26 { get; set; } + public global::System.Collections.Generic.List? ListType27 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType27 { get; set; } + public global::System.Collections.Generic.List? ListType28 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType28 { get; set; } + public global::System.Collections.Generic.List? ListType29 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType29 { get; set; } + public global::System.Collections.Generic.List? ListType30 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType30 { get; set; } + public global::System.Collections.Generic.List? ListType31 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType31 { get; set; } + public global::System.Collections.Generic.List? ListType32 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType32 { get; set; } + public global::System.Collections.Generic.List? ListType33 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType33 { get; set; } + public global::System.Collections.Generic.List? ListType34 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType34 { get; set; } + public global::System.Collections.Generic.List? ListType35 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType35 { get; set; } + public global::System.Collections.Generic.List? ListType36 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType36 { get; set; } + public global::System.Collections.Generic.List? ListType37 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType37 { get; set; } + public global::System.Collections.Generic.List? ListType38 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType38 { get; set; } + public global::System.Collections.Generic.List? ListType39 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType39 { get; set; } + public global::System.Collections.Generic.List? ListType40 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType40 { get; set; } + public global::System.Collections.Generic.List? ListType41 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType41 { get; set; } + public global::System.Collections.Generic.List? ListType42 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType42 { get; set; } + public global::System.Collections.Generic.List? ListType43 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType43 { get; set; } + public global::System.Collections.Generic.List? ListType44 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType44 { get; set; } + public global::System.Collections.Generic.List? ListType45 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType45 { get; set; } + public global::System.Collections.Generic.List? ListType46 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType46 { get; set; } + public global::System.Collections.Generic.List? ListType47 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType47 { get; set; } + public global::System.Collections.Generic.List? ListType48 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType48 { get; set; } + public global::System.Collections.Generic.List? ListType49 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType49 { get; set; } + public global::System.Collections.Generic.List? ListType50 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType50 { get; set; } + public global::System.Collections.Generic.List? ListType51 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType51 { get; set; } + public global::System.Collections.Generic.List? ListType52 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType52 { get; set; } + public global::System.Collections.Generic.List? ListType53 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType53 { get; set; } + public global::System.Collections.Generic.List? ListType54 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType54 { get; set; } + public global::System.Collections.Generic.List? ListType55 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType55 { get; set; } + public global::System.Collections.Generic.List? ListType56 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType56 { get; set; } + public global::System.Collections.Generic.List? ListType57 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType57 { get; set; } + public global::System.Collections.Generic.List? ListType58 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType58 { get; set; } + public global::System.Collections.Generic.List? ListType59 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType59 { get; set; } + public global::System.Collections.Generic.List? ListType60 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType60 { get; set; } + public global::System.Collections.Generic.List? ListType61 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType61 { get; set; } + public global::System.Collections.Generic.List? ListType62 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType62 { get; set; } + public global::System.Collections.Generic.List? ListType63 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType63 { get; set; } + public global::System.Collections.Generic.List? ListType64 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType64 { get; set; } + public global::System.Collections.Generic.List? ListType65 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType65 { get; set; } + public global::System.Collections.Generic.List? ListType66 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType66 { get; set; } + public global::System.Collections.Generic.List? ListType67 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType67 { get; set; } + public global::System.Collections.Generic.List? ListType68 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType68 { get; set; } + public global::System.Collections.Generic.List? ListType69 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType69 { get; set; } + public global::System.Collections.Generic.List? ListType70 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType70 { get; set; } + public global::System.Collections.Generic.List? ListType71 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType71 { get; set; } + public global::System.Collections.Generic.List? ListType72 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType72 { get; set; } + public global::System.Collections.Generic.List? ListType73 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType73 { get; set; } + public global::System.Collections.Generic.List? ListType74 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType74 { get; set; } + public global::System.Collections.Generic.List? ListType75 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType75 { get; set; } + public global::System.Collections.Generic.List? ListType76 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType76 { get; set; } + public global::System.Collections.Generic.List? ListType77 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType77 { get; set; } + public global::System.Collections.Generic.List? ListType78 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType78 { get; set; } + public global::System.Collections.Generic.List? ListType79 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType79 { get; set; } + public global::System.Collections.Generic.List? ListType80 { get; set; } /// /// /// - public global::Terra.OneOf>? ListType80 { get; set; } + public global::Terra.OneOf>? ListType81 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType81 { get; set; } + public global::System.Collections.Generic.List? ListType82 { get; set; } } } \ No newline at end of file diff --git a/src/libs/Terra/Generated/Terra.Models.CoercionWarning.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.CoercionWarning.Json.g.cs new file mode 100644 index 00000000..a3ab57dc --- /dev/null +++ b/src/libs/Terra/Generated/Terra.Models.CoercionWarning.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Terra +{ + public sealed partial class CoercionWarning + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Terra.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Terra.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Terra.CoercionWarning? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Terra.CoercionWarning), + jsonSerializerContext) as global::Terra.CoercionWarning; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Terra.CoercionWarning? FromJson( + string json) + { + return FromJson( + json, + global::Terra.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Terra.CoercionWarning? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Terra.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Terra.CoercionWarning), + jsonSerializerContext).ConfigureAwait(false)) as global::Terra.CoercionWarning; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Terra.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Terra.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Terra/Generated/Terra.Models.CoercionWarning.g.cs b/src/libs/Terra/Generated/Terra.Models.CoercionWarning.g.cs new file mode 100644 index 00000000..9cb4c0ee --- /dev/null +++ b/src/libs/Terra/Generated/Terra.Models.CoercionWarning.g.cs @@ -0,0 +1,59 @@ + +#nullable enable + +namespace Terra +{ + /// + /// A non-fatal adjustment made while converting a workout between Terra's template model and a provider's + /// + public sealed partial class CoercionWarning + { + /// + /// JSON path within the workout template of the element that could not be represented exactly + /// + [global::System.Text.Json.Serialization.JsonPropertyName("path")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Path { get; set; } + + /// + /// What was changed or dropped, and why + /// + [global::System.Text.Json.Serialization.JsonPropertyName("message")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Message { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// JSON path within the workout template of the element that could not be represented exactly + /// + /// + /// What was changed or dropped, and why + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CoercionWarning( + string path, + string message) + { + this.Path = path ?? throw new global::System.ArgumentNullException(nameof(path)); + this.Message = message ?? throw new global::System.ArgumentNullException(nameof(message)); + } + + /// + /// Initializes a new instance of the class. + /// + public CoercionWarning() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Terra/Generated/Terra.Models.CompletionConditionType.g.cs b/src/libs/Terra/Generated/Terra.Models.CompletionConditionType.g.cs index fd89109e..a9e1e040 100644 --- a/src/libs/Terra/Generated/Terra.Models.CompletionConditionType.g.cs +++ b/src/libs/Terra/Generated/Terra.Models.CompletionConditionType.g.cs @@ -415,6 +415,228 @@ public bool TryPickCompletionConditionTypeVariant11( public global::Terra.CompletionConditionTypeVariant11 PickCompletionConditionTypeVariant11() => IsCompletionConditionTypeVariant11 ? CompletionConditionTypeVariant11!.Value : throw new global::System.InvalidOperationException($"Expected union variant 'CompletionConditionTypeVariant11' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::Terra.CompletionConditionTypeVariant12? CompletionConditionTypeVariant12 { get; init; } +#else + public global::Terra.CompletionConditionTypeVariant12? CompletionConditionTypeVariant12 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CompletionConditionTypeVariant12))] +#endif + public bool IsCompletionConditionTypeVariant12 => CompletionConditionTypeVariant12 != null; + + /// + /// + /// + public bool TryPickCompletionConditionTypeVariant12( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Terra.CompletionConditionTypeVariant12? value) + { + value = CompletionConditionTypeVariant12; + return IsCompletionConditionTypeVariant12; + } + + /// + /// + /// + public global::Terra.CompletionConditionTypeVariant12 PickCompletionConditionTypeVariant12() => IsCompletionConditionTypeVariant12 + ? CompletionConditionTypeVariant12!.Value + : throw new global::System.InvalidOperationException($"Expected union variant 'CompletionConditionTypeVariant12' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::Terra.CompletionConditionTypeVariant13? CompletionConditionTypeVariant13 { get; init; } +#else + public global::Terra.CompletionConditionTypeVariant13? CompletionConditionTypeVariant13 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CompletionConditionTypeVariant13))] +#endif + public bool IsCompletionConditionTypeVariant13 => CompletionConditionTypeVariant13 != null; + + /// + /// + /// + public bool TryPickCompletionConditionTypeVariant13( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Terra.CompletionConditionTypeVariant13? value) + { + value = CompletionConditionTypeVariant13; + return IsCompletionConditionTypeVariant13; + } + + /// + /// + /// + public global::Terra.CompletionConditionTypeVariant13 PickCompletionConditionTypeVariant13() => IsCompletionConditionTypeVariant13 + ? CompletionConditionTypeVariant13!.Value + : throw new global::System.InvalidOperationException($"Expected union variant 'CompletionConditionTypeVariant13' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::Terra.CompletionConditionTypeVariant14? CompletionConditionTypeVariant14 { get; init; } +#else + public global::Terra.CompletionConditionTypeVariant14? CompletionConditionTypeVariant14 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CompletionConditionTypeVariant14))] +#endif + public bool IsCompletionConditionTypeVariant14 => CompletionConditionTypeVariant14 != null; + + /// + /// + /// + public bool TryPickCompletionConditionTypeVariant14( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Terra.CompletionConditionTypeVariant14? value) + { + value = CompletionConditionTypeVariant14; + return IsCompletionConditionTypeVariant14; + } + + /// + /// + /// + public global::Terra.CompletionConditionTypeVariant14 PickCompletionConditionTypeVariant14() => IsCompletionConditionTypeVariant14 + ? CompletionConditionTypeVariant14!.Value + : throw new global::System.InvalidOperationException($"Expected union variant 'CompletionConditionTypeVariant14' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::Terra.CompletionConditionTypeVariant15? CompletionConditionTypeVariant15 { get; init; } +#else + public global::Terra.CompletionConditionTypeVariant15? CompletionConditionTypeVariant15 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CompletionConditionTypeVariant15))] +#endif + public bool IsCompletionConditionTypeVariant15 => CompletionConditionTypeVariant15 != null; + + /// + /// + /// + public bool TryPickCompletionConditionTypeVariant15( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Terra.CompletionConditionTypeVariant15? value) + { + value = CompletionConditionTypeVariant15; + return IsCompletionConditionTypeVariant15; + } + + /// + /// + /// + public global::Terra.CompletionConditionTypeVariant15 PickCompletionConditionTypeVariant15() => IsCompletionConditionTypeVariant15 + ? CompletionConditionTypeVariant15!.Value + : throw new global::System.InvalidOperationException($"Expected union variant 'CompletionConditionTypeVariant15' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::Terra.CompletionConditionTypeVariant16? CompletionConditionTypeVariant16 { get; init; } +#else + public global::Terra.CompletionConditionTypeVariant16? CompletionConditionTypeVariant16 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CompletionConditionTypeVariant16))] +#endif + public bool IsCompletionConditionTypeVariant16 => CompletionConditionTypeVariant16 != null; + + /// + /// + /// + public bool TryPickCompletionConditionTypeVariant16( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Terra.CompletionConditionTypeVariant16? value) + { + value = CompletionConditionTypeVariant16; + return IsCompletionConditionTypeVariant16; + } + + /// + /// + /// + public global::Terra.CompletionConditionTypeVariant16 PickCompletionConditionTypeVariant16() => IsCompletionConditionTypeVariant16 + ? CompletionConditionTypeVariant16!.Value + : throw new global::System.InvalidOperationException($"Expected union variant 'CompletionConditionTypeVariant16' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::Terra.CompletionConditionTypeVariant17? CompletionConditionTypeVariant17 { get; init; } +#else + public global::Terra.CompletionConditionTypeVariant17? CompletionConditionTypeVariant17 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CompletionConditionTypeVariant17))] +#endif + public bool IsCompletionConditionTypeVariant17 => CompletionConditionTypeVariant17 != null; + + /// + /// + /// + public bool TryPickCompletionConditionTypeVariant17( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Terra.CompletionConditionTypeVariant17? value) + { + value = CompletionConditionTypeVariant17; + return IsCompletionConditionTypeVariant17; + } + + /// + /// + /// + public global::Terra.CompletionConditionTypeVariant17 PickCompletionConditionTypeVariant17() => IsCompletionConditionTypeVariant17 + ? CompletionConditionTypeVariant17!.Value + : throw new global::System.InvalidOperationException($"Expected union variant 'CompletionConditionTypeVariant17' but the value was {ToString()}."); /// /// /// @@ -668,6 +890,144 @@ public CompletionConditionType(global::Terra.CompletionConditionTypeVariant11? v /// public static CompletionConditionType FromCompletionConditionTypeVariant11(global::Terra.CompletionConditionTypeVariant11? value) => new CompletionConditionType(value); + /// + /// + /// + public static implicit operator CompletionConditionType(global::Terra.CompletionConditionTypeVariant12 value) => new CompletionConditionType((global::Terra.CompletionConditionTypeVariant12?)value); + + /// + /// + /// + public static implicit operator global::Terra.CompletionConditionTypeVariant12?(CompletionConditionType @this) => @this.CompletionConditionTypeVariant12; + + /// + /// + /// + public CompletionConditionType(global::Terra.CompletionConditionTypeVariant12? value) + { + CompletionConditionTypeVariant12 = value; + } + + /// + /// + /// + public static CompletionConditionType FromCompletionConditionTypeVariant12(global::Terra.CompletionConditionTypeVariant12? value) => new CompletionConditionType(value); + + /// + /// + /// + public static implicit operator CompletionConditionType(global::Terra.CompletionConditionTypeVariant13 value) => new CompletionConditionType((global::Terra.CompletionConditionTypeVariant13?)value); + + /// + /// + /// + public static implicit operator global::Terra.CompletionConditionTypeVariant13?(CompletionConditionType @this) => @this.CompletionConditionTypeVariant13; + + /// + /// + /// + public CompletionConditionType(global::Terra.CompletionConditionTypeVariant13? value) + { + CompletionConditionTypeVariant13 = value; + } + + /// + /// + /// + public static CompletionConditionType FromCompletionConditionTypeVariant13(global::Terra.CompletionConditionTypeVariant13? value) => new CompletionConditionType(value); + + /// + /// + /// + public static implicit operator CompletionConditionType(global::Terra.CompletionConditionTypeVariant14 value) => new CompletionConditionType((global::Terra.CompletionConditionTypeVariant14?)value); + + /// + /// + /// + public static implicit operator global::Terra.CompletionConditionTypeVariant14?(CompletionConditionType @this) => @this.CompletionConditionTypeVariant14; + + /// + /// + /// + public CompletionConditionType(global::Terra.CompletionConditionTypeVariant14? value) + { + CompletionConditionTypeVariant14 = value; + } + + /// + /// + /// + public static CompletionConditionType FromCompletionConditionTypeVariant14(global::Terra.CompletionConditionTypeVariant14? value) => new CompletionConditionType(value); + + /// + /// + /// + public static implicit operator CompletionConditionType(global::Terra.CompletionConditionTypeVariant15 value) => new CompletionConditionType((global::Terra.CompletionConditionTypeVariant15?)value); + + /// + /// + /// + public static implicit operator global::Terra.CompletionConditionTypeVariant15?(CompletionConditionType @this) => @this.CompletionConditionTypeVariant15; + + /// + /// + /// + public CompletionConditionType(global::Terra.CompletionConditionTypeVariant15? value) + { + CompletionConditionTypeVariant15 = value; + } + + /// + /// + /// + public static CompletionConditionType FromCompletionConditionTypeVariant15(global::Terra.CompletionConditionTypeVariant15? value) => new CompletionConditionType(value); + + /// + /// + /// + public static implicit operator CompletionConditionType(global::Terra.CompletionConditionTypeVariant16 value) => new CompletionConditionType((global::Terra.CompletionConditionTypeVariant16?)value); + + /// + /// + /// + public static implicit operator global::Terra.CompletionConditionTypeVariant16?(CompletionConditionType @this) => @this.CompletionConditionTypeVariant16; + + /// + /// + /// + public CompletionConditionType(global::Terra.CompletionConditionTypeVariant16? value) + { + CompletionConditionTypeVariant16 = value; + } + + /// + /// + /// + public static CompletionConditionType FromCompletionConditionTypeVariant16(global::Terra.CompletionConditionTypeVariant16? value) => new CompletionConditionType(value); + + /// + /// + /// + public static implicit operator CompletionConditionType(global::Terra.CompletionConditionTypeVariant17 value) => new CompletionConditionType((global::Terra.CompletionConditionTypeVariant17?)value); + + /// + /// + /// + public static implicit operator global::Terra.CompletionConditionTypeVariant17?(CompletionConditionType @this) => @this.CompletionConditionTypeVariant17; + + /// + /// + /// + public CompletionConditionType(global::Terra.CompletionConditionTypeVariant17? value) + { + CompletionConditionTypeVariant17 = value; + } + + /// + /// + /// + public static CompletionConditionType FromCompletionConditionTypeVariant17(global::Terra.CompletionConditionTypeVariant17? value) => new CompletionConditionType(value); + /// /// /// @@ -682,7 +1042,13 @@ public CompletionConditionType( global::Terra.CompletionConditionTypeVariant8? completionConditionTypeVariant8, global::Terra.CompletionConditionTypeVariant9? completionConditionTypeVariant9, global::Terra.CompletionConditionTypeVariant10? completionConditionTypeVariant10, - global::Terra.CompletionConditionTypeVariant11? completionConditionTypeVariant11 + global::Terra.CompletionConditionTypeVariant11? completionConditionTypeVariant11, + global::Terra.CompletionConditionTypeVariant12? completionConditionTypeVariant12, + global::Terra.CompletionConditionTypeVariant13? completionConditionTypeVariant13, + global::Terra.CompletionConditionTypeVariant14? completionConditionTypeVariant14, + global::Terra.CompletionConditionTypeVariant15? completionConditionTypeVariant15, + global::Terra.CompletionConditionTypeVariant16? completionConditionTypeVariant16, + global::Terra.CompletionConditionTypeVariant17? completionConditionTypeVariant17 ) { CompletionConditionTypeVariant1 = completionConditionTypeVariant1; @@ -696,12 +1062,24 @@ public CompletionConditionType( CompletionConditionTypeVariant9 = completionConditionTypeVariant9; CompletionConditionTypeVariant10 = completionConditionTypeVariant10; CompletionConditionTypeVariant11 = completionConditionTypeVariant11; + CompletionConditionTypeVariant12 = completionConditionTypeVariant12; + CompletionConditionTypeVariant13 = completionConditionTypeVariant13; + CompletionConditionTypeVariant14 = completionConditionTypeVariant14; + CompletionConditionTypeVariant15 = completionConditionTypeVariant15; + CompletionConditionTypeVariant16 = completionConditionTypeVariant16; + CompletionConditionTypeVariant17 = completionConditionTypeVariant17; } /// /// /// public object? Object => + CompletionConditionTypeVariant17 as object ?? + CompletionConditionTypeVariant16 as object ?? + CompletionConditionTypeVariant15 as object ?? + CompletionConditionTypeVariant14 as object ?? + CompletionConditionTypeVariant13 as object ?? + CompletionConditionTypeVariant12 as object ?? CompletionConditionTypeVariant11 as object ?? CompletionConditionTypeVariant10 as object ?? CompletionConditionTypeVariant9 as object ?? @@ -729,7 +1107,13 @@ CompletionConditionTypeVariant1 as object CompletionConditionTypeVariant8?.ToValueString() ?? CompletionConditionTypeVariant9?.ToValueString() ?? CompletionConditionTypeVariant10?.ToValueString() ?? - CompletionConditionTypeVariant11?.ToValueString() + CompletionConditionTypeVariant11?.ToValueString() ?? + CompletionConditionTypeVariant12?.ToValueString() ?? + CompletionConditionTypeVariant13?.ToValueString() ?? + CompletionConditionTypeVariant14?.ToValueString() ?? + CompletionConditionTypeVariant15?.ToValueString() ?? + CompletionConditionTypeVariant16?.ToValueString() ?? + CompletionConditionTypeVariant17?.ToValueString() ; /// @@ -737,7 +1121,7 @@ CompletionConditionTypeVariant1 as object /// public bool Validate() { - return IsCompletionConditionTypeVariant1 || IsCompletionConditionTypeVariant2 || IsCompletionConditionTypeVariant3 || IsCompletionConditionTypeVariant4 || IsCompletionConditionTypeVariant5 || IsCompletionConditionTypeVariant6 || IsCompletionConditionTypeVariant7 || IsCompletionConditionTypeVariant8 || IsCompletionConditionTypeVariant9 || IsCompletionConditionTypeVariant10 || IsCompletionConditionTypeVariant11; + return IsCompletionConditionTypeVariant1 || IsCompletionConditionTypeVariant2 || IsCompletionConditionTypeVariant3 || IsCompletionConditionTypeVariant4 || IsCompletionConditionTypeVariant5 || IsCompletionConditionTypeVariant6 || IsCompletionConditionTypeVariant7 || IsCompletionConditionTypeVariant8 || IsCompletionConditionTypeVariant9 || IsCompletionConditionTypeVariant10 || IsCompletionConditionTypeVariant11 || IsCompletionConditionTypeVariant12 || IsCompletionConditionTypeVariant13 || IsCompletionConditionTypeVariant14 || IsCompletionConditionTypeVariant15 || IsCompletionConditionTypeVariant16 || IsCompletionConditionTypeVariant17; } /// @@ -755,6 +1139,12 @@ public bool Validate() global::System.Func? completionConditionTypeVariant9 = null, global::System.Func? completionConditionTypeVariant10 = null, global::System.Func? completionConditionTypeVariant11 = null, + global::System.Func? completionConditionTypeVariant12 = null, + global::System.Func? completionConditionTypeVariant13 = null, + global::System.Func? completionConditionTypeVariant14 = null, + global::System.Func? completionConditionTypeVariant15 = null, + global::System.Func? completionConditionTypeVariant16 = null, + global::System.Func? completionConditionTypeVariant17 = null, bool validate = true) { if (validate) @@ -806,6 +1196,30 @@ public bool Validate() { return completionConditionTypeVariant11(CompletionConditionTypeVariant11!); } + else if (IsCompletionConditionTypeVariant12 && completionConditionTypeVariant12 != null) + { + return completionConditionTypeVariant12(CompletionConditionTypeVariant12!); + } + else if (IsCompletionConditionTypeVariant13 && completionConditionTypeVariant13 != null) + { + return completionConditionTypeVariant13(CompletionConditionTypeVariant13!); + } + else if (IsCompletionConditionTypeVariant14 && completionConditionTypeVariant14 != null) + { + return completionConditionTypeVariant14(CompletionConditionTypeVariant14!); + } + else if (IsCompletionConditionTypeVariant15 && completionConditionTypeVariant15 != null) + { + return completionConditionTypeVariant15(CompletionConditionTypeVariant15!); + } + else if (IsCompletionConditionTypeVariant16 && completionConditionTypeVariant16 != null) + { + return completionConditionTypeVariant16(CompletionConditionTypeVariant16!); + } + else if (IsCompletionConditionTypeVariant17 && completionConditionTypeVariant17 != null) + { + return completionConditionTypeVariant17(CompletionConditionTypeVariant17!); + } return default(TResult); } @@ -835,6 +1249,18 @@ public void Match( global::System.Action? completionConditionTypeVariant10 = null, global::System.Action? completionConditionTypeVariant11 = null, + + global::System.Action? completionConditionTypeVariant12 = null, + + global::System.Action? completionConditionTypeVariant13 = null, + + global::System.Action? completionConditionTypeVariant14 = null, + + global::System.Action? completionConditionTypeVariant15 = null, + + global::System.Action? completionConditionTypeVariant16 = null, + + global::System.Action? completionConditionTypeVariant17 = null, bool validate = true) { if (validate) @@ -886,6 +1312,30 @@ public void Match( { completionConditionTypeVariant11?.Invoke(CompletionConditionTypeVariant11!); } + else if (IsCompletionConditionTypeVariant12) + { + completionConditionTypeVariant12?.Invoke(CompletionConditionTypeVariant12!); + } + else if (IsCompletionConditionTypeVariant13) + { + completionConditionTypeVariant13?.Invoke(CompletionConditionTypeVariant13!); + } + else if (IsCompletionConditionTypeVariant14) + { + completionConditionTypeVariant14?.Invoke(CompletionConditionTypeVariant14!); + } + else if (IsCompletionConditionTypeVariant15) + { + completionConditionTypeVariant15?.Invoke(CompletionConditionTypeVariant15!); + } + else if (IsCompletionConditionTypeVariant16) + { + completionConditionTypeVariant16?.Invoke(CompletionConditionTypeVariant16!); + } + else if (IsCompletionConditionTypeVariant17) + { + completionConditionTypeVariant17?.Invoke(CompletionConditionTypeVariant17!); + } } /// @@ -903,6 +1353,12 @@ public void Switch( global::System.Action? completionConditionTypeVariant9 = null, global::System.Action? completionConditionTypeVariant10 = null, global::System.Action? completionConditionTypeVariant11 = null, + global::System.Action? completionConditionTypeVariant12 = null, + global::System.Action? completionConditionTypeVariant13 = null, + global::System.Action? completionConditionTypeVariant14 = null, + global::System.Action? completionConditionTypeVariant15 = null, + global::System.Action? completionConditionTypeVariant16 = null, + global::System.Action? completionConditionTypeVariant17 = null, bool validate = true) { if (validate) @@ -954,6 +1410,30 @@ public void Switch( { completionConditionTypeVariant11?.Invoke(CompletionConditionTypeVariant11!); } + else if (IsCompletionConditionTypeVariant12) + { + completionConditionTypeVariant12?.Invoke(CompletionConditionTypeVariant12!); + } + else if (IsCompletionConditionTypeVariant13) + { + completionConditionTypeVariant13?.Invoke(CompletionConditionTypeVariant13!); + } + else if (IsCompletionConditionTypeVariant14) + { + completionConditionTypeVariant14?.Invoke(CompletionConditionTypeVariant14!); + } + else if (IsCompletionConditionTypeVariant15) + { + completionConditionTypeVariant15?.Invoke(CompletionConditionTypeVariant15!); + } + else if (IsCompletionConditionTypeVariant16) + { + completionConditionTypeVariant16?.Invoke(CompletionConditionTypeVariant16!); + } + else if (IsCompletionConditionTypeVariant17) + { + completionConditionTypeVariant17?.Invoke(CompletionConditionTypeVariant17!); + } } /// @@ -985,6 +1465,18 @@ public override int GetHashCode() typeof(global::Terra.CompletionConditionTypeVariant10), CompletionConditionTypeVariant11, typeof(global::Terra.CompletionConditionTypeVariant11), + CompletionConditionTypeVariant12, + typeof(global::Terra.CompletionConditionTypeVariant12), + CompletionConditionTypeVariant13, + typeof(global::Terra.CompletionConditionTypeVariant13), + CompletionConditionTypeVariant14, + typeof(global::Terra.CompletionConditionTypeVariant14), + CompletionConditionTypeVariant15, + typeof(global::Terra.CompletionConditionTypeVariant15), + CompletionConditionTypeVariant16, + typeof(global::Terra.CompletionConditionTypeVariant16), + CompletionConditionTypeVariant17, + typeof(global::Terra.CompletionConditionTypeVariant17), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -1011,7 +1503,13 @@ public bool Equals(CompletionConditionType other) global::System.Collections.Generic.EqualityComparer.Default.Equals(CompletionConditionTypeVariant8, other.CompletionConditionTypeVariant8) && global::System.Collections.Generic.EqualityComparer.Default.Equals(CompletionConditionTypeVariant9, other.CompletionConditionTypeVariant9) && global::System.Collections.Generic.EqualityComparer.Default.Equals(CompletionConditionTypeVariant10, other.CompletionConditionTypeVariant10) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(CompletionConditionTypeVariant11, other.CompletionConditionTypeVariant11) + global::System.Collections.Generic.EqualityComparer.Default.Equals(CompletionConditionTypeVariant11, other.CompletionConditionTypeVariant11) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(CompletionConditionTypeVariant12, other.CompletionConditionTypeVariant12) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(CompletionConditionTypeVariant13, other.CompletionConditionTypeVariant13) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(CompletionConditionTypeVariant14, other.CompletionConditionTypeVariant14) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(CompletionConditionTypeVariant15, other.CompletionConditionTypeVariant15) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(CompletionConditionTypeVariant16, other.CompletionConditionTypeVariant16) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(CompletionConditionTypeVariant17, other.CompletionConditionTypeVariant17) ; } diff --git a/src/libs/Terra/Generated/Terra.Models.CompletionConditionTypeVariant12.g.cs b/src/libs/Terra/Generated/Terra.Models.CompletionConditionTypeVariant12.g.cs new file mode 100644 index 00000000..60d83179 --- /dev/null +++ b/src/libs/Terra/Generated/Terra.Models.CompletionConditionTypeVariant12.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Terra +{ + /// + /// + /// + public enum CompletionConditionTypeVariant12 + { + /// + /// + /// + HrPercentageLessThan, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CompletionConditionTypeVariant12Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CompletionConditionTypeVariant12 value) + { + return value switch + { + CompletionConditionTypeVariant12.HrPercentageLessThan => "hr_percentage_less_than", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CompletionConditionTypeVariant12? ToEnum(string value) + { + return value switch + { + "hr_percentage_less_than" => CompletionConditionTypeVariant12.HrPercentageLessThan, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Terra/Generated/Terra.Models.CompletionConditionTypeVariant13.g.cs b/src/libs/Terra/Generated/Terra.Models.CompletionConditionTypeVariant13.g.cs new file mode 100644 index 00000000..6b01d311 --- /dev/null +++ b/src/libs/Terra/Generated/Terra.Models.CompletionConditionTypeVariant13.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Terra +{ + /// + /// + /// + public enum CompletionConditionTypeVariant13 + { + /// + /// + /// + HrPercentageGreaterThan, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CompletionConditionTypeVariant13Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CompletionConditionTypeVariant13 value) + { + return value switch + { + CompletionConditionTypeVariant13.HrPercentageGreaterThan => "hr_percentage_greater_than", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CompletionConditionTypeVariant13? ToEnum(string value) + { + return value switch + { + "hr_percentage_greater_than" => CompletionConditionTypeVariant13.HrPercentageGreaterThan, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Terra/Generated/Terra.Models.CompletionConditionTypeVariant14.g.cs b/src/libs/Terra/Generated/Terra.Models.CompletionConditionTypeVariant14.g.cs new file mode 100644 index 00000000..c9eb641d --- /dev/null +++ b/src/libs/Terra/Generated/Terra.Models.CompletionConditionTypeVariant14.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Terra +{ + /// + /// + /// + public enum CompletionConditionTypeVariant14 + { + /// + /// + /// + PowerLessThan, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CompletionConditionTypeVariant14Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CompletionConditionTypeVariant14 value) + { + return value switch + { + CompletionConditionTypeVariant14.PowerLessThan => "power_less_than", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CompletionConditionTypeVariant14? ToEnum(string value) + { + return value switch + { + "power_less_than" => CompletionConditionTypeVariant14.PowerLessThan, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Terra/Generated/Terra.Models.CompletionConditionTypeVariant15.g.cs b/src/libs/Terra/Generated/Terra.Models.CompletionConditionTypeVariant15.g.cs new file mode 100644 index 00000000..26187cd5 --- /dev/null +++ b/src/libs/Terra/Generated/Terra.Models.CompletionConditionTypeVariant15.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Terra +{ + /// + /// + /// + public enum CompletionConditionTypeVariant15 + { + /// + /// + /// + PowerGreaterThan, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CompletionConditionTypeVariant15Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CompletionConditionTypeVariant15 value) + { + return value switch + { + CompletionConditionTypeVariant15.PowerGreaterThan => "power_greater_than", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CompletionConditionTypeVariant15? ToEnum(string value) + { + return value switch + { + "power_greater_than" => CompletionConditionTypeVariant15.PowerGreaterThan, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Terra/Generated/Terra.Models.CompletionConditionTypeVariant16.g.cs b/src/libs/Terra/Generated/Terra.Models.CompletionConditionTypeVariant16.g.cs new file mode 100644 index 00000000..7ff1bdb9 --- /dev/null +++ b/src/libs/Terra/Generated/Terra.Models.CompletionConditionTypeVariant16.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Terra +{ + /// + /// + /// + public enum CompletionConditionTypeVariant16 + { + /// + /// + /// + PowerPercentageLessThan, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CompletionConditionTypeVariant16Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CompletionConditionTypeVariant16 value) + { + return value switch + { + CompletionConditionTypeVariant16.PowerPercentageLessThan => "power_percentage_less_than", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CompletionConditionTypeVariant16? ToEnum(string value) + { + return value switch + { + "power_percentage_less_than" => CompletionConditionTypeVariant16.PowerPercentageLessThan, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Terra/Generated/Terra.Models.CompletionConditionTypeVariant17.g.cs b/src/libs/Terra/Generated/Terra.Models.CompletionConditionTypeVariant17.g.cs new file mode 100644 index 00000000..6e75ff10 --- /dev/null +++ b/src/libs/Terra/Generated/Terra.Models.CompletionConditionTypeVariant17.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Terra +{ + /// + /// + /// + public enum CompletionConditionTypeVariant17 + { + /// + /// + /// + PowerPercentageGreaterThan, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CompletionConditionTypeVariant17Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CompletionConditionTypeVariant17 value) + { + return value switch + { + CompletionConditionTypeVariant17.PowerPercentageGreaterThan => "power_percentage_greater_than", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CompletionConditionTypeVariant17? ToEnum(string value) + { + return value switch + { + "power_percentage_greater_than" => CompletionConditionTypeVariant17.PowerPercentageGreaterThan, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Terra/Generated/Terra.Models.PlannedWorkout.g.cs b/src/libs/Terra/Generated/Terra.Models.PlannedWorkout.g.cs index 9745873b..bc86ee75 100644 --- a/src/libs/Terra/Generated/Terra.Models.PlannedWorkout.g.cs +++ b/src/libs/Terra/Generated/Terra.Models.PlannedWorkout.g.cs @@ -1,51 +1,61 @@ +#pragma warning disable CS0618 // Type or member is obsolete + #nullable enable namespace Terra { /// - /// A workout template scheduled onto a user's calendar + /// A workout scheduled onto a user's calendar, whether created through Terra or on the provider side /// public sealed partial class PlannedWorkout { /// - /// Terra identifier of the planned workout + /// Terra identifier of the planned workout. Null for workouts created on the provider side. /// [global::System.Text.Json.Serialization.JsonPropertyName("planned_workout_id")] public string? PlannedWorkoutId { get; set; } /// - /// Identifier of the workout template this was planned from. Absent for workouts created on the provider side. + /// Identifier of the workout template this was planned from. Null for workouts created on the provider side; a non-null value means the workout is managed through Terra and can be rescheduled or deleted. /// [global::System.Text.Json.Serialization.JsonPropertyName("workout_id")] public string? WorkoutId { get; set; } /// - /// Scheduled date (YYYY-MM-DD) + /// Scheduled date (YYYY-MM-DD). Null for provider entries that are not attached to a date, such as a routine library. /// [global::System.Text.Json.Serialization.JsonPropertyName("planned_date")] public string? PlannedDate { get; set; } /// - /// Identifier of the workout on the provider's side, once pushed + /// Identifier of the workout on the provider's side, in the form the provider's own API uses for it /// [global::System.Text.Json.Serialization.JsonPropertyName("provider_workout_id")] public string? ProviderWorkoutId { get; set; } /// - /// Warnings emitted when the template could not be represented exactly on the provider + /// Deprecated: the stored JSON text of the adjustments made when the template was pushed to the provider; use `warnings`. Null when there were none or the workout was created on the provider side. /// [global::System.Text.Json.Serialization.JsonPropertyName("coercion_warnings")] + [global::System.Obsolete("This property marked as deprecated.")] public string? CoercionWarnings { get; set; } /// - /// Creation time (RFC 3339) + /// Adjustments made while converting between Terra's template and the provider's format. On Terra-created workouts these come from the push to the provider; on external workouts, from reading the provider's workout into a template. Empty when the conversion was exact. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("warnings")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Warnings { get; set; } + + /// + /// Creation time (RFC 3339). Null for external workouts. /// [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] public string? CreatedAt { get; set; } /// - /// Last update time (RFC 3339) + /// Last update time (RFC 3339). Null for external workouts. /// [global::System.Text.Json.Serialization.JsonPropertyName("last_updated_at")] public string? LastUpdatedAt { get; set; } @@ -54,7 +64,8 @@ public sealed partial class PlannedWorkout /// True when the workout was created on the provider side rather than through Terra /// [global::System.Text.Json.Serialization.JsonPropertyName("is_external")] - public bool? IsExternal { get; set; } + [global::System.Text.Json.Serialization.JsonRequired] + public required bool IsExternal { get; set; } /// /// @@ -63,9 +74,16 @@ public sealed partial class PlannedWorkout public global::Terra.AthleteMetrics? AthleteMetrics { get; set; } /// - /// Full workout body (title, description, planned metrics, structured steps) fetched live from the provider. Present only for external workouts (is_external true). + /// The workout body, in the same shape for Terra-created and external workouts. Null when a Terra-created workout's body could not be loaded (a warning at path `workout` says why); for an external workout whose steps could not be fetched from the provider, the header fields are present, `step_blocks` is empty and a warning at path `step_blocks` says why. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workout")] + public global::Terra.PlannedWorkoutBody? Workout { get; set; } + + /// + /// Deprecated. The provider body of an external workout in its pre-template shape; use `workout`. Null on Terra-created workouts. Removed in the next major SDK release. /// [global::System.Text.Json.Serialization.JsonPropertyName("details")] + [global::System.Obsolete("This property marked as deprecated.")] public global::Terra.PlannedWorkoutDetails? Details { get; set; } /// @@ -77,59 +95,59 @@ public sealed partial class PlannedWorkout /// /// Initializes a new instance of the class. /// + /// + /// Adjustments made while converting between Terra's template and the provider's format. On Terra-created workouts these come from the push to the provider; on external workouts, from reading the provider's workout into a template. Empty when the conversion was exact. + /// + /// + /// True when the workout was created on the provider side rather than through Terra + /// /// - /// Terra identifier of the planned workout + /// Terra identifier of the planned workout. Null for workouts created on the provider side. /// /// - /// Identifier of the workout template this was planned from. Absent for workouts created on the provider side. + /// Identifier of the workout template this was planned from. Null for workouts created on the provider side; a non-null value means the workout is managed through Terra and can be rescheduled or deleted. /// /// - /// Scheduled date (YYYY-MM-DD) + /// Scheduled date (YYYY-MM-DD). Null for provider entries that are not attached to a date, such as a routine library. /// /// - /// Identifier of the workout on the provider's side, once pushed - /// - /// - /// Warnings emitted when the template could not be represented exactly on the provider + /// Identifier of the workout on the provider's side, in the form the provider's own API uses for it /// /// - /// Creation time (RFC 3339) + /// Creation time (RFC 3339). Null for external workouts. /// /// - /// Last update time (RFC 3339) - /// - /// - /// True when the workout was created on the provider side rather than through Terra + /// Last update time (RFC 3339). Null for external workouts. /// /// - /// - /// Full workout body (title, description, planned metrics, structured steps) fetched live from the provider. Present only for external workouts (is_external true). + /// + /// The workout body, in the same shape for Terra-created and external workouts. Null when a Terra-created workout's body could not be loaded (a warning at path `workout` says why); for an external workout whose steps could not be fetched from the provider, the header fields are present, `step_blocks` is empty and a warning at path `step_blocks` says why. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public PlannedWorkout( + global::System.Collections.Generic.IList warnings, + bool isExternal, string? plannedWorkoutId, string? workoutId, string? plannedDate, string? providerWorkoutId, - string? coercionWarnings, string? createdAt, string? lastUpdatedAt, - bool? isExternal, global::Terra.AthleteMetrics? athleteMetrics, - global::Terra.PlannedWorkoutDetails? details) + global::Terra.PlannedWorkoutBody? workout) { this.PlannedWorkoutId = plannedWorkoutId; this.WorkoutId = workoutId; this.PlannedDate = plannedDate; this.ProviderWorkoutId = providerWorkoutId; - this.CoercionWarnings = coercionWarnings; + this.Warnings = warnings ?? throw new global::System.ArgumentNullException(nameof(warnings)); this.CreatedAt = createdAt; this.LastUpdatedAt = lastUpdatedAt; this.IsExternal = isExternal; this.AthleteMetrics = athleteMetrics; - this.Details = details; + this.Workout = workout; } /// diff --git a/src/libs/Terra/Generated/Terra.Models.PlannedWorkoutBody.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.PlannedWorkoutBody.Json.g.cs new file mode 100644 index 00000000..d4d4f0f6 --- /dev/null +++ b/src/libs/Terra/Generated/Terra.Models.PlannedWorkoutBody.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Terra +{ + public sealed partial class PlannedWorkoutBody + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Terra.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Terra.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Terra.PlannedWorkoutBody? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Terra.PlannedWorkoutBody), + jsonSerializerContext) as global::Terra.PlannedWorkoutBody; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Terra.PlannedWorkoutBody? FromJson( + string json) + { + return FromJson( + json, + global::Terra.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Terra.PlannedWorkoutBody? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Terra.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Terra.PlannedWorkoutBody), + jsonSerializerContext).ConfigureAwait(false)) as global::Terra.PlannedWorkoutBody; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Terra.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Terra.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Terra/Generated/Terra.Models.PlannedWorkoutBody.g.cs b/src/libs/Terra/Generated/Terra.Models.PlannedWorkoutBody.g.cs new file mode 100644 index 00000000..853d0230 --- /dev/null +++ b/src/libs/Terra/Generated/Terra.Models.PlannedWorkoutBody.g.cs @@ -0,0 +1,167 @@ + +#nullable enable + +namespace Terra +{ + /// + /// The body of a planned workout: a WorkoutTemplate whose sport may be `unspecified` when it was created on the provider side + /// + public sealed partial class PlannedWorkoutBody + { + /// + /// Name of the workout + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Name { get; set; } + + /// + /// Description of the workout + /// + [global::System.Text.Json.Serialization.JsonPropertyName("description")] + public string? Description { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("environment")] + public global::Terra.EnvironmentType? Environment { get; set; } + + /// + /// Pool length in meters, for swim workouts + /// + [global::System.Text.Json.Serialization.JsonPropertyName("pool_length_meters")] + public double? PoolLengthMeters { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("step_blocks")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList StepBlocks { get; set; } + + /// + /// Estimated total duration in seconds + /// + [global::System.Text.Json.Serialization.JsonPropertyName("estimated_duration_seconds")] + public double? EstimatedDurationSeconds { get; set; } + + /// + /// Estimated total distance in meters + /// + [global::System.Text.Json.Serialization.JsonPropertyName("estimated_distance_meters")] + public double? EstimatedDistanceMeters { get; set; } + + /// + /// Estimated calories burned + /// + [global::System.Text.Json.Serialization.JsonPropertyName("estimated_calories")] + public double? EstimatedCalories { get; set; } + + /// + /// Planned training stress score, where the provider or author supplies one. Read-only today: accepted on create but not forwarded to providers. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("estimated_tss")] + public double? EstimatedTss { get; set; } + + /// + /// Planned intensity factor, where the provider or author supplies one. Read-only today: accepted on create but not forwarded to providers. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("estimated_intensity_factor")] + public double? EstimatedIntensityFactor { get; set; } + + /// + /// Terra identifier of the stored template. Set by Terra in responses; ignored on create. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workout_id")] + public string? WorkoutId { get; set; } + + /// + /// Sport of a provider-created workout: a WorkoutSport, or `unspecified` when the provider's sport has no Terra equivalent (rejected on create). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sport")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Terra.JsonConverters.PlannedWorkoutSportJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Terra.PlannedWorkoutSport Sport { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Name of the workout + /// + /// + /// + /// Sport of a provider-created workout: a WorkoutSport, or `unspecified` when the provider's sport has no Terra equivalent (rejected on create). + /// + /// + /// Description of the workout + /// + /// + /// + /// Pool length in meters, for swim workouts + /// + /// + /// Estimated total duration in seconds + /// + /// + /// Estimated total distance in meters + /// + /// + /// Estimated calories burned + /// + /// + /// Planned training stress score, where the provider or author supplies one. Read-only today: accepted on create but not forwarded to providers. + /// + /// + /// Planned intensity factor, where the provider or author supplies one. Read-only today: accepted on create but not forwarded to providers. + /// + /// + /// Terra identifier of the stored template. Set by Terra in responses; ignored on create. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public PlannedWorkoutBody( + string name, + global::System.Collections.Generic.IList stepBlocks, + global::Terra.PlannedWorkoutSport sport, + string? description, + global::Terra.EnvironmentType? environment, + double? poolLengthMeters, + double? estimatedDurationSeconds, + double? estimatedDistanceMeters, + double? estimatedCalories, + double? estimatedTss, + double? estimatedIntensityFactor, + string? workoutId) + { + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.Description = description; + this.Environment = environment; + this.PoolLengthMeters = poolLengthMeters; + this.StepBlocks = stepBlocks ?? throw new global::System.ArgumentNullException(nameof(stepBlocks)); + this.EstimatedDurationSeconds = estimatedDurationSeconds; + this.EstimatedDistanceMeters = estimatedDistanceMeters; + this.EstimatedCalories = estimatedCalories; + this.EstimatedTss = estimatedTss; + this.EstimatedIntensityFactor = estimatedIntensityFactor; + this.WorkoutId = workoutId; + this.Sport = sport; + } + + /// + /// Initializes a new instance of the class. + /// + public PlannedWorkoutBody() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Terra/Generated/Terra.Models.PlannedWorkoutDetails2.g.cs b/src/libs/Terra/Generated/Terra.Models.PlannedWorkoutDetails2.g.cs index 9e16e57c..9e19930e 100644 --- a/src/libs/Terra/Generated/Terra.Models.PlannedWorkoutDetails2.g.cs +++ b/src/libs/Terra/Generated/Terra.Models.PlannedWorkoutDetails2.g.cs @@ -4,8 +4,9 @@ namespace Terra { /// - /// Full workout body (title, description, planned metrics, structured steps) fetched live from the provider. Present only for external workouts (is_external true). + /// Deprecated. The provider body of an external workout in its pre-template shape; use `workout`. Null on Terra-created workouts. Removed in the next major SDK release. /// + [global::System.Obsolete("This model marked as deprecated.")] public sealed partial class PlannedWorkoutDetails2 { diff --git a/src/libs/Terra/Generated/Terra.Models.PlannedWorkoutSport.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.PlannedWorkoutSport.Json.g.cs new file mode 100644 index 00000000..407808c5 --- /dev/null +++ b/src/libs/Terra/Generated/Terra.Models.PlannedWorkoutSport.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Terra +{ + public readonly partial struct PlannedWorkoutSport + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Terra.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Terra.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Terra.PlannedWorkoutSport? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Terra.PlannedWorkoutSport), + jsonSerializerContext) as global::Terra.PlannedWorkoutSport?; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Terra.PlannedWorkoutSport? FromJson( + string json) + { + return FromJson( + json, + global::Terra.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Terra.PlannedWorkoutSport? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Terra.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Terra.PlannedWorkoutSport), + jsonSerializerContext).ConfigureAwait(false)) as global::Terra.PlannedWorkoutSport?; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Terra.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Terra.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Terra/Generated/Terra.Models.PlannedWorkoutSport.g.cs b/src/libs/Terra/Generated/Terra.Models.PlannedWorkoutSport.g.cs new file mode 100644 index 00000000..3c049fac --- /dev/null +++ b/src/libs/Terra/Generated/Terra.Models.PlannedWorkoutSport.g.cs @@ -0,0 +1,295 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace Terra +{ + /// + /// Sport of a provider-created workout: a WorkoutSport, or `unspecified` when the provider's sport has no Terra equivalent (rejected on create). + /// + public readonly partial struct PlannedWorkoutSport : global::System.IEquatable + { + /// + /// Sport a workout template targets. Indoor/outdoor is expressed separately via environment. + /// +#if NET6_0_OR_GREATER + public global::Terra.WorkoutSport? WorkoutSport { get; init; } +#else + public global::Terra.WorkoutSport? WorkoutSport { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(WorkoutSport))] +#endif + public bool IsWorkoutSport => WorkoutSport != null; + + /// + /// + /// + public bool TryPickWorkoutSport( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Terra.WorkoutSport? value) + { + value = WorkoutSport; + return IsWorkoutSport; + } + + /// + /// + /// + public global::Terra.WorkoutSport PickWorkoutSport() => IsWorkoutSport + ? WorkoutSport!.Value + : throw new global::System.InvalidOperationException($"Expected union variant 'WorkoutSport' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::Terra.PlannedWorkoutSportEnum? Enum { get; init; } +#else + public global::Terra.PlannedWorkoutSportEnum? Enum { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Enum))] +#endif + public bool IsEnum => Enum != null; + + /// + /// + /// + public bool TryPickEnum( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Terra.PlannedWorkoutSportEnum? value) + { + value = Enum; + return IsEnum; + } + + /// + /// + /// + public global::Terra.PlannedWorkoutSportEnum PickEnum() => IsEnum + ? Enum!.Value + : throw new global::System.InvalidOperationException($"Expected union variant 'Enum' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator PlannedWorkoutSport(global::Terra.WorkoutSport value) => new PlannedWorkoutSport((global::Terra.WorkoutSport?)value); + + /// + /// + /// + public static implicit operator global::Terra.WorkoutSport?(PlannedWorkoutSport @this) => @this.WorkoutSport; + + /// + /// + /// + public PlannedWorkoutSport(global::Terra.WorkoutSport? value) + { + WorkoutSport = value; + } + + /// + /// + /// + public static PlannedWorkoutSport FromWorkoutSport(global::Terra.WorkoutSport? value) => new PlannedWorkoutSport(value); + + /// + /// + /// + public static implicit operator PlannedWorkoutSport(global::Terra.PlannedWorkoutSportEnum value) => new PlannedWorkoutSport((global::Terra.PlannedWorkoutSportEnum?)value); + + /// + /// + /// + public static implicit operator global::Terra.PlannedWorkoutSportEnum?(PlannedWorkoutSport @this) => @this.Enum; + + /// + /// + /// + public PlannedWorkoutSport(global::Terra.PlannedWorkoutSportEnum? value) + { + Enum = value; + } + + /// + /// + /// + public static PlannedWorkoutSport FromEnum(global::Terra.PlannedWorkoutSportEnum? value) => new PlannedWorkoutSport(value); + + /// + /// + /// + public PlannedWorkoutSport( + global::Terra.WorkoutSport? workoutSport, + global::Terra.PlannedWorkoutSportEnum? @enum + ) + { + WorkoutSport = workoutSport; + Enum = @enum; + } + + /// + /// + /// + public object? Object => + Enum as object ?? + WorkoutSport as object + ; + + /// + /// + /// + public override string? ToString() => + WorkoutSport?.ToString() ?? + Enum?.ToValueString() + ; + + /// + /// + /// + public bool Validate() + { + return IsWorkoutSport || IsEnum; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? workoutSport = null, + global::System.Func? @enum = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsWorkoutSport && workoutSport != null) + { + return workoutSport(WorkoutSport!); + } + else if (IsEnum && @enum != null) + { + return @enum(Enum!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? workoutSport = null, + + global::System.Action? @enum = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsWorkoutSport) + { + workoutSport?.Invoke(WorkoutSport!); + } + else if (IsEnum) + { + @enum?.Invoke(Enum!); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? workoutSport = null, + global::System.Action? @enum = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsWorkoutSport) + { + workoutSport?.Invoke(WorkoutSport!); + } + else if (IsEnum) + { + @enum?.Invoke(Enum!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + WorkoutSport, + typeof(global::Terra.WorkoutSport), + Enum, + typeof(global::Terra.PlannedWorkoutSportEnum), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(PlannedWorkoutSport other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(WorkoutSport, other.WorkoutSport) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Enum, other.Enum) + ; + } + + /// + /// + /// + public static bool operator ==(PlannedWorkoutSport obj1, PlannedWorkoutSport obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(PlannedWorkoutSport obj1, PlannedWorkoutSport obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is PlannedWorkoutSport o && Equals(o); + } + } +} diff --git a/src/libs/Terra/Generated/Terra.Models.PlannedWorkoutSportEnum.g.cs b/src/libs/Terra/Generated/Terra.Models.PlannedWorkoutSportEnum.g.cs new file mode 100644 index 00000000..26dc97cc --- /dev/null +++ b/src/libs/Terra/Generated/Terra.Models.PlannedWorkoutSportEnum.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Terra +{ + /// + /// + /// + public enum PlannedWorkoutSportEnum + { + /// + /// + /// + Unspecified, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class PlannedWorkoutSportEnumExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this PlannedWorkoutSportEnum value) + { + return value switch + { + PlannedWorkoutSportEnum.Unspecified => "unspecified", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static PlannedWorkoutSportEnum? ToEnum(string value) + { + return value switch + { + "unspecified" => PlannedWorkoutSportEnum.Unspecified, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Terra/Generated/Terra.Models.PlannedWorkoutSummary.g.cs b/src/libs/Terra/Generated/Terra.Models.PlannedWorkoutSummary.g.cs index dcc7bbee..067e3071 100644 --- a/src/libs/Terra/Generated/Terra.Models.PlannedWorkoutSummary.g.cs +++ b/src/libs/Terra/Generated/Terra.Models.PlannedWorkoutSummary.g.cs @@ -1,4 +1,6 @@ +#pragma warning disable CS0618 // Type or member is obsolete + #nullable enable namespace Terra @@ -40,11 +42,24 @@ public sealed partial class PlannedWorkoutSummary public string? ProviderWorkoutId { get; set; } /// - /// Set when the template could not be represented exactly on the provider. + /// Deprecated; use warnings. Set when the template could not be represented exactly on the provider. /// [global::System.Text.Json.Serialization.JsonPropertyName("coercion_warnings")] + [global::System.Obsolete("This property marked as deprecated.")] public string? CoercionWarnings { get; set; } + /// + /// Adjustments made when the template could not be represented exactly on the provider. Empty when the push was exact. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("warnings")] + public global::System.Collections.Generic.IList? Warnings { get; set; } + + /// + /// The workout body, as on the list. Null when the planned workout has no stored template or it could not be loaded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workout")] + public global::Terra.PlannedWorkoutBody? Workout { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -67,8 +82,11 @@ public sealed partial class PlannedWorkoutSummary /// /// Identifier assigned by the provider, once pushed. /// - /// - /// Set when the template could not be represented exactly on the provider. + /// + /// Adjustments made when the template could not be represented exactly on the provider. Empty when the push was exact. + /// + /// + /// The workout body, as on the list. Null when the planned workout has no stored template or it could not be loaded. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] @@ -79,14 +97,16 @@ public PlannedWorkoutSummary( bool? isExternal, string? workoutId, string? providerWorkoutId, - string? coercionWarnings) + global::System.Collections.Generic.IList? warnings, + global::Terra.PlannedWorkoutBody? workout) { this.PlannedWorkoutId = plannedWorkoutId; this.PlannedDate = plannedDate; this.IsExternal = isExternal; this.WorkoutId = workoutId; this.ProviderWorkoutId = providerWorkoutId; - this.CoercionWarnings = coercionWarnings; + this.Warnings = warnings; + this.Workout = workout; } /// diff --git a/src/libs/Terra/Generated/Terra.Models.PlannedWorkoutSummaryWorkout.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.PlannedWorkoutSummaryWorkout.Json.g.cs new file mode 100644 index 00000000..530bd68f --- /dev/null +++ b/src/libs/Terra/Generated/Terra.Models.PlannedWorkoutSummaryWorkout.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Terra +{ + public sealed partial class PlannedWorkoutSummaryWorkout + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Terra.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Terra.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Terra.PlannedWorkoutSummaryWorkout? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Terra.PlannedWorkoutSummaryWorkout), + jsonSerializerContext) as global::Terra.PlannedWorkoutSummaryWorkout; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Terra.PlannedWorkoutSummaryWorkout? FromJson( + string json) + { + return FromJson( + json, + global::Terra.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Terra.PlannedWorkoutSummaryWorkout? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Terra.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Terra.PlannedWorkoutSummaryWorkout), + jsonSerializerContext).ConfigureAwait(false)) as global::Terra.PlannedWorkoutSummaryWorkout; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Terra.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Terra.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Terra/Generated/Terra.Models.PlannedWorkoutSummaryWorkout.g.cs b/src/libs/Terra/Generated/Terra.Models.PlannedWorkoutSummaryWorkout.g.cs new file mode 100644 index 00000000..82695813 --- /dev/null +++ b/src/libs/Terra/Generated/Terra.Models.PlannedWorkoutSummaryWorkout.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Terra +{ + /// + /// The workout body, as on the list. Null when the planned workout has no stored template or it could not be loaded. + /// + public sealed partial class PlannedWorkoutSummaryWorkout + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Terra/Generated/Terra.Models.PlannedWorkoutWorkout.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.PlannedWorkoutWorkout.Json.g.cs new file mode 100644 index 00000000..a2886384 --- /dev/null +++ b/src/libs/Terra/Generated/Terra.Models.PlannedWorkoutWorkout.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Terra +{ + public sealed partial class PlannedWorkoutWorkout + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Terra.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Terra.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Terra.PlannedWorkoutWorkout? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Terra.PlannedWorkoutWorkout), + jsonSerializerContext) as global::Terra.PlannedWorkoutWorkout; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Terra.PlannedWorkoutWorkout? FromJson( + string json) + { + return FromJson( + json, + global::Terra.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Terra.PlannedWorkoutWorkout? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Terra.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Terra.PlannedWorkoutWorkout), + jsonSerializerContext).ConfigureAwait(false)) as global::Terra.PlannedWorkoutWorkout; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Terra.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Terra.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Terra/Generated/Terra.Models.PlannedWorkoutWorkout.g.cs b/src/libs/Terra/Generated/Terra.Models.PlannedWorkoutWorkout.g.cs new file mode 100644 index 00000000..0487b302 --- /dev/null +++ b/src/libs/Terra/Generated/Terra.Models.PlannedWorkoutWorkout.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Terra +{ + /// + /// The workout body, in the same shape for Terra-created and external workouts. Null when a Terra-created workout's body could not be loaded (a warning at path `workout` says why); for an external workout whose steps could not be fetched from the provider, the header fields are present, `step_blocks` is empty and a warning at path `step_blocks` says why. + /// + public sealed partial class PlannedWorkoutWorkout + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Terra/Generated/Terra.Models.WorkoutStepTargetType.g.cs b/src/libs/Terra/Generated/Terra.Models.WorkoutStepTargetType.g.cs index 297de06f..0fe99618 100644 --- a/src/libs/Terra/Generated/Terra.Models.WorkoutStepTargetType.g.cs +++ b/src/libs/Terra/Generated/Terra.Models.WorkoutStepTargetType.g.cs @@ -415,6 +415,302 @@ public bool TryPickWorkoutStepTargetTypeVariant11( public global::Terra.WorkoutStepTargetTypeVariant11 PickWorkoutStepTargetTypeVariant11() => IsWorkoutStepTargetTypeVariant11 ? WorkoutStepTargetTypeVariant11!.Value : throw new global::System.InvalidOperationException($"Expected union variant 'WorkoutStepTargetTypeVariant11' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::Terra.WorkoutStepTargetTypeVariant12? WorkoutStepTargetTypeVariant12 { get; init; } +#else + public global::Terra.WorkoutStepTargetTypeVariant12? WorkoutStepTargetTypeVariant12 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(WorkoutStepTargetTypeVariant12))] +#endif + public bool IsWorkoutStepTargetTypeVariant12 => WorkoutStepTargetTypeVariant12 != null; + + /// + /// + /// + public bool TryPickWorkoutStepTargetTypeVariant12( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Terra.WorkoutStepTargetTypeVariant12? value) + { + value = WorkoutStepTargetTypeVariant12; + return IsWorkoutStepTargetTypeVariant12; + } + + /// + /// + /// + public global::Terra.WorkoutStepTargetTypeVariant12 PickWorkoutStepTargetTypeVariant12() => IsWorkoutStepTargetTypeVariant12 + ? WorkoutStepTargetTypeVariant12!.Value + : throw new global::System.InvalidOperationException($"Expected union variant 'WorkoutStepTargetTypeVariant12' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::Terra.WorkoutStepTargetTypeVariant13? WorkoutStepTargetTypeVariant13 { get; init; } +#else + public global::Terra.WorkoutStepTargetTypeVariant13? WorkoutStepTargetTypeVariant13 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(WorkoutStepTargetTypeVariant13))] +#endif + public bool IsWorkoutStepTargetTypeVariant13 => WorkoutStepTargetTypeVariant13 != null; + + /// + /// + /// + public bool TryPickWorkoutStepTargetTypeVariant13( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Terra.WorkoutStepTargetTypeVariant13? value) + { + value = WorkoutStepTargetTypeVariant13; + return IsWorkoutStepTargetTypeVariant13; + } + + /// + /// + /// + public global::Terra.WorkoutStepTargetTypeVariant13 PickWorkoutStepTargetTypeVariant13() => IsWorkoutStepTargetTypeVariant13 + ? WorkoutStepTargetTypeVariant13!.Value + : throw new global::System.InvalidOperationException($"Expected union variant 'WorkoutStepTargetTypeVariant13' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::Terra.WorkoutStepTargetTypeVariant14? WorkoutStepTargetTypeVariant14 { get; init; } +#else + public global::Terra.WorkoutStepTargetTypeVariant14? WorkoutStepTargetTypeVariant14 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(WorkoutStepTargetTypeVariant14))] +#endif + public bool IsWorkoutStepTargetTypeVariant14 => WorkoutStepTargetTypeVariant14 != null; + + /// + /// + /// + public bool TryPickWorkoutStepTargetTypeVariant14( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Terra.WorkoutStepTargetTypeVariant14? value) + { + value = WorkoutStepTargetTypeVariant14; + return IsWorkoutStepTargetTypeVariant14; + } + + /// + /// + /// + public global::Terra.WorkoutStepTargetTypeVariant14 PickWorkoutStepTargetTypeVariant14() => IsWorkoutStepTargetTypeVariant14 + ? WorkoutStepTargetTypeVariant14!.Value + : throw new global::System.InvalidOperationException($"Expected union variant 'WorkoutStepTargetTypeVariant14' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::Terra.WorkoutStepTargetTypeVariant15? WorkoutStepTargetTypeVariant15 { get; init; } +#else + public global::Terra.WorkoutStepTargetTypeVariant15? WorkoutStepTargetTypeVariant15 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(WorkoutStepTargetTypeVariant15))] +#endif + public bool IsWorkoutStepTargetTypeVariant15 => WorkoutStepTargetTypeVariant15 != null; + + /// + /// + /// + public bool TryPickWorkoutStepTargetTypeVariant15( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Terra.WorkoutStepTargetTypeVariant15? value) + { + value = WorkoutStepTargetTypeVariant15; + return IsWorkoutStepTargetTypeVariant15; + } + + /// + /// + /// + public global::Terra.WorkoutStepTargetTypeVariant15 PickWorkoutStepTargetTypeVariant15() => IsWorkoutStepTargetTypeVariant15 + ? WorkoutStepTargetTypeVariant15!.Value + : throw new global::System.InvalidOperationException($"Expected union variant 'WorkoutStepTargetTypeVariant15' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::Terra.WorkoutStepTargetTypeVariant16? WorkoutStepTargetTypeVariant16 { get; init; } +#else + public global::Terra.WorkoutStepTargetTypeVariant16? WorkoutStepTargetTypeVariant16 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(WorkoutStepTargetTypeVariant16))] +#endif + public bool IsWorkoutStepTargetTypeVariant16 => WorkoutStepTargetTypeVariant16 != null; + + /// + /// + /// + public bool TryPickWorkoutStepTargetTypeVariant16( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Terra.WorkoutStepTargetTypeVariant16? value) + { + value = WorkoutStepTargetTypeVariant16; + return IsWorkoutStepTargetTypeVariant16; + } + + /// + /// + /// + public global::Terra.WorkoutStepTargetTypeVariant16 PickWorkoutStepTargetTypeVariant16() => IsWorkoutStepTargetTypeVariant16 + ? WorkoutStepTargetTypeVariant16!.Value + : throw new global::System.InvalidOperationException($"Expected union variant 'WorkoutStepTargetTypeVariant16' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::Terra.WorkoutStepTargetTypeVariant17? WorkoutStepTargetTypeVariant17 { get; init; } +#else + public global::Terra.WorkoutStepTargetTypeVariant17? WorkoutStepTargetTypeVariant17 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(WorkoutStepTargetTypeVariant17))] +#endif + public bool IsWorkoutStepTargetTypeVariant17 => WorkoutStepTargetTypeVariant17 != null; + + /// + /// + /// + public bool TryPickWorkoutStepTargetTypeVariant17( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Terra.WorkoutStepTargetTypeVariant17? value) + { + value = WorkoutStepTargetTypeVariant17; + return IsWorkoutStepTargetTypeVariant17; + } + + /// + /// + /// + public global::Terra.WorkoutStepTargetTypeVariant17 PickWorkoutStepTargetTypeVariant17() => IsWorkoutStepTargetTypeVariant17 + ? WorkoutStepTargetTypeVariant17!.Value + : throw new global::System.InvalidOperationException($"Expected union variant 'WorkoutStepTargetTypeVariant17' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::Terra.WorkoutStepTargetTypeVariant18? WorkoutStepTargetTypeVariant18 { get; init; } +#else + public global::Terra.WorkoutStepTargetTypeVariant18? WorkoutStepTargetTypeVariant18 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(WorkoutStepTargetTypeVariant18))] +#endif + public bool IsWorkoutStepTargetTypeVariant18 => WorkoutStepTargetTypeVariant18 != null; + + /// + /// + /// + public bool TryPickWorkoutStepTargetTypeVariant18( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Terra.WorkoutStepTargetTypeVariant18? value) + { + value = WorkoutStepTargetTypeVariant18; + return IsWorkoutStepTargetTypeVariant18; + } + + /// + /// + /// + public global::Terra.WorkoutStepTargetTypeVariant18 PickWorkoutStepTargetTypeVariant18() => IsWorkoutStepTargetTypeVariant18 + ? WorkoutStepTargetTypeVariant18!.Value + : throw new global::System.InvalidOperationException($"Expected union variant 'WorkoutStepTargetTypeVariant18' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::Terra.WorkoutStepTargetTypeVariant19? WorkoutStepTargetTypeVariant19 { get; init; } +#else + public global::Terra.WorkoutStepTargetTypeVariant19? WorkoutStepTargetTypeVariant19 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(WorkoutStepTargetTypeVariant19))] +#endif + public bool IsWorkoutStepTargetTypeVariant19 => WorkoutStepTargetTypeVariant19 != null; + + /// + /// + /// + public bool TryPickWorkoutStepTargetTypeVariant19( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Terra.WorkoutStepTargetTypeVariant19? value) + { + value = WorkoutStepTargetTypeVariant19; + return IsWorkoutStepTargetTypeVariant19; + } + + /// + /// + /// + public global::Terra.WorkoutStepTargetTypeVariant19 PickWorkoutStepTargetTypeVariant19() => IsWorkoutStepTargetTypeVariant19 + ? WorkoutStepTargetTypeVariant19!.Value + : throw new global::System.InvalidOperationException($"Expected union variant 'WorkoutStepTargetTypeVariant19' but the value was {ToString()}."); /// /// /// @@ -668,6 +964,190 @@ public WorkoutStepTargetType(global::Terra.WorkoutStepTargetTypeVariant11? value /// public static WorkoutStepTargetType FromWorkoutStepTargetTypeVariant11(global::Terra.WorkoutStepTargetTypeVariant11? value) => new WorkoutStepTargetType(value); + /// + /// + /// + public static implicit operator WorkoutStepTargetType(global::Terra.WorkoutStepTargetTypeVariant12 value) => new WorkoutStepTargetType((global::Terra.WorkoutStepTargetTypeVariant12?)value); + + /// + /// + /// + public static implicit operator global::Terra.WorkoutStepTargetTypeVariant12?(WorkoutStepTargetType @this) => @this.WorkoutStepTargetTypeVariant12; + + /// + /// + /// + public WorkoutStepTargetType(global::Terra.WorkoutStepTargetTypeVariant12? value) + { + WorkoutStepTargetTypeVariant12 = value; + } + + /// + /// + /// + public static WorkoutStepTargetType FromWorkoutStepTargetTypeVariant12(global::Terra.WorkoutStepTargetTypeVariant12? value) => new WorkoutStepTargetType(value); + + /// + /// + /// + public static implicit operator WorkoutStepTargetType(global::Terra.WorkoutStepTargetTypeVariant13 value) => new WorkoutStepTargetType((global::Terra.WorkoutStepTargetTypeVariant13?)value); + + /// + /// + /// + public static implicit operator global::Terra.WorkoutStepTargetTypeVariant13?(WorkoutStepTargetType @this) => @this.WorkoutStepTargetTypeVariant13; + + /// + /// + /// + public WorkoutStepTargetType(global::Terra.WorkoutStepTargetTypeVariant13? value) + { + WorkoutStepTargetTypeVariant13 = value; + } + + /// + /// + /// + public static WorkoutStepTargetType FromWorkoutStepTargetTypeVariant13(global::Terra.WorkoutStepTargetTypeVariant13? value) => new WorkoutStepTargetType(value); + + /// + /// + /// + public static implicit operator WorkoutStepTargetType(global::Terra.WorkoutStepTargetTypeVariant14 value) => new WorkoutStepTargetType((global::Terra.WorkoutStepTargetTypeVariant14?)value); + + /// + /// + /// + public static implicit operator global::Terra.WorkoutStepTargetTypeVariant14?(WorkoutStepTargetType @this) => @this.WorkoutStepTargetTypeVariant14; + + /// + /// + /// + public WorkoutStepTargetType(global::Terra.WorkoutStepTargetTypeVariant14? value) + { + WorkoutStepTargetTypeVariant14 = value; + } + + /// + /// + /// + public static WorkoutStepTargetType FromWorkoutStepTargetTypeVariant14(global::Terra.WorkoutStepTargetTypeVariant14? value) => new WorkoutStepTargetType(value); + + /// + /// + /// + public static implicit operator WorkoutStepTargetType(global::Terra.WorkoutStepTargetTypeVariant15 value) => new WorkoutStepTargetType((global::Terra.WorkoutStepTargetTypeVariant15?)value); + + /// + /// + /// + public static implicit operator global::Terra.WorkoutStepTargetTypeVariant15?(WorkoutStepTargetType @this) => @this.WorkoutStepTargetTypeVariant15; + + /// + /// + /// + public WorkoutStepTargetType(global::Terra.WorkoutStepTargetTypeVariant15? value) + { + WorkoutStepTargetTypeVariant15 = value; + } + + /// + /// + /// + public static WorkoutStepTargetType FromWorkoutStepTargetTypeVariant15(global::Terra.WorkoutStepTargetTypeVariant15? value) => new WorkoutStepTargetType(value); + + /// + /// + /// + public static implicit operator WorkoutStepTargetType(global::Terra.WorkoutStepTargetTypeVariant16 value) => new WorkoutStepTargetType((global::Terra.WorkoutStepTargetTypeVariant16?)value); + + /// + /// + /// + public static implicit operator global::Terra.WorkoutStepTargetTypeVariant16?(WorkoutStepTargetType @this) => @this.WorkoutStepTargetTypeVariant16; + + /// + /// + /// + public WorkoutStepTargetType(global::Terra.WorkoutStepTargetTypeVariant16? value) + { + WorkoutStepTargetTypeVariant16 = value; + } + + /// + /// + /// + public static WorkoutStepTargetType FromWorkoutStepTargetTypeVariant16(global::Terra.WorkoutStepTargetTypeVariant16? value) => new WorkoutStepTargetType(value); + + /// + /// + /// + public static implicit operator WorkoutStepTargetType(global::Terra.WorkoutStepTargetTypeVariant17 value) => new WorkoutStepTargetType((global::Terra.WorkoutStepTargetTypeVariant17?)value); + + /// + /// + /// + public static implicit operator global::Terra.WorkoutStepTargetTypeVariant17?(WorkoutStepTargetType @this) => @this.WorkoutStepTargetTypeVariant17; + + /// + /// + /// + public WorkoutStepTargetType(global::Terra.WorkoutStepTargetTypeVariant17? value) + { + WorkoutStepTargetTypeVariant17 = value; + } + + /// + /// + /// + public static WorkoutStepTargetType FromWorkoutStepTargetTypeVariant17(global::Terra.WorkoutStepTargetTypeVariant17? value) => new WorkoutStepTargetType(value); + + /// + /// + /// + public static implicit operator WorkoutStepTargetType(global::Terra.WorkoutStepTargetTypeVariant18 value) => new WorkoutStepTargetType((global::Terra.WorkoutStepTargetTypeVariant18?)value); + + /// + /// + /// + public static implicit operator global::Terra.WorkoutStepTargetTypeVariant18?(WorkoutStepTargetType @this) => @this.WorkoutStepTargetTypeVariant18; + + /// + /// + /// + public WorkoutStepTargetType(global::Terra.WorkoutStepTargetTypeVariant18? value) + { + WorkoutStepTargetTypeVariant18 = value; + } + + /// + /// + /// + public static WorkoutStepTargetType FromWorkoutStepTargetTypeVariant18(global::Terra.WorkoutStepTargetTypeVariant18? value) => new WorkoutStepTargetType(value); + + /// + /// + /// + public static implicit operator WorkoutStepTargetType(global::Terra.WorkoutStepTargetTypeVariant19 value) => new WorkoutStepTargetType((global::Terra.WorkoutStepTargetTypeVariant19?)value); + + /// + /// + /// + public static implicit operator global::Terra.WorkoutStepTargetTypeVariant19?(WorkoutStepTargetType @this) => @this.WorkoutStepTargetTypeVariant19; + + /// + /// + /// + public WorkoutStepTargetType(global::Terra.WorkoutStepTargetTypeVariant19? value) + { + WorkoutStepTargetTypeVariant19 = value; + } + + /// + /// + /// + public static WorkoutStepTargetType FromWorkoutStepTargetTypeVariant19(global::Terra.WorkoutStepTargetTypeVariant19? value) => new WorkoutStepTargetType(value); + /// /// /// @@ -682,7 +1162,15 @@ public WorkoutStepTargetType( global::Terra.WorkoutStepTargetTypeVariant8? workoutStepTargetTypeVariant8, global::Terra.WorkoutStepTargetTypeVariant9? workoutStepTargetTypeVariant9, global::Terra.WorkoutStepTargetTypeVariant10? workoutStepTargetTypeVariant10, - global::Terra.WorkoutStepTargetTypeVariant11? workoutStepTargetTypeVariant11 + global::Terra.WorkoutStepTargetTypeVariant11? workoutStepTargetTypeVariant11, + global::Terra.WorkoutStepTargetTypeVariant12? workoutStepTargetTypeVariant12, + global::Terra.WorkoutStepTargetTypeVariant13? workoutStepTargetTypeVariant13, + global::Terra.WorkoutStepTargetTypeVariant14? workoutStepTargetTypeVariant14, + global::Terra.WorkoutStepTargetTypeVariant15? workoutStepTargetTypeVariant15, + global::Terra.WorkoutStepTargetTypeVariant16? workoutStepTargetTypeVariant16, + global::Terra.WorkoutStepTargetTypeVariant17? workoutStepTargetTypeVariant17, + global::Terra.WorkoutStepTargetTypeVariant18? workoutStepTargetTypeVariant18, + global::Terra.WorkoutStepTargetTypeVariant19? workoutStepTargetTypeVariant19 ) { WorkoutStepTargetTypeVariant1 = workoutStepTargetTypeVariant1; @@ -696,12 +1184,28 @@ public WorkoutStepTargetType( WorkoutStepTargetTypeVariant9 = workoutStepTargetTypeVariant9; WorkoutStepTargetTypeVariant10 = workoutStepTargetTypeVariant10; WorkoutStepTargetTypeVariant11 = workoutStepTargetTypeVariant11; + WorkoutStepTargetTypeVariant12 = workoutStepTargetTypeVariant12; + WorkoutStepTargetTypeVariant13 = workoutStepTargetTypeVariant13; + WorkoutStepTargetTypeVariant14 = workoutStepTargetTypeVariant14; + WorkoutStepTargetTypeVariant15 = workoutStepTargetTypeVariant15; + WorkoutStepTargetTypeVariant16 = workoutStepTargetTypeVariant16; + WorkoutStepTargetTypeVariant17 = workoutStepTargetTypeVariant17; + WorkoutStepTargetTypeVariant18 = workoutStepTargetTypeVariant18; + WorkoutStepTargetTypeVariant19 = workoutStepTargetTypeVariant19; } /// /// /// public object? Object => + WorkoutStepTargetTypeVariant19 as object ?? + WorkoutStepTargetTypeVariant18 as object ?? + WorkoutStepTargetTypeVariant17 as object ?? + WorkoutStepTargetTypeVariant16 as object ?? + WorkoutStepTargetTypeVariant15 as object ?? + WorkoutStepTargetTypeVariant14 as object ?? + WorkoutStepTargetTypeVariant13 as object ?? + WorkoutStepTargetTypeVariant12 as object ?? WorkoutStepTargetTypeVariant11 as object ?? WorkoutStepTargetTypeVariant10 as object ?? WorkoutStepTargetTypeVariant9 as object ?? @@ -729,7 +1233,15 @@ WorkoutStepTargetTypeVariant1 as object WorkoutStepTargetTypeVariant8?.ToValueString() ?? WorkoutStepTargetTypeVariant9?.ToValueString() ?? WorkoutStepTargetTypeVariant10?.ToValueString() ?? - WorkoutStepTargetTypeVariant11?.ToValueString() + WorkoutStepTargetTypeVariant11?.ToValueString() ?? + WorkoutStepTargetTypeVariant12?.ToValueString() ?? + WorkoutStepTargetTypeVariant13?.ToValueString() ?? + WorkoutStepTargetTypeVariant14?.ToValueString() ?? + WorkoutStepTargetTypeVariant15?.ToValueString() ?? + WorkoutStepTargetTypeVariant16?.ToValueString() ?? + WorkoutStepTargetTypeVariant17?.ToValueString() ?? + WorkoutStepTargetTypeVariant18?.ToValueString() ?? + WorkoutStepTargetTypeVariant19?.ToValueString() ; /// @@ -737,7 +1249,7 @@ WorkoutStepTargetTypeVariant1 as object /// public bool Validate() { - return IsWorkoutStepTargetTypeVariant1 || IsWorkoutStepTargetTypeVariant2 || IsWorkoutStepTargetTypeVariant3 || IsWorkoutStepTargetTypeVariant4 || IsWorkoutStepTargetTypeVariant5 || IsWorkoutStepTargetTypeVariant6 || IsWorkoutStepTargetTypeVariant7 || IsWorkoutStepTargetTypeVariant8 || IsWorkoutStepTargetTypeVariant9 || IsWorkoutStepTargetTypeVariant10 || IsWorkoutStepTargetTypeVariant11; + return IsWorkoutStepTargetTypeVariant1 || IsWorkoutStepTargetTypeVariant2 || IsWorkoutStepTargetTypeVariant3 || IsWorkoutStepTargetTypeVariant4 || IsWorkoutStepTargetTypeVariant5 || IsWorkoutStepTargetTypeVariant6 || IsWorkoutStepTargetTypeVariant7 || IsWorkoutStepTargetTypeVariant8 || IsWorkoutStepTargetTypeVariant9 || IsWorkoutStepTargetTypeVariant10 || IsWorkoutStepTargetTypeVariant11 || IsWorkoutStepTargetTypeVariant12 || IsWorkoutStepTargetTypeVariant13 || IsWorkoutStepTargetTypeVariant14 || IsWorkoutStepTargetTypeVariant15 || IsWorkoutStepTargetTypeVariant16 || IsWorkoutStepTargetTypeVariant17 || IsWorkoutStepTargetTypeVariant18 || IsWorkoutStepTargetTypeVariant19; } /// @@ -755,6 +1267,14 @@ public bool Validate() global::System.Func? workoutStepTargetTypeVariant9 = null, global::System.Func? workoutStepTargetTypeVariant10 = null, global::System.Func? workoutStepTargetTypeVariant11 = null, + global::System.Func? workoutStepTargetTypeVariant12 = null, + global::System.Func? workoutStepTargetTypeVariant13 = null, + global::System.Func? workoutStepTargetTypeVariant14 = null, + global::System.Func? workoutStepTargetTypeVariant15 = null, + global::System.Func? workoutStepTargetTypeVariant16 = null, + global::System.Func? workoutStepTargetTypeVariant17 = null, + global::System.Func? workoutStepTargetTypeVariant18 = null, + global::System.Func? workoutStepTargetTypeVariant19 = null, bool validate = true) { if (validate) @@ -806,6 +1326,38 @@ public bool Validate() { return workoutStepTargetTypeVariant11(WorkoutStepTargetTypeVariant11!); } + else if (IsWorkoutStepTargetTypeVariant12 && workoutStepTargetTypeVariant12 != null) + { + return workoutStepTargetTypeVariant12(WorkoutStepTargetTypeVariant12!); + } + else if (IsWorkoutStepTargetTypeVariant13 && workoutStepTargetTypeVariant13 != null) + { + return workoutStepTargetTypeVariant13(WorkoutStepTargetTypeVariant13!); + } + else if (IsWorkoutStepTargetTypeVariant14 && workoutStepTargetTypeVariant14 != null) + { + return workoutStepTargetTypeVariant14(WorkoutStepTargetTypeVariant14!); + } + else if (IsWorkoutStepTargetTypeVariant15 && workoutStepTargetTypeVariant15 != null) + { + return workoutStepTargetTypeVariant15(WorkoutStepTargetTypeVariant15!); + } + else if (IsWorkoutStepTargetTypeVariant16 && workoutStepTargetTypeVariant16 != null) + { + return workoutStepTargetTypeVariant16(WorkoutStepTargetTypeVariant16!); + } + else if (IsWorkoutStepTargetTypeVariant17 && workoutStepTargetTypeVariant17 != null) + { + return workoutStepTargetTypeVariant17(WorkoutStepTargetTypeVariant17!); + } + else if (IsWorkoutStepTargetTypeVariant18 && workoutStepTargetTypeVariant18 != null) + { + return workoutStepTargetTypeVariant18(WorkoutStepTargetTypeVariant18!); + } + else if (IsWorkoutStepTargetTypeVariant19 && workoutStepTargetTypeVariant19 != null) + { + return workoutStepTargetTypeVariant19(WorkoutStepTargetTypeVariant19!); + } return default(TResult); } @@ -835,6 +1387,22 @@ public void Match( global::System.Action? workoutStepTargetTypeVariant10 = null, global::System.Action? workoutStepTargetTypeVariant11 = null, + + global::System.Action? workoutStepTargetTypeVariant12 = null, + + global::System.Action? workoutStepTargetTypeVariant13 = null, + + global::System.Action? workoutStepTargetTypeVariant14 = null, + + global::System.Action? workoutStepTargetTypeVariant15 = null, + + global::System.Action? workoutStepTargetTypeVariant16 = null, + + global::System.Action? workoutStepTargetTypeVariant17 = null, + + global::System.Action? workoutStepTargetTypeVariant18 = null, + + global::System.Action? workoutStepTargetTypeVariant19 = null, bool validate = true) { if (validate) @@ -886,6 +1454,38 @@ public void Match( { workoutStepTargetTypeVariant11?.Invoke(WorkoutStepTargetTypeVariant11!); } + else if (IsWorkoutStepTargetTypeVariant12) + { + workoutStepTargetTypeVariant12?.Invoke(WorkoutStepTargetTypeVariant12!); + } + else if (IsWorkoutStepTargetTypeVariant13) + { + workoutStepTargetTypeVariant13?.Invoke(WorkoutStepTargetTypeVariant13!); + } + else if (IsWorkoutStepTargetTypeVariant14) + { + workoutStepTargetTypeVariant14?.Invoke(WorkoutStepTargetTypeVariant14!); + } + else if (IsWorkoutStepTargetTypeVariant15) + { + workoutStepTargetTypeVariant15?.Invoke(WorkoutStepTargetTypeVariant15!); + } + else if (IsWorkoutStepTargetTypeVariant16) + { + workoutStepTargetTypeVariant16?.Invoke(WorkoutStepTargetTypeVariant16!); + } + else if (IsWorkoutStepTargetTypeVariant17) + { + workoutStepTargetTypeVariant17?.Invoke(WorkoutStepTargetTypeVariant17!); + } + else if (IsWorkoutStepTargetTypeVariant18) + { + workoutStepTargetTypeVariant18?.Invoke(WorkoutStepTargetTypeVariant18!); + } + else if (IsWorkoutStepTargetTypeVariant19) + { + workoutStepTargetTypeVariant19?.Invoke(WorkoutStepTargetTypeVariant19!); + } } /// @@ -903,6 +1503,14 @@ public void Switch( global::System.Action? workoutStepTargetTypeVariant9 = null, global::System.Action? workoutStepTargetTypeVariant10 = null, global::System.Action? workoutStepTargetTypeVariant11 = null, + global::System.Action? workoutStepTargetTypeVariant12 = null, + global::System.Action? workoutStepTargetTypeVariant13 = null, + global::System.Action? workoutStepTargetTypeVariant14 = null, + global::System.Action? workoutStepTargetTypeVariant15 = null, + global::System.Action? workoutStepTargetTypeVariant16 = null, + global::System.Action? workoutStepTargetTypeVariant17 = null, + global::System.Action? workoutStepTargetTypeVariant18 = null, + global::System.Action? workoutStepTargetTypeVariant19 = null, bool validate = true) { if (validate) @@ -954,6 +1562,38 @@ public void Switch( { workoutStepTargetTypeVariant11?.Invoke(WorkoutStepTargetTypeVariant11!); } + else if (IsWorkoutStepTargetTypeVariant12) + { + workoutStepTargetTypeVariant12?.Invoke(WorkoutStepTargetTypeVariant12!); + } + else if (IsWorkoutStepTargetTypeVariant13) + { + workoutStepTargetTypeVariant13?.Invoke(WorkoutStepTargetTypeVariant13!); + } + else if (IsWorkoutStepTargetTypeVariant14) + { + workoutStepTargetTypeVariant14?.Invoke(WorkoutStepTargetTypeVariant14!); + } + else if (IsWorkoutStepTargetTypeVariant15) + { + workoutStepTargetTypeVariant15?.Invoke(WorkoutStepTargetTypeVariant15!); + } + else if (IsWorkoutStepTargetTypeVariant16) + { + workoutStepTargetTypeVariant16?.Invoke(WorkoutStepTargetTypeVariant16!); + } + else if (IsWorkoutStepTargetTypeVariant17) + { + workoutStepTargetTypeVariant17?.Invoke(WorkoutStepTargetTypeVariant17!); + } + else if (IsWorkoutStepTargetTypeVariant18) + { + workoutStepTargetTypeVariant18?.Invoke(WorkoutStepTargetTypeVariant18!); + } + else if (IsWorkoutStepTargetTypeVariant19) + { + workoutStepTargetTypeVariant19?.Invoke(WorkoutStepTargetTypeVariant19!); + } } /// @@ -985,6 +1625,22 @@ public override int GetHashCode() typeof(global::Terra.WorkoutStepTargetTypeVariant10), WorkoutStepTargetTypeVariant11, typeof(global::Terra.WorkoutStepTargetTypeVariant11), + WorkoutStepTargetTypeVariant12, + typeof(global::Terra.WorkoutStepTargetTypeVariant12), + WorkoutStepTargetTypeVariant13, + typeof(global::Terra.WorkoutStepTargetTypeVariant13), + WorkoutStepTargetTypeVariant14, + typeof(global::Terra.WorkoutStepTargetTypeVariant14), + WorkoutStepTargetTypeVariant15, + typeof(global::Terra.WorkoutStepTargetTypeVariant15), + WorkoutStepTargetTypeVariant16, + typeof(global::Terra.WorkoutStepTargetTypeVariant16), + WorkoutStepTargetTypeVariant17, + typeof(global::Terra.WorkoutStepTargetTypeVariant17), + WorkoutStepTargetTypeVariant18, + typeof(global::Terra.WorkoutStepTargetTypeVariant18), + WorkoutStepTargetTypeVariant19, + typeof(global::Terra.WorkoutStepTargetTypeVariant19), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -1011,7 +1667,15 @@ public bool Equals(WorkoutStepTargetType other) global::System.Collections.Generic.EqualityComparer.Default.Equals(WorkoutStepTargetTypeVariant8, other.WorkoutStepTargetTypeVariant8) && global::System.Collections.Generic.EqualityComparer.Default.Equals(WorkoutStepTargetTypeVariant9, other.WorkoutStepTargetTypeVariant9) && global::System.Collections.Generic.EqualityComparer.Default.Equals(WorkoutStepTargetTypeVariant10, other.WorkoutStepTargetTypeVariant10) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(WorkoutStepTargetTypeVariant11, other.WorkoutStepTargetTypeVariant11) + global::System.Collections.Generic.EqualityComparer.Default.Equals(WorkoutStepTargetTypeVariant11, other.WorkoutStepTargetTypeVariant11) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(WorkoutStepTargetTypeVariant12, other.WorkoutStepTargetTypeVariant12) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(WorkoutStepTargetTypeVariant13, other.WorkoutStepTargetTypeVariant13) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(WorkoutStepTargetTypeVariant14, other.WorkoutStepTargetTypeVariant14) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(WorkoutStepTargetTypeVariant15, other.WorkoutStepTargetTypeVariant15) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(WorkoutStepTargetTypeVariant16, other.WorkoutStepTargetTypeVariant16) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(WorkoutStepTargetTypeVariant17, other.WorkoutStepTargetTypeVariant17) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(WorkoutStepTargetTypeVariant18, other.WorkoutStepTargetTypeVariant18) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(WorkoutStepTargetTypeVariant19, other.WorkoutStepTargetTypeVariant19) ; } diff --git a/src/libs/Terra/Generated/Terra.Models.WorkoutStepTargetTypeVariant12.g.cs b/src/libs/Terra/Generated/Terra.Models.WorkoutStepTargetTypeVariant12.g.cs new file mode 100644 index 00000000..52ea1a73 --- /dev/null +++ b/src/libs/Terra/Generated/Terra.Models.WorkoutStepTargetTypeVariant12.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Terra +{ + /// + /// + /// + public enum WorkoutStepTargetTypeVariant12 + { + /// + /// + /// + SpeedPercentage, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class WorkoutStepTargetTypeVariant12Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this WorkoutStepTargetTypeVariant12 value) + { + return value switch + { + WorkoutStepTargetTypeVariant12.SpeedPercentage => "speed_percentage", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static WorkoutStepTargetTypeVariant12? ToEnum(string value) + { + return value switch + { + "speed_percentage" => WorkoutStepTargetTypeVariant12.SpeedPercentage, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Terra/Generated/Terra.Models.WorkoutStepTargetTypeVariant13.g.cs b/src/libs/Terra/Generated/Terra.Models.WorkoutStepTargetTypeVariant13.g.cs new file mode 100644 index 00000000..40d15f4b --- /dev/null +++ b/src/libs/Terra/Generated/Terra.Models.WorkoutStepTargetTypeVariant13.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Terra +{ + /// + /// + /// + public enum WorkoutStepTargetTypeVariant13 + { + /// + /// + /// + PowerPercentage, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class WorkoutStepTargetTypeVariant13Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this WorkoutStepTargetTypeVariant13 value) + { + return value switch + { + WorkoutStepTargetTypeVariant13.PowerPercentage => "power_percentage", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static WorkoutStepTargetTypeVariant13? ToEnum(string value) + { + return value switch + { + "power_percentage" => WorkoutStepTargetTypeVariant13.PowerPercentage, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Terra/Generated/Terra.Models.WorkoutStepTargetTypeVariant14.g.cs b/src/libs/Terra/Generated/Terra.Models.WorkoutStepTargetTypeVariant14.g.cs new file mode 100644 index 00000000..dbf0692d --- /dev/null +++ b/src/libs/Terra/Generated/Terra.Models.WorkoutStepTargetTypeVariant14.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Terra +{ + /// + /// + /// + public enum WorkoutStepTargetTypeVariant14 + { + /// + /// + /// + Repetition, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class WorkoutStepTargetTypeVariant14Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this WorkoutStepTargetTypeVariant14 value) + { + return value switch + { + WorkoutStepTargetTypeVariant14.Repetition => "repetition", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static WorkoutStepTargetTypeVariant14? ToEnum(string value) + { + return value switch + { + "repetition" => WorkoutStepTargetTypeVariant14.Repetition, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Terra/Generated/Terra.Models.WorkoutStepTargetTypeVariant15.g.cs b/src/libs/Terra/Generated/Terra.Models.WorkoutStepTargetTypeVariant15.g.cs new file mode 100644 index 00000000..a2d5662b --- /dev/null +++ b/src/libs/Terra/Generated/Terra.Models.WorkoutStepTargetTypeVariant15.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Terra +{ + /// + /// + /// + public enum WorkoutStepTargetTypeVariant15 + { + /// + /// + /// + Tss, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class WorkoutStepTargetTypeVariant15Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this WorkoutStepTargetTypeVariant15 value) + { + return value switch + { + WorkoutStepTargetTypeVariant15.Tss => "tss", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static WorkoutStepTargetTypeVariant15? ToEnum(string value) + { + return value switch + { + "tss" => WorkoutStepTargetTypeVariant15.Tss, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Terra/Generated/Terra.Models.WorkoutStepTargetTypeVariant16.g.cs b/src/libs/Terra/Generated/Terra.Models.WorkoutStepTargetTypeVariant16.g.cs new file mode 100644 index 00000000..9880d72b --- /dev/null +++ b/src/libs/Terra/Generated/Terra.Models.WorkoutStepTargetTypeVariant16.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Terra +{ + /// + /// + /// + public enum WorkoutStepTargetTypeVariant16 + { + /// + /// + /// + If, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class WorkoutStepTargetTypeVariant16Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this WorkoutStepTargetTypeVariant16 value) + { + return value switch + { + WorkoutStepTargetTypeVariant16.If => "if", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static WorkoutStepTargetTypeVariant16? ToEnum(string value) + { + return value switch + { + "if" => WorkoutStepTargetTypeVariant16.If, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Terra/Generated/Terra.Models.WorkoutStepTargetTypeVariant17.g.cs b/src/libs/Terra/Generated/Terra.Models.WorkoutStepTargetTypeVariant17.g.cs new file mode 100644 index 00000000..3c372128 --- /dev/null +++ b/src/libs/Terra/Generated/Terra.Models.WorkoutStepTargetTypeVariant17.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Terra +{ + /// + /// + /// + public enum WorkoutStepTargetTypeVariant17 + { + /// + /// + /// + Rpe, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class WorkoutStepTargetTypeVariant17Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this WorkoutStepTargetTypeVariant17 value) + { + return value switch + { + WorkoutStepTargetTypeVariant17.Rpe => "rpe", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static WorkoutStepTargetTypeVariant17? ToEnum(string value) + { + return value switch + { + "rpe" => WorkoutStepTargetTypeVariant17.Rpe, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Terra/Generated/Terra.Models.WorkoutStepTargetTypeVariant18.g.cs b/src/libs/Terra/Generated/Terra.Models.WorkoutStepTargetTypeVariant18.g.cs new file mode 100644 index 00000000..0008828a --- /dev/null +++ b/src/libs/Terra/Generated/Terra.Models.WorkoutStepTargetTypeVariant18.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Terra +{ + /// + /// + /// + public enum WorkoutStepTargetTypeVariant18 + { + /// + /// + /// + HeartRateZone, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class WorkoutStepTargetTypeVariant18Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this WorkoutStepTargetTypeVariant18 value) + { + return value switch + { + WorkoutStepTargetTypeVariant18.HeartRateZone => "heart_rate_zone", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static WorkoutStepTargetTypeVariant18? ToEnum(string value) + { + return value switch + { + "heart_rate_zone" => WorkoutStepTargetTypeVariant18.HeartRateZone, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Terra/Generated/Terra.Models.WorkoutStepTargetTypeVariant19.g.cs b/src/libs/Terra/Generated/Terra.Models.WorkoutStepTargetTypeVariant19.g.cs new file mode 100644 index 00000000..61e8b799 --- /dev/null +++ b/src/libs/Terra/Generated/Terra.Models.WorkoutStepTargetTypeVariant19.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Terra +{ + /// + /// + /// + public enum WorkoutStepTargetTypeVariant19 + { + /// + /// + /// + PowerZone, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class WorkoutStepTargetTypeVariant19Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this WorkoutStepTargetTypeVariant19 value) + { + return value switch + { + WorkoutStepTargetTypeVariant19.PowerZone => "power_zone", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static WorkoutStepTargetTypeVariant19? ToEnum(string value) + { + return value switch + { + "power_zone" => WorkoutStepTargetTypeVariant19.PowerZone, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Terra/Generated/Terra.Models.WorkoutTemplate.g.cs b/src/libs/Terra/Generated/Terra.Models.WorkoutTemplate.g.cs index 10a4af69..bd65c5bd 100644 --- a/src/libs/Terra/Generated/Terra.Models.WorkoutTemplate.g.cs +++ b/src/libs/Terra/Generated/Terra.Models.WorkoutTemplate.g.cs @@ -21,14 +21,6 @@ public sealed partial class WorkoutTemplate [global::System.Text.Json.Serialization.JsonPropertyName("description")] public string? Description { get; set; } - /// - /// Sport a workout template targets. Indoor/outdoor is expressed separately via environment. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sport")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Terra.JsonConverters.WorkoutSportJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Terra.WorkoutSport Sport { get; set; } - /// /// /// @@ -66,12 +58,32 @@ public sealed partial class WorkoutTemplate [global::System.Text.Json.Serialization.JsonPropertyName("estimated_calories")] public double? EstimatedCalories { get; set; } + /// + /// Planned training stress score, where the provider or author supplies one. Read-only today: accepted on create but not forwarded to providers. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("estimated_tss")] + public double? EstimatedTss { get; set; } + + /// + /// Planned intensity factor, where the provider or author supplies one. Read-only today: accepted on create but not forwarded to providers. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("estimated_intensity_factor")] + public double? EstimatedIntensityFactor { get; set; } + /// /// Terra identifier of the stored template. Set by Terra in responses; ignored on create. /// [global::System.Text.Json.Serialization.JsonPropertyName("workout_id")] public string? WorkoutId { get; set; } + /// + /// Sport a workout template targets. Indoor/outdoor is expressed separately via environment. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sport")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Terra.JsonConverters.WorkoutSportJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Terra.WorkoutSport Sport { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -84,10 +96,10 @@ public sealed partial class WorkoutTemplate /// /// Name of the workout /// + /// /// /// Sport a workout template targets. Indoor/outdoor is expressed separately via environment. /// - /// /// /// Description of the workout /// @@ -104,6 +116,12 @@ public sealed partial class WorkoutTemplate /// /// Estimated calories burned /// + /// + /// Planned training stress score, where the provider or author supplies one. Read-only today: accepted on create but not forwarded to providers. + /// + /// + /// Planned intensity factor, where the provider or author supplies one. Read-only today: accepted on create but not forwarded to providers. + /// /// /// Terra identifier of the stored template. Set by Terra in responses; ignored on create. /// @@ -112,26 +130,30 @@ public sealed partial class WorkoutTemplate #endif public WorkoutTemplate( string name, - global::Terra.WorkoutSport sport, global::System.Collections.Generic.IList stepBlocks, + global::Terra.WorkoutSport sport, string? description, global::Terra.EnvironmentType? environment, double? poolLengthMeters, double? estimatedDurationSeconds, double? estimatedDistanceMeters, double? estimatedCalories, + double? estimatedTss, + double? estimatedIntensityFactor, string? workoutId) { this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); this.Description = description; - this.Sport = sport; this.Environment = environment; this.PoolLengthMeters = poolLengthMeters; this.StepBlocks = stepBlocks ?? throw new global::System.ArgumentNullException(nameof(stepBlocks)); this.EstimatedDurationSeconds = estimatedDurationSeconds; this.EstimatedDistanceMeters = estimatedDistanceMeters; this.EstimatedCalories = estimatedCalories; + this.EstimatedTss = estimatedTss; + this.EstimatedIntensityFactor = estimatedIntensityFactor; this.WorkoutId = workoutId; + this.Sport = sport; } /// diff --git a/src/libs/Terra/Generated/Terra.Models.WorkoutsPlanWorkoutResponse.g.cs b/src/libs/Terra/Generated/Terra.Models.WorkoutsPlanWorkoutResponse.g.cs index a5ad2119..9ca25765 100644 --- a/src/libs/Terra/Generated/Terra.Models.WorkoutsPlanWorkoutResponse.g.cs +++ b/src/libs/Terra/Generated/Terra.Models.WorkoutsPlanWorkoutResponse.g.cs @@ -1,4 +1,6 @@ +#pragma warning disable CS0618 // Type or member is obsolete + #nullable enable namespace Terra @@ -29,11 +31,18 @@ public sealed partial class WorkoutsPlanWorkoutResponse public string? ProviderWorkoutId { get; set; } /// - /// Set when the template could not be represented exactly on the provider. + /// Deprecated; use warnings. Set when the template could not be represented exactly on the provider. /// [global::System.Text.Json.Serialization.JsonPropertyName("coercion_warnings")] + [global::System.Obsolete("This property marked as deprecated.")] public string? CoercionWarnings { get; set; } + /// + /// Adjustments made when the template could not be represented exactly on the provider. Empty when the push was exact. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("warnings")] + public global::System.Collections.Generic.IList? Warnings { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -50,8 +59,8 @@ public sealed partial class WorkoutsPlanWorkoutResponse /// /// Identifier assigned by the provider. Absent for SDK-delivered plans. /// - /// - /// Set when the template could not be represented exactly on the provider. + /// + /// Adjustments made when the template could not be represented exactly on the provider. Empty when the push was exact. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] @@ -60,12 +69,12 @@ public WorkoutsPlanWorkoutResponse( global::Terra.WorkoutsPlanWorkoutResponseStatus? status, string? plannedWorkoutId, string? providerWorkoutId, - string? coercionWarnings) + global::System.Collections.Generic.IList? warnings) { this.Status = status; this.PlannedWorkoutId = plannedWorkoutId; this.ProviderWorkoutId = providerWorkoutId; - this.CoercionWarnings = coercionWarnings; + this.Warnings = warnings; } /// diff --git a/src/libs/Terra/Generated/Terra.WorkoutsClient.WorkoutsCreateWorkout.g.cs b/src/libs/Terra/Generated/Terra.WorkoutsClient.WorkoutsCreateWorkout.g.cs index 49d25cb6..be98911f 100644 --- a/src/libs/Terra/Generated/Terra.WorkoutsClient.WorkoutsCreateWorkout.g.cs +++ b/src/libs/Terra/Generated/Terra.WorkoutsClient.WorkoutsCreateWorkout.g.cs @@ -517,9 +517,6 @@ partial void ProcessWorkoutsCreateWorkoutResponseContent( /// /// Description of the workout /// - /// - /// Sport a workout template targets. Indoor/outdoor is expressed separately via environment. - /// /// /// /// Pool length in meters, for swim workouts @@ -534,22 +531,33 @@ partial void ProcessWorkoutsCreateWorkoutResponseContent( /// /// Estimated calories burned /// + /// + /// Planned training stress score, where the provider or author supplies one. Read-only today: accepted on create but not forwarded to providers. + /// + /// + /// Planned intensity factor, where the provider or author supplies one. Read-only today: accepted on create but not forwarded to providers. + /// /// /// Terra identifier of the stored template. Set by Terra in responses; ignored on create. /// + /// + /// Sport a workout template targets. Indoor/outdoor is expressed separately via environment. + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task WorkoutsCreateWorkoutAsync( string name, - global::Terra.WorkoutSport sport, global::System.Collections.Generic.IList stepBlocks, + global::Terra.WorkoutSport sport, string? description = default, global::Terra.EnvironmentType? environment = default, double? poolLengthMeters = default, double? estimatedDurationSeconds = default, double? estimatedDistanceMeters = default, double? estimatedCalories = default, + double? estimatedTss = default, + double? estimatedIntensityFactor = default, string? workoutId = default, global::Terra.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -558,14 +566,16 @@ partial void ProcessWorkoutsCreateWorkoutResponseContent( { Name = name, Description = description, - Sport = sport, Environment = environment, PoolLengthMeters = poolLengthMeters, StepBlocks = stepBlocks, EstimatedDurationSeconds = estimatedDurationSeconds, EstimatedDistanceMeters = estimatedDistanceMeters, EstimatedCalories = estimatedCalories, + EstimatedTss = estimatedTss, + EstimatedIntensityFactor = estimatedIntensityFactor, WorkoutId = workoutId, + Sport = sport, }; return await WorkoutsCreateWorkoutAsync( diff --git a/src/libs/Terra/Generated/Terra.WorkoutsClient.WorkoutsListPlannedWorkouts.g.cs b/src/libs/Terra/Generated/Terra.WorkoutsClient.WorkoutsListPlannedWorkouts.g.cs index 4b5fe4fc..57def19f 100644 --- a/src/libs/Terra/Generated/Terra.WorkoutsClient.WorkoutsListPlannedWorkouts.g.cs +++ b/src/libs/Terra/Generated/Terra.WorkoutsClient.WorkoutsListPlannedWorkouts.g.cs @@ -47,7 +47,7 @@ partial void ProcessWorkoutsListPlannedWorkoutsResponseContent( /// /// List planned workouts
- /// Returns the user's planned workouts, including workouts created on the provider side (is_external true) where the provider exposes them. External workouts carry their full body (title, description, planned metrics, structured steps) under `details`; they are fetched live from the provider and are not stored by Terra. Note that providers may limit how far ahead planned workouts are visible. + /// Returns the user's planned workouts, including workouts created on the provider side (is_external true) where the provider exposes them. Every item carries its workout body under `template`, in the same shape for Terra-created and external workouts. External workouts are fetched live from the provider and are not stored by Terra; a workout pushed through Terra that the provider echoes back is listed once, as the Terra row. When the provider could not be read, or a template could not be loaded, the response is still 200 with the rows Terra has and carries the `X-Terra-Provider-Data-Truncated: true` header. Note that providers may limit how far ahead planned workouts are visible. ///
/// /// @@ -74,7 +74,7 @@ partial void ProcessWorkoutsListPlannedWorkoutsResponseContent( } /// /// List planned workouts
- /// Returns the user's planned workouts, including workouts created on the provider side (is_external true) where the provider exposes them. External workouts carry their full body (title, description, planned metrics, structured steps) under `details`; they are fetched live from the provider and are not stored by Terra. Note that providers may limit how far ahead planned workouts are visible. + /// Returns the user's planned workouts, including workouts created on the provider side (is_external true) where the provider exposes them. Every item carries its workout body under `template`, in the same shape for Terra-created and external workouts. External workouts are fetched live from the provider and are not stored by Terra; a workout pushed through Terra that the provider echoes back is listed once, as the Terra row. When the provider could not be read, or a template could not be loaded, the response is still 200 with the rows Terra has and carries the `X-Terra-Provider-Data-Truncated: true` header. Note that providers may limit how far ahead planned workouts are visible. ///
/// /// diff --git a/src/libs/Terra/Generated/autosdk.generated-examples.json b/src/libs/Terra/Generated/autosdk.generated-examples.json index 4bc0d56e..60c01f3b 100644 --- a/src/libs/Terra/Generated/autosdk.generated-examples.json +++ b/src/libs/Terra/Generated/autosdk.generated-examples.json @@ -61,7 +61,7 @@ "Slug": "authentication-generatewidgetsession", "Description": "Returns a Terra Widget session with a hosted URL where the end user selects a provider and logs in.", "Language": "http", - "Code": "### Generate a Terra Widget session link\n# @name Authentication_GenerateWidgetSession\nPOST {{host}}/auth/generateWidgetSession\nAuthorization: Bearer {{token}}\nContent-Type: application/json\nAccept: application/json, application/problem\u002Bjson\n\n{\n \u0022providers\u0022: \u0022GARMIN,FITBIT,OURA,WITHINGS,SUUNTO\u0022,\n \u0022language\u0022: \u0022en\u0022,\n \u0022reference_id\u0022: \u0022user123@email.com\u0022,\n \u0022auth_success_redirect_url\u0022: \u0022https://myapp.com/success\u0022,\n \u0022auth_failure_redirect_url\u0022: \u0022https://myapp.com/failure\u0022\n}\n\n## Responses\n# 200\n# Description: Returned when authentication link could be successfully generated\n# Content-Type: application/json\n# 400\n# Description: One or more parameters is malformed. The \u0060detail\u0060 field describes the specific problem.\n# Content-Type: application/problem\u002Bjson", + "Code": "### Generate a Terra Widget session link\n# @name Authentication_GenerateWidgetSession\nPOST {{host}}/auth/generateWidgetSession\nAuthorization: Bearer {{token}}\nContent-Type: application/json\nAccept: application/json, application/problem\u002Bjson\n\n{\n \u0022providers\u0022: \u0022GARMIN,FITBIT,OURA,WITHINGS,SUUNTO\u0022,\n \u0022language\u0022: \u0022en\u0022,\n \u0022reference_id\u0022: \u0022user123@email.com\u0022,\n \u0022auth_success_redirect_url\u0022: \u0022https://myapp.com/success\u0022,\n \u0022auth_failure_redirect_url\u0022: \u0022https://myapp.com/failure\u0022\n}\n\n## Responses\n# 200\n# Description: Returned when authentication link could be successfully generated\n# Content-Type: application/json\n# 400\n# Description: One or more parameters is malformed. The \u0060detail\u0060 field describes the specific problem.\n# Content-Type: application/problem\u002Bjson\n# 410\n# Description: Returned for Terra accounts created after the widget relaunch (2026-09-03) \u2014 this endpoint is deprecated for them. Create widget sessions with POST https://access.tryterra.co/api/widget/session instead. The response carries Deprecation and Link (rel=\u0022deprecation\u0022) headers.\n# Content-Type: application/json", "Format": "http", "OperationId": "Authentication_GenerateWidgetSession", "Setup": null @@ -226,7 +226,7 @@ "Slug": "workouts-createworkout", "Description": "Stores a reusable workout template. Plan it onto a user\u0027s calendar with \u0060POST /workouts/{workout_id}/plan\u0060; the template itself carries no date and is not pushed to any provider until planned.", "Language": "http", - "Code": "### Create a workout template\n# @name Workouts_CreateWorkout\nPOST {{host}}/workouts\nAuthorization: Bearer {{token}}\nContent-Type: application/json\nAccept: application/json, application/problem\u002Bjson\n\n{\n \u0022name\u0022: \u0022string\u0022,\n \u0022description\u0022: \u0022string\u0022,\n \u0022sport\u0022: \u0022running\u0022,\n \u0022environment\u0022: \u0022indoor\u0022,\n \u0022pool_length_meters\u0022: 0,\n \u0022step_blocks\u0022: [\n {\n \u0022completion_condition\u0022: {},\n \u0022steps\u0022: []\n }\n ],\n \u0022estimated_duration_seconds\u0022: 0,\n \u0022estimated_distance_meters\u0022: 0,\n \u0022estimated_calories\u0022: 0,\n \u0022workout_id\u0022: \u0022string\u0022\n}\n\n## Responses\n# 200\n# Description: Template stored\n# Content-Type: application/json\n# 400\n# Description: One or more parameters is malformed. The \u0060detail\u0060 field describes the specific problem.\n# Content-Type: application/problem\u002Bjson\n# 401\n# Description: Authentication credentials are missing or invalid.\n# Content-Type: application/problem\u002Bjson", + "Code": "### Create a workout template\n# @name Workouts_CreateWorkout\nPOST {{host}}/workouts\nAuthorization: Bearer {{token}}\nContent-Type: application/json\nAccept: application/json, application/problem\u002Bjson\n\n{\n \u0022name\u0022: \u0022string\u0022,\n \u0022description\u0022: \u0022string\u0022,\n \u0022environment\u0022: \u0022indoor\u0022,\n \u0022pool_length_meters\u0022: 0,\n \u0022step_blocks\u0022: [\n {\n \u0022completion_condition\u0022: {},\n \u0022steps\u0022: []\n }\n ],\n \u0022estimated_duration_seconds\u0022: 0,\n \u0022estimated_distance_meters\u0022: 0,\n \u0022estimated_calories\u0022: 0,\n \u0022estimated_tss\u0022: 0,\n \u0022estimated_intensity_factor\u0022: 0,\n \u0022workout_id\u0022: \u0022string\u0022,\n \u0022sport\u0022: \u0022running\u0022\n}\n\n## Responses\n# 200\n# Description: Template stored\n# Content-Type: application/json\n# 400\n# Description: One or more parameters is malformed. The \u0060detail\u0060 field describes the specific problem.\n# Content-Type: application/problem\u002Bjson\n# 401\n# Description: Authentication credentials are missing or invalid.\n# Content-Type: application/problem\u002Bjson", "Format": "http", "OperationId": "Workouts_CreateWorkout", "Setup": null @@ -279,7 +279,7 @@ "Order": 26, "Title": "List planned workouts", "Slug": "workouts-listplannedworkouts", - "Description": "Returns the user\u0027s planned workouts, including workouts created on the provider side (is_external true) where the provider exposes them. External workouts carry their full body (title, description, planned metrics, structured steps) under \u0060details\u0060; they are fetched live from the provider and are not stored by Terra. Note that providers may limit how far ahead planned workouts are visible.", + "Description": "Returns the user\u0027s planned workouts, including workouts created on the provider side (is_external true) where the provider exposes them. Every item carries its workout body under \u0060template\u0060, in the same shape for Terra-created and external workouts. External workouts are fetched live from the provider and are not stored by Terra; a workout pushed through Terra that the provider echoes back is listed once, as the Terra row. When the provider could not be read, or a template could not be loaded, the response is still 200 with the rows Terra has and carries the \u0060X-Terra-Provider-Data-Truncated: true\u0060 header. Note that providers may limit how far ahead planned workouts are visible.", "Language": "http", "Code": "### List planned workouts\n# @name Workouts_ListPlannedWorkouts\nGET {{host}}/plannedWorkouts?user_id={{user_id}}\u0026start_date={{start_date}}\u0026end_date={{end_date}}\nAuthorization: Bearer {{token}}\nAccept: application/json, application/problem\u002Bjson\n\n## Responses\n# 200\n# Description: Planned workouts for the connection\n# Content-Type: application/json\n# 400\n# Description: One or more parameters is malformed. The \u0060detail\u0060 field describes the specific problem.\n# Content-Type: application/problem\u002Bjson\n# 401\n# Description: Authentication credentials are missing or invalid.\n# Content-Type: application/problem\u002Bjson\n# 404\n# Description: A referenced resource does not exist on Terra\u0027s end.\n# Content-Type: application/problem\u002Bjson", "Format": "http", diff --git a/src/libs/Terra/openapi.yaml b/src/libs/Terra/openapi.yaml index ea27f540..8216c313 100644 --- a/src/libs/Terra/openapi.yaml +++ b/src/libs/Terra/openapi.yaml @@ -2,7 +2,7 @@ openapi: 3.0.3 info: description: The Terra API (v2 surface, served at access.tryterra.co/api/v2). title: TerraAPI - version: 2026.08.28 + version: 2026.09.04.2 license: name: Apache-2.0 url: https://github.com/tryterra/openapi/blob/master/LICENSE @@ -122,6 +122,13 @@ paths: example: 900 '400': $ref: '#/components/responses/BadRequest' + '410': + description: Returned for Terra accounts created after the widget relaunch (2026-09-03) — this endpoint is deprecated for them. Create widget sessions with POST https://access.tryterra.co/api/widget/session + instead. The response carries Deprecation and Link (rel="deprecation") headers. + content: + application/json: + schema: + $ref: '#/components/schemas/Problem' /auth/deauthenticateUser: delete: summary: Deauthenticate a user @@ -898,7 +905,13 @@ paths: description: Identifier assigned by the provider. Absent for SDK-delivered plans. coercion_warnings: type: string - description: Set when the template could not be represented exactly on the provider. + deprecated: true + description: Deprecated; use warnings. Set when the template could not be represented exactly on the provider. + warnings: + type: array + items: + $ref: '#/components/schemas/CoercionWarning' + description: Adjustments made when the template could not be represented exactly on the provider. Empty when the push was exact. '400': $ref: '#/components/responses/BadRequest' '401': @@ -922,9 +935,10 @@ paths: tags: - Workouts summary: List planned workouts - description: 'Returns the user''s planned workouts, including workouts created on the provider side (is_external true) where the provider exposes them. External workouts carry their full body (title, - description, planned metrics, structured steps) under `details`; they are fetched live from the provider and are not stored by Terra. Note that providers may limit how far ahead planned workouts - are visible. + description: 'Returns the user''s planned workouts, including workouts created on the provider side (is_external true) where the provider exposes them. Every item carries its workout body under `template`, + in the same shape for Terra-created and external workouts. External workouts are fetched live from the provider and are not stored by Terra; a workout pushed through Terra that the provider echoes + back is listed once, as the Terra row. When the provider could not be read, or a template could not be loaded, the response is still 200 with the rows Terra has and carries the `X-Terra-Provider-Data-Truncated: + true` header. Note that providers may limit how far ahead planned workouts are visible. ' operationId: Workouts_ListPlannedWorkouts @@ -954,6 +968,25 @@ paths: responses: '200': description: Planned workouts for the connection + headers: + X-Terra-Provider-Data-Truncated: + schema: + type: string + enum: + - 'true' + description: Present when provider-side workouts could not be included; X-Terra-Provider-Fetch says why. + X-Terra-Provider-Fetch: + schema: + type: string + enum: + - ok + - skipped + - rate_limited + - unauthorized + - unavailable + - timeout + - failed + description: Outcome of the live provider read. `skipped` means the provider does not expose planned workouts or the add-on is not enabled. content: application/json: schema: @@ -2157,8 +2190,6 @@ components: - type: string - type: 'null' description: Description of the workout - sport: - $ref: '#/components/schemas/WorkoutSport' environment: anyOf: - $ref: '#/components/schemas/EnvironmentType' @@ -2187,15 +2218,27 @@ components: - type: number - type: 'null' description: Estimated calories burned + estimated_tss: + anyOf: + - type: number + - type: 'null' + description: 'Planned training stress score, where the provider or author supplies one. Read-only today: accepted on create but not forwarded to providers.' + estimated_intensity_factor: + anyOf: + - type: number + - type: 'null' + description: 'Planned intensity factor, where the provider or author supplies one. Read-only today: accepted on create but not forwarded to providers.' workout_id: anyOf: - type: string - type: 'null' description: Terra identifier of the stored template. Set by Terra in responses; ignored on create. + sport: + $ref: '#/components/schemas/WorkoutSport' required: - name - - sport - step_blocks + - sport description: A reusable workout template, created once and planned onto user calendars PlannedWorkoutItem: $ref: '#/components/schemas/PlannedWorkout' @@ -2220,7 +2263,92 @@ components: description: Identifier assigned by the provider, once pushed. coercion_warnings: type: string - description: Set when the template could not be represented exactly on the provider. + deprecated: true + description: Deprecated; use warnings. Set when the template could not be represented exactly on the provider. + warnings: + type: array + items: + $ref: '#/components/schemas/CoercionWarning' + description: Adjustments made when the template could not be represented exactly on the provider. Empty when the push was exact. + workout: + anyOf: + - $ref: '#/components/schemas/PlannedWorkoutBody' + - type: 'null' + description: The workout body, as on the list. Null when the planned workout has no stored template or it could not be loaded. + CoercionWarning: + type: object + properties: + path: + type: string + description: JSON path within the workout template of the element that could not be represented exactly + message: + type: string + description: What was changed or dropped, and why + required: + - path + - message + description: A non-fatal adjustment made while converting a workout between Terra's template model and a provider's + PlannedWorkoutBody: + type: object + properties: + name: + type: string + description: Name of the workout + description: + anyOf: + - type: string + - type: 'null' + description: Description of the workout + environment: + anyOf: + - $ref: '#/components/schemas/EnvironmentType' + - type: 'null' + pool_length_meters: + anyOf: + - type: number + - type: 'null' + description: Pool length in meters, for swim workouts + step_blocks: + type: array + items: + $ref: '#/components/schemas/StepBlock' + estimated_duration_seconds: + anyOf: + - type: number + - type: 'null' + description: Estimated total duration in seconds + estimated_distance_meters: + anyOf: + - type: number + - type: 'null' + description: Estimated total distance in meters + estimated_calories: + anyOf: + - type: number + - type: 'null' + description: Estimated calories burned + estimated_tss: + anyOf: + - type: number + - type: 'null' + description: 'Planned training stress score, where the provider or author supplies one. Read-only today: accepted on create but not forwarded to providers.' + estimated_intensity_factor: + anyOf: + - type: number + - type: 'null' + description: 'Planned intensity factor, where the provider or author supplies one. Read-only today: accepted on create but not forwarded to providers.' + workout_id: + anyOf: + - type: string + - type: 'null' + description: Terra identifier of the stored template. Set by Terra in responses; ignored on create. + sport: + $ref: '#/components/schemas/PlannedWorkoutSport' + required: + - name + - step_blocks + - sport + description: 'The body of a planned workout: a WorkoutTemplate whose sport may be `unspecified` when it was created on the provider side' Problem: type: object description: 'An error response, following RFC 9457 (Problem Details for HTTP APIs, which obsoletes RFC 7807). Returned with `Content-Type: application/problem+json` on every 4xx/5xx response. The @@ -8431,54 +8559,6 @@ components: - type: 'null' description: Mean absolute skin temperature in degrees Celsius over the sleep window. Null for providers that only report a baseline deviation. example: 33.7 - WorkoutSport: - anyOf: - - type: string - enum: - - running - - type: string - enum: - - cycling - - type: string - enum: - - swimming - - type: string - enum: - - strength - - type: string - enum: - - rowing - - type: string - enum: - - yoga - - type: string - enum: - - pilates - - type: string - enum: - - cardio - - type: string - enum: - - trail_running - - type: string - enum: - - mountain_biking - - type: string - enum: - - backcountry_skiing - - type: string - enum: - - hiking - - type: string - enum: - - walking - - type: string - enum: - - elliptical - - type: string - enum: - - stair_climbing - description: Sport a workout template targets. Indoor/outdoor is expressed separately via environment. EnvironmentType: anyOf: - type: string @@ -8526,6 +8606,24 @@ components: - type: string enum: - hr_greater_than + - type: string + enum: + - hr_percentage_less_than + - type: string + enum: + - hr_percentage_greater_than + - type: string + enum: + - power_less_than + - type: string + enum: + - power_greater_than + - type: string + enum: + - power_percentage_less_than + - type: string + enum: + - power_percentage_greater_than description: How a step or block is considered complete CompletionCondition: type: object @@ -8585,6 +8683,30 @@ components: - type: string enum: - heart_rate_max_percentage + - type: string + enum: + - speed_percentage + - type: string + enum: + - power_percentage + - type: string + enum: + - repetition + - type: string + enum: + - tss + - type: string + enum: + - if + - type: string + enum: + - rpe + - type: string + enum: + - heart_rate_zone + - type: string + enum: + - power_zone description: Quantity an intensity target constrains IntensityTarget: type: object @@ -8808,6 +8930,54 @@ components: - completion_condition - steps description: A block of steps, repeated until its completion condition is met + WorkoutSport: + anyOf: + - type: string + enum: + - running + - type: string + enum: + - cycling + - type: string + enum: + - swimming + - type: string + enum: + - strength + - type: string + enum: + - rowing + - type: string + enum: + - yoga + - type: string + enum: + - pilates + - type: string + enum: + - cardio + - type: string + enum: + - trail_running + - type: string + enum: + - mountain_biking + - type: string + enum: + - backcountry_skiing + - type: string + enum: + - hiking + - type: string + enum: + - walking + - type: string + enum: + - elliptical + - type: string + enum: + - stair_climbing + description: Sport a workout template targets. Indoor/outdoor is expressed separately via environment. AthleteMetrics: type: object properties: @@ -8837,6 +9007,13 @@ components: - type: 'null' description: Pool length in meters (overrides the template value) description: Athlete-specific metrics used to personalise workout targets for one planned workout + PlannedWorkoutSport: + anyOf: + - $ref: '#/components/schemas/WorkoutSport' + - type: string + enum: + - unspecified + description: 'Sport of a provider-created workout: a WorkoutSport, or `unspecified` when the provider''s sport has no Terra equivalent (rejected on create).' PlannedWorkoutDetailsMetadata: type: object properties: @@ -9167,52 +9344,79 @@ components: anyOf: - type: string - type: 'null' - description: Terra identifier of the planned workout + description: Terra identifier of the planned workout. Null for workouts created on the provider side. workout_id: anyOf: - type: string - type: 'null' - description: Identifier of the workout template this was planned from. Absent for workouts created on the provider side. + description: Identifier of the workout template this was planned from. Null for workouts created on the provider side; a non-null value means the workout is managed through Terra and can be rescheduled + or deleted. planned_date: anyOf: - type: string - type: 'null' - description: Scheduled date (YYYY-MM-DD) + description: Scheduled date (YYYY-MM-DD). Null for provider entries that are not attached to a date, such as a routine library. provider_workout_id: anyOf: - type: string - type: 'null' - description: Identifier of the workout on the provider's side, once pushed + description: Identifier of the workout on the provider's side, in the form the provider's own API uses for it coercion_warnings: anyOf: - type: string - type: 'null' - description: Warnings emitted when the template could not be represented exactly on the provider + description: 'Deprecated: the stored JSON text of the adjustments made when the template was pushed to the provider; use `warnings`. Null when there were none or the workout was created on the + provider side.' + deprecated: true + warnings: + type: array + items: + $ref: '#/components/schemas/CoercionWarning' + description: Adjustments made while converting between Terra's template and the provider's format. On Terra-created workouts these come from the push to the provider; on external workouts, from + reading the provider's workout into a template. Empty when the conversion was exact. created_at: anyOf: - type: string - type: 'null' - description: Creation time (RFC 3339) + description: Creation time (RFC 3339). Null for external workouts. last_updated_at: anyOf: - type: string - type: 'null' - description: Last update time (RFC 3339) + description: Last update time (RFC 3339). Null for external workouts. is_external: - anyOf: - - type: boolean - - type: 'null' + type: boolean description: True when the workout was created on the provider side rather than through Terra athlete_metrics: anyOf: - $ref: '#/components/schemas/AthleteMetrics' - type: 'null' + workout: + anyOf: + - $ref: '#/components/schemas/PlannedWorkoutBody' + - type: 'null' + description: The workout body, in the same shape for Terra-created and external workouts. Null when a Terra-created workout's body could not be loaded (a warning at path `workout` says why); for + an external workout whose steps could not be fetched from the provider, the header fields are present, `step_blocks` is empty and a warning at path `step_blocks` says why. details: anyOf: - $ref: '#/components/schemas/PlannedWorkoutDetails' - type: 'null' - description: Full workout body (title, description, planned metrics, structured steps) fetched live from the provider. Present only for external workouts (is_external true). - description: A workout template scheduled onto a user's calendar + description: Deprecated. The provider body of an external workout in its pre-template shape; use `workout`. Null on Terra-created workouts. Removed in the next major SDK release. + deprecated: true + required: + - planned_workout_id + - workout_id + - planned_date + - provider_workout_id + - coercion_warnings + - warnings + - created_at + - last_updated_at + - is_external + - athlete_metrics + - workout + - details + description: A workout scheduled onto a user's calendar, whether created through Terra or on the provider side WebhookEvent: type: object properties: