-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathenum.js
92 lines (76 loc) · 1.66 KB
/
enum.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
/*
* Copyright (C) 2016 TopCoder Inc., All Rights Reserved.
*/
'use strict';
/**
* Contains app enums and constants
*/
const SocialType = {
GOOGLE: 'google-oauth2',
FACEBOOK: 'facebook',
};
const DroneStatus = {
IN_MOTIONS: 'in-motion',
IDLE_READY: 'idle-ready',
IDLE_BUSY: 'idle-busy',
};
const Role = {
CONSUMER: 'consumer',
PROVIDER: 'provider',
PILOT: 'pilot',
ADMIN: 'admin',
};
const MissionStatus = {
WAITING: 'waiting',
SCHEDULED: 'scheduled',
IN_PROGRESS: 'in-progress',
COMPLETED: 'completed',
};
const NotificationType = {
MISSION_STARTED: 'mission-started',
MISSION_COMPLETED: 'mission-completed',
REQUEST_ACCEPTED: 'request-accepted', // to consumer, created by provider after accepting a request
REQUEST_REJECTED: 'request-rejected', // to consumer, created by provider after rejecting a request
REQUEST_CANCELLED: 'request-cancelled', // to consumer, created by provider after cancelling a scheduled request
};
const RequestStatus = {
PENDING: 'pending',
REJECTED: 'rejected',
SCHEDULED: 'scheduled',
IN_PROGRESS: 'in-progress',
COMPLETED: 'completed',
CANCELLED: 'cancelled',
};
const ProviderStatus = {
ACTIVE: 'active',
INACTIVE: 'inactive',
};
const DroneAccessories = {
CAMERA: 'camera',
};
// todo: define proper types
const DroneType = {
type1: 'type1',
type2: 'type2',
};
const PilotChecklistAnswers = {
YES: 'yes',
NO: 'no',
NOTE: 'note',
};
const AWSAuthTypes = {
REQUEST: 'REQUEST',
};
module.exports = {
SocialType,
DroneStatus,
Role,
ProviderStatus,
DroneAccessories,
DroneType,
MissionStatus,
NotificationType,
RequestStatus,
PilotChecklistAnswers,
AWSAuthTypes,
};