@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,104 @@
|
|
|
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 { FacilityLicenseData } from './FacilityLicenseData';
|
|
17
|
+
import {
|
|
18
|
+
FacilityLicenseDataFromJSON,
|
|
19
|
+
FacilityLicenseDataFromJSONTyped,
|
|
20
|
+
FacilityLicenseDataToJSON,
|
|
21
|
+
} from './FacilityLicenseData';
|
|
22
|
+
import type { FacilityLicenseListResponseMeta } from './FacilityLicenseListResponseMeta';
|
|
23
|
+
import {
|
|
24
|
+
FacilityLicenseListResponseMetaFromJSON,
|
|
25
|
+
FacilityLicenseListResponseMetaFromJSONTyped,
|
|
26
|
+
FacilityLicenseListResponseMetaToJSON,
|
|
27
|
+
} from './FacilityLicenseListResponseMeta';
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @export
|
|
32
|
+
* @interface FacilityLicenseListResponse
|
|
33
|
+
*/
|
|
34
|
+
export interface FacilityLicenseListResponse {
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {Array<FacilityLicenseData>}
|
|
38
|
+
* @memberof FacilityLicenseListResponse
|
|
39
|
+
*/
|
|
40
|
+
facilityLicenses: Array<FacilityLicenseData>;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {FacilityLicenseListResponseMeta}
|
|
44
|
+
* @memberof FacilityLicenseListResponse
|
|
45
|
+
*/
|
|
46
|
+
facilityLicensesMeta: FacilityLicenseListResponseMeta;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof FacilityLicenseListResponse
|
|
51
|
+
*/
|
|
52
|
+
accessToken?: string;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof FacilityLicenseListResponse
|
|
57
|
+
*/
|
|
58
|
+
refreshToken?: string;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the FacilityLicenseListResponse interface.
|
|
63
|
+
*/
|
|
64
|
+
export function instanceOfFacilityLicenseListResponse(value: object): boolean {
|
|
65
|
+
let isInstance = true;
|
|
66
|
+
isInstance = isInstance && "facilityLicenses" in value;
|
|
67
|
+
isInstance = isInstance && "facilityLicensesMeta" in value;
|
|
68
|
+
|
|
69
|
+
return isInstance;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function FacilityLicenseListResponseFromJSON(json: any): FacilityLicenseListResponse {
|
|
73
|
+
return FacilityLicenseListResponseFromJSONTyped(json, false);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function FacilityLicenseListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FacilityLicenseListResponse {
|
|
77
|
+
if ((json === undefined) || (json === null)) {
|
|
78
|
+
return json;
|
|
79
|
+
}
|
|
80
|
+
return {
|
|
81
|
+
|
|
82
|
+
'facilityLicenses': ((json['facilityLicenses'] as Array<any>).map(FacilityLicenseDataFromJSON)),
|
|
83
|
+
'facilityLicensesMeta': FacilityLicenseListResponseMetaFromJSON(json['facilityLicensesMeta']),
|
|
84
|
+
'accessToken': !exists(json, 'accessToken') ? undefined : json['accessToken'],
|
|
85
|
+
'refreshToken': !exists(json, 'refreshToken') ? undefined : json['refreshToken'],
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export function FacilityLicenseListResponseToJSON(value?: FacilityLicenseListResponse | null): any {
|
|
90
|
+
if (value === undefined) {
|
|
91
|
+
return undefined;
|
|
92
|
+
}
|
|
93
|
+
if (value === null) {
|
|
94
|
+
return null;
|
|
95
|
+
}
|
|
96
|
+
return {
|
|
97
|
+
|
|
98
|
+
'facilityLicenses': ((value.facilityLicenses as Array<any>).map(FacilityLicenseDataToJSON)),
|
|
99
|
+
'facilityLicensesMeta': FacilityLicenseListResponseMetaToJSON(value.facilityLicensesMeta),
|
|
100
|
+
'accessToken': value.accessToken,
|
|
101
|
+
'refreshToken': value.refreshToken,
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
|
|
@@ -0,0 +1,152 @@
|
|
|
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 { FacilityLicenseSorting } from './FacilityLicenseSorting';
|
|
17
|
+
import {
|
|
18
|
+
FacilityLicenseSortingFromJSON,
|
|
19
|
+
FacilityLicenseSortingFromJSONTyped,
|
|
20
|
+
FacilityLicenseSortingToJSON,
|
|
21
|
+
} from './FacilityLicenseSorting';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface FacilityLicenseListResponseMeta
|
|
27
|
+
*/
|
|
28
|
+
export interface FacilityLicenseListResponseMeta {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof FacilityLicenseListResponseMeta
|
|
33
|
+
*/
|
|
34
|
+
name?: string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof FacilityLicenseListResponseMeta
|
|
39
|
+
*/
|
|
40
|
+
key: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof FacilityLicenseListResponseMeta
|
|
45
|
+
*/
|
|
46
|
+
type: FacilityLicenseListResponseMetaTypeEnum;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof FacilityLicenseListResponseMeta
|
|
51
|
+
*/
|
|
52
|
+
accountId: string;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {FacilityLicenseSorting}
|
|
56
|
+
* @memberof FacilityLicenseListResponseMeta
|
|
57
|
+
*/
|
|
58
|
+
sort: FacilityLicenseSorting;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {boolean}
|
|
62
|
+
* @memberof FacilityLicenseListResponseMeta
|
|
63
|
+
*/
|
|
64
|
+
ascending?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {number}
|
|
68
|
+
* @memberof FacilityLicenseListResponseMeta
|
|
69
|
+
*/
|
|
70
|
+
limit?: number;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {number}
|
|
74
|
+
* @memberof FacilityLicenseListResponseMeta
|
|
75
|
+
*/
|
|
76
|
+
offset?: number;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {number}
|
|
80
|
+
* @memberof FacilityLicenseListResponseMeta
|
|
81
|
+
*/
|
|
82
|
+
totalCount?: number;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* @export
|
|
88
|
+
*/
|
|
89
|
+
export const FacilityLicenseListResponseMetaTypeEnum = {
|
|
90
|
+
Normal: 'normal',
|
|
91
|
+
Test: 'test',
|
|
92
|
+
Demo: 'demo'
|
|
93
|
+
} as const;
|
|
94
|
+
export type FacilityLicenseListResponseMetaTypeEnum = typeof FacilityLicenseListResponseMetaTypeEnum[keyof typeof FacilityLicenseListResponseMetaTypeEnum];
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Check if a given object implements the FacilityLicenseListResponseMeta interface.
|
|
99
|
+
*/
|
|
100
|
+
export function instanceOfFacilityLicenseListResponseMeta(value: object): boolean {
|
|
101
|
+
let isInstance = true;
|
|
102
|
+
isInstance = isInstance && "key" in value;
|
|
103
|
+
isInstance = isInstance && "type" in value;
|
|
104
|
+
isInstance = isInstance && "accountId" in value;
|
|
105
|
+
isInstance = isInstance && "sort" in value;
|
|
106
|
+
|
|
107
|
+
return isInstance;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export function FacilityLicenseListResponseMetaFromJSON(json: any): FacilityLicenseListResponseMeta {
|
|
111
|
+
return FacilityLicenseListResponseMetaFromJSONTyped(json, false);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export function FacilityLicenseListResponseMetaFromJSONTyped(json: any, ignoreDiscriminator: boolean): FacilityLicenseListResponseMeta {
|
|
115
|
+
if ((json === undefined) || (json === null)) {
|
|
116
|
+
return json;
|
|
117
|
+
}
|
|
118
|
+
return {
|
|
119
|
+
|
|
120
|
+
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
121
|
+
'key': json['key'],
|
|
122
|
+
'type': json['type'],
|
|
123
|
+
'accountId': json['accountId'],
|
|
124
|
+
'sort': FacilityLicenseSortingFromJSON(json['sort']),
|
|
125
|
+
'ascending': !exists(json, 'ascending') ? undefined : json['ascending'],
|
|
126
|
+
'limit': !exists(json, 'limit') ? undefined : json['limit'],
|
|
127
|
+
'offset': !exists(json, 'offset') ? undefined : json['offset'],
|
|
128
|
+
'totalCount': !exists(json, 'totalCount') ? undefined : json['totalCount'],
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export function FacilityLicenseListResponseMetaToJSON(value?: FacilityLicenseListResponseMeta | null): any {
|
|
133
|
+
if (value === undefined) {
|
|
134
|
+
return undefined;
|
|
135
|
+
}
|
|
136
|
+
if (value === null) {
|
|
137
|
+
return null;
|
|
138
|
+
}
|
|
139
|
+
return {
|
|
140
|
+
|
|
141
|
+
'name': value.name,
|
|
142
|
+
'key': value.key,
|
|
143
|
+
'type': value.type,
|
|
144
|
+
'accountId': value.accountId,
|
|
145
|
+
'sort': FacilityLicenseSortingToJSON(value.sort),
|
|
146
|
+
'ascending': value.ascending,
|
|
147
|
+
'limit': value.limit,
|
|
148
|
+
'offset': value.offset,
|
|
149
|
+
'totalCount': value.totalCount,
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
|
|
@@ -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 { FacilityLicenseData } from './FacilityLicenseData';
|
|
17
|
+
import {
|
|
18
|
+
FacilityLicenseDataFromJSON,
|
|
19
|
+
FacilityLicenseDataFromJSONTyped,
|
|
20
|
+
FacilityLicenseDataToJSON,
|
|
21
|
+
} from './FacilityLicenseData';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface FacilityLicenseResponse
|
|
27
|
+
*/
|
|
28
|
+
export interface FacilityLicenseResponse {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {FacilityLicenseData}
|
|
32
|
+
* @memberof FacilityLicenseResponse
|
|
33
|
+
*/
|
|
34
|
+
facilityLicense: FacilityLicenseData;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof FacilityLicenseResponse
|
|
39
|
+
*/
|
|
40
|
+
accessToken?: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof FacilityLicenseResponse
|
|
45
|
+
*/
|
|
46
|
+
refreshToken?: string;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the FacilityLicenseResponse interface.
|
|
51
|
+
*/
|
|
52
|
+
export function instanceOfFacilityLicenseResponse(value: object): boolean {
|
|
53
|
+
let isInstance = true;
|
|
54
|
+
isInstance = isInstance && "facilityLicense" in value;
|
|
55
|
+
|
|
56
|
+
return isInstance;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function FacilityLicenseResponseFromJSON(json: any): FacilityLicenseResponse {
|
|
60
|
+
return FacilityLicenseResponseFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function FacilityLicenseResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FacilityLicenseResponse {
|
|
64
|
+
if ((json === undefined) || (json === null)) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'facilityLicense': FacilityLicenseDataFromJSON(json['facilityLicense']),
|
|
70
|
+
'accessToken': !exists(json, 'accessToken') ? undefined : json['accessToken'],
|
|
71
|
+
'refreshToken': !exists(json, 'refreshToken') ? undefined : json['refreshToken'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function FacilityLicenseResponseToJSON(value?: FacilityLicenseResponse | null): any {
|
|
76
|
+
if (value === undefined) {
|
|
77
|
+
return undefined;
|
|
78
|
+
}
|
|
79
|
+
if (value === null) {
|
|
80
|
+
return null;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'facilityLicense': FacilityLicenseDataToJSON(value.facilityLicense),
|
|
85
|
+
'accessToken': value.accessToken,
|
|
86
|
+
'refreshToken': value.refreshToken,
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const FacilityLicenseSorting = {
|
|
21
|
+
Id: 'id',
|
|
22
|
+
Type: 'type',
|
|
23
|
+
Term: 'term',
|
|
24
|
+
EffectiveDate: 'effectiveDate'
|
|
25
|
+
} as const;
|
|
26
|
+
export type FacilityLicenseSorting = typeof FacilityLicenseSorting[keyof typeof FacilityLicenseSorting];
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
export function FacilityLicenseSortingFromJSON(json: any): FacilityLicenseSorting {
|
|
30
|
+
return FacilityLicenseSortingFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export function FacilityLicenseSortingFromJSONTyped(json: any, ignoreDiscriminator: boolean): FacilityLicenseSorting {
|
|
34
|
+
return json as FacilityLicenseSorting;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function FacilityLicenseSortingToJSON(value?: FacilityLicenseSorting | null): any {
|
|
38
|
+
return value as any;
|
|
39
|
+
}
|
|
40
|
+
|
|
@@ -0,0 +1,121 @@
|
|
|
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 FacilityProfileData
|
|
20
|
+
*/
|
|
21
|
+
export interface FacilityProfileData {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof FacilityProfileData
|
|
26
|
+
*/
|
|
27
|
+
name?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof FacilityProfileData
|
|
32
|
+
*/
|
|
33
|
+
phone?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof FacilityProfileData
|
|
38
|
+
*/
|
|
39
|
+
address?: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof FacilityProfileData
|
|
44
|
+
*/
|
|
45
|
+
city?: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof FacilityProfileData
|
|
50
|
+
*/
|
|
51
|
+
postcode?: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof FacilityProfileData
|
|
56
|
+
*/
|
|
57
|
+
state?: string;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof FacilityProfileData
|
|
62
|
+
*/
|
|
63
|
+
country?: string;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof FacilityProfileData
|
|
68
|
+
*/
|
|
69
|
+
website?: string;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Check if a given object implements the FacilityProfileData interface.
|
|
74
|
+
*/
|
|
75
|
+
export function instanceOfFacilityProfileData(value: object): boolean {
|
|
76
|
+
let isInstance = true;
|
|
77
|
+
|
|
78
|
+
return isInstance;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function FacilityProfileDataFromJSON(json: any): FacilityProfileData {
|
|
82
|
+
return FacilityProfileDataFromJSONTyped(json, false);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function FacilityProfileDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): FacilityProfileData {
|
|
86
|
+
if ((json === undefined) || (json === null)) {
|
|
87
|
+
return json;
|
|
88
|
+
}
|
|
89
|
+
return {
|
|
90
|
+
|
|
91
|
+
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
92
|
+
'phone': !exists(json, 'phone') ? undefined : json['phone'],
|
|
93
|
+
'address': !exists(json, 'address') ? undefined : json['address'],
|
|
94
|
+
'city': !exists(json, 'city') ? undefined : json['city'],
|
|
95
|
+
'postcode': !exists(json, 'postcode') ? undefined : json['postcode'],
|
|
96
|
+
'state': !exists(json, 'state') ? undefined : json['state'],
|
|
97
|
+
'country': !exists(json, 'country') ? undefined : json['country'],
|
|
98
|
+
'website': !exists(json, 'website') ? undefined : json['website'],
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export function FacilityProfileDataToJSON(value?: FacilityProfileData | null): any {
|
|
103
|
+
if (value === undefined) {
|
|
104
|
+
return undefined;
|
|
105
|
+
}
|
|
106
|
+
if (value === null) {
|
|
107
|
+
return null;
|
|
108
|
+
}
|
|
109
|
+
return {
|
|
110
|
+
|
|
111
|
+
'name': value.name,
|
|
112
|
+
'phone': value.phone,
|
|
113
|
+
'address': value.address,
|
|
114
|
+
'city': value.city,
|
|
115
|
+
'postcode': value.postcode,
|
|
116
|
+
'state': value.state,
|
|
117
|
+
'country': value.country,
|
|
118
|
+
'website': value.website,
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
|
|
@@ -0,0 +1,175 @@
|
|
|
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 { FacilitySessionUserData } from './FacilitySessionUserData';
|
|
23
|
+
import {
|
|
24
|
+
FacilitySessionUserDataFromJSON,
|
|
25
|
+
FacilitySessionUserDataFromJSONTyped,
|
|
26
|
+
FacilitySessionUserDataToJSON,
|
|
27
|
+
} from './FacilitySessionUserData';
|
|
28
|
+
import type { FingerprintData } from './FingerprintData';
|
|
29
|
+
import {
|
|
30
|
+
FingerprintDataFromJSON,
|
|
31
|
+
FingerprintDataFromJSONTyped,
|
|
32
|
+
FingerprintDataToJSON,
|
|
33
|
+
} from './FingerprintData';
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @export
|
|
38
|
+
* @interface FacilityRelationshipData
|
|
39
|
+
*/
|
|
40
|
+
export interface FacilityRelationshipData {
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {number}
|
|
44
|
+
* @memberof FacilityRelationshipData
|
|
45
|
+
*/
|
|
46
|
+
id: number;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {number}
|
|
50
|
+
* @memberof FacilityRelationshipData
|
|
51
|
+
*/
|
|
52
|
+
userId: number;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {number}
|
|
56
|
+
* @memberof FacilityRelationshipData
|
|
57
|
+
*/
|
|
58
|
+
facilityId: number;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {boolean}
|
|
62
|
+
* @memberof FacilityRelationshipData
|
|
63
|
+
*/
|
|
64
|
+
member: boolean;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof FacilityRelationshipData
|
|
69
|
+
*/
|
|
70
|
+
memberIdentifier?: string;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {boolean}
|
|
74
|
+
* @memberof FacilityRelationshipData
|
|
75
|
+
*/
|
|
76
|
+
hasSecretSet: boolean;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof FacilityRelationshipData
|
|
81
|
+
*/
|
|
82
|
+
employeeRole?: FacilityRelationshipDataEmployeeRoleEnum;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @type {FacilityData}
|
|
86
|
+
* @memberof FacilityRelationshipData
|
|
87
|
+
*/
|
|
88
|
+
facility?: FacilityData;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @type {FacilitySessionUserData}
|
|
92
|
+
* @memberof FacilityRelationshipData
|
|
93
|
+
*/
|
|
94
|
+
user?: FacilitySessionUserData;
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @type {FingerprintData}
|
|
98
|
+
* @memberof FacilityRelationshipData
|
|
99
|
+
*/
|
|
100
|
+
fingerprint?: FingerprintData;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* @export
|
|
106
|
+
*/
|
|
107
|
+
export const FacilityRelationshipDataEmployeeRoleEnum = {
|
|
108
|
+
Admin: 'admin',
|
|
109
|
+
CustomerSupport: 'customerSupport',
|
|
110
|
+
Trainer: 'trainer',
|
|
111
|
+
FrontDesk: 'frontDesk',
|
|
112
|
+
Maintenance: 'maintenance'
|
|
113
|
+
} as const;
|
|
114
|
+
export type FacilityRelationshipDataEmployeeRoleEnum = typeof FacilityRelationshipDataEmployeeRoleEnum[keyof typeof FacilityRelationshipDataEmployeeRoleEnum];
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Check if a given object implements the FacilityRelationshipData interface.
|
|
119
|
+
*/
|
|
120
|
+
export function instanceOfFacilityRelationshipData(value: object): boolean {
|
|
121
|
+
let isInstance = true;
|
|
122
|
+
isInstance = isInstance && "id" in value;
|
|
123
|
+
isInstance = isInstance && "userId" in value;
|
|
124
|
+
isInstance = isInstance && "facilityId" in value;
|
|
125
|
+
isInstance = isInstance && "member" in value;
|
|
126
|
+
isInstance = isInstance && "hasSecretSet" in value;
|
|
127
|
+
|
|
128
|
+
return isInstance;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export function FacilityRelationshipDataFromJSON(json: any): FacilityRelationshipData {
|
|
132
|
+
return FacilityRelationshipDataFromJSONTyped(json, false);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export function FacilityRelationshipDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): FacilityRelationshipData {
|
|
136
|
+
if ((json === undefined) || (json === null)) {
|
|
137
|
+
return json;
|
|
138
|
+
}
|
|
139
|
+
return {
|
|
140
|
+
|
|
141
|
+
'id': json['id'],
|
|
142
|
+
'userId': json['userId'],
|
|
143
|
+
'facilityId': json['facilityId'],
|
|
144
|
+
'member': json['member'],
|
|
145
|
+
'memberIdentifier': !exists(json, 'memberIdentifier') ? undefined : json['memberIdentifier'],
|
|
146
|
+
'hasSecretSet': json['hasSecretSet'],
|
|
147
|
+
'employeeRole': !exists(json, 'employeeRole') ? undefined : json['employeeRole'],
|
|
148
|
+
'facility': !exists(json, 'facility') ? undefined : FacilityDataFromJSON(json['facility']),
|
|
149
|
+
'user': !exists(json, 'user') ? undefined : FacilitySessionUserDataFromJSON(json['user']),
|
|
150
|
+
'fingerprint': !exists(json, 'fingerprint') ? undefined : FingerprintDataFromJSON(json['fingerprint']),
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export function FacilityRelationshipDataToJSON(value?: FacilityRelationshipData | null): any {
|
|
155
|
+
if (value === undefined) {
|
|
156
|
+
return undefined;
|
|
157
|
+
}
|
|
158
|
+
if (value === null) {
|
|
159
|
+
return null;
|
|
160
|
+
}
|
|
161
|
+
return {
|
|
162
|
+
|
|
163
|
+
'id': value.id,
|
|
164
|
+
'userId': value.userId,
|
|
165
|
+
'facilityId': value.facilityId,
|
|
166
|
+
'member': value.member,
|
|
167
|
+
'memberIdentifier': value.memberIdentifier,
|
|
168
|
+
'hasSecretSet': value.hasSecretSet,
|
|
169
|
+
'employeeRole': value.employeeRole,
|
|
170
|
+
'facility': FacilityDataToJSON(value.facility),
|
|
171
|
+
'user': FacilitySessionUserDataToJSON(value.user),
|
|
172
|
+
'fingerprint': FingerprintDataToJSON(value.fingerprint),
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
|