SMMP/config/modules.json

695 lines
21 KiB
JSON
Raw Normal View History

{
"documentationDefault": {
2017-11-10 12:38:15 +00:00
"apiBlueprint": {
2016-07-02 16:35:34 +00:00
"description": "Retourne une documentation de l'API au format API Blueprint.",
"permissions": [["admin"]],
2016-07-02 16:35:34 +00:00
"options": { "download": true },
"parameters": {}
}
},
"motheure": {
2017-11-10 12:38:15 +00:00
"getCount": {
"description": "Retourne le compteur horaire du moteur d'une machine donnée",
"permissions": [["admin"]],
"parameters": {
"id_machine": { "description": "UID de la machine.", "type": "id" }
},
"output": {
"count": { "description": "Compte horaire (en secondes)", "type": "int" }
}
},
2017-11-10 12:38:15 +00:00
"increment": {
"description": "Incrémente le comptheure horaire d'une machine.",
"permissions": [["sats"]],
"parameters": {
"count": { "description": "Données du module", "type": "id" }
},
"output": {}
}
},
"authenticationDefault": {
2017-11-10 12:38:15 +00:00
"warehouse": {
2016-07-05 13:17:21 +00:00
"description": "Connexion de premier niveau : entrepot.",
"permissions": [],
"parameters": {
"name": { "description": "Nom de l'entrepot.", "type": "varchar(3,30,alphanumeric)" },
"password": { "description": "Mot de passe de l'entrepot.", "type": "text" }
},
"output": {
"status": { "description": "Status de la connexion.", "type": "boolean" }
}
},
2017-11-10 12:38:15 +00:00
"admin": {
2016-07-05 13:17:21 +00:00
"description": "Connexion de second niveau : administrateur.",
2017-02-21 15:07:44 +00:00
"permissions": [["warehouse"]],
"parameters": {
"username": { "description": "Identifiant de l'administrateur.", "type": "varchar(1,30,alphanumeric)" },
"password": { "description": "Mot de passe de l'administrateur'.", "type": "text" }
},
"output": {
"status": { "description": "Status de la connexion.", "type": "boolean" }
}
},
2017-11-10 12:38:15 +00:00
"update_warehouse": {
"description": "Changement de code d'accés de l'entrepôt",
"permissions": [["admin"]],
"parameters": {
"old": { "description": "Mot de passe actuel", "type": "text" },
"new": { "description": "Nouveau mot de passe", "type": "text" },
"confirm": { "description": "Confirmation du nouveau mot de passe", "type": "text" }
},
"output": {}
}
},
"adminDefault": {
2017-11-10 12:38:15 +00:00
"getAll": {
"description": "Retourne la liste des administrateurs de l'entrepôt.",
"permissions": [["admin"]],
"parameters": {},
"output": {
"admin": { "description": "Liste des administrateur.", "type": "array" }
}
},
2017-11-10 12:38:15 +00:00
"update": {
"description": "Changement de mot de passe administrateur",
"permissions": [["admin"]],
"parameters": {
"old": { "description": "Mot de passe actuel", "type": "text" },
"new": { "description": "Nouveau mot de passe", "type": "text" },
"confirm": { "description": "Confirmation du nouveau mot de passe", "type": "text" }
},
"output": {}
},
2017-11-10 12:38:15 +00:00
"delete": {
"description": "Suppression d'un accès administrateur",
"permissions": [["admin"]],
"parameters": {
"id_admin": { "description": "Identifiant de l'administrateur", "type": "id" }
},
"output": {}
},
2017-11-10 12:38:15 +00:00
"create": {
"description": "Création d'un administrateur",
"permissions": [["admin"]],
"parameters": {
"username": { "description": "Identifiant", "type": "varchar(1,30,alphanumeric)" },
"mail": { "description": "Adresse mail", "type": "mail" }
},
"output": {
"password": { "description": "Mot de passe généré", "type": "text" }
}
}
},
2016-07-02 16:35:34 +00:00
"userDefault": {
2017-11-10 12:38:15 +00:00
"create": {
2016-07-02 16:35:34 +00:00
"description": "Création d'un nouvel utilisateur.",
"permissions": [["admin"]],
"parameters": {
2016-07-02 16:35:34 +00:00
"code": { "description": "Code RFID de l'utilisateur.", "type": "rfid" },
"username": { "description": "Identifiant de l'utilisateur.", "type": "varchar(1,30,alphanumeric)" },
"firstname": { "description": "Prénom de l'utilisateur.", "type": "varchar(3,30,letters)" },
"lastname": { "description": "Nom de l'utilisateur.", "type": "varchar(3,30,letters)" },
"mail": { "description": "Adresse mail de l'utilisateur.", "type": "mail" }
},
"output": {
"id_user": { "description": "UID de l'utilisateur créé.", "type": "id" }
}
},
2017-11-10 12:38:15 +00:00
"link": {
2016-07-02 16:35:34 +00:00
"description": "Ajout d'un utilisateur à un groupe.",
"permissions": [["admin"]],
"parameters": {
2016-07-02 16:35:34 +00:00
"id_cluster": { "description": "UID du groupe auquel rattacher.", "type": "id" },
"id_user": { "description": "UID de l'utilisateur à rattacher.", "type": "id" }
},
2016-07-02 16:35:34 +00:00
"output": {}
},
2016-07-02 16:35:34 +00:00
2017-11-10 12:38:15 +00:00
"unlink": {
2016-07-02 16:35:34 +00:00
"description": "Retrait d'un utilisateur d'un groupe",
"permissions": [["admin"]],
"parameters": {
2016-07-02 16:35:34 +00:00
"id_cluster": { "description": "UID du groupe auquel détacher.", "type": "id" },
"id_user": { "description": "UID de l'utilisateur à détacher.", "type": "id" }
},
"output": {}
},
2017-11-10 12:38:15 +00:00
"search": {
2016-07-02 16:35:34 +00:00
"description": "Recherche d'un utilisateur par mots-clés.",
"permissions": [["admin"]],
"parameters": {
2016-07-02 16:35:34 +00:00
"keywords": { "description": "Mots-clés de la recherche.", "type": "text" }
},
"output": {
2016-07-02 16:35:34 +00:00
"users": { "description": "Liste des utilisateurs correspondants aux mots-clés.", "type": "array<mixed>" }
}
},
2017-11-10 12:38:15 +00:00
"getAll": {
2016-07-02 16:35:34 +00:00
"description": "Liste de tous les utilisateurs",
"permissions": [["admin"]],
2016-07-02 16:35:34 +00:00
"parameters": {},
"output": {
2016-07-02 16:35:34 +00:00
"users": { "description": "Liste de tous les utilisateurs.", "type": "array<array<mixed>>" }
}
},
2017-11-10 12:38:15 +00:00
"getById": {
2016-07-02 16:35:34 +00:00
"description": "Retourne un utilisateur spécifique.",
"permissions": [["admin"]],
"parameters": {
2016-07-02 16:35:34 +00:00
"id_user": { "description": "UID de l'utilisateur.", "type": "id" }
},
"output": {
2016-07-02 16:35:34 +00:00
"user": { "description": "Données de l'utilisateur.", "type": "array<mixed>" }
}
},
2017-11-10 12:38:15 +00:00
"getByCode": {
2016-07-02 16:35:34 +00:00
"description": "Retourne un utilisateur de Code RFID donné.",
"permissions": [["admin"]],
"parameters": {
2016-07-02 16:35:34 +00:00
"code": { "description": "Code RFID de l'utilisateur.", "type": "rfid" }
},
"output": {
2016-07-02 16:35:34 +00:00
"user": { "description": "Données de l'utilisateur.", "type": "array<mixed>" }
}
},
2017-11-10 12:38:15 +00:00
"getByUsername": {
2016-07-02 16:35:34 +00:00
"description": "Retourne un utilisateur d'identifiant donné.",
"permissions": [["admin"]],
"parameters": {
2016-07-02 16:35:34 +00:00
"username": { "description": "Identifiant de l'utilisateur.", "type": "varchar(1,30,alphanumeric)" }
},
"output": {
2016-07-02 16:35:34 +00:00
"user": { "description": "Données de l'utilisateur.", "type": "array<mixed>" }
}
},
2017-11-10 12:38:15 +00:00
"getClusters": {
2016-07-02 16:35:34 +00:00
"description": "Retourne les groupes d'un utilisateur.",
"permissions": [["admin"]],
"parameters": {
2016-07-02 16:35:34 +00:00
"id_user": { "description": "UID de l'utilisateur.", "type": "id" }
},
"output": {
2016-07-02 16:35:34 +00:00
"clusters": { "description": "Liste des groupes de l'utilisateur.", "type": "array<array<mixed>>" }
}
},
2017-11-10 12:38:15 +00:00
"edit": {
2016-07-02 16:35:34 +00:00
"description": "Modifie les attributs d'un utilisateur.",
"permissions": [["admin"]],
"parameters": {
2016-07-02 16:35:34 +00:00
"id_user": { "description": "UID de l'utilisateur.", "type": "id" },
"code": { "description": "Code RFID de l'utilisateur.", "type": "rfid", "optional": true },
"username": { "description": "Identifiant de l'utilisateur.", "type": "varchar(1,30,alphanumeric)", "optional": true },
"firstname": { "description": "Prénom de l'utilisateur.", "type": "varchar(3,30,letters)", "optional": true },
"lastname": { "description": "Nom de l'utilisateur.", "type": "varchar(3,30,letters)", "optional": true },
2016-07-02 16:35:34 +00:00
"mail": { "description": "Adresse mail de l'utilisateur.", "type": "mail", "optional": true },
"password": { "description": "Mot de passe de l'utilisateur.", "type": "text", "optional": true },
"status": { "description": "Status de l'utilisateur.", "type": "status", "optional": true }
2016-07-02 16:35:34 +00:00
},
"output": {
"status": { "description": "Status de la modification.", "type": "boolean" }
}
},
2017-11-10 12:38:15 +00:00
"delete": {
2016-07-02 16:35:34 +00:00
"description": "Suppression d'un utilisateur.",
"permissions": [["admin"]],
"parameters": {
2016-07-02 16:35:34 +00:00
"id_user": { "description": "UID de l'utilisateur.", "type": "id" }
},
"output": {
2016-07-02 16:35:34 +00:00
"status": { "description": "Status de la suppression.", "type": "boolean" }
}
}
},
"machineDefault": {
2017-11-10 12:38:15 +00:00
"update": {
"description": "Mise à jour d'un SATS.",
"permissions": [["sats"]],
"parameters": {
"data": { "description": "Données (dépendent des modules).", "type": "array<mixed>" }
},
"output": {
"data": { "description": "Données (dépendent des modules).", "type": "array<mixed>" }
}
},
2017-11-10 12:38:15 +00:00
"sync": {
"description": "Synchronisation d'un SATS.",
"permissions": [["warehouse"]],
"parameters": {
"id_machine": { "description": "UID de la machine.", "type": "id" },
"token": { "description": "Initialisation du code d'accès évolutif", "type": "hash" },
"unlock": { "description": "Code d'initialisation", "type": "hash" }
},
"output": {
"data": { "description": "Données d'initialisation.", "type": "array<mixed>" }
}
},
2017-11-10 12:38:15 +00:00
"create": {
"description": "Création d'une nouvelle machine.",
"permissions": [["admin"]],
"parameters": {
"name": { "description": "Nom de la machine.", "type": "varchar(1,30,letters)" }
},
"output": {
"id_machine": { "description": "UID de la machine.", "type": "id" }
}
},
2017-11-10 12:38:15 +00:00
"link": {
"description": "Ajout d'une machine à un groupe.",
"permissions": [["admin"]],
"parameters": {
"id_machine": { "description": "UID de la machine.", "type": "id" },
"id_cluster": { "description": "UID du groupe de la machine.", "type": "id" }
},
"output": {}
},
2017-11-10 12:38:15 +00:00
"unlink": {
"description": "Retrait d'une machine d'un groupe.",
"permissions": [["admin"]],
"parameters": {
"id_machine": { "description": "UID de la machine.", "type": "id" },
"id_cluster": { "description": "UID du groupe de la machine.", "type": "id" }
},
"output": {}
},
2017-11-10 12:38:15 +00:00
"search": {
"description": "Recherche une machine par mots-clés.",
"permissions": [["admin"]],
"parameters": {
"keywords": { "description": "Mots-clés de recherche de machine", "type": "text" }
},
"output": {
"machines": { "description": "Liste des machines correspondant à la recherche.", "type": "array<array<mixed>>" }
}
},
2017-11-10 12:38:15 +00:00
"getAll": {
"description": "Retourne la liste de toutes les machines.",
"permissions": [["admin"]],
"parameters": {},
"output": {
"machines": { "description": "Liste de toutes les machines.", "type": "array<array<mixed>>" }
}
},
2017-11-10 12:38:15 +00:00
"getById": {
"description": "Retourne les données d'une machine.",
"permissions": [["admin"]],
"parameters": {
"id_machine": { "description": "UID de la machine.", "type": "id" }
},
"output": {
"machine": { "description": "Données de la machine.", "type": "array<mixed>" }
}
},
2017-11-10 12:38:15 +00:00
"getByName": {
"description": "Retourne les données d'une machine de nom donné.",
"permissions": [["admin"]],
"parameters": {
"name": { "description": "Nom de la machine.", "type": "varchar(1,30,letters)" }
},
"output": {
"machine": { "description": "Données de la machine.", "type": "array<mixed>" }
}
},
2017-11-10 12:38:15 +00:00
"getClusters": {
"description": "Retourne les groupes d'une machine.",
2017-09-25 21:35:32 +00:00
"permissions": [["admin"], ["sats"]],
"parameters": {
"id_machine": { "description": "UID de la machine.", "type": "id" }
},
"output": {
"clusters": { "description": "Liste des groupes de la machine.", "type": "array<array<mixed>>" }
}
},
2017-11-10 12:38:15 +00:00
"edit": {
"description": "Modifie les attributs d'une machine.",
"permissions": [["admin"]],
"parameters": {
"id_machine": { "description": "UID de la machine.", "type": "id" },
"name": { "description": "Nom de la machine.", "type": "varchar(1,30,letters)", "optional": true }
},
"output": {}
},
2017-11-10 12:38:15 +00:00
"delete": {
"description": "Supprime une machine.",
"permissions": [["admin"]],
"parameters": {
"id_machine": { "description": "UID de la machine.", "type": "id" }
},
"output": {
"status": { "description": "Status de la suppression.", "type": "boolean" }
}
},
2017-11-10 12:38:15 +00:00
"getState": {
"description": "Retourne l'état d'une machine.",
"permissions": [["admin"]],
"parameters": {
"id_machine": { "description": "UID de la machine", "type": "id" }
},
"output": {
"state": { "description": "Etat de la machine", "type": "text" }
}
}
},
"clusterDefault": {
2017-11-10 12:38:15 +00:00
"create": {
"description": "Création d'un nouveau groupe.",
"permissions": [["admin"]],
"parameters": {
"name": { "description": "Nom du groupe.", "type": "varchar(1,30,letters)" },
2016-07-11 15:44:18 +00:00
"class": { "description": "Type de groupe.", "type": "id" }
},
"output": {
"id_cluster": { "description": "UID du groupe créé.", "type": "id" }
}
},
2017-11-10 12:38:15 +00:00
"search": {
"description": "Recherche d'un groupe par mots-clés.",
"permissions": [["admin"]],
"parameters": {
2016-07-20 17:01:11 +00:00
"keywords": { "description": "Mots-clés de la recherche.", "type": "text" },
"class": { "description": "Type de groupe.", "type": "id", "optional": true }
},
"output": {
"clusters": { "description": "Liste des groupes correspondants aux mots-clés.", "type": "array<mixed>" }
}
},
2017-11-10 12:38:15 +00:00
"getAll": {
"description": "Liste de tous les groupes",
"permissions": [["admin"]],
"parameters": {
"class": { "description": "Type de groupe.", "type": "id" }
},
"output": {
"clusters": { "description": "Liste de tous les groupes.", "type": "array<array<mixed>>" }
}
},
2017-11-10 12:38:15 +00:00
"getById": {
"description": "Retourne un groupe spécifique.",
"permissions": [["admin"]],
"parameters": {
"id_cluster": { "description": "UID du groupe.", "type": "id" },
"class": { "description": "Type de groupe.", "type": "id" }
},
"output": {
"cluster": { "description": "Données du groupe.", "type": "array<mixed>" }
}
},
2017-11-10 12:38:15 +00:00
"getByName": {
"description": "Retourne un groupe de nom donné.",
"permissions": [["admin"]],
"parameters": {
"name": { "description": "Nom du groupe.", "type": "varchar(1,30,letters)" },
"class": { "description": "Type de groupe.", "type": "id" }
},
"output": {
"cluster": { "description": "Données du groupe.", "type": "array<mixed>" }
}
},
2017-11-10 12:38:15 +00:00
"getMembers": {
"description": "Retourne les membres d'un groupe.",
"permissions": [["admin"]],
"parameters": {
"id_cluster": { "description": "UID du groupe.", "type": "id" },
"class": { "description": "Type de groupe.", "type": "id" }
},
"output": {
"members": { "description": "Liste des membres du groupe.", "type": "array<array<mixed>>" }
}
},
2017-11-10 12:38:15 +00:00
"edit": {
"description": "Modifie le nom d'un groupe.",
"permissions": [["admin"]],
"parameters": {
"id_cluster": { "description": "UID du groupe.", "type": "id" },
"class": { "description": "Type de groupe.", "type": "id" },
"name": { "description": "Nom du groupe.", "type": "varchar(1,30,letters)" }
},
"output": {
"status": { "description": "Status de la modification.", "type": "boolean" }
}
},
2017-11-10 12:38:15 +00:00
"delete": {
"description": "Suppression d'un groupe.",
"permissions": [["admin"]],
"parameters": {
"id_cluster": { "description": "UID du groupe.", "type": "id" },
"class": { "description": "Type de groupe.", "type": "id" }
},
"output": {
"status": { "description": "Status de la suppression.", "type": "boolean" }
}
},
2017-11-10 12:38:15 +00:00
"addPermission": {
"description": "Ajout d'une permission",
"permissions": [["admin"]],
"parameters": {
"id_source": { "description": "Groupe d'utilisateur source.", "type": "id" },
"id_target": { "description": "Groupe de machine cible.", "type": "id" },
"id_action": { "description": "Action en question.", "type": "id" }
},
"output": {}
},
2017-11-10 12:38:15 +00:00
"remPermission": {
"description": "Suppression d'une permission",
"permissions": [["admin"]],
"parameters": {
"id_source": { "description": "Groupe d'utilisateur source.", "type": "id" },
"id_target": { "description": "Groupe de machine cible.", "type": "id" },
"id_action": { "description": "Action en question.", "type": "id" }
},
"output": {}
},
2017-11-10 12:38:15 +00:00
"getPermissions": {
"description": "Retourne la liste des permissions",
"permissions": [["admin"]],
"parameters": {},
"output": {
"permissions": { "description": "Liste des permissions", "type": "array" }
}
},
2017-11-10 12:38:15 +00:00
"getAuthenticatedClusters": {
"description": "Retourne les groupes d'utilisateurs ayant une action sur un groupe de machine.",
"permissions": [["admin"]],
"parameters": {
"id_target": { "description": "Groupe de machine cible.", "type": "id" },
"id_action": { "description": "Action en question.", "type": "id" }
},
"output": {
"clusters": { "description": "Liste des groupes d'utilisateurs.", "type": "array" }
}
},
2017-11-10 12:38:15 +00:00
"getModules": {
"description": "Retourne les modules d'un groupe de machines",
2017-09-25 21:35:32 +00:00
"permissions": [["admin"], ["sats"]],
"parameters": {
"id_machine_cluster": { "description": "UID du groupe de machines", "type": "id" }
},
"output": {
"modules": { "description": "Modules du groupe", "type": "array<mixed>" }
}
},
2017-11-10 12:38:15 +00:00
"getEtrees": {
"description": "Retourne les e-trees d'un groupe de machines",
2017-09-25 21:35:32 +00:00
"permissions": [["admin"], ["sats"]],
"parameters": {
"id_machine_cluster": { "description": "UID du groupe de machines", "type": "id" }
},
"output": {
"etrees": { "description": "E-trees du groupe", "type": "array<mixed>" }
}
}
},
"historyDefault": {
2017-11-10 12:38:15 +00:00
"create": {
"description": "Retourne l'historique complet",
"permissions": [["admin"], ["sats"]],
"parameters": {
"id_machine": { "description": "Machine UID", "type": "id" },
"id_user": { "description": "User UID", "type": "id" },
"id_action": { "description": "Action UID", "type": "id" },
"timestamp": { "description": "timestamp", "type": "id" }
},
"output": {}
},
2017-11-10 12:38:15 +00:00
"getAll": {
"description": "Retourne l'historique complet",
"permissions": [["admin"]],
"parameters": {},
"output": {
"history": { "description": "Données de l'historique", "type": "array" }
}
},
2017-11-10 12:38:15 +00:00
"search": {
"description": "Recherche une entrée historique par mots-clés.",
"permissions": [["admin"]],
"parameters": {
"keywords": { "description": "Mots-clés de recherche d'entrée historique", "type": "text" }
},
"output": {
"history": { "description": "Liste des logs correspondant à la recherche.", "type": "array<array<mixed>>" }
}
},
2017-11-10 12:38:15 +00:00
"archive": {
"description": "Archive de l'historique complet.",
"permissions": [["admin"]],
"options": { "download": true },
"parameters": {},
"output": {}
},
"get_timeline": {
"description": "Retourne la timeline d'une machine pour associée à une entrée historique.",
"permissions": [["admin"]],
"parameters": {
"id_entry": { "description": "UID de l'entrée historique", "type": "id" }
},
"output": {
"timeline": { "description": "Données de la timeline.", "type": "array" }
}
},
"getById": {
"description": "Retourne les données associées à une entrée historique.",
"permissions": [["admin"]],
"parameters": {
"id_entry": { "description": "UID de l'entrée historique", "type": "id" }
},
"output": {
"entry": { "description": "Données de l'entrée.", "type": "array" }
}
}
},
"fetchDefault": {
2017-11-10 12:38:15 +00:00
"dispatch": {
"description": "Dispatche la gestion des données reçues par un SATS",
"permissions": [["sats"]],
"parameters": {
"etree": { "description": "Etree full name", "type": "text" },
"data": { "descripton": "Données reçues", "type": "mixed" }
},
"output": {
"saved": { "description": "Code de reception (nombre de lignes recues ou autre)", "type": "numeric" }
}
},
2017-11-10 12:38:15 +00:00
"rfid_read": {
"description": "Enregistrement de l'historique de l'e-tree READ du module RFID",
"permissions": [["sats"]],
"parameters": {
"data": { "descripton": "Historique reçu", "type": "mixed" }
},
"output": {
"saved": { "description": "Nombre d'entrées enregistrées", "type": "id" }
}
},
2017-11-10 12:38:15 +00:00
"motheure_simple": {
"description": "Enregistrement du compte horaire de l'e-tree SIMPLE du module MOTHEURE",
"permissions": [["sats"]],
"parameters": {
"data": { "descripton": "Cycles horaires reçus", "type": "mixed" }
},
"output": {
"saved": { "description": "Nombre d'entrées enregistrées", "type": "id" }
}
}
},
"deployDefault": {
2017-11-10 12:38:15 +00:00
"dispatch": {
"description": "Dispatche la gestion des données à synchroniser par un SATS",
"permissions": [["sats"]],
"parameters": {
"etree": { "description": "Etree full name", "type": "text" }
},
"output": {
"data": { "description": "Données à synchroniser", "type": "numeric" }
}
},
2017-11-10 12:38:15 +00:00
"rfid_read": {
"description": "Enregistrement de l'historique de l'e-tree READ du module RFID",
"permissions": [["sats"]],
"parameters": {},
"output": {
"data": { "descripton": "Données à synchroniser", "type": "mixed" }
}
}
}
}