-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathVehicleCapacityProfileDatatableConfigV5.dtd
142 lines (142 loc) · 3.82 KB
/
VehicleCapacityProfileDatatableConfigV5.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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "https://github.com/route4me/route4me-json-schemas/blob/master/VehicleCapacityProfileDatatableConfigV5.dtd",
"title": "Vehicle Capacity Profile Datatable Configuration V5",
"type": "object",
"description": "Configuration of the vehicle capacity profile datatable (how the table is shown on the website). Endpoint: https://wh.route4me.com/modules/api/v5.0/vehicle-capacity-profiles/datatable/config",
"properties": {
"row_id_field": {
"type": "string",
"title": "Row Identification Field",
"description": "Which field stands for the row identification in the datatable."
},
"table_actions": {
"type": "array",
"items": {
"type": "object",
"title": "Table Actions",
"description": "The configuration of an action applied to the datatable.",
"properties": {
"component": {
"type": "string",
"title": "Component",
"description": "A webpage component type which triggers the action."
},
"data": {
"type": "object",
"title": "Data",
"description": "The data of the website component's features.",
"properties": {
"operation": {
"type": "string",
"title": "Operation",
"description": "An operation ID in the system."
},
"text": {
"type": "string",
"title": "Text",
"description": "A text of the action component."
},
"icon": {
"type": "string",
"title": "Icon",
"description": "An icon for the action component."
}
}
}
}
}
},
"filters_config": {
"type": "array",
"title": "Filters Configuration",
"description": "Configuration of the datatable filter",
"items": {
"type": "object",
"properties": {
"component": {
"type": "string",
"title": "Component",
"description": "A webpage component type for the datatable filter."
},
"targetField": {
"type": "string",
"title": "Target Field",
"description": "A target field of the datatable filter."
},
"title": {
"type": "string",
"title": "Title",
"description": "The title of the datatable filter component."
},
"icon": {
"type": "string",
"title": "Icon",
"description": "An icon for the datatable filter component."
}
}
}
},
"columns": {
"type": "array",
"title": "Columns",
"description": "Datatable columns",
"items": {
"type": "object",
"properties": {
"label": {
"type": "string",
"title": "Label",
"description": "Column label (header)"
},
"width": {
"type": "string",
"title": "Width",
"description": "Column width (e.g. 50px)"
},
"cell_config": {
"type": "object",
"title": "Cell Config",
"description": "Configuration of the column cell.",
"properties": {
"component": {
"type": "string",
"title": "Component",
"description": "Type of the cell component."
},
"data": {
"type": "object",
"title": "Data",
"description": "Feature data of the cell component.",
"properties": {
"operation": {
"type": "string",
"title": "Operation",
"description": "An operation ID in the system applied to the column cell."
},
"icon": {
"type": "string",
"title": "Icon",
"description": "An icon for the column component."
}
}
}
}
}
}
}
},
"data_request": {
"type": "object",
"title": "Data Request",
"description": "Data request features",
"properties": {
"url": {
"type": "string",
"title": "URL",
"description": "The endpoint (URL) to retrieve the vehicle capacity profiles."
}
}
}
}
}