-
Notifications
You must be signed in to change notification settings - Fork 5
/
Activity.json
137 lines (137 loc) · 5 KB
/
Activity.json
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
{
"title": "Activity",
"description": "Parameters for creating user activity. Endpoint - https://www.route4me.com/api.v4/activity_feed.php",
"type": "object",
"properties": {
"activity_id": {
"type": "string",
"title": "Activity ID",
"description": "Unique ID of the activity."
},
"member_id": {
"type": "integer",
"title": "Member ID",
"description": "Member ID."
},
"activity_timestamp": {
"type": "integer",
"title": "Activity timestamp",
"description": "Time when activity happened"
},
"activity_type": {
"type": "string",
"enum": [
"",
"area-removed",
"area-added",
"area-updated",
"insert-destination",
"approved-to-execute",
"route-owner-changed",
"move-destination",
"member-created",
"route-delete",
"member-deleted",
"geofence-entered",
"geofence-left",
"mark-destination-departed",
"mark-destination-visited",
"member-modified",
"note-insert",
"delete-destination",
"destination-out-sequence",
"route-duplicate",
"route-merge",
"route-optimized",
"update-destinations",
"driver-arrived-early",
"driver-arrived-late",
"driver-arrived-on-time",
"user_message",
"order-created",
"order-updated",
"order-deleted",
"unapproved-to-execute",
"route-update"
],
"title": "Activity type",
"description": "area-removed - Territory Area Removed; area-added - Territory Area Added; area-updated - Territory Area Updated; insert-destination - Add New Address; approved-to-execute - Approved to Execute; route-owner-changed - Assigned Other User To Route; move-destination - Change Address Sequence; member-created - Created Team Member; route-delete - Delete Route; member-deleted - Delete Team Member; geofence-entered - Geofence Triggered Check In; geofence-left - Geofence Triggered Check Out; mark-destination-departed - Mark Address Departed; mark-destination-visited - Mark Address Visited; member-modified - Modified Member; note-insert - Note Insert; delete-destination - Remove Address From Route; destination-out-sequence - Route Deviation; route-duplicate - Route Duplication; route-merge - Route Merging; route-optimized - Route Optimized; update-destinations - Update Address Attribute; driver-arrived-early - User Arrived Early; driver-arrived-late - User Arrived Late; driver-arrived-on-time - User Arrived On Time; user_message - User Message; order-created - Order Created; order-updated - Order Updated; order-deleted - Order Deleted; unapproved-to-execute - Unapproved to Execute; route-update - Route Update"
},
"activity_message": {
"type": "string",
"title": "Activity message",
"description": "Activity message."
},
"route_id": {
"type": "string",
"title": "Route ID",
"description": "Parent route ID."
},
"route_destination_id": {
"type": "integer",
"title": "Route destination ID",
"description": "An address on the route."
},
"note_id": {
"type": "integer",
"title": "Note ID",
"description": "Unique ID of a note"
},
"note_type": {
"type": "string",
"title": "Note Type",
"description": "Note type."
},
"note_contents": {
"type": "string",
"title": "Note Contents",
"description": "Note contents"
},
"route_name": {
"type": "string",
"title": "Route Name",
"description": "Parent route name"
},
"note_file": {
"type": "string",
"title": "Note File",
"description": "URL of the uploaded note"
},
"destination_name": {
"type": "string",
"title": "Destination Name",
"description": "A route destination name"
},
"destination_alias": {
"type": "string",
"title": "Destination Alias",
"description": "A route destination alias"
},
"member": {
"type": "object",
"properties": {
"member_id": {
"type": "string",
"title": "Member ID",
"description": "Unique ID of an user created an activity"
},
"member_first_name": {
"type": "string",
"title": "Member First Name",
"description": "First name of an user created an activity."
},
"member_last_name": {
"type": "string",
"title": "Member Last Name",
"description": "Last name of an user created an activity."
},
"member_email": {
"type": "string",
"title": "Member Email",
"format": "email",
"description": "Email of an user created an activity"
}
}
}
}
}