-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathnote.dtd
116 lines (116 loc) · 2.69 KB
/
note.dtd
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
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "https://github.com/route4me/route4me-json-schemas/blob/master/note.dtd",
"type": "object",
"title": "Note",
"properties": {
"note_id": {
"type": "integer",
"title": "Note ID",
"description": "the id of the note in the system"
},
"route_id": {
"type": "string",
"title": "Route ID",
"description": "Route ID"
},
"route_destination_id": {
"type": "integer",
"title": "Route Destination ID",
"description": "Route Destination ID"
},
"upload_id": {
"type": "string",
"title": "Upload ID",
"description": "The unique and randomly generated ID of the file attachment that is associated with this note"
},
"ts_added": {
"type": "integer",
"title": "TS Added",
"description": "The unix timestamp when the note was added"
},
"lat": {
"type": "number",
"minimum": -90,
"maximum": 90,
"title": "Latitude",
"description": "Latitude"
},
"lng": {
"type": "number",
"minimum": -180,
"maximum": 180,
"title": "Longitude",
"description": "Longitude"
},
"activity_type": {
"type": "string",
"enum": [
"pickup",
"dropoff",
"noanswer",
"notfound",
"notpaid",
"paid",
"wrongdelivery",
"wrongaddressrecipient",
"notpresent",
"service_rendered",
"parts_missing",
"follow_up",
"left_information",
"spoke_with_decision_maker",
"spoke_with_decision_influencer",
"competitive_account",
"scheduled_follow_up_meeting",
"scheduled_lunch",
"scheduled_product_demo",
"scheduled_clinical_demo",
"no_opportunity",
"other"
],
"title": "Activity Type",
"description": "Activity Type"
},
"contents": {
"type": "string",
"title": "Contents",
"description": "Contents"
},
"upload_type": {
"type": ["string", "null"],
"enum": [
"DRIVER_IMG",
"VEHICLE_IMG",
"ADDRESS_IMG",
"CSV_FILE",
"XLS_FILE",
"ANY_FILE"
],
"title": "Upload Type",
"description": "Upload Type"
},
"upload_url": {
"type": ["string", "null"],
"title": "Upload url",
"description": "The direct CDN URL of the attachment uploaded with a note"
},
"upload_extension": {
"type": ["string", "null"],
"title": "Upload Extension",
"description": "The extension of the attachment ('pdf', 'csv' etc)"
},
"device_type": {
"type": "string",
"title": "Device Type",
"description": "Device type ('web', 'iphone', 'ipad', 'android phone', 'android tablet' etc)"
},
"custom_types": {
"type": "array",
"items": { "$ref": "https://github.com/route4me/route4me-json-schemas/blob/master/note_custom_type.dtd" }
}
},
"required": [
"route_destination_id"
]
}