@keiser/metrics-sdk-admin-typescript 5.0.12
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/.github/ISSUE_TEMPLATE/bug_report.md +41 -0
- package/.github/ISSUE_TEMPLATE/enhancement.md +46 -0
- package/.github/ISSUE_TEMPLATE/feature_request.md +46 -0
- package/.github/workflows/main.yml +63 -0
- package/README.md +202 -0
- package/dist/apis/MetricsAdminApi.d.ts +328 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/connection.d.ts +110 -0
- package/dist/error.d.ts +134 -0
- package/dist/event.d.ts +51 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +8429 -0
- package/dist/index.mjs +7939 -0
- package/dist/jwt.d.ts +1 -0
- package/dist/models/A500DataSetData.d.ts +93 -0
- package/dist/models/A500MachineStateData.d.ts +88 -0
- package/dist/models/A500RepDataPointData.d.ts +169 -0
- package/dist/models/A500TestResultData.d.ts +103 -0
- package/dist/models/A500TimeSeriesPointData.d.ts +145 -0
- package/dist/models/AcceptedTermsVersionData.d.ts +43 -0
- package/dist/models/BodyCompositionMeasurementData.d.ts +211 -0
- package/dist/models/CacheKeysResponse.d.ts +43 -0
- package/dist/models/CacheObject.d.ts +55 -0
- package/dist/models/CacheObjectResponse.d.ts +44 -0
- package/dist/models/CardioExerciseData.d.ts +65 -0
- package/dist/models/CardioExerciseVariantData.d.ts +77 -0
- package/dist/models/CardioMachineData.d.ts +83 -0
- package/dist/models/EmailAddressData.d.ts +49 -0
- package/dist/models/ExerciseAliasData.d.ts +73 -0
- package/dist/models/ExerciseOrdinalSetAssignmentData.d.ts +65 -0
- package/dist/models/ExerciseOrdinalSetData.d.ts +56 -0
- package/dist/models/FacilityConfigurationData.d.ts +101 -0
- package/dist/models/FacilityData.d.ts +65 -0
- package/dist/models/FacilityLicenseData.d.ts +83 -0
- package/dist/models/FacilityLicenseListResponse.d.ts +51 -0
- package/dist/models/FacilityLicenseListResponseMeta.d.ts +89 -0
- package/dist/models/FacilityLicenseResponse.d.ts +44 -0
- package/dist/models/FacilityLicenseSorting.d.ts +25 -0
- package/dist/models/FacilityProfileData.d.ts +73 -0
- package/dist/models/FacilityRelationshipData.d.ts +99 -0
- package/dist/models/FacilitySessionUserData.d.ts +112 -0
- package/dist/models/FacilityStrengthMachineConfigurationData.d.ts +94 -0
- package/dist/models/FacilityStrengthMachineData.d.ts +99 -0
- package/dist/models/FingerprintData.d.ts +69 -0
- package/dist/models/GlobalAccessControlCreationResponse.d.ts +51 -0
- package/dist/models/GlobalAccessControlData.d.ts +148 -0
- package/dist/models/GlobalAccessControlListResponse.d.ts +51 -0
- package/dist/models/GlobalAccessControlListResponseMeta.d.ts +62 -0
- package/dist/models/GlobalAccessControlResponse.d.ts +44 -0
- package/dist/models/GlobalAccessControlSecretData.d.ts +37 -0
- package/dist/models/GlobalAccessControlSecretResponse.d.ts +44 -0
- package/dist/models/GlobalAccessControlSorting.d.ts +23 -0
- package/dist/models/HeartRateDataPointData.d.ts +49 -0
- package/dist/models/HeartRateDataSetData.d.ts +81 -0
- package/dist/models/HeartRateDataSetSessionData.d.ts +56 -0
- package/dist/models/HeightMeasurementData.d.ts +55 -0
- package/dist/models/High.d.ts +31 -0
- package/dist/models/Low.d.ts +31 -0
- package/dist/models/MSeriesDataPointData.d.ts +103 -0
- package/dist/models/MSeriesDataSetData.d.ts +222 -0
- package/dist/models/MSeriesDataSetSegmentData.d.ts +129 -0
- package/dist/models/MSeriesFtpMeasurementData.d.ts +74 -0
- package/dist/models/MuscleArea.d.ts +24 -0
- package/dist/models/MuscleData.d.ts +67 -0
- package/dist/models/MuscleGroup.d.ts +35 -0
- package/dist/models/MuscleIdentifier.d.ts +86 -0
- package/dist/models/OAuthServiceData.d.ts +73 -0
- package/dist/models/PrimaryEmailAddressData.d.ts +37 -0
- package/dist/models/ProfileData.d.ts +67 -0
- package/dist/models/Queue.d.ts +23 -0
- package/dist/models/ResqueDetailsData.d.ts +45 -0
- package/dist/models/ResqueDetailsResponse.d.ts +44 -0
- package/dist/models/SessionData.d.ts +135 -0
- package/dist/models/SessionPlanActivitySetData.d.ts +31 -0
- package/dist/models/SessionPlanCardioSetData.d.ts +57 -0
- package/dist/models/SessionPlanData.d.ts +118 -0
- package/dist/models/SessionPlanSequenceAssignmentData.d.ts +44 -0
- package/dist/models/SessionPlanSequenceData.d.ts +63 -0
- package/dist/models/SessionPlanSequenceInstanceData.d.ts +82 -0
- package/dist/models/SessionPlanSetData.d.ts +81 -0
- package/dist/models/SessionPlanSetInstanceData.d.ts +87 -0
- package/dist/models/SessionPlanStrengthSetData.d.ts +67 -0
- package/dist/models/SessionPlanStretchSetData.d.ts +31 -0
- package/dist/models/StatData.d.ts +97 -0
- package/dist/models/StatListResponse.d.ts +51 -0
- package/dist/models/StatListResponseMeta.d.ts +68 -0
- package/dist/models/StatSorting.d.ts +23 -0
- package/dist/models/StrengthExerciseData.d.ts +125 -0
- package/dist/models/StrengthExerciseVariantData.d.ts +115 -0
- package/dist/models/StrengthMachineData.d.ts +88 -0
- package/dist/models/StrengthMachineDataSetData.d.ts +199 -0
- package/dist/models/StrengthMachineDataSetTestData.d.ts +54 -0
- package/dist/models/StrengthMachineDataSetTestSubsetData.d.ts +49 -0
- package/dist/models/StrengthMachineModelData.d.ts +31 -0
- package/dist/models/StretchExerciseData.d.ts +58 -0
- package/dist/models/StretchExerciseVariantData.d.ts +70 -0
- package/dist/models/TaskFailedResponse.d.ts +51 -0
- package/dist/models/TaskFailure.d.ts +69 -0
- package/dist/models/TaskPayload.d.ts +44 -0
- package/dist/models/TaskQueueResponse.d.ts +51 -0
- package/dist/models/TaskQueueResponseMeta.d.ts +68 -0
- package/dist/models/TaskQueues.d.ts +39 -0
- package/dist/models/TaskStats.d.ts +37 -0
- package/dist/models/UserData.d.ts +112 -0
- package/dist/models/UserListResponse.d.ts +51 -0
- package/dist/models/UserListResponseMeta.d.ts +68 -0
- package/dist/models/UserResponse.d.ts +44 -0
- package/dist/models/UserSorting.d.ts +24 -0
- package/dist/models/WeightMeasurementData.d.ts +68 -0
- package/dist/models/WorkersResponse.d.ts +43 -0
- package/dist/models/index.d.ts +96 -0
- package/dist/runtime.d.ts +134 -0
- package/docs/A500DataSetData.md +41 -0
- package/docs/A500MachineStateData.md +46 -0
- package/docs/A500RepDataPointData.md +56 -0
- package/docs/A500TestResultData.md +22 -0
- package/docs/A500TimeSeriesPointData.md +29 -0
- package/docs/AcceptedTermsVersionData.md +12 -0
- package/docs/BodyCompositionMeasurementData.md +40 -0
- package/docs/CacheKeysResponse.md +12 -0
- package/docs/CacheObject.md +14 -0
- package/docs/CacheObjectResponse.md +12 -0
- package/docs/CardioExerciseData.md +15 -0
- package/docs/CardioExerciseVariantData.md +25 -0
- package/docs/CardioMachineData.md +36 -0
- package/docs/EmailAddressData.md +13 -0
- package/docs/ExerciseAliasData.md +28 -0
- package/docs/ExerciseOrdinalSetAssignmentData.md +15 -0
- package/docs/ExerciseOrdinalSetData.md +14 -0
- package/docs/FacilityConfigurationData.md +41 -0
- package/docs/FacilityData.md +15 -0
- package/docs/FacilityLicenseData.md +30 -0
- package/docs/FacilityLicenseListResponse.md +13 -0
- package/docs/FacilityLicenseListResponseMeta.md +31 -0
- package/docs/FacilityLicenseResponse.md +12 -0
- package/docs/FacilityLicenseSorting.md +15 -0
- package/docs/FacilityProfileData.md +17 -0
- package/docs/FacilityRelationshipData.md +36 -0
- package/docs/FacilitySessionUserData.md +22 -0
- package/docs/FacilityStrengthMachineConfigurationData.md +47 -0
- package/docs/FacilityStrengthMachineData.md +21 -0
- package/docs/FingerprintData.md +24 -0
- package/docs/GlobalAccessControlCreationResponse.md +13 -0
- package/docs/GlobalAccessControlData.md +103 -0
- package/docs/GlobalAccessControlListResponse.md +13 -0
- package/docs/GlobalAccessControlListResponseMeta.md +15 -0
- package/docs/GlobalAccessControlResponse.md +12 -0
- package/docs/GlobalAccessControlSecretData.md +11 -0
- package/docs/GlobalAccessControlSecretResponse.md +12 -0
- package/docs/GlobalAccessControlSorting.md +11 -0
- package/docs/HeartRateDataPointData.md +13 -0
- package/docs/HeartRateDataSetData.md +18 -0
- package/docs/HeartRateDataSetSessionData.md +14 -0
- package/docs/HeightMeasurementData.md +14 -0
- package/docs/High.md +10 -0
- package/docs/Low.md +10 -0
- package/docs/MSeriesDataPointData.md +22 -0
- package/docs/MSeriesDataSetData.md +41 -0
- package/docs/MSeriesDataSetSegmentData.md +26 -0
- package/docs/MSeriesFtpMeasurementData.md +17 -0
- package/docs/MetricsAdminApi.md +1576 -0
- package/docs/MuscleArea.md +13 -0
- package/docs/MuscleData.md +27 -0
- package/docs/MuscleGroup.md +35 -0
- package/docs/MuscleIdentifier.md +137 -0
- package/docs/OAuthServiceData.md +17 -0
- package/docs/PrimaryEmailAddressData.md +11 -0
- package/docs/ProfileData.md +16 -0
- package/docs/Queue.md +11 -0
- package/docs/ResqueDetailsData.md +12 -0
- package/docs/ResqueDetailsResponse.md +12 -0
- package/docs/SessionData.md +26 -0
- package/docs/SessionPlanActivitySetData.md +10 -0
- package/docs/SessionPlanCardioSetData.md +14 -0
- package/docs/SessionPlanData.md +24 -0
- package/docs/SessionPlanSequenceAssignmentData.md +12 -0
- package/docs/SessionPlanSequenceData.md +15 -0
- package/docs/SessionPlanSequenceInstanceData.md +18 -0
- package/docs/SessionPlanSetData.md +31 -0
- package/docs/SessionPlanSetInstanceData.md +32 -0
- package/docs/SessionPlanStrengthSetData.md +29 -0
- package/docs/SessionPlanStretchSetData.md +10 -0
- package/docs/StatData.md +21 -0
- package/docs/StatListResponse.md +13 -0
- package/docs/StatListResponseMeta.md +16 -0
- package/docs/StatSorting.md +11 -0
- package/docs/StrengthExerciseData.md +71 -0
- package/docs/StrengthExerciseVariantData.md +69 -0
- package/docs/StrengthMachineData.md +38 -0
- package/docs/StrengthMachineDataSetData.md +60 -0
- package/docs/StrengthMachineDataSetTestData.md +27 -0
- package/docs/StrengthMachineDataSetTestSubsetData.md +13 -0
- package/docs/StrengthMachineModelData.md +10 -0
- package/docs/StretchExerciseData.md +14 -0
- package/docs/StretchExerciseVariantData.md +24 -0
- package/docs/TaskFailedResponse.md +13 -0
- package/docs/TaskFailure.md +16 -0
- package/docs/TaskPayload.md +12 -0
- package/docs/TaskQueueResponse.md +13 -0
- package/docs/TaskQueueResponseMeta.md +24 -0
- package/docs/TaskQueues.md +11 -0
- package/docs/TaskStats.md +11 -0
- package/docs/UserData.md +22 -0
- package/docs/UserListResponse.md +13 -0
- package/docs/UserListResponseMeta.md +16 -0
- package/docs/UserResponse.md +12 -0
- package/docs/UserSorting.md +13 -0
- package/docs/WeightMeasurementData.md +16 -0
- package/docs/WorkersResponse.md +12 -0
- package/package.json +37 -0
- package/rollup.config.mjs +32 -0
- package/src/apis/MetricsAdminApi.ts +1735 -0
- package/src/apis/index.ts +3 -0
- package/src/connection.ts +256 -0
- package/src/error.ts +248 -0
- package/src/event.ts +267 -0
- package/src/index.ts +9 -0
- package/src/jwt.ts +17 -0
- package/src/models/A500DataSetData.ts +164 -0
- package/src/models/A500MachineStateData.ts +150 -0
- package/src/models/A500RepDataPointData.ts +264 -0
- package/src/models/A500TestResultData.ts +174 -0
- package/src/models/A500TimeSeriesPointData.ts +233 -0
- package/src/models/AcceptedTermsVersionData.ts +83 -0
- package/src/models/BodyCompositionMeasurementData.ts +336 -0
- package/src/models/CacheKeysResponse.ts +82 -0
- package/src/models/CacheObject.ts +102 -0
- package/src/models/CacheObjectResponse.ts +89 -0
- package/src/models/CardioExerciseData.ts +131 -0
- package/src/models/CardioExerciseVariantData.ts +144 -0
- package/src/models/CardioMachineData.ts +143 -0
- package/src/models/EmailAddressData.ts +93 -0
- package/src/models/ExerciseAliasData.ts +138 -0
- package/src/models/ExerciseOrdinalSetAssignmentData.ts +132 -0
- package/src/models/ExerciseOrdinalSetData.ts +107 -0
- package/src/models/FacilityConfigurationData.ts +167 -0
- package/src/models/FacilityData.ts +132 -0
- package/src/models/FacilityLicenseData.ts +144 -0
- package/src/models/FacilityLicenseListResponse.ts +104 -0
- package/src/models/FacilityLicenseListResponseMeta.ts +152 -0
- package/src/models/FacilityLicenseResponse.ts +89 -0
- package/src/models/FacilityLicenseSorting.ts +40 -0
- package/src/models/FacilityProfileData.ts +121 -0
- package/src/models/FacilityRelationshipData.ts +175 -0
- package/src/models/FacilitySessionUserData.ts +216 -0
- package/src/models/FacilityStrengthMachineConfigurationData.ts +159 -0
- package/src/models/FacilityStrengthMachineData.ts +170 -0
- package/src/models/FingerprintData.ts +127 -0
- package/src/models/GlobalAccessControlCreationResponse.ts +104 -0
- package/src/models/GlobalAccessControlData.ts +217 -0
- package/src/models/GlobalAccessControlListResponse.ts +104 -0
- package/src/models/GlobalAccessControlListResponseMeta.ts +113 -0
- package/src/models/GlobalAccessControlResponse.ts +89 -0
- package/src/models/GlobalAccessControlSecretData.ts +75 -0
- package/src/models/GlobalAccessControlSecretResponse.ts +89 -0
- package/src/models/GlobalAccessControlSorting.ts +38 -0
- package/src/models/HeartRateDataPointData.ts +91 -0
- package/src/models/HeartRateDataSetData.ts +148 -0
- package/src/models/HeartRateDataSetSessionData.ts +108 -0
- package/src/models/HeightMeasurementData.ts +102 -0
- package/src/models/High.ts +66 -0
- package/src/models/Low.ts +66 -0
- package/src/models/MSeriesDataPointData.ts +167 -0
- package/src/models/MSeriesDataSetData.ts +363 -0
- package/src/models/MSeriesDataSetSegmentData.ts +219 -0
- package/src/models/MSeriesFtpMeasurementData.ts +133 -0
- package/src/models/MuscleArea.ts +39 -0
- package/src/models/MuscleData.ts +131 -0
- package/src/models/MuscleGroup.ts +50 -0
- package/src/models/MuscleIdentifier.ts +101 -0
- package/src/models/OAuthServiceData.ts +126 -0
- package/src/models/PrimaryEmailAddressData.ts +75 -0
- package/src/models/ProfileData.ts +115 -0
- package/src/models/Queue.ts +38 -0
- package/src/models/ResqueDetailsData.ts +97 -0
- package/src/models/ResqueDetailsResponse.ts +89 -0
- package/src/models/SessionData.ts +249 -0
- package/src/models/SessionPlanActivitySetData.ts +66 -0
- package/src/models/SessionPlanCardioSetData.ts +113 -0
- package/src/models/SessionPlanData.ts +205 -0
- package/src/models/SessionPlanSequenceAssignmentData.ts +90 -0
- package/src/models/SessionPlanSequenceData.ts +122 -0
- package/src/models/SessionPlanSequenceInstanceData.ts +154 -0
- package/src/models/SessionPlanSetData.ts +153 -0
- package/src/models/SessionPlanSetInstanceData.ts +162 -0
- package/src/models/SessionPlanStrengthSetData.ts +126 -0
- package/src/models/SessionPlanStretchSetData.ts +66 -0
- package/src/models/StatData.ts +165 -0
- package/src/models/StatListResponse.ts +104 -0
- package/src/models/StatListResponseMeta.ts +121 -0
- package/src/models/StatSorting.ts +38 -0
- package/src/models/StrengthExerciseData.ts +208 -0
- package/src/models/StrengthExerciseVariantData.ts +189 -0
- package/src/models/StrengthMachineData.ts +154 -0
- package/src/models/StrengthMachineDataSetData.ts +331 -0
- package/src/models/StrengthMachineDataSetTestData.ts +104 -0
- package/src/models/StrengthMachineDataSetTestSubsetData.ts +93 -0
- package/src/models/StrengthMachineModelData.ts +66 -0
- package/src/models/StretchExerciseData.ts +117 -0
- package/src/models/StretchExerciseVariantData.ts +130 -0
- package/src/models/TaskFailedResponse.ts +104 -0
- package/src/models/TaskFailure.ts +133 -0
- package/src/models/TaskPayload.ts +91 -0
- package/src/models/TaskQueueResponse.ts +104 -0
- package/src/models/TaskQueueResponseMeta.ts +117 -0
- package/src/models/TaskQueues.ts +88 -0
- package/src/models/TaskStats.ts +73 -0
- package/src/models/UserData.ts +217 -0
- package/src/models/UserListResponse.ts +104 -0
- package/src/models/UserListResponseMeta.ts +121 -0
- package/src/models/UserResponse.ts +89 -0
- package/src/models/UserSorting.ts +39 -0
- package/src/models/WeightMeasurementData.ts +125 -0
- package/src/models/WorkersResponse.ts +82 -0
- package/src/models/index.ts +98 -0
- package/src/runtime.ts +473 -0
- package/tsconfig.json +18 -0
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* metrics-sdk-admin
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 5.0.12
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { ExerciseAliasData } from './ExerciseAliasData';
|
|
17
|
+
import {
|
|
18
|
+
ExerciseAliasDataFromJSON,
|
|
19
|
+
ExerciseAliasDataFromJSONTyped,
|
|
20
|
+
ExerciseAliasDataToJSON,
|
|
21
|
+
} from './ExerciseAliasData';
|
|
22
|
+
import type { MuscleData } from './MuscleData';
|
|
23
|
+
import {
|
|
24
|
+
MuscleDataFromJSON,
|
|
25
|
+
MuscleDataFromJSONTyped,
|
|
26
|
+
MuscleDataToJSON,
|
|
27
|
+
} from './MuscleData';
|
|
28
|
+
import type { StrengthExerciseVariantData } from './StrengthExerciseVariantData';
|
|
29
|
+
import {
|
|
30
|
+
StrengthExerciseVariantDataFromJSON,
|
|
31
|
+
StrengthExerciseVariantDataFromJSONTyped,
|
|
32
|
+
StrengthExerciseVariantDataToJSON,
|
|
33
|
+
} from './StrengthExerciseVariantData';
|
|
34
|
+
import type { StrengthMachineData } from './StrengthMachineData';
|
|
35
|
+
import {
|
|
36
|
+
StrengthMachineDataFromJSON,
|
|
37
|
+
StrengthMachineDataFromJSONTyped,
|
|
38
|
+
StrengthMachineDataToJSON,
|
|
39
|
+
} from './StrengthMachineData';
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @export
|
|
44
|
+
* @interface StrengthExerciseData
|
|
45
|
+
*/
|
|
46
|
+
export interface StrengthExerciseData {
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {number}
|
|
50
|
+
* @memberof StrengthExerciseData
|
|
51
|
+
*/
|
|
52
|
+
id: number;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof StrengthExerciseData
|
|
57
|
+
*/
|
|
58
|
+
category: StrengthExerciseDataCategoryEnum;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof StrengthExerciseData
|
|
63
|
+
*/
|
|
64
|
+
movement?: StrengthExerciseDataMovementEnum;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof StrengthExerciseData
|
|
69
|
+
*/
|
|
70
|
+
humanMovement: StrengthExerciseDataHumanMovementEnum;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof StrengthExerciseData
|
|
75
|
+
*/
|
|
76
|
+
plane: StrengthExerciseDataPlaneEnum;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {ExerciseAliasData}
|
|
80
|
+
* @memberof StrengthExerciseData
|
|
81
|
+
*/
|
|
82
|
+
defaultExerciseAlias?: ExerciseAliasData;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @type {Array<ExerciseAliasData>}
|
|
86
|
+
* @memberof StrengthExerciseData
|
|
87
|
+
*/
|
|
88
|
+
exerciseAliases?: Array<ExerciseAliasData>;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @type {Array<StrengthExerciseVariantData>}
|
|
92
|
+
* @memberof StrengthExerciseData
|
|
93
|
+
*/
|
|
94
|
+
strengthExerciseVariants?: Array<StrengthExerciseVariantData>;
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @type {Array<MuscleData>}
|
|
98
|
+
* @memberof StrengthExerciseData
|
|
99
|
+
*/
|
|
100
|
+
strengthExerciseMuscles?: Array<MuscleData>;
|
|
101
|
+
/**
|
|
102
|
+
*
|
|
103
|
+
* @type {Array<StrengthMachineData>}
|
|
104
|
+
* @memberof StrengthExerciseData
|
|
105
|
+
*/
|
|
106
|
+
strengthMachines?: Array<StrengthMachineData>;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* @export
|
|
112
|
+
*/
|
|
113
|
+
export const StrengthExerciseDataCategoryEnum = {
|
|
114
|
+
LowerBody: 'lowerBody',
|
|
115
|
+
UpperBody: 'upperBody',
|
|
116
|
+
Core: 'core',
|
|
117
|
+
Explosive: 'explosive',
|
|
118
|
+
Complex: 'complex'
|
|
119
|
+
} as const;
|
|
120
|
+
export type StrengthExerciseDataCategoryEnum = typeof StrengthExerciseDataCategoryEnum[keyof typeof StrengthExerciseDataCategoryEnum];
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* @export
|
|
124
|
+
*/
|
|
125
|
+
export const StrengthExerciseDataMovementEnum = {
|
|
126
|
+
Isolation: 'isolation',
|
|
127
|
+
Compound: 'compound'
|
|
128
|
+
} as const;
|
|
129
|
+
export type StrengthExerciseDataMovementEnum = typeof StrengthExerciseDataMovementEnum[keyof typeof StrengthExerciseDataMovementEnum];
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* @export
|
|
133
|
+
*/
|
|
134
|
+
export const StrengthExerciseDataHumanMovementEnum = {
|
|
135
|
+
Unilateral: 'unilateral',
|
|
136
|
+
Bilateral: 'bilateral'
|
|
137
|
+
} as const;
|
|
138
|
+
export type StrengthExerciseDataHumanMovementEnum = typeof StrengthExerciseDataHumanMovementEnum[keyof typeof StrengthExerciseDataHumanMovementEnum];
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* @export
|
|
142
|
+
*/
|
|
143
|
+
export const StrengthExerciseDataPlaneEnum = {
|
|
144
|
+
Sagittal: 'sagittal',
|
|
145
|
+
Frontal: 'frontal',
|
|
146
|
+
Transverse: 'transverse'
|
|
147
|
+
} as const;
|
|
148
|
+
export type StrengthExerciseDataPlaneEnum = typeof StrengthExerciseDataPlaneEnum[keyof typeof StrengthExerciseDataPlaneEnum];
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Check if a given object implements the StrengthExerciseData interface.
|
|
153
|
+
*/
|
|
154
|
+
export function instanceOfStrengthExerciseData(value: object): boolean {
|
|
155
|
+
let isInstance = true;
|
|
156
|
+
isInstance = isInstance && "id" in value;
|
|
157
|
+
isInstance = isInstance && "category" in value;
|
|
158
|
+
isInstance = isInstance && "humanMovement" in value;
|
|
159
|
+
isInstance = isInstance && "plane" in value;
|
|
160
|
+
|
|
161
|
+
return isInstance;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
export function StrengthExerciseDataFromJSON(json: any): StrengthExerciseData {
|
|
165
|
+
return StrengthExerciseDataFromJSONTyped(json, false);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export function StrengthExerciseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): StrengthExerciseData {
|
|
169
|
+
if ((json === undefined) || (json === null)) {
|
|
170
|
+
return json;
|
|
171
|
+
}
|
|
172
|
+
return {
|
|
173
|
+
|
|
174
|
+
'id': json['id'],
|
|
175
|
+
'category': json['category'],
|
|
176
|
+
'movement': !exists(json, 'movement') ? undefined : json['movement'],
|
|
177
|
+
'humanMovement': json['humanMovement'],
|
|
178
|
+
'plane': json['plane'],
|
|
179
|
+
'defaultExerciseAlias': !exists(json, 'defaultExerciseAlias') ? undefined : ExerciseAliasDataFromJSON(json['defaultExerciseAlias']),
|
|
180
|
+
'exerciseAliases': !exists(json, 'exerciseAliases') ? undefined : ((json['exerciseAliases'] as Array<any>).map(ExerciseAliasDataFromJSON)),
|
|
181
|
+
'strengthExerciseVariants': !exists(json, 'strengthExerciseVariants') ? undefined : ((json['strengthExerciseVariants'] as Array<any>).map(StrengthExerciseVariantDataFromJSON)),
|
|
182
|
+
'strengthExerciseMuscles': !exists(json, 'strengthExerciseMuscles') ? undefined : ((json['strengthExerciseMuscles'] as Array<any>).map(MuscleDataFromJSON)),
|
|
183
|
+
'strengthMachines': !exists(json, 'strengthMachines') ? undefined : ((json['strengthMachines'] as Array<any>).map(StrengthMachineDataFromJSON)),
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
export function StrengthExerciseDataToJSON(value?: StrengthExerciseData | null): any {
|
|
188
|
+
if (value === undefined) {
|
|
189
|
+
return undefined;
|
|
190
|
+
}
|
|
191
|
+
if (value === null) {
|
|
192
|
+
return null;
|
|
193
|
+
}
|
|
194
|
+
return {
|
|
195
|
+
|
|
196
|
+
'id': value.id,
|
|
197
|
+
'category': value.category,
|
|
198
|
+
'movement': value.movement,
|
|
199
|
+
'humanMovement': value.humanMovement,
|
|
200
|
+
'plane': value.plane,
|
|
201
|
+
'defaultExerciseAlias': ExerciseAliasDataToJSON(value.defaultExerciseAlias),
|
|
202
|
+
'exerciseAliases': value.exerciseAliases === undefined ? undefined : ((value.exerciseAliases as Array<any>).map(ExerciseAliasDataToJSON)),
|
|
203
|
+
'strengthExerciseVariants': value.strengthExerciseVariants === undefined ? undefined : ((value.strengthExerciseVariants as Array<any>).map(StrengthExerciseVariantDataToJSON)),
|
|
204
|
+
'strengthExerciseMuscles': value.strengthExerciseMuscles === undefined ? undefined : ((value.strengthExerciseMuscles as Array<any>).map(MuscleDataToJSON)),
|
|
205
|
+
'strengthMachines': value.strengthMachines === undefined ? undefined : ((value.strengthMachines as Array<any>).map(StrengthMachineDataToJSON)),
|
|
206
|
+
};
|
|
207
|
+
}
|
|
208
|
+
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* metrics-sdk-admin
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 5.0.12
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { ExerciseOrdinalSetAssignmentData } from './ExerciseOrdinalSetAssignmentData';
|
|
17
|
+
import {
|
|
18
|
+
ExerciseOrdinalSetAssignmentDataFromJSON,
|
|
19
|
+
ExerciseOrdinalSetAssignmentDataFromJSONTyped,
|
|
20
|
+
ExerciseOrdinalSetAssignmentDataToJSON,
|
|
21
|
+
} from './ExerciseOrdinalSetAssignmentData';
|
|
22
|
+
import type { StrengthExerciseData } from './StrengthExerciseData';
|
|
23
|
+
import {
|
|
24
|
+
StrengthExerciseDataFromJSON,
|
|
25
|
+
StrengthExerciseDataFromJSONTyped,
|
|
26
|
+
StrengthExerciseDataToJSON,
|
|
27
|
+
} from './StrengthExerciseData';
|
|
28
|
+
import type { StrengthMachineData } from './StrengthMachineData';
|
|
29
|
+
import {
|
|
30
|
+
StrengthMachineDataFromJSON,
|
|
31
|
+
StrengthMachineDataFromJSONTyped,
|
|
32
|
+
StrengthMachineDataToJSON,
|
|
33
|
+
} from './StrengthMachineData';
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @export
|
|
38
|
+
* @interface StrengthExerciseVariantData
|
|
39
|
+
*/
|
|
40
|
+
export interface StrengthExerciseVariantData {
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {number}
|
|
44
|
+
* @memberof StrengthExerciseVariantData
|
|
45
|
+
*/
|
|
46
|
+
id: number;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof StrengthExerciseVariantData
|
|
51
|
+
*/
|
|
52
|
+
variant: StrengthExerciseVariantDataVariantEnum;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof StrengthExerciseVariantData
|
|
57
|
+
*/
|
|
58
|
+
attachment?: StrengthExerciseVariantDataAttachmentEnum;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof StrengthExerciseVariantData
|
|
63
|
+
*/
|
|
64
|
+
equipmentMechanicalMovement: StrengthExerciseVariantDataEquipmentMechanicalMovementEnum;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof StrengthExerciseVariantData
|
|
69
|
+
*/
|
|
70
|
+
instructionalImage?: string;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof StrengthExerciseVariantData
|
|
75
|
+
*/
|
|
76
|
+
instructionalVideo?: string;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {StrengthExerciseData}
|
|
80
|
+
* @memberof StrengthExerciseVariantData
|
|
81
|
+
*/
|
|
82
|
+
strengthExercise?: StrengthExerciseData;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @type {StrengthMachineData}
|
|
86
|
+
* @memberof StrengthExerciseVariantData
|
|
87
|
+
*/
|
|
88
|
+
strengthMachine?: StrengthMachineData;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @type {Array<ExerciseOrdinalSetAssignmentData>}
|
|
92
|
+
* @memberof StrengthExerciseVariantData
|
|
93
|
+
*/
|
|
94
|
+
exerciseOrdinalSetAssignments?: Array<ExerciseOrdinalSetAssignmentData>;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* @export
|
|
100
|
+
*/
|
|
101
|
+
export const StrengthExerciseVariantDataVariantEnum = {
|
|
102
|
+
Normal: 'normal',
|
|
103
|
+
SingleArm: 'singleArm',
|
|
104
|
+
SingleLeg: 'singleLeg',
|
|
105
|
+
SingleArmSingleLeg: 'singleArmSingleLeg',
|
|
106
|
+
DoubleArmSingleLeg: 'doubleArmSingleLeg',
|
|
107
|
+
Alternate: 'alternate'
|
|
108
|
+
} as const;
|
|
109
|
+
export type StrengthExerciseVariantDataVariantEnum = typeof StrengthExerciseVariantDataVariantEnum[keyof typeof StrengthExerciseVariantDataVariantEnum];
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* @export
|
|
113
|
+
*/
|
|
114
|
+
export const StrengthExerciseVariantDataAttachmentEnum = {
|
|
115
|
+
Bar: 'bar',
|
|
116
|
+
Rope: 'rope',
|
|
117
|
+
SingleHandles: 'singleHandles',
|
|
118
|
+
DoubleHandles: 'doubleHandles',
|
|
119
|
+
AnkleStrap: 'ankleStrap',
|
|
120
|
+
ThighStrap: 'thighStrap',
|
|
121
|
+
Belt: 'belt'
|
|
122
|
+
} as const;
|
|
123
|
+
export type StrengthExerciseVariantDataAttachmentEnum = typeof StrengthExerciseVariantDataAttachmentEnum[keyof typeof StrengthExerciseVariantDataAttachmentEnum];
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* @export
|
|
127
|
+
*/
|
|
128
|
+
export const StrengthExerciseVariantDataEquipmentMechanicalMovementEnum = {
|
|
129
|
+
Unilateral: 'unilateral',
|
|
130
|
+
Bilateral: 'bilateral'
|
|
131
|
+
} as const;
|
|
132
|
+
export type StrengthExerciseVariantDataEquipmentMechanicalMovementEnum = typeof StrengthExerciseVariantDataEquipmentMechanicalMovementEnum[keyof typeof StrengthExerciseVariantDataEquipmentMechanicalMovementEnum];
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Check if a given object implements the StrengthExerciseVariantData interface.
|
|
137
|
+
*/
|
|
138
|
+
export function instanceOfStrengthExerciseVariantData(value: object): boolean {
|
|
139
|
+
let isInstance = true;
|
|
140
|
+
isInstance = isInstance && "id" in value;
|
|
141
|
+
isInstance = isInstance && "variant" in value;
|
|
142
|
+
isInstance = isInstance && "equipmentMechanicalMovement" in value;
|
|
143
|
+
|
|
144
|
+
return isInstance;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export function StrengthExerciseVariantDataFromJSON(json: any): StrengthExerciseVariantData {
|
|
148
|
+
return StrengthExerciseVariantDataFromJSONTyped(json, false);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export function StrengthExerciseVariantDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): StrengthExerciseVariantData {
|
|
152
|
+
if ((json === undefined) || (json === null)) {
|
|
153
|
+
return json;
|
|
154
|
+
}
|
|
155
|
+
return {
|
|
156
|
+
|
|
157
|
+
'id': json['id'],
|
|
158
|
+
'variant': json['variant'],
|
|
159
|
+
'attachment': !exists(json, 'attachment') ? undefined : json['attachment'],
|
|
160
|
+
'equipmentMechanicalMovement': json['equipmentMechanicalMovement'],
|
|
161
|
+
'instructionalImage': !exists(json, 'instructionalImage') ? undefined : json['instructionalImage'],
|
|
162
|
+
'instructionalVideo': !exists(json, 'instructionalVideo') ? undefined : json['instructionalVideo'],
|
|
163
|
+
'strengthExercise': !exists(json, 'strengthExercise') ? undefined : StrengthExerciseDataFromJSON(json['strengthExercise']),
|
|
164
|
+
'strengthMachine': !exists(json, 'strengthMachine') ? undefined : StrengthMachineDataFromJSON(json['strengthMachine']),
|
|
165
|
+
'exerciseOrdinalSetAssignments': !exists(json, 'exerciseOrdinalSetAssignments') ? undefined : ((json['exerciseOrdinalSetAssignments'] as Array<any>).map(ExerciseOrdinalSetAssignmentDataFromJSON)),
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export function StrengthExerciseVariantDataToJSON(value?: StrengthExerciseVariantData | null): any {
|
|
170
|
+
if (value === undefined) {
|
|
171
|
+
return undefined;
|
|
172
|
+
}
|
|
173
|
+
if (value === null) {
|
|
174
|
+
return null;
|
|
175
|
+
}
|
|
176
|
+
return {
|
|
177
|
+
|
|
178
|
+
'id': value.id,
|
|
179
|
+
'variant': value.variant,
|
|
180
|
+
'attachment': value.attachment,
|
|
181
|
+
'equipmentMechanicalMovement': value.equipmentMechanicalMovement,
|
|
182
|
+
'instructionalImage': value.instructionalImage,
|
|
183
|
+
'instructionalVideo': value.instructionalVideo,
|
|
184
|
+
'strengthExercise': StrengthExerciseDataToJSON(value.strengthExercise),
|
|
185
|
+
'strengthMachine': StrengthMachineDataToJSON(value.strengthMachine),
|
|
186
|
+
'exerciseOrdinalSetAssignments': value.exerciseOrdinalSetAssignments === undefined ? undefined : ((value.exerciseOrdinalSetAssignments as Array<any>).map(ExerciseOrdinalSetAssignmentDataToJSON)),
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* metrics-sdk-admin
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 5.0.12
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { StrengthExerciseData } from './StrengthExerciseData';
|
|
17
|
+
import {
|
|
18
|
+
StrengthExerciseDataFromJSON,
|
|
19
|
+
StrengthExerciseDataFromJSONTyped,
|
|
20
|
+
StrengthExerciseDataToJSON,
|
|
21
|
+
} from './StrengthExerciseData';
|
|
22
|
+
import type { StrengthMachineModelData } from './StrengthMachineModelData';
|
|
23
|
+
import {
|
|
24
|
+
StrengthMachineModelDataFromJSON,
|
|
25
|
+
StrengthMachineModelDataFromJSONTyped,
|
|
26
|
+
StrengthMachineModelDataToJSON,
|
|
27
|
+
} from './StrengthMachineModelData';
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @export
|
|
32
|
+
* @interface StrengthMachineData
|
|
33
|
+
*/
|
|
34
|
+
export interface StrengthMachineData {
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {number}
|
|
38
|
+
* @memberof StrengthMachineData
|
|
39
|
+
*/
|
|
40
|
+
id: number;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof StrengthMachineData
|
|
45
|
+
*/
|
|
46
|
+
name: string;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof StrengthMachineData
|
|
51
|
+
*/
|
|
52
|
+
line: StrengthMachineDataLineEnum;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof StrengthMachineData
|
|
57
|
+
*/
|
|
58
|
+
variant?: string;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {boolean}
|
|
62
|
+
* @memberof StrengthMachineData
|
|
63
|
+
*/
|
|
64
|
+
dualSided: boolean;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {number}
|
|
68
|
+
* @memberof StrengthMachineData
|
|
69
|
+
*/
|
|
70
|
+
defaultStrengthExerciseId?: number;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {StrengthExerciseData}
|
|
74
|
+
* @memberof StrengthMachineData
|
|
75
|
+
*/
|
|
76
|
+
defaultStrengthExercise?: StrengthExerciseData;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {Array<StrengthMachineModelData>}
|
|
80
|
+
* @memberof StrengthMachineData
|
|
81
|
+
*/
|
|
82
|
+
models?: Array<StrengthMachineModelData>;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* @export
|
|
88
|
+
*/
|
|
89
|
+
export const StrengthMachineDataLineEnum = {
|
|
90
|
+
A250: 'a250',
|
|
91
|
+
A300: 'a300',
|
|
92
|
+
A350: 'a350',
|
|
93
|
+
Infinity: 'infinity',
|
|
94
|
+
PowerRack: 'powerRack',
|
|
95
|
+
A400: 'a400',
|
|
96
|
+
A500: 'a500'
|
|
97
|
+
} as const;
|
|
98
|
+
export type StrengthMachineDataLineEnum = typeof StrengthMachineDataLineEnum[keyof typeof StrengthMachineDataLineEnum];
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Check if a given object implements the StrengthMachineData interface.
|
|
103
|
+
*/
|
|
104
|
+
export function instanceOfStrengthMachineData(value: object): boolean {
|
|
105
|
+
let isInstance = true;
|
|
106
|
+
isInstance = isInstance && "id" in value;
|
|
107
|
+
isInstance = isInstance && "name" in value;
|
|
108
|
+
isInstance = isInstance && "line" in value;
|
|
109
|
+
isInstance = isInstance && "dualSided" in value;
|
|
110
|
+
|
|
111
|
+
return isInstance;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export function StrengthMachineDataFromJSON(json: any): StrengthMachineData {
|
|
115
|
+
return StrengthMachineDataFromJSONTyped(json, false);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export function StrengthMachineDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): StrengthMachineData {
|
|
119
|
+
if ((json === undefined) || (json === null)) {
|
|
120
|
+
return json;
|
|
121
|
+
}
|
|
122
|
+
return {
|
|
123
|
+
|
|
124
|
+
'id': json['id'],
|
|
125
|
+
'name': json['name'],
|
|
126
|
+
'line': json['line'],
|
|
127
|
+
'variant': !exists(json, 'variant') ? undefined : json['variant'],
|
|
128
|
+
'dualSided': json['dualSided'],
|
|
129
|
+
'defaultStrengthExerciseId': !exists(json, 'defaultStrengthExerciseId') ? undefined : json['defaultStrengthExerciseId'],
|
|
130
|
+
'defaultStrengthExercise': !exists(json, 'defaultStrengthExercise') ? undefined : StrengthExerciseDataFromJSON(json['defaultStrengthExercise']),
|
|
131
|
+
'models': !exists(json, 'models') ? undefined : ((json['models'] as Array<any>).map(StrengthMachineModelDataFromJSON)),
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export function StrengthMachineDataToJSON(value?: StrengthMachineData | null): any {
|
|
136
|
+
if (value === undefined) {
|
|
137
|
+
return undefined;
|
|
138
|
+
}
|
|
139
|
+
if (value === null) {
|
|
140
|
+
return null;
|
|
141
|
+
}
|
|
142
|
+
return {
|
|
143
|
+
|
|
144
|
+
'id': value.id,
|
|
145
|
+
'name': value.name,
|
|
146
|
+
'line': value.line,
|
|
147
|
+
'variant': value.variant,
|
|
148
|
+
'dualSided': value.dualSided,
|
|
149
|
+
'defaultStrengthExerciseId': value.defaultStrengthExerciseId,
|
|
150
|
+
'defaultStrengthExercise': StrengthExerciseDataToJSON(value.defaultStrengthExercise),
|
|
151
|
+
'models': value.models === undefined ? undefined : ((value.models as Array<any>).map(StrengthMachineModelDataToJSON)),
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
|