@pipedream/samsara 0.0.1 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,217 @@
1
+ export default {
2
+ "eventId": "017db07f-6e95-470e-8cc0-a371f9deed2b",
3
+ "eventTime": "1970-01-20T06:39:05.683Z",
4
+ "eventType": "RouteStopDeparture",
5
+ "orgId": 20936,
6
+ "webhookId": "1411751028848270",
7
+ "data": {
8
+ "driver": {
9
+ "externalIds": {
10
+ "payrollId": "ABFS18600"
11
+ },
12
+ "id": "45646",
13
+ "name": "Driver Bob"
14
+ },
15
+ "operation": "stop arrived",
16
+ "route": {
17
+ "actualRouteEndTime": "2019-06-13T19:08:25Z",
18
+ "actualRouteStartTime": "2019-06-13T19:08:25Z",
19
+ "externalIds": {
20
+ "myRouteId": "abc"
21
+ },
22
+ "id": "342341",
23
+ "name": "Bid 123",
24
+ "notes": "These are my notes",
25
+ "scheduledRouteEndTime": "2019-06-13T19:08:25Z",
26
+ "scheduledRouteStartTime": "2019-06-13T19:08:25Z",
27
+ "settings": {
28
+ "routeCompletionCondition": "arriveLastStop",
29
+ "routeStartingCondition": "departFirstStop"
30
+ },
31
+ "stops": [
32
+ {
33
+ "actualArrivalTime": "2006-01-02T15:04:05+07:00",
34
+ "actualDepartureTime": "2006-01-02T15:04:05+07:00",
35
+ "address": {
36
+ "externalIds": {
37
+ "siteId": "54"
38
+ },
39
+ "id": "494123",
40
+ "name": "Company Office #1"
41
+ },
42
+ "documents": [
43
+ {
44
+ "id": "494123",
45
+ "name": "Fuel Receipt Wichita"
46
+ },
47
+ {
48
+ "id": "494123",
49
+ "name": "Fuel Receipt Wichita"
50
+ }
51
+ ],
52
+ "enRouteTime": "2006-01-02T15:04:05+07:00",
53
+ "eta": "2006-01-02T15:04:05+07:00",
54
+ "externalIds": {
55
+ "siteId": "54"
56
+ },
57
+ "id": "324231",
58
+ "liveSharingUrl": "https://cloud.samsara.com/fleet/viewer/job/fleet_viewer_token",
59
+ "locationLiveSharingLinks": [
60
+ {
61
+ "expiresAtTime": "2020-01-27T07:06:25Z",
62
+ "liveSharingUrl": "https://cloud.samsara.com/o/123456/fleet/viewer/address/gEAitEnnOwcv92cuPzcU",
63
+ "name": "Name"
64
+ },
65
+ {
66
+ "expiresAtTime": "2020-01-27T07:06:25Z",
67
+ "liveSharingUrl": "https://cloud.samsara.com/o/123456/fleet/viewer/address/gEAitEnnOwcv92cuPzcU",
68
+ "name": "Name"
69
+ }
70
+ ],
71
+ "name": "Stop #1",
72
+ "notes": "These are my notes",
73
+ "scheduledArrivalTime": "2019-06-13T19:08:25Z",
74
+ "scheduledDepartureTime": "2019-06-13T19:08:25Z",
75
+ "singleUseLocation": {
76
+ "address": "1234 Main St, San Jose, CA",
77
+ "latitude": 123.456,
78
+ "longitude": 37.459
79
+ },
80
+ "skippedTime": "2006-01-02T15:04:05+07:00",
81
+ "state": "scheduled"
82
+ },
83
+ {
84
+ "actualArrivalTime": "2006-01-02T15:04:05+07:00",
85
+ "actualDepartureTime": "2006-01-02T15:04:05+07:00",
86
+ "address": {
87
+ "externalIds": {
88
+ "siteId": "54"
89
+ },
90
+ "id": "494123",
91
+ "name": "Company Office #1"
92
+ },
93
+ "documents": [
94
+ {
95
+ "id": "494123",
96
+ "name": "Fuel Receipt Wichita"
97
+ },
98
+ {
99
+ "id": "494123",
100
+ "name": "Fuel Receipt Wichita"
101
+ }
102
+ ],
103
+ "enRouteTime": "2006-01-02T15:04:05+07:00",
104
+ "eta": "2006-01-02T15:04:05+07:00",
105
+ "externalIds": {
106
+ "siteId": "54"
107
+ },
108
+ "id": "324231",
109
+ "liveSharingUrl": "https://cloud.samsara.com/fleet/viewer/job/fleet_viewer_token",
110
+ "locationLiveSharingLinks": [
111
+ {
112
+ "expiresAtTime": "2020-01-27T07:06:25Z",
113
+ "liveSharingUrl": "https://cloud.samsara.com/o/123456/fleet/viewer/address/gEAitEnnOwcv92cuPzcU",
114
+ "name": "Name"
115
+ },
116
+ {
117
+ "expiresAtTime": "2020-01-27T07:06:25Z",
118
+ "liveSharingUrl": "https://cloud.samsara.com/o/123456/fleet/viewer/address/gEAitEnnOwcv92cuPzcU",
119
+ "name": "Name"
120
+ }
121
+ ],
122
+ "name": "Stop #1",
123
+ "notes": "These are my notes",
124
+ "scheduledArrivalTime": "2019-06-13T19:08:25Z",
125
+ "scheduledDepartureTime": "2019-06-13T19:08:25Z",
126
+ "singleUseLocation": {
127
+ "address": "1234 Main St, San Jose, CA",
128
+ "latitude": 123.456,
129
+ "longitude": 37.459
130
+ },
131
+ "skippedTime": "2006-01-02T15:04:05+07:00",
132
+ "state": "scheduled"
133
+ },
134
+ {
135
+ "actualArrivalTime": "2006-01-02T15:04:05+07:00",
136
+ "actualDepartureTime": "2006-01-02T15:04:05+07:00",
137
+ "address": {
138
+ "externalIds": {
139
+ "siteId": "54"
140
+ },
141
+ "id": "494123",
142
+ "name": "Company Office #1"
143
+ },
144
+ "documents": [
145
+ {
146
+ "id": "494123",
147
+ "name": "Fuel Receipt Wichita"
148
+ },
149
+ {
150
+ "id": "494123",
151
+ "name": "Fuel Receipt Wichita"
152
+ }
153
+ ],
154
+ "enRouteTime": "2006-01-02T15:04:05+07:00",
155
+ "eta": "2006-01-02T15:04:05+07:00",
156
+ "externalIds": {
157
+ "siteId": "54"
158
+ },
159
+ "id": "324231",
160
+ "liveSharingUrl": "https://cloud.samsara.com/fleet/viewer/job/fleet_viewer_token",
161
+ "locationLiveSharingLinks": [
162
+ {
163
+ "expiresAtTime": "2020-01-27T07:06:25Z",
164
+ "liveSharingUrl": "https://cloud.samsara.com/o/123456/fleet/viewer/address/gEAitEnnOwcv92cuPzcU",
165
+ "name": "Name"
166
+ },
167
+ {
168
+ "expiresAtTime": "2020-01-27T07:06:25Z",
169
+ "liveSharingUrl": "https://cloud.samsara.com/o/123456/fleet/viewer/address/gEAitEnnOwcv92cuPzcU",
170
+ "name": "Name"
171
+ }
172
+ ],
173
+ "name": "Stop #1",
174
+ "notes": "These are my notes",
175
+ "scheduledArrivalTime": "2019-06-13T19:08:25Z",
176
+ "scheduledDepartureTime": "2019-06-13T19:08:25Z",
177
+ "singleUseLocation": {
178
+ "address": "1234 Main St, San Jose, CA",
179
+ "latitude": 123.456,
180
+ "longitude": 37.459
181
+ },
182
+ "skippedTime": "2006-01-02T15:04:05+07:00",
183
+ "state": "scheduled"
184
+ }
185
+ ]
186
+ },
187
+ "routeStopDetails": {
188
+ "actualArrivalTime": "2006-01-02T15:04:05+07:00",
189
+ "actualDepartureTime": "2006-01-02T15:04:05+07:00",
190
+ "enRouteTime": "2006-01-02T15:04:05+07:00",
191
+ "eta": "2006-01-02T15:04:05+07:00",
192
+ "externalIds": {
193
+ "siteId": "54"
194
+ },
195
+ "id": "141414",
196
+ "liveSharingUrl": "https://cloud.samsara.com/fleet/viewer/job/fleet_viewer_token",
197
+ "skippedTime": "2006-01-02T15:04:05+07:00",
198
+ "state": "scheduled"
199
+ },
200
+ "time": "2020-01-27T07:06:25Z",
201
+ "type": "route tracking",
202
+ "vehicle": {
203
+ "assetType": "vehicle",
204
+ "externalIds": {
205
+ "maintenanceId": "250020"
206
+ },
207
+ "gateway": {
208
+ "model": "VG34",
209
+ "serial": "GFRV-43N-VGX"
210
+ },
211
+ "id": "494123",
212
+ "licensePlate": "6SAM123",
213
+ "name": "Fleet Truck #1",
214
+ "vin": "1GBJ6P1B2HV112765"
215
+ }
216
+ }
217
+ }