@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,132 @@
|
|
|
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 { CardioExerciseVariantData } from './CardioExerciseVariantData';
|
|
17
|
+
import {
|
|
18
|
+
CardioExerciseVariantDataFromJSON,
|
|
19
|
+
CardioExerciseVariantDataFromJSONTyped,
|
|
20
|
+
CardioExerciseVariantDataToJSON,
|
|
21
|
+
} from './CardioExerciseVariantData';
|
|
22
|
+
import type { ExerciseOrdinalSetData } from './ExerciseOrdinalSetData';
|
|
23
|
+
import {
|
|
24
|
+
ExerciseOrdinalSetDataFromJSON,
|
|
25
|
+
ExerciseOrdinalSetDataFromJSONTyped,
|
|
26
|
+
ExerciseOrdinalSetDataToJSON,
|
|
27
|
+
} from './ExerciseOrdinalSetData';
|
|
28
|
+
import type { StrengthExerciseVariantData } from './StrengthExerciseVariantData';
|
|
29
|
+
import {
|
|
30
|
+
StrengthExerciseVariantDataFromJSON,
|
|
31
|
+
StrengthExerciseVariantDataFromJSONTyped,
|
|
32
|
+
StrengthExerciseVariantDataToJSON,
|
|
33
|
+
} from './StrengthExerciseVariantData';
|
|
34
|
+
import type { StretchExerciseVariantData } from './StretchExerciseVariantData';
|
|
35
|
+
import {
|
|
36
|
+
StretchExerciseVariantDataFromJSON,
|
|
37
|
+
StretchExerciseVariantDataFromJSONTyped,
|
|
38
|
+
StretchExerciseVariantDataToJSON,
|
|
39
|
+
} from './StretchExerciseVariantData';
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @export
|
|
44
|
+
* @interface ExerciseOrdinalSetAssignmentData
|
|
45
|
+
*/
|
|
46
|
+
export interface ExerciseOrdinalSetAssignmentData {
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {number}
|
|
50
|
+
* @memberof ExerciseOrdinalSetAssignmentData
|
|
51
|
+
*/
|
|
52
|
+
id: number;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof ExerciseOrdinalSetAssignmentData
|
|
57
|
+
*/
|
|
58
|
+
ordinalIdentifier: string;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {ExerciseOrdinalSetData}
|
|
62
|
+
* @memberof ExerciseOrdinalSetAssignmentData
|
|
63
|
+
*/
|
|
64
|
+
exerciseOrdinalSet?: ExerciseOrdinalSetData;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {StrengthExerciseVariantData}
|
|
68
|
+
* @memberof ExerciseOrdinalSetAssignmentData
|
|
69
|
+
*/
|
|
70
|
+
strengthExerciseVariant?: StrengthExerciseVariantData;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {CardioExerciseVariantData}
|
|
74
|
+
* @memberof ExerciseOrdinalSetAssignmentData
|
|
75
|
+
*/
|
|
76
|
+
cardioExerciseVariant?: CardioExerciseVariantData;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {StretchExerciseVariantData}
|
|
80
|
+
* @memberof ExerciseOrdinalSetAssignmentData
|
|
81
|
+
*/
|
|
82
|
+
stretchExerciseVariant?: StretchExerciseVariantData;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Check if a given object implements the ExerciseOrdinalSetAssignmentData interface.
|
|
87
|
+
*/
|
|
88
|
+
export function instanceOfExerciseOrdinalSetAssignmentData(value: object): boolean {
|
|
89
|
+
let isInstance = true;
|
|
90
|
+
isInstance = isInstance && "id" in value;
|
|
91
|
+
isInstance = isInstance && "ordinalIdentifier" in value;
|
|
92
|
+
|
|
93
|
+
return isInstance;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function ExerciseOrdinalSetAssignmentDataFromJSON(json: any): ExerciseOrdinalSetAssignmentData {
|
|
97
|
+
return ExerciseOrdinalSetAssignmentDataFromJSONTyped(json, false);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function ExerciseOrdinalSetAssignmentDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExerciseOrdinalSetAssignmentData {
|
|
101
|
+
if ((json === undefined) || (json === null)) {
|
|
102
|
+
return json;
|
|
103
|
+
}
|
|
104
|
+
return {
|
|
105
|
+
|
|
106
|
+
'id': json['id'],
|
|
107
|
+
'ordinalIdentifier': json['ordinalIdentifier'],
|
|
108
|
+
'exerciseOrdinalSet': !exists(json, 'exerciseOrdinalSet') ? undefined : ExerciseOrdinalSetDataFromJSON(json['exerciseOrdinalSet']),
|
|
109
|
+
'strengthExerciseVariant': !exists(json, 'strengthExerciseVariant') ? undefined : StrengthExerciseVariantDataFromJSON(json['strengthExerciseVariant']),
|
|
110
|
+
'cardioExerciseVariant': !exists(json, 'cardioExerciseVariant') ? undefined : CardioExerciseVariantDataFromJSON(json['cardioExerciseVariant']),
|
|
111
|
+
'stretchExerciseVariant': !exists(json, 'stretchExerciseVariant') ? undefined : StretchExerciseVariantDataFromJSON(json['stretchExerciseVariant']),
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export function ExerciseOrdinalSetAssignmentDataToJSON(value?: ExerciseOrdinalSetAssignmentData | null): any {
|
|
116
|
+
if (value === undefined) {
|
|
117
|
+
return undefined;
|
|
118
|
+
}
|
|
119
|
+
if (value === null) {
|
|
120
|
+
return null;
|
|
121
|
+
}
|
|
122
|
+
return {
|
|
123
|
+
|
|
124
|
+
'id': value.id,
|
|
125
|
+
'ordinalIdentifier': value.ordinalIdentifier,
|
|
126
|
+
'exerciseOrdinalSet': ExerciseOrdinalSetDataToJSON(value.exerciseOrdinalSet),
|
|
127
|
+
'strengthExerciseVariant': StrengthExerciseVariantDataToJSON(value.strengthExerciseVariant),
|
|
128
|
+
'cardioExerciseVariant': CardioExerciseVariantDataToJSON(value.cardioExerciseVariant),
|
|
129
|
+
'stretchExerciseVariant': StretchExerciseVariantDataToJSON(value.stretchExerciseVariant),
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
|
|
@@ -0,0 +1,107 @@
|
|
|
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
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface ExerciseOrdinalSetData
|
|
27
|
+
*/
|
|
28
|
+
export interface ExerciseOrdinalSetData {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {number}
|
|
32
|
+
* @memberof ExerciseOrdinalSetData
|
|
33
|
+
*/
|
|
34
|
+
id: number;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof ExerciseOrdinalSetData
|
|
39
|
+
*/
|
|
40
|
+
code: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof ExerciseOrdinalSetData
|
|
45
|
+
*/
|
|
46
|
+
name: string;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof ExerciseOrdinalSetData
|
|
51
|
+
*/
|
|
52
|
+
description?: string;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {Array<ExerciseOrdinalSetAssignmentData>}
|
|
56
|
+
* @memberof ExerciseOrdinalSetData
|
|
57
|
+
*/
|
|
58
|
+
exerciseOrdinalSetAssignments?: Array<ExerciseOrdinalSetAssignmentData>;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the ExerciseOrdinalSetData interface.
|
|
63
|
+
*/
|
|
64
|
+
export function instanceOfExerciseOrdinalSetData(value: object): boolean {
|
|
65
|
+
let isInstance = true;
|
|
66
|
+
isInstance = isInstance && "id" in value;
|
|
67
|
+
isInstance = isInstance && "code" in value;
|
|
68
|
+
isInstance = isInstance && "name" in value;
|
|
69
|
+
|
|
70
|
+
return isInstance;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function ExerciseOrdinalSetDataFromJSON(json: any): ExerciseOrdinalSetData {
|
|
74
|
+
return ExerciseOrdinalSetDataFromJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function ExerciseOrdinalSetDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExerciseOrdinalSetData {
|
|
78
|
+
if ((json === undefined) || (json === null)) {
|
|
79
|
+
return json;
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
|
|
83
|
+
'id': json['id'],
|
|
84
|
+
'code': json['code'],
|
|
85
|
+
'name': json['name'],
|
|
86
|
+
'description': !exists(json, 'description') ? undefined : json['description'],
|
|
87
|
+
'exerciseOrdinalSetAssignments': !exists(json, 'exerciseOrdinalSetAssignments') ? undefined : ((json['exerciseOrdinalSetAssignments'] as Array<any>).map(ExerciseOrdinalSetAssignmentDataFromJSON)),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function ExerciseOrdinalSetDataToJSON(value?: ExerciseOrdinalSetData | null): any {
|
|
92
|
+
if (value === undefined) {
|
|
93
|
+
return undefined;
|
|
94
|
+
}
|
|
95
|
+
if (value === null) {
|
|
96
|
+
return null;
|
|
97
|
+
}
|
|
98
|
+
return {
|
|
99
|
+
|
|
100
|
+
'id': value.id,
|
|
101
|
+
'code': value.code,
|
|
102
|
+
'name': value.name,
|
|
103
|
+
'description': value.description,
|
|
104
|
+
'exerciseOrdinalSetAssignments': value.exerciseOrdinalSetAssignments === undefined ? undefined : ((value.exerciseOrdinalSetAssignments as Array<any>).map(ExerciseOrdinalSetAssignmentDataToJSON)),
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
|
|
@@ -0,0 +1,167 @@
|
|
|
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 FacilityConfigurationData
|
|
20
|
+
*/
|
|
21
|
+
export interface FacilityConfigurationData {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof FacilityConfigurationData
|
|
26
|
+
*/
|
|
27
|
+
facilityId: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof FacilityConfigurationData
|
|
32
|
+
*/
|
|
33
|
+
memberIdentificationComposition: FacilityConfigurationDataMemberIdentificationCompositionEnum;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {boolean}
|
|
37
|
+
* @memberof FacilityConfigurationData
|
|
38
|
+
*/
|
|
39
|
+
memberIdentificationForceLength: boolean;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof FacilityConfigurationData
|
|
44
|
+
*/
|
|
45
|
+
memberIdentificationLength: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof FacilityConfigurationData
|
|
50
|
+
*/
|
|
51
|
+
memberIdentificationRegex: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof FacilityConfigurationData
|
|
56
|
+
*/
|
|
57
|
+
memberSecretComposition: FacilityConfigurationDataMemberSecretCompositionEnum;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {boolean}
|
|
61
|
+
* @memberof FacilityConfigurationData
|
|
62
|
+
*/
|
|
63
|
+
memberSecretForceLength: boolean;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {number}
|
|
67
|
+
* @memberof FacilityConfigurationData
|
|
68
|
+
*/
|
|
69
|
+
memberSecretLength: number;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof FacilityConfigurationData
|
|
74
|
+
*/
|
|
75
|
+
memberSecretRegex: string;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {boolean}
|
|
79
|
+
* @memberof FacilityConfigurationData
|
|
80
|
+
*/
|
|
81
|
+
memberRequireEmail: boolean;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* @export
|
|
87
|
+
*/
|
|
88
|
+
export const FacilityConfigurationDataMemberIdentificationCompositionEnum = {
|
|
89
|
+
Numeric: 'numeric',
|
|
90
|
+
Alpha: 'alpha'
|
|
91
|
+
} as const;
|
|
92
|
+
export type FacilityConfigurationDataMemberIdentificationCompositionEnum = typeof FacilityConfigurationDataMemberIdentificationCompositionEnum[keyof typeof FacilityConfigurationDataMemberIdentificationCompositionEnum];
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* @export
|
|
96
|
+
*/
|
|
97
|
+
export const FacilityConfigurationDataMemberSecretCompositionEnum = {
|
|
98
|
+
Numeric: 'numeric',
|
|
99
|
+
Alpha: 'alpha'
|
|
100
|
+
} as const;
|
|
101
|
+
export type FacilityConfigurationDataMemberSecretCompositionEnum = typeof FacilityConfigurationDataMemberSecretCompositionEnum[keyof typeof FacilityConfigurationDataMemberSecretCompositionEnum];
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Check if a given object implements the FacilityConfigurationData interface.
|
|
106
|
+
*/
|
|
107
|
+
export function instanceOfFacilityConfigurationData(value: object): boolean {
|
|
108
|
+
let isInstance = true;
|
|
109
|
+
isInstance = isInstance && "facilityId" in value;
|
|
110
|
+
isInstance = isInstance && "memberIdentificationComposition" in value;
|
|
111
|
+
isInstance = isInstance && "memberIdentificationForceLength" in value;
|
|
112
|
+
isInstance = isInstance && "memberIdentificationLength" in value;
|
|
113
|
+
isInstance = isInstance && "memberIdentificationRegex" in value;
|
|
114
|
+
isInstance = isInstance && "memberSecretComposition" in value;
|
|
115
|
+
isInstance = isInstance && "memberSecretForceLength" in value;
|
|
116
|
+
isInstance = isInstance && "memberSecretLength" in value;
|
|
117
|
+
isInstance = isInstance && "memberSecretRegex" in value;
|
|
118
|
+
isInstance = isInstance && "memberRequireEmail" in value;
|
|
119
|
+
|
|
120
|
+
return isInstance;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export function FacilityConfigurationDataFromJSON(json: any): FacilityConfigurationData {
|
|
124
|
+
return FacilityConfigurationDataFromJSONTyped(json, false);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export function FacilityConfigurationDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): FacilityConfigurationData {
|
|
128
|
+
if ((json === undefined) || (json === null)) {
|
|
129
|
+
return json;
|
|
130
|
+
}
|
|
131
|
+
return {
|
|
132
|
+
|
|
133
|
+
'facilityId': json['facilityId'],
|
|
134
|
+
'memberIdentificationComposition': json['memberIdentificationComposition'],
|
|
135
|
+
'memberIdentificationForceLength': json['memberIdentificationForceLength'],
|
|
136
|
+
'memberIdentificationLength': json['memberIdentificationLength'],
|
|
137
|
+
'memberIdentificationRegex': json['memberIdentificationRegex'],
|
|
138
|
+
'memberSecretComposition': json['memberSecretComposition'],
|
|
139
|
+
'memberSecretForceLength': json['memberSecretForceLength'],
|
|
140
|
+
'memberSecretLength': json['memberSecretLength'],
|
|
141
|
+
'memberSecretRegex': json['memberSecretRegex'],
|
|
142
|
+
'memberRequireEmail': json['memberRequireEmail'],
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export function FacilityConfigurationDataToJSON(value?: FacilityConfigurationData | null): any {
|
|
147
|
+
if (value === undefined) {
|
|
148
|
+
return undefined;
|
|
149
|
+
}
|
|
150
|
+
if (value === null) {
|
|
151
|
+
return null;
|
|
152
|
+
}
|
|
153
|
+
return {
|
|
154
|
+
|
|
155
|
+
'facilityId': value.facilityId,
|
|
156
|
+
'memberIdentificationComposition': value.memberIdentificationComposition,
|
|
157
|
+
'memberIdentificationForceLength': value.memberIdentificationForceLength,
|
|
158
|
+
'memberIdentificationLength': value.memberIdentificationLength,
|
|
159
|
+
'memberIdentificationRegex': value.memberIdentificationRegex,
|
|
160
|
+
'memberSecretComposition': value.memberSecretComposition,
|
|
161
|
+
'memberSecretForceLength': value.memberSecretForceLength,
|
|
162
|
+
'memberSecretLength': value.memberSecretLength,
|
|
163
|
+
'memberSecretRegex': value.memberSecretRegex,
|
|
164
|
+
'memberRequireEmail': value.memberRequireEmail,
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
|
|
@@ -0,0 +1,132 @@
|
|
|
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 { FacilityConfigurationData } from './FacilityConfigurationData';
|
|
17
|
+
import {
|
|
18
|
+
FacilityConfigurationDataFromJSON,
|
|
19
|
+
FacilityConfigurationDataFromJSONTyped,
|
|
20
|
+
FacilityConfigurationDataToJSON,
|
|
21
|
+
} from './FacilityConfigurationData';
|
|
22
|
+
import type { FacilityLicenseData } from './FacilityLicenseData';
|
|
23
|
+
import {
|
|
24
|
+
FacilityLicenseDataFromJSON,
|
|
25
|
+
FacilityLicenseDataFromJSONTyped,
|
|
26
|
+
FacilityLicenseDataToJSON,
|
|
27
|
+
} from './FacilityLicenseData';
|
|
28
|
+
import type { FacilityProfileData } from './FacilityProfileData';
|
|
29
|
+
import {
|
|
30
|
+
FacilityProfileDataFromJSON,
|
|
31
|
+
FacilityProfileDataFromJSONTyped,
|
|
32
|
+
FacilityProfileDataToJSON,
|
|
33
|
+
} from './FacilityProfileData';
|
|
34
|
+
import type { FacilityStrengthMachineConfigurationData } from './FacilityStrengthMachineConfigurationData';
|
|
35
|
+
import {
|
|
36
|
+
FacilityStrengthMachineConfigurationDataFromJSON,
|
|
37
|
+
FacilityStrengthMachineConfigurationDataFromJSONTyped,
|
|
38
|
+
FacilityStrengthMachineConfigurationDataToJSON,
|
|
39
|
+
} from './FacilityStrengthMachineConfigurationData';
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @export
|
|
44
|
+
* @interface FacilityData
|
|
45
|
+
*/
|
|
46
|
+
export interface FacilityData {
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {number}
|
|
50
|
+
* @memberof FacilityData
|
|
51
|
+
*/
|
|
52
|
+
id: number;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {Date}
|
|
56
|
+
* @memberof FacilityData
|
|
57
|
+
*/
|
|
58
|
+
licensedUntil: Date;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {FacilityProfileData}
|
|
62
|
+
* @memberof FacilityData
|
|
63
|
+
*/
|
|
64
|
+
facilityProfile?: FacilityProfileData;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {FacilityConfigurationData}
|
|
68
|
+
* @memberof FacilityData
|
|
69
|
+
*/
|
|
70
|
+
facilityConfiguration?: FacilityConfigurationData;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {Array<FacilityLicenseData>}
|
|
74
|
+
* @memberof FacilityData
|
|
75
|
+
*/
|
|
76
|
+
facilityLicenses?: Array<FacilityLicenseData>;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {FacilityStrengthMachineConfigurationData}
|
|
80
|
+
* @memberof FacilityData
|
|
81
|
+
*/
|
|
82
|
+
facilityStrengthMachineConfiguration?: FacilityStrengthMachineConfigurationData;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Check if a given object implements the FacilityData interface.
|
|
87
|
+
*/
|
|
88
|
+
export function instanceOfFacilityData(value: object): boolean {
|
|
89
|
+
let isInstance = true;
|
|
90
|
+
isInstance = isInstance && "id" in value;
|
|
91
|
+
isInstance = isInstance && "licensedUntil" in value;
|
|
92
|
+
|
|
93
|
+
return isInstance;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function FacilityDataFromJSON(json: any): FacilityData {
|
|
97
|
+
return FacilityDataFromJSONTyped(json, false);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function FacilityDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): FacilityData {
|
|
101
|
+
if ((json === undefined) || (json === null)) {
|
|
102
|
+
return json;
|
|
103
|
+
}
|
|
104
|
+
return {
|
|
105
|
+
|
|
106
|
+
'id': json['id'],
|
|
107
|
+
'licensedUntil': (new Date(json['licensedUntil'])),
|
|
108
|
+
'facilityProfile': !exists(json, 'facilityProfile') ? undefined : FacilityProfileDataFromJSON(json['facilityProfile']),
|
|
109
|
+
'facilityConfiguration': !exists(json, 'facilityConfiguration') ? undefined : FacilityConfigurationDataFromJSON(json['facilityConfiguration']),
|
|
110
|
+
'facilityLicenses': !exists(json, 'facilityLicenses') ? undefined : ((json['facilityLicenses'] as Array<any>).map(FacilityLicenseDataFromJSON)),
|
|
111
|
+
'facilityStrengthMachineConfiguration': !exists(json, 'facilityStrengthMachineConfiguration') ? undefined : FacilityStrengthMachineConfigurationDataFromJSON(json['facilityStrengthMachineConfiguration']),
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export function FacilityDataToJSON(value?: FacilityData | null): any {
|
|
116
|
+
if (value === undefined) {
|
|
117
|
+
return undefined;
|
|
118
|
+
}
|
|
119
|
+
if (value === null) {
|
|
120
|
+
return null;
|
|
121
|
+
}
|
|
122
|
+
return {
|
|
123
|
+
|
|
124
|
+
'id': value.id,
|
|
125
|
+
'licensedUntil': (value.licensedUntil.toISOString()),
|
|
126
|
+
'facilityProfile': FacilityProfileDataToJSON(value.facilityProfile),
|
|
127
|
+
'facilityConfiguration': FacilityConfigurationDataToJSON(value.facilityConfiguration),
|
|
128
|
+
'facilityLicenses': value.facilityLicenses === undefined ? undefined : ((value.facilityLicenses as Array<any>).map(FacilityLicenseDataToJSON)),
|
|
129
|
+
'facilityStrengthMachineConfiguration': FacilityStrengthMachineConfigurationDataToJSON(value.facilityStrengthMachineConfiguration),
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
|
|
@@ -0,0 +1,144 @@
|
|
|
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
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface FacilityLicenseData
|
|
27
|
+
*/
|
|
28
|
+
export interface FacilityLicenseData {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {number}
|
|
32
|
+
* @memberof FacilityLicenseData
|
|
33
|
+
*/
|
|
34
|
+
id: number;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof FacilityLicenseData
|
|
39
|
+
*/
|
|
40
|
+
key: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof FacilityLicenseData
|
|
45
|
+
*/
|
|
46
|
+
accountId?: string;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {number}
|
|
50
|
+
* @memberof FacilityLicenseData
|
|
51
|
+
*/
|
|
52
|
+
term: number;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof FacilityLicenseData
|
|
57
|
+
*/
|
|
58
|
+
type: FacilityLicenseDataTypeEnum;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {number}
|
|
62
|
+
* @memberof FacilityLicenseData
|
|
63
|
+
*/
|
|
64
|
+
facilityId?: number;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {Date}
|
|
68
|
+
* @memberof FacilityLicenseData
|
|
69
|
+
*/
|
|
70
|
+
effectiveDate?: Date;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {FacilityData}
|
|
74
|
+
* @memberof FacilityLicenseData
|
|
75
|
+
*/
|
|
76
|
+
facility?: FacilityData;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* @export
|
|
82
|
+
*/
|
|
83
|
+
export const FacilityLicenseDataTypeEnum = {
|
|
84
|
+
Normal: 'normal',
|
|
85
|
+
Test: 'test',
|
|
86
|
+
Demo: 'demo'
|
|
87
|
+
} as const;
|
|
88
|
+
export type FacilityLicenseDataTypeEnum = typeof FacilityLicenseDataTypeEnum[keyof typeof FacilityLicenseDataTypeEnum];
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Check if a given object implements the FacilityLicenseData interface.
|
|
93
|
+
*/
|
|
94
|
+
export function instanceOfFacilityLicenseData(value: object): boolean {
|
|
95
|
+
let isInstance = true;
|
|
96
|
+
isInstance = isInstance && "id" in value;
|
|
97
|
+
isInstance = isInstance && "key" in value;
|
|
98
|
+
isInstance = isInstance && "term" in value;
|
|
99
|
+
isInstance = isInstance && "type" in value;
|
|
100
|
+
|
|
101
|
+
return isInstance;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function FacilityLicenseDataFromJSON(json: any): FacilityLicenseData {
|
|
105
|
+
return FacilityLicenseDataFromJSONTyped(json, false);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export function FacilityLicenseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): FacilityLicenseData {
|
|
109
|
+
if ((json === undefined) || (json === null)) {
|
|
110
|
+
return json;
|
|
111
|
+
}
|
|
112
|
+
return {
|
|
113
|
+
|
|
114
|
+
'id': json['id'],
|
|
115
|
+
'key': json['key'],
|
|
116
|
+
'accountId': !exists(json, 'accountId') ? undefined : json['accountId'],
|
|
117
|
+
'term': json['term'],
|
|
118
|
+
'type': json['type'],
|
|
119
|
+
'facilityId': !exists(json, 'facilityId') ? undefined : json['facilityId'],
|
|
120
|
+
'effectiveDate': !exists(json, 'effectiveDate') ? undefined : (new Date(json['effectiveDate'])),
|
|
121
|
+
'facility': !exists(json, 'facility') ? undefined : FacilityDataFromJSON(json['facility']),
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export function FacilityLicenseDataToJSON(value?: FacilityLicenseData | null): any {
|
|
126
|
+
if (value === undefined) {
|
|
127
|
+
return undefined;
|
|
128
|
+
}
|
|
129
|
+
if (value === null) {
|
|
130
|
+
return null;
|
|
131
|
+
}
|
|
132
|
+
return {
|
|
133
|
+
|
|
134
|
+
'id': value.id,
|
|
135
|
+
'key': value.key,
|
|
136
|
+
'accountId': value.accountId,
|
|
137
|
+
'term': value.term,
|
|
138
|
+
'type': value.type,
|
|
139
|
+
'facilityId': value.facilityId,
|
|
140
|
+
'effectiveDate': value.effectiveDate === undefined ? undefined : (value.effectiveDate.toISOString()),
|
|
141
|
+
'facility': FacilityDataToJSON(value.facility),
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
|