-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtypes.json
66 lines (65 loc) · 1.48 KB
/
types.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
{
"ProductId": "Identifier",
"Identifier": "Vec<u8>",
"Decimal": "i32",
"ShipmentId": "Identifier",
"ShippingEventIndex": "u128",
"DeviceId": "Identifier",
"ShipmentStatus": {
"_enum": [
"Pending",
"InTransit",
"Delivered"
]
},
"Shipment": {
"id": "ShipmentId",
"owner": "AccountId",
"status": "ShipmentStatus",
"products": "Vec<ProductId>",
"registered": "Moment",
"delivered": "Option<Moment>"
},
"ShippingOperation": {
"_enum": [
"Pickup",
"Scan",
"Deliver"
]
},
"ShippingEventType": {
"_enum": [
"ShipmentRegistration",
"ShipmentPickup",
"ShipmentScan",
"ShipmentDeliver"
]
},
"ShippingEvent": {
"event_type": "ShippingEventType",
"shipment_id": "ShipmentId",
"location": "Option<ReadPoint>",
"readings": "Vec<Reading<Moment>>",
"timestamp": "Moment"
},
"ReadPoint": {
"latitude": "Decimal",
"longitude": "Decimal"
},
"ReadingType": {
"_enum": [
"Humidity",
"Pressure",
"Shock",
"Tilt",
"Temperature",
"Vibration"
]
},
"Reading": {
"device_id": "DeviceId",
"reading_type": "ReadingType",
"timestamp": "Moment",
"value": "Decimal"
}
}