diff --git a/apxtri/models/Odmdb.js b/apxtri/models/Odmdb.js index 673a92c..0aa02b8 100644 --- a/apxtri/models/Odmdb.js +++ b/apxtri/models/Odmdb.js @@ -183,7 +183,7 @@ Odmdb.Schema = (objectPathname, validschema, lg = "en") => { if (schemaPath.substring(0, 4) == "http") { // lance requete http pour recuperer le schema avec un await axios } else { - schemaPath = `../../${schemaPath}`; + schemaPath = `../${schemaPath}`; /*if (log) console.log( currentmod, @@ -227,13 +227,13 @@ Odmdb.Schema = (objectPathname, validschema, lg = "en") => { propertie.comment = `options:${propertie.options["$ref"]}}`; optionstype = "options"; optionsfile = path.resolve( - `../../${propertie.options["$ref"]}_${lg}.json` + `../${propertie.options["$ref"]}_${lg}.json` ); } if (propertie.options["$ref"].includes("/idx/")) { (propertie.comment = `itms:${propertie.options["$ref"]}}`), (optionstype = "idx"); - optionsfile = path.resolve(`../../${propertie.options["$ref"]}.json`); + optionsfile = path.resolve(`../${propertie.options["$ref"]}.json`); } //if (log) console.log(currentmod, "Lien vers options:", optionsfile); if (!fs.existsSync(optionsfile)) { @@ -352,7 +352,7 @@ Odmdb.Schema = (objectPathname, validschema, lg = "en") => { if (!res.data.schema.apxuniquekey.includes(res.data.schema.apxid)) { res.data.schema.apxuniquekey.push(res.data.schema.apxid); } - //`../../${req.session.header.xtribe}/objects/persons` + //`../${req.session.header.xtribe}/objects/persons` res.data.schema.apxidx.forEach((idx) => { if ( idx.objkey && @@ -776,7 +776,10 @@ Odmdb.runidx = (objectPathname, schema) => { //if (log) console.log(currentmod, `idx for ${objectPathname}`); if (!schema || !schema.apxid) { const getschema = Odmdb.Schema(objectPathname, true); - if (getschema.status != 200) return getschema; + if (getschema.status != 200) { + console.log(getschema) + return getschema; + } schema = getschema.data.schema; } const ventil = {}; @@ -791,7 +794,7 @@ Odmdb.runidx = (objectPathname, schema) => { ventil[id.name].filter = id.filter ? id.filter.replace(/;/g, "") : ""; // check integrity of string ventil[id.name].data = {}; } else { - if (schema.properties[id.keyval]){ + if (!schema.properties[id.keyval]){ console.log(`Check ${objectPathname} index ${id.name} property ${id.keyval} does not exist`) process.exit(0) } diff --git a/objects/options/country_en.json b/objects/options/country_en.json new file mode 100644 index 0000000..46aa135 --- /dev/null +++ b/objects/options/country_en.json @@ -0,0 +1,1504 @@ +{ + "title": "Country Code", + "description": "Country Code and Info", + "commment": "Alpha-2 country code (ISO 3166-2:XX)", + "lastupdatedata": "", + "lst_idx": [ + "AF", + "AX", + "AL", + "DZ", + "AS", + "AD", + "AO", + "AI", + "AQ", + "AG", + "AR", + "AM", + "AW", + "AU", + "AT", + "AZ", + "BS", + "BH", + "BD", + "BB", + "BY", + "BE", + "BZ", + "BJ", + "BM", + "BT", + "BO", + "BQ", + "BA", + "BW", + "BV", + "BR", + "IO", + "BN", + "BG", + "BF", + "BI", + "CV", + "KH", + "CM", + "CA", + "KY", + "CF", + "TD", + "CL", + "CN", + "CX", + "CC", + "CO", + "KM", + "CG", + "CD", + "CK", + "CR", + "CI", + "HR", + "CU", + "CW", + "CY", + "CZ", + "DK", + "DJ", + "DM", + "DO", + "EC", + "EG", + "SV", + "GQ", + "ER", + "EE", + "SZ", + "ET", + "FK", + "FO", + "FJ", + "FI", + "FR", + "GF", + "PF", + "TF", + "GA", + "GM", + "GE", + "DE", + "GH", + "GI", + "GR", + "GL", + "GD", + "GP", + "GU", + "GT", + "GG", + "GN", + "GW", + "GY", + "HT", + "HM", + "VA", + "HN", + "HK", + "HU", + "IS", + "IN", + "ID", + "IR", + "IQ", + "IE", + "IM", + "IL", + "IT", + "JM", + "JP", + "JE", + "JO", + "KZ", + "KE", + "KI", + "KP", + "KR", + "KW", + "KG", + "LA", + "LV", + "LB", + "LS", + "LR", + "LY", + "LI", + "LT", + "LU", + "MO", + "MG", + "MW", + "MY", + "MV", + "ML", + "MT", + "MH", + "MQ", + "MR", + "MU", + "YT", + "MX", + "FM", + "MD", + "MC", + "MN", + "ME", + "MS", + "MA", + "MZ", + "MM", + "NA", + "NR", + "NP", + "NL", + "NC", + "NZ", + "NI", + "NE", + "NG", + "NU", + "NF", + "MK", + "MP", + "NO", + "OM", + "PK", + "PW", + "PS", + "PA", + "PG", + "PY", + "PE", + "PH", + "PN", + "PL", + "PT", + "PR", + "QA", + "RE", + "RO", + "RU", + "RW", + "BL", + "SH", + "KN", + "LC", + "MF", + "PM", + "VC", + "WS", + "SM", + "ST", + "SA", + "SN", + "RS", + "SC", + "SL", + "SG", + "SX", + "SK", + "SI", + "SB", + "SO", + "ZA", + "GS", + "SS", + "ES", + "LK", + "SD", + "SR", + "SJ", + "SE", + "CH", + "SY", + "TW", + "TJ", + "TZ", + "TH", + "TL", + "TG", + "TK", + "TO", + "TT", + "TN", + "TR", + "TM", + "TC", + "TV", + "UG", + "UA", + "AE", + "GB", + "US", + "UM", + "UY", + "UZ", + "VU", + "VE", + "VN", + "VG", + "VI", + "WF", + "EH", + "YE", + "ZM", + "ZW" + ], + "itms": { + "AF": { + "title": "Afghanistan", + "region": "Asia", + "regioncode": "142" + }, + "AX": { + "title": "\u00c5land Islands", + "region": "Europe", + "regioncode": "150" + }, + "AL": { + "title": "Albania", + "region": "Europe", + "regioncode": "150" + }, + "DZ": { + "title": "Algeria", + "region": "Africa", + "regioncode": "002" + }, + "AS": { + "title": "American Samoa", + "region": "Oceania", + "regioncode": "009" + }, + "AD": { + "title": "Andorra", + "region": "Europe", + "regioncode": "150" + }, + "AO": { + "title": "Angola", + "region": "Africa", + "regioncode": "002" + }, + "AI": { + "title": "Anguilla", + "region": "Americas", + "regioncode": "019" + }, + "AQ": { + "title": "Antarctica", + "region": "", + "regioncode": "" + }, + "AG": { + "title": "Antigua and Barbuda", + "region": "Americas", + "regioncode": "019" + }, + "AR": { + "title": "Argentina", + "region": "Americas", + "regioncode": "019" + }, + "AM": { + "title": "Armenia", + "region": "Asia", + "regioncode": "142" + }, + "AW": { + "title": "Aruba", + "region": "Americas", + "regioncode": "019" + }, + "AU": { + "title": "Australia", + "region": "Oceania", + "regioncode": "009" + }, + "AT": { + "title": "Austria", + "region": "Europe", + "regioncode": "150" + }, + "AZ": { + "title": "Azerbaijan", + "region": "Asia", + "regioncode": "142" + }, + "BS": { + "title": "Bahamas", + "region": "Americas", + "regioncode": "019" + }, + "BH": { + "title": "Bahrain", + "region": "Asia", + "regioncode": "142" + }, + "BD": { + "title": "Bangladesh", + "region": "Asia", + "regioncode": "142" + }, + "BB": { + "title": "Barbados", + "region": "Americas", + "regioncode": "019" + }, + "BY": { + "title": "Belarus", + "region": "Europe", + "regioncode": "150" + }, + "BE": { + "title": "Belgium", + "region": "Europe", + "regioncode": "150" + }, + "BZ": { + "title": "Belize", + "region": "Americas", + "regioncode": "019" + }, + "BJ": { + "title": "Benin", + "region": "Africa", + "regioncode": "002" + }, + "BM": { + "title": "Bermuda", + "region": "Americas", + "regioncode": "019" + }, + "BT": { + "title": "Bhutan", + "region": "Asia", + "regioncode": "142" + }, + "BO": { + "title": "Bolivia, Plurinational State of", + "region": "Americas", + "regioncode": "019" + }, + "BQ": { + "title": "Bonaire, Sint Eustatius and Saba", + "region": "Americas", + "regioncode": "019" + }, + "BA": { + "title": "Bosnia and Herzegovina", + "region": "Europe", + "regioncode": "150" + }, + "BW": { + "title": "Botswana", + "region": "Africa", + "regioncode": "002" + }, + "BV": { + "title": "Bouvet Island", + "region": "Americas", + "regioncode": "019" + }, + "BR": { + "title": "Brazil", + "region": "Americas", + "regioncode": "019" + }, + "IO": { + "title": "British Indian Ocean Territory", + "region": "Africa", + "regioncode": "002" + }, + "BN": { + "title": "Brunei Darussalam", + "region": "Asia", + "regioncode": "142" + }, + "BG": { + "title": "Bulgaria", + "region": "Europe", + "regioncode": "150" + }, + "BF": { + "title": "Burkina Faso", + "region": "Africa", + "regioncode": "002" + }, + "BI": { + "title": "Burundi", + "region": "Africa", + "regioncode": "002" + }, + "CV": { + "title": "Cabo Verde", + "region": "Africa", + "regioncode": "002" + }, + "KH": { + "title": "Cambodia", + "region": "Asia", + "regioncode": "142" + }, + "CM": { + "title": "Cameroon", + "region": "Africa", + "regioncode": "002" + }, + "CA": { + "title": "Canada", + "region": "Americas", + "regioncode": "019" + }, + "KY": { + "title": "Cayman Islands", + "region": "Americas", + "regioncode": "019" + }, + "CF": { + "title": "Central African Republic", + "region": "Africa", + "regioncode": "002" + }, + "TD": { + "title": "Chad", + "region": "Africa", + "regioncode": "002" + }, + "CL": { + "title": "Chile", + "region": "Americas", + "regioncode": "019" + }, + "CN": { + "title": "China", + "region": "Asia", + "regioncode": "142" + }, + "CX": { + "title": "Christmas Island", + "region": "Oceania", + "regioncode": "009" + }, + "CC": { + "title": "Cocos (Keeling) Islands", + "region": "Oceania", + "regioncode": "009" + }, + "CO": { + "title": "Colombia", + "region": "Americas", + "regioncode": "019" + }, + "KM": { + "title": "Comoros", + "region": "Africa", + "regioncode": "002" + }, + "CG": { + "title": "Congo", + "region": "Africa", + "regioncode": "002" + }, + "CD": { + "title": "Congo, Democratic Republic of the", + "region": "Africa", + "regioncode": "002" + }, + "CK": { + "title": "Cook Islands", + "region": "Oceania", + "regioncode": "009" + }, + "CR": { + "title": "Costa Rica", + "region": "Americas", + "regioncode": "019" + }, + "CI": { + "title": "C\u00f4te d'Ivoire", + "region": "Africa", + "regioncode": "002" + }, + "HR": { + "title": "Croatia", + "region": "Europe", + "regioncode": "150" + }, + "CU": { + "title": "Cuba", + "region": "Americas", + "regioncode": "019" + }, + "CW": { + "title": "Cura\u00e7ao", + "region": "Americas", + "regioncode": "019" + }, + "CY": { + "title": "Cyprus", + "region": "Asia", + "regioncode": "142" + }, + "CZ": { + "title": "Czechia", + "region": "Europe", + "regioncode": "150" + }, + "DK": { + "title": "Denmark", + "region": "Europe", + "regioncode": "150" + }, + "DJ": { + "title": "Djibouti", + "region": "Africa", + "regioncode": "002" + }, + "DM": { + "title": "Dominica", + "region": "Americas", + "regioncode": "019" + }, + "DO": { + "title": "Dominican Republic", + "region": "Americas", + "regioncode": "019" + }, + "EC": { + "title": "Ecuador", + "region": "Americas", + "regioncode": "019" + }, + "EG": { + "title": "Egypt", + "region": "Africa", + "regioncode": "002" + }, + "SV": { + "title": "El Salvador", + "region": "Americas", + "regioncode": "019" + }, + "GQ": { + "title": "Equatorial Guinea", + "region": "Africa", + "regioncode": "002" + }, + "ER": { + "title": "Eritrea", + "region": "Africa", + "regioncode": "002" + }, + "EE": { + "title": "Estonia", + "region": "Europe", + "regioncode": "150" + }, + "SZ": { + "title": "Eswatini", + "region": "Africa", + "regioncode": "002" + }, + "ET": { + "title": "Ethiopia", + "region": "Africa", + "regioncode": "002" + }, + "FK": { + "title": "Falkland Islands (Malvinas)", + "region": "Americas", + "regioncode": "019" + }, + "FO": { + "title": "Faroe Islands", + "region": "Europe", + "regioncode": "150" + }, + "FJ": { + "title": "Fiji", + "region": "Oceania", + "regioncode": "009" + }, + "FI": { + "title": "Finland", + "region": "Europe", + "regioncode": "150" + }, + "FR": { + "title": "France", + "region": "Europe", + "regioncode": "150" + }, + "GF": { + "title": "French Guiana", + "region": "Americas", + "regioncode": "019" + }, + "PF": { + "title": "French Polynesia", + "region": "Oceania", + "regioncode": "009" + }, + "TF": { + "title": "French Southern Territories", + "region": "Africa", + "regioncode": "002" + }, + "GA": { + "title": "Gabon", + "region": "Africa", + "regioncode": "002" + }, + "GM": { + "title": "Gambia", + "region": "Africa", + "regioncode": "002" + }, + "GE": { + "title": "Georgia", + "region": "Asia", + "regioncode": "142" + }, + "DE": { + "title": "Germany", + "region": "Europe", + "regioncode": "150" + }, + "GH": { + "title": "Ghana", + "region": "Africa", + "regioncode": "002" + }, + "GI": { + "title": "Gibraltar", + "region": "Europe", + "regioncode": "150" + }, + "GR": { + "title": "Greece", + "region": "Europe", + "regioncode": "150" + }, + "GL": { + "title": "Greenland", + "region": "Americas", + "regioncode": "019" + }, + "GD": { + "title": "Grenada", + "region": "Americas", + "regioncode": "019" + }, + "GP": { + "title": "Guadeloupe", + "region": "Americas", + "regioncode": "019" + }, + "GU": { + "title": "Guam", + "region": "Oceania", + "regioncode": "009" + }, + "GT": { + "title": "Guatemala", + "region": "Americas", + "regioncode": "019" + }, + "GG": { + "title": "Guernsey", + "region": "Europe", + "regioncode": "150" + }, + "GN": { + "title": "Guinea", + "region": "Africa", + "regioncode": "002" + }, + "GW": { + "title": "Guinea-Bissau", + "region": "Africa", + "regioncode": "002" + }, + "GY": { + "title": "Guyana", + "region": "Americas", + "regioncode": "019" + }, + "HT": { + "title": "Haiti", + "region": "Americas", + "regioncode": "019" + }, + "HM": { + "title": "Heard Island and McDonald Islands", + "region": "Oceania", + "regioncode": "009" + }, + "VA": { + "title": "Holy See", + "region": "Europe", + "regioncode": "150" + }, + "HN": { + "title": "Honduras", + "region": "Americas", + "regioncode": "019" + }, + "HK": { + "title": "Hong Kong", + "region": "Asia", + "regioncode": "142" + }, + "HU": { + "title": "Hungary", + "region": "Europe", + "regioncode": "150" + }, + "IS": { + "title": "Iceland", + "region": "Europe", + "regioncode": "150" + }, + "IN": { + "title": "India", + "region": "Asia", + "regioncode": "142" + }, + "ID": { + "title": "Indonesia", + "region": "Asia", + "regioncode": "142" + }, + "IR": { + "title": "Iran, Islamic Republic of", + "region": "Asia", + "regioncode": "142" + }, + "IQ": { + "title": "Iraq", + "region": "Asia", + "regioncode": "142" + }, + "IE": { + "title": "Ireland", + "region": "Europe", + "regioncode": "150" + }, + "IM": { + "title": "Isle of Man", + "region": "Europe", + "regioncode": "150" + }, + "IL": { + "title": "Israel", + "region": "Asia", + "regioncode": "142" + }, + "IT": { + "title": "Italy", + "region": "Europe", + "regioncode": "150" + }, + "JM": { + "title": "Jamaica", + "region": "Americas", + "regioncode": "019" + }, + "JP": { + "title": "Japan", + "region": "Asia", + "regioncode": "142" + }, + "JE": { + "title": "Jersey", + "region": "Europe", + "regioncode": "150" + }, + "JO": { + "title": "Jordan", + "region": "Asia", + "regioncode": "142" + }, + "KZ": { + "title": "Kazakhstan", + "region": "Asia", + "regioncode": "142" + }, + "KE": { + "title": "Kenya", + "region": "Africa", + "regioncode": "002" + }, + "KI": { + "title": "Kiribati", + "region": "Oceania", + "regioncode": "009" + }, + "KP": { + "title": "Korea, Democratic People's Republic of", + "region": "Asia", + "regioncode": "142" + }, + "KR": { + "title": "Korea, Republic of", + "region": "Asia", + "regioncode": "142" + }, + "KW": { + "title": "Kuwait", + "region": "Asia", + "regioncode": "142" + }, + "KG": { + "title": "Kyrgyzstan", + "region": "Asia", + "regioncode": "142" + }, + "LA": { + "title": "Lao People's Democratic Republic", + "region": "Asia", + "regioncode": "142" + }, + "LV": { + "title": "Latvia", + "region": "Europe", + "regioncode": "150" + }, + "LB": { + "title": "Lebanon", + "region": "Asia", + "regioncode": "142" + }, + "LS": { + "title": "Lesotho", + "region": "Africa", + "regioncode": "002" + }, + "LR": { + "title": "Liberia", + "region": "Africa", + "regioncode": "002" + }, + "LY": { + "title": "Libya", + "region": "Africa", + "regioncode": "002" + }, + "LI": { + "title": "Liechtenstein", + "region": "Europe", + "regioncode": "150" + }, + "LT": { + "title": "Lithuania", + "region": "Europe", + "regioncode": "150" + }, + "LU": { + "title": "Luxembourg", + "region": "Europe", + "regioncode": "150" + }, + "MO": { + "title": "Macao", + "region": "Asia", + "regioncode": "142" + }, + "MG": { + "title": "Madagascar", + "region": "Africa", + "regioncode": "002" + }, + "MW": { + "title": "Malawi", + "region": "Africa", + "regioncode": "002" + }, + "MY": { + "title": "Malaysia", + "region": "Asia", + "regioncode": "142" + }, + "MV": { + "title": "Maldives", + "region": "Asia", + "regioncode": "142" + }, + "ML": { + "title": "Mali", + "region": "Africa", + "regioncode": "002" + }, + "MT": { + "title": "Malta", + "region": "Europe", + "regioncode": "150" + }, + "MH": { + "title": "Marshall Islands", + "region": "Oceania", + "regioncode": "009" + }, + "MQ": { + "title": "Martinique", + "region": "Americas", + "regioncode": "019" + }, + "MR": { + "title": "Mauritania", + "region": "Africa", + "regioncode": "002" + }, + "MU": { + "title": "Mauritius", + "region": "Africa", + "regioncode": "002" + }, + "YT": { + "title": "Mayotte", + "region": "Africa", + "regioncode": "002" + }, + "MX": { + "title": "Mexico", + "region": "Americas", + "regioncode": "019" + }, + "FM": { + "title": "Micronesia, Federated States of", + "region": "Oceania", + "regioncode": "009" + }, + "MD": { + "title": "Moldova, Republic of", + "region": "Europe", + "regioncode": "150" + }, + "MC": { + "title": "Monaco", + "region": "Europe", + "regioncode": "150" + }, + "MN": { + "title": "Mongolia", + "region": "Asia", + "regioncode": "142" + }, + "ME": { + "title": "Montenegro", + "region": "Europe", + "regioncode": "150" + }, + "MS": { + "title": "Montserrat", + "region": "Americas", + "regioncode": "019" + }, + "MA": { + "title": "Morocco", + "region": "Africa", + "regioncode": "002" + }, + "MZ": { + "title": "Mozambique", + "region": "Africa", + "regioncode": "002" + }, + "MM": { + "title": "Myanmar", + "region": "Asia", + "regioncode": "142" + }, + "NA": { + "title": "Namibia", + "region": "Africa", + "regioncode": "002" + }, + "NR": { + "title": "Nauru", + "region": "Oceania", + "regioncode": "009" + }, + "NP": { + "title": "Nepal", + "region": "Asia", + "regioncode": "142" + }, + "NL": { + "title": "Netherlands, Kingdom of the", + "region": "Europe", + "regioncode": "150" + }, + "NC": { + "title": "New Caledonia", + "region": "Oceania", + "regioncode": "009" + }, + "NZ": { + "title": "New Zealand", + "region": "Oceania", + "regioncode": "009" + }, + "NI": { + "title": "Nicaragua", + "region": "Americas", + "regioncode": "019" + }, + "NE": { + "title": "Niger", + "region": "Africa", + "regioncode": "002" + }, + "NG": { + "title": "Nigeria", + "region": "Africa", + "regioncode": "002" + }, + "NU": { + "title": "Niue", + "region": "Oceania", + "regioncode": "009" + }, + "NF": { + "title": "Norfolk Island", + "region": "Oceania", + "regioncode": "009" + }, + "MK": { + "title": "North Macedonia", + "region": "Europe", + "regioncode": "150" + }, + "MP": { + "title": "Northern Mariana Islands", + "region": "Oceania", + "regioncode": "009" + }, + "NO": { + "title": "Norway", + "region": "Europe", + "regioncode": "150" + }, + "OM": { + "title": "Oman", + "region": "Asia", + "regioncode": "142" + }, + "PK": { + "title": "Pakistan", + "region": "Asia", + "regioncode": "142" + }, + "PW": { + "title": "Palau", + "region": "Oceania", + "regioncode": "009" + }, + "PS": { + "title": "Palestine, State of", + "region": "Asia", + "regioncode": "142" + }, + "PA": { + "title": "Panama", + "region": "Americas", + "regioncode": "019" + }, + "PG": { + "title": "Papua New Guinea", + "region": "Oceania", + "regioncode": "009" + }, + "PY": { + "title": "Paraguay", + "region": "Americas", + "regioncode": "019" + }, + "PE": { + "title": "Peru", + "region": "Americas", + "regioncode": "019" + }, + "PH": { + "title": "Philippines", + "region": "Asia", + "regioncode": "142" + }, + "PN": { + "title": "Pitcairn", + "region": "Oceania", + "regioncode": "009" + }, + "PL": { + "title": "Poland", + "region": "Europe", + "regioncode": "150" + }, + "PT": { + "title": "Portugal", + "region": "Europe", + "regioncode": "150" + }, + "PR": { + "title": "Puerto Rico", + "region": "Americas", + "regioncode": "019" + }, + "QA": { + "title": "Qatar", + "region": "Asia", + "regioncode": "142" + }, + "RE": { + "title": "R\u00e9union", + "region": "Africa", + "regioncode": "002" + }, + "RO": { + "title": "Romania", + "region": "Europe", + "regioncode": "150" + }, + "RU": { + "title": "Russian Federation", + "region": "Europe", + "regioncode": "150" + }, + "RW": { + "title": "Rwanda", + "region": "Africa", + "regioncode": "002" + }, + "BL": { + "title": "Saint Barth\u00e9lemy", + "region": "Americas", + "regioncode": "019" + }, + "SH": { + "title": "Saint Helena, Ascension and Tristan da Cunha", + "region": "Africa", + "regioncode": "002" + }, + "KN": { + "title": "Saint Kitts and Nevis", + "region": "Americas", + "regioncode": "019" + }, + "LC": { + "title": "Saint Lucia", + "region": "Americas", + "regioncode": "019" + }, + "MF": { + "title": "Saint Martin (French part)", + "region": "Americas", + "regioncode": "019" + }, + "PM": { + "title": "Saint Pierre and Miquelon", + "region": "Americas", + "regioncode": "019" + }, + "VC": { + "title": "Saint Vincent and the Grenadines", + "region": "Americas", + "regioncode": "019" + }, + "WS": { + "title": "Samoa", + "region": "Oceania", + "regioncode": "009" + }, + "SM": { + "title": "San Marino", + "region": "Europe", + "regioncode": "150" + }, + "ST": { + "title": "Sao Tome and Principe", + "region": "Africa", + "regioncode": "002" + }, + "SA": { + "title": "Saudi Arabia", + "region": "Asia", + "regioncode": "142" + }, + "SN": { + "title": "Senegal", + "region": "Africa", + "regioncode": "002" + }, + "RS": { + "title": "Serbia", + "region": "Europe", + "regioncode": "150" + }, + "SC": { + "title": "Seychelles", + "region": "Africa", + "regioncode": "002" + }, + "SL": { + "title": "Sierra Leone", + "region": "Africa", + "regioncode": "002" + }, + "SG": { + "title": "Singapore", + "region": "Asia", + "regioncode": "142" + }, + "SX": { + "title": "Sint Maarten (Dutch part)", + "region": "Americas", + "regioncode": "019" + }, + "SK": { + "title": "Slovakia", + "region": "Europe", + "regioncode": "150" + }, + "SI": { + "title": "Slovenia", + "region": "Europe", + "regioncode": "150" + }, + "SB": { + "title": "Solomon Islands", + "region": "Oceania", + "regioncode": "009" + }, + "SO": { + "title": "Somalia", + "region": "Africa", + "regioncode": "002" + }, + "ZA": { + "title": "South Africa", + "region": "Africa", + "regioncode": "002" + }, + "GS": { + "title": "South Georgia and the South Sandwich Islands", + "region": "Americas", + "regioncode": "019" + }, + "SS": { + "title": "South Sudan", + "region": "Africa", + "regioncode": "002" + }, + "ES": { + "title": "Spain", + "region": "Europe", + "regioncode": "150" + }, + "LK": { + "title": "Sri Lanka", + "region": "Asia", + "regioncode": "142" + }, + "SD": { + "title": "Sudan", + "region": "Africa", + "regioncode": "002" + }, + "SR": { + "title": "Suriname", + "region": "Americas", + "regioncode": "019" + }, + "SJ": { + "title": "Svalbard and Jan Mayen", + "region": "Europe", + "regioncode": "150" + }, + "SE": { + "title": "Sweden", + "region": "Europe", + "regioncode": "150" + }, + "CH": { + "title": "Switzerland", + "region": "Europe", + "regioncode": "150" + }, + "SY": { + "title": "Syrian Arab Republic", + "region": "Asia", + "regioncode": "142" + }, + "TW": { + "title": "Taiwan, Province of China", + "region": "Asia", + "regioncode": "" + }, + "TJ": { + "title": "Tajikistan", + "region": "Asia", + "regioncode": "142" + }, + "TZ": { + "title": "Tanzania, United Republic of", + "region": "Africa", + "regioncode": "002" + }, + "TH": { + "title": "Thailand", + "region": "Asia", + "regioncode": "142" + }, + "TL": { + "title": "Timor-Leste", + "region": "Asia", + "regioncode": "142" + }, + "TG": { + "title": "Togo", + "region": "Africa", + "regioncode": "002" + }, + "TK": { + "title": "Tokelau", + "region": "Oceania", + "regioncode": "009" + }, + "TO": { + "title": "Tonga", + "region": "Oceania", + "regioncode": "009" + }, + "TT": { + "title": "Trinidad and Tobago", + "region": "Americas", + "regioncode": "019" + }, + "TN": { + "title": "Tunisia", + "region": "Africa", + "regioncode": "002" + }, + "TR": { + "title": "T\u00fcrkiye", + "region": "Asia", + "regioncode": "142" + }, + "TM": { + "title": "Turkmenistan", + "region": "Asia", + "regioncode": "142" + }, + "TC": { + "title": "Turks and Caicos Islands", + "region": "Americas", + "regioncode": "019" + }, + "TV": { + "title": "Tuvalu", + "region": "Oceania", + "regioncode": "009" + }, + "UG": { + "title": "Uganda", + "region": "Africa", + "regioncode": "002" + }, + "UA": { + "title": "Ukraine", + "region": "Europe", + "regioncode": "150" + }, + "AE": { + "title": "United Arab Emirates", + "region": "Asia", + "regioncode": "142" + }, + "GB": { + "title": "United Kingdom of Great Britain and Northern Ireland", + "region": "Europe", + "regioncode": "150" + }, + "US": { + "title": "United States of America", + "region": "Americas", + "regioncode": "019" + }, + "UM": { + "title": "United States Minor Outlying Islands", + "region": "Oceania", + "regioncode": "009" + }, + "UY": { + "title": "Uruguay", + "region": "Americas", + "regioncode": "019" + }, + "UZ": { + "title": "Uzbekistan", + "region": "Asia", + "regioncode": "142" + }, + "VU": { + "title": "Vanuatu", + "region": "Oceania", + "regioncode": "009" + }, + "VE": { + "title": "Venezuela, Bolivarian Republic of", + "region": "Americas", + "regioncode": "019" + }, + "VN": { + "title": "Viet Nam", + "region": "Asia", + "regioncode": "142" + }, + "VG": { + "title": "Virgin Islands (British)", + "region": "Americas", + "regioncode": "019" + }, + "VI": { + "title": "Virgin Islands (U.S.)", + "region": "Americas", + "regioncode": "019" + }, + "WF": { + "title": "Wallis and Futuna", + "region": "Oceania", + "regioncode": "009" + }, + "EH": { + "title": "Western Sahara", + "region": "Africa", + "regioncode": "002" + }, + "YE": { + "title": "Yemen", + "region": "Asia", + "regioncode": "142" + }, + "ZM": { + "title": "Zambia", + "region": "Africa", + "regioncode": "002" + }, + "ZW": { + "title": "Zimbabwe", + "region": "Africa", + "regioncode": "002" + } + } +} \ No newline at end of file diff --git a/objects/options/country_fr.json b/objects/options/country_fr.json new file mode 100644 index 0000000..46aa135 --- /dev/null +++ b/objects/options/country_fr.json @@ -0,0 +1,1504 @@ +{ + "title": "Country Code", + "description": "Country Code and Info", + "commment": "Alpha-2 country code (ISO 3166-2:XX)", + "lastupdatedata": "", + "lst_idx": [ + "AF", + "AX", + "AL", + "DZ", + "AS", + "AD", + "AO", + "AI", + "AQ", + "AG", + "AR", + "AM", + "AW", + "AU", + "AT", + "AZ", + "BS", + "BH", + "BD", + "BB", + "BY", + "BE", + "BZ", + "BJ", + "BM", + "BT", + "BO", + "BQ", + "BA", + "BW", + "BV", + "BR", + "IO", + "BN", + "BG", + "BF", + "BI", + "CV", + "KH", + "CM", + "CA", + "KY", + "CF", + "TD", + "CL", + "CN", + "CX", + "CC", + "CO", + "KM", + "CG", + "CD", + "CK", + "CR", + "CI", + "HR", + "CU", + "CW", + "CY", + "CZ", + "DK", + "DJ", + "DM", + "DO", + "EC", + "EG", + "SV", + "GQ", + "ER", + "EE", + "SZ", + "ET", + "FK", + "FO", + "FJ", + "FI", + "FR", + "GF", + "PF", + "TF", + "GA", + "GM", + "GE", + "DE", + "GH", + "GI", + "GR", + "GL", + "GD", + "GP", + "GU", + "GT", + "GG", + "GN", + "GW", + "GY", + "HT", + "HM", + "VA", + "HN", + "HK", + "HU", + "IS", + "IN", + "ID", + "IR", + "IQ", + "IE", + "IM", + "IL", + "IT", + "JM", + "JP", + "JE", + "JO", + "KZ", + "KE", + "KI", + "KP", + "KR", + "KW", + "KG", + "LA", + "LV", + "LB", + "LS", + "LR", + "LY", + "LI", + "LT", + "LU", + "MO", + "MG", + "MW", + "MY", + "MV", + "ML", + "MT", + "MH", + "MQ", + "MR", + "MU", + "YT", + "MX", + "FM", + "MD", + "MC", + "MN", + "ME", + "MS", + "MA", + "MZ", + "MM", + "NA", + "NR", + "NP", + "NL", + "NC", + "NZ", + "NI", + "NE", + "NG", + "NU", + "NF", + "MK", + "MP", + "NO", + "OM", + "PK", + "PW", + "PS", + "PA", + "PG", + "PY", + "PE", + "PH", + "PN", + "PL", + "PT", + "PR", + "QA", + "RE", + "RO", + "RU", + "RW", + "BL", + "SH", + "KN", + "LC", + "MF", + "PM", + "VC", + "WS", + "SM", + "ST", + "SA", + "SN", + "RS", + "SC", + "SL", + "SG", + "SX", + "SK", + "SI", + "SB", + "SO", + "ZA", + "GS", + "SS", + "ES", + "LK", + "SD", + "SR", + "SJ", + "SE", + "CH", + "SY", + "TW", + "TJ", + "TZ", + "TH", + "TL", + "TG", + "TK", + "TO", + "TT", + "TN", + "TR", + "TM", + "TC", + "TV", + "UG", + "UA", + "AE", + "GB", + "US", + "UM", + "UY", + "UZ", + "VU", + "VE", + "VN", + "VG", + "VI", + "WF", + "EH", + "YE", + "ZM", + "ZW" + ], + "itms": { + "AF": { + "title": "Afghanistan", + "region": "Asia", + "regioncode": "142" + }, + "AX": { + "title": "\u00c5land Islands", + "region": "Europe", + "regioncode": "150" + }, + "AL": { + "title": "Albania", + "region": "Europe", + "regioncode": "150" + }, + "DZ": { + "title": "Algeria", + "region": "Africa", + "regioncode": "002" + }, + "AS": { + "title": "American Samoa", + "region": "Oceania", + "regioncode": "009" + }, + "AD": { + "title": "Andorra", + "region": "Europe", + "regioncode": "150" + }, + "AO": { + "title": "Angola", + "region": "Africa", + "regioncode": "002" + }, + "AI": { + "title": "Anguilla", + "region": "Americas", + "regioncode": "019" + }, + "AQ": { + "title": "Antarctica", + "region": "", + "regioncode": "" + }, + "AG": { + "title": "Antigua and Barbuda", + "region": "Americas", + "regioncode": "019" + }, + "AR": { + "title": "Argentina", + "region": "Americas", + "regioncode": "019" + }, + "AM": { + "title": "Armenia", + "region": "Asia", + "regioncode": "142" + }, + "AW": { + "title": "Aruba", + "region": "Americas", + "regioncode": "019" + }, + "AU": { + "title": "Australia", + "region": "Oceania", + "regioncode": "009" + }, + "AT": { + "title": "Austria", + "region": "Europe", + "regioncode": "150" + }, + "AZ": { + "title": "Azerbaijan", + "region": "Asia", + "regioncode": "142" + }, + "BS": { + "title": "Bahamas", + "region": "Americas", + "regioncode": "019" + }, + "BH": { + "title": "Bahrain", + "region": "Asia", + "regioncode": "142" + }, + "BD": { + "title": "Bangladesh", + "region": "Asia", + "regioncode": "142" + }, + "BB": { + "title": "Barbados", + "region": "Americas", + "regioncode": "019" + }, + "BY": { + "title": "Belarus", + "region": "Europe", + "regioncode": "150" + }, + "BE": { + "title": "Belgium", + "region": "Europe", + "regioncode": "150" + }, + "BZ": { + "title": "Belize", + "region": "Americas", + "regioncode": "019" + }, + "BJ": { + "title": "Benin", + "region": "Africa", + "regioncode": "002" + }, + "BM": { + "title": "Bermuda", + "region": "Americas", + "regioncode": "019" + }, + "BT": { + "title": "Bhutan", + "region": "Asia", + "regioncode": "142" + }, + "BO": { + "title": "Bolivia, Plurinational State of", + "region": "Americas", + "regioncode": "019" + }, + "BQ": { + "title": "Bonaire, Sint Eustatius and Saba", + "region": "Americas", + "regioncode": "019" + }, + "BA": { + "title": "Bosnia and Herzegovina", + "region": "Europe", + "regioncode": "150" + }, + "BW": { + "title": "Botswana", + "region": "Africa", + "regioncode": "002" + }, + "BV": { + "title": "Bouvet Island", + "region": "Americas", + "regioncode": "019" + }, + "BR": { + "title": "Brazil", + "region": "Americas", + "regioncode": "019" + }, + "IO": { + "title": "British Indian Ocean Territory", + "region": "Africa", + "regioncode": "002" + }, + "BN": { + "title": "Brunei Darussalam", + "region": "Asia", + "regioncode": "142" + }, + "BG": { + "title": "Bulgaria", + "region": "Europe", + "regioncode": "150" + }, + "BF": { + "title": "Burkina Faso", + "region": "Africa", + "regioncode": "002" + }, + "BI": { + "title": "Burundi", + "region": "Africa", + "regioncode": "002" + }, + "CV": { + "title": "Cabo Verde", + "region": "Africa", + "regioncode": "002" + }, + "KH": { + "title": "Cambodia", + "region": "Asia", + "regioncode": "142" + }, + "CM": { + "title": "Cameroon", + "region": "Africa", + "regioncode": "002" + }, + "CA": { + "title": "Canada", + "region": "Americas", + "regioncode": "019" + }, + "KY": { + "title": "Cayman Islands", + "region": "Americas", + "regioncode": "019" + }, + "CF": { + "title": "Central African Republic", + "region": "Africa", + "regioncode": "002" + }, + "TD": { + "title": "Chad", + "region": "Africa", + "regioncode": "002" + }, + "CL": { + "title": "Chile", + "region": "Americas", + "regioncode": "019" + }, + "CN": { + "title": "China", + "region": "Asia", + "regioncode": "142" + }, + "CX": { + "title": "Christmas Island", + "region": "Oceania", + "regioncode": "009" + }, + "CC": { + "title": "Cocos (Keeling) Islands", + "region": "Oceania", + "regioncode": "009" + }, + "CO": { + "title": "Colombia", + "region": "Americas", + "regioncode": "019" + }, + "KM": { + "title": "Comoros", + "region": "Africa", + "regioncode": "002" + }, + "CG": { + "title": "Congo", + "region": "Africa", + "regioncode": "002" + }, + "CD": { + "title": "Congo, Democratic Republic of the", + "region": "Africa", + "regioncode": "002" + }, + "CK": { + "title": "Cook Islands", + "region": "Oceania", + "regioncode": "009" + }, + "CR": { + "title": "Costa Rica", + "region": "Americas", + "regioncode": "019" + }, + "CI": { + "title": "C\u00f4te d'Ivoire", + "region": "Africa", + "regioncode": "002" + }, + "HR": { + "title": "Croatia", + "region": "Europe", + "regioncode": "150" + }, + "CU": { + "title": "Cuba", + "region": "Americas", + "regioncode": "019" + }, + "CW": { + "title": "Cura\u00e7ao", + "region": "Americas", + "regioncode": "019" + }, + "CY": { + "title": "Cyprus", + "region": "Asia", + "regioncode": "142" + }, + "CZ": { + "title": "Czechia", + "region": "Europe", + "regioncode": "150" + }, + "DK": { + "title": "Denmark", + "region": "Europe", + "regioncode": "150" + }, + "DJ": { + "title": "Djibouti", + "region": "Africa", + "regioncode": "002" + }, + "DM": { + "title": "Dominica", + "region": "Americas", + "regioncode": "019" + }, + "DO": { + "title": "Dominican Republic", + "region": "Americas", + "regioncode": "019" + }, + "EC": { + "title": "Ecuador", + "region": "Americas", + "regioncode": "019" + }, + "EG": { + "title": "Egypt", + "region": "Africa", + "regioncode": "002" + }, + "SV": { + "title": "El Salvador", + "region": "Americas", + "regioncode": "019" + }, + "GQ": { + "title": "Equatorial Guinea", + "region": "Africa", + "regioncode": "002" + }, + "ER": { + "title": "Eritrea", + "region": "Africa", + "regioncode": "002" + }, + "EE": { + "title": "Estonia", + "region": "Europe", + "regioncode": "150" + }, + "SZ": { + "title": "Eswatini", + "region": "Africa", + "regioncode": "002" + }, + "ET": { + "title": "Ethiopia", + "region": "Africa", + "regioncode": "002" + }, + "FK": { + "title": "Falkland Islands (Malvinas)", + "region": "Americas", + "regioncode": "019" + }, + "FO": { + "title": "Faroe Islands", + "region": "Europe", + "regioncode": "150" + }, + "FJ": { + "title": "Fiji", + "region": "Oceania", + "regioncode": "009" + }, + "FI": { + "title": "Finland", + "region": "Europe", + "regioncode": "150" + }, + "FR": { + "title": "France", + "region": "Europe", + "regioncode": "150" + }, + "GF": { + "title": "French Guiana", + "region": "Americas", + "regioncode": "019" + }, + "PF": { + "title": "French Polynesia", + "region": "Oceania", + "regioncode": "009" + }, + "TF": { + "title": "French Southern Territories", + "region": "Africa", + "regioncode": "002" + }, + "GA": { + "title": "Gabon", + "region": "Africa", + "regioncode": "002" + }, + "GM": { + "title": "Gambia", + "region": "Africa", + "regioncode": "002" + }, + "GE": { + "title": "Georgia", + "region": "Asia", + "regioncode": "142" + }, + "DE": { + "title": "Germany", + "region": "Europe", + "regioncode": "150" + }, + "GH": { + "title": "Ghana", + "region": "Africa", + "regioncode": "002" + }, + "GI": { + "title": "Gibraltar", + "region": "Europe", + "regioncode": "150" + }, + "GR": { + "title": "Greece", + "region": "Europe", + "regioncode": "150" + }, + "GL": { + "title": "Greenland", + "region": "Americas", + "regioncode": "019" + }, + "GD": { + "title": "Grenada", + "region": "Americas", + "regioncode": "019" + }, + "GP": { + "title": "Guadeloupe", + "region": "Americas", + "regioncode": "019" + }, + "GU": { + "title": "Guam", + "region": "Oceania", + "regioncode": "009" + }, + "GT": { + "title": "Guatemala", + "region": "Americas", + "regioncode": "019" + }, + "GG": { + "title": "Guernsey", + "region": "Europe", + "regioncode": "150" + }, + "GN": { + "title": "Guinea", + "region": "Africa", + "regioncode": "002" + }, + "GW": { + "title": "Guinea-Bissau", + "region": "Africa", + "regioncode": "002" + }, + "GY": { + "title": "Guyana", + "region": "Americas", + "regioncode": "019" + }, + "HT": { + "title": "Haiti", + "region": "Americas", + "regioncode": "019" + }, + "HM": { + "title": "Heard Island and McDonald Islands", + "region": "Oceania", + "regioncode": "009" + }, + "VA": { + "title": "Holy See", + "region": "Europe", + "regioncode": "150" + }, + "HN": { + "title": "Honduras", + "region": "Americas", + "regioncode": "019" + }, + "HK": { + "title": "Hong Kong", + "region": "Asia", + "regioncode": "142" + }, + "HU": { + "title": "Hungary", + "region": "Europe", + "regioncode": "150" + }, + "IS": { + "title": "Iceland", + "region": "Europe", + "regioncode": "150" + }, + "IN": { + "title": "India", + "region": "Asia", + "regioncode": "142" + }, + "ID": { + "title": "Indonesia", + "region": "Asia", + "regioncode": "142" + }, + "IR": { + "title": "Iran, Islamic Republic of", + "region": "Asia", + "regioncode": "142" + }, + "IQ": { + "title": "Iraq", + "region": "Asia", + "regioncode": "142" + }, + "IE": { + "title": "Ireland", + "region": "Europe", + "regioncode": "150" + }, + "IM": { + "title": "Isle of Man", + "region": "Europe", + "regioncode": "150" + }, + "IL": { + "title": "Israel", + "region": "Asia", + "regioncode": "142" + }, + "IT": { + "title": "Italy", + "region": "Europe", + "regioncode": "150" + }, + "JM": { + "title": "Jamaica", + "region": "Americas", + "regioncode": "019" + }, + "JP": { + "title": "Japan", + "region": "Asia", + "regioncode": "142" + }, + "JE": { + "title": "Jersey", + "region": "Europe", + "regioncode": "150" + }, + "JO": { + "title": "Jordan", + "region": "Asia", + "regioncode": "142" + }, + "KZ": { + "title": "Kazakhstan", + "region": "Asia", + "regioncode": "142" + }, + "KE": { + "title": "Kenya", + "region": "Africa", + "regioncode": "002" + }, + "KI": { + "title": "Kiribati", + "region": "Oceania", + "regioncode": "009" + }, + "KP": { + "title": "Korea, Democratic People's Republic of", + "region": "Asia", + "regioncode": "142" + }, + "KR": { + "title": "Korea, Republic of", + "region": "Asia", + "regioncode": "142" + }, + "KW": { + "title": "Kuwait", + "region": "Asia", + "regioncode": "142" + }, + "KG": { + "title": "Kyrgyzstan", + "region": "Asia", + "regioncode": "142" + }, + "LA": { + "title": "Lao People's Democratic Republic", + "region": "Asia", + "regioncode": "142" + }, + "LV": { + "title": "Latvia", + "region": "Europe", + "regioncode": "150" + }, + "LB": { + "title": "Lebanon", + "region": "Asia", + "regioncode": "142" + }, + "LS": { + "title": "Lesotho", + "region": "Africa", + "regioncode": "002" + }, + "LR": { + "title": "Liberia", + "region": "Africa", + "regioncode": "002" + }, + "LY": { + "title": "Libya", + "region": "Africa", + "regioncode": "002" + }, + "LI": { + "title": "Liechtenstein", + "region": "Europe", + "regioncode": "150" + }, + "LT": { + "title": "Lithuania", + "region": "Europe", + "regioncode": "150" + }, + "LU": { + "title": "Luxembourg", + "region": "Europe", + "regioncode": "150" + }, + "MO": { + "title": "Macao", + "region": "Asia", + "regioncode": "142" + }, + "MG": { + "title": "Madagascar", + "region": "Africa", + "regioncode": "002" + }, + "MW": { + "title": "Malawi", + "region": "Africa", + "regioncode": "002" + }, + "MY": { + "title": "Malaysia", + "region": "Asia", + "regioncode": "142" + }, + "MV": { + "title": "Maldives", + "region": "Asia", + "regioncode": "142" + }, + "ML": { + "title": "Mali", + "region": "Africa", + "regioncode": "002" + }, + "MT": { + "title": "Malta", + "region": "Europe", + "regioncode": "150" + }, + "MH": { + "title": "Marshall Islands", + "region": "Oceania", + "regioncode": "009" + }, + "MQ": { + "title": "Martinique", + "region": "Americas", + "regioncode": "019" + }, + "MR": { + "title": "Mauritania", + "region": "Africa", + "regioncode": "002" + }, + "MU": { + "title": "Mauritius", + "region": "Africa", + "regioncode": "002" + }, + "YT": { + "title": "Mayotte", + "region": "Africa", + "regioncode": "002" + }, + "MX": { + "title": "Mexico", + "region": "Americas", + "regioncode": "019" + }, + "FM": { + "title": "Micronesia, Federated States of", + "region": "Oceania", + "regioncode": "009" + }, + "MD": { + "title": "Moldova, Republic of", + "region": "Europe", + "regioncode": "150" + }, + "MC": { + "title": "Monaco", + "region": "Europe", + "regioncode": "150" + }, + "MN": { + "title": "Mongolia", + "region": "Asia", + "regioncode": "142" + }, + "ME": { + "title": "Montenegro", + "region": "Europe", + "regioncode": "150" + }, + "MS": { + "title": "Montserrat", + "region": "Americas", + "regioncode": "019" + }, + "MA": { + "title": "Morocco", + "region": "Africa", + "regioncode": "002" + }, + "MZ": { + "title": "Mozambique", + "region": "Africa", + "regioncode": "002" + }, + "MM": { + "title": "Myanmar", + "region": "Asia", + "regioncode": "142" + }, + "NA": { + "title": "Namibia", + "region": "Africa", + "regioncode": "002" + }, + "NR": { + "title": "Nauru", + "region": "Oceania", + "regioncode": "009" + }, + "NP": { + "title": "Nepal", + "region": "Asia", + "regioncode": "142" + }, + "NL": { + "title": "Netherlands, Kingdom of the", + "region": "Europe", + "regioncode": "150" + }, + "NC": { + "title": "New Caledonia", + "region": "Oceania", + "regioncode": "009" + }, + "NZ": { + "title": "New Zealand", + "region": "Oceania", + "regioncode": "009" + }, + "NI": { + "title": "Nicaragua", + "region": "Americas", + "regioncode": "019" + }, + "NE": { + "title": "Niger", + "region": "Africa", + "regioncode": "002" + }, + "NG": { + "title": "Nigeria", + "region": "Africa", + "regioncode": "002" + }, + "NU": { + "title": "Niue", + "region": "Oceania", + "regioncode": "009" + }, + "NF": { + "title": "Norfolk Island", + "region": "Oceania", + "regioncode": "009" + }, + "MK": { + "title": "North Macedonia", + "region": "Europe", + "regioncode": "150" + }, + "MP": { + "title": "Northern Mariana Islands", + "region": "Oceania", + "regioncode": "009" + }, + "NO": { + "title": "Norway", + "region": "Europe", + "regioncode": "150" + }, + "OM": { + "title": "Oman", + "region": "Asia", + "regioncode": "142" + }, + "PK": { + "title": "Pakistan", + "region": "Asia", + "regioncode": "142" + }, + "PW": { + "title": "Palau", + "region": "Oceania", + "regioncode": "009" + }, + "PS": { + "title": "Palestine, State of", + "region": "Asia", + "regioncode": "142" + }, + "PA": { + "title": "Panama", + "region": "Americas", + "regioncode": "019" + }, + "PG": { + "title": "Papua New Guinea", + "region": "Oceania", + "regioncode": "009" + }, + "PY": { + "title": "Paraguay", + "region": "Americas", + "regioncode": "019" + }, + "PE": { + "title": "Peru", + "region": "Americas", + "regioncode": "019" + }, + "PH": { + "title": "Philippines", + "region": "Asia", + "regioncode": "142" + }, + "PN": { + "title": "Pitcairn", + "region": "Oceania", + "regioncode": "009" + }, + "PL": { + "title": "Poland", + "region": "Europe", + "regioncode": "150" + }, + "PT": { + "title": "Portugal", + "region": "Europe", + "regioncode": "150" + }, + "PR": { + "title": "Puerto Rico", + "region": "Americas", + "regioncode": "019" + }, + "QA": { + "title": "Qatar", + "region": "Asia", + "regioncode": "142" + }, + "RE": { + "title": "R\u00e9union", + "region": "Africa", + "regioncode": "002" + }, + "RO": { + "title": "Romania", + "region": "Europe", + "regioncode": "150" + }, + "RU": { + "title": "Russian Federation", + "region": "Europe", + "regioncode": "150" + }, + "RW": { + "title": "Rwanda", + "region": "Africa", + "regioncode": "002" + }, + "BL": { + "title": "Saint Barth\u00e9lemy", + "region": "Americas", + "regioncode": "019" + }, + "SH": { + "title": "Saint Helena, Ascension and Tristan da Cunha", + "region": "Africa", + "regioncode": "002" + }, + "KN": { + "title": "Saint Kitts and Nevis", + "region": "Americas", + "regioncode": "019" + }, + "LC": { + "title": "Saint Lucia", + "region": "Americas", + "regioncode": "019" + }, + "MF": { + "title": "Saint Martin (French part)", + "region": "Americas", + "regioncode": "019" + }, + "PM": { + "title": "Saint Pierre and Miquelon", + "region": "Americas", + "regioncode": "019" + }, + "VC": { + "title": "Saint Vincent and the Grenadines", + "region": "Americas", + "regioncode": "019" + }, + "WS": { + "title": "Samoa", + "region": "Oceania", + "regioncode": "009" + }, + "SM": { + "title": "San Marino", + "region": "Europe", + "regioncode": "150" + }, + "ST": { + "title": "Sao Tome and Principe", + "region": "Africa", + "regioncode": "002" + }, + "SA": { + "title": "Saudi Arabia", + "region": "Asia", + "regioncode": "142" + }, + "SN": { + "title": "Senegal", + "region": "Africa", + "regioncode": "002" + }, + "RS": { + "title": "Serbia", + "region": "Europe", + "regioncode": "150" + }, + "SC": { + "title": "Seychelles", + "region": "Africa", + "regioncode": "002" + }, + "SL": { + "title": "Sierra Leone", + "region": "Africa", + "regioncode": "002" + }, + "SG": { + "title": "Singapore", + "region": "Asia", + "regioncode": "142" + }, + "SX": { + "title": "Sint Maarten (Dutch part)", + "region": "Americas", + "regioncode": "019" + }, + "SK": { + "title": "Slovakia", + "region": "Europe", + "regioncode": "150" + }, + "SI": { + "title": "Slovenia", + "region": "Europe", + "regioncode": "150" + }, + "SB": { + "title": "Solomon Islands", + "region": "Oceania", + "regioncode": "009" + }, + "SO": { + "title": "Somalia", + "region": "Africa", + "regioncode": "002" + }, + "ZA": { + "title": "South Africa", + "region": "Africa", + "regioncode": "002" + }, + "GS": { + "title": "South Georgia and the South Sandwich Islands", + "region": "Americas", + "regioncode": "019" + }, + "SS": { + "title": "South Sudan", + "region": "Africa", + "regioncode": "002" + }, + "ES": { + "title": "Spain", + "region": "Europe", + "regioncode": "150" + }, + "LK": { + "title": "Sri Lanka", + "region": "Asia", + "regioncode": "142" + }, + "SD": { + "title": "Sudan", + "region": "Africa", + "regioncode": "002" + }, + "SR": { + "title": "Suriname", + "region": "Americas", + "regioncode": "019" + }, + "SJ": { + "title": "Svalbard and Jan Mayen", + "region": "Europe", + "regioncode": "150" + }, + "SE": { + "title": "Sweden", + "region": "Europe", + "regioncode": "150" + }, + "CH": { + "title": "Switzerland", + "region": "Europe", + "regioncode": "150" + }, + "SY": { + "title": "Syrian Arab Republic", + "region": "Asia", + "regioncode": "142" + }, + "TW": { + "title": "Taiwan, Province of China", + "region": "Asia", + "regioncode": "" + }, + "TJ": { + "title": "Tajikistan", + "region": "Asia", + "regioncode": "142" + }, + "TZ": { + "title": "Tanzania, United Republic of", + "region": "Africa", + "regioncode": "002" + }, + "TH": { + "title": "Thailand", + "region": "Asia", + "regioncode": "142" + }, + "TL": { + "title": "Timor-Leste", + "region": "Asia", + "regioncode": "142" + }, + "TG": { + "title": "Togo", + "region": "Africa", + "regioncode": "002" + }, + "TK": { + "title": "Tokelau", + "region": "Oceania", + "regioncode": "009" + }, + "TO": { + "title": "Tonga", + "region": "Oceania", + "regioncode": "009" + }, + "TT": { + "title": "Trinidad and Tobago", + "region": "Americas", + "regioncode": "019" + }, + "TN": { + "title": "Tunisia", + "region": "Africa", + "regioncode": "002" + }, + "TR": { + "title": "T\u00fcrkiye", + "region": "Asia", + "regioncode": "142" + }, + "TM": { + "title": "Turkmenistan", + "region": "Asia", + "regioncode": "142" + }, + "TC": { + "title": "Turks and Caicos Islands", + "region": "Americas", + "regioncode": "019" + }, + "TV": { + "title": "Tuvalu", + "region": "Oceania", + "regioncode": "009" + }, + "UG": { + "title": "Uganda", + "region": "Africa", + "regioncode": "002" + }, + "UA": { + "title": "Ukraine", + "region": "Europe", + "regioncode": "150" + }, + "AE": { + "title": "United Arab Emirates", + "region": "Asia", + "regioncode": "142" + }, + "GB": { + "title": "United Kingdom of Great Britain and Northern Ireland", + "region": "Europe", + "regioncode": "150" + }, + "US": { + "title": "United States of America", + "region": "Americas", + "regioncode": "019" + }, + "UM": { + "title": "United States Minor Outlying Islands", + "region": "Oceania", + "regioncode": "009" + }, + "UY": { + "title": "Uruguay", + "region": "Americas", + "regioncode": "019" + }, + "UZ": { + "title": "Uzbekistan", + "region": "Asia", + "regioncode": "142" + }, + "VU": { + "title": "Vanuatu", + "region": "Oceania", + "regioncode": "009" + }, + "VE": { + "title": "Venezuela, Bolivarian Republic of", + "region": "Americas", + "regioncode": "019" + }, + "VN": { + "title": "Viet Nam", + "region": "Asia", + "regioncode": "142" + }, + "VG": { + "title": "Virgin Islands (British)", + "region": "Americas", + "regioncode": "019" + }, + "VI": { + "title": "Virgin Islands (U.S.)", + "region": "Americas", + "regioncode": "019" + }, + "WF": { + "title": "Wallis and Futuna", + "region": "Oceania", + "regioncode": "009" + }, + "EH": { + "title": "Western Sahara", + "region": "Africa", + "regioncode": "002" + }, + "YE": { + "title": "Yemen", + "region": "Asia", + "regioncode": "142" + }, + "ZM": { + "title": "Zambia", + "region": "Africa", + "regioncode": "002" + }, + "ZW": { + "title": "Zimbabwe", + "region": "Africa", + "regioncode": "002" + } + } +} \ No newline at end of file diff --git a/objects/options/profil_en.json b/objects/options/profil_en.json new file mode 100644 index 0000000..8796d05 --- /dev/null +++ b/objects/options/profil_en.json @@ -0,0 +1,35 @@ +{ + "title": "Profil", + "description": "Profil available in adminapi", + "commment": "", + "lastupdatedata": "", + "lst_idx": [ + "anonymous", + "pagan", + "mayor", + "druid", + "person" + ], + "itms": { + "anonymous": { + "title": "Unidentified user", + "description": "Unknown to the apxtri network" + }, + "pagan": { + "title": "User with an apxtri identity", + "description": "This profile can digitally sign on the apxtri blockchain" + }, + "mayor": { + "title": "Administrator of a city", + "description": "He manages the rules specific to a tribe grouping, he finances this city and can define its billing terms for welcoming tribes" + }, + "druid": { + "title": "Administrator of a tribe", + "description": "He has a private space in a city, to apply and enforce the rules of the tribe." + }, + "person": { + "title": "A member of a tribe", + "description": "A person has an account in a tribe with their alias, it allows them to exchange within a tribe according to the rules set by the druid." + } + } +} diff --git a/objects/options/profil_fr.json b/objects/options/profil_fr.json new file mode 100644 index 0000000..2e77289 --- /dev/null +++ b/objects/options/profil_fr.json @@ -0,0 +1,34 @@ +{ + "title": "Profil", + "description": "Profil disponible dans adminapi", + "commment": "", + "lastupdatedata": "", + "lst_idx": [ + "anonymous", + "pagan", + "mayor", + "druid", + "person" + ], + "itms": { + "anonymous": { + "title": "Utilisateur non identifié", + "description": "Inconnu du réseau apxtri" + }, + "pagan": { + "title": "Utilisateur avec une identité apxtri", + "description": "Ce profil peux signer numériquement sur la blockchain apxtri" + }, + "mayor": { + "title": "Administrateur d'une ville", + "description": "Il gére les régles propres à un regroupement de tribu, il finance cette ville et peut definir ses modalités de facturation pour accueillir des tribus" + }, + "druid": { + "title": "Administrateur d'une tribu", + "description": "Il dispose d'un espace privée dans une ville , pour y appliquer et faire respecter les régles de la tribu." + }, + "person": { + "title": "Un membre d'une tribu", + "description": "Une personne dispose d'un compte dans une tribu avec son alias, il permet d'echanger au sein d'une tribu en fonction des régles mises en place par le druid." + } } +} diff --git a/objects/tplstrings/Checkjson_en.json b/objects/tplstrings/Checkjson_en.json new file mode 100644 index 0000000..b55d69f --- /dev/null +++ b/objects/tplstrings/Checkjson_en.json @@ -0,0 +1,6 @@ +{ + "validcheck":"Your data are valid", + "typedoesnnotexistinschema":"This type in your propertie is not manage by Checkjson.js", + "dataerrpropertie":"Check your data that not fit your schema rules propertie", + "dataerrpropertiesrequired":"This propertie is required and not present in your data" +} \ No newline at end of file diff --git a/objects/tplstrings/Checkjson_fr.json b/objects/tplstrings/Checkjson_fr.json new file mode 100644 index 0000000..a76cb1c --- /dev/null +++ b/objects/tplstrings/Checkjson_fr.json @@ -0,0 +1,7 @@ +{ + "validcheck":"Your data are valid", + "typedoesnnotexistinschema":"This type in your propertie is not manage by Checkjson.js", + "dataerrpropertie":"Check your data that not fit your schema rules propertie", + "dataerrpropertiesrequired":"This propertie is required and not present in your data", + "externalrefnotload":"You have in your schema a relative sub schema, you have to load it before" +} \ No newline at end of file diff --git a/objects/tplstrings/Nations_fr.json b/objects/tplstrings/Nations_fr.json new file mode 100644 index 0000000..8b2739b --- /dev/null +++ b/objects/tplstrings/Nations_fr.json @@ -0,0 +1,7 @@ +{ + "nationnamedesc":"Nom unique d'une nation dans un monde social", + "nationnamedesclong":"Nom unique identifiant une nation dans le monde social créer par un maire d'une nouvelle ville avec un contrat sociale specifique", + "nationnameinfo":"

Une nation posséde un nom unique, un contrat sociale (contracts/name.js) signé et validé par tous les maires des villes associées à cette nation

", + "statusdesc":"Statut de la nation", + "statusactive":"Nation active" +} \ No newline at end of file diff --git a/objects/tplstrings/Notifications_en.json b/objects/tplstrings/Notifications_en.json new file mode 100644 index 0000000..558789c --- /dev/null +++ b/objects/tplstrings/Notifications_en.json @@ -0,0 +1,13 @@ +{ + "missingconf":"Il manque un smtp/sms valide pour {{tribe}} ou sur le serveur /conf.json", + "missingdata":"Il manque des données obligatoire dans data {{#missingk}} {{.}} {{/missingk}}", + "missingfile":"Le ou les fichiers suivants n'existent pas {{#missingfile}} {{.}} {{/missingfile}}", + "errsendmail":"Une erreur s'est produite lors de l'envoie de l'email", + "successfullsentemail":"Email correctement envoyé", + "errsendsms":"Une erreur s'est produite lors de l'envoie du sms", + "successfullsentsms":"Sms bien envoyé à {{To}}", + "registersuccess":"Vous avez bien été enregistré pour être recontacté.", + "formaterror":"Verifier vos données", + "typekeyunknown":"Verifier typekey qui doit etre email ou telephone et qui est {{typeky}}", + "destinnotallow":"Check {{destin}} that not exist" +} \ No newline at end of file diff --git a/objects/tplstrings/Notifications_fr.json b/objects/tplstrings/Notifications_fr.json new file mode 100644 index 0000000..558789c --- /dev/null +++ b/objects/tplstrings/Notifications_fr.json @@ -0,0 +1,13 @@ +{ + "missingconf":"Il manque un smtp/sms valide pour {{tribe}} ou sur le serveur /conf.json", + "missingdata":"Il manque des données obligatoire dans data {{#missingk}} {{.}} {{/missingk}}", + "missingfile":"Le ou les fichiers suivants n'existent pas {{#missingfile}} {{.}} {{/missingfile}}", + "errsendmail":"Une erreur s'est produite lors de l'envoie de l'email", + "successfullsentemail":"Email correctement envoyé", + "errsendsms":"Une erreur s'est produite lors de l'envoie du sms", + "successfullsentsms":"Sms bien envoyé à {{To}}", + "registersuccess":"Vous avez bien été enregistré pour être recontacté.", + "formaterror":"Verifier vos données", + "typekeyunknown":"Verifier typekey qui doit etre email ou telephone et qui est {{typeky}}", + "destinnotallow":"Check {{destin}} that not exist" +} \ No newline at end of file diff --git a/objects/tplstrings/Odmdb_en.json b/objects/tplstrings/Odmdb_en.json new file mode 100644 index 0000000..b975a39 --- /dev/null +++ b/objects/tplstrings/Odmdb_en.json @@ -0,0 +1,21 @@ +{ + "alreadyexist": "An {{objectname}} object with the {{key}} key already exists with {{val}}", + "doesnotexist": "The {{objectname}} object does not exist with {{key}}:{{val}}", + "getschema": "Schema {{{conf.name}}}", + "schemanotfound": "Schema not found in {{{schemaPath}}}", + "pathnamedoesnotexist": "The directory does not exist {{{indexpath}}}", + "objectfiledoesnotexist": "The file does not exist {{{objectpath}}}", + "cudsuccessfull": "Update successful", + "successfulcreatewithoutemail":"Create without sending an email", + "successfulcreatewitemail":"Create you will receive an email", + "missingprimarykey": "Missing a primary key apxid to store and identify objects", + "missinglocalref":"You use a local definition with {{missingref}} but no $defs in your schema with this definition", + "unconsistencyapxidx": "The index {{name}} must contain at least {{apxid}} in objkey because keyval is not unique", + "profilnotallow": "As {{person}} your profiles are not allow, this action is not authorized", + "profilallow": "You are allowed for this action", + "successreindex": "Object reindexed from items, your indexes are up to date", + "indexexist":"The index exists", + "typenotavailable":"The type: {{type}} for the propertie: {{propertie}} of the object:{{objectPathname}} is not taken into account for indexing", + "objectslist":"List of objects from apxtri and {{tribe}}", + "errordelete":"Sorry, unable to delete this account" + } \ No newline at end of file diff --git a/objects/tplstrings/Odmdb_fr.json b/objects/tplstrings/Odmdb_fr.json new file mode 100644 index 0000000..9cff8ce --- /dev/null +++ b/objects/tplstrings/Odmdb_fr.json @@ -0,0 +1,20 @@ +{ + "alreadyexist": "Un object {{objectname}} avec la clé {{key}} existe déjà avec {{val}}", + "doesnotexist": "L'object {{objectname}} n'existe pas avec {{key}}:{{val}}", + "getschema": "Schema {{{conf.name}}}", + "schemanotfound": "Schema introuvable dans {{{schemaPath}}}", + "pathnamedoesnotexist": "Le repertoire n'existe pas {{{indexpath}}}", + "objectfiledoesnotexist": "Le fichier n'existe pas {{{objectpath}}}", + "cudsuccessfull": "Mise à jour effectuée avec succés", + "successfulcreatewithoutemail":"Créer sans envoi d'email", + "successfulcreatewitemail":"Créer vous allez recevoir un email", + "missingprimarykey": "Il manque une clé primaire apxid pour stocker et identifier les objects", + "unconsistencyapxidx": "L'index {{name}} doit contenir en objkey au moins {{apxid}} car keyval n'est pas unique", + "profilnotallow": "Vous n'avez pas le profil pour faire cette action.", + "profilallow": "Vous avez été authorisé à faire cette action", + "successreindex": "Objet reindexé à partir des items, vos index sont à jour", + "indexexist":"L'indexe existe", + "typenotavailable":"Le type: {{type}} pour la propertie : {{propertie}} de l'object :{{objectPathname}} n'est pas pris en compte pour l'indexation", + "objectslist":"Liste des objects d'apxtri et de {{tribe}}", + "errordelete":"Desolé impossible de supprimer ce compte" +} diff --git a/objects/tplstrings/Pagans_en.json b/objects/tplstrings/Pagans_en.json new file mode 100644 index 0000000..d7567f6 --- /dev/null +++ b/objects/tplstrings/Pagans_en.json @@ -0,0 +1,10 @@ +{ + "aliasexist":"This alias {{alias]} exist", + "aliasdoesnotexist":"This alias {{alias}} does not exist ", + "personexist":"This person {{alias}} exist for {{tribeid}}", + "successfullcreate": "This identity {{alias}} creation was successfull. {{#withemail}} An email was sent to {{email}}, if you do not receive it, please download your keys before living this page.{{/withemail}}", + "successfulluppdate": "Your alias as a Person is now update into {{tribeid}}", + "tribedoesnotexist": "Your tribe {{tribeid}} does not exist in this town", + "recoveryemailnotfound":"No identity found for {{tribe}} with this recovery search ", + "recoveryemailsent": "We send you {{numberemailsent}} email with your keys" +} diff --git a/objects/tplstrings/Pagans_fr.json b/objects/tplstrings/Pagans_fr.json new file mode 100644 index 0000000..5b5d6c7 --- /dev/null +++ b/objects/tplstrings/Pagans_fr.json @@ -0,0 +1,15 @@ +{ "invalidalias":"Alias doit être composé exclusivement de minuscules ou de chiffres et contenir au moins 4 caracteres", + "aliasexist": "Cet alias {{alias}} existe", + "emailerr": "Verifier votre email {{email}}", + "aliasorprivkeytooshort": "Vérifiez votre alias et votre clé privée", + "aliasdoesnotexist": "Cet alias {{alias}} n'existe pas", + "personexist": "Cette personne {{alias}} existe pour {{tribeid}}", + "persondoesnotexist": "Cette personne {{alias}} n'existe pas pour {{tribeid}}", + "successfulcreate":"Votre identité {{alias}} a été créee à partir de vos clés.{{#emailsent}} Un email a été envoyé à {{email}}, si vous ne le recevez pas, veuillez télécharger vos clés avant de quitter cette page.{{/emailsent}} {{#emailerror}}Un problème lors de l'envoi sur {{email}} s'est produit. Veuillez télécharger vos clés avant de quitter cette page.{{/emailerror}}
{{#createperson}}Félicitation Votre compte est ouvert chez {{tribe}}. {{/createperson}} {{#errorperson}}Attention votre identité n'a pas été associée à {{tribe}}. Vous pourrez rejoindre {{tribe}} dans l'écran suivant. {{/errorperson}}", + "successfulluppdate": "Votre alias en tant que Personne est maintenant mis à jour dans {{tribeid}}", + "errcreate": "Desolé, un probléme inconnu empeche la creation", + "logout": "Votre token a été supprimé du server", + "recoveryemailnotfound":"Auncune identité n'a été enregistrée sur {{tribe}} avec ce critere ", + "recoveryemailsent":"Nous avons envoyés {{numbermailsent}} message(s) avec vos clés par alias.", + "templatedoesnotexist":"Le template {{tplfile}} n'existe pas" +} diff --git a/objects/tplstrings/Tribes_fr.json b/objects/tplstrings/Tribes_fr.json new file mode 100644 index 0000000..9b8f806 --- /dev/null +++ b/objects/tplstrings/Tribes_fr.json @@ -0,0 +1,3 @@ +{ + "actionmissing":"L'action {{data.action}} n'existe pas pour la tribut {{data.tribe}}." +} \ No newline at end of file diff --git a/objects/tplstrings/middlewares_en.json b/objects/tplstrings/middlewares_en.json new file mode 100644 index 0000000..2e640f9 --- /dev/null +++ b/objects/tplstrings/middlewares_en.json @@ -0,0 +1,10 @@ +{ + "errrequest": "Backend seems not available", + "unconsistentpgp": "Your keys are not consistent {{err}}", + "missingheader": "Some header miss to have a valid request: {{#missinghearder}} {{.}} {{/missingheader}}", + "tribeiddoesnotexist": "Header xtribe: {{xtribe}} does not exist in this town you cannot access", + "unconsistentcleartextmessage":"Your xhash: {{xhash}} is not consistent as a clear msg {{{clearmsg}}}", + "authenticated": "Your alias: {{{xalias}}} is authenticated", + "notauthenticated": "Your alias: {{xalias}} is not authenticated {{^xaliasexists}} and this alias does not exist !{{/xaliasexists}}", + "signaturefailled": "Your signature is not valid for your alias." +} diff --git a/objects/tplstrings/middlewares_fr.json b/objects/tplstrings/middlewares_fr.json new file mode 100644 index 0000000..a81ba12 --- /dev/null +++ b/objects/tplstrings/middlewares_fr.json @@ -0,0 +1,10 @@ +{ + "errrequest": "Le serveur ne semble pas répondre", + "unconsistentpgp": "Vos clés ne sont pas conforme {{err}}", + "missingheader": "Certains en-têtes manquent pour avoir une requête valide : {{#missinghearder}} {{.}} {{/missingheader}}", + "tribeiddoesnotexist": "L'en-tête xtribe : {{xtribe}} n'existe pas dans cette ville, vous ne pouvez pas y accéder", + "unconsistentcleartextmessage":"Votre xhash: {{xhash}} n'est pas lisible par openpgp.js avec le clearmsg: {{{clearmsg}}}", + "authenticated": "Votre alias {{{xalias}}} est authentifié", + "notauthenticated": "Votre alias : {{xalias}} n'est pas authentifié {{^xaliasexists}} et cet alias n'existe pas !{{/xaliasexists}}", + "signaturefailled": "Desolé votre signature n'est pas valide pour cet alias." +} diff --git a/schema/persons.json b/schema/persons.json new file mode 100644 index 0000000..e2ccfa2 --- /dev/null +++ b/schema/persons.json @@ -0,0 +1,185 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "/schema/persons", + "title": "Person minimum definition to link a person to a pagan identity", + "description": "A person is a human with a apxtri identity (alias = Public Private Key) that accept to be part of a tribe (a person is store inside a tribe). Information stored for a person are only visible from the town's Mayor and the tribe's Druid. You need at least trust the druid that trust the mayor (for sensitive data Mayor and Druid can be the same apx Identity.) Only a pagan that have the privateKey can read cipher data. The purpose of this schema is to link a person to a tribe and manage basic activities, profil for specific purpose will be a tribe object that can be add additionalProperties of this is set at true.", + "type": "object", + "properties": { + "alias": { + "title": "alias", + "description": "A unique string identifying a unique public key", + "type": "string", + "options": { "$ref": "adminapi/objects/pagans/idx/lst_alias" } + }, + "owner": { + "title": "Owner of this person", + "description": "For accessright purpose this is always equal as alias", + "type": "string", + "options": { "$ref": "adminapi/objects/pagans/idx/lst_alias" } + }, + "dt_create": { + "title": "Creation date", + "type": "string", + "format": "date-time" + }, + "dt_update": { + "type": "string", + "format": "date-time" + }, + "dt_lastlogin": { + "title": "Last time login", + "description": "Last time this person authentify as alias access to this tribe", + "type": "string", + "format": "date-time" + }, + "dt_delete": { + "title": "Date of leaving tribe", + "description": "Date from when this alias is ban of tribe by druid or want to leave. A pocess of data cleaning has to be run depending of Tribe's rules.", + "type": "string", + "format": "date" + }, + "will": { + "title": "Will script after leaving tribe", + "description": "This will script will be apply on your data 30 days after your delete", + "type": "string" + }, + "dt_birth": { + "title": "Your birthdate", + "description": "Date of birth you want to communicate", + "type": "string", + "format": "date" + }, + "emailcom": { + "title": "email use to communicate with you", + "description": "email used by tribe to communicate with you, depending of your profil you can also define other mail to interact with other person", + "type": "string", + "format": "email" + }, + "hobbies": { + "title": "My hobbies", + "type": "array", + "comment": "from a tree word combinaison /lg/hobbies_xx" + }, + "biography": { + "title": "Your bio or few words to define yourself", + "description": "Use this to share your values, this will be public to all of tribe's members and link to your person", + "type": "string", + "pattern": "^.{O,1000}$" + }, + "imgbase64_imgavatar": { + "title": "Temporary img to update or create", + "description": "image will be store in /objects/persons/{alias}_imgavatar.webp", + "sizeHW": [80, 80], + "type": "string", + "format": "imgbase64" + }, + "imgavatar": { + "title": "A picture of your person or personnality", + "description": "This picture will be public to all tribe's member", + "type": "string", + "format": "uri" + }, + "profils": { + "title": "Array of profil", + "description": "List of profil to get accessright on object", + "type": "array", + "items": { + "type": "string", + "options": { "$ref": "smatchit/objects/options/profil" } + } + } + }, + "required": ["alias", "profils"], + "additionalProperties": true, + "apxref": [], + "apxid": "alias", + "apxuniquekey": ["alias"], + "apxidx": [ + { + "name": "lst_alias", + "type": "array", + "keyval": "alias" + }, + { + "name": "lst_profils", + "type": "array", + "keyval": "profils" + }, + { + "name": "alias", + "type": "view", + "keyval": "alias", + "objkey": [ + "alias", + "dt_create", + "dt_update", + "last_login", + "dt_birth", + "emailcom", + "hobbies", + "biography", + "imgavatar", + "profils" + ], + "filter": "" + }, + { + "name": "profils_alias", + "type": "distribution", + "keyval": "profils", + "filter": "" + }, + { + "name": "emailcom_alias", + "type": "distribution", + "keyval": "emailcom", + "filter": "" + }, + { + "name": "hobbies_alias", + "type": "distribution", + "keyval": "hobbies", + "filter": "" + } + ], + "commentaccessrights": "only a pagans can create a persons by joining the tribe smatchit. An adminrecruiters can Read person and update only profil by adding value recruiters or interviewers, that will create for this alias a recruiters itm or interviewers itm, use /api/smatchit/profilmanagers/join/:profils/:recruiteralias", + "apxaccessrights": { + "owner": { + "D": [], + "R": [ + "alias", + "owner", + "profils", + "dt_create", + "dt_update", + "dt_lastlogin", + "dt_birth", + "emailcom", + "hobbies", + "biography", + "imgavatar", + "profils" + ], + "U": [ + "dt_birth", + "emailcom", + "hobbies", + "biography", + "imgavatar", + "profils" + ] + }, + "pagans": { + "C": [] + }, + "mayors": { + "D": [], + "R": ["alias"] + }, + "druids": { + "D": [], + "R": ["alias"] + } + } + } + \ No newline at end of file diff --git a/schema/wwws.json b/schema/wwws.json index 1bf9552..3dd7913 100644 --- a/schema/wwws.json +++ b/schema/wwws.json @@ -5,29 +5,11 @@ "description": "A space web available for a domaine, with accessright", "type": "object", "properties": { - "tribeId": { - "title": "Tribe name", - "description": "A unique string as tribe", - "options": { - "$ref": "adminapi/objects/tribess/idx/lst_tribeId.json" - } - }, "website": { "description": "Folder name into a tribeId/www/", "title": "web space", "type": "string" }, - "status": { - "title": "Status", - "description": "Status of website ", - "default": "active", - "type": "string", - "enum": [ - "chain", - "tochain", - "unchain" - ] - }, "dns": { "title": "domaine name list to access", "description": "Add in nginx nameserver local website.tribeId LAN domaine.tld", @@ -76,7 +58,8 @@ "comment": "the tribeid" }, "xuuid": { - "type": "string""default": 0 + "type": "string", + "default": 0 } }, "required": [ @@ -108,6 +91,9 @@ "status" ], "apxid": "website", + "apxuniquekey": [ + "website" + ], "apxidx": [ { "name": "lst_website",