@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,83 @@
|
|
|
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 AcceptedTermsVersionData
|
|
20
|
+
*/
|
|
21
|
+
export interface AcceptedTermsVersionData {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof AcceptedTermsVersionData
|
|
26
|
+
*/
|
|
27
|
+
userId: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {Date}
|
|
31
|
+
* @memberof AcceptedTermsVersionData
|
|
32
|
+
*/
|
|
33
|
+
updatedAt: Date;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof AcceptedTermsVersionData
|
|
38
|
+
*/
|
|
39
|
+
revision?: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the AcceptedTermsVersionData interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfAcceptedTermsVersionData(value: object): boolean {
|
|
46
|
+
let isInstance = true;
|
|
47
|
+
isInstance = isInstance && "userId" in value;
|
|
48
|
+
isInstance = isInstance && "updatedAt" in value;
|
|
49
|
+
|
|
50
|
+
return isInstance;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function AcceptedTermsVersionDataFromJSON(json: any): AcceptedTermsVersionData {
|
|
54
|
+
return AcceptedTermsVersionDataFromJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function AcceptedTermsVersionDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): AcceptedTermsVersionData {
|
|
58
|
+
if ((json === undefined) || (json === null)) {
|
|
59
|
+
return json;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'userId': json['userId'],
|
|
64
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
65
|
+
'revision': !exists(json, 'revision') ? undefined : json['revision'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function AcceptedTermsVersionDataToJSON(value?: AcceptedTermsVersionData | null): any {
|
|
70
|
+
if (value === undefined) {
|
|
71
|
+
return undefined;
|
|
72
|
+
}
|
|
73
|
+
if (value === null) {
|
|
74
|
+
return null;
|
|
75
|
+
}
|
|
76
|
+
return {
|
|
77
|
+
|
|
78
|
+
'userId': value.userId,
|
|
79
|
+
'updatedAt': (value.updatedAt.toISOString()),
|
|
80
|
+
'revision': value.revision,
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
@@ -0,0 +1,336 @@
|
|
|
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 BodyCompositionMeasurementData
|
|
20
|
+
*/
|
|
21
|
+
export interface BodyCompositionMeasurementData {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof BodyCompositionMeasurementData
|
|
26
|
+
*/
|
|
27
|
+
totalBodyWater: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof BodyCompositionMeasurementData
|
|
32
|
+
*/
|
|
33
|
+
intracellularWater: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof BodyCompositionMeasurementData
|
|
38
|
+
*/
|
|
39
|
+
extracellularWater: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof BodyCompositionMeasurementData
|
|
44
|
+
*/
|
|
45
|
+
extracellularWaterToTotalBodyWaterRatio: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof BodyCompositionMeasurementData
|
|
50
|
+
*/
|
|
51
|
+
dryLeanMass: number;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof BodyCompositionMeasurementData
|
|
56
|
+
*/
|
|
57
|
+
bodyFatMass: number;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof BodyCompositionMeasurementData
|
|
62
|
+
*/
|
|
63
|
+
leanBodyMass: number;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {number}
|
|
67
|
+
* @memberof BodyCompositionMeasurementData
|
|
68
|
+
*/
|
|
69
|
+
skeletalMuscleMass: number;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {number}
|
|
73
|
+
* @memberof BodyCompositionMeasurementData
|
|
74
|
+
*/
|
|
75
|
+
bodyMassIndex: number;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {number}
|
|
79
|
+
* @memberof BodyCompositionMeasurementData
|
|
80
|
+
*/
|
|
81
|
+
visceralFatLevel: number;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {number}
|
|
85
|
+
* @memberof BodyCompositionMeasurementData
|
|
86
|
+
*/
|
|
87
|
+
basalMetabolicRate: number;
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @type {number}
|
|
91
|
+
* @memberof BodyCompositionMeasurementData
|
|
92
|
+
*/
|
|
93
|
+
leanBodyMassOfRightArm: number;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @type {number}
|
|
97
|
+
* @memberof BodyCompositionMeasurementData
|
|
98
|
+
*/
|
|
99
|
+
leanBodyMassPercentageOfRightArm: number;
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
* @type {number}
|
|
103
|
+
* @memberof BodyCompositionMeasurementData
|
|
104
|
+
*/
|
|
105
|
+
leanBodyMassOfLeftArm: number;
|
|
106
|
+
/**
|
|
107
|
+
*
|
|
108
|
+
* @type {number}
|
|
109
|
+
* @memberof BodyCompositionMeasurementData
|
|
110
|
+
*/
|
|
111
|
+
leanBodyMassPercentageOfLeftArm: number;
|
|
112
|
+
/**
|
|
113
|
+
*
|
|
114
|
+
* @type {number}
|
|
115
|
+
* @memberof BodyCompositionMeasurementData
|
|
116
|
+
*/
|
|
117
|
+
leanBodyMassOfTrunk: number;
|
|
118
|
+
/**
|
|
119
|
+
*
|
|
120
|
+
* @type {number}
|
|
121
|
+
* @memberof BodyCompositionMeasurementData
|
|
122
|
+
*/
|
|
123
|
+
leanBodyMassPercentageOfTrunk: number;
|
|
124
|
+
/**
|
|
125
|
+
*
|
|
126
|
+
* @type {number}
|
|
127
|
+
* @memberof BodyCompositionMeasurementData
|
|
128
|
+
*/
|
|
129
|
+
leanBodyMassOfRightLeg: number;
|
|
130
|
+
/**
|
|
131
|
+
*
|
|
132
|
+
* @type {number}
|
|
133
|
+
* @memberof BodyCompositionMeasurementData
|
|
134
|
+
*/
|
|
135
|
+
leanBodyMassPercentageOfRightLeg: number;
|
|
136
|
+
/**
|
|
137
|
+
*
|
|
138
|
+
* @type {number}
|
|
139
|
+
* @memberof BodyCompositionMeasurementData
|
|
140
|
+
*/
|
|
141
|
+
leanBodyMassOfLeftLeg: number;
|
|
142
|
+
/**
|
|
143
|
+
*
|
|
144
|
+
* @type {number}
|
|
145
|
+
* @memberof BodyCompositionMeasurementData
|
|
146
|
+
*/
|
|
147
|
+
leanBodyMassPercentageOfLeftLeg: number;
|
|
148
|
+
/**
|
|
149
|
+
*
|
|
150
|
+
* @type {number}
|
|
151
|
+
* @memberof BodyCompositionMeasurementData
|
|
152
|
+
*/
|
|
153
|
+
bodyFatMassOfRightArm: number;
|
|
154
|
+
/**
|
|
155
|
+
*
|
|
156
|
+
* @type {number}
|
|
157
|
+
* @memberof BodyCompositionMeasurementData
|
|
158
|
+
*/
|
|
159
|
+
bodyFatMassPercentageOfRightArm: number;
|
|
160
|
+
/**
|
|
161
|
+
*
|
|
162
|
+
* @type {number}
|
|
163
|
+
* @memberof BodyCompositionMeasurementData
|
|
164
|
+
*/
|
|
165
|
+
bodyFatMassOfLeftArm: number;
|
|
166
|
+
/**
|
|
167
|
+
*
|
|
168
|
+
* @type {number}
|
|
169
|
+
* @memberof BodyCompositionMeasurementData
|
|
170
|
+
*/
|
|
171
|
+
bodyFatMassPercentageOfLeftArm: number;
|
|
172
|
+
/**
|
|
173
|
+
*
|
|
174
|
+
* @type {number}
|
|
175
|
+
* @memberof BodyCompositionMeasurementData
|
|
176
|
+
*/
|
|
177
|
+
bodyFatMassOfTrunk: number;
|
|
178
|
+
/**
|
|
179
|
+
*
|
|
180
|
+
* @type {number}
|
|
181
|
+
* @memberof BodyCompositionMeasurementData
|
|
182
|
+
*/
|
|
183
|
+
bodyFatMassPercentageOfTrunk: number;
|
|
184
|
+
/**
|
|
185
|
+
*
|
|
186
|
+
* @type {number}
|
|
187
|
+
* @memberof BodyCompositionMeasurementData
|
|
188
|
+
*/
|
|
189
|
+
bodyFatMassOfRightLeg: number;
|
|
190
|
+
/**
|
|
191
|
+
*
|
|
192
|
+
* @type {number}
|
|
193
|
+
* @memberof BodyCompositionMeasurementData
|
|
194
|
+
*/
|
|
195
|
+
bodyFatMassPercentageOfRightLeg: number;
|
|
196
|
+
/**
|
|
197
|
+
*
|
|
198
|
+
* @type {number}
|
|
199
|
+
* @memberof BodyCompositionMeasurementData
|
|
200
|
+
*/
|
|
201
|
+
bodyFatMassOfLeftLeg: number;
|
|
202
|
+
/**
|
|
203
|
+
*
|
|
204
|
+
* @type {number}
|
|
205
|
+
* @memberof BodyCompositionMeasurementData
|
|
206
|
+
*/
|
|
207
|
+
bodyFatMassPercentageOfLeftLeg: number;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* Check if a given object implements the BodyCompositionMeasurementData interface.
|
|
212
|
+
*/
|
|
213
|
+
export function instanceOfBodyCompositionMeasurementData(value: object): boolean {
|
|
214
|
+
let isInstance = true;
|
|
215
|
+
isInstance = isInstance && "totalBodyWater" in value;
|
|
216
|
+
isInstance = isInstance && "intracellularWater" in value;
|
|
217
|
+
isInstance = isInstance && "extracellularWater" in value;
|
|
218
|
+
isInstance = isInstance && "extracellularWaterToTotalBodyWaterRatio" in value;
|
|
219
|
+
isInstance = isInstance && "dryLeanMass" in value;
|
|
220
|
+
isInstance = isInstance && "bodyFatMass" in value;
|
|
221
|
+
isInstance = isInstance && "leanBodyMass" in value;
|
|
222
|
+
isInstance = isInstance && "skeletalMuscleMass" in value;
|
|
223
|
+
isInstance = isInstance && "bodyMassIndex" in value;
|
|
224
|
+
isInstance = isInstance && "visceralFatLevel" in value;
|
|
225
|
+
isInstance = isInstance && "basalMetabolicRate" in value;
|
|
226
|
+
isInstance = isInstance && "leanBodyMassOfRightArm" in value;
|
|
227
|
+
isInstance = isInstance && "leanBodyMassPercentageOfRightArm" in value;
|
|
228
|
+
isInstance = isInstance && "leanBodyMassOfLeftArm" in value;
|
|
229
|
+
isInstance = isInstance && "leanBodyMassPercentageOfLeftArm" in value;
|
|
230
|
+
isInstance = isInstance && "leanBodyMassOfTrunk" in value;
|
|
231
|
+
isInstance = isInstance && "leanBodyMassPercentageOfTrunk" in value;
|
|
232
|
+
isInstance = isInstance && "leanBodyMassOfRightLeg" in value;
|
|
233
|
+
isInstance = isInstance && "leanBodyMassPercentageOfRightLeg" in value;
|
|
234
|
+
isInstance = isInstance && "leanBodyMassOfLeftLeg" in value;
|
|
235
|
+
isInstance = isInstance && "leanBodyMassPercentageOfLeftLeg" in value;
|
|
236
|
+
isInstance = isInstance && "bodyFatMassOfRightArm" in value;
|
|
237
|
+
isInstance = isInstance && "bodyFatMassPercentageOfRightArm" in value;
|
|
238
|
+
isInstance = isInstance && "bodyFatMassOfLeftArm" in value;
|
|
239
|
+
isInstance = isInstance && "bodyFatMassPercentageOfLeftArm" in value;
|
|
240
|
+
isInstance = isInstance && "bodyFatMassOfTrunk" in value;
|
|
241
|
+
isInstance = isInstance && "bodyFatMassPercentageOfTrunk" in value;
|
|
242
|
+
isInstance = isInstance && "bodyFatMassOfRightLeg" in value;
|
|
243
|
+
isInstance = isInstance && "bodyFatMassPercentageOfRightLeg" in value;
|
|
244
|
+
isInstance = isInstance && "bodyFatMassOfLeftLeg" in value;
|
|
245
|
+
isInstance = isInstance && "bodyFatMassPercentageOfLeftLeg" in value;
|
|
246
|
+
|
|
247
|
+
return isInstance;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
export function BodyCompositionMeasurementDataFromJSON(json: any): BodyCompositionMeasurementData {
|
|
251
|
+
return BodyCompositionMeasurementDataFromJSONTyped(json, false);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
export function BodyCompositionMeasurementDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): BodyCompositionMeasurementData {
|
|
255
|
+
if ((json === undefined) || (json === null)) {
|
|
256
|
+
return json;
|
|
257
|
+
}
|
|
258
|
+
return {
|
|
259
|
+
|
|
260
|
+
'totalBodyWater': json['totalBodyWater'],
|
|
261
|
+
'intracellularWater': json['intracellularWater'],
|
|
262
|
+
'extracellularWater': json['extracellularWater'],
|
|
263
|
+
'extracellularWaterToTotalBodyWaterRatio': json['extracellularWaterToTotalBodyWaterRatio'],
|
|
264
|
+
'dryLeanMass': json['dryLeanMass'],
|
|
265
|
+
'bodyFatMass': json['bodyFatMass'],
|
|
266
|
+
'leanBodyMass': json['leanBodyMass'],
|
|
267
|
+
'skeletalMuscleMass': json['skeletalMuscleMass'],
|
|
268
|
+
'bodyMassIndex': json['bodyMassIndex'],
|
|
269
|
+
'visceralFatLevel': json['visceralFatLevel'],
|
|
270
|
+
'basalMetabolicRate': json['basalMetabolicRate'],
|
|
271
|
+
'leanBodyMassOfRightArm': json['leanBodyMassOfRightArm'],
|
|
272
|
+
'leanBodyMassPercentageOfRightArm': json['leanBodyMassPercentageOfRightArm'],
|
|
273
|
+
'leanBodyMassOfLeftArm': json['leanBodyMassOfLeftArm'],
|
|
274
|
+
'leanBodyMassPercentageOfLeftArm': json['leanBodyMassPercentageOfLeftArm'],
|
|
275
|
+
'leanBodyMassOfTrunk': json['leanBodyMassOfTrunk'],
|
|
276
|
+
'leanBodyMassPercentageOfTrunk': json['leanBodyMassPercentageOfTrunk'],
|
|
277
|
+
'leanBodyMassOfRightLeg': json['leanBodyMassOfRightLeg'],
|
|
278
|
+
'leanBodyMassPercentageOfRightLeg': json['leanBodyMassPercentageOfRightLeg'],
|
|
279
|
+
'leanBodyMassOfLeftLeg': json['leanBodyMassOfLeftLeg'],
|
|
280
|
+
'leanBodyMassPercentageOfLeftLeg': json['leanBodyMassPercentageOfLeftLeg'],
|
|
281
|
+
'bodyFatMassOfRightArm': json['bodyFatMassOfRightArm'],
|
|
282
|
+
'bodyFatMassPercentageOfRightArm': json['bodyFatMassPercentageOfRightArm'],
|
|
283
|
+
'bodyFatMassOfLeftArm': json['bodyFatMassOfLeftArm'],
|
|
284
|
+
'bodyFatMassPercentageOfLeftArm': json['bodyFatMassPercentageOfLeftArm'],
|
|
285
|
+
'bodyFatMassOfTrunk': json['bodyFatMassOfTrunk'],
|
|
286
|
+
'bodyFatMassPercentageOfTrunk': json['bodyFatMassPercentageOfTrunk'],
|
|
287
|
+
'bodyFatMassOfRightLeg': json['bodyFatMassOfRightLeg'],
|
|
288
|
+
'bodyFatMassPercentageOfRightLeg': json['bodyFatMassPercentageOfRightLeg'],
|
|
289
|
+
'bodyFatMassOfLeftLeg': json['bodyFatMassOfLeftLeg'],
|
|
290
|
+
'bodyFatMassPercentageOfLeftLeg': json['bodyFatMassPercentageOfLeftLeg'],
|
|
291
|
+
};
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
export function BodyCompositionMeasurementDataToJSON(value?: BodyCompositionMeasurementData | null): any {
|
|
295
|
+
if (value === undefined) {
|
|
296
|
+
return undefined;
|
|
297
|
+
}
|
|
298
|
+
if (value === null) {
|
|
299
|
+
return null;
|
|
300
|
+
}
|
|
301
|
+
return {
|
|
302
|
+
|
|
303
|
+
'totalBodyWater': value.totalBodyWater,
|
|
304
|
+
'intracellularWater': value.intracellularWater,
|
|
305
|
+
'extracellularWater': value.extracellularWater,
|
|
306
|
+
'extracellularWaterToTotalBodyWaterRatio': value.extracellularWaterToTotalBodyWaterRatio,
|
|
307
|
+
'dryLeanMass': value.dryLeanMass,
|
|
308
|
+
'bodyFatMass': value.bodyFatMass,
|
|
309
|
+
'leanBodyMass': value.leanBodyMass,
|
|
310
|
+
'skeletalMuscleMass': value.skeletalMuscleMass,
|
|
311
|
+
'bodyMassIndex': value.bodyMassIndex,
|
|
312
|
+
'visceralFatLevel': value.visceralFatLevel,
|
|
313
|
+
'basalMetabolicRate': value.basalMetabolicRate,
|
|
314
|
+
'leanBodyMassOfRightArm': value.leanBodyMassOfRightArm,
|
|
315
|
+
'leanBodyMassPercentageOfRightArm': value.leanBodyMassPercentageOfRightArm,
|
|
316
|
+
'leanBodyMassOfLeftArm': value.leanBodyMassOfLeftArm,
|
|
317
|
+
'leanBodyMassPercentageOfLeftArm': value.leanBodyMassPercentageOfLeftArm,
|
|
318
|
+
'leanBodyMassOfTrunk': value.leanBodyMassOfTrunk,
|
|
319
|
+
'leanBodyMassPercentageOfTrunk': value.leanBodyMassPercentageOfTrunk,
|
|
320
|
+
'leanBodyMassOfRightLeg': value.leanBodyMassOfRightLeg,
|
|
321
|
+
'leanBodyMassPercentageOfRightLeg': value.leanBodyMassPercentageOfRightLeg,
|
|
322
|
+
'leanBodyMassOfLeftLeg': value.leanBodyMassOfLeftLeg,
|
|
323
|
+
'leanBodyMassPercentageOfLeftLeg': value.leanBodyMassPercentageOfLeftLeg,
|
|
324
|
+
'bodyFatMassOfRightArm': value.bodyFatMassOfRightArm,
|
|
325
|
+
'bodyFatMassPercentageOfRightArm': value.bodyFatMassPercentageOfRightArm,
|
|
326
|
+
'bodyFatMassOfLeftArm': value.bodyFatMassOfLeftArm,
|
|
327
|
+
'bodyFatMassPercentageOfLeftArm': value.bodyFatMassPercentageOfLeftArm,
|
|
328
|
+
'bodyFatMassOfTrunk': value.bodyFatMassOfTrunk,
|
|
329
|
+
'bodyFatMassPercentageOfTrunk': value.bodyFatMassPercentageOfTrunk,
|
|
330
|
+
'bodyFatMassOfRightLeg': value.bodyFatMassOfRightLeg,
|
|
331
|
+
'bodyFatMassPercentageOfRightLeg': value.bodyFatMassPercentageOfRightLeg,
|
|
332
|
+
'bodyFatMassOfLeftLeg': value.bodyFatMassOfLeftLeg,
|
|
333
|
+
'bodyFatMassPercentageOfLeftLeg': value.bodyFatMassPercentageOfLeftLeg,
|
|
334
|
+
};
|
|
335
|
+
}
|
|
336
|
+
|
|
@@ -0,0 +1,82 @@
|
|
|
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 CacheKeysResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface CacheKeysResponse {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {Array<string>}
|
|
25
|
+
* @memberof CacheKeysResponse
|
|
26
|
+
*/
|
|
27
|
+
cacheKeys: Array<string>;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof CacheKeysResponse
|
|
32
|
+
*/
|
|
33
|
+
accessToken?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof CacheKeysResponse
|
|
38
|
+
*/
|
|
39
|
+
refreshToken?: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the CacheKeysResponse interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfCacheKeysResponse(value: object): boolean {
|
|
46
|
+
let isInstance = true;
|
|
47
|
+
isInstance = isInstance && "cacheKeys" in value;
|
|
48
|
+
|
|
49
|
+
return isInstance;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function CacheKeysResponseFromJSON(json: any): CacheKeysResponse {
|
|
53
|
+
return CacheKeysResponseFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function CacheKeysResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CacheKeysResponse {
|
|
57
|
+
if ((json === undefined) || (json === null)) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'cacheKeys': json['cacheKeys'],
|
|
63
|
+
'accessToken': !exists(json, 'accessToken') ? undefined : json['accessToken'],
|
|
64
|
+
'refreshToken': !exists(json, 'refreshToken') ? undefined : json['refreshToken'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function CacheKeysResponseToJSON(value?: CacheKeysResponse | null): any {
|
|
69
|
+
if (value === undefined) {
|
|
70
|
+
return undefined;
|
|
71
|
+
}
|
|
72
|
+
if (value === null) {
|
|
73
|
+
return null;
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
|
|
77
|
+
'cacheKeys': value.cacheKeys,
|
|
78
|
+
'accessToken': value.accessToken,
|
|
79
|
+
'refreshToken': value.refreshToken,
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
@@ -0,0 +1,102 @@
|
|
|
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 CacheObject
|
|
20
|
+
*/
|
|
21
|
+
export interface CacheObject {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof CacheObject
|
|
26
|
+
*/
|
|
27
|
+
createdAt: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof CacheObject
|
|
32
|
+
*/
|
|
33
|
+
expireTimestamp: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof CacheObject
|
|
38
|
+
*/
|
|
39
|
+
lastReadAt: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof CacheObject
|
|
44
|
+
*/
|
|
45
|
+
key: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof CacheObject
|
|
50
|
+
*/
|
|
51
|
+
value: string;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the CacheObject interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfCacheObject(value: object): boolean {
|
|
58
|
+
let isInstance = true;
|
|
59
|
+
isInstance = isInstance && "createdAt" in value;
|
|
60
|
+
isInstance = isInstance && "expireTimestamp" in value;
|
|
61
|
+
isInstance = isInstance && "lastReadAt" in value;
|
|
62
|
+
isInstance = isInstance && "key" in value;
|
|
63
|
+
isInstance = isInstance && "value" in value;
|
|
64
|
+
|
|
65
|
+
return isInstance;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function CacheObjectFromJSON(json: any): CacheObject {
|
|
69
|
+
return CacheObjectFromJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function CacheObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): CacheObject {
|
|
73
|
+
if ((json === undefined) || (json === null)) {
|
|
74
|
+
return json;
|
|
75
|
+
}
|
|
76
|
+
return {
|
|
77
|
+
|
|
78
|
+
'createdAt': json['createdAt'],
|
|
79
|
+
'expireTimestamp': json['expireTimestamp'],
|
|
80
|
+
'lastReadAt': json['lastReadAt'],
|
|
81
|
+
'key': json['key'],
|
|
82
|
+
'value': json['value'],
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function CacheObjectToJSON(value?: CacheObject | null): any {
|
|
87
|
+
if (value === undefined) {
|
|
88
|
+
return undefined;
|
|
89
|
+
}
|
|
90
|
+
if (value === null) {
|
|
91
|
+
return null;
|
|
92
|
+
}
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'createdAt': value.createdAt,
|
|
96
|
+
'expireTimestamp': value.expireTimestamp,
|
|
97
|
+
'lastReadAt': value.lastReadAt,
|
|
98
|
+
'key': value.key,
|
|
99
|
+
'value': value.value,
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
@@ -0,0 +1,89 @@
|
|
|
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 { CacheObject } from './CacheObject';
|
|
17
|
+
import {
|
|
18
|
+
CacheObjectFromJSON,
|
|
19
|
+
CacheObjectFromJSONTyped,
|
|
20
|
+
CacheObjectToJSON,
|
|
21
|
+
} from './CacheObject';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface CacheObjectResponse
|
|
27
|
+
*/
|
|
28
|
+
export interface CacheObjectResponse {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {CacheObject}
|
|
32
|
+
* @memberof CacheObjectResponse
|
|
33
|
+
*/
|
|
34
|
+
cacheObject: CacheObject;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof CacheObjectResponse
|
|
39
|
+
*/
|
|
40
|
+
accessToken?: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof CacheObjectResponse
|
|
45
|
+
*/
|
|
46
|
+
refreshToken?: string;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the CacheObjectResponse interface.
|
|
51
|
+
*/
|
|
52
|
+
export function instanceOfCacheObjectResponse(value: object): boolean {
|
|
53
|
+
let isInstance = true;
|
|
54
|
+
isInstance = isInstance && "cacheObject" in value;
|
|
55
|
+
|
|
56
|
+
return isInstance;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function CacheObjectResponseFromJSON(json: any): CacheObjectResponse {
|
|
60
|
+
return CacheObjectResponseFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function CacheObjectResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CacheObjectResponse {
|
|
64
|
+
if ((json === undefined) || (json === null)) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'cacheObject': CacheObjectFromJSON(json['cacheObject']),
|
|
70
|
+
'accessToken': !exists(json, 'accessToken') ? undefined : json['accessToken'],
|
|
71
|
+
'refreshToken': !exists(json, 'refreshToken') ? undefined : json['refreshToken'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function CacheObjectResponseToJSON(value?: CacheObjectResponse | null): any {
|
|
76
|
+
if (value === undefined) {
|
|
77
|
+
return undefined;
|
|
78
|
+
}
|
|
79
|
+
if (value === null) {
|
|
80
|
+
return null;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'cacheObject': CacheObjectToJSON(value.cacheObject),
|
|
85
|
+
'accessToken': value.accessToken,
|
|
86
|
+
'refreshToken': value.refreshToken,
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|