318 lines
6.1 KiB
JSON
318 lines
6.1 KiB
JSON
/**
|
|
* Definition of properties for entities
|
|
*
|
|
* Format is specified in PropertyDefinition class
|
|
*
|
|
* @author Steffen Vogel <info@steffenvogel.de>
|
|
* @copyright Copyright (c) 2010, The volkszaehler.org project
|
|
* @package default
|
|
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
|
*/
|
|
/*
|
|
* This file is part of volkzaehler.org
|
|
*
|
|
* volkzaehler.org is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* any later version.
|
|
*
|
|
* volkzaehler.org is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with volkszaehler.org. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
[
|
|
{
|
|
"name" : "title",
|
|
"type" : "string",
|
|
"pattern" : "/[a-z0-9 ]/",
|
|
"min" : 3,
|
|
"max" : 255,
|
|
"translation" : { "de" : "Titel" }
|
|
},
|
|
{
|
|
"name" : "description",
|
|
"type" : "text",
|
|
"pattern" : "/[a-z0-9 ]/", // TODO add whitespaces as \t \n \r
|
|
"max" : 255, // TODO allowed column size in database?
|
|
"translation" : { "de" : "Beschreibung" }
|
|
},
|
|
{
|
|
"name" : "cost",
|
|
"type" : "float",
|
|
"min" : 0,
|
|
"translation" : { "de" : "Kosten" }
|
|
},
|
|
{
|
|
"name" : "resolution",
|
|
"type" : "integer",
|
|
"min" : 1,
|
|
"translation" : { "de" : "Auflösung" }
|
|
},
|
|
{
|
|
"name" : "tolerance",
|
|
"type" : "float",
|
|
"min" : 0,
|
|
"max" : 1,
|
|
"translation" : { "de" : "Toleranz" }
|
|
},
|
|
{
|
|
"name" : "address:lat",
|
|
"type" : "float",
|
|
"min" : -90,
|
|
"max" : 90,
|
|
"translation" : { "de" : "Latitude" }
|
|
},
|
|
{
|
|
"name" : "address:lon",
|
|
"type" : "float",
|
|
"min" : -90,
|
|
"max" : 90,
|
|
"translation" : { "de" : "Longitude" }
|
|
},
|
|
{
|
|
"name" : "address:city",
|
|
"type" : "string",
|
|
"pattern" : "", // TODO add pattern
|
|
"translation" : { "de" : "Stadt" }
|
|
},
|
|
{
|
|
"name" : "address:houseno",
|
|
"type" : "string",
|
|
"translation" : { "de" : "Hausnummer" }
|
|
},
|
|
{
|
|
"name" : "address:postal",
|
|
"type" : "string",
|
|
"translation" : { "de" : "Postleitzahl" }
|
|
},
|
|
{
|
|
"name" : "address:state",
|
|
"type" : "multiple",
|
|
"options" : [
|
|
"Albania",
|
|
"Algeria",
|
|
"Andorra",
|
|
"Angola",
|
|
"Anguilla",
|
|
"Antigua and Barbuda",
|
|
"Argentina",
|
|
"Armenia",
|
|
"Aruba",
|
|
"Australia",
|
|
"Austria",
|
|
"Azerbaijan Republic",
|
|
"Bahamas",
|
|
"Bahrain",
|
|
"Barbados",
|
|
"Belgium",
|
|
"Belize",
|
|
"Benin",
|
|
"Bermuda",
|
|
"Bhutan",
|
|
"Bolivia",
|
|
"Bosnia and Herzegovina",
|
|
"Botswana",
|
|
"Brazil",
|
|
"British Virgin Islands",
|
|
"Brunei",
|
|
"Bulgaria",
|
|
"Burkina Faso",
|
|
"Burundi",
|
|
"Cambodia",
|
|
"Canada",
|
|
"Cape Verde",
|
|
"Cayman Islands",
|
|
"Chad",
|
|
"Chile",
|
|
"China Worldwide",
|
|
"Colombia",
|
|
"Comoros",
|
|
"Cook Islands",
|
|
"Costa Rica",
|
|
"Croatia",
|
|
"Cyprus",
|
|
"Czech Republic",
|
|
"Democratic Republic of the Congo",
|
|
"Denmark",
|
|
"Djibouti",
|
|
"Dominica",
|
|
"Dominican Republic",
|
|
"Ecuador",
|
|
"El Salvador",
|
|
"Eritrea",
|
|
"Estonia",
|
|
"Ethiopia",
|
|
"Falkland Islands",
|
|
"Faroe Islands",
|
|
"Federated States of Micronesia",
|
|
"Fiji",
|
|
"Finland",
|
|
"France",
|
|
"French Guiana",
|
|
"French Polynesia",
|
|
"Gabon Republic",
|
|
"Gambia",
|
|
"Germany",
|
|
"Gibraltar",
|
|
"Greece",
|
|
"Greenland",
|
|
"Grenada",
|
|
"Guadeloupe",
|
|
"Guatemala",
|
|
"Guinea",
|
|
"Guinea Bissau",
|
|
"Guyana",
|
|
"Honduras",
|
|
"Hong Kong",
|
|
"Hungary",
|
|
"Iceland",
|
|
"India",
|
|
"Indonesia",
|
|
"Ireland",
|
|
"Israel",
|
|
"Italy",
|
|
"Jamaica",
|
|
"Japan",
|
|
"Jordan",
|
|
"Kazakhstan",
|
|
"Kenya",
|
|
"Kiribati",
|
|
"Kuwait",
|
|
"Kyrgyzstan",
|
|
"Laos",
|
|
"Latvia",
|
|
"Lesotho",
|
|
"Liechtenstein",
|
|
"Lithuania",
|
|
"Luxembourg",
|
|
"Madagascar",
|
|
"Malawi",
|
|
"Malaysia",
|
|
"Maldives",
|
|
"Mali",
|
|
"Malta",
|
|
"Marshall Islands",
|
|
"Martinique",
|
|
"Mauritania",
|
|
"Mauritius",
|
|
"Mayotte",
|
|
"Mexico",
|
|
"Mongolia",
|
|
"Montserrat",
|
|
"Morocco",
|
|
"Mozambique",
|
|
"Namibia",
|
|
"Nauru",
|
|
"Nepal",
|
|
"Netherlands",
|
|
"Netherlands Antilles",
|
|
"New Caledonia",
|
|
"New Zealand",
|
|
"Nicaragua",
|
|
"Niger",
|
|
"Niue",
|
|
"Norfolk Island",
|
|
"Norway",
|
|
"Oman",
|
|
"Palau",
|
|
"Panama",
|
|
"Papua New Guinea",
|
|
"Peru",
|
|
"Philippines",
|
|
"Pitcairn Islands",
|
|
"Poland",
|
|
"Portugal",
|
|
"Qatar",
|
|
"Republic of the Congo",
|
|
"Reunion",
|
|
"Romania",
|
|
"Russia",
|
|
"Rwanda",
|
|
"Saint Vincent and the Grenadines",
|
|
"Samoa",
|
|
"San Marino",
|
|
"São Tomé and Príncipe",
|
|
"Saudi Arabia",
|
|
"Senegal",
|
|
"Seychelles",
|
|
"Sierra Leone",
|
|
"Singapore",
|
|
"Slovakia",
|
|
"Slovenia",
|
|
"Solomon Islands",
|
|
"Somalia",
|
|
"South Africa",
|
|
"South Korea",
|
|
"Spain",
|
|
"Sri Lanka",
|
|
"St. Helena",
|
|
"St. Kitts and Nevis",
|
|
"St. Lucia",
|
|
"St. Pierre and Miquelon",
|
|
"Suriname",
|
|
"Svalbard and Jan Mayen Islands",
|
|
"Swaziland",
|
|
"Sweden",
|
|
"Switzerland",
|
|
"Taiwan",
|
|
"Tajikistan",
|
|
"Tanzania",
|
|
"Thailand",
|
|
"Togo",
|
|
"Tonga",
|
|
"Trinidad and Tobago",
|
|
"Tunisia",
|
|
"Turkey",
|
|
"Turkmenistan",
|
|
"Turks and Caicos Islands",
|
|
"Tuvalu",
|
|
"Uganda",
|
|
"Ukraine",
|
|
"United Arab Emirates",
|
|
"United Kingdom",
|
|
"Uruguay",
|
|
"Vanuatu",
|
|
"Vatican City State",
|
|
"Venezuela",
|
|
"Vietnam",
|
|
"Wallis and Futuna Islands",
|
|
"Yemen",
|
|
"Zambia"
|
|
],
|
|
"translation" : { "de" : "Land" }
|
|
},
|
|
{
|
|
"name" : "address:country",
|
|
"type" : "string",
|
|
"translation" : { "de" : "Staat" }
|
|
},
|
|
{
|
|
"name" : "photo:url",
|
|
"type" : "string",
|
|
"pattern" : "", // TODO add pattern
|
|
"translation" : { "de" : "Foto (URL)" }
|
|
},
|
|
{
|
|
"name" : "cuuid",
|
|
"type" : "string",
|
|
"max" : 36,
|
|
"pattern" : "/^[0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}$/",
|
|
"translation" : { "de" : "Cotroller UUID" }
|
|
},
|
|
{
|
|
"name" : "port",
|
|
"type" : "string",
|
|
"max" : 6,
|
|
"translation" : { "de" : "Controller Pin" }
|
|
},
|
|
{
|
|
"name" : "active",
|
|
"type" : "boolean",
|
|
"translation" : { "de" : "Aktiv?" }
|
|
}
|
|
]
|