constants.js 1.39 KB
Newer Older
1 2 3
'use strict'

const PERMISSIONS = {
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
	DateOfBirth: 'DateOfBirth',
	BiologicalSex: 'BiologicalSex',
	Height: 'Height',
	Weight: 'Weight',
	BodyMass: 'BodyMass',
	BodyFatPercentage: 'BodyFatPercentage',
	BodyMassIndex: 'BodyMassIndex',
	LeanBodyMass: 'LeanBodyMass',
	Steps: 'Steps',
	StepCount: 'StepCount',
	DistanceWalkingRunning: 'DistanceWalkingRunning',
	DistanceCycling: 'DistanceCycling',
	BasalEnergyBurned: 'BasalEnergyBurned',
	ActiveEnergyBurned: 'ActiveEnergyBurned',
	FlightsClimbed: 'FlightsClimbed',
	NikeFuel: 'NikeFuel',
	AppleExerciseTime: 'AppleExerciseTime',
	DietaryEnergy: 'DietaryEnergy',
Daniele Volpi's avatar
Daniele Volpi committed
22 23 24 25 26 27
	HeartRate: 'HeartRate',
  BodyTemperature: 'BodyTemperature',
  BloodPressureSystolic: 'BloodPressureSystolic',
  BloodPressureDiastolic: 'BloodPressureDiastolic',
  RespiratoryRate: 'RespiratoryRate',
  BloodGlucose: 'BloodGlucose',
Greg Wilson's avatar
Greg Wilson committed
28
	SleepAnalysis: 'SleepAnalysis',
skleest's avatar
skleest committed
29
  MindfulSession: 'MindfulSession',
30 31 32 33 34 35 36
};


const UNITS = {
	gram: 'gram',
	pound: 'pound',
	meter: 'meter',
37
	mile: 'mile',
38 39 40 41 42 43 44 45 46
	inch: 'inch',
	foot: 'foot',
	second: 'second',
	minute: 'minute',
	hour: 'hour',
	day: 'day',
	joule: 'joule',
	calorie: 'calorie',
	count: 'count',
47 48 49 50
	percent: 'percent',
	bpm: 'bpm',
	fahrenheit: 'fahrenheit',
	celsius: 'celsius',
51
	mmhg: 'mmhg',
52
	mmolPerL: 'mmolPerL',
Daniele Volpi's avatar
Daniele Volpi committed
53
	mgPerdL: 'mgPerdL',
54 55 56 57 58 59 60 61 62 63 64
};



const CONSTANTS = {
	Permissions: PERMISSIONS,
	Units: UNITS,
};

export default CONSTANTS;
export const Constants = CONSTANTS;