@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,249 @@
|
|
|
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 { FacilityData } from './FacilityData';
|
|
17
|
+
import {
|
|
18
|
+
FacilityDataFromJSON,
|
|
19
|
+
FacilityDataFromJSONTyped,
|
|
20
|
+
FacilityDataToJSON,
|
|
21
|
+
} from './FacilityData';
|
|
22
|
+
import type { HeartRateDataSetData } from './HeartRateDataSetData';
|
|
23
|
+
import {
|
|
24
|
+
HeartRateDataSetDataFromJSON,
|
|
25
|
+
HeartRateDataSetDataFromJSONTyped,
|
|
26
|
+
HeartRateDataSetDataToJSON,
|
|
27
|
+
} from './HeartRateDataSetData';
|
|
28
|
+
import type { HeightMeasurementData } from './HeightMeasurementData';
|
|
29
|
+
import {
|
|
30
|
+
HeightMeasurementDataFromJSON,
|
|
31
|
+
HeightMeasurementDataFromJSONTyped,
|
|
32
|
+
HeightMeasurementDataToJSON,
|
|
33
|
+
} from './HeightMeasurementData';
|
|
34
|
+
import type { MSeriesDataSetData } from './MSeriesDataSetData';
|
|
35
|
+
import {
|
|
36
|
+
MSeriesDataSetDataFromJSON,
|
|
37
|
+
MSeriesDataSetDataFromJSONTyped,
|
|
38
|
+
MSeriesDataSetDataToJSON,
|
|
39
|
+
} from './MSeriesDataSetData';
|
|
40
|
+
import type { SessionPlanSequenceInstanceData } from './SessionPlanSequenceInstanceData';
|
|
41
|
+
import {
|
|
42
|
+
SessionPlanSequenceInstanceDataFromJSON,
|
|
43
|
+
SessionPlanSequenceInstanceDataFromJSONTyped,
|
|
44
|
+
SessionPlanSequenceInstanceDataToJSON,
|
|
45
|
+
} from './SessionPlanSequenceInstanceData';
|
|
46
|
+
import type { StrengthMachineDataSetData } from './StrengthMachineDataSetData';
|
|
47
|
+
import {
|
|
48
|
+
StrengthMachineDataSetDataFromJSON,
|
|
49
|
+
StrengthMachineDataSetDataFromJSONTyped,
|
|
50
|
+
StrengthMachineDataSetDataToJSON,
|
|
51
|
+
} from './StrengthMachineDataSetData';
|
|
52
|
+
import type { UserData } from './UserData';
|
|
53
|
+
import {
|
|
54
|
+
UserDataFromJSON,
|
|
55
|
+
UserDataFromJSONTyped,
|
|
56
|
+
UserDataToJSON,
|
|
57
|
+
} from './UserData';
|
|
58
|
+
import type { WeightMeasurementData } from './WeightMeasurementData';
|
|
59
|
+
import {
|
|
60
|
+
WeightMeasurementDataFromJSON,
|
|
61
|
+
WeightMeasurementDataFromJSONTyped,
|
|
62
|
+
WeightMeasurementDataToJSON,
|
|
63
|
+
} from './WeightMeasurementData';
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @export
|
|
68
|
+
* @interface SessionData
|
|
69
|
+
*/
|
|
70
|
+
export interface SessionData {
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {number}
|
|
74
|
+
* @memberof SessionData
|
|
75
|
+
*/
|
|
76
|
+
id: number;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {number}
|
|
80
|
+
* @memberof SessionData
|
|
81
|
+
*/
|
|
82
|
+
userId: number;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @type {string}
|
|
86
|
+
* @memberof SessionData
|
|
87
|
+
*/
|
|
88
|
+
echipId?: string;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @type {string}
|
|
92
|
+
* @memberof SessionData
|
|
93
|
+
*/
|
|
94
|
+
hash: string;
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @type {Date}
|
|
98
|
+
* @memberof SessionData
|
|
99
|
+
*/
|
|
100
|
+
startedAt: Date;
|
|
101
|
+
/**
|
|
102
|
+
*
|
|
103
|
+
* @type {Date}
|
|
104
|
+
* @memberof SessionData
|
|
105
|
+
*/
|
|
106
|
+
endedAt?: Date;
|
|
107
|
+
/**
|
|
108
|
+
*
|
|
109
|
+
* @type {boolean}
|
|
110
|
+
* @memberof SessionData
|
|
111
|
+
*/
|
|
112
|
+
hasMSeriesDataSets: boolean;
|
|
113
|
+
/**
|
|
114
|
+
*
|
|
115
|
+
* @type {boolean}
|
|
116
|
+
* @memberof SessionData
|
|
117
|
+
*/
|
|
118
|
+
hasStrengthMachineDataSets: boolean;
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
* @type {boolean}
|
|
122
|
+
* @memberof SessionData
|
|
123
|
+
*/
|
|
124
|
+
hasHeartRateDataSets: boolean;
|
|
125
|
+
/**
|
|
126
|
+
*
|
|
127
|
+
* @type {UserData}
|
|
128
|
+
* @memberof SessionData
|
|
129
|
+
*/
|
|
130
|
+
user?: UserData;
|
|
131
|
+
/**
|
|
132
|
+
*
|
|
133
|
+
* @type {FacilityData}
|
|
134
|
+
* @memberof SessionData
|
|
135
|
+
*/
|
|
136
|
+
facility?: FacilityData;
|
|
137
|
+
/**
|
|
138
|
+
*
|
|
139
|
+
* @type {SessionPlanSequenceInstanceData}
|
|
140
|
+
* @memberof SessionData
|
|
141
|
+
*/
|
|
142
|
+
sessionPlanSequenceInstance?: SessionPlanSequenceInstanceData;
|
|
143
|
+
/**
|
|
144
|
+
*
|
|
145
|
+
* @type {Array<HeartRateDataSetData>}
|
|
146
|
+
* @memberof SessionData
|
|
147
|
+
*/
|
|
148
|
+
heartRateDataSets?: Array<HeartRateDataSetData>;
|
|
149
|
+
/**
|
|
150
|
+
*
|
|
151
|
+
* @type {Array<MSeriesDataSetData>}
|
|
152
|
+
* @memberof SessionData
|
|
153
|
+
*/
|
|
154
|
+
mSeriesDataSets?: Array<MSeriesDataSetData>;
|
|
155
|
+
/**
|
|
156
|
+
*
|
|
157
|
+
* @type {Array<StrengthMachineDataSetData>}
|
|
158
|
+
* @memberof SessionData
|
|
159
|
+
*/
|
|
160
|
+
strengthMachineDataSets?: Array<StrengthMachineDataSetData>;
|
|
161
|
+
/**
|
|
162
|
+
*
|
|
163
|
+
* @type {HeightMeasurementData}
|
|
164
|
+
* @memberof SessionData
|
|
165
|
+
*/
|
|
166
|
+
heightMeasurement?: HeightMeasurementData;
|
|
167
|
+
/**
|
|
168
|
+
*
|
|
169
|
+
* @type {WeightMeasurementData}
|
|
170
|
+
* @memberof SessionData
|
|
171
|
+
*/
|
|
172
|
+
weightMeasurement?: WeightMeasurementData;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Check if a given object implements the SessionData interface.
|
|
177
|
+
*/
|
|
178
|
+
export function instanceOfSessionData(value: object): boolean {
|
|
179
|
+
let isInstance = true;
|
|
180
|
+
isInstance = isInstance && "id" in value;
|
|
181
|
+
isInstance = isInstance && "userId" in value;
|
|
182
|
+
isInstance = isInstance && "hash" in value;
|
|
183
|
+
isInstance = isInstance && "startedAt" in value;
|
|
184
|
+
isInstance = isInstance && "hasMSeriesDataSets" in value;
|
|
185
|
+
isInstance = isInstance && "hasStrengthMachineDataSets" in value;
|
|
186
|
+
isInstance = isInstance && "hasHeartRateDataSets" in value;
|
|
187
|
+
|
|
188
|
+
return isInstance;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
export function SessionDataFromJSON(json: any): SessionData {
|
|
192
|
+
return SessionDataFromJSONTyped(json, false);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
export function SessionDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): SessionData {
|
|
196
|
+
if ((json === undefined) || (json === null)) {
|
|
197
|
+
return json;
|
|
198
|
+
}
|
|
199
|
+
return {
|
|
200
|
+
|
|
201
|
+
'id': json['id'],
|
|
202
|
+
'userId': json['userId'],
|
|
203
|
+
'echipId': !exists(json, 'echipId') ? undefined : json['echipId'],
|
|
204
|
+
'hash': json['hash'],
|
|
205
|
+
'startedAt': (new Date(json['startedAt'])),
|
|
206
|
+
'endedAt': !exists(json, 'endedAt') ? undefined : (new Date(json['endedAt'])),
|
|
207
|
+
'hasMSeriesDataSets': json['hasMSeriesDataSets'],
|
|
208
|
+
'hasStrengthMachineDataSets': json['hasStrengthMachineDataSets'],
|
|
209
|
+
'hasHeartRateDataSets': json['hasHeartRateDataSets'],
|
|
210
|
+
'user': !exists(json, 'user') ? undefined : UserDataFromJSON(json['user']),
|
|
211
|
+
'facility': !exists(json, 'facility') ? undefined : FacilityDataFromJSON(json['facility']),
|
|
212
|
+
'sessionPlanSequenceInstance': !exists(json, 'sessionPlanSequenceInstance') ? undefined : SessionPlanSequenceInstanceDataFromJSON(json['sessionPlanSequenceInstance']),
|
|
213
|
+
'heartRateDataSets': !exists(json, 'heartRateDataSets') ? undefined : ((json['heartRateDataSets'] as Array<any>).map(HeartRateDataSetDataFromJSON)),
|
|
214
|
+
'mSeriesDataSets': !exists(json, 'mSeriesDataSets') ? undefined : ((json['mSeriesDataSets'] as Array<any>).map(MSeriesDataSetDataFromJSON)),
|
|
215
|
+
'strengthMachineDataSets': !exists(json, 'strengthMachineDataSets') ? undefined : ((json['strengthMachineDataSets'] as Array<any>).map(StrengthMachineDataSetDataFromJSON)),
|
|
216
|
+
'heightMeasurement': !exists(json, 'heightMeasurement') ? undefined : HeightMeasurementDataFromJSON(json['heightMeasurement']),
|
|
217
|
+
'weightMeasurement': !exists(json, 'weightMeasurement') ? undefined : WeightMeasurementDataFromJSON(json['weightMeasurement']),
|
|
218
|
+
};
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
export function SessionDataToJSON(value?: SessionData | null): any {
|
|
222
|
+
if (value === undefined) {
|
|
223
|
+
return undefined;
|
|
224
|
+
}
|
|
225
|
+
if (value === null) {
|
|
226
|
+
return null;
|
|
227
|
+
}
|
|
228
|
+
return {
|
|
229
|
+
|
|
230
|
+
'id': value.id,
|
|
231
|
+
'userId': value.userId,
|
|
232
|
+
'echipId': value.echipId,
|
|
233
|
+
'hash': value.hash,
|
|
234
|
+
'startedAt': (value.startedAt.toISOString()),
|
|
235
|
+
'endedAt': value.endedAt === undefined ? undefined : (value.endedAt.toISOString()),
|
|
236
|
+
'hasMSeriesDataSets': value.hasMSeriesDataSets,
|
|
237
|
+
'hasStrengthMachineDataSets': value.hasStrengthMachineDataSets,
|
|
238
|
+
'hasHeartRateDataSets': value.hasHeartRateDataSets,
|
|
239
|
+
'user': UserDataToJSON(value.user),
|
|
240
|
+
'facility': FacilityDataToJSON(value.facility),
|
|
241
|
+
'sessionPlanSequenceInstance': SessionPlanSequenceInstanceDataToJSON(value.sessionPlanSequenceInstance),
|
|
242
|
+
'heartRateDataSets': value.heartRateDataSets === undefined ? undefined : ((value.heartRateDataSets as Array<any>).map(HeartRateDataSetDataToJSON)),
|
|
243
|
+
'mSeriesDataSets': value.mSeriesDataSets === undefined ? undefined : ((value.mSeriesDataSets as Array<any>).map(MSeriesDataSetDataToJSON)),
|
|
244
|
+
'strengthMachineDataSets': value.strengthMachineDataSets === undefined ? undefined : ((value.strengthMachineDataSets as Array<any>).map(StrengthMachineDataSetDataToJSON)),
|
|
245
|
+
'heightMeasurement': HeightMeasurementDataToJSON(value.heightMeasurement),
|
|
246
|
+
'weightMeasurement': WeightMeasurementDataToJSON(value.weightMeasurement),
|
|
247
|
+
};
|
|
248
|
+
}
|
|
249
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
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
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface SessionPlanActivitySetData
|
|
20
|
+
*/
|
|
21
|
+
export interface SessionPlanActivitySetData {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof SessionPlanActivitySetData
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the SessionPlanActivitySetData interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfSessionPlanActivitySetData(value: object): boolean {
|
|
34
|
+
let isInstance = true;
|
|
35
|
+
isInstance = isInstance && "name" in value;
|
|
36
|
+
|
|
37
|
+
return isInstance;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function SessionPlanActivitySetDataFromJSON(json: any): SessionPlanActivitySetData {
|
|
41
|
+
return SessionPlanActivitySetDataFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function SessionPlanActivitySetDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): SessionPlanActivitySetData {
|
|
45
|
+
if ((json === undefined) || (json === null)) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
|
|
50
|
+
'name': json['name'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function SessionPlanActivitySetDataToJSON(value?: SessionPlanActivitySetData | null): any {
|
|
55
|
+
if (value === undefined) {
|
|
56
|
+
return undefined;
|
|
57
|
+
}
|
|
58
|
+
if (value === null) {
|
|
59
|
+
return null;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'name': value.name,
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,113 @@
|
|
|
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 { CardioExerciseData } from './CardioExerciseData';
|
|
17
|
+
import {
|
|
18
|
+
CardioExerciseDataFromJSON,
|
|
19
|
+
CardioExerciseDataFromJSONTyped,
|
|
20
|
+
CardioExerciseDataToJSON,
|
|
21
|
+
} from './CardioExerciseData';
|
|
22
|
+
import type { CardioMachineData } from './CardioMachineData';
|
|
23
|
+
import {
|
|
24
|
+
CardioMachineDataFromJSON,
|
|
25
|
+
CardioMachineDataFromJSONTyped,
|
|
26
|
+
CardioMachineDataToJSON,
|
|
27
|
+
} from './CardioMachineData';
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @export
|
|
32
|
+
* @interface SessionPlanCardioSetData
|
|
33
|
+
*/
|
|
34
|
+
export interface SessionPlanCardioSetData {
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {number}
|
|
38
|
+
* @memberof SessionPlanCardioSetData
|
|
39
|
+
*/
|
|
40
|
+
duration: number;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {number}
|
|
44
|
+
* @memberof SessionPlanCardioSetData
|
|
45
|
+
*/
|
|
46
|
+
distance: number;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {number}
|
|
50
|
+
* @memberof SessionPlanCardioSetData
|
|
51
|
+
*/
|
|
52
|
+
caloricBurn: number;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {CardioExerciseData}
|
|
56
|
+
* @memberof SessionPlanCardioSetData
|
|
57
|
+
*/
|
|
58
|
+
cardioExercise?: CardioExerciseData;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {CardioMachineData}
|
|
62
|
+
* @memberof SessionPlanCardioSetData
|
|
63
|
+
*/
|
|
64
|
+
cardioMachine?: CardioMachineData;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Check if a given object implements the SessionPlanCardioSetData interface.
|
|
69
|
+
*/
|
|
70
|
+
export function instanceOfSessionPlanCardioSetData(value: object): boolean {
|
|
71
|
+
let isInstance = true;
|
|
72
|
+
isInstance = isInstance && "duration" in value;
|
|
73
|
+
isInstance = isInstance && "distance" in value;
|
|
74
|
+
isInstance = isInstance && "caloricBurn" in value;
|
|
75
|
+
|
|
76
|
+
return isInstance;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function SessionPlanCardioSetDataFromJSON(json: any): SessionPlanCardioSetData {
|
|
80
|
+
return SessionPlanCardioSetDataFromJSONTyped(json, false);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function SessionPlanCardioSetDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): SessionPlanCardioSetData {
|
|
84
|
+
if ((json === undefined) || (json === null)) {
|
|
85
|
+
return json;
|
|
86
|
+
}
|
|
87
|
+
return {
|
|
88
|
+
|
|
89
|
+
'duration': json['duration'],
|
|
90
|
+
'distance': json['distance'],
|
|
91
|
+
'caloricBurn': json['caloricBurn'],
|
|
92
|
+
'cardioExercise': !exists(json, 'cardioExercise') ? undefined : CardioExerciseDataFromJSON(json['cardioExercise']),
|
|
93
|
+
'cardioMachine': !exists(json, 'cardioMachine') ? undefined : CardioMachineDataFromJSON(json['cardioMachine']),
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function SessionPlanCardioSetDataToJSON(value?: SessionPlanCardioSetData | null): any {
|
|
98
|
+
if (value === undefined) {
|
|
99
|
+
return undefined;
|
|
100
|
+
}
|
|
101
|
+
if (value === null) {
|
|
102
|
+
return null;
|
|
103
|
+
}
|
|
104
|
+
return {
|
|
105
|
+
|
|
106
|
+
'duration': value.duration,
|
|
107
|
+
'distance': value.distance,
|
|
108
|
+
'caloricBurn': value.caloricBurn,
|
|
109
|
+
'cardioExercise': CardioExerciseDataToJSON(value.cardioExercise),
|
|
110
|
+
'cardioMachine': CardioMachineDataToJSON(value.cardioMachine),
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
|
|
@@ -0,0 +1,205 @@
|
|
|
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 { SessionPlanSequenceAssignmentData } from './SessionPlanSequenceAssignmentData';
|
|
17
|
+
import {
|
|
18
|
+
SessionPlanSequenceAssignmentDataFromJSON,
|
|
19
|
+
SessionPlanSequenceAssignmentDataFromJSONTyped,
|
|
20
|
+
SessionPlanSequenceAssignmentDataToJSON,
|
|
21
|
+
} from './SessionPlanSequenceAssignmentData';
|
|
22
|
+
import type { SessionPlanSequenceInstanceData } from './SessionPlanSequenceInstanceData';
|
|
23
|
+
import {
|
|
24
|
+
SessionPlanSequenceInstanceDataFromJSON,
|
|
25
|
+
SessionPlanSequenceInstanceDataFromJSONTyped,
|
|
26
|
+
SessionPlanSequenceInstanceDataToJSON,
|
|
27
|
+
} from './SessionPlanSequenceInstanceData';
|
|
28
|
+
import type { UserData } from './UserData';
|
|
29
|
+
import {
|
|
30
|
+
UserDataFromJSON,
|
|
31
|
+
UserDataFromJSONTyped,
|
|
32
|
+
UserDataToJSON,
|
|
33
|
+
} from './UserData';
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @export
|
|
38
|
+
* @interface SessionPlanData
|
|
39
|
+
*/
|
|
40
|
+
export interface SessionPlanData {
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {number}
|
|
44
|
+
* @memberof SessionPlanData
|
|
45
|
+
*/
|
|
46
|
+
id: number;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof SessionPlanData
|
|
51
|
+
*/
|
|
52
|
+
name: string;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof SessionPlanData
|
|
57
|
+
*/
|
|
58
|
+
description: string;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof SessionPlanData
|
|
63
|
+
*/
|
|
64
|
+
notes: string;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof SessionPlanData
|
|
69
|
+
*/
|
|
70
|
+
startAt: string;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof SessionPlanData
|
|
75
|
+
*/
|
|
76
|
+
endAt?: string;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {boolean}
|
|
80
|
+
* @memberof SessionPlanData
|
|
81
|
+
*/
|
|
82
|
+
active: boolean;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @type {boolean}
|
|
86
|
+
* @memberof SessionPlanData
|
|
87
|
+
*/
|
|
88
|
+
repeating: boolean;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @type {boolean}
|
|
92
|
+
* @memberof SessionPlanData
|
|
93
|
+
*/
|
|
94
|
+
flexible: boolean;
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @type {number}
|
|
98
|
+
* @memberof SessionPlanData
|
|
99
|
+
*/
|
|
100
|
+
scheduleLength: number;
|
|
101
|
+
/**
|
|
102
|
+
*
|
|
103
|
+
* @type {number}
|
|
104
|
+
* @memberof SessionPlanData
|
|
105
|
+
*/
|
|
106
|
+
lastCompletedIndex?: number;
|
|
107
|
+
/**
|
|
108
|
+
*
|
|
109
|
+
* @type {SessionPlanSequenceInstanceData}
|
|
110
|
+
* @memberof SessionPlanData
|
|
111
|
+
*/
|
|
112
|
+
lastCompletedSequence?: SessionPlanSequenceInstanceData;
|
|
113
|
+
/**
|
|
114
|
+
*
|
|
115
|
+
* @type {UserData}
|
|
116
|
+
* @memberof SessionPlanData
|
|
117
|
+
*/
|
|
118
|
+
user?: UserData;
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
* @type {Array<SessionPlanSequenceAssignmentData>}
|
|
122
|
+
* @memberof SessionPlanData
|
|
123
|
+
*/
|
|
124
|
+
sessionPlanSequenceAssignments?: Array<SessionPlanSequenceAssignmentData>;
|
|
125
|
+
/**
|
|
126
|
+
*
|
|
127
|
+
* @type {Array<SessionPlanSequenceInstanceData>}
|
|
128
|
+
* @memberof SessionPlanData
|
|
129
|
+
*/
|
|
130
|
+
sessionPlanSequenceInstances?: Array<SessionPlanSequenceInstanceData>;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Check if a given object implements the SessionPlanData interface.
|
|
135
|
+
*/
|
|
136
|
+
export function instanceOfSessionPlanData(value: object): boolean {
|
|
137
|
+
let isInstance = true;
|
|
138
|
+
isInstance = isInstance && "id" in value;
|
|
139
|
+
isInstance = isInstance && "name" in value;
|
|
140
|
+
isInstance = isInstance && "description" in value;
|
|
141
|
+
isInstance = isInstance && "notes" in value;
|
|
142
|
+
isInstance = isInstance && "startAt" in value;
|
|
143
|
+
isInstance = isInstance && "active" in value;
|
|
144
|
+
isInstance = isInstance && "repeating" in value;
|
|
145
|
+
isInstance = isInstance && "flexible" in value;
|
|
146
|
+
isInstance = isInstance && "scheduleLength" in value;
|
|
147
|
+
|
|
148
|
+
return isInstance;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export function SessionPlanDataFromJSON(json: any): SessionPlanData {
|
|
152
|
+
return SessionPlanDataFromJSONTyped(json, false);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
export function SessionPlanDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): SessionPlanData {
|
|
156
|
+
if ((json === undefined) || (json === null)) {
|
|
157
|
+
return json;
|
|
158
|
+
}
|
|
159
|
+
return {
|
|
160
|
+
|
|
161
|
+
'id': json['id'],
|
|
162
|
+
'name': json['name'],
|
|
163
|
+
'description': json['description'],
|
|
164
|
+
'notes': json['notes'],
|
|
165
|
+
'startAt': json['startAt'],
|
|
166
|
+
'endAt': !exists(json, 'endAt') ? undefined : json['endAt'],
|
|
167
|
+
'active': json['active'],
|
|
168
|
+
'repeating': json['repeating'],
|
|
169
|
+
'flexible': json['flexible'],
|
|
170
|
+
'scheduleLength': json['scheduleLength'],
|
|
171
|
+
'lastCompletedIndex': !exists(json, 'lastCompletedIndex') ? undefined : json['lastCompletedIndex'],
|
|
172
|
+
'lastCompletedSequence': !exists(json, 'lastCompletedSequence') ? undefined : SessionPlanSequenceInstanceDataFromJSON(json['lastCompletedSequence']),
|
|
173
|
+
'user': !exists(json, 'user') ? undefined : UserDataFromJSON(json['user']),
|
|
174
|
+
'sessionPlanSequenceAssignments': !exists(json, 'sessionPlanSequenceAssignments') ? undefined : ((json['sessionPlanSequenceAssignments'] as Array<any>).map(SessionPlanSequenceAssignmentDataFromJSON)),
|
|
175
|
+
'sessionPlanSequenceInstances': !exists(json, 'sessionPlanSequenceInstances') ? undefined : ((json['sessionPlanSequenceInstances'] as Array<any>).map(SessionPlanSequenceInstanceDataFromJSON)),
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
export function SessionPlanDataToJSON(value?: SessionPlanData | null): any {
|
|
180
|
+
if (value === undefined) {
|
|
181
|
+
return undefined;
|
|
182
|
+
}
|
|
183
|
+
if (value === null) {
|
|
184
|
+
return null;
|
|
185
|
+
}
|
|
186
|
+
return {
|
|
187
|
+
|
|
188
|
+
'id': value.id,
|
|
189
|
+
'name': value.name,
|
|
190
|
+
'description': value.description,
|
|
191
|
+
'notes': value.notes,
|
|
192
|
+
'startAt': value.startAt,
|
|
193
|
+
'endAt': value.endAt,
|
|
194
|
+
'active': value.active,
|
|
195
|
+
'repeating': value.repeating,
|
|
196
|
+
'flexible': value.flexible,
|
|
197
|
+
'scheduleLength': value.scheduleLength,
|
|
198
|
+
'lastCompletedIndex': value.lastCompletedIndex,
|
|
199
|
+
'lastCompletedSequence': SessionPlanSequenceInstanceDataToJSON(value.lastCompletedSequence),
|
|
200
|
+
'user': UserDataToJSON(value.user),
|
|
201
|
+
'sessionPlanSequenceAssignments': value.sessionPlanSequenceAssignments === undefined ? undefined : ((value.sessionPlanSequenceAssignments as Array<any>).map(SessionPlanSequenceAssignmentDataToJSON)),
|
|
202
|
+
'sessionPlanSequenceInstances': value.sessionPlanSequenceInstances === undefined ? undefined : ((value.sessionPlanSequenceInstances as Array<any>).map(SessionPlanSequenceInstanceDataToJSON)),
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
|