From a26ab67c446f51239b7751dc78125157aa88d9c9 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 6 Sep 2026 22:40:40 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- .../Terra.JsonSerializerContext.g.cs | 14 +- .../Terra.JsonSerializerContextTypes.g.cs | 14 +- .../Generated/Terra.Models.Activity.g.cs | 4 +- ...dels.ActivityActiveDurationsData.Json.g.cs | 141 ------------- ...ra.Models.ActivityActiveDurationsData.g.cs | 19 -- ...erra.Models.ActivityCaloriesData.Json.g.cs | 141 ------------- .../Terra.Models.ActivityCaloriesData.g.cs | 19 -- ...ra.Models.ActivityDataEnrichment.Json.g.cs | 141 ------------- .../Terra.Models.ActivityDataEnrichment.g.cs | 19 -- .../Terra.Models.ActivityDeviceData.Json.g.cs | 141 ------------- .../Terra.Models.ActivityDeviceData.g.cs | 19 -- ...erra.Models.ActivityDistanceData.Json.g.cs | 141 ------------- .../Terra.Models.ActivityDistanceData.g.cs | 19 -- .../Terra.Models.ActivityEnergyData.Json.g.cs | 141 ------------- .../Terra.Models.ActivityEnergyData.g.cs | 19 -- ...rra.Models.ActivityHeartRateData.Json.g.cs | 141 ------------- .../Terra.Models.ActivityHeartRateData.g.cs | 19 -- .../Terra.Models.ActivityLapData.Json.g.cs | 141 ------------- .../Terra.Models.ActivityLapData.g.cs | 19 -- .../Terra.Models.ActivityMetData.Json.g.cs | 141 ------------- .../Terra.Models.ActivityMetData.g.cs | 19 -- ...erra.Models.ActivityMovementData.Json.g.cs | 141 ------------- .../Terra.Models.ActivityMovementData.g.cs | 19 -- .../Terra.Models.ActivityOxygenData.Json.g.cs | 141 ------------- .../Terra.Models.ActivityOxygenData.g.cs | 19 -- ...a.Models.ActivityPolylineMapData.Json.g.cs | 141 ------------- .../Terra.Models.ActivityPolylineMapData.g.cs | 19 -- ...erra.Models.ActivityPositionData.Json.g.cs | 141 ------------- .../Terra.Models.ActivityPositionData.g.cs | 19 -- .../Terra.Models.ActivityPowerData.Json.g.cs | 141 ------------- .../Terra.Models.ActivityPowerData.g.cs | 19 -- .../Terra.Models.ActivityStrainData.Json.g.cs | 141 ------------- .../Terra.Models.ActivityStrainData.g.cs | 19 -- .../Terra.Models.ActivityStrengthData.g.cs | 43 +++- ...rra.Models.ActivityStrengthData2.Json.g.cs | 141 ------------- .../Terra.Models.ActivityStrengthData2.g.cs | 60 ------ .../Terra.Models.ActivityTssData.Json.g.cs | 141 ------------- .../Terra.Models.ActivityTssData.g.cs | 19 -- .../Terra.Models.ActivityWorkData.Json.g.cs | 141 ------------- .../Terra.Models.ActivityWorkData.g.cs | 19 -- ...rra.Models.BodyBloodPressureData.Json.g.cs | 141 ------------- .../Terra.Models.BodyBloodPressureData.g.cs | 19 -- .../Terra.Models.BodyDeviceData.Json.g.cs | 141 ------------- .../Terra.Models.BodyDeviceData.g.cs | 19 -- .../Terra.Models.BodyGlucoseData.Json.g.cs | 141 ------------- .../Terra.Models.BodyGlucoseData.g.cs | 19 -- .../Terra.Models.BodyHeartData.Json.g.cs | 141 ------------- .../Generated/Terra.Models.BodyHeartData.g.cs | 19 -- .../Terra.Models.BodyHydrationData.Json.g.cs | 141 ------------- .../Terra.Models.BodyHydrationData.g.cs | 19 -- .../Terra.Models.BodyKetoneData.Json.g.cs | 141 ------------- .../Terra.Models.BodyKetoneData.g.cs | 19 -- ...erra.Models.BodyMeasurementsData.Json.g.cs | 141 ------------- .../Terra.Models.BodyMeasurementsData.g.cs | 19 -- .../Terra.Models.BodyOxygenData.Json.g.cs | 141 ------------- .../Terra.Models.BodyOxygenData.g.cs | 19 -- ...Terra.Models.BodyTemperatureData.Json.g.cs | 141 ------------- .../Terra.Models.BodyTemperatureData.g.cs | 19 -- .../Terra/Generated/Terra.Models.Daily.g.cs | 8 +- ....Models.DailyActiveDurationsData.Json.g.cs | 141 ------------- ...Terra.Models.DailyActiveDurationsData.g.cs | 19 -- .../Terra.Models.DailyCaloriesData.Json.g.cs | 141 ------------- .../Terra.Models.DailyCaloriesData.g.cs | 19 -- .../Terra.Models.DailyDataEnrichment.g.cs | 182 +++++++++++++++- ...erra.Models.DailyDataEnrichment2.Json.g.cs | 141 ------------- .../Terra.Models.DailyDataEnrichment2.g.cs | 199 ------------------ ...DataEnrichmentImmuneContributors.Json.g.cs | 141 ------------- ...DailyDataEnrichmentImmuneContributors.g.cs | 19 -- ...EnrichmentResilienceContributors.Json.g.cs | 141 ------------- ...yDataEnrichmentResilienceContributors.g.cs | 19 -- ...nrichmentRespiratoryContributors.Json.g.cs | 141 ------------- ...DataEnrichmentRespiratoryContributors.g.cs | 19 -- ...DataEnrichmentStrainContributors.Json.g.cs | 141 ------------- ...DailyDataEnrichmentStrainContributors.g.cs | 19 -- ...DataEnrichmentStressContributors.Json.g.cs | 141 ------------- ...DailyDataEnrichmentStressContributors.g.cs | 19 -- ...ntTotalStressScoreV2Contributors.Json.g.cs | 141 ------------- ...ichmentTotalStressScoreV2Contributors.g.cs | 19 -- .../Terra.Models.DailyDeviceData.Json.g.cs | 141 ------------- .../Terra.Models.DailyDeviceData.g.cs | 19 -- .../Terra.Models.DailyDistanceData.g.cs | 93 +++++++- .../Terra.Models.DailyDistanceData2.Json.g.cs | 141 ------------- .../Terra.Models.DailyDistanceData2.g.cs | 110 ---------- ...Models.DailyDistanceDataDetailed.Json.g.cs | 141 ------------- ...erra.Models.DailyDistanceDataDetailed.g.cs | 19 -- ...odels.DailyDistanceDataElevation.Json.g.cs | 141 ------------- ...rra.Models.DailyDistanceDataElevation.g.cs | 19 -- ...Models.DailyDistanceDataSwimming.Json.g.cs | 141 ------------- ...erra.Models.DailyDistanceDataSwimming.g.cs | 19 -- .../Terra.Models.DailyHeartRateData.Json.g.cs | 141 ------------- .../Terra.Models.DailyHeartRateData.g.cs | 19 -- .../Terra.Models.DailyMetData.Json.g.cs | 141 ------------- .../Generated/Terra.Models.DailyMetData.g.cs | 19 -- .../Terra.Models.DailyOxygenData.Json.g.cs | 141 ------------- .../Terra.Models.DailyOxygenData.g.cs | 19 -- .../Terra.Models.DailyScores.Json.g.cs | 141 ------------- .../Generated/Terra.Models.DailyScores.g.cs | 19 -- .../Terra.Models.DailyStrainData.Json.g.cs | 141 ------------- .../Terra.Models.DailyStrainData.g.cs | 19 -- .../Terra.Models.DailyStressData.Json.g.cs | 141 ------------- .../Terra.Models.DailyStressData.g.cs | 19 -- .../Terra.Models.DailyTagData.Json.g.cs | 141 ------------- .../Generated/Terra.Models.DailyTagData.g.cs | 19 -- ...EnrichmentEfficiencyContributors.Json.g.cs | 141 ------------- ....DataEnrichmentEfficiencyContributors.g.cs | 19 -- ...s.DataEnrichmentRcrsContributors.Json.g.cs | 141 ------------- ...Models.DataEnrichmentRcrsContributors.g.cs | 19 -- ...DataEnrichmentStrainContributors.Json.g.cs | 141 ------------- ...dels.DataEnrichmentStrainContributors.g.cs | 19 -- ....DataEnrichmentTrimpContributors.Json.g.cs | 141 ------------- ...odels.DataEnrichmentTrimpContributors.g.cs | 19 -- ...rra.Models.DistanceDataDetailed2.Json.g.cs | 141 ------------- .../Terra.Models.DistanceDataDetailed2.g.cs | 19 -- ...erra.Models.DistanceDataSummary2.Json.g.cs | 141 ------------- .../Terra.Models.DistanceDataSummary2.g.cs | 19 -- ...els.DistanceDataSummaryElevation.Json.g.cs | 141 ------------- ...a.Models.DistanceDataSummaryElevation.g.cs | 19 -- ...dels.DistanceDataSummarySwimming.Json.g.cs | 141 ------------- ...ra.Models.DistanceDataSummarySwimming.g.cs | 19 -- ...odels.HealthObservationDataValue.Json.g.cs | 141 ------------- ...rra.Models.HealthObservationDataValue.g.cs | 19 -- ...ra.Models.HeartDataHeartRateData.Json.g.cs | 141 ------------- .../Terra.Models.HeartDataHeartRateData.g.cs | 19 -- ...ra.Models.HeartRateDataDetailed2.Json.g.cs | 141 ------------- .../Terra.Models.HeartRateDataDetailed2.g.cs | 19 -- ...rra.Models.HeartRateDataSummary2.Json.g.cs | 141 ------------- .../Terra.Models.HeartRateDataSummary2.g.cs | 19 -- ...els.MenstruationMenstruationData.Json.g.cs | 141 ------------- ...a.Models.MenstruationMenstruationData.g.cs | 19 -- .../Generated/Terra.Models.Nutrition.g.cs | 4 +- .../Terra.Models.NutritionSummary.g.cs | 68 +++++- .../Terra.Models.NutritionSummary2.Json.g.cs | 141 ------------- .../Terra.Models.NutritionSummary2.g.cs | 85 -------- ...ra.Models.NutritionSummaryMacros.Json.g.cs | 141 ------------- .../Terra.Models.NutritionSummaryMacros.g.cs | 19 -- ...ra.Models.NutritionSummaryMicros.Json.g.cs | 141 ------------- .../Terra.Models.NutritionSummaryMicros.g.cs | 19 -- ...Models.ObservationComponentValue.Json.g.cs | 141 ------------- ...erra.Models.ObservationComponentValue.g.cs | 19 -- ...els.PlannedWorkoutAthleteMetrics.Json.g.cs | 141 ------------- ...a.Models.PlannedWorkoutAthleteMetrics.g.cs | 19 -- ...ra.Models.PlannedWorkoutDetails2.Json.g.cs | 141 ------------- .../Terra.Models.PlannedWorkoutDetails2.g.cs | 20 -- ...s.PlannedWorkoutDetailsMetadata2.Json.g.cs | 141 ------------- ...Models.PlannedWorkoutDetailsMetadata2.g.cs | 19 -- ...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 -- ...odels.RespirationDataBreathsData.Json.g.cs | 141 ------------- ...rra.Models.RespirationDataBreathsData.g.cs | 19 -- ...pirationDataOxygenSaturationData.Json.g.cs | 141 ------------- ...s.RespirationDataOxygenSaturationData.g.cs | 19 -- ...odels.RespirationDataSnoringData.Json.g.cs | 141 ------------- ...rra.Models.RespirationDataSnoringData.g.cs | 19 -- .../Terra/Generated/Terra.Models.Sleep.g.cs | 12 +- .../Terra.Models.SleepDataEnrichment.g.cs | 118 ++++++++++- ...erra.Models.SleepDataEnrichment2.Json.g.cs | 141 ------------- .../Terra.Models.SleepDataEnrichment2.g.cs | 135 ------------ ...aEnrichmentReadinessContributors.Json.g.cs | 141 ------------- ...epDataEnrichmentReadinessContributors.g.cs | 19 -- ...ntRespiratoryScoreV2Contributors.Json.g.cs | 141 ------------- ...ichmentRespiratoryScoreV2Contributors.g.cs | 19 -- ...pDataEnrichmentSleepContributors.Json.g.cs | 141 ------------- ....SleepDataEnrichmentSleepContributors.g.cs | 19 -- ...richmentSleepScoreV2Contributors.Json.g.cs | 141 ------------- ...ataEnrichmentSleepScoreV2Contributors.g.cs | 19 -- .../Terra.Models.SleepDeviceData.Json.g.cs | 141 ------------- .../Terra.Models.SleepDeviceData.g.cs | 19 -- ....Models.SleepDurationsDataAsleep.Json.g.cs | 141 ------------- ...Terra.Models.SleepDurationsDataAsleep.g.cs | 19 -- ...a.Models.SleepDurationsDataAwake.Json.g.cs | 141 ------------- .../Terra.Models.SleepDurationsDataAwake.g.cs | 19 -- ...a.Models.SleepDurationsDataOther.Json.g.cs | 141 ------------- .../Terra.Models.SleepDurationsDataOther.g.cs | 19 -- .../Terra.Models.SleepHeartRateData.Json.g.cs | 141 ------------- .../Terra.Models.SleepHeartRateData.g.cs | 19 -- .../Terra.Models.SleepReadinessData.Json.g.cs | 141 ------------- .../Terra.Models.SleepReadinessData.g.cs | 19 -- ...erra.Models.SleepRespirationData.Json.g.cs | 141 ------------- .../Terra.Models.SleepRespirationData.g.cs | 19 -- .../Generated/Terra.Models.SleepScores.g.cs | 32 ++- .../Terra.Models.SleepScores2.Json.g.cs | 141 ------------- .../Generated/Terra.Models.SleepScores2.g.cs | 49 ----- ...a.Models.SleepSleepDurationsData.Json.g.cs | 141 ------------- .../Terra.Models.SleepSleepDurationsData.g.cs | 19 -- .../Terra.Models.SleepTemperatureData.g.cs | 46 +++- ...rra.Models.SleepTemperatureData2.Json.g.cs | 141 ------------- .../Terra.Models.SleepTemperatureData2.g.cs | 63 ------ ...odels.StrengthExerciseModifiers2.Json.g.cs | 141 ------------- ...rra.Models.StrengthExerciseModifiers2.g.cs | 19 -- ...ra.Models.UserReauthEventOldUser.Json.g.cs | 141 ------------- .../Terra.Models.UserReauthEventOldUser.g.cs | 19 -- ...Terra.Models.WorkoutStepStrength.Json.g.cs | 141 ------------- .../Terra.Models.WorkoutStepStrength.g.cs | 19 -- ...Terra.Models.WorkoutStepSwimming.Json.g.cs | 141 ------------- .../Terra.Models.WorkoutStepSwimming.g.cs | 19 -- 197 files changed, 603 insertions(+), 15324 deletions(-) delete mode 100644 src/libs/Terra/Generated/Terra.Models.ActivityActiveDurationsData.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.ActivityActiveDurationsData.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.ActivityCaloriesData.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.ActivityCaloriesData.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.ActivityDataEnrichment.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.ActivityDataEnrichment.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.ActivityDeviceData.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.ActivityDeviceData.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.ActivityDistanceData.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.ActivityDistanceData.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.ActivityEnergyData.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.ActivityEnergyData.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.ActivityHeartRateData.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.ActivityHeartRateData.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.ActivityLapData.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.ActivityLapData.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.ActivityMetData.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.ActivityMetData.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.ActivityMovementData.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.ActivityMovementData.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.ActivityOxygenData.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.ActivityOxygenData.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.ActivityPolylineMapData.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.ActivityPolylineMapData.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.ActivityPositionData.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.ActivityPositionData.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.ActivityPowerData.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.ActivityPowerData.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.ActivityStrainData.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.ActivityStrainData.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.ActivityStrengthData2.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.ActivityStrengthData2.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.ActivityTssData.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.ActivityTssData.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.ActivityWorkData.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.ActivityWorkData.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.BodyBloodPressureData.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.BodyBloodPressureData.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.BodyDeviceData.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.BodyDeviceData.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.BodyGlucoseData.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.BodyGlucoseData.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.BodyHeartData.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.BodyHeartData.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.BodyHydrationData.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.BodyHydrationData.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.BodyKetoneData.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.BodyKetoneData.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.BodyMeasurementsData.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.BodyMeasurementsData.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.BodyOxygenData.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.BodyOxygenData.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.BodyTemperatureData.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.BodyTemperatureData.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.DailyActiveDurationsData.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.DailyActiveDurationsData.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.DailyCaloriesData.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.DailyCaloriesData.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.DailyDataEnrichment2.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.DailyDataEnrichment2.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.DailyDataEnrichmentImmuneContributors.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.DailyDataEnrichmentImmuneContributors.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.DailyDataEnrichmentResilienceContributors.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.DailyDataEnrichmentResilienceContributors.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.DailyDataEnrichmentRespiratoryContributors.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.DailyDataEnrichmentRespiratoryContributors.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.DailyDataEnrichmentStrainContributors.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.DailyDataEnrichmentStrainContributors.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.DailyDataEnrichmentStressContributors.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.DailyDataEnrichmentStressContributors.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.DailyDataEnrichmentTotalStressScoreV2Contributors.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.DailyDataEnrichmentTotalStressScoreV2Contributors.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.DailyDeviceData.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.DailyDeviceData.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.DailyDistanceData2.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.DailyDistanceData2.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.DailyDistanceDataDetailed.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.DailyDistanceDataDetailed.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.DailyDistanceDataElevation.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.DailyDistanceDataElevation.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.DailyDistanceDataSwimming.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.DailyDistanceDataSwimming.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.DailyHeartRateData.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.DailyHeartRateData.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.DailyMetData.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.DailyMetData.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.DailyOxygenData.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.DailyOxygenData.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.DailyScores.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.DailyScores.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.DailyStrainData.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.DailyStrainData.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.DailyStressData.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.DailyStressData.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.DailyTagData.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.DailyTagData.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.DataEnrichmentEfficiencyContributors.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.DataEnrichmentEfficiencyContributors.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.DataEnrichmentRcrsContributors.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.DataEnrichmentRcrsContributors.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.DataEnrichmentStrainContributors.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.DataEnrichmentStrainContributors.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.DataEnrichmentTrimpContributors.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.DataEnrichmentTrimpContributors.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.DistanceDataDetailed2.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.DistanceDataDetailed2.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.DistanceDataSummary2.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.DistanceDataSummary2.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.DistanceDataSummaryElevation.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.DistanceDataSummaryElevation.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.DistanceDataSummarySwimming.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.DistanceDataSummarySwimming.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.HealthObservationDataValue.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.HealthObservationDataValue.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.HeartDataHeartRateData.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.HeartDataHeartRateData.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.HeartRateDataDetailed2.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.HeartRateDataDetailed2.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.HeartRateDataSummary2.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.HeartRateDataSummary2.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.MenstruationMenstruationData.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.MenstruationMenstruationData.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.NutritionSummary2.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.NutritionSummary2.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.NutritionSummaryMacros.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.NutritionSummaryMacros.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.NutritionSummaryMicros.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.NutritionSummaryMicros.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.ObservationComponentValue.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.ObservationComponentValue.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.PlannedWorkoutAthleteMetrics.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.PlannedWorkoutAthleteMetrics.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.PlannedWorkoutDetails2.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.PlannedWorkoutDetails2.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.PlannedWorkoutDetailsMetadata2.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.PlannedWorkoutDetailsMetadata2.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.PlannedWorkoutSummaryWorkout.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.PlannedWorkoutSummaryWorkout.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.PlannedWorkoutWorkout.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.PlannedWorkoutWorkout.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.RespirationDataBreathsData.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.RespirationDataBreathsData.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.RespirationDataOxygenSaturationData.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.RespirationDataOxygenSaturationData.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.RespirationDataSnoringData.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.RespirationDataSnoringData.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.SleepDataEnrichment2.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.SleepDataEnrichment2.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.SleepDataEnrichmentReadinessContributors.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.SleepDataEnrichmentReadinessContributors.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.SleepDataEnrichmentRespiratoryScoreV2Contributors.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.SleepDataEnrichmentRespiratoryScoreV2Contributors.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.SleepDataEnrichmentSleepContributors.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.SleepDataEnrichmentSleepContributors.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.SleepDataEnrichmentSleepScoreV2Contributors.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.SleepDataEnrichmentSleepScoreV2Contributors.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.SleepDeviceData.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.SleepDeviceData.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.SleepDurationsDataAsleep.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.SleepDurationsDataAsleep.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.SleepDurationsDataAwake.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.SleepDurationsDataAwake.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.SleepDurationsDataOther.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.SleepDurationsDataOther.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.SleepHeartRateData.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.SleepHeartRateData.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.SleepReadinessData.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.SleepReadinessData.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.SleepRespirationData.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.SleepRespirationData.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.SleepScores2.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.SleepScores2.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.SleepSleepDurationsData.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.SleepSleepDurationsData.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.SleepTemperatureData2.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.SleepTemperatureData2.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.StrengthExerciseModifiers2.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.StrengthExerciseModifiers2.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.UserReauthEventOldUser.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.UserReauthEventOldUser.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.WorkoutStepStrength.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.WorkoutStepStrength.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.WorkoutStepSwimming.Json.g.cs delete mode 100644 src/libs/Terra/Generated/Terra.Models.WorkoutStepSwimming.g.cs diff --git a/src/libs/Terra/Generated/Terra.JsonSerializerContext.g.cs b/src/libs/Terra/Generated/Terra.JsonSerializerContext.g.cs index 2f9257b7..29280d57 100644 --- a/src/libs/Terra/Generated/Terra.JsonSerializerContext.g.cs +++ b/src/libs/Terra/Generated/Terra.JsonSerializerContext.g.cs @@ -55,7 +55,7 @@ namespace Terra [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.OxygenData))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.PolylineMapData))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.PositionData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.ActivityStrengthData2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.ActivityStrengthData))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.PowerData))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.StrainData))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.TSSData))] @@ -73,8 +73,8 @@ namespace Terra [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.TemperatureData))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.GlucoseData))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.Daily))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.DailyDataEnrichment2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.DailyDistanceData2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.DailyDataEnrichment))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.DailyDistanceData))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.DailyMetadata))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.ScoresData))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.StressData))] @@ -91,15 +91,15 @@ namespace Terra [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.Meal))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.NutritionMetadata))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.NutritionSummary2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.NutritionSummary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.Sleep))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.SleepDataEnrichment2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.SleepDataEnrichment))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.SleepMetadata))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.ReadinessData))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.RespirationData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.SleepScores2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.SleepScores))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.SleepDurationsData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.SleepTemperatureData2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.SleepTemperatureData))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.AuthSuccessEvent))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.AuthErrorEvent))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Terra.PermissionChangeEvent))] diff --git a/src/libs/Terra/Generated/Terra.JsonSerializerContextTypes.g.cs b/src/libs/Terra/Generated/Terra.JsonSerializerContextTypes.g.cs index d83a9c7f..29d8e6bf 100644 --- a/src/libs/Terra/Generated/Terra.JsonSerializerContextTypes.g.cs +++ b/src/libs/Terra/Generated/Terra.JsonSerializerContextTypes.g.cs @@ -181,7 +181,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Terra.ActivityStrengthData2? Type37 { get; set; } + public global::Terra.ActivityStrengthData? Type37 { get; set; } /// /// /// @@ -253,11 +253,11 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Terra.DailyDataEnrichment2? Type55 { get; set; } + public global::Terra.DailyDataEnrichment? Type55 { get; set; } /// /// /// - public global::Terra.DailyDistanceData2? Type56 { get; set; } + public global::Terra.DailyDistanceData? Type56 { get; set; } /// /// /// @@ -325,7 +325,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Terra.NutritionSummary2? Type73 { get; set; } + public global::Terra.NutritionSummary? Type73 { get; set; } /// /// /// @@ -333,7 +333,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Terra.SleepDataEnrichment2? Type75 { get; set; } + public global::Terra.SleepDataEnrichment? Type75 { get; set; } /// /// /// @@ -349,7 +349,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Terra.SleepScores2? Type79 { get; set; } + public global::Terra.SleepScores? Type79 { get; set; } /// /// /// @@ -357,7 +357,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Terra.SleepTemperatureData2? Type81 { get; set; } + public global::Terra.SleepTemperatureData? Type81 { get; set; } /// /// /// diff --git a/src/libs/Terra/Generated/Terra.Models.Activity.g.cs b/src/libs/Terra/Generated/Terra.Models.Activity.g.cs index 05b714b1..a61e7185 100644 --- a/src/libs/Terra/Generated/Terra.Models.Activity.g.cs +++ b/src/libs/Terra/Generated/Terra.Models.Activity.g.cs @@ -105,7 +105,7 @@ public sealed partial class Activity /// Object containing the sets, reps and load performed during a strength workout. Absent when the activity carries no strength content, or when the source recorded no usable set breakdown. /// [global::System.Text.Json.Serialization.JsonPropertyName("strength_data")] - public global::Terra.ActivityStrengthData2? StrengthData { get; set; } + public global::Terra.ActivityStrengthData? StrengthData { get; set; } /// /// Object containing information on the power generated by the user during the workout. @@ -218,7 +218,7 @@ public Activity( global::Terra.OxygenData? oxygenData, global::Terra.PolylineMapData? polylineMapData, global::Terra.PositionData? positionData, - global::Terra.ActivityStrengthData2? strengthData, + global::Terra.ActivityStrengthData? strengthData, global::Terra.PowerData? powerData, global::Terra.StrainData? strainData, global::Terra.TSSData? tssData, diff --git a/src/libs/Terra/Generated/Terra.Models.ActivityActiveDurationsData.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.ActivityActiveDurationsData.Json.g.cs deleted file mode 100644 index 7a825df0..00000000 --- a/src/libs/Terra/Generated/Terra.Models.ActivityActiveDurationsData.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class ActivityActiveDurationsData - { - /// - /// 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.ActivityActiveDurationsData? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.ActivityActiveDurationsData), - jsonSerializerContext) as global::Terra.ActivityActiveDurationsData; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.ActivityActiveDurationsData? 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.ActivityActiveDurationsData? 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.ActivityActiveDurationsData), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.ActivityActiveDurationsData; - } - - /// - /// 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.ActivityActiveDurationsData.g.cs b/src/libs/Terra/Generated/Terra.Models.ActivityActiveDurationsData.g.cs deleted file mode 100644 index 148371ca..00000000 --- a/src/libs/Terra/Generated/Terra.Models.ActivityActiveDurationsData.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Number of minutes spent at various intensities during the workout, as reported by the Fitness Data provider. - /// - public sealed partial class ActivityActiveDurationsData - { - - /// - /// 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.ActivityCaloriesData.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.ActivityCaloriesData.Json.g.cs deleted file mode 100644 index 3c581049..00000000 --- a/src/libs/Terra/Generated/Terra.Models.ActivityCaloriesData.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class ActivityCaloriesData - { - /// - /// 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.ActivityCaloriesData? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.ActivityCaloriesData), - jsonSerializerContext) as global::Terra.ActivityCaloriesData; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.ActivityCaloriesData? 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.ActivityCaloriesData? 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.ActivityCaloriesData), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.ActivityCaloriesData; - } - - /// - /// 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.ActivityCaloriesData.g.cs b/src/libs/Terra/Generated/Terra.Models.ActivityCaloriesData.g.cs deleted file mode 100644 index 4cb31dd5..00000000 --- a/src/libs/Terra/Generated/Terra.Models.ActivityCaloriesData.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Object containing calorie-related information for the user during the specific workout. - /// - public sealed partial class ActivityCaloriesData - { - - /// - /// 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.ActivityDataEnrichment.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.ActivityDataEnrichment.Json.g.cs deleted file mode 100644 index b41c0b5a..00000000 --- a/src/libs/Terra/Generated/Terra.Models.ActivityDataEnrichment.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class ActivityDataEnrichment - { - /// - /// 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.ActivityDataEnrichment? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.ActivityDataEnrichment), - jsonSerializerContext) as global::Terra.ActivityDataEnrichment; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.ActivityDataEnrichment? 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.ActivityDataEnrichment? 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.ActivityDataEnrichment), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.ActivityDataEnrichment; - } - - /// - /// 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.ActivityDataEnrichment.g.cs b/src/libs/Terra/Generated/Terra.Models.ActivityDataEnrichment.g.cs deleted file mode 100644 index 2a77cf45..00000000 --- a/src/libs/Terra/Generated/Terra.Models.ActivityDataEnrichment.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Object containing Terra Scores. - /// - public sealed partial class ActivityDataEnrichment - { - - /// - /// 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.ActivityDeviceData.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.ActivityDeviceData.Json.g.cs deleted file mode 100644 index 9dd3b765..00000000 --- a/src/libs/Terra/Generated/Terra.Models.ActivityDeviceData.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class ActivityDeviceData - { - /// - /// 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.ActivityDeviceData? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.ActivityDeviceData), - jsonSerializerContext) as global::Terra.ActivityDeviceData; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.ActivityDeviceData? 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.ActivityDeviceData? 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.ActivityDeviceData), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.ActivityDeviceData; - } - - /// - /// 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.ActivityDeviceData.g.cs b/src/libs/Terra/Generated/Terra.Models.ActivityDeviceData.g.cs deleted file mode 100644 index 4f1e24bf..00000000 --- a/src/libs/Terra/Generated/Terra.Models.ActivityDeviceData.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Object containing information on the device which recorded the specific workout. - /// - public sealed partial class ActivityDeviceData - { - - /// - /// 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.ActivityDistanceData.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.ActivityDistanceData.Json.g.cs deleted file mode 100644 index 30ebc6d0..00000000 --- a/src/libs/Terra/Generated/Terra.Models.ActivityDistanceData.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class ActivityDistanceData - { - /// - /// 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.ActivityDistanceData? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.ActivityDistanceData), - jsonSerializerContext) as global::Terra.ActivityDistanceData; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.ActivityDistanceData? 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.ActivityDistanceData? 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.ActivityDistanceData), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.ActivityDistanceData; - } - - /// - /// 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.ActivityDistanceData.g.cs b/src/libs/Terra/Generated/Terra.Models.ActivityDistanceData.g.cs deleted file mode 100644 index d46197aa..00000000 --- a/src/libs/Terra/Generated/Terra.Models.ActivityDistanceData.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Object containing information related to distance covered during the associated workout. - /// - public sealed partial class ActivityDistanceData - { - - /// - /// 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.ActivityEnergyData.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.ActivityEnergyData.Json.g.cs deleted file mode 100644 index 79334fdc..00000000 --- a/src/libs/Terra/Generated/Terra.Models.ActivityEnergyData.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class ActivityEnergyData - { - /// - /// 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.ActivityEnergyData? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.ActivityEnergyData), - jsonSerializerContext) as global::Terra.ActivityEnergyData; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.ActivityEnergyData? 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.ActivityEnergyData? 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.ActivityEnergyData), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.ActivityEnergyData; - } - - /// - /// 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.ActivityEnergyData.g.cs b/src/libs/Terra/Generated/Terra.Models.ActivityEnergyData.g.cs deleted file mode 100644 index 6460ebf2..00000000 --- a/src/libs/Terra/Generated/Terra.Models.ActivityEnergyData.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Object containing information on the energy expended by the user during the workout. - /// - public sealed partial class ActivityEnergyData - { - - /// - /// 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.ActivityHeartRateData.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.ActivityHeartRateData.Json.g.cs deleted file mode 100644 index 96b29725..00000000 --- a/src/libs/Terra/Generated/Terra.Models.ActivityHeartRateData.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class ActivityHeartRateData - { - /// - /// 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.ActivityHeartRateData? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.ActivityHeartRateData), - jsonSerializerContext) as global::Terra.ActivityHeartRateData; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.ActivityHeartRateData? 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.ActivityHeartRateData? 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.ActivityHeartRateData), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.ActivityHeartRateData; - } - - /// - /// 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.ActivityHeartRateData.g.cs b/src/libs/Terra/Generated/Terra.Models.ActivityHeartRateData.g.cs deleted file mode 100644 index 59879635..00000000 --- a/src/libs/Terra/Generated/Terra.Models.ActivityHeartRateData.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Object containing heartrate-related information for the workout. - /// - public sealed partial class ActivityHeartRateData - { - - /// - /// 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.ActivityLapData.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.ActivityLapData.Json.g.cs deleted file mode 100644 index 67f98a01..00000000 --- a/src/libs/Terra/Generated/Terra.Models.ActivityLapData.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class ActivityLapData - { - /// - /// 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.ActivityLapData? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.ActivityLapData), - jsonSerializerContext) as global::Terra.ActivityLapData; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.ActivityLapData? 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.ActivityLapData? 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.ActivityLapData), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.ActivityLapData; - } - - /// - /// 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.ActivityLapData.g.cs b/src/libs/Terra/Generated/Terra.Models.ActivityLapData.g.cs deleted file mode 100644 index 17f4c910..00000000 --- a/src/libs/Terra/Generated/Terra.Models.ActivityLapData.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Object containing information on data for each lap performed by the user - mostly relates to track & field running activities, and swimming activities. - /// - public sealed partial class ActivityLapData - { - - /// - /// 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.ActivityMetData.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.ActivityMetData.Json.g.cs deleted file mode 100644 index a34154c5..00000000 --- a/src/libs/Terra/Generated/Terra.Models.ActivityMetData.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class ActivityMetData - { - /// - /// 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.ActivityMetData? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.ActivityMetData), - jsonSerializerContext) as global::Terra.ActivityMetData; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.ActivityMetData? 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.ActivityMetData? 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.ActivityMetData), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.ActivityMetData; - } - - /// - /// 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.ActivityMetData.g.cs b/src/libs/Terra/Generated/Terra.Models.ActivityMetData.g.cs deleted file mode 100644 index 86113604..00000000 --- a/src/libs/Terra/Generated/Terra.Models.ActivityMetData.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Object containing information on the Metabolic Equivalent of Task for the workout. - /// - public sealed partial class ActivityMetData - { - - /// - /// 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.ActivityMovementData.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.ActivityMovementData.Json.g.cs deleted file mode 100644 index cdb4a6ee..00000000 --- a/src/libs/Terra/Generated/Terra.Models.ActivityMovementData.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class ActivityMovementData - { - /// - /// 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.ActivityMovementData? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.ActivityMovementData), - jsonSerializerContext) as global::Terra.ActivityMovementData; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.ActivityMovementData? 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.ActivityMovementData? 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.ActivityMovementData), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.ActivityMovementData; - } - - /// - /// 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.ActivityMovementData.g.cs b/src/libs/Terra/Generated/Terra.Models.ActivityMovementData.g.cs deleted file mode 100644 index f199ca34..00000000 --- a/src/libs/Terra/Generated/Terra.Models.ActivityMovementData.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Object containing information on the user's movement throughout the workout. - /// - public sealed partial class ActivityMovementData - { - - /// - /// 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.ActivityOxygenData.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.ActivityOxygenData.Json.g.cs deleted file mode 100644 index 12816b71..00000000 --- a/src/libs/Terra/Generated/Terra.Models.ActivityOxygenData.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class ActivityOxygenData - { - /// - /// 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.ActivityOxygenData? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.ActivityOxygenData), - jsonSerializerContext) as global::Terra.ActivityOxygenData; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.ActivityOxygenData? 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.ActivityOxygenData? 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.ActivityOxygenData), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.ActivityOxygenData; - } - - /// - /// 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.ActivityOxygenData.g.cs b/src/libs/Terra/Generated/Terra.Models.ActivityOxygenData.g.cs deleted file mode 100644 index 55bc224a..00000000 --- a/src/libs/Terra/Generated/Terra.Models.ActivityOxygenData.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Object containing information on oxygen-related metrics for the workout. - /// - public sealed partial class ActivityOxygenData - { - - /// - /// 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.ActivityPolylineMapData.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.ActivityPolylineMapData.Json.g.cs deleted file mode 100644 index ab350188..00000000 --- a/src/libs/Terra/Generated/Terra.Models.ActivityPolylineMapData.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class ActivityPolylineMapData - { - /// - /// 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.ActivityPolylineMapData? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.ActivityPolylineMapData), - jsonSerializerContext) as global::Terra.ActivityPolylineMapData; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.ActivityPolylineMapData? 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.ActivityPolylineMapData? 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.ActivityPolylineMapData), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.ActivityPolylineMapData; - } - - /// - /// 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.ActivityPolylineMapData.g.cs b/src/libs/Terra/Generated/Terra.Models.ActivityPolylineMapData.g.cs deleted file mode 100644 index 1299921e..00000000 --- a/src/libs/Terra/Generated/Terra.Models.ActivityPolylineMapData.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Object containing polyline-representation map data, plotting the user's trajectory throughout the workout. - /// - public sealed partial class ActivityPolylineMapData - { - - /// - /// 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.ActivityPositionData.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.ActivityPositionData.Json.g.cs deleted file mode 100644 index 9c5d3709..00000000 --- a/src/libs/Terra/Generated/Terra.Models.ActivityPositionData.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class ActivityPositionData - { - /// - /// 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.ActivityPositionData? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.ActivityPositionData), - jsonSerializerContext) as global::Terra.ActivityPositionData; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.ActivityPositionData? 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.ActivityPositionData? 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.ActivityPositionData), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.ActivityPositionData; - } - - /// - /// 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.ActivityPositionData.g.cs b/src/libs/Terra/Generated/Terra.Models.ActivityPositionData.g.cs deleted file mode 100644 index 3f844123..00000000 --- a/src/libs/Terra/Generated/Terra.Models.ActivityPositionData.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Object containing information on the user's position throughout the workout. - /// - public sealed partial class ActivityPositionData - { - - /// - /// 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.ActivityPowerData.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.ActivityPowerData.Json.g.cs deleted file mode 100644 index 4d15f0be..00000000 --- a/src/libs/Terra/Generated/Terra.Models.ActivityPowerData.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class ActivityPowerData - { - /// - /// 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.ActivityPowerData? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.ActivityPowerData), - jsonSerializerContext) as global::Terra.ActivityPowerData; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.ActivityPowerData? 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.ActivityPowerData? 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.ActivityPowerData), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.ActivityPowerData; - } - - /// - /// 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.ActivityPowerData.g.cs b/src/libs/Terra/Generated/Terra.Models.ActivityPowerData.g.cs deleted file mode 100644 index 51726135..00000000 --- a/src/libs/Terra/Generated/Terra.Models.ActivityPowerData.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Object containing information on the power generated by the user during the workout. - /// - public sealed partial class ActivityPowerData - { - - /// - /// 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.ActivityStrainData.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.ActivityStrainData.Json.g.cs deleted file mode 100644 index ea94cb2d..00000000 --- a/src/libs/Terra/Generated/Terra.Models.ActivityStrainData.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class ActivityStrainData - { - /// - /// 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.ActivityStrainData? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.ActivityStrainData), - jsonSerializerContext) as global::Terra.ActivityStrainData; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.ActivityStrainData? 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.ActivityStrainData? 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.ActivityStrainData), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.ActivityStrainData; - } - - /// - /// 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.ActivityStrainData.g.cs b/src/libs/Terra/Generated/Terra.Models.ActivityStrainData.g.cs deleted file mode 100644 index e5c573ed..00000000 --- a/src/libs/Terra/Generated/Terra.Models.ActivityStrainData.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Object containing information on the cardiovascular strain imposed on the user during the workout. - /// - public sealed partial class ActivityStrainData - { - - /// - /// 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.ActivityStrengthData.g.cs b/src/libs/Terra/Generated/Terra.Models.ActivityStrengthData.g.cs index cd889c41..aede4d3d 100644 --- a/src/libs/Terra/Generated/Terra.Models.ActivityStrengthData.g.cs +++ b/src/libs/Terra/Generated/Terra.Models.ActivityStrengthData.g.cs @@ -4,10 +4,23 @@ namespace Terra { /// - /// Object containing the sets, reps and load performed during a strength workout. Absent when the activity carries no strength content, or when the source recorded no usable set breakdown. + /// /// public sealed partial class ActivityStrengthData { + /// + /// The user's bodyweight at the time of the workout, when the source records it. Needed to value bodyweight-based sets, and frequently absent.
+ /// Example: 78.2 + ///
+ /// 78.2 + [global::System.Text.Json.Serialization.JsonPropertyName("body_weight_kg")] + public double? BodyWeightKg { get; set; } + + /// + /// The exercises performed, in the order they were started. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("exercises")] + public global::System.Collections.Generic.IList? Exercises { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -15,5 +28,33 @@ public sealed partial class ActivityStrengthData [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. + /// + /// + /// The user's bodyweight at the time of the workout, when the source records it. Needed to value bodyweight-based sets, and frequently absent.
+ /// Example: 78.2 + /// + /// + /// The exercises performed, in the order they were started. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ActivityStrengthData( + double? bodyWeightKg, + global::System.Collections.Generic.IList? exercises) + { + this.BodyWeightKg = bodyWeightKg; + this.Exercises = exercises; + } + + /// + /// Initializes a new instance of the class. + /// + public ActivityStrengthData() + { + } + } } \ No newline at end of file diff --git a/src/libs/Terra/Generated/Terra.Models.ActivityStrengthData2.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.ActivityStrengthData2.Json.g.cs deleted file mode 100644 index 5cd2c8d0..00000000 --- a/src/libs/Terra/Generated/Terra.Models.ActivityStrengthData2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class ActivityStrengthData2 - { - /// - /// 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.ActivityStrengthData2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.ActivityStrengthData2), - jsonSerializerContext) as global::Terra.ActivityStrengthData2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.ActivityStrengthData2? 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.ActivityStrengthData2? 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.ActivityStrengthData2), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.ActivityStrengthData2; - } - - /// - /// 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.ActivityStrengthData2.g.cs b/src/libs/Terra/Generated/Terra.Models.ActivityStrengthData2.g.cs deleted file mode 100644 index 5adbdb60..00000000 --- a/src/libs/Terra/Generated/Terra.Models.ActivityStrengthData2.g.cs +++ /dev/null @@ -1,60 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// - /// - public sealed partial class ActivityStrengthData2 - { - /// - /// The user's bodyweight at the time of the workout, when the source records it. Needed to value bodyweight-based sets, and frequently absent.
- /// Example: 78.2 - ///
- /// 78.2 - [global::System.Text.Json.Serialization.JsonPropertyName("body_weight_kg")] - public double? BodyWeightKg { get; set; } - - /// - /// The exercises performed, in the order they were started. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("exercises")] - public global::System.Collections.Generic.IList? Exercises { 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. - /// - /// - /// The user's bodyweight at the time of the workout, when the source records it. Needed to value bodyweight-based sets, and frequently absent.
- /// Example: 78.2 - /// - /// - /// The exercises performed, in the order they were started. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public ActivityStrengthData2( - double? bodyWeightKg, - global::System.Collections.Generic.IList? exercises) - { - this.BodyWeightKg = bodyWeightKg; - this.Exercises = exercises; - } - - /// - /// Initializes a new instance of the class. - /// - public ActivityStrengthData2() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Terra/Generated/Terra.Models.ActivityTssData.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.ActivityTssData.Json.g.cs deleted file mode 100644 index 2b06b9db..00000000 --- a/src/libs/Terra/Generated/Terra.Models.ActivityTssData.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class ActivityTssData - { - /// - /// 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.ActivityTssData? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.ActivityTssData), - jsonSerializerContext) as global::Terra.ActivityTssData; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.ActivityTssData? 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.ActivityTssData? 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.ActivityTssData), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.ActivityTssData; - } - - /// - /// 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.ActivityTssData.g.cs b/src/libs/Terra/Generated/Terra.Models.ActivityTssData.g.cs deleted file mode 100644 index 2788f07f..00000000 --- a/src/libs/Terra/Generated/Terra.Models.ActivityTssData.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Object containing information on the stress put on the user's body from a workout. - /// - public sealed partial class ActivityTssData - { - - /// - /// 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.ActivityWorkData.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.ActivityWorkData.Json.g.cs deleted file mode 100644 index 45492954..00000000 --- a/src/libs/Terra/Generated/Terra.Models.ActivityWorkData.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class ActivityWorkData - { - /// - /// 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.ActivityWorkData? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.ActivityWorkData), - jsonSerializerContext) as global::Terra.ActivityWorkData; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.ActivityWorkData? 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.ActivityWorkData? 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.ActivityWorkData), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.ActivityWorkData; - } - - /// - /// 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.ActivityWorkData.g.cs b/src/libs/Terra/Generated/Terra.Models.ActivityWorkData.g.cs deleted file mode 100644 index 6285862c..00000000 --- a/src/libs/Terra/Generated/Terra.Models.ActivityWorkData.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Object containing information on the work output of the user during the workout. - /// - public sealed partial class ActivityWorkData - { - - /// - /// 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.BodyBloodPressureData.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.BodyBloodPressureData.Json.g.cs deleted file mode 100644 index 5ab29981..00000000 --- a/src/libs/Terra/Generated/Terra.Models.BodyBloodPressureData.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class BodyBloodPressureData - { - /// - /// 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.BodyBloodPressureData? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.BodyBloodPressureData), - jsonSerializerContext) as global::Terra.BodyBloodPressureData; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.BodyBloodPressureData? 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.BodyBloodPressureData? 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.BodyBloodPressureData), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.BodyBloodPressureData; - } - - /// - /// 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.BodyBloodPressureData.g.cs b/src/libs/Terra/Generated/Terra.Models.BodyBloodPressureData.g.cs deleted file mode 100644 index a61dd6f6..00000000 --- a/src/libs/Terra/Generated/Terra.Models.BodyBloodPressureData.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Object containing information on user's Blood Pressure. - /// - public sealed partial class BodyBloodPressureData - { - - /// - /// 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.BodyDeviceData.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.BodyDeviceData.Json.g.cs deleted file mode 100644 index 93cb19b4..00000000 --- a/src/libs/Terra/Generated/Terra.Models.BodyDeviceData.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class BodyDeviceData - { - /// - /// 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.BodyDeviceData? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.BodyDeviceData), - jsonSerializerContext) as global::Terra.BodyDeviceData; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.BodyDeviceData? 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.BodyDeviceData? 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.BodyDeviceData), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.BodyDeviceData; - } - - /// - /// 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.BodyDeviceData.g.cs b/src/libs/Terra/Generated/Terra.Models.BodyDeviceData.g.cs deleted file mode 100644 index 03c41017..00000000 --- a/src/libs/Terra/Generated/Terra.Models.BodyDeviceData.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Object containing information on the device which recorded data for the payload. - /// - public sealed partial class BodyDeviceData - { - - /// - /// 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.BodyGlucoseData.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.BodyGlucoseData.Json.g.cs deleted file mode 100644 index f3e1969b..00000000 --- a/src/libs/Terra/Generated/Terra.Models.BodyGlucoseData.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class BodyGlucoseData - { - /// - /// 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.BodyGlucoseData? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.BodyGlucoseData), - jsonSerializerContext) as global::Terra.BodyGlucoseData; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.BodyGlucoseData? 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.BodyGlucoseData? 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.BodyGlucoseData), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.BodyGlucoseData; - } - - /// - /// 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.BodyGlucoseData.g.cs b/src/libs/Terra/Generated/Terra.Models.BodyGlucoseData.g.cs deleted file mode 100644 index 8f7812ce..00000000 --- a/src/libs/Terra/Generated/Terra.Models.BodyGlucoseData.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Object containing information on user's blood glucose for the day. - /// - public sealed partial class BodyGlucoseData - { - - /// - /// 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.BodyHeartData.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.BodyHeartData.Json.g.cs deleted file mode 100644 index 693a2810..00000000 --- a/src/libs/Terra/Generated/Terra.Models.BodyHeartData.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class BodyHeartData - { - /// - /// 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.BodyHeartData? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.BodyHeartData), - jsonSerializerContext) as global::Terra.BodyHeartData; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.BodyHeartData? 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.BodyHeartData? 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.BodyHeartData), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.BodyHeartData; - } - - /// - /// 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.BodyHeartData.g.cs b/src/libs/Terra/Generated/Terra.Models.BodyHeartData.g.cs deleted file mode 100644 index b83dcf31..00000000 --- a/src/libs/Terra/Generated/Terra.Models.BodyHeartData.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Object containing information on user's heart metrics. - /// - public sealed partial class BodyHeartData - { - - /// - /// 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.BodyHydrationData.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.BodyHydrationData.Json.g.cs deleted file mode 100644 index 561042f2..00000000 --- a/src/libs/Terra/Generated/Terra.Models.BodyHydrationData.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class BodyHydrationData - { - /// - /// 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.BodyHydrationData? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.BodyHydrationData), - jsonSerializerContext) as global::Terra.BodyHydrationData; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.BodyHydrationData? 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.BodyHydrationData? 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.BodyHydrationData), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.BodyHydrationData; - } - - /// - /// 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.BodyHydrationData.g.cs b/src/libs/Terra/Generated/Terra.Models.BodyHydrationData.g.cs deleted file mode 100644 index a82300e7..00000000 --- a/src/libs/Terra/Generated/Terra.Models.BodyHydrationData.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Object containing information on user's hydration (both internal & consumption of water) for the day. - /// - public sealed partial class BodyHydrationData - { - - /// - /// 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.BodyKetoneData.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.BodyKetoneData.Json.g.cs deleted file mode 100644 index 23824722..00000000 --- a/src/libs/Terra/Generated/Terra.Models.BodyKetoneData.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class BodyKetoneData - { - /// - /// 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.BodyKetoneData? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.BodyKetoneData), - jsonSerializerContext) as global::Terra.BodyKetoneData; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.BodyKetoneData? 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.BodyKetoneData? 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.BodyKetoneData), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.BodyKetoneData; - } - - /// - /// 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.BodyKetoneData.g.cs b/src/libs/Terra/Generated/Terra.Models.BodyKetoneData.g.cs deleted file mode 100644 index 8f893671..00000000 --- a/src/libs/Terra/Generated/Terra.Models.BodyKetoneData.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Object containing information on user's ketone data for the day. - /// - public sealed partial class BodyKetoneData - { - - /// - /// 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.BodyMeasurementsData.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.BodyMeasurementsData.Json.g.cs deleted file mode 100644 index 935dc7c5..00000000 --- a/src/libs/Terra/Generated/Terra.Models.BodyMeasurementsData.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class BodyMeasurementsData - { - /// - /// 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.BodyMeasurementsData? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.BodyMeasurementsData), - jsonSerializerContext) as global::Terra.BodyMeasurementsData; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.BodyMeasurementsData? 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.BodyMeasurementsData? 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.BodyMeasurementsData), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.BodyMeasurementsData; - } - - /// - /// 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.BodyMeasurementsData.g.cs b/src/libs/Terra/Generated/Terra.Models.BodyMeasurementsData.g.cs deleted file mode 100644 index ea1d2e33..00000000 --- a/src/libs/Terra/Generated/Terra.Models.BodyMeasurementsData.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Object containing information on body measurements for the day. - /// - public sealed partial class BodyMeasurementsData - { - - /// - /// 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.BodyOxygenData.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.BodyOxygenData.Json.g.cs deleted file mode 100644 index 76983c7d..00000000 --- a/src/libs/Terra/Generated/Terra.Models.BodyOxygenData.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class BodyOxygenData - { - /// - /// 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.BodyOxygenData? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.BodyOxygenData), - jsonSerializerContext) as global::Terra.BodyOxygenData; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.BodyOxygenData? 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.BodyOxygenData? 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.BodyOxygenData), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.BodyOxygenData; - } - - /// - /// 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.BodyOxygenData.g.cs b/src/libs/Terra/Generated/Terra.Models.BodyOxygenData.g.cs deleted file mode 100644 index a15a7168..00000000 --- a/src/libs/Terra/Generated/Terra.Models.BodyOxygenData.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Object containing information on user's oxygen-related data. - /// - public sealed partial class BodyOxygenData - { - - /// - /// 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.BodyTemperatureData.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.BodyTemperatureData.Json.g.cs deleted file mode 100644 index 4349eaaa..00000000 --- a/src/libs/Terra/Generated/Terra.Models.BodyTemperatureData.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class BodyTemperatureData - { - /// - /// 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.BodyTemperatureData? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.BodyTemperatureData), - jsonSerializerContext) as global::Terra.BodyTemperatureData; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.BodyTemperatureData? 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.BodyTemperatureData? 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.BodyTemperatureData), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.BodyTemperatureData; - } - - /// - /// 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.BodyTemperatureData.g.cs b/src/libs/Terra/Generated/Terra.Models.BodyTemperatureData.g.cs deleted file mode 100644 index 4444fc03..00000000 --- a/src/libs/Terra/Generated/Terra.Models.BodyTemperatureData.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Object containing temperature information (core, skin, ambient) during the day. - /// - public sealed partial class BodyTemperatureData - { - - /// - /// 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.Daily.g.cs b/src/libs/Terra/Generated/Terra.Models.Daily.g.cs index 146842ba..411d5531 100644 --- a/src/libs/Terra/Generated/Terra.Models.Daily.g.cs +++ b/src/libs/Terra/Generated/Terra.Models.Daily.g.cs @@ -24,7 +24,7 @@ public sealed partial class Daily /// Object containing additional enrichment data for the day. ///
[global::System.Text.Json.Serialization.JsonPropertyName("data_enrichment")] - public global::Terra.DailyDataEnrichment2? DataEnrichment { get; set; } + public global::Terra.DailyDataEnrichment? DataEnrichment { get; set; } /// /// Object containing information on the device which recorded data for the day. @@ -36,7 +36,7 @@ public sealed partial class Daily /// Object containing information related to distance covered during the associated day. /// [global::System.Text.Json.Serialization.JsonPropertyName("distance_data")] - public global::Terra.DailyDistanceData2? DistanceData { get; set; } + public global::Terra.DailyDistanceData? DistanceData { get; set; } /// /// Object containing heartrate-related information for the day. @@ -140,9 +140,9 @@ public Daily( global::Terra.DailyMetadata metadata, global::Terra.ActiveDurationsData? activeDurationsData, global::Terra.CaloriesData? caloriesData, - global::Terra.DailyDataEnrichment2? dataEnrichment, + global::Terra.DailyDataEnrichment? dataEnrichment, global::Terra.DeviceData? deviceData, - global::Terra.DailyDistanceData2? distanceData, + global::Terra.DailyDistanceData? distanceData, global::Terra.HeartRateData? heartRateData, global::Terra.METData? metData, global::Terra.OxygenData? oxygenData, diff --git a/src/libs/Terra/Generated/Terra.Models.DailyActiveDurationsData.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.DailyActiveDurationsData.Json.g.cs deleted file mode 100644 index 1eaa1f49..00000000 --- a/src/libs/Terra/Generated/Terra.Models.DailyActiveDurationsData.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class DailyActiveDurationsData - { - /// - /// 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.DailyActiveDurationsData? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.DailyActiveDurationsData), - jsonSerializerContext) as global::Terra.DailyActiveDurationsData; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.DailyActiveDurationsData? 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.DailyActiveDurationsData? 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.DailyActiveDurationsData), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.DailyActiveDurationsData; - } - - /// - /// 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.DailyActiveDurationsData.g.cs b/src/libs/Terra/Generated/Terra.Models.DailyActiveDurationsData.g.cs deleted file mode 100644 index dc6841d5..00000000 --- a/src/libs/Terra/Generated/Terra.Models.DailyActiveDurationsData.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Object containing information related to the time spent in different activity intensities during over the day. - /// - public sealed partial class DailyActiveDurationsData - { - - /// - /// 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.DailyCaloriesData.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.DailyCaloriesData.Json.g.cs deleted file mode 100644 index 436aaa80..00000000 --- a/src/libs/Terra/Generated/Terra.Models.DailyCaloriesData.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class DailyCaloriesData - { - /// - /// 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.DailyCaloriesData? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.DailyCaloriesData), - jsonSerializerContext) as global::Terra.DailyCaloriesData; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.DailyCaloriesData? 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.DailyCaloriesData? 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.DailyCaloriesData), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.DailyCaloriesData; - } - - /// - /// 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.DailyCaloriesData.g.cs b/src/libs/Terra/Generated/Terra.Models.DailyCaloriesData.g.cs deleted file mode 100644 index 994c8e71..00000000 --- a/src/libs/Terra/Generated/Terra.Models.DailyCaloriesData.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Object containing calorie-related information for the user during the specific day. - /// - public sealed partial class DailyCaloriesData - { - - /// - /// 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.DailyDataEnrichment.g.cs b/src/libs/Terra/Generated/Terra.Models.DailyDataEnrichment.g.cs index ec277edc..3e3f375f 100644 --- a/src/libs/Terra/Generated/Terra.Models.DailyDataEnrichment.g.cs +++ b/src/libs/Terra/Generated/Terra.Models.DailyDataEnrichment.g.cs @@ -4,10 +4,101 @@ namespace Terra { /// - /// Object containing additional enrichment data for the day. + /// /// public sealed partial class DailyDataEnrichment { + /// + /// Total stress score for the day.
+ /// Example: 45 + ///
+ /// 45 + [global::System.Text.Json.Serialization.JsonPropertyName("total_stress_score")] + public double? TotalStressScore { get; set; } + + /// + /// Map of contributing factor name to its weighted contribution to the stress score. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("stress_contributors")] + public global::Terra.RecordFloat? StressContributors { get; set; } + + /// + /// Respiratory health score for the day.
+ /// Example: 88 + ///
+ /// 88 + [global::System.Text.Json.Serialization.JsonPropertyName("respiratory_score")] + public double? RespiratoryScore { get; set; } + + /// + /// Map of contributing factor name to its weighted contribution to the respiratory score. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("respiratory_contributors")] + public global::Terra.RecordFloat? RespiratoryContributors { get; set; } + + /// + /// Immune system health index for the day.
+ /// Example: 72 + ///
+ /// 72 + [global::System.Text.Json.Serialization.JsonPropertyName("immune_index")] + public int? ImmuneIndex { get; set; } + + /// + /// Map of contributing factor name to its weighted contribution to the immune index. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("immune_contributors")] + public global::Terra.RecordFloat? ImmuneContributors { get; set; } + + /// + /// Resilience score for the day.
+ /// Example: 65 + ///
+ /// 65 + [global::System.Text.Json.Serialization.JsonPropertyName("resilience_score")] + public int? ResilienceScore { get; set; } + + /// + /// Map of contributing factor name to its weighted contribution to the resilience score. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("resilience_contributors")] + public global::Terra.RecordFloat? ResilienceContributors { get; set; } + + /// + /// Strain index for the day.
+ /// Example: 12.5 + ///
+ /// 12.5 + [global::System.Text.Json.Serialization.JsonPropertyName("strain_index")] + public double? StrainIndex { get; set; } + + /// + /// Categorical strain rating for the day (e.g. GREEN, AMBER, RED).
+ /// Example: GREEN + ///
+ /// GREEN + [global::System.Text.Json.Serialization.JsonPropertyName("strain_traffic_light")] + public string? StrainTrafficLight { get; set; } + + /// + /// Map of contributing factor name to its weighted contribution to the strain index. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("strain_contributors")] + public global::Terra.RecordFloat? StrainContributors { get; set; } + + /// + /// Total stress score for the day, computed by the v2 model.
+ /// Example: 43 + ///
+ /// 43 + [global::System.Text.Json.Serialization.JsonPropertyName("total_stress_score_v2")] + public double? TotalStressScoreV2 { get; set; } + + /// + /// Map of contributing factor name to its weighted contribution to the v2 total stress score. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("total_stress_score_v2_contributors")] + public global::Terra.RecordFloat? TotalStressScoreV2Contributors { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -15,5 +106,94 @@ public sealed partial class DailyDataEnrichment [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. + /// + /// + /// Total stress score for the day.
+ /// Example: 45 + /// + /// + /// Map of contributing factor name to its weighted contribution to the stress score. + /// + /// + /// Respiratory health score for the day.
+ /// Example: 88 + /// + /// + /// Map of contributing factor name to its weighted contribution to the respiratory score. + /// + /// + /// Immune system health index for the day.
+ /// Example: 72 + /// + /// + /// Map of contributing factor name to its weighted contribution to the immune index. + /// + /// + /// Resilience score for the day.
+ /// Example: 65 + /// + /// + /// Map of contributing factor name to its weighted contribution to the resilience score. + /// + /// + /// Strain index for the day.
+ /// Example: 12.5 + /// + /// + /// Categorical strain rating for the day (e.g. GREEN, AMBER, RED).
+ /// Example: GREEN + /// + /// + /// Map of contributing factor name to its weighted contribution to the strain index. + /// + /// + /// Total stress score for the day, computed by the v2 model.
+ /// Example: 43 + /// + /// + /// Map of contributing factor name to its weighted contribution to the v2 total stress score. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public DailyDataEnrichment( + double? totalStressScore, + global::Terra.RecordFloat? stressContributors, + double? respiratoryScore, + global::Terra.RecordFloat? respiratoryContributors, + int? immuneIndex, + global::Terra.RecordFloat? immuneContributors, + int? resilienceScore, + global::Terra.RecordFloat? resilienceContributors, + double? strainIndex, + string? strainTrafficLight, + global::Terra.RecordFloat? strainContributors, + double? totalStressScoreV2, + global::Terra.RecordFloat? totalStressScoreV2Contributors) + { + this.TotalStressScore = totalStressScore; + this.StressContributors = stressContributors; + this.RespiratoryScore = respiratoryScore; + this.RespiratoryContributors = respiratoryContributors; + this.ImmuneIndex = immuneIndex; + this.ImmuneContributors = immuneContributors; + this.ResilienceScore = resilienceScore; + this.ResilienceContributors = resilienceContributors; + this.StrainIndex = strainIndex; + this.StrainTrafficLight = strainTrafficLight; + this.StrainContributors = strainContributors; + this.TotalStressScoreV2 = totalStressScoreV2; + this.TotalStressScoreV2Contributors = totalStressScoreV2Contributors; + } + + /// + /// Initializes a new instance of the class. + /// + public DailyDataEnrichment() + { + } + } } \ No newline at end of file diff --git a/src/libs/Terra/Generated/Terra.Models.DailyDataEnrichment2.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.DailyDataEnrichment2.Json.g.cs deleted file mode 100644 index 76634079..00000000 --- a/src/libs/Terra/Generated/Terra.Models.DailyDataEnrichment2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class DailyDataEnrichment2 - { - /// - /// 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.DailyDataEnrichment2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.DailyDataEnrichment2), - jsonSerializerContext) as global::Terra.DailyDataEnrichment2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.DailyDataEnrichment2? 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.DailyDataEnrichment2? 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.DailyDataEnrichment2), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.DailyDataEnrichment2; - } - - /// - /// 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.DailyDataEnrichment2.g.cs b/src/libs/Terra/Generated/Terra.Models.DailyDataEnrichment2.g.cs deleted file mode 100644 index 976cec13..00000000 --- a/src/libs/Terra/Generated/Terra.Models.DailyDataEnrichment2.g.cs +++ /dev/null @@ -1,199 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// - /// - public sealed partial class DailyDataEnrichment2 - { - /// - /// Total stress score for the day.
- /// Example: 45 - ///
- /// 45 - [global::System.Text.Json.Serialization.JsonPropertyName("total_stress_score")] - public double? TotalStressScore { get; set; } - - /// - /// Map of contributing factor name to its weighted contribution to the stress score. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("stress_contributors")] - public global::Terra.RecordFloat? StressContributors { get; set; } - - /// - /// Respiratory health score for the day.
- /// Example: 88 - ///
- /// 88 - [global::System.Text.Json.Serialization.JsonPropertyName("respiratory_score")] - public double? RespiratoryScore { get; set; } - - /// - /// Map of contributing factor name to its weighted contribution to the respiratory score. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("respiratory_contributors")] - public global::Terra.RecordFloat? RespiratoryContributors { get; set; } - - /// - /// Immune system health index for the day.
- /// Example: 72 - ///
- /// 72 - [global::System.Text.Json.Serialization.JsonPropertyName("immune_index")] - public int? ImmuneIndex { get; set; } - - /// - /// Map of contributing factor name to its weighted contribution to the immune index. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("immune_contributors")] - public global::Terra.RecordFloat? ImmuneContributors { get; set; } - - /// - /// Resilience score for the day.
- /// Example: 65 - ///
- /// 65 - [global::System.Text.Json.Serialization.JsonPropertyName("resilience_score")] - public int? ResilienceScore { get; set; } - - /// - /// Map of contributing factor name to its weighted contribution to the resilience score. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("resilience_contributors")] - public global::Terra.RecordFloat? ResilienceContributors { get; set; } - - /// - /// Strain index for the day.
- /// Example: 12.5 - ///
- /// 12.5 - [global::System.Text.Json.Serialization.JsonPropertyName("strain_index")] - public double? StrainIndex { get; set; } - - /// - /// Categorical strain rating for the day (e.g. GREEN, AMBER, RED).
- /// Example: GREEN - ///
- /// GREEN - [global::System.Text.Json.Serialization.JsonPropertyName("strain_traffic_light")] - public string? StrainTrafficLight { get; set; } - - /// - /// Map of contributing factor name to its weighted contribution to the strain index. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("strain_contributors")] - public global::Terra.RecordFloat? StrainContributors { get; set; } - - /// - /// Total stress score for the day, computed by the v2 model.
- /// Example: 43 - ///
- /// 43 - [global::System.Text.Json.Serialization.JsonPropertyName("total_stress_score_v2")] - public double? TotalStressScoreV2 { get; set; } - - /// - /// Map of contributing factor name to its weighted contribution to the v2 total stress score. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("total_stress_score_v2_contributors")] - public global::Terra.RecordFloat? TotalStressScoreV2Contributors { 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. - /// - /// - /// Total stress score for the day.
- /// Example: 45 - /// - /// - /// Map of contributing factor name to its weighted contribution to the stress score. - /// - /// - /// Respiratory health score for the day.
- /// Example: 88 - /// - /// - /// Map of contributing factor name to its weighted contribution to the respiratory score. - /// - /// - /// Immune system health index for the day.
- /// Example: 72 - /// - /// - /// Map of contributing factor name to its weighted contribution to the immune index. - /// - /// - /// Resilience score for the day.
- /// Example: 65 - /// - /// - /// Map of contributing factor name to its weighted contribution to the resilience score. - /// - /// - /// Strain index for the day.
- /// Example: 12.5 - /// - /// - /// Categorical strain rating for the day (e.g. GREEN, AMBER, RED).
- /// Example: GREEN - /// - /// - /// Map of contributing factor name to its weighted contribution to the strain index. - /// - /// - /// Total stress score for the day, computed by the v2 model.
- /// Example: 43 - /// - /// - /// Map of contributing factor name to its weighted contribution to the v2 total stress score. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public DailyDataEnrichment2( - double? totalStressScore, - global::Terra.RecordFloat? stressContributors, - double? respiratoryScore, - global::Terra.RecordFloat? respiratoryContributors, - int? immuneIndex, - global::Terra.RecordFloat? immuneContributors, - int? resilienceScore, - global::Terra.RecordFloat? resilienceContributors, - double? strainIndex, - string? strainTrafficLight, - global::Terra.RecordFloat? strainContributors, - double? totalStressScoreV2, - global::Terra.RecordFloat? totalStressScoreV2Contributors) - { - this.TotalStressScore = totalStressScore; - this.StressContributors = stressContributors; - this.RespiratoryScore = respiratoryScore; - this.RespiratoryContributors = respiratoryContributors; - this.ImmuneIndex = immuneIndex; - this.ImmuneContributors = immuneContributors; - this.ResilienceScore = resilienceScore; - this.ResilienceContributors = resilienceContributors; - this.StrainIndex = strainIndex; - this.StrainTrafficLight = strainTrafficLight; - this.StrainContributors = strainContributors; - this.TotalStressScoreV2 = totalStressScoreV2; - this.TotalStressScoreV2Contributors = totalStressScoreV2Contributors; - } - - /// - /// Initializes a new instance of the class. - /// - public DailyDataEnrichment2() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Terra/Generated/Terra.Models.DailyDataEnrichmentImmuneContributors.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.DailyDataEnrichmentImmuneContributors.Json.g.cs deleted file mode 100644 index 46af76c5..00000000 --- a/src/libs/Terra/Generated/Terra.Models.DailyDataEnrichmentImmuneContributors.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class DailyDataEnrichmentImmuneContributors - { - /// - /// 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.DailyDataEnrichmentImmuneContributors? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.DailyDataEnrichmentImmuneContributors), - jsonSerializerContext) as global::Terra.DailyDataEnrichmentImmuneContributors; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.DailyDataEnrichmentImmuneContributors? 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.DailyDataEnrichmentImmuneContributors? 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.DailyDataEnrichmentImmuneContributors), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.DailyDataEnrichmentImmuneContributors; - } - - /// - /// 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.DailyDataEnrichmentImmuneContributors.g.cs b/src/libs/Terra/Generated/Terra.Models.DailyDataEnrichmentImmuneContributors.g.cs deleted file mode 100644 index 724fc4aa..00000000 --- a/src/libs/Terra/Generated/Terra.Models.DailyDataEnrichmentImmuneContributors.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Map of contributing factor name to its weighted contribution to the immune index. - /// - public sealed partial class DailyDataEnrichmentImmuneContributors - { - - /// - /// 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.DailyDataEnrichmentResilienceContributors.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.DailyDataEnrichmentResilienceContributors.Json.g.cs deleted file mode 100644 index e2103d96..00000000 --- a/src/libs/Terra/Generated/Terra.Models.DailyDataEnrichmentResilienceContributors.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class DailyDataEnrichmentResilienceContributors - { - /// - /// 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.DailyDataEnrichmentResilienceContributors? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.DailyDataEnrichmentResilienceContributors), - jsonSerializerContext) as global::Terra.DailyDataEnrichmentResilienceContributors; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.DailyDataEnrichmentResilienceContributors? 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.DailyDataEnrichmentResilienceContributors? 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.DailyDataEnrichmentResilienceContributors), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.DailyDataEnrichmentResilienceContributors; - } - - /// - /// 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.DailyDataEnrichmentResilienceContributors.g.cs b/src/libs/Terra/Generated/Terra.Models.DailyDataEnrichmentResilienceContributors.g.cs deleted file mode 100644 index fb44cf45..00000000 --- a/src/libs/Terra/Generated/Terra.Models.DailyDataEnrichmentResilienceContributors.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Map of contributing factor name to its weighted contribution to the resilience score. - /// - public sealed partial class DailyDataEnrichmentResilienceContributors - { - - /// - /// 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.DailyDataEnrichmentRespiratoryContributors.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.DailyDataEnrichmentRespiratoryContributors.Json.g.cs deleted file mode 100644 index c21711e6..00000000 --- a/src/libs/Terra/Generated/Terra.Models.DailyDataEnrichmentRespiratoryContributors.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class DailyDataEnrichmentRespiratoryContributors - { - /// - /// 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.DailyDataEnrichmentRespiratoryContributors? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.DailyDataEnrichmentRespiratoryContributors), - jsonSerializerContext) as global::Terra.DailyDataEnrichmentRespiratoryContributors; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.DailyDataEnrichmentRespiratoryContributors? 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.DailyDataEnrichmentRespiratoryContributors? 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.DailyDataEnrichmentRespiratoryContributors), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.DailyDataEnrichmentRespiratoryContributors; - } - - /// - /// 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.DailyDataEnrichmentRespiratoryContributors.g.cs b/src/libs/Terra/Generated/Terra.Models.DailyDataEnrichmentRespiratoryContributors.g.cs deleted file mode 100644 index a4438d3c..00000000 --- a/src/libs/Terra/Generated/Terra.Models.DailyDataEnrichmentRespiratoryContributors.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Map of contributing factor name to its weighted contribution to the respiratory score. - /// - public sealed partial class DailyDataEnrichmentRespiratoryContributors - { - - /// - /// 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.DailyDataEnrichmentStrainContributors.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.DailyDataEnrichmentStrainContributors.Json.g.cs deleted file mode 100644 index 23094080..00000000 --- a/src/libs/Terra/Generated/Terra.Models.DailyDataEnrichmentStrainContributors.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class DailyDataEnrichmentStrainContributors - { - /// - /// 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.DailyDataEnrichmentStrainContributors? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.DailyDataEnrichmentStrainContributors), - jsonSerializerContext) as global::Terra.DailyDataEnrichmentStrainContributors; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.DailyDataEnrichmentStrainContributors? 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.DailyDataEnrichmentStrainContributors? 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.DailyDataEnrichmentStrainContributors), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.DailyDataEnrichmentStrainContributors; - } - - /// - /// 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.DailyDataEnrichmentStrainContributors.g.cs b/src/libs/Terra/Generated/Terra.Models.DailyDataEnrichmentStrainContributors.g.cs deleted file mode 100644 index 97e8f76f..00000000 --- a/src/libs/Terra/Generated/Terra.Models.DailyDataEnrichmentStrainContributors.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Map of contributing factor name to its weighted contribution to the strain index. - /// - public sealed partial class DailyDataEnrichmentStrainContributors - { - - /// - /// 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.DailyDataEnrichmentStressContributors.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.DailyDataEnrichmentStressContributors.Json.g.cs deleted file mode 100644 index 0ebcbd10..00000000 --- a/src/libs/Terra/Generated/Terra.Models.DailyDataEnrichmentStressContributors.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class DailyDataEnrichmentStressContributors - { - /// - /// 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.DailyDataEnrichmentStressContributors? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.DailyDataEnrichmentStressContributors), - jsonSerializerContext) as global::Terra.DailyDataEnrichmentStressContributors; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.DailyDataEnrichmentStressContributors? 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.DailyDataEnrichmentStressContributors? 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.DailyDataEnrichmentStressContributors), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.DailyDataEnrichmentStressContributors; - } - - /// - /// 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.DailyDataEnrichmentStressContributors.g.cs b/src/libs/Terra/Generated/Terra.Models.DailyDataEnrichmentStressContributors.g.cs deleted file mode 100644 index 61aa3aff..00000000 --- a/src/libs/Terra/Generated/Terra.Models.DailyDataEnrichmentStressContributors.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Map of contributing factor name to its weighted contribution to the stress score. - /// - public sealed partial class DailyDataEnrichmentStressContributors - { - - /// - /// 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.DailyDataEnrichmentTotalStressScoreV2Contributors.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.DailyDataEnrichmentTotalStressScoreV2Contributors.Json.g.cs deleted file mode 100644 index 7de9b91a..00000000 --- a/src/libs/Terra/Generated/Terra.Models.DailyDataEnrichmentTotalStressScoreV2Contributors.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class DailyDataEnrichmentTotalStressScoreV2Contributors - { - /// - /// 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.DailyDataEnrichmentTotalStressScoreV2Contributors? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.DailyDataEnrichmentTotalStressScoreV2Contributors), - jsonSerializerContext) as global::Terra.DailyDataEnrichmentTotalStressScoreV2Contributors; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.DailyDataEnrichmentTotalStressScoreV2Contributors? 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.DailyDataEnrichmentTotalStressScoreV2Contributors? 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.DailyDataEnrichmentTotalStressScoreV2Contributors), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.DailyDataEnrichmentTotalStressScoreV2Contributors; - } - - /// - /// 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.DailyDataEnrichmentTotalStressScoreV2Contributors.g.cs b/src/libs/Terra/Generated/Terra.Models.DailyDataEnrichmentTotalStressScoreV2Contributors.g.cs deleted file mode 100644 index 83533d8a..00000000 --- a/src/libs/Terra/Generated/Terra.Models.DailyDataEnrichmentTotalStressScoreV2Contributors.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Map of contributing factor name to its weighted contribution to the v2 total stress score. - /// - public sealed partial class DailyDataEnrichmentTotalStressScoreV2Contributors - { - - /// - /// 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.DailyDeviceData.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.DailyDeviceData.Json.g.cs deleted file mode 100644 index 3c4e45b9..00000000 --- a/src/libs/Terra/Generated/Terra.Models.DailyDeviceData.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class DailyDeviceData - { - /// - /// 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.DailyDeviceData? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.DailyDeviceData), - jsonSerializerContext) as global::Terra.DailyDeviceData; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.DailyDeviceData? 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.DailyDeviceData? 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.DailyDeviceData), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.DailyDeviceData; - } - - /// - /// 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.DailyDeviceData.g.cs b/src/libs/Terra/Generated/Terra.Models.DailyDeviceData.g.cs deleted file mode 100644 index d9bd9f4d..00000000 --- a/src/libs/Terra/Generated/Terra.Models.DailyDeviceData.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Object containing information on the device which recorded data for the day. - /// - public sealed partial class DailyDeviceData - { - - /// - /// 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.DailyDistanceData.g.cs b/src/libs/Terra/Generated/Terra.Models.DailyDistanceData.g.cs index d82d5187..0530390f 100644 --- a/src/libs/Terra/Generated/Terra.Models.DailyDistanceData.g.cs +++ b/src/libs/Terra/Generated/Terra.Models.DailyDistanceData.g.cs @@ -4,10 +4,51 @@ namespace Terra { /// - /// Object containing information related to distance covered during the associated day. + /// /// public sealed partial class DailyDistanceData { + /// + /// Object containing detailed distance information - this may include second-by-second samples. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("detailed")] + public global::Terra.DistanceDataDetailed? Detailed { get; set; } + + /// + /// Total distance covered by the user throughout the day.
+ /// Example: 8500.45 + ///
+ /// 8500.45 + [global::System.Text.Json.Serialization.JsonPropertyName("distance_meters")] + public double? DistanceMeters { get; set; } + + /// + /// Object containing information on the elevation of the user throughout the day. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("elevation")] + public global::Terra.ElevationData? Elevation { get; set; } + + /// + /// Total number of elevation gain in floors climbed equivalent throughout the day, as determined by the fitness data provider.
+ /// Example: 15 + ///
+ /// 15 + [global::System.Text.Json.Serialization.JsonPropertyName("floors_climbed")] + public int? FloorsClimbed { get; set; } + + /// + /// Total number of steps performed during the day.
+ /// Example: 12000 + ///
+ /// 12000 + [global::System.Text.Json.Serialization.JsonPropertyName("steps")] + public int? Steps { get; set; } + + /// + /// Summary information of the user's swimming statistics for the day, if applicable. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("swimming")] + public global::Terra.SwimmingData? Swimming { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -15,5 +56,55 @@ public sealed partial class DailyDistanceData [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. + /// + /// + /// Object containing detailed distance information - this may include second-by-second samples. + /// + /// + /// Total distance covered by the user throughout the day.
+ /// Example: 8500.45 + /// + /// + /// Object containing information on the elevation of the user throughout the day. + /// + /// + /// Total number of elevation gain in floors climbed equivalent throughout the day, as determined by the fitness data provider.
+ /// Example: 15 + /// + /// + /// Total number of steps performed during the day.
+ /// Example: 12000 + /// + /// + /// Summary information of the user's swimming statistics for the day, if applicable. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public DailyDistanceData( + global::Terra.DistanceDataDetailed? detailed, + double? distanceMeters, + global::Terra.ElevationData? elevation, + int? floorsClimbed, + int? steps, + global::Terra.SwimmingData? swimming) + { + this.Detailed = detailed; + this.DistanceMeters = distanceMeters; + this.Elevation = elevation; + this.FloorsClimbed = floorsClimbed; + this.Steps = steps; + this.Swimming = swimming; + } + + /// + /// Initializes a new instance of the class. + /// + public DailyDistanceData() + { + } + } } \ No newline at end of file diff --git a/src/libs/Terra/Generated/Terra.Models.DailyDistanceData2.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.DailyDistanceData2.Json.g.cs deleted file mode 100644 index 0fd88985..00000000 --- a/src/libs/Terra/Generated/Terra.Models.DailyDistanceData2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class DailyDistanceData2 - { - /// - /// 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.DailyDistanceData2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.DailyDistanceData2), - jsonSerializerContext) as global::Terra.DailyDistanceData2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.DailyDistanceData2? 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.DailyDistanceData2? 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.DailyDistanceData2), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.DailyDistanceData2; - } - - /// - /// 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.DailyDistanceData2.g.cs b/src/libs/Terra/Generated/Terra.Models.DailyDistanceData2.g.cs deleted file mode 100644 index 15f0ae7f..00000000 --- a/src/libs/Terra/Generated/Terra.Models.DailyDistanceData2.g.cs +++ /dev/null @@ -1,110 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// - /// - public sealed partial class DailyDistanceData2 - { - /// - /// Object containing detailed distance information - this may include second-by-second samples. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("detailed")] - public global::Terra.DistanceDataDetailed? Detailed { get; set; } - - /// - /// Total distance covered by the user throughout the day.
- /// Example: 8500.45 - ///
- /// 8500.45 - [global::System.Text.Json.Serialization.JsonPropertyName("distance_meters")] - public double? DistanceMeters { get; set; } - - /// - /// Object containing information on the elevation of the user throughout the day. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("elevation")] - public global::Terra.ElevationData? Elevation { get; set; } - - /// - /// Total number of elevation gain in floors climbed equivalent throughout the day, as determined by the fitness data provider.
- /// Example: 15 - ///
- /// 15 - [global::System.Text.Json.Serialization.JsonPropertyName("floors_climbed")] - public int? FloorsClimbed { get; set; } - - /// - /// Total number of steps performed during the day.
- /// Example: 12000 - ///
- /// 12000 - [global::System.Text.Json.Serialization.JsonPropertyName("steps")] - public int? Steps { get; set; } - - /// - /// Summary information of the user's swimming statistics for the day, if applicable. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("swimming")] - public global::Terra.SwimmingData? Swimming { 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. - /// - /// - /// Object containing detailed distance information - this may include second-by-second samples. - /// - /// - /// Total distance covered by the user throughout the day.
- /// Example: 8500.45 - /// - /// - /// Object containing information on the elevation of the user throughout the day. - /// - /// - /// Total number of elevation gain in floors climbed equivalent throughout the day, as determined by the fitness data provider.
- /// Example: 15 - /// - /// - /// Total number of steps performed during the day.
- /// Example: 12000 - /// - /// - /// Summary information of the user's swimming statistics for the day, if applicable. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public DailyDistanceData2( - global::Terra.DistanceDataDetailed? detailed, - double? distanceMeters, - global::Terra.ElevationData? elevation, - int? floorsClimbed, - int? steps, - global::Terra.SwimmingData? swimming) - { - this.Detailed = detailed; - this.DistanceMeters = distanceMeters; - this.Elevation = elevation; - this.FloorsClimbed = floorsClimbed; - this.Steps = steps; - this.Swimming = swimming; - } - - /// - /// Initializes a new instance of the class. - /// - public DailyDistanceData2() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Terra/Generated/Terra.Models.DailyDistanceDataDetailed.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.DailyDistanceDataDetailed.Json.g.cs deleted file mode 100644 index 4c4d170c..00000000 --- a/src/libs/Terra/Generated/Terra.Models.DailyDistanceDataDetailed.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class DailyDistanceDataDetailed - { - /// - /// 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.DailyDistanceDataDetailed? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.DailyDistanceDataDetailed), - jsonSerializerContext) as global::Terra.DailyDistanceDataDetailed; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.DailyDistanceDataDetailed? 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.DailyDistanceDataDetailed? 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.DailyDistanceDataDetailed), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.DailyDistanceDataDetailed; - } - - /// - /// 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.DailyDistanceDataDetailed.g.cs b/src/libs/Terra/Generated/Terra.Models.DailyDistanceDataDetailed.g.cs deleted file mode 100644 index edb4c100..00000000 --- a/src/libs/Terra/Generated/Terra.Models.DailyDistanceDataDetailed.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Object containing detailed distance information - this may include second-by-second samples. - /// - public sealed partial class DailyDistanceDataDetailed - { - - /// - /// 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.DailyDistanceDataElevation.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.DailyDistanceDataElevation.Json.g.cs deleted file mode 100644 index 163c2a1d..00000000 --- a/src/libs/Terra/Generated/Terra.Models.DailyDistanceDataElevation.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class DailyDistanceDataElevation - { - /// - /// 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.DailyDistanceDataElevation? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.DailyDistanceDataElevation), - jsonSerializerContext) as global::Terra.DailyDistanceDataElevation; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.DailyDistanceDataElevation? 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.DailyDistanceDataElevation? 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.DailyDistanceDataElevation), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.DailyDistanceDataElevation; - } - - /// - /// 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.DailyDistanceDataElevation.g.cs b/src/libs/Terra/Generated/Terra.Models.DailyDistanceDataElevation.g.cs deleted file mode 100644 index c2d27047..00000000 --- a/src/libs/Terra/Generated/Terra.Models.DailyDistanceDataElevation.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Object containing information on the elevation of the user throughout the day. - /// - public sealed partial class DailyDistanceDataElevation - { - - /// - /// 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.DailyDistanceDataSwimming.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.DailyDistanceDataSwimming.Json.g.cs deleted file mode 100644 index 91db5712..00000000 --- a/src/libs/Terra/Generated/Terra.Models.DailyDistanceDataSwimming.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class DailyDistanceDataSwimming - { - /// - /// 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.DailyDistanceDataSwimming? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.DailyDistanceDataSwimming), - jsonSerializerContext) as global::Terra.DailyDistanceDataSwimming; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.DailyDistanceDataSwimming? 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.DailyDistanceDataSwimming? 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.DailyDistanceDataSwimming), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.DailyDistanceDataSwimming; - } - - /// - /// 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.DailyDistanceDataSwimming.g.cs b/src/libs/Terra/Generated/Terra.Models.DailyDistanceDataSwimming.g.cs deleted file mode 100644 index a3f4b17e..00000000 --- a/src/libs/Terra/Generated/Terra.Models.DailyDistanceDataSwimming.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Summary information of the user's swimming statistics for the day, if applicable. - /// - public sealed partial class DailyDistanceDataSwimming - { - - /// - /// 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.DailyHeartRateData.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.DailyHeartRateData.Json.g.cs deleted file mode 100644 index 857aa20a..00000000 --- a/src/libs/Terra/Generated/Terra.Models.DailyHeartRateData.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class DailyHeartRateData - { - /// - /// 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.DailyHeartRateData? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.DailyHeartRateData), - jsonSerializerContext) as global::Terra.DailyHeartRateData; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.DailyHeartRateData? 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.DailyHeartRateData? 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.DailyHeartRateData), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.DailyHeartRateData; - } - - /// - /// 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.DailyHeartRateData.g.cs b/src/libs/Terra/Generated/Terra.Models.DailyHeartRateData.g.cs deleted file mode 100644 index 16ea1bd0..00000000 --- a/src/libs/Terra/Generated/Terra.Models.DailyHeartRateData.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Object containing heartrate-related information for the day. - /// - public sealed partial class DailyHeartRateData - { - - /// - /// 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.DailyMetData.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.DailyMetData.Json.g.cs deleted file mode 100644 index 89769376..00000000 --- a/src/libs/Terra/Generated/Terra.Models.DailyMetData.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class DailyMetData - { - /// - /// 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.DailyMetData? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.DailyMetData), - jsonSerializerContext) as global::Terra.DailyMetData; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.DailyMetData? 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.DailyMetData? 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.DailyMetData), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.DailyMetData; - } - - /// - /// 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.DailyMetData.g.cs b/src/libs/Terra/Generated/Terra.Models.DailyMetData.g.cs deleted file mode 100644 index 2ba49cda..00000000 --- a/src/libs/Terra/Generated/Terra.Models.DailyMetData.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Object containing information on the Metabolic Equivalent of Task for the day. - /// - public sealed partial class DailyMetData - { - - /// - /// 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.DailyOxygenData.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.DailyOxygenData.Json.g.cs deleted file mode 100644 index 1a667823..00000000 --- a/src/libs/Terra/Generated/Terra.Models.DailyOxygenData.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class DailyOxygenData - { - /// - /// 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.DailyOxygenData? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.DailyOxygenData), - jsonSerializerContext) as global::Terra.DailyOxygenData; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.DailyOxygenData? 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.DailyOxygenData? 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.DailyOxygenData), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.DailyOxygenData; - } - - /// - /// 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.DailyOxygenData.g.cs b/src/libs/Terra/Generated/Terra.Models.DailyOxygenData.g.cs deleted file mode 100644 index 8be52579..00000000 --- a/src/libs/Terra/Generated/Terra.Models.DailyOxygenData.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Object containing information on oxygen-related metrics for the day. - /// - public sealed partial class DailyOxygenData - { - - /// - /// 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.DailyScores.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.DailyScores.Json.g.cs deleted file mode 100644 index 15ef4260..00000000 --- a/src/libs/Terra/Generated/Terra.Models.DailyScores.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class DailyScores - { - /// - /// 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.DailyScores? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.DailyScores), - jsonSerializerContext) as global::Terra.DailyScores; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.DailyScores? 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.DailyScores? 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.DailyScores), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.DailyScores; - } - - /// - /// 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.DailyScores.g.cs b/src/libs/Terra/Generated/Terra.Models.DailyScores.g.cs deleted file mode 100644 index fc4e9561..00000000 --- a/src/libs/Terra/Generated/Terra.Models.DailyScores.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Scores for the user's performance on different metrics for the given day, as calculated by the fitness data provider. - /// - public sealed partial class DailyScores - { - - /// - /// 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.DailyStrainData.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.DailyStrainData.Json.g.cs deleted file mode 100644 index 9d99dd68..00000000 --- a/src/libs/Terra/Generated/Terra.Models.DailyStrainData.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class DailyStrainData - { - /// - /// 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.DailyStrainData? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.DailyStrainData), - jsonSerializerContext) as global::Terra.DailyStrainData; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.DailyStrainData? 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.DailyStrainData? 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.DailyStrainData), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.DailyStrainData; - } - - /// - /// 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.DailyStrainData.g.cs b/src/libs/Terra/Generated/Terra.Models.DailyStrainData.g.cs deleted file mode 100644 index 14992095..00000000 --- a/src/libs/Terra/Generated/Terra.Models.DailyStrainData.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Object containing information on the strain put on the user's body over a day. - /// - public sealed partial class DailyStrainData - { - - /// - /// 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.DailyStressData.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.DailyStressData.Json.g.cs deleted file mode 100644 index 8d64df27..00000000 --- a/src/libs/Terra/Generated/Terra.Models.DailyStressData.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class DailyStressData - { - /// - /// 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.DailyStressData? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.DailyStressData), - jsonSerializerContext) as global::Terra.DailyStressData; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.DailyStressData? 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.DailyStressData? 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.DailyStressData), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.DailyStressData; - } - - /// - /// 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.DailyStressData.g.cs b/src/libs/Terra/Generated/Terra.Models.DailyStressData.g.cs deleted file mode 100644 index d59ac7df..00000000 --- a/src/libs/Terra/Generated/Terra.Models.DailyStressData.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Object containing information on the stress put on the user over a day. - /// - public sealed partial class DailyStressData - { - - /// - /// 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.DailyTagData.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.DailyTagData.Json.g.cs deleted file mode 100644 index 2b761bc1..00000000 --- a/src/libs/Terra/Generated/Terra.Models.DailyTagData.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class DailyTagData - { - /// - /// 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.DailyTagData? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.DailyTagData), - jsonSerializerContext) as global::Terra.DailyTagData; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.DailyTagData? 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.DailyTagData? 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.DailyTagData), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.DailyTagData; - } - - /// - /// 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.DailyTagData.g.cs b/src/libs/Terra/Generated/Terra.Models.DailyTagData.g.cs deleted file mode 100644 index b95d4c48..00000000 --- a/src/libs/Terra/Generated/Terra.Models.DailyTagData.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Object containing all user-entered or automatically tagged events in the day. - /// - public sealed partial class DailyTagData - { - - /// - /// 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.DataEnrichmentEfficiencyContributors.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.DataEnrichmentEfficiencyContributors.Json.g.cs deleted file mode 100644 index 5d4b8ded..00000000 --- a/src/libs/Terra/Generated/Terra.Models.DataEnrichmentEfficiencyContributors.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class DataEnrichmentEfficiencyContributors - { - /// - /// 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.DataEnrichmentEfficiencyContributors? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.DataEnrichmentEfficiencyContributors), - jsonSerializerContext) as global::Terra.DataEnrichmentEfficiencyContributors; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.DataEnrichmentEfficiencyContributors? 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.DataEnrichmentEfficiencyContributors? 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.DataEnrichmentEfficiencyContributors), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.DataEnrichmentEfficiencyContributors; - } - - /// - /// 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.DataEnrichmentEfficiencyContributors.g.cs b/src/libs/Terra/Generated/Terra.Models.DataEnrichmentEfficiencyContributors.g.cs deleted file mode 100644 index 201ed2fb..00000000 --- a/src/libs/Terra/Generated/Terra.Models.DataEnrichmentEfficiencyContributors.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Map of contributing factor name to its weighted contribution to the efficiency score. - /// - public sealed partial class DataEnrichmentEfficiencyContributors - { - - /// - /// 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.DataEnrichmentRcrsContributors.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.DataEnrichmentRcrsContributors.Json.g.cs deleted file mode 100644 index 304079cb..00000000 --- a/src/libs/Terra/Generated/Terra.Models.DataEnrichmentRcrsContributors.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class DataEnrichmentRcrsContributors - { - /// - /// 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.DataEnrichmentRcrsContributors? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.DataEnrichmentRcrsContributors), - jsonSerializerContext) as global::Terra.DataEnrichmentRcrsContributors; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.DataEnrichmentRcrsContributors? 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.DataEnrichmentRcrsContributors? 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.DataEnrichmentRcrsContributors), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.DataEnrichmentRcrsContributors; - } - - /// - /// 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.DataEnrichmentRcrsContributors.g.cs b/src/libs/Terra/Generated/Terra.Models.DataEnrichmentRcrsContributors.g.cs deleted file mode 100644 index 8039976b..00000000 --- a/src/libs/Terra/Generated/Terra.Models.DataEnrichmentRcrsContributors.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Map of contributing factor name to its weighted contribution to the RCRS score. - /// - public sealed partial class DataEnrichmentRcrsContributors - { - - /// - /// 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.DataEnrichmentStrainContributors.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.DataEnrichmentStrainContributors.Json.g.cs deleted file mode 100644 index 0b359f55..00000000 --- a/src/libs/Terra/Generated/Terra.Models.DataEnrichmentStrainContributors.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class DataEnrichmentStrainContributors - { - /// - /// 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.DataEnrichmentStrainContributors? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.DataEnrichmentStrainContributors), - jsonSerializerContext) as global::Terra.DataEnrichmentStrainContributors; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.DataEnrichmentStrainContributors? 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.DataEnrichmentStrainContributors? 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.DataEnrichmentStrainContributors), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.DataEnrichmentStrainContributors; - } - - /// - /// 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.DataEnrichmentStrainContributors.g.cs b/src/libs/Terra/Generated/Terra.Models.DataEnrichmentStrainContributors.g.cs deleted file mode 100644 index 7bcf3270..00000000 --- a/src/libs/Terra/Generated/Terra.Models.DataEnrichmentStrainContributors.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Map of contributing factor name to its weighted contribution to the strain score. - /// - public sealed partial class DataEnrichmentStrainContributors - { - - /// - /// 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.DataEnrichmentTrimpContributors.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.DataEnrichmentTrimpContributors.Json.g.cs deleted file mode 100644 index ac42d8a9..00000000 --- a/src/libs/Terra/Generated/Terra.Models.DataEnrichmentTrimpContributors.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class DataEnrichmentTrimpContributors - { - /// - /// 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.DataEnrichmentTrimpContributors? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.DataEnrichmentTrimpContributors), - jsonSerializerContext) as global::Terra.DataEnrichmentTrimpContributors; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.DataEnrichmentTrimpContributors? 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.DataEnrichmentTrimpContributors? 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.DataEnrichmentTrimpContributors), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.DataEnrichmentTrimpContributors; - } - - /// - /// 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.DataEnrichmentTrimpContributors.g.cs b/src/libs/Terra/Generated/Terra.Models.DataEnrichmentTrimpContributors.g.cs deleted file mode 100644 index 3bac7b06..00000000 --- a/src/libs/Terra/Generated/Terra.Models.DataEnrichmentTrimpContributors.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Map of contributing factor name to its weighted contribution to the TRIMP score. - /// - public sealed partial class DataEnrichmentTrimpContributors - { - - /// - /// 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.DistanceDataDetailed2.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.DistanceDataDetailed2.Json.g.cs deleted file mode 100644 index f4cf775f..00000000 --- a/src/libs/Terra/Generated/Terra.Models.DistanceDataDetailed2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class DistanceDataDetailed2 - { - /// - /// 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.DistanceDataDetailed2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.DistanceDataDetailed2), - jsonSerializerContext) as global::Terra.DistanceDataDetailed2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.DistanceDataDetailed2? 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.DistanceDataDetailed2? 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.DistanceDataDetailed2), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.DistanceDataDetailed2; - } - - /// - /// 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.DistanceDataDetailed2.g.cs b/src/libs/Terra/Generated/Terra.Models.DistanceDataDetailed2.g.cs deleted file mode 100644 index eff34ee2..00000000 --- a/src/libs/Terra/Generated/Terra.Models.DistanceDataDetailed2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Object containing detailed distance information - this may included second-by-second samples. - /// - public sealed partial class DistanceDataDetailed2 - { - - /// - /// 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.DistanceDataSummary2.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.DistanceDataSummary2.Json.g.cs deleted file mode 100644 index e44b0ff4..00000000 --- a/src/libs/Terra/Generated/Terra.Models.DistanceDataSummary2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class DistanceDataSummary2 - { - /// - /// 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.DistanceDataSummary2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.DistanceDataSummary2), - jsonSerializerContext) as global::Terra.DistanceDataSummary2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.DistanceDataSummary2? 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.DistanceDataSummary2? 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.DistanceDataSummary2), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.DistanceDataSummary2; - } - - /// - /// 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.DistanceDataSummary2.g.cs b/src/libs/Terra/Generated/Terra.Models.DistanceDataSummary2.g.cs deleted file mode 100644 index d2105940..00000000 --- a/src/libs/Terra/Generated/Terra.Models.DistanceDataSummary2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Object containing summary information related to distance covered throughout the workout. - /// - public sealed partial class DistanceDataSummary2 - { - - /// - /// 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.DistanceDataSummaryElevation.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.DistanceDataSummaryElevation.Json.g.cs deleted file mode 100644 index 7680e1fd..00000000 --- a/src/libs/Terra/Generated/Terra.Models.DistanceDataSummaryElevation.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class DistanceDataSummaryElevation - { - /// - /// 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.DistanceDataSummaryElevation? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.DistanceDataSummaryElevation), - jsonSerializerContext) as global::Terra.DistanceDataSummaryElevation; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.DistanceDataSummaryElevation? 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.DistanceDataSummaryElevation? 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.DistanceDataSummaryElevation), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.DistanceDataSummaryElevation; - } - - /// - /// 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.DistanceDataSummaryElevation.g.cs b/src/libs/Terra/Generated/Terra.Models.DistanceDataSummaryElevation.g.cs deleted file mode 100644 index 7791e1b5..00000000 --- a/src/libs/Terra/Generated/Terra.Models.DistanceDataSummaryElevation.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Object containing information on the elevation of the user throughout the workout. - /// - public sealed partial class DistanceDataSummaryElevation - { - - /// - /// 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.DistanceDataSummarySwimming.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.DistanceDataSummarySwimming.Json.g.cs deleted file mode 100644 index f732bc84..00000000 --- a/src/libs/Terra/Generated/Terra.Models.DistanceDataSummarySwimming.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class DistanceDataSummarySwimming - { - /// - /// 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.DistanceDataSummarySwimming? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.DistanceDataSummarySwimming), - jsonSerializerContext) as global::Terra.DistanceDataSummarySwimming; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.DistanceDataSummarySwimming? 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.DistanceDataSummarySwimming? 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.DistanceDataSummarySwimming), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.DistanceDataSummarySwimming; - } - - /// - /// 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.DistanceDataSummarySwimming.g.cs b/src/libs/Terra/Generated/Terra.Models.DistanceDataSummarySwimming.g.cs deleted file mode 100644 index 43325a8f..00000000 --- a/src/libs/Terra/Generated/Terra.Models.DistanceDataSummarySwimming.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Summary information of the user's swimming statistics for the workout, if applicable. - /// - public sealed partial class DistanceDataSummarySwimming - { - - /// - /// 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.HealthObservationDataValue.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.HealthObservationDataValue.Json.g.cs deleted file mode 100644 index 35f754c3..00000000 --- a/src/libs/Terra/Generated/Terra.Models.HealthObservationDataValue.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class HealthObservationDataValue - { - /// - /// 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.HealthObservationDataValue? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.HealthObservationDataValue), - jsonSerializerContext) as global::Terra.HealthObservationDataValue; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.HealthObservationDataValue? 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.HealthObservationDataValue? 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.HealthObservationDataValue), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.HealthObservationDataValue; - } - - /// - /// 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.HealthObservationDataValue.g.cs b/src/libs/Terra/Generated/Terra.Models.HealthObservationDataValue.g.cs deleted file mode 100644 index a61daf79..00000000 --- a/src/libs/Terra/Generated/Terra.Models.HealthObservationDataValue.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// The observation's value. Absent or NONE-typed for presence-only events. - /// - public sealed partial class HealthObservationDataValue - { - - /// - /// 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.HeartDataHeartRateData.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.HeartDataHeartRateData.Json.g.cs deleted file mode 100644 index d3176138..00000000 --- a/src/libs/Terra/Generated/Terra.Models.HeartDataHeartRateData.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class HeartDataHeartRateData - { - /// - /// 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.HeartDataHeartRateData? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.HeartDataHeartRateData), - jsonSerializerContext) as global::Terra.HeartDataHeartRateData; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.HeartDataHeartRateData? 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.HeartDataHeartRateData? 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.HeartDataHeartRateData), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.HeartDataHeartRateData; - } - - /// - /// 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.HeartDataHeartRateData.g.cs b/src/libs/Terra/Generated/Terra.Models.HeartDataHeartRateData.g.cs deleted file mode 100644 index 5d0ffce5..00000000 --- a/src/libs/Terra/Generated/Terra.Models.HeartDataHeartRateData.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Object containing heart rate data. - /// - public sealed partial class HeartDataHeartRateData - { - - /// - /// 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.HeartRateDataDetailed2.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.HeartRateDataDetailed2.Json.g.cs deleted file mode 100644 index 3c9bc93a..00000000 --- a/src/libs/Terra/Generated/Terra.Models.HeartRateDataDetailed2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class HeartRateDataDetailed2 - { - /// - /// 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.HeartRateDataDetailed2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.HeartRateDataDetailed2), - jsonSerializerContext) as global::Terra.HeartRateDataDetailed2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.HeartRateDataDetailed2? 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.HeartRateDataDetailed2? 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.HeartRateDataDetailed2), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.HeartRateDataDetailed2; - } - - /// - /// 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.HeartRateDataDetailed2.g.cs b/src/libs/Terra/Generated/Terra.Models.HeartRateDataDetailed2.g.cs deleted file mode 100644 index 5f4679c2..00000000 --- a/src/libs/Terra/Generated/Terra.Models.HeartRateDataDetailed2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Object containing detailed heart rate information for the associated workout. - /// - public sealed partial class HeartRateDataDetailed2 - { - - /// - /// 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.HeartRateDataSummary2.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.HeartRateDataSummary2.Json.g.cs deleted file mode 100644 index d0332b8e..00000000 --- a/src/libs/Terra/Generated/Terra.Models.HeartRateDataSummary2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class HeartRateDataSummary2 - { - /// - /// 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.HeartRateDataSummary2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.HeartRateDataSummary2), - jsonSerializerContext) as global::Terra.HeartRateDataSummary2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.HeartRateDataSummary2? 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.HeartRateDataSummary2? 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.HeartRateDataSummary2), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.HeartRateDataSummary2; - } - - /// - /// 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.HeartRateDataSummary2.g.cs b/src/libs/Terra/Generated/Terra.Models.HeartRateDataSummary2.g.cs deleted file mode 100644 index 88ac925d..00000000 --- a/src/libs/Terra/Generated/Terra.Models.HeartRateDataSummary2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Object containing summary heart rate information for the associated workout. - /// - public sealed partial class HeartRateDataSummary2 - { - - /// - /// 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.MenstruationMenstruationData.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.MenstruationMenstruationData.Json.g.cs deleted file mode 100644 index d2be610f..00000000 --- a/src/libs/Terra/Generated/Terra.Models.MenstruationMenstruationData.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class MenstruationMenstruationData - { - /// - /// 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.MenstruationMenstruationData? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.MenstruationMenstruationData), - jsonSerializerContext) as global::Terra.MenstruationMenstruationData; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.MenstruationMenstruationData? 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.MenstruationMenstruationData? 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.MenstruationMenstruationData), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.MenstruationMenstruationData; - } - - /// - /// 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.MenstruationMenstruationData.g.cs b/src/libs/Terra/Generated/Terra.Models.MenstruationMenstruationData.g.cs deleted file mode 100644 index a1e1e3c1..00000000 --- a/src/libs/Terra/Generated/Terra.Models.MenstruationMenstruationData.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Object containing information on user's menstruation for a given day. - /// - public sealed partial class MenstruationMenstruationData - { - - /// - /// 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.Nutrition.g.cs b/src/libs/Terra/Generated/Terra.Models.Nutrition.g.cs index 4be46b6c..a8544803 100644 --- a/src/libs/Terra/Generated/Terra.Models.Nutrition.g.cs +++ b/src/libs/Terra/Generated/Terra.Models.Nutrition.g.cs @@ -31,7 +31,7 @@ public sealed partial class Nutrition /// Summative nutritional information for a given day. ///
[global::System.Text.Json.Serialization.JsonPropertyName("summary")] - public global::Terra.NutritionSummary2? Summary { get; set; } + public global::Terra.NutritionSummary? Summary { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -59,7 +59,7 @@ public Nutrition( global::Terra.NutritionMetadata metadata, global::System.Collections.Generic.IList? drinkSamples, global::System.Collections.Generic.IList? meals, - global::Terra.NutritionSummary2? summary) + global::Terra.NutritionSummary? summary) { this.DrinkSamples = drinkSamples; this.Meals = meals; diff --git a/src/libs/Terra/Generated/Terra.Models.NutritionSummary.g.cs b/src/libs/Terra/Generated/Terra.Models.NutritionSummary.g.cs index 531b8fd2..1a5f32a1 100644 --- a/src/libs/Terra/Generated/Terra.Models.NutritionSummary.g.cs +++ b/src/libs/Terra/Generated/Terra.Models.NutritionSummary.g.cs @@ -4,10 +4,37 @@ namespace Terra { /// - /// Summative nutritional information for a given day. + /// /// public sealed partial class NutritionSummary { + /// + /// Summary of macronutrient information for a given day. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("macros")] + public global::Terra.NutritionMacros? Macros { get; set; } + + /// + /// Summary of micronutrient information for a given day. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("micros")] + public global::Terra.NutritionMicros? Micros { get; set; } + + /// + /// Water consumption of the user for a given day.
+ /// Example: 2000 + ///
+ /// 2000 + [global::System.Text.Json.Serialization.JsonPropertyName("water_ml")] + public double? WaterMl { get; set; } + + /// + /// Non-water drink consumption of the user for a given day.
+ /// Example: 500 + ///
+ /// 500 + [global::System.Text.Json.Serialization.JsonPropertyName("drink_ml")] + public double? DrinkMl { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -15,5 +42,44 @@ public sealed partial class NutritionSummary [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. + /// + /// + /// Summary of macronutrient information for a given day. + /// + /// + /// Summary of micronutrient information for a given day. + /// + /// + /// Water consumption of the user for a given day.
+ /// Example: 2000 + /// + /// + /// Non-water drink consumption of the user for a given day.
+ /// Example: 500 + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public NutritionSummary( + global::Terra.NutritionMacros? macros, + global::Terra.NutritionMicros? micros, + double? waterMl, + double? drinkMl) + { + this.Macros = macros; + this.Micros = micros; + this.WaterMl = waterMl; + this.DrinkMl = drinkMl; + } + + /// + /// Initializes a new instance of the class. + /// + public NutritionSummary() + { + } + } } \ No newline at end of file diff --git a/src/libs/Terra/Generated/Terra.Models.NutritionSummary2.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.NutritionSummary2.Json.g.cs deleted file mode 100644 index a7a5ccf6..00000000 --- a/src/libs/Terra/Generated/Terra.Models.NutritionSummary2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class NutritionSummary2 - { - /// - /// 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.NutritionSummary2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.NutritionSummary2), - jsonSerializerContext) as global::Terra.NutritionSummary2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.NutritionSummary2? 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.NutritionSummary2? 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.NutritionSummary2), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.NutritionSummary2; - } - - /// - /// 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.NutritionSummary2.g.cs b/src/libs/Terra/Generated/Terra.Models.NutritionSummary2.g.cs deleted file mode 100644 index 354837b0..00000000 --- a/src/libs/Terra/Generated/Terra.Models.NutritionSummary2.g.cs +++ /dev/null @@ -1,85 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// - /// - public sealed partial class NutritionSummary2 - { - /// - /// Summary of macronutrient information for a given day. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("macros")] - public global::Terra.NutritionMacros? Macros { get; set; } - - /// - /// Summary of micronutrient information for a given day. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("micros")] - public global::Terra.NutritionMicros? Micros { get; set; } - - /// - /// Water consumption of the user for a given day.
- /// Example: 2000 - ///
- /// 2000 - [global::System.Text.Json.Serialization.JsonPropertyName("water_ml")] - public double? WaterMl { get; set; } - - /// - /// Non-water drink consumption of the user for a given day.
- /// Example: 500 - ///
- /// 500 - [global::System.Text.Json.Serialization.JsonPropertyName("drink_ml")] - public double? DrinkMl { 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. - /// - /// - /// Summary of macronutrient information for a given day. - /// - /// - /// Summary of micronutrient information for a given day. - /// - /// - /// Water consumption of the user for a given day.
- /// Example: 2000 - /// - /// - /// Non-water drink consumption of the user for a given day.
- /// Example: 500 - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public NutritionSummary2( - global::Terra.NutritionMacros? macros, - global::Terra.NutritionMicros? micros, - double? waterMl, - double? drinkMl) - { - this.Macros = macros; - this.Micros = micros; - this.WaterMl = waterMl; - this.DrinkMl = drinkMl; - } - - /// - /// Initializes a new instance of the class. - /// - public NutritionSummary2() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Terra/Generated/Terra.Models.NutritionSummaryMacros.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.NutritionSummaryMacros.Json.g.cs deleted file mode 100644 index b0e9bb98..00000000 --- a/src/libs/Terra/Generated/Terra.Models.NutritionSummaryMacros.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class NutritionSummaryMacros - { - /// - /// 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.NutritionSummaryMacros? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.NutritionSummaryMacros), - jsonSerializerContext) as global::Terra.NutritionSummaryMacros; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.NutritionSummaryMacros? 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.NutritionSummaryMacros? 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.NutritionSummaryMacros), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.NutritionSummaryMacros; - } - - /// - /// 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.NutritionSummaryMacros.g.cs b/src/libs/Terra/Generated/Terra.Models.NutritionSummaryMacros.g.cs deleted file mode 100644 index 52bcdc02..00000000 --- a/src/libs/Terra/Generated/Terra.Models.NutritionSummaryMacros.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Summary of macronutrient information for a given day. - /// - public sealed partial class NutritionSummaryMacros - { - - /// - /// 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.NutritionSummaryMicros.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.NutritionSummaryMicros.Json.g.cs deleted file mode 100644 index cfbf008a..00000000 --- a/src/libs/Terra/Generated/Terra.Models.NutritionSummaryMicros.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class NutritionSummaryMicros - { - /// - /// 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.NutritionSummaryMicros? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.NutritionSummaryMicros), - jsonSerializerContext) as global::Terra.NutritionSummaryMicros; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.NutritionSummaryMicros? 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.NutritionSummaryMicros? 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.NutritionSummaryMicros), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.NutritionSummaryMicros; - } - - /// - /// 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.NutritionSummaryMicros.g.cs b/src/libs/Terra/Generated/Terra.Models.NutritionSummaryMicros.g.cs deleted file mode 100644 index 0194ee93..00000000 --- a/src/libs/Terra/Generated/Terra.Models.NutritionSummaryMicros.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Summary of micronutrient information for a given day. - /// - public sealed partial class NutritionSummaryMicros - { - - /// - /// 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.ObservationComponentValue.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.ObservationComponentValue.Json.g.cs deleted file mode 100644 index 5fcaf064..00000000 --- a/src/libs/Terra/Generated/Terra.Models.ObservationComponentValue.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class ObservationComponentValue - { - /// - /// 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.ObservationComponentValue? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.ObservationComponentValue), - jsonSerializerContext) as global::Terra.ObservationComponentValue; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.ObservationComponentValue? 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.ObservationComponentValue? 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.ObservationComponentValue), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.ObservationComponentValue; - } - - /// - /// 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.ObservationComponentValue.g.cs b/src/libs/Terra/Generated/Terra.Models.ObservationComponentValue.g.cs deleted file mode 100644 index 5c7eb207..00000000 --- a/src/libs/Terra/Generated/Terra.Models.ObservationComponentValue.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// The component's value. - /// - public sealed partial class ObservationComponentValue - { - - /// - /// 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.PlannedWorkoutAthleteMetrics.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.PlannedWorkoutAthleteMetrics.Json.g.cs deleted file mode 100644 index 94534d75..00000000 --- a/src/libs/Terra/Generated/Terra.Models.PlannedWorkoutAthleteMetrics.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class PlannedWorkoutAthleteMetrics - { - /// - /// 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.PlannedWorkoutAthleteMetrics? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.PlannedWorkoutAthleteMetrics), - jsonSerializerContext) as global::Terra.PlannedWorkoutAthleteMetrics; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.PlannedWorkoutAthleteMetrics? 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.PlannedWorkoutAthleteMetrics? 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.PlannedWorkoutAthleteMetrics), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.PlannedWorkoutAthleteMetrics; - } - - /// - /// 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.PlannedWorkoutAthleteMetrics.g.cs b/src/libs/Terra/Generated/Terra.Models.PlannedWorkoutAthleteMetrics.g.cs deleted file mode 100644 index 9337689e..00000000 --- a/src/libs/Terra/Generated/Terra.Models.PlannedWorkoutAthleteMetrics.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// - /// - public sealed partial class PlannedWorkoutAthleteMetrics - { - - /// - /// 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.PlannedWorkoutDetails2.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.PlannedWorkoutDetails2.Json.g.cs deleted file mode 100644 index 16bf81ae..00000000 --- a/src/libs/Terra/Generated/Terra.Models.PlannedWorkoutDetails2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class PlannedWorkoutDetails2 - { - /// - /// 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.PlannedWorkoutDetails2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.PlannedWorkoutDetails2), - jsonSerializerContext) as global::Terra.PlannedWorkoutDetails2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.PlannedWorkoutDetails2? 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.PlannedWorkoutDetails2? 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.PlannedWorkoutDetails2), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.PlannedWorkoutDetails2; - } - - /// - /// 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.PlannedWorkoutDetails2.g.cs b/src/libs/Terra/Generated/Terra.Models.PlannedWorkoutDetails2.g.cs deleted file mode 100644 index 9e19930e..00000000 --- a/src/libs/Terra/Generated/Terra.Models.PlannedWorkoutDetails2.g.cs +++ /dev/null @@ -1,20 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// 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 - { - - /// - /// 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.PlannedWorkoutDetailsMetadata2.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.PlannedWorkoutDetailsMetadata2.Json.g.cs deleted file mode 100644 index 8efbab31..00000000 --- a/src/libs/Terra/Generated/Terra.Models.PlannedWorkoutDetailsMetadata2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class PlannedWorkoutDetailsMetadata2 - { - /// - /// 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.PlannedWorkoutDetailsMetadata2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.PlannedWorkoutDetailsMetadata2), - jsonSerializerContext) as global::Terra.PlannedWorkoutDetailsMetadata2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.PlannedWorkoutDetailsMetadata2? 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.PlannedWorkoutDetailsMetadata2? 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.PlannedWorkoutDetailsMetadata2), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.PlannedWorkoutDetailsMetadata2; - } - - /// - /// 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.PlannedWorkoutDetailsMetadata2.g.cs b/src/libs/Terra/Generated/Terra.Models.PlannedWorkoutDetailsMetadata2.g.cs deleted file mode 100644 index f9a9382f..00000000 --- a/src/libs/Terra/Generated/Terra.Models.PlannedWorkoutDetailsMetadata2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// - /// - public sealed partial class PlannedWorkoutDetailsMetadata2 - { - - /// - /// 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.PlannedWorkoutSummaryWorkout.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.PlannedWorkoutSummaryWorkout.Json.g.cs deleted file mode 100644 index 530bd68f..00000000 --- a/src/libs/Terra/Generated/Terra.Models.PlannedWorkoutSummaryWorkout.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#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 deleted file mode 100644 index 82695813..00000000 --- a/src/libs/Terra/Generated/Terra.Models.PlannedWorkoutSummaryWorkout.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#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 deleted file mode 100644 index a2886384..00000000 --- a/src/libs/Terra/Generated/Terra.Models.PlannedWorkoutWorkout.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#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 deleted file mode 100644 index 0487b302..00000000 --- a/src/libs/Terra/Generated/Terra.Models.PlannedWorkoutWorkout.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#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.RespirationDataBreathsData.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.RespirationDataBreathsData.Json.g.cs deleted file mode 100644 index e153b93e..00000000 --- a/src/libs/Terra/Generated/Terra.Models.RespirationDataBreathsData.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class RespirationDataBreathsData - { - /// - /// 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.RespirationDataBreathsData? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.RespirationDataBreathsData), - jsonSerializerContext) as global::Terra.RespirationDataBreathsData; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.RespirationDataBreathsData? 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.RespirationDataBreathsData? 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.RespirationDataBreathsData), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.RespirationDataBreathsData; - } - - /// - /// 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.RespirationDataBreathsData.g.cs b/src/libs/Terra/Generated/Terra.Models.RespirationDataBreathsData.g.cs deleted file mode 100644 index 1610ddd2..00000000 --- a/src/libs/Terra/Generated/Terra.Models.RespirationDataBreathsData.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Object containing information on breathing rate for the sleep session. - /// - public sealed partial class RespirationDataBreathsData - { - - /// - /// 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.RespirationDataOxygenSaturationData.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.RespirationDataOxygenSaturationData.Json.g.cs deleted file mode 100644 index f713b280..00000000 --- a/src/libs/Terra/Generated/Terra.Models.RespirationDataOxygenSaturationData.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class RespirationDataOxygenSaturationData - { - /// - /// 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.RespirationDataOxygenSaturationData? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.RespirationDataOxygenSaturationData), - jsonSerializerContext) as global::Terra.RespirationDataOxygenSaturationData; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.RespirationDataOxygenSaturationData? 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.RespirationDataOxygenSaturationData? 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.RespirationDataOxygenSaturationData), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.RespirationDataOxygenSaturationData; - } - - /// - /// 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.RespirationDataOxygenSaturationData.g.cs b/src/libs/Terra/Generated/Terra.Models.RespirationDataOxygenSaturationData.g.cs deleted file mode 100644 index 74fb6aa7..00000000 --- a/src/libs/Terra/Generated/Terra.Models.RespirationDataOxygenSaturationData.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Object containing information on saturation metrics for the sleep session. - /// - public sealed partial class RespirationDataOxygenSaturationData - { - - /// - /// 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.RespirationDataSnoringData.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.RespirationDataSnoringData.Json.g.cs deleted file mode 100644 index c9a1b486..00000000 --- a/src/libs/Terra/Generated/Terra.Models.RespirationDataSnoringData.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class RespirationDataSnoringData - { - /// - /// 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.RespirationDataSnoringData? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.RespirationDataSnoringData), - jsonSerializerContext) as global::Terra.RespirationDataSnoringData; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.RespirationDataSnoringData? 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.RespirationDataSnoringData? 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.RespirationDataSnoringData), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.RespirationDataSnoringData; - } - - /// - /// 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.RespirationDataSnoringData.g.cs b/src/libs/Terra/Generated/Terra.Models.RespirationDataSnoringData.g.cs deleted file mode 100644 index 80d7fee7..00000000 --- a/src/libs/Terra/Generated/Terra.Models.RespirationDataSnoringData.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Object containing information on snoring metrics for the sleep session. - /// - public sealed partial class RespirationDataSnoringData - { - - /// - /// 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.Sleep.g.cs b/src/libs/Terra/Generated/Terra.Models.Sleep.g.cs index 93a85963..c73138cb 100644 --- a/src/libs/Terra/Generated/Terra.Models.Sleep.g.cs +++ b/src/libs/Terra/Generated/Terra.Models.Sleep.g.cs @@ -12,7 +12,7 @@ public sealed partial class Sleep /// Object containing additional enrichment data for the sleep session. ///
[global::System.Text.Json.Serialization.JsonPropertyName("data_enrichment")] - public global::Terra.SleepDataEnrichment2? DataEnrichment { get; set; } + public global::Terra.SleepDataEnrichment? DataEnrichment { get; set; } /// /// Object containing information on the device which recorded data for the payload. @@ -49,7 +49,7 @@ public sealed partial class Sleep /// Scores summarising the user's sleep session. /// [global::System.Text.Json.Serialization.JsonPropertyName("scores")] - public global::Terra.SleepScores2? Scores { get; set; } + public global::Terra.SleepScores? Scores { get; set; } /// /// Object containing information on the user's duration spent in various sleep stages. @@ -61,7 +61,7 @@ public sealed partial class Sleep /// Object containing body temperature information of the user during the sleep recording session. /// [global::System.Text.Json.Serialization.JsonPropertyName("temperature_data")] - public global::Terra.SleepTemperatureData2? TemperatureData { get; set; } + public global::Terra.SleepTemperatureData? TemperatureData { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -102,14 +102,14 @@ public sealed partial class Sleep #endif public Sleep( global::Terra.SleepMetadata metadata, - global::Terra.SleepDataEnrichment2? dataEnrichment, + global::Terra.SleepDataEnrichment? dataEnrichment, global::Terra.DeviceData? deviceData, global::Terra.HeartRateData? heartRateData, global::Terra.ReadinessData? readinessData, global::Terra.RespirationData? respirationData, - global::Terra.SleepScores2? scores, + global::Terra.SleepScores? scores, global::Terra.SleepDurationsData? sleepDurationsData, - global::Terra.SleepTemperatureData2? temperatureData) + global::Terra.SleepTemperatureData? temperatureData) { this.DataEnrichment = dataEnrichment; this.DeviceData = deviceData; diff --git a/src/libs/Terra/Generated/Terra.Models.SleepDataEnrichment.g.cs b/src/libs/Terra/Generated/Terra.Models.SleepDataEnrichment.g.cs index 67446649..b0c74cb1 100644 --- a/src/libs/Terra/Generated/Terra.Models.SleepDataEnrichment.g.cs +++ b/src/libs/Terra/Generated/Terra.Models.SleepDataEnrichment.g.cs @@ -4,10 +4,65 @@ namespace Terra { /// - /// Object containing additional enrichment data for the sleep session. + /// /// public sealed partial class SleepDataEnrichment { + /// + /// Sleep score for the session.
+ /// Example: 85 + ///
+ /// 85 + [global::System.Text.Json.Serialization.JsonPropertyName("sleep_score")] + public double? SleepScore { get; set; } + + /// + /// Map of contributing factor name to its weighted contribution to the sleep score. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sleep_contributors")] + public global::Terra.RecordFloat? SleepContributors { get; set; } + + /// + /// Readiness score resulting from the sleep session.
+ /// Example: 82 + ///
+ /// 82 + [global::System.Text.Json.Serialization.JsonPropertyName("readiness_score")] + public double? ReadinessScore { get; set; } + + /// + /// Map of contributing factor name to its weighted contribution to the readiness score. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("readiness_contributors")] + public global::Terra.RecordFloat? ReadinessContributors { get; set; } + + /// + /// Sleep score for the session, computed by the v2 model.
+ /// Example: 84 + ///
+ /// 84 + [global::System.Text.Json.Serialization.JsonPropertyName("sleep_score_v2")] + public double? SleepScoreV2 { get; set; } + + /// + /// Map of contributing factor name to its weighted contribution to the v2 sleep score. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sleep_score_v2_contributors")] + public global::Terra.RecordFloat? SleepScoreV2Contributors { get; set; } + + /// + /// Respiratory score for the session, computed by the v2 model.
+ /// Example: 90 + ///
+ /// 90 + [global::System.Text.Json.Serialization.JsonPropertyName("respiratory_score_v2")] + public double? RespiratoryScoreV2 { get; set; } + + /// + /// Map of contributing factor name to its weighted contribution to the v2 respiratory score. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("respiratory_score_v2_contributors")] + public global::Terra.RecordFloat? RespiratoryScoreV2Contributors { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -15,5 +70,66 @@ public sealed partial class SleepDataEnrichment [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. + /// + /// + /// Sleep score for the session.
+ /// Example: 85 + /// + /// + /// Map of contributing factor name to its weighted contribution to the sleep score. + /// + /// + /// Readiness score resulting from the sleep session.
+ /// Example: 82 + /// + /// + /// Map of contributing factor name to its weighted contribution to the readiness score. + /// + /// + /// Sleep score for the session, computed by the v2 model.
+ /// Example: 84 + /// + /// + /// Map of contributing factor name to its weighted contribution to the v2 sleep score. + /// + /// + /// Respiratory score for the session, computed by the v2 model.
+ /// Example: 90 + /// + /// + /// Map of contributing factor name to its weighted contribution to the v2 respiratory score. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public SleepDataEnrichment( + double? sleepScore, + global::Terra.RecordFloat? sleepContributors, + double? readinessScore, + global::Terra.RecordFloat? readinessContributors, + double? sleepScoreV2, + global::Terra.RecordFloat? sleepScoreV2Contributors, + double? respiratoryScoreV2, + global::Terra.RecordFloat? respiratoryScoreV2Contributors) + { + this.SleepScore = sleepScore; + this.SleepContributors = sleepContributors; + this.ReadinessScore = readinessScore; + this.ReadinessContributors = readinessContributors; + this.SleepScoreV2 = sleepScoreV2; + this.SleepScoreV2Contributors = sleepScoreV2Contributors; + this.RespiratoryScoreV2 = respiratoryScoreV2; + this.RespiratoryScoreV2Contributors = respiratoryScoreV2Contributors; + } + + /// + /// Initializes a new instance of the class. + /// + public SleepDataEnrichment() + { + } + } } \ No newline at end of file diff --git a/src/libs/Terra/Generated/Terra.Models.SleepDataEnrichment2.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.SleepDataEnrichment2.Json.g.cs deleted file mode 100644 index 6201d44f..00000000 --- a/src/libs/Terra/Generated/Terra.Models.SleepDataEnrichment2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class SleepDataEnrichment2 - { - /// - /// 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.SleepDataEnrichment2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.SleepDataEnrichment2), - jsonSerializerContext) as global::Terra.SleepDataEnrichment2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.SleepDataEnrichment2? 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.SleepDataEnrichment2? 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.SleepDataEnrichment2), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.SleepDataEnrichment2; - } - - /// - /// 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.SleepDataEnrichment2.g.cs b/src/libs/Terra/Generated/Terra.Models.SleepDataEnrichment2.g.cs deleted file mode 100644 index 6a0d2862..00000000 --- a/src/libs/Terra/Generated/Terra.Models.SleepDataEnrichment2.g.cs +++ /dev/null @@ -1,135 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// - /// - public sealed partial class SleepDataEnrichment2 - { - /// - /// Sleep score for the session.
- /// Example: 85 - ///
- /// 85 - [global::System.Text.Json.Serialization.JsonPropertyName("sleep_score")] - public double? SleepScore { get; set; } - - /// - /// Map of contributing factor name to its weighted contribution to the sleep score. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sleep_contributors")] - public global::Terra.RecordFloat? SleepContributors { get; set; } - - /// - /// Readiness score resulting from the sleep session.
- /// Example: 82 - ///
- /// 82 - [global::System.Text.Json.Serialization.JsonPropertyName("readiness_score")] - public double? ReadinessScore { get; set; } - - /// - /// Map of contributing factor name to its weighted contribution to the readiness score. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("readiness_contributors")] - public global::Terra.RecordFloat? ReadinessContributors { get; set; } - - /// - /// Sleep score for the session, computed by the v2 model.
- /// Example: 84 - ///
- /// 84 - [global::System.Text.Json.Serialization.JsonPropertyName("sleep_score_v2")] - public double? SleepScoreV2 { get; set; } - - /// - /// Map of contributing factor name to its weighted contribution to the v2 sleep score. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sleep_score_v2_contributors")] - public global::Terra.RecordFloat? SleepScoreV2Contributors { get; set; } - - /// - /// Respiratory score for the session, computed by the v2 model.
- /// Example: 90 - ///
- /// 90 - [global::System.Text.Json.Serialization.JsonPropertyName("respiratory_score_v2")] - public double? RespiratoryScoreV2 { get; set; } - - /// - /// Map of contributing factor name to its weighted contribution to the v2 respiratory score. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("respiratory_score_v2_contributors")] - public global::Terra.RecordFloat? RespiratoryScoreV2Contributors { 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. - /// - /// - /// Sleep score for the session.
- /// Example: 85 - /// - /// - /// Map of contributing factor name to its weighted contribution to the sleep score. - /// - /// - /// Readiness score resulting from the sleep session.
- /// Example: 82 - /// - /// - /// Map of contributing factor name to its weighted contribution to the readiness score. - /// - /// - /// Sleep score for the session, computed by the v2 model.
- /// Example: 84 - /// - /// - /// Map of contributing factor name to its weighted contribution to the v2 sleep score. - /// - /// - /// Respiratory score for the session, computed by the v2 model.
- /// Example: 90 - /// - /// - /// Map of contributing factor name to its weighted contribution to the v2 respiratory score. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public SleepDataEnrichment2( - double? sleepScore, - global::Terra.RecordFloat? sleepContributors, - double? readinessScore, - global::Terra.RecordFloat? readinessContributors, - double? sleepScoreV2, - global::Terra.RecordFloat? sleepScoreV2Contributors, - double? respiratoryScoreV2, - global::Terra.RecordFloat? respiratoryScoreV2Contributors) - { - this.SleepScore = sleepScore; - this.SleepContributors = sleepContributors; - this.ReadinessScore = readinessScore; - this.ReadinessContributors = readinessContributors; - this.SleepScoreV2 = sleepScoreV2; - this.SleepScoreV2Contributors = sleepScoreV2Contributors; - this.RespiratoryScoreV2 = respiratoryScoreV2; - this.RespiratoryScoreV2Contributors = respiratoryScoreV2Contributors; - } - - /// - /// Initializes a new instance of the class. - /// - public SleepDataEnrichment2() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Terra/Generated/Terra.Models.SleepDataEnrichmentReadinessContributors.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.SleepDataEnrichmentReadinessContributors.Json.g.cs deleted file mode 100644 index bf668d60..00000000 --- a/src/libs/Terra/Generated/Terra.Models.SleepDataEnrichmentReadinessContributors.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class SleepDataEnrichmentReadinessContributors - { - /// - /// 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.SleepDataEnrichmentReadinessContributors? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.SleepDataEnrichmentReadinessContributors), - jsonSerializerContext) as global::Terra.SleepDataEnrichmentReadinessContributors; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.SleepDataEnrichmentReadinessContributors? 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.SleepDataEnrichmentReadinessContributors? 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.SleepDataEnrichmentReadinessContributors), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.SleepDataEnrichmentReadinessContributors; - } - - /// - /// 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.SleepDataEnrichmentReadinessContributors.g.cs b/src/libs/Terra/Generated/Terra.Models.SleepDataEnrichmentReadinessContributors.g.cs deleted file mode 100644 index 4647717b..00000000 --- a/src/libs/Terra/Generated/Terra.Models.SleepDataEnrichmentReadinessContributors.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Map of contributing factor name to its weighted contribution to the readiness score. - /// - public sealed partial class SleepDataEnrichmentReadinessContributors - { - - /// - /// 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.SleepDataEnrichmentRespiratoryScoreV2Contributors.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.SleepDataEnrichmentRespiratoryScoreV2Contributors.Json.g.cs deleted file mode 100644 index 08599fb4..00000000 --- a/src/libs/Terra/Generated/Terra.Models.SleepDataEnrichmentRespiratoryScoreV2Contributors.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class SleepDataEnrichmentRespiratoryScoreV2Contributors - { - /// - /// 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.SleepDataEnrichmentRespiratoryScoreV2Contributors? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.SleepDataEnrichmentRespiratoryScoreV2Contributors), - jsonSerializerContext) as global::Terra.SleepDataEnrichmentRespiratoryScoreV2Contributors; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.SleepDataEnrichmentRespiratoryScoreV2Contributors? 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.SleepDataEnrichmentRespiratoryScoreV2Contributors? 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.SleepDataEnrichmentRespiratoryScoreV2Contributors), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.SleepDataEnrichmentRespiratoryScoreV2Contributors; - } - - /// - /// 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.SleepDataEnrichmentRespiratoryScoreV2Contributors.g.cs b/src/libs/Terra/Generated/Terra.Models.SleepDataEnrichmentRespiratoryScoreV2Contributors.g.cs deleted file mode 100644 index 502ef782..00000000 --- a/src/libs/Terra/Generated/Terra.Models.SleepDataEnrichmentRespiratoryScoreV2Contributors.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Map of contributing factor name to its weighted contribution to the v2 respiratory score. - /// - public sealed partial class SleepDataEnrichmentRespiratoryScoreV2Contributors - { - - /// - /// 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.SleepDataEnrichmentSleepContributors.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.SleepDataEnrichmentSleepContributors.Json.g.cs deleted file mode 100644 index 9e7161d3..00000000 --- a/src/libs/Terra/Generated/Terra.Models.SleepDataEnrichmentSleepContributors.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class SleepDataEnrichmentSleepContributors - { - /// - /// 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.SleepDataEnrichmentSleepContributors? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.SleepDataEnrichmentSleepContributors), - jsonSerializerContext) as global::Terra.SleepDataEnrichmentSleepContributors; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.SleepDataEnrichmentSleepContributors? 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.SleepDataEnrichmentSleepContributors? 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.SleepDataEnrichmentSleepContributors), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.SleepDataEnrichmentSleepContributors; - } - - /// - /// 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.SleepDataEnrichmentSleepContributors.g.cs b/src/libs/Terra/Generated/Terra.Models.SleepDataEnrichmentSleepContributors.g.cs deleted file mode 100644 index 9d2257f6..00000000 --- a/src/libs/Terra/Generated/Terra.Models.SleepDataEnrichmentSleepContributors.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Map of contributing factor name to its weighted contribution to the sleep score. - /// - public sealed partial class SleepDataEnrichmentSleepContributors - { - - /// - /// 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.SleepDataEnrichmentSleepScoreV2Contributors.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.SleepDataEnrichmentSleepScoreV2Contributors.Json.g.cs deleted file mode 100644 index 69e62f66..00000000 --- a/src/libs/Terra/Generated/Terra.Models.SleepDataEnrichmentSleepScoreV2Contributors.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class SleepDataEnrichmentSleepScoreV2Contributors - { - /// - /// 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.SleepDataEnrichmentSleepScoreV2Contributors? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.SleepDataEnrichmentSleepScoreV2Contributors), - jsonSerializerContext) as global::Terra.SleepDataEnrichmentSleepScoreV2Contributors; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.SleepDataEnrichmentSleepScoreV2Contributors? 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.SleepDataEnrichmentSleepScoreV2Contributors? 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.SleepDataEnrichmentSleepScoreV2Contributors), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.SleepDataEnrichmentSleepScoreV2Contributors; - } - - /// - /// 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.SleepDataEnrichmentSleepScoreV2Contributors.g.cs b/src/libs/Terra/Generated/Terra.Models.SleepDataEnrichmentSleepScoreV2Contributors.g.cs deleted file mode 100644 index 85824116..00000000 --- a/src/libs/Terra/Generated/Terra.Models.SleepDataEnrichmentSleepScoreV2Contributors.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Map of contributing factor name to its weighted contribution to the v2 sleep score. - /// - public sealed partial class SleepDataEnrichmentSleepScoreV2Contributors - { - - /// - /// 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.SleepDeviceData.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.SleepDeviceData.Json.g.cs deleted file mode 100644 index 7c0e19b0..00000000 --- a/src/libs/Terra/Generated/Terra.Models.SleepDeviceData.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class SleepDeviceData - { - /// - /// 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.SleepDeviceData? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.SleepDeviceData), - jsonSerializerContext) as global::Terra.SleepDeviceData; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.SleepDeviceData? 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.SleepDeviceData? 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.SleepDeviceData), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.SleepDeviceData; - } - - /// - /// 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.SleepDeviceData.g.cs b/src/libs/Terra/Generated/Terra.Models.SleepDeviceData.g.cs deleted file mode 100644 index a1cecee2..00000000 --- a/src/libs/Terra/Generated/Terra.Models.SleepDeviceData.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Object containing information on the device which recorded data for the payload. - /// - public sealed partial class SleepDeviceData - { - - /// - /// 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.SleepDurationsDataAsleep.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.SleepDurationsDataAsleep.Json.g.cs deleted file mode 100644 index 2d18159f..00000000 --- a/src/libs/Terra/Generated/Terra.Models.SleepDurationsDataAsleep.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class SleepDurationsDataAsleep - { - /// - /// 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.SleepDurationsDataAsleep? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.SleepDurationsDataAsleep), - jsonSerializerContext) as global::Terra.SleepDurationsDataAsleep; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.SleepDurationsDataAsleep? 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.SleepDurationsDataAsleep? 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.SleepDurationsDataAsleep), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.SleepDurationsDataAsleep; - } - - /// - /// 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.SleepDurationsDataAsleep.g.cs b/src/libs/Terra/Generated/Terra.Models.SleepDurationsDataAsleep.g.cs deleted file mode 100644 index 7dad452a..00000000 --- a/src/libs/Terra/Generated/Terra.Models.SleepDurationsDataAsleep.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Object containing information on the duration the user spent asleep during the sleep recording session. - /// - public sealed partial class SleepDurationsDataAsleep - { - - /// - /// 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.SleepDurationsDataAwake.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.SleepDurationsDataAwake.Json.g.cs deleted file mode 100644 index 48fbccce..00000000 --- a/src/libs/Terra/Generated/Terra.Models.SleepDurationsDataAwake.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class SleepDurationsDataAwake - { - /// - /// 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.SleepDurationsDataAwake? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.SleepDurationsDataAwake), - jsonSerializerContext) as global::Terra.SleepDurationsDataAwake; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.SleepDurationsDataAwake? 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.SleepDurationsDataAwake? 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.SleepDurationsDataAwake), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.SleepDurationsDataAwake; - } - - /// - /// 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.SleepDurationsDataAwake.g.cs b/src/libs/Terra/Generated/Terra.Models.SleepDurationsDataAwake.g.cs deleted file mode 100644 index 519ec700..00000000 --- a/src/libs/Terra/Generated/Terra.Models.SleepDurationsDataAwake.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Object containing information on the duration the user spent awake during the sleep recording session. - /// - public sealed partial class SleepDurationsDataAwake - { - - /// - /// 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.SleepDurationsDataOther.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.SleepDurationsDataOther.Json.g.cs deleted file mode 100644 index 49ae6f35..00000000 --- a/src/libs/Terra/Generated/Terra.Models.SleepDurationsDataOther.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class SleepDurationsDataOther - { - /// - /// 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.SleepDurationsDataOther? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.SleepDurationsDataOther), - jsonSerializerContext) as global::Terra.SleepDurationsDataOther; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.SleepDurationsDataOther? 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.SleepDurationsDataOther? 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.SleepDurationsDataOther), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.SleepDurationsDataOther; - } - - /// - /// 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.SleepDurationsDataOther.g.cs b/src/libs/Terra/Generated/Terra.Models.SleepDurationsDataOther.g.cs deleted file mode 100644 index 62f6cfce..00000000 --- a/src/libs/Terra/Generated/Terra.Models.SleepDurationsDataOther.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Object containing information on the miscellaneous duration data for the sleep recording session. - /// - public sealed partial class SleepDurationsDataOther - { - - /// - /// 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.SleepHeartRateData.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.SleepHeartRateData.Json.g.cs deleted file mode 100644 index b201020b..00000000 --- a/src/libs/Terra/Generated/Terra.Models.SleepHeartRateData.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class SleepHeartRateData - { - /// - /// 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.SleepHeartRateData? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.SleepHeartRateData), - jsonSerializerContext) as global::Terra.SleepHeartRateData; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.SleepHeartRateData? 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.SleepHeartRateData? 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.SleepHeartRateData), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.SleepHeartRateData; - } - - /// - /// 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.SleepHeartRateData.g.cs b/src/libs/Terra/Generated/Terra.Models.SleepHeartRateData.g.cs deleted file mode 100644 index 562e3338..00000000 --- a/src/libs/Terra/Generated/Terra.Models.SleepHeartRateData.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Object containing information on the user's heart rate during the sleep session. - /// - public sealed partial class SleepHeartRateData - { - - /// - /// 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.SleepReadinessData.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.SleepReadinessData.Json.g.cs deleted file mode 100644 index d581f84c..00000000 --- a/src/libs/Terra/Generated/Terra.Models.SleepReadinessData.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class SleepReadinessData - { - /// - /// 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.SleepReadinessData? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.SleepReadinessData), - jsonSerializerContext) as global::Terra.SleepReadinessData; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.SleepReadinessData? 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.SleepReadinessData? 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.SleepReadinessData), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.SleepReadinessData; - } - - /// - /// 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.SleepReadinessData.g.cs b/src/libs/Terra/Generated/Terra.Models.SleepReadinessData.g.cs deleted file mode 100644 index 029d273c..00000000 --- a/src/libs/Terra/Generated/Terra.Models.SleepReadinessData.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Object containing information on the user's readiness for the day, based off the quality and duration of their sleep. - /// - public sealed partial class SleepReadinessData - { - - /// - /// 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.SleepRespirationData.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.SleepRespirationData.Json.g.cs deleted file mode 100644 index 941e90fa..00000000 --- a/src/libs/Terra/Generated/Terra.Models.SleepRespirationData.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class SleepRespirationData - { - /// - /// 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.SleepRespirationData? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.SleepRespirationData), - jsonSerializerContext) as global::Terra.SleepRespirationData; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.SleepRespirationData? 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.SleepRespirationData? 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.SleepRespirationData), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.SleepRespirationData; - } - - /// - /// 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.SleepRespirationData.g.cs b/src/libs/Terra/Generated/Terra.Models.SleepRespirationData.g.cs deleted file mode 100644 index 25aa5bec..00000000 --- a/src/libs/Terra/Generated/Terra.Models.SleepRespirationData.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Object containing information on the user's respiration throughout the sleep session. - /// - public sealed partial class SleepRespirationData - { - - /// - /// 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.SleepScores.g.cs b/src/libs/Terra/Generated/Terra.Models.SleepScores.g.cs index 936095da..61aed4a7 100644 --- a/src/libs/Terra/Generated/Terra.Models.SleepScores.g.cs +++ b/src/libs/Terra/Generated/Terra.Models.SleepScores.g.cs @@ -4,10 +4,17 @@ namespace Terra { /// - /// Scores summarising the user's sleep session. + /// /// public sealed partial class SleepScores { + /// + /// User's sleep score for the session.
+ /// Example: 85 + ///
+ /// 85 + [global::System.Text.Json.Serialization.JsonPropertyName("sleep")] + public double? Sleep { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -15,5 +22,28 @@ public sealed partial class SleepScores [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. + /// + /// + /// User's sleep score for the session.
+ /// Example: 85 + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public SleepScores( + double? sleep) + { + this.Sleep = sleep; + } + + /// + /// Initializes a new instance of the class. + /// + public SleepScores() + { + } + } } \ No newline at end of file diff --git a/src/libs/Terra/Generated/Terra.Models.SleepScores2.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.SleepScores2.Json.g.cs deleted file mode 100644 index 1327c84c..00000000 --- a/src/libs/Terra/Generated/Terra.Models.SleepScores2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class SleepScores2 - { - /// - /// 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.SleepScores2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.SleepScores2), - jsonSerializerContext) as global::Terra.SleepScores2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.SleepScores2? 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.SleepScores2? 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.SleepScores2), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.SleepScores2; - } - - /// - /// 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.SleepScores2.g.cs b/src/libs/Terra/Generated/Terra.Models.SleepScores2.g.cs deleted file mode 100644 index 609875e3..00000000 --- a/src/libs/Terra/Generated/Terra.Models.SleepScores2.g.cs +++ /dev/null @@ -1,49 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// - /// - public sealed partial class SleepScores2 - { - /// - /// User's sleep score for the session.
- /// Example: 85 - ///
- /// 85 - [global::System.Text.Json.Serialization.JsonPropertyName("sleep")] - public double? Sleep { 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. - /// - /// - /// User's sleep score for the session.
- /// Example: 85 - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public SleepScores2( - double? sleep) - { - this.Sleep = sleep; - } - - /// - /// Initializes a new instance of the class. - /// - public SleepScores2() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Terra/Generated/Terra.Models.SleepSleepDurationsData.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.SleepSleepDurationsData.Json.g.cs deleted file mode 100644 index f5cbc52a..00000000 --- a/src/libs/Terra/Generated/Terra.Models.SleepSleepDurationsData.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class SleepSleepDurationsData - { - /// - /// 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.SleepSleepDurationsData? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.SleepSleepDurationsData), - jsonSerializerContext) as global::Terra.SleepSleepDurationsData; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.SleepSleepDurationsData? 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.SleepSleepDurationsData? 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.SleepSleepDurationsData), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.SleepSleepDurationsData; - } - - /// - /// 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.SleepSleepDurationsData.g.cs b/src/libs/Terra/Generated/Terra.Models.SleepSleepDurationsData.g.cs deleted file mode 100644 index b267a84d..00000000 --- a/src/libs/Terra/Generated/Terra.Models.SleepSleepDurationsData.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// Object containing information on the user's duration spent in various sleep stages. - /// - public sealed partial class SleepSleepDurationsData - { - - /// - /// 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.SleepTemperatureData.g.cs b/src/libs/Terra/Generated/Terra.Models.SleepTemperatureData.g.cs index 4094d4f6..2579714c 100644 --- a/src/libs/Terra/Generated/Terra.Models.SleepTemperatureData.g.cs +++ b/src/libs/Terra/Generated/Terra.Models.SleepTemperatureData.g.cs @@ -4,10 +4,25 @@ namespace Terra { /// - /// Object containing body temperature information of the user during the sleep recording session. + /// /// public sealed partial class SleepTemperatureData { + /// + /// Variation in user's skin temperature from their baseline.
+ /// Example: 0.5 + ///
+ /// 0.5 + [global::System.Text.Json.Serialization.JsonPropertyName("delta")] + public double? Delta { get; set; } + + /// + /// Mean absolute skin temperature in degrees Celsius over the sleep window. Null for providers that only report a baseline deviation.
+ /// Example: 33.7 + ///
+ /// 33.7 + [global::System.Text.Json.Serialization.JsonPropertyName("avg_skin_temperature_celsius")] + public double? AvgSkinTemperatureCelsius { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -15,5 +30,34 @@ public sealed partial class SleepTemperatureData [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. + /// + /// + /// Variation in user's skin temperature from their baseline.
+ /// Example: 0.5 + /// + /// + /// Mean absolute skin temperature in degrees Celsius over the sleep window. Null for providers that only report a baseline deviation.
+ /// Example: 33.7 + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public SleepTemperatureData( + double? delta, + double? avgSkinTemperatureCelsius) + { + this.Delta = delta; + this.AvgSkinTemperatureCelsius = avgSkinTemperatureCelsius; + } + + /// + /// Initializes a new instance of the class. + /// + public SleepTemperatureData() + { + } + } } \ No newline at end of file diff --git a/src/libs/Terra/Generated/Terra.Models.SleepTemperatureData2.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.SleepTemperatureData2.Json.g.cs deleted file mode 100644 index d07a7ea7..00000000 --- a/src/libs/Terra/Generated/Terra.Models.SleepTemperatureData2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class SleepTemperatureData2 - { - /// - /// 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.SleepTemperatureData2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.SleepTemperatureData2), - jsonSerializerContext) as global::Terra.SleepTemperatureData2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.SleepTemperatureData2? 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.SleepTemperatureData2? 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.SleepTemperatureData2), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.SleepTemperatureData2; - } - - /// - /// 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.SleepTemperatureData2.g.cs b/src/libs/Terra/Generated/Terra.Models.SleepTemperatureData2.g.cs deleted file mode 100644 index bc0a586d..00000000 --- a/src/libs/Terra/Generated/Terra.Models.SleepTemperatureData2.g.cs +++ /dev/null @@ -1,63 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// - /// - public sealed partial class SleepTemperatureData2 - { - /// - /// Variation in user's skin temperature from their baseline.
- /// Example: 0.5 - ///
- /// 0.5 - [global::System.Text.Json.Serialization.JsonPropertyName("delta")] - public double? Delta { get; set; } - - /// - /// Mean absolute skin temperature in degrees Celsius over the sleep window. Null for providers that only report a baseline deviation.
- /// Example: 33.7 - ///
- /// 33.7 - [global::System.Text.Json.Serialization.JsonPropertyName("avg_skin_temperature_celsius")] - public double? AvgSkinTemperatureCelsius { 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. - /// - /// - /// Variation in user's skin temperature from their baseline.
- /// Example: 0.5 - /// - /// - /// Mean absolute skin temperature in degrees Celsius over the sleep window. Null for providers that only report a baseline deviation.
- /// Example: 33.7 - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public SleepTemperatureData2( - double? delta, - double? avgSkinTemperatureCelsius) - { - this.Delta = delta; - this.AvgSkinTemperatureCelsius = avgSkinTemperatureCelsius; - } - - /// - /// Initializes a new instance of the class. - /// - public SleepTemperatureData2() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Terra/Generated/Terra.Models.StrengthExerciseModifiers2.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.StrengthExerciseModifiers2.Json.g.cs deleted file mode 100644 index 623be025..00000000 --- a/src/libs/Terra/Generated/Terra.Models.StrengthExerciseModifiers2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class StrengthExerciseModifiers2 - { - /// - /// 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.StrengthExerciseModifiers2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.StrengthExerciseModifiers2), - jsonSerializerContext) as global::Terra.StrengthExerciseModifiers2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.StrengthExerciseModifiers2? 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.StrengthExerciseModifiers2? 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.StrengthExerciseModifiers2), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.StrengthExerciseModifiers2; - } - - /// - /// 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.StrengthExerciseModifiers2.g.cs b/src/libs/Terra/Generated/Terra.Models.StrengthExerciseModifiers2.g.cs deleted file mode 100644 index 074698ff..00000000 --- a/src/libs/Terra/Generated/Terra.Models.StrengthExerciseModifiers2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// The axes that qualify the exercise. An axis that is absent was not reported by the source — it does NOT mean a default applies, so a squat with no implement is not the same as a bodyweight squat. Axes describe the exercise as performed rather than each movement separately: in a step up to a deficit reverse lunge only the lunge is at a deficit, but the axis describes the whole exercise and exercise_name carries the detail. - /// - public sealed partial class StrengthExerciseModifiers2 - { - - /// - /// 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.UserReauthEventOldUser.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.UserReauthEventOldUser.Json.g.cs deleted file mode 100644 index 72996d3f..00000000 --- a/src/libs/Terra/Generated/Terra.Models.UserReauthEventOldUser.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class UserReauthEventOldUser - { - /// - /// 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.UserReauthEventOldUser? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.UserReauthEventOldUser), - jsonSerializerContext) as global::Terra.UserReauthEventOldUser; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.UserReauthEventOldUser? 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.UserReauthEventOldUser? 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.UserReauthEventOldUser), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.UserReauthEventOldUser; - } - - /// - /// 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.UserReauthEventOldUser.g.cs b/src/libs/Terra/Generated/Terra.Models.UserReauthEventOldUser.g.cs deleted file mode 100644 index 9a1566c1..00000000 --- a/src/libs/Terra/Generated/Terra.Models.UserReauthEventOldUser.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// The old user record that will be deleted, when available - /// - public sealed partial class UserReauthEventOldUser - { - - /// - /// 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.WorkoutStepStrength.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.WorkoutStepStrength.Json.g.cs deleted file mode 100644 index 80c001cd..00000000 --- a/src/libs/Terra/Generated/Terra.Models.WorkoutStepStrength.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class WorkoutStepStrength - { - /// - /// 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.WorkoutStepStrength? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.WorkoutStepStrength), - jsonSerializerContext) as global::Terra.WorkoutStepStrength; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.WorkoutStepStrength? 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.WorkoutStepStrength? 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.WorkoutStepStrength), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.WorkoutStepStrength; - } - - /// - /// 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.WorkoutStepStrength.g.cs b/src/libs/Terra/Generated/Terra.Models.WorkoutStepStrength.g.cs deleted file mode 100644 index 462f335c..00000000 --- a/src/libs/Terra/Generated/Terra.Models.WorkoutStepStrength.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// - /// - public sealed partial class WorkoutStepStrength - { - - /// - /// 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.WorkoutStepSwimming.Json.g.cs b/src/libs/Terra/Generated/Terra.Models.WorkoutStepSwimming.Json.g.cs deleted file mode 100644 index c8140274..00000000 --- a/src/libs/Terra/Generated/Terra.Models.WorkoutStepSwimming.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Terra -{ - public sealed partial class WorkoutStepSwimming - { - /// - /// 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.WorkoutStepSwimming? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Terra.WorkoutStepSwimming), - jsonSerializerContext) as global::Terra.WorkoutStepSwimming; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Terra.WorkoutStepSwimming? 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.WorkoutStepSwimming? 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.WorkoutStepSwimming), - jsonSerializerContext).ConfigureAwait(false)) as global::Terra.WorkoutStepSwimming; - } - - /// - /// 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.WorkoutStepSwimming.g.cs b/src/libs/Terra/Generated/Terra.Models.WorkoutStepSwimming.g.cs deleted file mode 100644 index edf737d3..00000000 --- a/src/libs/Terra/Generated/Terra.Models.WorkoutStepSwimming.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Terra -{ - /// - /// - /// - public sealed partial class WorkoutStepSwimming - { - - /// - /// 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