From 8330b95de1c12f78acffaa729068876ebf840599 Mon Sep 17 00:00:00 2001 From: Rafael Taranto Date: Wed, 22 May 2019 16:28:53 -0300 Subject: [PATCH] Add new operator info fields --- lamassu-schema.json | 29 +++++++++++++++++++---------- lib/routes.js | 4 +++- 2 files changed, 22 insertions(+), 11 deletions(-) diff --git a/lamassu-schema.json b/lamassu-schema.json index e0c30845..b8531b59 100644 --- a/lamassu-schema.json +++ b/lamassu-schema.json @@ -143,7 +143,9 @@ "operatorInfoActive", "operatorInfoEmail", "operatorInfoName", - "operatorInfoPhone" + "operatorInfoPhone", + "operatorInfoWebsite", + "operatorInfoCompanyNumber" ] } ], @@ -949,9 +951,6 @@ "fieldType": "string", "fieldClass": null, "default": "", - "enabledIfAny": [ - "operatorInfoActive" - ], "fieldValidation": [] }, { @@ -960,9 +959,6 @@ "displayTopCount": 0, "fieldType": "string", "fieldClass": "email", - "enabledIfAny": [ - "operatorInfoActive" - ], "fieldValidation": [] }, { @@ -971,9 +967,22 @@ "displayTopCount": 0, "fieldType": "string", "fieldClass": null, - "enabledIfAny": [ - "operatorInfoActive" - ], + "fieldValidation": [] + }, + { + "code": "operatorInfoWebsite", + "displayBottom": "Website", + "displayTopCount": 0, + "fieldType": "string", + "fieldClass": null, + "fieldValidation": [] + }, + { + "code": "operatorInfoCompanyNumber", + "displayBottom": "Company Number", + "displayTopCount": 0, + "fieldType": "string", + "fieldClass": null, "fieldValidation": [] } ] diff --git a/lib/routes.js b/lib/routes.js index be9836ee..2460e65b 100644 --- a/lib/routes.js +++ b/lib/routes.js @@ -95,7 +95,9 @@ function poll (req, res, next) { active: config.operatorInfoActive, name: config.operatorInfoName, phone: config.operatorInfoPhone, - email: config.operatorInfoEmail + email: config.operatorInfoEmail, + website: config.operatorInfoWebsite, + companyNumber: config.operatorInfoCompanyNumber } }