| 1 | //! KVT-fork: een demobericht met Business Central-links, zodat `--demo` de |
| 2 | //! kaartjes van `crate::kvt` (app) laat zien. Verzonnen nummers, geen echte data. |
| 3 | |
| 4 | use store::MessageRecord; |
| 5 | |
| 6 | use crate::demo::{JONAS_ID, at}; |
| 7 | |
| 8 | const WORK_ORDER: &str = "https://kvtmd365.kvt.nl/KVTMDLive_AAD/?company=Koninklijke%20van%20Twist&page=11333028&filter=%27No.%27%20IS%20%27WO2699001%27"; |
| 9 | const CONTRACT: &str = "https://kvtmd365.kvt.nl/KVTMDLive_AAD/?company=Koninklijke%20van%20Twist&page=11333015&filter=%27Contract%20No.%27%20IS%20%27CT2699001%27"; |
| 10 | |
| 11 | pub fn messages() -> Vec<MessageRecord> { |
| 12 | let time = at(0, 11, 0); |
| 13 | vec![MessageRecord { |
| 14 | conversation_id: "demo-chat-jonas".to_owned(), |
| 15 | message_id: "kvt1".to_owned(), |
| 16 | reply_to_id: None, |
| 17 | sender_id: Some(JONAS_ID.to_owned()), |
| 18 | sender_name: Some("Jonas Ortega".to_owned()), |
| 19 | sender_application_id: None, |
| 20 | links_json: "[]".to_owned(), |
| 21 | created_at: time, |
| 22 | edited_at: None, |
| 23 | deleted: false, |
| 24 | body_html: format!( |
| 25 | "<p>Could you check <a href=\"{WORK_ORDER}\">Werkorder WO2699001 - Onderhoud 500 uur</a> before Friday? It falls under <a href=\"{CONTRACT}\">Contract CT2699001 - Onderhoudscontract vloot</a>.</p>" |
| 26 | ), |
| 27 | attachments_json: "[]".to_owned(), |
| 28 | reactions_json: "[]".to_owned(), |
| 29 | mentions_json: "[]".to_owned(), |
| 30 | subject: None, |
| 31 | call_event_json: None, |
| 32 | importance: Default::default(), |
| 33 | }] |
| 34 | } |