| GET, POST | /cl_tournee_realtime/{id_operateur}/{id_tournee} |
|---|
"use strict";
export class _alerte_tournee_ligne {
/** @param {{id_operateur?:string,id_tournee?:string,id_evenement?:string,date?:string,num_facture?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
id_operateur;
/** @type {string} */
id_tournee;
/** @type {string} */
id_evenement;
/** @type {string} */
date;
/** @type {string} */
num_facture;
}
export class _alerte_tournee {
/** @param {{id_operateur?:string,id_tournee?:string,id_evenement?:string,date?:string,latitude?:number,longitude?:number,duree?:number,factures_non_livrees?:_alerte_tournee_ligne[]}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
id_operateur;
/** @type {string} */
id_tournee;
/** @type {string} */
id_evenement;
/** @type {string} */
date;
/** @type {number} */
latitude;
/** @type {number} */
longitude;
/** @type {number} */
duree;
/** @type {_alerte_tournee_ligne[]} */
factures_non_livrees;
}
export class _incident_livraison_ligne {
/** @param {{id_operateur?:string,id_tournee?:string,num_facture?:string,id_incident?:string,date?:string,line_id?:string,article_id?:string,quantite?:string,qte_uv?:string,qte_uc?:string,cdt_uc?:string,_qte_uv?:number,_qte_uc?:number,_cdt_uc?:number}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
id_operateur;
/** @type {string} */
id_tournee;
/** @type {string} */
num_facture;
/** @type {string} */
id_incident;
/** @type {string} */
date;
/** @type {string} */
line_id;
/** @type {string} */
article_id;
/** @type {string} */
quantite;
/** @type {string} */
qte_uv;
/** @type {string} */
qte_uc;
/** @type {string} */
cdt_uc;
/** @type {?number} */
_qte_uv;
/** @type {?number} */
_qte_uc;
/** @type {?number} */
_cdt_uc;
}
export class _incident_livraison {
/** @param {{id_operateur?:string,id_tournee?:string,num_facture?:string,id_incident?:string,date?:string,latitude?:number,longitude?:number,commentaire?:string,photo?:string,lignes?:_incident_livraison_ligne[]}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
id_operateur;
/** @type {string} */
id_tournee;
/** @type {string} */
num_facture;
/** @type {string} */
id_incident;
/** @type {string} */
date;
/** @type {number} */
latitude;
/** @type {number} */
longitude;
/** @type {string} */
commentaire;
/** @type {string} */
photo;
/** @type {_incident_livraison_ligne[]} */
lignes;
}
export class _inter_livraison {
/** @param {{id_operateur?:string,id_tournee?:string,date?:string,latitude?:number,longitude?:number,id_client_termine?:string,satisfaction?:number,id_client_suivant?:string,signature?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
id_operateur;
/** @type {string} */
id_tournee;
/** @type {string} */
date;
/** @type {number} */
latitude;
/** @type {number} */
longitude;
/** @type {string} */
id_client_termine;
/** @type {number} */
satisfaction;
/** @type {string} */
id_client_suivant;
/** @type {string} */
signature;
}
export class _messagerie {
/** @param {{id_operateur?:string,id_tournee?:string,id_message?:string,date?:string,latitude?:number,longitude?:number,message?:string,photo?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
id_operateur;
/** @type {string} */
id_tournee;
/** @type {string} */
id_message;
/** @type {string} */
date;
/** @type {number} */
latitude;
/** @type {number} */
longitude;
/** @type {string} */
message;
/** @type {string} */
photo;
}
export class _info_tournee {
/** @param {{id_operateur?:string,id_tournee?:string,date?:string,latitude?:number,longitude?:number,aptitude?:number,id_fin_tournee?:string,kilometrage_depart?:string,carburant_correct?:number,ad_blue_allume?:number,platform?:string,brand?:string,model?:string,release?:string,sdk?:string,app_version?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
id_operateur;
/** @type {string} */
id_tournee;
/** @type {string} */
date;
/** @type {number} */
latitude;
/** @type {number} */
longitude;
/** @type {number} */
aptitude;
/** @type {string} */
id_fin_tournee;
/** @type {string} */
kilometrage_depart;
/** @type {number} */
carburant_correct;
/** @type {number} */
ad_blue_allume;
/** @type {string} */
platform;
/** @type {string} */
brand;
/** @type {string} */
model;
/** @type {string} */
release;
/** @type {string} */
sdk;
/** @type {string} */
app_version;
}
export class _multi_photo {
/** @param {{id_operateur?:string,id_tournee?:string,id_client?:string,num_facture?:string,type?:number,index?:number,path?:string,photo?:string,photo_light?:string,date?:string,latitude?:number,longitude?:number}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
id_operateur;
/** @type {string} */
id_tournee;
/** @type {string} */
id_client;
/** @type {string} */
num_facture;
/** @type {number} */
type;
/** @type {number} */
index;
/** @type {string} */
path;
/** @type {string} */
photo;
/** @type {string} */
photo_light;
/** @type {string} */
date;
/** @type {number} */
latitude;
/** @type {number} */
longitude;
}
export class _materiel {
/** @param {{id_operateur?:string,id_tournee?:string,id_materiel?:string,depart?:number,type_materiel?:string,quantite_depart?:number,quantite?:number,date?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
id_operateur;
/** @type {string} */
id_tournee;
/** @type {string} */
id_materiel;
/** @type {number} */
depart;
/** @type {string} */
type_materiel;
/** @type {number} */
quantite_depart;
/** @type {number} */
quantite;
/** @type {string} */
date;
}
export class _reprise {
/** @param {{id_operateur?:string,id_tournee?:string,num_facture?:string,type_reprise?:string,article_id?:string,article_absent?:number,quantite?:number,reintegrable?:number,commentaire?:string,date?:string,qte_uv?:number,qte_uc?:number,cdt_uc?:number}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
id_operateur;
/** @type {string} */
id_tournee;
/** @type {string} */
num_facture;
/** @type {string} */
type_reprise;
/** @type {string} */
article_id;
/** @type {number} */
article_absent;
/** @type {number} */
quantite;
/** @type {number} */
reintegrable;
/** @type {string} */
commentaire;
/** @type {string} */
date;
/** @type {?number} */
qte_uv;
/** @type {?number} */
qte_uc;
/** @type {?number} */
cdt_uc;
}
export class cl_tournee_realtimeResponse {
/** @param {{id_operateur?:string,id_tournee?:string,alertes_tournees?:_alerte_tournee[],incidents_livraisons?:_incident_livraison[],inter_livraisons?:_inter_livraison[],messages?:_messagerie[],infos_tournees?:_info_tournee[],multi_photos?:_multi_photo[],materiels?:_materiel[],reprises?:_reprise[]}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
id_operateur;
/** @type {string} */
id_tournee;
/** @type {_alerte_tournee[]} */
alertes_tournees;
/** @type {_incident_livraison[]} */
incidents_livraisons;
/** @type {_inter_livraison[]} */
inter_livraisons;
/** @type {_messagerie[]} */
messages;
/** @type {_info_tournee[]} */
infos_tournees;
/** @type {_multi_photo[]} */
multi_photos;
/** @type {_materiel[]} */
materiels;
/** @type {_reprise[]} */
reprises;
}
export class _ordre_tournee {
/** @param {{id_operateur?:string,id_tournee?:string,factures?:string[]}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
id_operateur;
/** @type {string} */
id_tournee;
/** @type {string[]} */
factures;
}
export class _deconsigne {
/** @param {{id_operateur?:string,id_tournee?:string,num_facture?:string,id_deconsigne?:string,id_client?:string,quantite?:number,pu_euro?:number,montant?:number,date?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
id_operateur;
/** @type {string} */
id_tournee;
/** @type {string} */
num_facture;
/** @type {string} */
id_deconsigne;
/** @type {string} */
id_client;
/** @type {?number} */
quantite;
/** @type {?number} */
pu_euro;
/** @type {?number} */
montant;
/** @type {string} */
date;
}
export class _encaissement {
/** @param {{id_operateur?:string,id_tournee?:string,id_client?:string,id_reglement?:string,montant?:number,code_devise?:string,date?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
id_operateur;
/** @type {string} */
id_tournee;
/** @type {string} */
id_client;
/** @type {string} */
id_reglement;
/** @type {?number} */
montant;
/** @type {string} */
code_devise;
/** @type {string} */
date;
}
export class _incident {
/** @param {{id_operateur?:string,id_tournee?:string,num_facture?:string,id_motif?:string,date?:string,photo?:string,attente?:number}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
id_operateur;
/** @type {string} */
id_tournee;
/** @type {string} */
num_facture;
/** @type {string} */
id_motif;
/** @type {string} */
date;
/** @type {string} */
photo;
/** @type {number} */
attente;
}
export class cl_tournee_realtimeRequest {
/** @param {{id_operateur?:string,id_tournee?:string,alertes_tournees?:_alerte_tournee[],incidents_livraisons?:_incident_livraison[],inter_livraisons?:_inter_livraison[],messages?:_messagerie[],infos_tournees?:_info_tournee[],ordre_tournees?:_ordre_tournee[],multi_photos?:_multi_photo[],materiels?:_materiel[],reprises?:_reprise[],deconsignes?:_deconsigne[],encaissements?:_encaissement[],incidents?:_incident[]}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
id_operateur;
/** @type {string} */
id_tournee;
/** @type {_alerte_tournee[]} */
alertes_tournees;
/** @type {_incident_livraison[]} */
incidents_livraisons;
/** @type {_inter_livraison[]} */
inter_livraisons;
/** @type {_messagerie[]} */
messages;
/** @type {_info_tournee[]} */
infos_tournees;
/** @type {_ordre_tournee[]} */
ordre_tournees;
/** @type {_multi_photo[]} */
multi_photos;
/** @type {_materiel[]} */
materiels;
/** @type {_reprise[]} */
reprises;
/** @type {_deconsigne[]} */
deconsignes;
/** @type {_encaissement[]} */
encaissements;
/** @type {_incident[]} */
incidents;
}
JavaScript cl_tournee_realtimeRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /cl_tournee_realtime/{id_operateur}/{id_tournee} HTTP/1.1
Host: freemotion-staging.milliet.paris
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"id_operateur":"String","id_tournee":"String","alertes_tournees":[{"id_operateur":"String","id_tournee":"String","id_evenement":"String","date":"String","latitude":0,"longitude":0,"duree":0,"factures_non_livrees":[{"id_operateur":"String","id_tournee":"String","id_evenement":"String","date":"String","num_facture":"String"}]}],"incidents_livraisons":[{"id_operateur":"String","id_tournee":"String","num_facture":"String","id_incident":"String","date":"String","latitude":0,"longitude":0,"commentaire":"String","photo":"String","lignes":[{"id_operateur":"String","id_tournee":"String","num_facture":"String","id_incident":"String","date":"String","line_id":"String","article_id":"String","quantite":"String","qte_uv":"String","qte_uc":"String","cdt_uc":"String"}]}],"inter_livraisons":[{"id_operateur":"String","id_tournee":"String","date":"String","latitude":0,"longitude":0,"id_client_termine":"String","satisfaction":0,"id_client_suivant":"String","signature":"String"}],"messages":[{"id_operateur":"String","id_tournee":"String","id_message":"String","date":"String","latitude":0,"longitude":0,"message":"String","photo":"String"}],"infos_tournees":[{"id_operateur":"String","id_tournee":"String","date":"String","latitude":0,"longitude":0,"aptitude":0,"id_fin_tournee":"String","kilometrage_depart":"String","carburant_correct":0,"ad_blue_allume":0,"platform":"String","brand":"String","model":"String","release":"String","sdk":"String","app_version":"String"}],"ordre_tournees":[{"id_operateur":"String","id_tournee":"String","factures":["String"]}],"multi_photos":[{"id_operateur":"String","id_tournee":"String","id_client":"String","num_facture":"String","type":0,"index":0,"path":"String","photo":"String","photo_light":"String","date":"String","latitude":0,"longitude":0}],"materiels":[{"id_operateur":"String","id_tournee":"String","id_materiel":"String","depart":0,"type_materiel":"String","quantite_depart":0,"quantite":0,"date":"String"}],"reprises":[{"id_operateur":"String","id_tournee":"String","num_facture":"String","type_reprise":"String","article_id":"String","article_absent":0,"quantite":0,"reintegrable":0,"commentaire":"String","date":"String","qte_uv":0,"qte_uc":0,"cdt_uc":0}],"deconsignes":[{"id_operateur":"String","id_tournee":"String","num_facture":"String","id_deconsigne":"String","id_client":"String","quantite":0,"pu_euro":0,"montant":0,"date":"String"}],"encaissements":[{"id_operateur":"String","id_tournee":"String","id_client":"String","id_reglement":"String","montant":0,"code_devise":"String","date":"String"}],"incidents":[{"id_operateur":"String","id_tournee":"String","num_facture":"String","id_motif":"String","date":"String","photo":"String","attente":0}]}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"id_operateur":"String","id_tournee":"String","alertes_tournees":[{"id_operateur":"String","id_tournee":"String","id_evenement":"String","date":"String","latitude":0,"longitude":0,"duree":0,"factures_non_livrees":[{"id_operateur":"String","id_tournee":"String","id_evenement":"String","date":"String","num_facture":"String"}]}],"incidents_livraisons":[{"id_operateur":"String","id_tournee":"String","num_facture":"String","id_incident":"String","date":"String","latitude":0,"longitude":0,"commentaire":"String","photo":"String","lignes":[{"id_operateur":"String","id_tournee":"String","num_facture":"String","id_incident":"String","date":"String","line_id":"String","article_id":"String","quantite":"String","qte_uv":"String","qte_uc":"String","cdt_uc":"String"}]}],"inter_livraisons":[{"id_operateur":"String","id_tournee":"String","date":"String","latitude":0,"longitude":0,"id_client_termine":"String","satisfaction":0,"id_client_suivant":"String","signature":"String"}],"messages":[{"id_operateur":"String","id_tournee":"String","id_message":"String","date":"String","latitude":0,"longitude":0,"message":"String","photo":"String"}],"infos_tournees":[{"id_operateur":"String","id_tournee":"String","date":"String","latitude":0,"longitude":0,"aptitude":0,"id_fin_tournee":"String","kilometrage_depart":"String","carburant_correct":0,"ad_blue_allume":0,"platform":"String","brand":"String","model":"String","release":"String","sdk":"String","app_version":"String"}],"multi_photos":[{"id_operateur":"String","id_tournee":"String","id_client":"String","num_facture":"String","type":0,"index":0,"path":"String","photo":"String","photo_light":"String","date":"String","latitude":0,"longitude":0}],"materiels":[{"id_operateur":"String","id_tournee":"String","id_materiel":"String","depart":0,"type_materiel":"String","quantite_depart":0,"quantite":0,"date":"String"}],"reprises":[{"id_operateur":"String","id_tournee":"String","num_facture":"String","type_reprise":"String","article_id":"String","article_absent":0,"quantite":0,"reintegrable":0,"commentaire":"String","date":"String","qte_uv":0,"qte_uc":0,"cdt_uc":0}]}