@keiser/metrics-sdk-admin-typescript 5.3.18 → 5.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -2
- package/dist/apis/MetricsAdminApi.d.ts +13 -2
- package/dist/connection.d.ts +3 -3
- package/dist/index.js +6006 -3206
- package/dist/index.mjs +5864 -3207
- package/dist/models/A400DataSetData.d.ts +50 -0
- package/dist/models/A500AppType.d.ts +20 -8
- package/dist/models/A500DataSetData.d.ts +5 -5
- package/dist/models/A500DataSetType.d.ts +18 -6
- package/dist/models/A500MachineStateData.d.ts +4 -4
- package/dist/models/A500RepDataPointData.d.ts +3 -3
- package/dist/models/A500TestResultData.d.ts +2 -2
- package/dist/models/A500TimeSeriesPointData.d.ts +2 -2
- package/dist/models/AcceptedTermsVersionData.d.ts +2 -2
- package/dist/models/AccessControlRight.d.ts +18 -6
- package/dist/models/AnalyticRight.d.ts +17 -5
- package/dist/models/BodyCompositionMeasurementData.d.ts +2 -2
- package/dist/models/CacheKeysResponse.d.ts +2 -2
- package/dist/models/CacheObject.d.ts +2 -2
- package/dist/models/CacheObjectResponse.d.ts +2 -2
- package/dist/models/CardioExerciseData.d.ts +4 -4
- package/dist/models/CardioExerciseVariantData.d.ts +4 -4
- package/dist/models/CardioExerciseVariantType.d.ts +17 -5
- package/dist/models/CardioMachineData.d.ts +3 -3
- package/dist/models/CardioMachineParseCode.d.ts +18 -6
- package/dist/models/CharacterType.d.ts +18 -6
- package/dist/models/DisplayDataMode.d.ts +35 -0
- package/dist/models/DisplayFocusMode.d.ts +35 -0
- package/dist/models/DisplayUnit.d.ts +36 -0
- package/dist/models/EmailAddressData.d.ts +2 -2
- package/dist/models/EmployeeRole.d.ts +21 -9
- package/dist/models/Exercise.d.ts +49 -0
- package/dist/models/ExerciseAliasData.d.ts +4 -4
- package/dist/models/ExerciseAliasType.d.ts +19 -7
- package/dist/models/ExerciseOrdinalSetAssignmentData.d.ts +3 -3
- package/dist/models/ExerciseOrdinalSetData.d.ts +2 -2
- package/dist/models/ExerciseRight.d.ts +17 -5
- package/dist/models/FacilityConfigurationData.d.ts +2 -2
- package/dist/models/FacilityData.d.ts +15 -2
- package/dist/models/FacilityDisplayConfigurationData.d.ts +132 -0
- package/dist/models/FacilityDisplayOperatingSchedule.d.ts +68 -0
- package/dist/models/FacilityDisplayOperatingScheduleEntry.d.ts +38 -0
- package/dist/models/FacilityDisplayOperatingScheduleTime.d.ts +37 -0
- package/dist/models/FacilityLicenseData.d.ts +2 -2
- package/dist/models/FacilityLicenseListResponse.d.ts +2 -2
- package/dist/models/FacilityLicenseListResponseMeta.d.ts +2 -2
- package/dist/models/FacilityLicenseResponse.d.ts +2 -2
- package/dist/models/FacilityLicenseSorting.d.ts +20 -8
- package/dist/models/FacilityLicenseType.d.ts +19 -7
- package/dist/models/FacilityProfileData.d.ts +2 -2
- package/dist/models/FacilityRelationshipData.d.ts +21 -3
- package/dist/models/FacilityResponse.d.ts +44 -0
- package/dist/models/FacilityRight.d.ts +18 -6
- package/dist/models/FacilitySessionUserData.d.ts +6 -6
- package/dist/models/FacilityStrengthMachineConfigurationData.d.ts +3 -3
- package/dist/models/FacilityStrengthMachineData.d.ts +3 -3
- package/dist/models/ForceUnit.d.ts +20 -8
- package/dist/models/GlobalAccessControlCreationResponse.d.ts +2 -2
- package/dist/models/GlobalAccessControlData.d.ts +6 -6
- package/dist/models/GlobalAccessControlListResponse.d.ts +2 -2
- package/dist/models/GlobalAccessControlListResponseMeta.d.ts +2 -2
- package/dist/models/GlobalAccessControlResponse.d.ts +2 -2
- package/dist/models/GlobalAccessControlSecretData.d.ts +2 -2
- package/dist/models/GlobalAccessControlSecretResponse.d.ts +2 -2
- package/dist/models/GlobalAccessControlSorting.d.ts +18 -6
- package/dist/models/HeartRateDataPointData.d.ts +2 -2
- package/dist/models/HeartRateDataSetData.d.ts +2 -2
- package/dist/models/HeartRateDataSetSessionData.d.ts +2 -2
- package/dist/models/HeightMeasurementData.d.ts +2 -2
- package/dist/models/High.d.ts +2 -2
- package/dist/models/LicenseRight.d.ts +18 -6
- package/dist/models/Low.d.ts +2 -2
- package/dist/models/MSeriesDataPointData.d.ts +2 -2
- package/dist/models/MSeriesDataSetData.d.ts +4 -4
- package/dist/models/MSeriesDataSetSegmentData.d.ts +2 -2
- package/dist/models/MSeriesFtpMeasurementData.d.ts +2 -2
- package/dist/models/MSeriesGuidedSessionRight.d.ts +18 -6
- package/dist/models/MachineWorkoutSetResponseData.d.ts +154 -0
- package/dist/models/MaintenanceStatus.d.ts +2 -2
- package/dist/models/MotionDataPoint.d.ts +79 -0
- package/dist/models/MuscleArea.d.ts +19 -7
- package/dist/models/MuscleData.d.ts +2 -2
- package/dist/models/MuscleGroup.d.ts +30 -18
- package/dist/models/MuscleTargetLevel.d.ts +19 -7
- package/dist/models/OAuthServiceData.d.ts +2 -2
- package/dist/models/PowerRegression.d.ts +43 -0
- package/dist/models/PrimaryEmailAddressData.d.ts +2 -2
- package/dist/models/ProfileData.d.ts +14 -2
- package/dist/models/Queue.d.ts +18 -6
- package/dist/models/ResistancePrecision.d.ts +18 -6
- package/dist/models/ResqueDetailsData.d.ts +6 -4
- package/dist/models/ResqueDetailsResponse.d.ts +2 -2
- package/dist/models/ResqueRight.d.ts +18 -6
- package/dist/models/ServiceStatusResponse.d.ts +2 -2
- package/dist/models/SessionData.d.ts +6 -6
- package/dist/models/SessionPlanActivitySetData.d.ts +2 -2
- package/dist/models/SessionPlanCardioSetData.d.ts +3 -3
- package/dist/models/SessionPlanData.d.ts +3 -3
- package/dist/models/SessionPlanSequenceAssignmentData.d.ts +2 -2
- package/dist/models/SessionPlanSequenceData.d.ts +2 -2
- package/dist/models/SessionPlanSequenceInstanceData.d.ts +3 -3
- package/dist/models/SessionPlanSetData.d.ts +4 -4
- package/dist/models/SessionPlanSetInstanceData.d.ts +3 -3
- package/dist/models/SessionPlanSetType.d.ts +20 -8
- package/dist/models/SessionPlanStrengthSetData.d.ts +3 -3
- package/dist/models/SessionPlanStretchSetData.d.ts +2 -2
- package/dist/models/SetType.d.ts +36 -0
- package/dist/models/Side.d.ts +18 -6
- package/dist/models/SixRepTestData.d.ts +43 -0
- package/dist/models/StatData.d.ts +2 -2
- package/dist/models/StatListResponse.d.ts +3 -3
- package/dist/models/StatListResponseMeta.d.ts +2 -2
- package/dist/models/StatSorting.d.ts +18 -6
- package/dist/models/StrengthExerciseCategory.d.ts +21 -9
- package/dist/models/StrengthExerciseData.d.ts +5 -5
- package/dist/models/StrengthExerciseMovement.d.ts +18 -6
- package/dist/models/StrengthExerciseMovementDEP.d.ts +18 -6
- package/dist/models/StrengthExercisePlane.d.ts +19 -7
- package/dist/models/StrengthExerciseVariantAttachment.d.ts +25 -13
- package/dist/models/StrengthExerciseVariantData.d.ts +6 -6
- package/dist/models/StrengthExerciseVariantType.d.ts +22 -10
- package/dist/models/StrengthMachineAppType.d.ts +20 -8
- package/dist/models/StrengthMachineData.d.ts +10 -3
- package/dist/models/StrengthMachineDataSetData.d.ts +37 -5
- package/dist/models/StrengthMachineDataSetTestData.d.ts +3 -3
- package/dist/models/StrengthMachineDataSetTestSubsetData.d.ts +2 -2
- package/dist/models/StrengthMachineLine.d.ts +23 -11
- package/dist/models/StrengthMachineModelData.d.ts +2 -2
- package/dist/models/StrengthMachineModelNumberData.d.ts +37 -0
- package/dist/models/StrengthTestType.d.ts +20 -8
- package/dist/models/StretchExerciseData.d.ts +3 -3
- package/dist/models/StretchExerciseVariantData.d.ts +2 -2
- package/dist/models/StretchExerciseVariantType.d.ts +17 -5
- package/dist/models/TaskFailedResponse.d.ts +3 -3
- package/dist/models/TaskFailure.d.ts +3 -3
- package/dist/models/TaskPayload.d.ts +2 -2
- package/dist/models/TaskQueueResponse.d.ts +3 -3
- package/dist/models/TaskQueueResponseMeta.d.ts +2 -2
- package/dist/models/TaskQueues.d.ts +2 -2
- package/dist/models/TaskSorting.d.ts +17 -5
- package/dist/models/TaskStats.d.ts +2 -2
- package/dist/models/TenRepTestData.d.ts +59 -0
- package/dist/models/TenRepTestSideResults.d.ts +63 -0
- package/dist/models/TestSide.d.ts +19 -7
- package/dist/models/TimeZone.d.ts +625 -0
- package/dist/models/UserData.d.ts +6 -6
- package/dist/models/UserListResponse.d.ts +2 -2
- package/dist/models/UserListResponseMeta.d.ts +2 -2
- package/dist/models/UserResponse.d.ts +2 -2
- package/dist/models/UserRight.d.ts +18 -6
- package/dist/models/UserSorting.d.ts +19 -7
- package/dist/models/Value.d.ts +37 -0
- package/dist/models/VelocityRegression.d.ts +37 -0
- package/dist/models/WeightMeasurementData.d.ts +2 -2
- package/dist/models/WorkersResponse.d.ts +6 -4
- package/dist/models/WorkoutSetPositionDataEvent.d.ts +50 -0
- package/dist/models/WorkoutSetRepDataPoint.d.ts +50 -0
- package/dist/models/WorkoutSetSideData.d.ts +110 -0
- package/dist/models/index.d.ts +24 -0
- package/dist/runtime.d.ts +13 -2
- package/docs/A400DataSetData.md +13 -0
- package/docs/A500AppType.md +4 -4
- package/docs/A500DataSetType.md +2 -2
- package/docs/AccessControlRight.md +2 -2
- package/docs/AnalyticRight.md +1 -1
- package/docs/CardioExerciseVariantType.md +1 -1
- package/docs/CardioMachineParseCode.md +2 -2
- package/docs/CharacterType.md +2 -2
- package/docs/DisplayDataMode.md +11 -0
- package/docs/DisplayFocusMode.md +11 -0
- package/docs/DisplayUnit.md +13 -0
- package/docs/EmployeeRole.md +5 -5
- package/docs/Exercise.md +13 -0
- package/docs/ExerciseAliasType.md +3 -3
- package/docs/ExerciseRight.md +1 -1
- package/docs/FacilityData.md +2 -0
- package/docs/FacilityDisplayConfigurationData.md +26 -0
- package/docs/FacilityDisplayOperatingSchedule.md +16 -0
- package/docs/FacilityDisplayOperatingScheduleEntry.md +11 -0
- package/docs/FacilityDisplayOperatingScheduleTime.md +11 -0
- package/docs/FacilityLicenseSorting.md +4 -4
- package/docs/FacilityLicenseType.md +3 -3
- package/docs/FacilityRelationshipData.md +3 -0
- package/docs/FacilityResponse.md +12 -0
- package/docs/FacilityRight.md +2 -2
- package/docs/ForceUnit.md +4 -4
- package/docs/GlobalAccessControlSorting.md +2 -2
- package/docs/LicenseRight.md +2 -2
- package/docs/MSeriesGuidedSessionRight.md +2 -2
- package/docs/MachineWorkoutSetResponseData.md +29 -0
- package/docs/MetricsAdminApi.md +55 -0
- package/docs/MotionDataPoint.md +18 -0
- package/docs/MuscleArea.md +3 -3
- package/docs/MuscleGroup.md +14 -14
- package/docs/MuscleTargetLevel.md +3 -3
- package/docs/PowerRegression.md +12 -0
- package/docs/ProfileData.md +2 -0
- package/docs/Queue.md +2 -2
- package/docs/ResistancePrecision.md +2 -2
- package/docs/ResqueDetailsData.md +1 -1
- package/docs/ResqueRight.md +2 -2
- package/docs/SessionPlanSetType.md +4 -4
- package/docs/SetType.md +13 -0
- package/docs/Side.md +2 -2
- package/docs/SixRepTestData.md +12 -0
- package/docs/StatSorting.md +2 -2
- package/docs/StrengthExerciseCategory.md +5 -5
- package/docs/StrengthExerciseMovement.md +2 -2
- package/docs/StrengthExerciseMovementDEP.md +2 -2
- package/docs/StrengthExercisePlane.md +3 -3
- package/docs/StrengthExerciseVariantAttachment.md +9 -9
- package/docs/StrengthExerciseVariantData.md +1 -1
- package/docs/StrengthExerciseVariantType.md +6 -6
- package/docs/StrengthMachineAppType.md +4 -4
- package/docs/StrengthMachineData.md +1 -0
- package/docs/StrengthMachineDataSetData.md +5 -0
- package/docs/StrengthMachineLine.md +7 -7
- package/docs/StrengthMachineModelNumberData.md +11 -0
- package/docs/StrengthTestType.md +4 -4
- package/docs/StretchExerciseVariantType.md +1 -1
- package/docs/TaskSorting.md +1 -1
- package/docs/TenRepTestData.md +26 -0
- package/docs/TenRepTestSideResults.md +15 -0
- package/docs/TestSide.md +3 -3
- package/docs/TimeZone.md +1191 -0
- package/docs/UserRight.md +2 -2
- package/docs/UserSorting.md +3 -3
- package/docs/Value.md +11 -0
- package/docs/VelocityRegression.md +11 -0
- package/docs/WorkersResponse.md +1 -1
- package/docs/WorkoutSetPositionDataEvent.md +13 -0
- package/docs/WorkoutSetRepDataPoint.md +13 -0
- package/docs/WorkoutSetSideData.md +23 -0
- package/package.json +3 -1
- package/src/apis/MetricsAdminApi.ts +65 -1
- package/src/connection.ts +21 -9
- package/src/models/A400DataSetData.ts +94 -0
- package/src/models/A500AppType.ts +28 -9
- package/src/models/A500DataSetData.ts +38 -43
- package/src/models/A500DataSetType.ts +26 -7
- package/src/models/A500MachineStateData.ts +31 -36
- package/src/models/A500RepDataPointData.ts +55 -60
- package/src/models/A500TestResultData.ts +33 -38
- package/src/models/A500TimeSeriesPointData.ts +47 -52
- package/src/models/AcceptedTermsVersionData.ts +13 -18
- package/src/models/AccessControlRight.ts +26 -7
- package/src/models/AnalyticRight.ts +25 -6
- package/src/models/BodyCompositionMeasurementData.ts +69 -74
- package/src/models/CacheKeysResponse.ts +13 -18
- package/src/models/CacheObject.ts +17 -22
- package/src/models/CacheObjectResponse.ts +13 -18
- package/src/models/CardioExerciseData.ts +31 -36
- package/src/models/CardioExerciseVariantData.ts +32 -37
- package/src/models/CardioExerciseVariantType.ts +25 -6
- package/src/models/CardioMachineData.ts +27 -32
- package/src/models/CardioMachineParseCode.ts +26 -7
- package/src/models/CharacterType.ts +26 -7
- package/src/models/DisplayDataMode.ts +60 -0
- package/src/models/DisplayFocusMode.ts +60 -0
- package/src/models/DisplayUnit.ts +62 -0
- package/src/models/EmailAddressData.ts +15 -20
- package/src/models/EmployeeRole.ts +29 -10
- package/src/models/Exercise.ts +88 -0
- package/src/models/ExerciseAliasData.ts +30 -35
- package/src/models/ExerciseAliasType.ts +27 -8
- package/src/models/ExerciseOrdinalSetAssignmentData.ts +25 -30
- package/src/models/ExerciseOrdinalSetData.ts +17 -22
- package/src/models/ExerciseRight.ts +25 -6
- package/src/models/FacilityConfigurationData.ts +27 -32
- package/src/models/FacilityData.ts +42 -24
- package/src/models/FacilityDisplayConfigurationData.ts +233 -0
- package/src/models/FacilityDisplayOperatingSchedule.ts +122 -0
- package/src/models/FacilityDisplayOperatingScheduleEntry.ts +77 -0
- package/src/models/FacilityDisplayOperatingScheduleTime.ts +70 -0
- package/src/models/FacilityLicenseData.ts +23 -28
- package/src/models/FacilityLicenseListResponse.ts +15 -20
- package/src/models/FacilityLicenseListResponseMeta.ts +25 -30
- package/src/models/FacilityLicenseResponse.ts +13 -18
- package/src/models/FacilityLicenseSorting.ts +28 -9
- package/src/models/FacilityLicenseType.ts +27 -8
- package/src/models/FacilityProfileData.ts +23 -28
- package/src/models/FacilityRelationshipData.ts +56 -36
- package/src/models/FacilityResponse.ts +84 -0
- package/src/models/FacilityRight.ts +26 -7
- package/src/models/FacilitySessionUserData.ts +55 -60
- package/src/models/FacilityStrengthMachineConfigurationData.ts +29 -34
- package/src/models/FacilityStrengthMachineData.ts +37 -42
- package/src/models/ForceUnit.ts +28 -9
- package/src/models/GlobalAccessControlCreationResponse.ts +15 -20
- package/src/models/GlobalAccessControlData.ts +51 -56
- package/src/models/GlobalAccessControlListResponse.ts +15 -20
- package/src/models/GlobalAccessControlListResponseMeta.ts +19 -24
- package/src/models/GlobalAccessControlResponse.ts +13 -18
- package/src/models/GlobalAccessControlSecretData.ts +11 -16
- package/src/models/GlobalAccessControlSecretResponse.ts +13 -18
- package/src/models/GlobalAccessControlSorting.ts +26 -7
- package/src/models/HeartRateDataPointData.ts +15 -20
- package/src/models/HeartRateDataSetData.ts +25 -30
- package/src/models/HeartRateDataSetSessionData.ts +17 -22
- package/src/models/HeightMeasurementData.ts +17 -22
- package/src/models/High.ts +9 -14
- package/src/models/LicenseRight.ts +26 -7
- package/src/models/Low.ts +9 -14
- package/src/models/MSeriesDataPointData.ts +33 -38
- package/src/models/MSeriesDataSetData.ts +82 -87
- package/src/models/MSeriesDataSetSegmentData.ts +41 -46
- package/src/models/MSeriesFtpMeasurementData.ts +23 -28
- package/src/models/MSeriesGuidedSessionRight.ts +26 -7
- package/src/models/MachineWorkoutSetResponseData.ts +285 -0
- package/src/models/MaintenanceStatus.ts +23 -28
- package/src/models/MotionDataPoint.ts +133 -0
- package/src/models/MuscleArea.ts +27 -8
- package/src/models/MuscleData.ts +17 -22
- package/src/models/MuscleGroup.ts +38 -19
- package/src/models/MuscleTargetLevel.ts +27 -8
- package/src/models/OAuthServiceData.ts +23 -28
- package/src/models/PowerRegression.ts +79 -0
- package/src/models/PrimaryEmailAddressData.ts +11 -16
- package/src/models/ProfileData.ts +37 -26
- package/src/models/Queue.ts +26 -7
- package/src/models/ResistancePrecision.ts +26 -7
- package/src/models/ResqueDetailsData.ts +17 -22
- package/src/models/ResqueDetailsResponse.ts +13 -18
- package/src/models/ResqueRight.ts +26 -7
- package/src/models/ServiceStatusResponse.ts +9 -14
- package/src/models/SessionData.ts +63 -68
- package/src/models/SessionPlanActivitySetData.ts +9 -14
- package/src/models/SessionPlanCardioSetData.ts +23 -28
- package/src/models/SessionPlanData.ts +43 -48
- package/src/models/SessionPlanSequenceAssignmentData.ts +13 -18
- package/src/models/SessionPlanSequenceData.ts +19 -24
- package/src/models/SessionPlanSequenceInstanceData.ts +31 -36
- package/src/models/SessionPlanSetData.ts +32 -37
- package/src/models/SessionPlanSetInstanceData.ts +29 -34
- package/src/models/SessionPlanSetType.ts +28 -9
- package/src/models/SessionPlanStrengthSetData.ts +23 -28
- package/src/models/SessionPlanStretchSetData.ts +9 -14
- package/src/models/SetType.ts +62 -0
- package/src/models/Side.ts +26 -7
- package/src/models/SixRepTestData.ts +79 -0
- package/src/models/StatData.ts +31 -36
- package/src/models/StatListResponse.ts +21 -26
- package/src/models/StatListResponseMeta.ts +21 -26
- package/src/models/StatSorting.ts +26 -7
- package/src/models/StrengthExerciseCategory.ts +29 -10
- package/src/models/StrengthExerciseData.ts +44 -49
- package/src/models/StrengthExerciseMovement.ts +26 -7
- package/src/models/StrengthExerciseMovementDEP.ts +26 -7
- package/src/models/StrengthExercisePlane.ts +27 -8
- package/src/models/StrengthExerciseVariantAttachment.ts +33 -14
- package/src/models/StrengthExerciseVariantData.ts +44 -50
- package/src/models/StrengthExerciseVariantType.ts +30 -11
- package/src/models/StrengthMachineAppType.ts +28 -9
- package/src/models/StrengthMachineData.ts +43 -34
- package/src/models/StrengthMachineDataSetData.ts +126 -79
- package/src/models/StrengthMachineDataSetTestData.ts +19 -24
- package/src/models/StrengthMachineDataSetTestSubsetData.ts +15 -20
- package/src/models/StrengthMachineLine.ts +31 -12
- package/src/models/StrengthMachineModelData.ts +9 -14
- package/src/models/StrengthMachineModelNumberData.ts +70 -0
- package/src/models/StrengthTestType.ts +28 -9
- package/src/models/StretchExerciseData.ts +23 -28
- package/src/models/StretchExerciseVariantData.ts +19 -24
- package/src/models/StretchExerciseVariantType.ts +25 -6
- package/src/models/TaskFailedResponse.ts +21 -26
- package/src/models/TaskFailure.ts +27 -32
- package/src/models/TaskPayload.ts +13 -18
- package/src/models/TaskQueueResponse.ts +21 -26
- package/src/models/TaskQueueResponseMeta.ts +19 -24
- package/src/models/TaskQueues.ts +11 -16
- package/src/models/TaskSorting.ts +25 -6
- package/src/models/TaskStats.ts +11 -16
- package/src/models/TenRepTestData.ts +111 -0
- package/src/models/TenRepTestSideResults.ts +119 -0
- package/src/models/TestSide.ts +27 -8
- package/src/models/TimeZone.ts +1240 -0
- package/src/models/UserData.ts +55 -60
- package/src/models/UserListResponse.ts +15 -20
- package/src/models/UserListResponseMeta.ts +21 -26
- package/src/models/UserResponse.ts +13 -18
- package/src/models/UserRight.ts +26 -7
- package/src/models/UserSorting.ts +27 -8
- package/src/models/Value.ts +69 -0
- package/src/models/VelocityRegression.ts +70 -0
- package/src/models/WeightMeasurementData.ts +21 -26
- package/src/models/WorkersResponse.ts +15 -20
- package/src/models/WorkoutSetPositionDataEvent.ts +95 -0
- package/src/models/WorkoutSetRepDataPoint.ts +95 -0
- package/src/models/WorkoutSetSideData.ts +185 -0
- package/src/models/index.ts +24 -0
- package/src/runtime.ts +44 -9
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* metrics-sdk-admin
|
|
5
5
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 5.
|
|
7
|
+
* The version of the OpenAPI document: 5.4.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -12,19 +12,31 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import {
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
16
|
import type { FacilityData } from './FacilityData';
|
|
17
17
|
import {
|
|
18
18
|
FacilityDataFromJSON,
|
|
19
19
|
FacilityDataFromJSONTyped,
|
|
20
20
|
FacilityDataToJSON,
|
|
21
21
|
} from './FacilityData';
|
|
22
|
-
import type {
|
|
22
|
+
import type { SessionPlanSequenceInstanceData } from './SessionPlanSequenceInstanceData';
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
} from './
|
|
24
|
+
SessionPlanSequenceInstanceDataFromJSON,
|
|
25
|
+
SessionPlanSequenceInstanceDataFromJSONTyped,
|
|
26
|
+
SessionPlanSequenceInstanceDataToJSON,
|
|
27
|
+
} from './SessionPlanSequenceInstanceData';
|
|
28
|
+
import type { WeightMeasurementData } from './WeightMeasurementData';
|
|
29
|
+
import {
|
|
30
|
+
WeightMeasurementDataFromJSON,
|
|
31
|
+
WeightMeasurementDataFromJSONTyped,
|
|
32
|
+
WeightMeasurementDataToJSON,
|
|
33
|
+
} from './WeightMeasurementData';
|
|
34
|
+
import type { UserData } from './UserData';
|
|
35
|
+
import {
|
|
36
|
+
UserDataFromJSON,
|
|
37
|
+
UserDataFromJSONTyped,
|
|
38
|
+
UserDataToJSON,
|
|
39
|
+
} from './UserData';
|
|
28
40
|
import type { HeightMeasurementData } from './HeightMeasurementData';
|
|
29
41
|
import {
|
|
30
42
|
HeightMeasurementDataFromJSON,
|
|
@@ -37,30 +49,18 @@ import {
|
|
|
37
49
|
MSeriesDataSetDataFromJSONTyped,
|
|
38
50
|
MSeriesDataSetDataToJSON,
|
|
39
51
|
} from './MSeriesDataSetData';
|
|
40
|
-
import type { SessionPlanSequenceInstanceData } from './SessionPlanSequenceInstanceData';
|
|
41
|
-
import {
|
|
42
|
-
SessionPlanSequenceInstanceDataFromJSON,
|
|
43
|
-
SessionPlanSequenceInstanceDataFromJSONTyped,
|
|
44
|
-
SessionPlanSequenceInstanceDataToJSON,
|
|
45
|
-
} from './SessionPlanSequenceInstanceData';
|
|
46
52
|
import type { StrengthMachineDataSetData } from './StrengthMachineDataSetData';
|
|
47
53
|
import {
|
|
48
54
|
StrengthMachineDataSetDataFromJSON,
|
|
49
55
|
StrengthMachineDataSetDataFromJSONTyped,
|
|
50
56
|
StrengthMachineDataSetDataToJSON,
|
|
51
57
|
} from './StrengthMachineDataSetData';
|
|
52
|
-
import type {
|
|
53
|
-
import {
|
|
54
|
-
UserDataFromJSON,
|
|
55
|
-
UserDataFromJSONTyped,
|
|
56
|
-
UserDataToJSON,
|
|
57
|
-
} from './UserData';
|
|
58
|
-
import type { WeightMeasurementData } from './WeightMeasurementData';
|
|
58
|
+
import type { HeartRateDataSetData } from './HeartRateDataSetData';
|
|
59
59
|
import {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
} from './
|
|
60
|
+
HeartRateDataSetDataFromJSON,
|
|
61
|
+
HeartRateDataSetDataFromJSONTyped,
|
|
62
|
+
HeartRateDataSetDataToJSON,
|
|
63
|
+
} from './HeartRateDataSetData';
|
|
64
64
|
|
|
65
65
|
/**
|
|
66
66
|
*
|
|
@@ -175,17 +175,15 @@ export interface SessionData {
|
|
|
175
175
|
/**
|
|
176
176
|
* Check if a given object implements the SessionData interface.
|
|
177
177
|
*/
|
|
178
|
-
export function instanceOfSessionData(value: object):
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
return isInstance;
|
|
178
|
+
export function instanceOfSessionData(value: object): value is SessionData {
|
|
179
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
180
|
+
if (!('userId' in value) || value['userId'] === undefined) return false;
|
|
181
|
+
if (!('hash' in value) || value['hash'] === undefined) return false;
|
|
182
|
+
if (!('startedAt' in value) || value['startedAt'] === undefined) return false;
|
|
183
|
+
if (!('hasMSeriesDataSets' in value) || value['hasMSeriesDataSets'] === undefined) return false;
|
|
184
|
+
if (!('hasStrengthMachineDataSets' in value) || value['hasStrengthMachineDataSets'] === undefined) return false;
|
|
185
|
+
if (!('hasHeartRateDataSets' in value) || value['hasHeartRateDataSets'] === undefined) return false;
|
|
186
|
+
return true;
|
|
189
187
|
}
|
|
190
188
|
|
|
191
189
|
export function SessionDataFromJSON(json: any): SessionData {
|
|
@@ -193,57 +191,54 @@ export function SessionDataFromJSON(json: any): SessionData {
|
|
|
193
191
|
}
|
|
194
192
|
|
|
195
193
|
export function SessionDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): SessionData {
|
|
196
|
-
if (
|
|
194
|
+
if (json == null) {
|
|
197
195
|
return json;
|
|
198
196
|
}
|
|
199
197
|
return {
|
|
200
198
|
|
|
201
199
|
'id': json['id'],
|
|
202
200
|
'userId': json['userId'],
|
|
203
|
-
'echipId':
|
|
201
|
+
'echipId': json['echipId'] == null ? undefined : json['echipId'],
|
|
204
202
|
'hash': json['hash'],
|
|
205
203
|
'startedAt': (new Date(json['startedAt'])),
|
|
206
|
-
'endedAt':
|
|
204
|
+
'endedAt': json['endedAt'] == null ? undefined : (new Date(json['endedAt'])),
|
|
207
205
|
'hasMSeriesDataSets': json['hasMSeriesDataSets'],
|
|
208
206
|
'hasStrengthMachineDataSets': json['hasStrengthMachineDataSets'],
|
|
209
207
|
'hasHeartRateDataSets': json['hasHeartRateDataSets'],
|
|
210
|
-
'user':
|
|
211
|
-
'facility':
|
|
212
|
-
'sessionPlanSequenceInstance':
|
|
213
|
-
'heartRateDataSets':
|
|
214
|
-
'mSeriesDataSets':
|
|
215
|
-
'strengthMachineDataSets':
|
|
216
|
-
'heightMeasurement':
|
|
217
|
-
'weightMeasurement':
|
|
208
|
+
'user': json['user'] == null ? undefined : UserDataFromJSON(json['user']),
|
|
209
|
+
'facility': json['facility'] == null ? undefined : FacilityDataFromJSON(json['facility']),
|
|
210
|
+
'sessionPlanSequenceInstance': json['sessionPlanSequenceInstance'] == null ? undefined : SessionPlanSequenceInstanceDataFromJSON(json['sessionPlanSequenceInstance']),
|
|
211
|
+
'heartRateDataSets': json['heartRateDataSets'] == null ? undefined : ((json['heartRateDataSets'] as Array<any>).map(HeartRateDataSetDataFromJSON)),
|
|
212
|
+
'mSeriesDataSets': json['mSeriesDataSets'] == null ? undefined : ((json['mSeriesDataSets'] as Array<any>).map(MSeriesDataSetDataFromJSON)),
|
|
213
|
+
'strengthMachineDataSets': json['strengthMachineDataSets'] == null ? undefined : ((json['strengthMachineDataSets'] as Array<any>).map(StrengthMachineDataSetDataFromJSON)),
|
|
214
|
+
'heightMeasurement': json['heightMeasurement'] == null ? undefined : HeightMeasurementDataFromJSON(json['heightMeasurement']),
|
|
215
|
+
'weightMeasurement': json['weightMeasurement'] == null ? undefined : WeightMeasurementDataFromJSON(json['weightMeasurement']),
|
|
218
216
|
};
|
|
219
217
|
}
|
|
220
218
|
|
|
221
219
|
export function SessionDataToJSON(value?: SessionData | null): any {
|
|
222
|
-
if (value
|
|
223
|
-
return
|
|
224
|
-
}
|
|
225
|
-
if (value === null) {
|
|
226
|
-
return null;
|
|
220
|
+
if (value == null) {
|
|
221
|
+
return value;
|
|
227
222
|
}
|
|
228
223
|
return {
|
|
229
224
|
|
|
230
|
-
'id': value
|
|
231
|
-
'userId': value
|
|
232
|
-
'echipId': value
|
|
233
|
-
'hash': value
|
|
234
|
-
'startedAt': (value
|
|
235
|
-
'endedAt': value
|
|
236
|
-
'hasMSeriesDataSets': value
|
|
237
|
-
'hasStrengthMachineDataSets': value
|
|
238
|
-
'hasHeartRateDataSets': value
|
|
239
|
-
'user': UserDataToJSON(value
|
|
240
|
-
'facility': FacilityDataToJSON(value
|
|
241
|
-
'sessionPlanSequenceInstance': SessionPlanSequenceInstanceDataToJSON(value
|
|
242
|
-
'heartRateDataSets': value
|
|
243
|
-
'mSeriesDataSets': value
|
|
244
|
-
'strengthMachineDataSets': value
|
|
245
|
-
'heightMeasurement': HeightMeasurementDataToJSON(value
|
|
246
|
-
'weightMeasurement': WeightMeasurementDataToJSON(value
|
|
225
|
+
'id': value['id'],
|
|
226
|
+
'userId': value['userId'],
|
|
227
|
+
'echipId': value['echipId'],
|
|
228
|
+
'hash': value['hash'],
|
|
229
|
+
'startedAt': ((value['startedAt']).toISOString()),
|
|
230
|
+
'endedAt': value['endedAt'] == null ? undefined : ((value['endedAt']).toISOString()),
|
|
231
|
+
'hasMSeriesDataSets': value['hasMSeriesDataSets'],
|
|
232
|
+
'hasStrengthMachineDataSets': value['hasStrengthMachineDataSets'],
|
|
233
|
+
'hasHeartRateDataSets': value['hasHeartRateDataSets'],
|
|
234
|
+
'user': UserDataToJSON(value['user']),
|
|
235
|
+
'facility': FacilityDataToJSON(value['facility']),
|
|
236
|
+
'sessionPlanSequenceInstance': SessionPlanSequenceInstanceDataToJSON(value['sessionPlanSequenceInstance']),
|
|
237
|
+
'heartRateDataSets': value['heartRateDataSets'] == null ? undefined : ((value['heartRateDataSets'] as Array<any>).map(HeartRateDataSetDataToJSON)),
|
|
238
|
+
'mSeriesDataSets': value['mSeriesDataSets'] == null ? undefined : ((value['mSeriesDataSets'] as Array<any>).map(MSeriesDataSetDataToJSON)),
|
|
239
|
+
'strengthMachineDataSets': value['strengthMachineDataSets'] == null ? undefined : ((value['strengthMachineDataSets'] as Array<any>).map(StrengthMachineDataSetDataToJSON)),
|
|
240
|
+
'heightMeasurement': HeightMeasurementDataToJSON(value['heightMeasurement']),
|
|
241
|
+
'weightMeasurement': WeightMeasurementDataToJSON(value['weightMeasurement']),
|
|
247
242
|
};
|
|
248
243
|
}
|
|
249
244
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* metrics-sdk-admin
|
|
5
5
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 5.
|
|
7
|
+
* The version of the OpenAPI document: 5.4.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import {
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
* @export
|
|
@@ -30,11 +30,9 @@ export interface SessionPlanActivitySetData {
|
|
|
30
30
|
/**
|
|
31
31
|
* Check if a given object implements the SessionPlanActivitySetData interface.
|
|
32
32
|
*/
|
|
33
|
-
export function instanceOfSessionPlanActivitySetData(value: object):
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
return isInstance;
|
|
33
|
+
export function instanceOfSessionPlanActivitySetData(value: object): value is SessionPlanActivitySetData {
|
|
34
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
35
|
+
return true;
|
|
38
36
|
}
|
|
39
37
|
|
|
40
38
|
export function SessionPlanActivitySetDataFromJSON(json: any): SessionPlanActivitySetData {
|
|
@@ -42,7 +40,7 @@ export function SessionPlanActivitySetDataFromJSON(json: any): SessionPlanActivi
|
|
|
42
40
|
}
|
|
43
41
|
|
|
44
42
|
export function SessionPlanActivitySetDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): SessionPlanActivitySetData {
|
|
45
|
-
if (
|
|
43
|
+
if (json == null) {
|
|
46
44
|
return json;
|
|
47
45
|
}
|
|
48
46
|
return {
|
|
@@ -52,15 +50,12 @@ export function SessionPlanActivitySetDataFromJSONTyped(json: any, ignoreDiscrim
|
|
|
52
50
|
}
|
|
53
51
|
|
|
54
52
|
export function SessionPlanActivitySetDataToJSON(value?: SessionPlanActivitySetData | null): any {
|
|
55
|
-
if (value
|
|
56
|
-
return
|
|
57
|
-
}
|
|
58
|
-
if (value === null) {
|
|
59
|
-
return null;
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
60
55
|
}
|
|
61
56
|
return {
|
|
62
57
|
|
|
63
|
-
'name': value
|
|
58
|
+
'name': value['name'],
|
|
64
59
|
};
|
|
65
60
|
}
|
|
66
61
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* metrics-sdk-admin
|
|
5
5
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 5.
|
|
7
|
+
* The version of the OpenAPI document: 5.4.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -12,19 +12,19 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import {
|
|
16
|
-
import type { CardioExerciseData } from './CardioExerciseData';
|
|
17
|
-
import {
|
|
18
|
-
CardioExerciseDataFromJSON,
|
|
19
|
-
CardioExerciseDataFromJSONTyped,
|
|
20
|
-
CardioExerciseDataToJSON,
|
|
21
|
-
} from './CardioExerciseData';
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
22
16
|
import type { CardioMachineData } from './CardioMachineData';
|
|
23
17
|
import {
|
|
24
18
|
CardioMachineDataFromJSON,
|
|
25
19
|
CardioMachineDataFromJSONTyped,
|
|
26
20
|
CardioMachineDataToJSON,
|
|
27
21
|
} from './CardioMachineData';
|
|
22
|
+
import type { CardioExerciseData } from './CardioExerciseData';
|
|
23
|
+
import {
|
|
24
|
+
CardioExerciseDataFromJSON,
|
|
25
|
+
CardioExerciseDataFromJSONTyped,
|
|
26
|
+
CardioExerciseDataToJSON,
|
|
27
|
+
} from './CardioExerciseData';
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
30
|
*
|
|
@@ -67,13 +67,11 @@ export interface SessionPlanCardioSetData {
|
|
|
67
67
|
/**
|
|
68
68
|
* Check if a given object implements the SessionPlanCardioSetData interface.
|
|
69
69
|
*/
|
|
70
|
-
export function instanceOfSessionPlanCardioSetData(value: object):
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
return isInstance;
|
|
70
|
+
export function instanceOfSessionPlanCardioSetData(value: object): value is SessionPlanCardioSetData {
|
|
71
|
+
if (!('duration' in value) || value['duration'] === undefined) return false;
|
|
72
|
+
if (!('distance' in value) || value['distance'] === undefined) return false;
|
|
73
|
+
if (!('caloricBurn' in value) || value['caloricBurn'] === undefined) return false;
|
|
74
|
+
return true;
|
|
77
75
|
}
|
|
78
76
|
|
|
79
77
|
export function SessionPlanCardioSetDataFromJSON(json: any): SessionPlanCardioSetData {
|
|
@@ -81,7 +79,7 @@ export function SessionPlanCardioSetDataFromJSON(json: any): SessionPlanCardioSe
|
|
|
81
79
|
}
|
|
82
80
|
|
|
83
81
|
export function SessionPlanCardioSetDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): SessionPlanCardioSetData {
|
|
84
|
-
if (
|
|
82
|
+
if (json == null) {
|
|
85
83
|
return json;
|
|
86
84
|
}
|
|
87
85
|
return {
|
|
@@ -89,25 +87,22 @@ export function SessionPlanCardioSetDataFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
89
87
|
'duration': json['duration'],
|
|
90
88
|
'distance': json['distance'],
|
|
91
89
|
'caloricBurn': json['caloricBurn'],
|
|
92
|
-
'cardioExercise':
|
|
93
|
-
'cardioMachine':
|
|
90
|
+
'cardioExercise': json['cardioExercise'] == null ? undefined : CardioExerciseDataFromJSON(json['cardioExercise']),
|
|
91
|
+
'cardioMachine': json['cardioMachine'] == null ? undefined : CardioMachineDataFromJSON(json['cardioMachine']),
|
|
94
92
|
};
|
|
95
93
|
}
|
|
96
94
|
|
|
97
95
|
export function SessionPlanCardioSetDataToJSON(value?: SessionPlanCardioSetData | null): any {
|
|
98
|
-
if (value
|
|
99
|
-
return
|
|
100
|
-
}
|
|
101
|
-
if (value === null) {
|
|
102
|
-
return null;
|
|
96
|
+
if (value == null) {
|
|
97
|
+
return value;
|
|
103
98
|
}
|
|
104
99
|
return {
|
|
105
100
|
|
|
106
|
-
'duration': value
|
|
107
|
-
'distance': value
|
|
108
|
-
'caloricBurn': value
|
|
109
|
-
'cardioExercise': CardioExerciseDataToJSON(value
|
|
110
|
-
'cardioMachine': CardioMachineDataToJSON(value
|
|
101
|
+
'duration': value['duration'],
|
|
102
|
+
'distance': value['distance'],
|
|
103
|
+
'caloricBurn': value['caloricBurn'],
|
|
104
|
+
'cardioExercise': CardioExerciseDataToJSON(value['cardioExercise']),
|
|
105
|
+
'cardioMachine': CardioMachineDataToJSON(value['cardioMachine']),
|
|
111
106
|
};
|
|
112
107
|
}
|
|
113
108
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* metrics-sdk-admin
|
|
5
5
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 5.
|
|
7
|
+
* The version of the OpenAPI document: 5.4.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -12,13 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import {
|
|
16
|
-
import type { SessionPlanSequenceAssignmentData } from './SessionPlanSequenceAssignmentData';
|
|
17
|
-
import {
|
|
18
|
-
SessionPlanSequenceAssignmentDataFromJSON,
|
|
19
|
-
SessionPlanSequenceAssignmentDataFromJSONTyped,
|
|
20
|
-
SessionPlanSequenceAssignmentDataToJSON,
|
|
21
|
-
} from './SessionPlanSequenceAssignmentData';
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
22
16
|
import type { SessionPlanSequenceInstanceData } from './SessionPlanSequenceInstanceData';
|
|
23
17
|
import {
|
|
24
18
|
SessionPlanSequenceInstanceDataFromJSON,
|
|
@@ -31,6 +25,12 @@ import {
|
|
|
31
25
|
UserDataFromJSONTyped,
|
|
32
26
|
UserDataToJSON,
|
|
33
27
|
} from './UserData';
|
|
28
|
+
import type { SessionPlanSequenceAssignmentData } from './SessionPlanSequenceAssignmentData';
|
|
29
|
+
import {
|
|
30
|
+
SessionPlanSequenceAssignmentDataFromJSON,
|
|
31
|
+
SessionPlanSequenceAssignmentDataFromJSONTyped,
|
|
32
|
+
SessionPlanSequenceAssignmentDataToJSON,
|
|
33
|
+
} from './SessionPlanSequenceAssignmentData';
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
36
|
*
|
|
@@ -133,17 +133,15 @@ export interface SessionPlanData {
|
|
|
133
133
|
/**
|
|
134
134
|
* Check if a given object implements the SessionPlanData interface.
|
|
135
135
|
*/
|
|
136
|
-
export function instanceOfSessionPlanData(value: object):
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
return isInstance;
|
|
136
|
+
export function instanceOfSessionPlanData(value: object): value is SessionPlanData {
|
|
137
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
138
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
139
|
+
if (!('startAt' in value) || value['startAt'] === undefined) return false;
|
|
140
|
+
if (!('active' in value) || value['active'] === undefined) return false;
|
|
141
|
+
if (!('repeating' in value) || value['repeating'] === undefined) return false;
|
|
142
|
+
if (!('flexible' in value) || value['flexible'] === undefined) return false;
|
|
143
|
+
if (!('scheduleLength' in value) || value['scheduleLength'] === undefined) return false;
|
|
144
|
+
return true;
|
|
147
145
|
}
|
|
148
146
|
|
|
149
147
|
export function SessionPlanDataFromJSON(json: any): SessionPlanData {
|
|
@@ -151,53 +149,50 @@ export function SessionPlanDataFromJSON(json: any): SessionPlanData {
|
|
|
151
149
|
}
|
|
152
150
|
|
|
153
151
|
export function SessionPlanDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): SessionPlanData {
|
|
154
|
-
if (
|
|
152
|
+
if (json == null) {
|
|
155
153
|
return json;
|
|
156
154
|
}
|
|
157
155
|
return {
|
|
158
156
|
|
|
159
157
|
'id': json['id'],
|
|
160
158
|
'name': json['name'],
|
|
161
|
-
'description':
|
|
162
|
-
'notes':
|
|
159
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
160
|
+
'notes': json['notes'] == null ? undefined : json['notes'],
|
|
163
161
|
'startAt': json['startAt'],
|
|
164
|
-
'endAt':
|
|
162
|
+
'endAt': json['endAt'] == null ? undefined : json['endAt'],
|
|
165
163
|
'active': json['active'],
|
|
166
164
|
'repeating': json['repeating'],
|
|
167
165
|
'flexible': json['flexible'],
|
|
168
166
|
'scheduleLength': json['scheduleLength'],
|
|
169
|
-
'lastCompletedIndex':
|
|
170
|
-
'lastCompletedSequence':
|
|
171
|
-
'user':
|
|
172
|
-
'sessionPlanSequenceAssignments':
|
|
173
|
-
'sessionPlanSequenceInstances':
|
|
167
|
+
'lastCompletedIndex': json['lastCompletedIndex'] == null ? undefined : json['lastCompletedIndex'],
|
|
168
|
+
'lastCompletedSequence': json['lastCompletedSequence'] == null ? undefined : SessionPlanSequenceInstanceDataFromJSON(json['lastCompletedSequence']),
|
|
169
|
+
'user': json['user'] == null ? undefined : UserDataFromJSON(json['user']),
|
|
170
|
+
'sessionPlanSequenceAssignments': json['sessionPlanSequenceAssignments'] == null ? undefined : ((json['sessionPlanSequenceAssignments'] as Array<any>).map(SessionPlanSequenceAssignmentDataFromJSON)),
|
|
171
|
+
'sessionPlanSequenceInstances': json['sessionPlanSequenceInstances'] == null ? undefined : ((json['sessionPlanSequenceInstances'] as Array<any>).map(SessionPlanSequenceInstanceDataFromJSON)),
|
|
174
172
|
};
|
|
175
173
|
}
|
|
176
174
|
|
|
177
175
|
export function SessionPlanDataToJSON(value?: SessionPlanData | null): any {
|
|
178
|
-
if (value
|
|
179
|
-
return
|
|
180
|
-
}
|
|
181
|
-
if (value === null) {
|
|
182
|
-
return null;
|
|
176
|
+
if (value == null) {
|
|
177
|
+
return value;
|
|
183
178
|
}
|
|
184
179
|
return {
|
|
185
180
|
|
|
186
|
-
'id': value
|
|
187
|
-
'name': value
|
|
188
|
-
'description': value
|
|
189
|
-
'notes': value
|
|
190
|
-
'startAt': value
|
|
191
|
-
'endAt': value
|
|
192
|
-
'active': value
|
|
193
|
-
'repeating': value
|
|
194
|
-
'flexible': value
|
|
195
|
-
'scheduleLength': value
|
|
196
|
-
'lastCompletedIndex': value
|
|
197
|
-
'lastCompletedSequence': SessionPlanSequenceInstanceDataToJSON(value
|
|
198
|
-
'user': UserDataToJSON(value
|
|
199
|
-
'sessionPlanSequenceAssignments': value
|
|
200
|
-
'sessionPlanSequenceInstances': value
|
|
181
|
+
'id': value['id'],
|
|
182
|
+
'name': value['name'],
|
|
183
|
+
'description': value['description'],
|
|
184
|
+
'notes': value['notes'],
|
|
185
|
+
'startAt': value['startAt'],
|
|
186
|
+
'endAt': value['endAt'],
|
|
187
|
+
'active': value['active'],
|
|
188
|
+
'repeating': value['repeating'],
|
|
189
|
+
'flexible': value['flexible'],
|
|
190
|
+
'scheduleLength': value['scheduleLength'],
|
|
191
|
+
'lastCompletedIndex': value['lastCompletedIndex'],
|
|
192
|
+
'lastCompletedSequence': SessionPlanSequenceInstanceDataToJSON(value['lastCompletedSequence']),
|
|
193
|
+
'user': UserDataToJSON(value['user']),
|
|
194
|
+
'sessionPlanSequenceAssignments': value['sessionPlanSequenceAssignments'] == null ? undefined : ((value['sessionPlanSequenceAssignments'] as Array<any>).map(SessionPlanSequenceAssignmentDataToJSON)),
|
|
195
|
+
'sessionPlanSequenceInstances': value['sessionPlanSequenceInstances'] == null ? undefined : ((value['sessionPlanSequenceInstances'] as Array<any>).map(SessionPlanSequenceInstanceDataToJSON)),
|
|
201
196
|
};
|
|
202
197
|
}
|
|
203
198
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* metrics-sdk-admin
|
|
5
5
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 5.
|
|
7
|
+
* The version of the OpenAPI document: 5.4.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import {
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
16
|
import type { SessionPlanSequenceData } from './SessionPlanSequenceData';
|
|
17
17
|
import {
|
|
18
18
|
SessionPlanSequenceDataFromJSON,
|
|
@@ -49,12 +49,10 @@ export interface SessionPlanSequenceAssignmentData {
|
|
|
49
49
|
/**
|
|
50
50
|
* Check if a given object implements the SessionPlanSequenceAssignmentData interface.
|
|
51
51
|
*/
|
|
52
|
-
export function instanceOfSessionPlanSequenceAssignmentData(value: object):
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
return isInstance;
|
|
52
|
+
export function instanceOfSessionPlanSequenceAssignmentData(value: object): value is SessionPlanSequenceAssignmentData {
|
|
53
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
54
|
+
if (!('scheduleIndex' in value) || value['scheduleIndex'] === undefined) return false;
|
|
55
|
+
return true;
|
|
58
56
|
}
|
|
59
57
|
|
|
60
58
|
export function SessionPlanSequenceAssignmentDataFromJSON(json: any): SessionPlanSequenceAssignmentData {
|
|
@@ -62,29 +60,26 @@ export function SessionPlanSequenceAssignmentDataFromJSON(json: any): SessionPla
|
|
|
62
60
|
}
|
|
63
61
|
|
|
64
62
|
export function SessionPlanSequenceAssignmentDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): SessionPlanSequenceAssignmentData {
|
|
65
|
-
if (
|
|
63
|
+
if (json == null) {
|
|
66
64
|
return json;
|
|
67
65
|
}
|
|
68
66
|
return {
|
|
69
67
|
|
|
70
68
|
'id': json['id'],
|
|
71
69
|
'scheduleIndex': json['scheduleIndex'],
|
|
72
|
-
'sessionPlanSequence':
|
|
70
|
+
'sessionPlanSequence': json['sessionPlanSequence'] == null ? undefined : SessionPlanSequenceDataFromJSON(json['sessionPlanSequence']),
|
|
73
71
|
};
|
|
74
72
|
}
|
|
75
73
|
|
|
76
74
|
export function SessionPlanSequenceAssignmentDataToJSON(value?: SessionPlanSequenceAssignmentData | null): any {
|
|
77
|
-
if (value
|
|
78
|
-
return
|
|
79
|
-
}
|
|
80
|
-
if (value === null) {
|
|
81
|
-
return null;
|
|
75
|
+
if (value == null) {
|
|
76
|
+
return value;
|
|
82
77
|
}
|
|
83
78
|
return {
|
|
84
79
|
|
|
85
|
-
'id': value
|
|
86
|
-
'scheduleIndex': value
|
|
87
|
-
'sessionPlanSequence': SessionPlanSequenceDataToJSON(value
|
|
80
|
+
'id': value['id'],
|
|
81
|
+
'scheduleIndex': value['scheduleIndex'],
|
|
82
|
+
'sessionPlanSequence': SessionPlanSequenceDataToJSON(value['sessionPlanSequence']),
|
|
88
83
|
};
|
|
89
84
|
}
|
|
90
85
|
|