-
Notifications
You must be signed in to change notification settings - Fork 2
/
conf.js
146 lines (146 loc) · 6.73 KB
/
conf.js
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
143
144
145
146
module.exports = {
conf: {
title: 'Contacts',
name: 'Contacts',
class: 'icn EXTERNAL'
},
facet: {
ID: {
path: 'body.email',
regex: '[a-zA-Z0-9-\._@]{4,}'
},
First: {
path: 'body.firstname'
},
Last: {
path: 'body.lastname'
},
Org: {
path: 'body.organization'
},
Credit: {
path: 'body.credit_text'
}
},
schema: {
"type": "object",
"properties": {
"firstname": {
"$id": "/properties/First Name",
"type": "string",
"title": "First name",
"description": "First name Eg., Robert",
"default": "",
"examples": [
"Robert"
],
"options": {
"class": 'user'
},
"maxLength": 128
},
"lastname": {
"$id": "/properties/Last Name",
"type": "string",
"title": "Last name",
"default": "",
"examples": [
"Jones"
],
"maxLength": 36
},
"organization": {
"$id": "/properties/organization",
"type": "string",
"title": "organization",
"default": "",
"examples": [
"Robert Jones, Inc."
],
"maxLength": 256
},
"allow_credit": {
"$id": "/properties/Attribution Allowed",
"type": "boolean",
"title": "credit allowed",
"default": "true",
"format": "checkbox",
},
"credit_text": {
"type": "string",
"title": "credit text",
"default": ""
},
"email": {
"$id": "/properties/Email",
"type": "string",
"title": "Primary email",
"default": "",
"examples": [
"robert@robertjones.com"
],
"minLength": 5,
"pattern": ""
},
"name-org-email": {
"options": {
"hidden": "true"
},
type: "string",
"template": "(context.fn || context.ln ? [context.fn, context.ln].join(' ').trim() + (context.org ? ' of '+ context.org : ''): '') + (context.eml ? ' ' + context.eml : '')",
"watch": {
"fn": "root.firstname",
"ln": "root.lastname",
"org": "root.organization",
"eml": "root.email"
},
},
"secondemail": {
"$id": "/properties/Secondary Email",
"type": "string",
"title": "Alternate email",
"default": "",
"examples": [
"bobjones@robertjones.com"
],
"pattern": ""
},
"phone": {
"$id": "/properties/Primary Phone",
"type": "string",
"title": "phone",
"default": "",
"examples": [
"+1(555)555-5555"
],
"maxLength": 30
},
"country": {
"$id": "/properties/Country",
"type": "string",
"options": {
"class": 'web'
},
"examples" : ["Afghanistan","Åland Islands","Albania","Algeria","American Samoa","Andorra","Angola","Anguilla","Antarctica","Antigua and Barbuda","Argentina","Armenia","Aruba","Australia","Austria","Azerbaijan","Bahamas","Bahrain","Bangladesh","Barbados","Belarus","Belgium","Belize","Benin","Bermuda","Bhutan","Bolivia (Plurinational State of)","Bonaire, Sint Eustatius and Saba","Bosnia and Herzegovina","Botswana","Bouvet Island","Brazil","British Indian Ocean Territory","United States Minor Outlying Islands","Virgin Islands (British)","Virgin Islands (U.S.)","Brunei Darussalam","Bulgaria","Burkina Faso","Burundi","Cambodia","Cameroon","Canada","Cabo Verde","Cayman Islands","Central African Republic","Chad","Chile","China","Christmas Island","Cocos (Keeling) Islands","Colombia","Comoros","Congo","Congo (Democratic Republic of the)","Cook Islands","Costa Rica","Croatia","Cuba","Curaçao","Cyprus","Czech Republic","Denmark","Djibouti","Dominica","Dominican Republic","Ecuador","Egypt","El Salvador","Equatorial Guinea","Eritrea","Estonia","Ethiopia","Falkland Islands (Malvinas)","Faroe Islands","Fiji","Finland","France","French Guiana","French Polynesia","French Southern Territories","Gabon","Gambia","Georgia","Germany","Ghana","Gibraltar","Greece","Greenland","Grenada","Guadeloupe","Guam","Guatemala","Guernsey","Guinea","Guinea-Bissau","Guyana","Haiti","Heard Island and McDonald Islands","Holy See","Honduras","Hong Kong","Hungary","Iceland","India","Indonesia","Côte d'Ivoire","Iran (Islamic Republic of)","Iraq","Ireland","Isle of Man","Israel","Italy","Jamaica","Japan","Jersey","Jordan","Kazakhstan","Kenya","Kiribati","Kuwait","Kyrgyzstan","Lao People's Democratic Republic","Latvia","Lebanon","Lesotho","Liberia","Libya","Liechtenstein","Lithuania","Luxembourg","Macao","Macedonia (the former Yugoslav Republic of)","Madagascar","Malawi","Malaysia","Maldives","Mali","Malta","Marshall Islands","Martinique","Mauritania","Mauritius","Mayotte","Mexico","Micronesia (Federated States of)","Moldova (Republic of)","Monaco","Mongolia","Montenegro","Montserrat","Morocco","Mozambique","Myanmar","Namibia","Nauru","Nepal","Netherlands","New Caledonia","New Zealand","Nicaragua","Niger","Nigeria","Niue","Norfolk Island","Korea (Democratic People's Republic of)","Northern Mariana Islands","Norway","Oman","Pakistan","Palau","Palestine, State of","Panama","Papua New Guinea","Paraguay","Peru","Philippines","Pitcairn","Poland","Portugal","Puerto Rico","Qatar","Republic of Kosovo","Réunion","Romania","Russian Federation","Rwanda","Saint Barthélemy","Saint Helena, Ascension and Tristan da Cunha","Saint Kitts and Nevis","Saint Lucia","Saint Martin (French part)","Saint Pierre and Miquelon","Saint Vincent and the Grenadines","Samoa","San Marino","Sao Tome and Principe","Saudi Arabia","Senegal","Serbia","Seychelles","Sierra Leone","Singapore","Sint Maarten (Dutch part)","Slovakia","Slovenia","Solomon Islands","Somalia","South Africa","South Georgia and the South Sandwich Islands","Korea (Republic of)","South Sudan","Spain","Sri Lanka","Sudan","Suriname","Svalbard and Jan Mayen","Swaziland","Sweden","Switzerland","Syrian Arab Republic","Taiwan","Tajikistan","Tanzania, United Republic of","Thailand","Timor-Leste","Togo","Tokelau","Tonga","Trinidad and Tobago","Tunisia","Turkey","Turkmenistan","Turks and Caicos Islands","Tuvalu","Uganda","Ukraine","United Arab Emirates","United Kingdom of Great Britain and Northern Ireland","United States of America","Uruguay","Uzbekistan","Vanuatu","Venezuela (Bolivarian Republic of)","Viet Nam","Wallis and Futuna","Western Sahara","Yemen","Zambia","Zimbabwe"],
"title": "Country",
"default": "United States of America",
"maxLength": 70
},
"PGP Preferred": {
"$id": "/properties/PGP Preferred",
"type": "boolean",
"default": "false",
"format": "checkbox"
},
"PGP Key": {
"$id": "/properties/PGP Key",
"type": "string",
"title": "Pgp key",
"default": "",
"examples": [
""
]
}
}
}
}