-
Notifications
You must be signed in to change notification settings - Fork 5
/
AddressbookGroup_v4.dtd
92 lines (92 loc) · 2.52 KB
/
AddressbookGroup_v4.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
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "https://github.com/route4me/route4me-json-schemas/blob/master/AddressbookGroup_v4.dtd",
"title": "Addressbook Group v4",
"type": "object",
"description": "Describes the query response from the endpoint http://www.route4me.com/api.v4/address_book_group.php",
"properties": {
"group_id": {
"type": "string",
"title": "Group ID",
"description": "Unique 32-char group ID"
},
"group_name": {
"type": "string",
"title": "Group Name",
"description": "Group name"
},
"group_color": {
"type": "string",
"title": "Group Color",
"description": "Group color. See allowed values and colors at this link: https://github.com/route4me/route4me-json-schemas/blob/master/ColorSamples/AddressBookGroupAvailableColors.png"
},
"group_icon": {
"type": [
"string",
"null"
],
"title": "Group Icon",
"description": "Group icon"
},
"member_id": {
"type": "integer",
"title": "Member ID",
"description": "Member ID"
},
"filter": {
"type": "object",
"title": "Filter",
"description": "The array of the group filters for the address book contacts",
"properties": {
"condition": {
"type": "string",
"title": "Condition",
"description": "The group filter condition ['AND', 'OR']"
},
"rules": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"title": "ID",
"description": "The unique ID of the group filter rule"
},
"field": {
"type": "string",
"title": "Field",
"description": "The group filter field"
},
"type": {
"type": "string",
"title": "Type",
"description": "Default is <string>"
},
"input": {
"type": "string",
"title": "Input",
"description": "The field Input type. Default is <text>"
},
"operator": {
"type": "string",
"title": "Operator",
"description": "The group filter operator ['equal', 'not_equal', 'less', 'less_or_equal', 'greater', 'greater_or_equal', 'between', 'contains', 'not_contains', 'begins_with', 'ends_with', 'has_word', 'is_empty', 'is_not_empty']"
},
"value": {
"type": "string",
"title": "Value",
"description": "The group filter field value"
}
}
}
}
}
},
"valid": {
"type": "boolean",
"title": "Valid",
"description": "If true, the address book group is valid."
}
}
}