-
Notifications
You must be signed in to change notification settings - Fork 5
/
Activity_response.json
136 lines (136 loc) · 5.41 KB
/
Activity_response.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
{
"title": "Activity Response",
"description": "Json schema for the response (create) from the endpoint: https://api.route4me.com/api/get_activities.php",
"type": "object",
"properties": {
"activity_id": {
"type": "string",
"title": "Activity ID",
"description": "32-char uniqie ID of the acitivity"
},
"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_timestamp": {
"type": "integer",
"title": "Activity timestamp",
"description": "Time when activity happened"
},
"activity_message": {
"type": "string",
"title": "Activity message",
"description": "Activity message"
},
"route_id": {
"type": "string",
"title": "Route ID",
"description": "Parent route"
},
"route_name": {
"type": "string",
"title": "Route name",
"description": "Parent route name"
},
"route_destination_id": {
"type": "integer",
"title": "Route destination ID",
"description": "An address on the route"
},
"note_id": {
"type": "string",
"title": "Note ID",
"description": "Note ID"
},
"note_type": {
"type": "string",
"title": "Note type",
"description": "Note type"
},
"note_contents": {
"type": "string",
"title": "Note contents",
"description": "Note contents"
},
"note_file": {
"type": "string",
"title": "Note attachment url",
"description": "URL of the uploaded note"
},
"member_id": {
"type": "integer",
"title": "Member ID",
"description": "Member ID"
},
"member": {
"type": "object",
"properties": {
"member_id": {
"type": "integer",
"title": "Member ID",
"description": "Unique ID of an user created an activity"
},
"member_first_name": {
"type": "integer",
"title": "Member first name",
"description": "First name of an user created an activity"
},
"member_last_name": {
"type": "integer",
"title": "Member last name",
"description": "Last name of an user created an activity"
},
"member_email": {
"type": "integer",
"title": "Member email",
"description": "Email of an user created an activity"
}
}
},
"destination_name": {
"type": "string",
"title": "Destination Name",
"description": "A route destination name"
},
"destination_alias": {
"type": "string",
"title": "Destination Alias",
"description": "A route destination alias"
}
}
}