conversion de l'encodage du fichier db.json.schema et correction des jours de la balise horaire
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -1,406 +1,406 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://json-schema.org/draft/2019-09/schema",
|
"$schema": "https://json-schema.org/draft/2019-09/schema",
|
||||||
"$id": "https://git.nas.benserv.fr/vincent/Kine-backend/src/branch/master/db.json",
|
"$id": "https://git.nas.benserv.fr/vincent/Kine-backend/src/branch/master/db.json",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"title": "KineIntercom database",
|
"title": "KineIntercom database",
|
||||||
"description": "This document records the parameters of KineIntercom process",
|
"description": "This document records the parameters of KineIntercom process",
|
||||||
"required": [
|
"required": [
|
||||||
"CODE_PIN",
|
"CODE_PIN",
|
||||||
"DTMF_CODE",
|
"DTMF_CODE",
|
||||||
"DTMF_DURATION",
|
"DTMF_DURATION",
|
||||||
"HORAIRES",
|
"HORAIRES",
|
||||||
"INFOS",
|
"INFOS",
|
||||||
"NUM_AUTORISE",
|
"NUM_AUTORISE",
|
||||||
"OPERATION",
|
"OPERATION",
|
||||||
"PIN_ACTIF",
|
"PIN_ACTIF",
|
||||||
"TONE_DURATION",
|
"TONE_DURATION",
|
||||||
"utilisateur"
|
"utilisateur"
|
||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"CODE_PIN": {
|
"CODE_PIN": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"title": "Le code pin de la carte SIM",
|
"title": "Le code pin de la carte SIM",
|
||||||
"examples": [
|
"examples": [
|
||||||
"1234"
|
"1234"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"DTMF_CODE": {
|
"DTMF_CODE": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"title": "Le code DTMF a envoyer par le module GSM",
|
"title": "Le code DTMF a envoyer par le module GSM",
|
||||||
"examples": [
|
"examples": [
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"DTMF_DURATION": {
|
"DTMF_DURATION": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"title": "La duree du code DTMF a envoyer par le module GSM",
|
"title": "La duree du code DTMF a envoyer par le module GSM",
|
||||||
"examples": [
|
"examples": [
|
||||||
10
|
10
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"HORAIRES": {
|
"HORAIRES": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"title": "Les horaires d'ouverture et de fermeture du module GSM",
|
"title": "Les horaires d'ouverture et de fermeture du module GSM",
|
||||||
"required": [
|
"required": [
|
||||||
"Friday",
|
"Monday",
|
||||||
"Monday",
|
"Tuesday",
|
||||||
"Saturday",
|
"Wednesday",
|
||||||
"Sunday",
|
"Thursday",
|
||||||
"Thursday",
|
"Friday",
|
||||||
"Tuesday",
|
"Saturday",
|
||||||
"Wednesday"
|
"Sunday"
|
||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"Friday": {
|
"Monday": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"title": "Les horaires pour le jour de la semaine: Vendredi",
|
"title": "Les horaires pour le jour de la semaine: Vendredi",
|
||||||
"items": {
|
"items": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"title": "A Schema",
|
"title": "A Schema",
|
||||||
"required": [
|
"required": [
|
||||||
"name",
|
"name",
|
||||||
"state"
|
"state"
|
||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"name": {
|
"name": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"title": "Les tranches horaires par pas de 1/2 heure"
|
"title": "Les tranches horaires par pas de 1/2 heure"
|
||||||
},
|
},
|
||||||
"state": {
|
"state": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"title": "L'etat d'ouverture (1) ou fermeture(0) du module GSM",
|
"title": "L'etat d'ouverture (1) ou fermeture(0) du module GSM",
|
||||||
"examples": [
|
"examples": [
|
||||||
0,
|
0,
|
||||||
1
|
1
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Monday": {
|
"Tuesday": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"title": "Les horaires pour le jour de la semaine: Lundi",
|
"title": "Les horaires pour le jour de la semaine: Lundi",
|
||||||
"items": {
|
"items": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"title": "A Schema",
|
"title": "A Schema",
|
||||||
"required": [
|
"required": [
|
||||||
"name",
|
"name",
|
||||||
"state"
|
"state"
|
||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"name": {
|
"name": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"title": "Les tranches horaires par pas de 1/2 heure"
|
"title": "Les tranches horaires par pas de 1/2 heure"
|
||||||
},
|
},
|
||||||
"state": {
|
"state": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"title": "L'etat d'ouverture (1) ou fermeture(0) du module GSM",
|
"title": "L'etat d'ouverture (1) ou fermeture(0) du module GSM",
|
||||||
"examples": [
|
"examples": [
|
||||||
0,
|
0,
|
||||||
1
|
1
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Saturday": {
|
"Wednesday": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"title": "Les horaires pour le jour de la semaine: Samedi",
|
"title": "Les horaires pour le jour de la semaine: Samedi",
|
||||||
"items": {
|
"items": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"title": "A Schema",
|
"title": "A Schema",
|
||||||
"required": [
|
"required": [
|
||||||
"name",
|
"name",
|
||||||
"state"
|
"state"
|
||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"name": {
|
"name": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"title": "Les tranches horaires par pas de 1/2 heure"
|
"title": "Les tranches horaires par pas de 1/2 heure"
|
||||||
},
|
},
|
||||||
"state": {
|
"state": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"title": "L'etat d'ouverture (1) ou fermeture(0) du module GSM",
|
"title": "L'etat d'ouverture (1) ou fermeture(0) du module GSM",
|
||||||
"examples": [
|
"examples": [
|
||||||
0,
|
0,
|
||||||
1
|
1
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Sunday": {
|
"Thursday": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"title": "Les horaires pour le jour de la semaine: Dimanche",
|
"title": "Les horaires pour le jour de la semaine: Dimanche",
|
||||||
"items": {
|
"items": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"title": "A Schema",
|
"title": "A Schema",
|
||||||
"required": [
|
"required": [
|
||||||
"name",
|
"name",
|
||||||
"state"
|
"state"
|
||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"name": {
|
"name": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"title": "Les tranches horaires par pas de 1/2 heure"
|
"title": "Les tranches horaires par pas de 1/2 heure"
|
||||||
},
|
},
|
||||||
"state": {
|
"state": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"title": "L'etat d'ouverture (1) ou fermeture(0) du module GSM",
|
"title": "L'etat d'ouverture (1) ou fermeture(0) du module GSM",
|
||||||
"examples": [
|
"examples": [
|
||||||
0,
|
0,
|
||||||
1
|
1
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Thursday": {
|
"Friday": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"title": "Les horaires pour le jour de la semaine: Jeudi",
|
"title": "Les horaires pour le jour de la semaine: Jeudi",
|
||||||
"items": {
|
"items": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"title": "A Schema",
|
"title": "A Schema",
|
||||||
"required": [
|
"required": [
|
||||||
"name",
|
"name",
|
||||||
"state"
|
"state"
|
||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"name": {
|
"name": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"title": "Les tranches horaires par pas de 1/2 heure"
|
"title": "Les tranches horaires par pas de 1/2 heure"
|
||||||
},
|
},
|
||||||
"state": {
|
"state": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"title": "L'etat d'ouverture (1) ou fermeture(0) du module GSM",
|
"title": "L'etat d'ouverture (1) ou fermeture(0) du module GSM",
|
||||||
"examples": [
|
"examples": [
|
||||||
0,
|
0,
|
||||||
1
|
1
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Tuesday": {
|
"Saturday": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"title": "Les horaires pour le jour de la semaine: Mardi",
|
"title": "Les horaires pour le jour de la semaine: Mardi",
|
||||||
"items": {
|
"items": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"title": "A Schema",
|
"title": "A Schema",
|
||||||
"required": [
|
"required": [
|
||||||
"name",
|
"name",
|
||||||
"state"
|
"state"
|
||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"name": {
|
"name": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"title": "Les tranches horaires par pas de 1/2 heure"
|
"title": "Les tranches horaires par pas de 1/2 heure"
|
||||||
},
|
},
|
||||||
"state": {
|
"state": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"title": "L'etat d'ouverture (1) ou fermeture(0) du module GSM",
|
"title": "L'etat d'ouverture (1) ou fermeture(0) du module GSM",
|
||||||
"examples": [
|
"examples": [
|
||||||
0,
|
0,
|
||||||
1
|
1
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Wednesday": {
|
"Sunday": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"title": "Les horaires pour le jour de la semaine: Mercredi",
|
"title": "Les horaires pour le jour de la semaine: Mercredi",
|
||||||
"items": {
|
"items": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"title": "A Schema",
|
"title": "A Schema",
|
||||||
"required": [
|
"required": [
|
||||||
"name",
|
"name",
|
||||||
"state"
|
"state"
|
||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"name": {
|
"name": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"title": "Les tranches horaires par pas de 1/2 heure"
|
"title": "Les tranches horaires par pas de 1/2 heure"
|
||||||
},
|
},
|
||||||
"state": {
|
"state": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"title": "L'etat d'ouverture (1) ou fermeture(0) du module GSM",
|
"title": "L'etat d'ouverture (1) ou fermeture(0) du module GSM",
|
||||||
"examples": [
|
"examples": [
|
||||||
0,
|
0,
|
||||||
1
|
1
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"INFOS": {
|
"INFOS": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"title": "Les infos du module GSM",
|
"title": "Les infos du module GSM",
|
||||||
"required": [
|
"required": [
|
||||||
"control",
|
"control",
|
||||||
"manufacturer"
|
"manufacturer"
|
||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"control": {
|
"control": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"title": "The control Schema",
|
"title": "The control Schema",
|
||||||
"required": [
|
"required": [
|
||||||
"call_ready",
|
"call_ready",
|
||||||
"operator",
|
"operator",
|
||||||
"service_provider",
|
"service_provider",
|
||||||
"signal_dbm",
|
"signal_dbm",
|
||||||
"signal_qos",
|
"signal_qos",
|
||||||
"sim_inserted"
|
"sim_inserted"
|
||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"call_ready": {
|
"call_ready": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"default": false,
|
"default": false,
|
||||||
"title": "The call_ready Schema",
|
"title": "The call_ready Schema",
|
||||||
"examples": [
|
"examples": [
|
||||||
true,
|
true,
|
||||||
false
|
false
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"operator": {
|
"operator": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"default": "",
|
"default": "",
|
||||||
"title": "The operator Schema",
|
"title": "The operator Schema",
|
||||||
"examples": [
|
"examples": [
|
||||||
"SFR"
|
"SFR"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"service_provider": {
|
"service_provider": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"default": "",
|
"default": "",
|
||||||
"title": "The service_provider Schema",
|
"title": "The service_provider Schema",
|
||||||
"examples": [
|
"examples": [
|
||||||
"La poste mobile"
|
"La poste mobile"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"signal_dbm": {
|
"signal_dbm": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"default": "",
|
"default": "",
|
||||||
"title": "The signal_dbm Schema",
|
"title": "The signal_dbm Schema",
|
||||||
"examples": [
|
"examples": [
|
||||||
"-75"
|
"-75"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"signal_qos": {
|
"signal_qos": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"default": "",
|
"default": "",
|
||||||
"title": "The signal_qos Schema",
|
"title": "The signal_qos Schema",
|
||||||
"examples": [
|
"examples": [
|
||||||
"excellent"
|
"excellent"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"sim_inserted": {
|
"sim_inserted": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"default": false,
|
"default": false,
|
||||||
"title": "The sim_inserted Schema",
|
"title": "The sim_inserted Schema",
|
||||||
"examples": [
|
"examples": [
|
||||||
true,
|
true,
|
||||||
false
|
false
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"manufacturer": {
|
"manufacturer": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"title": "The manufacturer Schema",
|
"title": "The manufacturer Schema",
|
||||||
"required": [
|
"required": [
|
||||||
"hardware_rev",
|
"hardware_rev",
|
||||||
"identification",
|
"identification",
|
||||||
"model",
|
"model",
|
||||||
"serial_number"
|
"serial_number"
|
||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"hardware_rev": {
|
"hardware_rev": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"title": "The hardware_rev Schema",
|
"title": "The hardware_rev Schema",
|
||||||
"examples": [
|
"examples": [
|
||||||
"1418B02SIM868M32_BT_EAT"
|
"1418B02SIM868M32_BT_EAT"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"identification": {
|
"identification": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"title": "The identification Schema",
|
"title": "The identification Schema",
|
||||||
"examples": [
|
"examples": [
|
||||||
"SIMCOM_Ltd"
|
"SIMCOM_Ltd"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"model": {
|
"model": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"title": "The model Schema",
|
"title": "The model Schema",
|
||||||
"examples": [
|
"examples": [
|
||||||
"SIMCOM_SIM868"
|
"SIMCOM_SIM868"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"serial_number": {
|
"serial_number": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"title": "The serial_number Schema",
|
"title": "The serial_number Schema",
|
||||||
"examples": [
|
"examples": [
|
||||||
"864866057705260"
|
"864866057705260"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"NUM_AUTORISE": {
|
"NUM_AUTORISE": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"title": "The NUM_AUTORISE Schema",
|
"title": "The NUM_AUTORISE Schema",
|
||||||
"examples": [
|
"examples": [
|
||||||
"670100036"
|
"670100036"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"OPERATION": {
|
"OPERATION": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"title": "The OPERATION Schema",
|
"title": "The OPERATION Schema",
|
||||||
"examples": [
|
"examples": [
|
||||||
"Horaires"
|
"Horaires"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"PIN_ACTIF": {
|
"PIN_ACTIF": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"title": "The PIN_ACTIF Schema",
|
"title": "The PIN_ACTIF Schema",
|
||||||
"examples": [
|
"examples": [
|
||||||
true,
|
true,
|
||||||
false
|
false
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"TONE_DURATION": {
|
"TONE_DURATION": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"title": "The TONE_DURATION Schema",
|
"title": "The TONE_DURATION Schema",
|
||||||
"examples": [
|
"examples": [
|
||||||
2
|
2
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"utilisateur": {
|
"utilisateur": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"title": "L'utilisateur du configurateur",
|
"title": "L'utilisateur du configurateur",
|
||||||
"required": [
|
"required": [
|
||||||
"id",
|
"id",
|
||||||
"password"
|
"password"
|
||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"id": {
|
"id": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"title": "The id Schema",
|
"title": "The id Schema",
|
||||||
"examples": [
|
"examples": [
|
||||||
"admin"
|
"admin"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"password": {
|
"password": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"title": "The password Schema",
|
"title": "The password Schema",
|
||||||
"examples": [
|
"examples": [
|
||||||
"9ac564e9a29c952a3ddeffd8635adb0c252dbd1d58f3efde265e028f7f808aa9"
|
"9ac564e9a29c952a3ddeffd8635adb0c252dbd1d58f3efde265e028f7f808aa9"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user