constants.js 1.47 KB
Newer Older
1 2
'use strict'

Terrillo Walls's avatar
Terrillo Walls committed
3 4 5 6
/**
 * Apple Health Permissions
 * @type {Object}
 */
7
const PERMISSIONS = {
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
	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
26 27 28 29 30 31
	HeartRate: 'HeartRate',
  BodyTemperature: 'BodyTemperature',
  BloodPressureSystolic: 'BloodPressureSystolic',
  BloodPressureDiastolic: 'BloodPressureDiastolic',
  RespiratoryRate: 'RespiratoryRate',
  BloodGlucose: 'BloodGlucose',
Greg Wilson's avatar
Greg Wilson committed
32
	SleepAnalysis: 'SleepAnalysis',
skleest's avatar
skleest committed
33
  MindfulSession: 'MindfulSession',
34 35
};

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

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

export default CONSTANTS;
export const Constants = CONSTANTS;