@abihealth/goapp-react-native 1.29.0 → 1.30.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/common/components/AnswerScreen/CloseConsultationActionSheet.js +6 -3
  3. package/dist/common/components/AnswerScreen/prescription/PrescriptionCard.js +2 -2
  4. package/dist/common/components/FormWrapper.d.ts +2 -1
  5. package/dist/common/components/FormWrapper.js +2 -2
  6. package/dist/common/contexts/FormContext.d.ts +3 -1
  7. package/dist/common/contexts/FormContext.js +6 -3
  8. package/dist/common/hooks/useForm.js +2 -2
  9. package/dist/common/locale/translations/ar-AE.base.json +8 -2
  10. package/dist/common/locale/translations/ar-LB.base.json +10 -4
  11. package/dist/common/locale/translations/bg.base.json +2 -2
  12. package/dist/common/locale/translations/cs.base.json +2 -2
  13. package/dist/common/locale/translations/de.base.json +12 -2
  14. package/dist/common/locale/translations/en.base.json +39 -12
  15. package/dist/common/locale/translations/en.prescriptionSurveys.json +27 -1
  16. package/dist/common/locale/translations/es-MX.base.json +0 -10
  17. package/dist/common/locale/translations/es.base.json +10 -10
  18. package/dist/common/locale/translations/fr.base.json +10 -2
  19. package/dist/common/locale/translations/hu.base.json +2 -2
  20. package/dist/common/locale/translations/it.base.json +12 -2
  21. package/dist/common/locale/translations/pl.base.json +2 -2
  22. package/dist/common/locale/translations/ro.base.json +2 -2
  23. package/dist/common/locale/translations/ru.base.json +4 -2
  24. package/dist/common/locale/translations/sk.base.json +1 -9
  25. package/dist/common/locale/translations/zh-HK.base.json +10 -10
  26. package/dist/common/locale/translations/zh-SG.base.json +12 -4
  27. package/dist/common/locale/translations/zh-TW.base.json +0 -10
  28. package/dist/common/screens/utils.js +2 -2
  29. package/dist/common/types/components.d.ts +2 -0
  30. package/dist/common/types/prescription.d.ts +23 -31
  31. package/dist/common/types/prescription.js +1 -8
  32. package/dist/form-prescriptions/screens/QuestionnaireScreen.js +1 -1
  33. package/dist/index.d.ts +2 -2
  34. package/dist/index.js +3 -2
  35. package/dist/video-consultations/api/video.d.ts +1 -2
  36. package/dist/video-consultations/api/video.js +3 -1
  37. package/dist/video-consultations/components/VideoConsultation.js +1 -1
  38. package/dist/video-consultations/components/agora/components/BaseRenderUsers.js +5 -2
  39. package/dist/video-consultations/components/agora/components/BtnControls.js +6 -5
  40. package/dist/video-consultations/icons/SwitchCameraIcon.d.ts +2 -1
  41. package/dist/video-consultations/icons/SwitchCameraIcon.js +4 -3
  42. package/dist/video-consultations/screens/DeliveryAddressScreen.js +47 -14
  43. package/package.json +1 -1
@@ -310,8 +310,6 @@
310
310
  "delivery.address.country": "Pays",
311
311
  "delivery.address.country.placeholder": "Veuillez sélectionner...",
312
312
  "delivery.address.description": "Une ordonnance a été émise. Veuillez fournir votre adresse complète pour la livraison.",
313
- "delivery.address.district_city": "District/Ville",
314
- "delivery.address.district_city.placeholder": "Hong Kong, Nouveaux Territoires",
315
313
  "delivery.address.mobile": "Numéro de portable",
316
314
  "delivery.address.number_and_floor": "Numéro de la maison ou de l'appartement et étage",
317
315
  "delivery.address.number_and_floor.placeholder": "nº 46, 15/F",
@@ -440,8 +438,11 @@
440
438
  "match.one_minute": "Cela prend généralement moins d'une minute mais cela peut prendre plus de temps à certains moments de la journée.",
441
439
  "matching": "Vous mettre en relation avec le bon professionnel de santé",
442
440
  "matching.video.text_message": "Vous recevrez un SMS lorsqu'un médecin vous invitera à participer à un appel vidéo.",
441
+ "medical_advice.call_visana": "Sur la base de l’évaluation du médecin, vous devriez contacter Medi24 au numéro suivant: \n \n</b> <a href=\"tel: +41 800 633 225\">+41 800 633 225</a> <b>",
443
442
  "medical_advice.emergency": "Urgence",
443
+ "medical_advice.emergency_visana": "Appelez le numéro d'urgence<b> <a href=\"tel:144\">144</a> </b>ou rendez-vous immédiatement aux urgences.",
444
444
  "medical_advice.no_visit_necessary": "Aucune visite nécessaire pour le moment",
445
+ "medical_advice.no_visit_necessary_visana": "Aucune visite médicale n'est nécessaire. Veuillez suivre les recommandations du médecin.",
445
446
  "medical_advice.not_question": "Ce n'est pas une question de santé",
446
447
  "medical_advice.speciality.alr": "Allergologie",
447
448
  "medical_advice.speciality.car": "Cardiologie",
@@ -474,6 +475,9 @@
474
475
  "medical_advice.speciality.vas": "Angiologie",
475
476
  "medical_advice.title": "Quelle est votre évaluation de la question précédente ?",
476
477
  "medical_advice.visit_doctor": "Rendez-vous chez le médecin (pas urgent)",
478
+ "medical_advice.visit_doctor_next_seven_days_visana": "Consultez un médecin {{specialty}} dans les 7 prochains jours.",
479
+ "medical_advice.visit_doctor_next_six_hours_visana": "Consultez un médecin {{specialty}} dans les 6 prochaines heures.",
480
+ "medical_advice.visit_doctor_next_twentyfour_hours_visana": "Consultez un médecin {{specialty}} dans les prochaines 24 heures.",
477
481
  "midwife_title_female": "Mme {{name}}",
478
482
  "midwife_title_male": "M. {{name}}",
479
483
  "modal.cancel": "Êtes-vous sûr de vouloir annuler cette consultation ?",
@@ -517,6 +521,10 @@
517
521
  "rating.title": "Votre avis compte !",
518
522
  "rating.validation": "L'évaluation est requise",
519
523
  "recommended_link.no_thanks": "Non merci",
524
+ "referral.button": "Afficher l’urgence",
525
+ "referral.level.confirmation": "Le rendez-vous a bien été enregistré",
526
+ "referral.level.register": "Enregistrer ce rendez-vous",
527
+ "referral.level.title": "Sur la base de la réponse du médecin, votre cas médical est passé au niveau d’urgence suivant:",
520
528
  "responding": "répond à votre cas.",
521
529
  "reviewing": "examine votre demande.",
522
530
  "reviewing.video": "examine votre demande.\nVous verrez bientôt un bouton pour rejoindre l'appel vidéo.",
@@ -358,8 +358,8 @@
358
358
  "general.prescriptionRequest.question.hint": "Ezzel segít az orvosnak, hogy jobban megértse a korábbi kérdésekre adott válaszait.",
359
359
  "general.prescriptionRequest.question.placeholder": "Kattintson ide az íráshoz.",
360
360
  "general.prescriptionRequest.question.title": "Saját szavaival írja le az orvosnak, hogy miért van szüksége erre a receptre.",
361
- "i_have_read_and_agreed_to_the_terms_conditions": "Elolvastam és beleegyezem a <a href='https://abi.ai/en/terms-of-use'>Terms & Conditions</a> dokumentumban foglaltakba.",
362
- "i_have_read_and_understood_the_privacy_policy": "Elolvastam és beleegyezem az <a href='https://abi.ai/en/privacy'>Privacy Policy</a>",
361
+ "i_have_read_and_agreed_to_the_terms_conditions": "Elolvastam és beleegyezem a <a href='https://abi.ai/hu/terms-of-use'>Terms & Conditions</a> dokumentumban foglaltakba.",
362
+ "i_have_read_and_understood_the_privacy_policy": "Elolvastam és beleegyezem az <a href='https://abi.ai/hu/privacy'>Privacy Policy</a>",
363
363
  "input.confirm_password": "Jelszó megerősítése",
364
364
  "input.email": "Email",
365
365
  "input.message": "Üzenet",
@@ -121,8 +121,8 @@
121
121
  "general.prescriptionRequest.question.placeholder": "Clicca qui per scrivere.",
122
122
  "general.prescriptionRequest.question.title": "Con parole tue, spiega al medico la ragione per cui hai bisogno della ricetta medica.",
123
123
  "hcp_profile": "Profilo del professionista sanitario",
124
- "i_have_read_and_agreed_to_the_terms_conditions": "Ho letto e acconsento ai Termini e Condizioni",
125
- "i_have_read_and_understood_the_privacy_policy": "Ho letto e acconsento alla <a href='https://abi.ai/en/privacy'>Informativa sulla privacy</a>",
124
+ "i_have_read_and_agreed_to_the_terms_conditions": "Ho letto e acconsento ai <a href='https://abi.ai/it/terms-of-use'>Termini e Condizioni</a>",
125
+ "i_have_read_and_understood_the_privacy_policy": "Ho letto e acconsento alla <a href='https://abi.ai/it/privacy'>Informativa sulla privacy</a>",
126
126
  "input.confirm_password": "Conferma password",
127
127
  "input.email": "E-mail",
128
128
  "input.message": "Messaggio",
@@ -164,8 +164,11 @@
164
164
  "match.one_minute": "Di solito richiede meno di 1 minuto, ma potrebbe richiedere più tempo in alcuni momenti della giornata.",
165
165
  "matching": "Ti stiamo abbinando al professionista sanitario giusto",
166
166
  "matching.video.text_message": "Riceverai un messaggio di testo quando un medico ti inviterà a partecipare a una videochiamata.",
167
+ "medical_advice.call_visana": "Sulla base della valutazione del medico, è necessario contattare Medi24 al seguente numero: \n \n</b> <a href=\"tel: +41 800 633 225\">+41 800 633 225</a> <b>",
167
168
  "medical_advice.emergency": "Emergenza",
169
+ "medical_advice.emergency_visana": "Chiamare il numero di emergenza<b> <a href=\"tel:144\">144</a> </b>o andare subito al pronto soccorso.",
168
170
  "medical_advice.no_visit_necessary": "Nessuna visita necessaria per il momento",
171
+ "medical_advice.no_visit_necessary_visana": "Nessuna visita medica necessaria. Si prega di seguire le raccomandazioni fornite dal medico.",
169
172
  "medical_advice.not_question": "Non è una domanda sulla salute",
170
173
  "medical_advice.speciality.alr": "Allergologia",
171
174
  "medical_advice.speciality.car": "Cardiologia",
@@ -198,6 +201,9 @@
198
201
  "medical_advice.speciality.vas": "Angiologia",
199
202
  "medical_advice.title": "Qual è la tua valutazione della domanda precedente?",
200
203
  "medical_advice.visit_doctor": "Visita un medico (non urgente)",
204
+ "medical_advice.visit_doctor_next_seven_days_visana": "Visitare un medico {{specialty}} entro i prossimi 7 giorni.",
205
+ "medical_advice.visit_doctor_next_six_hours_visana": "Visitare un medico {{specialty}} entro le prossime 6 ore.",
206
+ "medical_advice.visit_doctor_next_twentyfour_hours_visana": "Visitare un medico {{specialty}} entro le prossime 24 ore.",
201
207
  "midwife_title_female": "Sig.ra {{name}}",
202
208
  "midwife_title_male": "Sig. {{name}}",
203
209
  "modal.cancel": "Sei sicuro di voler annullare questa consultazione?",
@@ -238,6 +244,10 @@
238
244
  "rating.title": "La tua opinione conta!",
239
245
  "rating.validation": "La valutazione è obbligatoria",
240
246
  "recommended_link.no_thanks": "No grazie",
247
+ "referral.button": "Vedi Urgenza",
248
+ "referral.level.confirmation": "Appuntamento registrato correttamente",
249
+ "referral.level.register": "Registra questo appuntamento",
250
+ "referral.level.title": "In base alla risposta del medico, al tuo caso medico è stato assegnato il seguente livello di urgenza:",
241
251
  "responding": "sta rispondendo al tuo caso.",
242
252
  "reviewing": "sta esaminando la tua richiesta.",
243
253
  "sanofi.professional_assessment": "Valutazione professionale",
@@ -357,8 +357,8 @@
357
357
  "general.prescriptionRequest.question.hint": "Pomoże to lekarzowi lepiej zrozumieć Twoje odpowiedzi na poprzednie pytania.",
358
358
  "general.prescriptionRequest.question.placeholder": "Kliknij tutaj, aby zacząć pisać.",
359
359
  "general.prescriptionRequest.question.title": "Wyjaśnij lekarzowi własnymi słowami, dlaczego potrzebujesz tej recepty.",
360
- "i_have_read_and_agreed_to_the_terms_conditions": "Akceptuję <a href='https://abi.ai/en/terms-of-use'>Regulamin</a> po jego wcześniejszym przeczytaniu",
361
- "i_have_read_and_understood_the_privacy_policy": "Akceptuję <a href='https://abi.ai/en/privacy'>Politykę prywatności</a> po jej wcześniejszym przeczytaniu",
360
+ "i_have_read_and_agreed_to_the_terms_conditions": "Akceptuję <a href='https://abi.ai/pl/terms-of-use'>Regulamin</a> po jego wcześniejszym przeczytaniu",
361
+ "i_have_read_and_understood_the_privacy_policy": "Akceptuję <a href='https://abi.ai/pl/privacy'>Politykę prywatności</a> po jej wcześniejszym przeczytaniu",
362
362
  "input.confirm_password": "Potwierdź hasło",
363
363
  "input.email": "Adres e-mail",
364
364
  "input.message": "Wiadomość",
@@ -364,8 +364,8 @@
364
364
  "general.prescriptionRequest.question.hint": "Acest lucru îl va ajuta pe medic să înțeleagă mai bine răspunsurile dvs. la întrebările precedente.",
365
365
  "general.prescriptionRequest.question.placeholder": "Faceți clic aici pentru a scrie.",
366
366
  "general.prescriptionRequest.question.title": "Explicați medicului, cu propriile dvs. cuvinte, de ce aveți nevoie de această prescripție medicală.",
367
- "i_have_read_and_agreed_to_the_terms_conditions": "Am citit și sunt de acord cu <a href='https://abi.ai/en/terms-of-use'>Termenii și condițiile</a>",
368
- "i_have_read_and_understood_the_privacy_policy": "Am citit și sunt de acord cu <a href='https://abi.ai/en/privacy'>Politica de confidențialitate</a>",
367
+ "i_have_read_and_agreed_to_the_terms_conditions": "Am citit și sunt de acord cu <a href='https://abi.ai/ro/terms-of-use'>Termenii și condițiile</a>",
368
+ "i_have_read_and_understood_the_privacy_policy": "Am citit și sunt de acord cu <a href='https://abi.ai/ro/privacy'>Politica de confidențialitate</a>",
369
369
  "input.confirm_password": "Confirmare parolă",
370
370
  "input.email": "E-mail",
371
371
  "input.message": "Mesaj",
@@ -301,8 +301,6 @@
301
301
  "delivery.address.country": "Страна",
302
302
  "delivery.address.country.placeholder": "Пожалуйста, выберите...",
303
303
  "delivery.address.description": "Был выписан рецепт. Пожалуйста, укажите свой полный адрес для доставки.",
304
- "delivery.address.district_city": "Район/город",
305
- "delivery.address.district_city.placeholder": "Гонконг, Новые территории",
306
304
  "delivery.address.mobile": "Номер мобильного телефона",
307
305
  "delivery.address.number_and_floor": "Номер дома или квартиры и этаж",
308
306
  "delivery.address.number_and_floor.placeholder": "nº 46, 15/F",
@@ -499,6 +497,10 @@
499
497
  "rating.description": "Пожалуйста, оцените Вашу консультацию перед загрузкой краткой информации",
500
498
  "rating.description.download": "Пожалуйста, оцените Вашу консультацию перед загрузкой краткой информации.",
501
499
  "recommended_link.no_thanks": "Нет, Спасибо.",
500
+ "referral.button": "Посмотреть срочность",
501
+ "referral.level.confirmation": "Прием зарегистрирован корректно",
502
+ "referral.level.register": "Зарегистрируйте этот прием",
503
+ "referral.level.title": "На основании ответа врача Вашему медицинскому случаю присвоен следующий уровень срочности:",
502
504
  "responding": "реагирует на ваше дело.",
503
505
  "reviewing": "рассматривает ваш запрос.",
504
506
  "reviewing.video": "рассматривает ваш запрос. \nСкоро вы увидите кнопку для присоединения к видеозвонку.",
@@ -364,7 +364,7 @@
364
364
  "general.prescriptionRequest.question.hint": "To pomôže lekárovi lepšie pochopiť vaše odpovede na predchádzajúce otázky.",
365
365
  "general.prescriptionRequest.question.placeholder": "Kliknutím sem napíšte.",
366
366
  "general.prescriptionRequest.question.title": "Vlastnými slovami vysvetlite lekárovi, prečo potrebujete tento predpis.",
367
- "i_have_read_and_agreed_to_the_terms_conditions": "Prečítal som si a súhlasím s <a href='https://abi.ai/en/terms-of-use'>Podmienkami a pravidlami</a>",
367
+ "i_have_read_and_agreed_to_the_terms_conditions": "Prečítal som si a súhlasím s <a href='https://abi.ai/sk/terms-of-use'>Podmienkami a pravidlami</a>",
368
368
  "i_have_read_and_understood_the_privacy_policy": "Prečítal som si a porozumel som <a href='https://abi.ai/sk/privacy'>Zásadám Ochrany Osobných Údajov</a>",
369
369
  "i_have_read_and_understood_the_privacy_policy.mj1": "Prečítal som si a porozumel som zásadám ochrany osobných údajov",
370
370
  "input.confirm_password": "Potvrdiť heslo",
@@ -407,11 +407,8 @@
407
407
  "match.one_minute": "Toto zvyčajne nezaberie viac ako 1 minútu.",
408
408
  "matching": "Spájame vás s tým najlepším zdravotným odborníkom",
409
409
  "matching.video.text_message": "Keď vás lekár pozve na videohovor, dostanete textovú správu.",
410
- "medical_advice.call_visana": "Zavolajte linku zdravotnej pomoci",
411
410
  "medical_advice.emergency": "Urgenca",
412
- "medical_advice.emergency_visana": "Pohotovosť",
413
411
  "medical_advice.no_visit_necessary": "V súčasnosti nie je potrebná žiadna návšteva",
414
- "medical_advice.no_visit_necessary_visana": "Teraz nie je potrebná žiadna návšteva",
415
412
  "medical_advice.not_question": "Nejde o zdravotnú otázku",
416
413
  "medical_advice.speciality.alr": "Alergológia",
417
414
  "medical_advice.speciality.car": "Kardiológia",
@@ -439,16 +436,11 @@
439
436
  "medical_advice.speciality.rhb": "Fyzioterapia a rehabilitácia",
440
437
  "medical_advice.speciality.rhu": "Reumatológia",
441
438
  "medical_advice.speciality.title": "O akú lekársku špecializáciu pri predchádzajúcej otázke ide?",
442
- "medical_advice.speciality.title_visana": "Pokiaľ ide o návštevu lekára, akú lekársku špecializáciu by ste odporučili?",
443
439
  "medical_advice.speciality.trm": "Tropická medicína",
444
440
  "medical_advice.speciality.uro": "Urológia",
445
441
  "medical_advice.speciality.vas": "Angiológia",
446
442
  "medical_advice.title": "Ako by ste hodnotili predchádzajúcu otázku?",
447
- "medical_advice.title_visana": "Čo by ste na základe dostupných informácií odporučili pre tento prípad?",
448
443
  "medical_advice.visit_doctor": "Návšteva lekára (nie naliehavá)",
449
- "medical_advice.visit_doctor_next_seven_days_visana": "Navštívte lekára v priebehu nasledujúcich 7 dní",
450
- "medical_advice.visit_doctor_next_six_hours_visana": "Navštívte lekára v priebehu nasledujúcich 6 hodín",
451
- "medical_advice.visit_doctor_next_twentyfour_hours_visana": "Navštívte lekára v priebehu nasledujúcich 24 hodín",
452
444
  "midwife_title_female": "Pani {{name}}",
453
445
  "midwife_title_male": "Pán {{name}}",
454
446
  "modal.cancel": "Skutočne si prajete zrušiť túto konzultáciu?",
@@ -42,8 +42,6 @@
42
42
  "delivery.address.country": "國家/地區",
43
43
  "delivery.address.country.placeholder": "請選擇…",
44
44
  "delivery.address.description": "處方已獲批核。請提供完整地址以便寄送處方藥物。",
45
- "delivery.address.district_city": "地區/城市",
46
- "delivery.address.district_city.placeholder": "香港新界",
47
45
  "delivery.address.mobile": "手機號碼",
48
46
  "delivery.address.number_and_floor": "單位號碼及樓層",
49
47
  "delivery.address.number_and_floor.placeholder": "15 樓 46 室",
@@ -171,11 +169,11 @@
171
169
  "match.one_minute": "這通常需時少於 1 分鐘,但在特定時間可能需時更長。",
172
170
  "matching": "正在為您配對合適的醫療專業人員",
173
171
  "matching.video.text_message": "在醫生邀請您加入視像通話時,您會收到短訊。",
174
- "medical_advice.call_visana": "致電醫療熱線",
172
+ "medical_advice.call_visana": "根據醫生的評估,您應利用以下號碼聯絡 Medi24:\n\n</b> <a href=\"tel: +41 800 633 225\">+41 800 633 225</a> <b>",
175
173
  "medical_advice.emergency": "緊急",
176
- "medical_advice.emergency_visana": "緊急",
174
+ "medical_advice.emergency_visana": "請致電緊急號碼:<b> <a href=\"tel:144\">144</a> </b>或立即前往急症室。",
177
175
  "medical_advice.no_visit_necessary": "目前無需醫生診症",
178
- "medical_advice.no_visit_necessary_visana": "現時無需醫生診症",
176
+ "medical_advice.no_visit_necessary_visana": "無需醫療診症。請跟從醫生提供的建議。",
179
177
  "medical_advice.not_question": "並非健康問題",
180
178
  "medical_advice.speciality.alr": "過敏學",
181
179
  "medical_advice.speciality.car": "心臟科",
@@ -203,16 +201,14 @@
203
201
  "medical_advice.speciality.rhb": "身體醫學與復康科",
204
202
  "medical_advice.speciality.rhu": "風濕病科",
205
203
  "medical_advice.speciality.title": "上個問題與哪個醫療專科相關?",
206
- "medical_advice.speciality.title_visana": "如要醫生診症,您會建議哪個醫療專科?",
207
204
  "medical_advice.speciality.trm": "熱帶醫學",
208
205
  "medical_advice.speciality.uro": "泌尿外科",
209
206
  "medical_advice.speciality.vas": "血管科",
210
207
  "medical_advice.title": "您對上個問題的評估是什麼?",
211
- "medical_advice.title_visana": "根據所獲的資料,您對此個案有什麼建議?",
212
208
  "medical_advice.visit_doctor": "醫生診症(非緊急)",
213
- "medical_advice.visit_doctor_next_seven_days_visana": "在 7 天內找醫生診症",
214
- "medical_advice.visit_doctor_next_six_hours_visana": "在 6 天內找醫生診症",
215
- "medical_advice.visit_doctor_next_twentyfour_hours_visana": "在 24 小時內找醫生診症",
209
+ "medical_advice.visit_doctor_next_seven_days_visana": "在 7 天內找醫生({{specialty}})診症。",
210
+ "medical_advice.visit_doctor_next_six_hours_visana": "根據醫生的回覆,您的醫療個案已分類為以下緊急級別:\n\n在 6 小時內找醫生({{specialty}})診症。",
211
+ "medical_advice.visit_doctor_next_twentyfour_hours_visana": "根據醫生的回覆,您的醫療個案已分類為以下緊急級別:\n\n在 24 小時內找醫生({{specialty}})診症。",
216
212
  "modal.cancel": "您確定想取消此諮詢嗎?",
217
213
  "modal.claimed_by_another_doctor": "此個案已由另一位醫生接手處理。",
218
214
  "modal.question_no_available": "抱歉,問題已不在存在。",
@@ -255,6 +251,10 @@
255
251
  "rating.description": "請在下載摘要前為您的諮詢評分",
256
252
  "rating.description.download": "請在下載摘要前為您的諮詢評分。",
257
253
  "recommended_link.no_thanks": "不用了,謝戲",
254
+ "referral.button": "查看緊急程度",
255
+ "referral.level.confirmation": "已正確登記預約",
256
+ "referral.level.register": "登記這次預約",
257
+ "referral.level.title": "根據醫生的回覆,您的醫療個案已分類為以下緊急級別:",
258
258
  "reminder_set": "已設定提醒。",
259
259
  "responding": "正在回覆您的個案。",
260
260
  "reviewing": "正在審核您的要求。",
@@ -301,8 +301,6 @@
301
301
  "delivery.address.country": "国家",
302
302
  "delivery.address.country.placeholder": "请选择...",
303
303
  "delivery.address.description": "处方已开具,请您提供完整地址以便配送药物。",
304
- "delivery.address.district_city": "街区/城市",
305
- "delivery.address.district_city.placeholder": "香港,新界",
306
304
  "delivery.address.mobile": "手机号码",
307
305
  "delivery.address.number_and_floor": "房号或公寓号和楼层",
308
306
  "delivery.address.number_and_floor.placeholder": "46号,15楼",
@@ -384,8 +382,8 @@
384
382
  "general.prescriptionRequest.question.hint": "这将帮助医生更好地理解您之前问题的答案",
385
383
  "general.prescriptionRequest.question.placeholder": "点击此次填写",
386
384
  "general.prescriptionRequest.question.title": "请用您自己的话向医生解释为什么您需要这个处方。",
387
- "i_have_read_and_agreed_to_the_terms_conditions": "我已阅读并同意<a href='https://abi.ai/en/terms-of-use'>条款与条件</a>",
388
- "i_have_read_and_understood_the_privacy_policy": "我已阅读并同意<a href='https://abi.ai/en/privacy'>隐私政策</a>",
385
+ "i_have_read_and_agreed_to_the_terms_conditions": "我已阅读并同意<a href='https://abi.ai/zh-sg/terms-of-use'>条款与条件</a>",
386
+ "i_have_read_and_understood_the_privacy_policy": "我已阅读并同意<a href='https://abi.ai/zh-sg/privacy'>隐私政策</a>",
389
387
  "input.confirm_password": "确认密码",
390
388
  "input.email": "电子邮件",
391
389
  "input.message": "消息",
@@ -426,8 +424,11 @@
426
424
  "match.one_minute": "这通常不到1分钟,但在一天中的某些时间可能需要更长时间。",
427
425
  "matching": "正在为您匹配合适的医疗专业人员",
428
426
  "matching.video.text_message": "当医生邀请您加入视频通话时,您将收到一条短信通知。",
427
+ "medical_advice.call_visana": "根据医生的评估,您应该联系Medi24,电话号码如下:\n\n</b> <a href=\"\"tel: +41 800 633 225\"\">+41 800 633 225</a> <b>",
429
428
  "medical_advice.emergency": "紧急情况",
429
+ "medical_advice.emergency_visana": "拨打紧急电话<b> <a href=\"\"tel:144\"\">144</a> </b>或立即前往急诊室。",
430
430
  "medical_advice.no_visit_necessary": "目前不需要就诊",
431
+ "medical_advice.no_visit_necessary_visana": "不需要医疗就诊。请按照医生提供的建议行事。",
431
432
  "medical_advice.not_question": "不是健康相关问题",
432
433
  "medical_advice.speciality.alr": "变态反应",
433
434
  "medical_advice.speciality.car": "心脏科",
@@ -460,6 +461,9 @@
460
461
  "medical_advice.speciality.vas": "血管学",
461
462
  "medical_advice.title": "您对上一个问题的评价是什么?",
462
463
  "medical_advice.visit_doctor": "看医生(非紧急)",
464
+ "medical_advice.visit_doctor_next_seven_days_visana": "在接下来的7天内看医生({{specialty}})",
465
+ "medical_advice.visit_doctor_next_six_hours_visana": "根据医生的回答,您的医疗病例被分配了以下紧急程度:\n\n在接下来的6小时内看医生({{specialty}})。",
466
+ "medical_advice.visit_doctor_next_twentyfour_hours_visana": "根据医生的回答,您的医疗病例被分配了以下紧急程度:\n\n在接下来的24小时内看医生({{specialty}})",
463
467
  "midwife_title_female": "{{name}}女士",
464
468
  "midwife_title_male": "{{name}}先生",
465
469
  "modal.cancel": "您确定要取消此次问诊吗?",
@@ -499,6 +503,10 @@
499
503
  "rating.description": "请在下载问诊总结前评价您的问诊",
500
504
  "rating.description.download": "请在下载问诊总结前评价您的问诊",
501
505
  "recommended_link.no_thanks": "不,谢谢",
506
+ "referral.button": "查看紧急程度",
507
+ "referral.level.confirmation": "预约已成功",
508
+ "referral.level.register": "注册预约",
509
+ "referral.level.title": "根据医生的回答,您的医疗病例已被分配以下紧急程度:",
502
510
  "responding": "正在回复您的病例。",
503
511
  "reviewing": "正在审核您的请求。",
504
512
  "reviewing.video": "正在审核您的请求。 您很快将看到一个按钮以加入视频通话。",
@@ -372,8 +372,6 @@
372
372
  "delivery.address.country": "國家/地區",
373
373
  "delivery.address.country.placeholder": "請選擇…",
374
374
  "delivery.address.description": "處方簽已確認。請提供完整地址以便寄送處方藥物。",
375
- "delivery.address.district_city": "地區/縣市",
376
- "delivery.address.district_city.placeholder": "香港新界",
377
375
  "delivery.address.mobile": "手機號碼",
378
376
  "delivery.address.number_and_floor": "住宅號碼及樓層",
379
377
  "delivery.address.number_and_floor.placeholder": "15 樓 46 室",
@@ -662,11 +660,8 @@
662
660
  "match.one_minute": "這通常需要等待 1 分鐘,但在特定時間可能需要更長的時間。",
663
661
  "matching": "正在為您配對合適的醫療專業人員",
664
662
  "matching.video.text_message": "在醫師邀請您加入視訊通話時,您會收到訊息通知。",
665
- "medical_advice.call_visana": "撥打醫療熱線",
666
663
  "medical_advice.emergency": "緊急",
667
- "medical_advice.emergency_visana": "緊急",
668
664
  "medical_advice.no_visit_necessary": "目前無需醫生看診",
669
- "medical_advice.no_visit_necessary_visana": "現在無需醫生看診",
670
665
  "medical_advice.not_question": "並非健康問題",
671
666
  "medical_advice.speciality.alr": "過敏學",
672
667
  "medical_advice.speciality.car": "心臟科",
@@ -694,16 +689,11 @@
694
689
  "medical_advice.speciality.rhb": "身體醫學與復康科",
695
690
  "medical_advice.speciality.rhu": "風濕病科",
696
691
  "medical_advice.speciality.title": "上一個問題與哪個醫療專科相關?",
697
- "medical_advice.speciality.title_visana": "如需醫師看診,您會想看哪個醫療專科?",
698
692
  "medical_advice.speciality.trm": "熱帶醫學",
699
693
  "medical_advice.speciality.uro": "泌尿外科",
700
694
  "medical_advice.speciality.vas": "血管科",
701
695
  "medical_advice.title": "您對上個問題如何評估?",
702
- "medical_advice.title_visana": "根據所提供的資料,您對此個案有什麼建議?",
703
696
  "medical_advice.visit_doctor": "醫師診斷(非緊急)",
704
- "medical_advice.visit_doctor_next_seven_days_visana": "在 7 天內找醫師診斷",
705
- "medical_advice.visit_doctor_next_six_hours_visana": "在 6 天內找醫師診斷",
706
- "medical_advice.visit_doctor_next_twentyfour_hours_visana": "在 24 小時內找醫師診斷",
707
697
  "midwife_title_female": "{{name}}小姐",
708
698
  "midwife_title_male": "{{name}}先生",
709
699
  "modal.cancel": "您確定想取消此次諮詢嗎?",
@@ -10,14 +10,14 @@ var RatingScreen_1 = require("./RatingScreen");
10
10
  var getCommonScreen = function (consultation, eventHandlers) {
11
11
  if (!consultation)
12
12
  return null;
13
- var status = consultation.status, professional = consultation.professional, questions = consultation.questions;
13
+ var status = consultation.status, professional = consultation.professional, questions = consultation.questions, prescription = consultation.prescription;
14
14
  switch (status) {
15
15
  case consultation_1.CONSULTATION_STATUS.OPEN:
16
16
  if (professional)
17
17
  return <MatchScreen_1.MatchScreen professional={professional}/>;
18
18
  return <MatchingScreen_1.MatchingScreen />;
19
19
  case consultation_1.CONSULTATION_STATUS.RESOLVED:
20
- return <AnswerScreen_1.AnswerScreen questions={questions} professional={professional}/>;
20
+ return <AnswerScreen_1.AnswerScreen questions={questions} professional={professional} prescription={prescription}/>;
21
21
  case consultation_1.CONSULTATION_STATUS.CLOSED:
22
22
  return <RatingScreen_1.RatingScreen onConsultationEnded={eventHandlers === null || eventHandlers === void 0 ? void 0 : eventHandlers.onConsultationEnded}/>;
23
23
  case consultation_1.CONSULTATION_STATUS.CANCELED:
@@ -78,6 +78,7 @@ export type Components = {
78
78
  containerStyle?: ViewStyle;
79
79
  iconStyle?: CustomIconStyle;
80
80
  };
81
+ videoContainerStyle?: ViewStyle;
81
82
  EndCallButton?: {
82
83
  containerStyle?: ViewStyle;
83
84
  iconStyle?: CustomIconStyle;
@@ -119,6 +120,7 @@ export type Components = {
119
120
  loading: boolean;
120
121
  }) => ReactElement;
121
122
  };
123
+ closeConsultationContainerStyle?: ViewStyle;
122
124
  };
123
125
  PrescriptionHomeScreen?: {
124
126
  indicationCategoryAccordion?: {
@@ -1,11 +1,4 @@
1
1
  import { HKDeliveryAddress } from './deliveryAddress';
2
- export interface Pharmacy {
3
- id: string;
4
- name: string;
5
- address: string;
6
- onlineDelivery: boolean;
7
- phone: string;
8
- }
9
2
  export declare enum PRESCRIPTION_STATUS {
10
3
  WAITING_FOR_FULFILLMENT = "waitingForFulfillment",
11
4
  ADDRESS_REJECTED = "addressRejected",
@@ -15,15 +8,6 @@ export declare enum PRESCRIPTION_STATUS {
15
8
  RESOLVED = "resolved",
16
9
  ERROR = "error"
17
10
  }
18
- export type PrescriptionPayment = {
19
- url: string;
20
- };
21
- export declare enum PRESCRIPTION_FULFILLMENT_OPTION {
22
- DELIVERY = "delivery",
23
- COLLECT = "collect",
24
- USER_ADDRESS = "userAddress",
25
- PDF = "pdf"
26
- }
27
11
  export declare enum PRESCRIPTION_INTEGRATION {
28
12
  HEALTHMAIL = "healthmail",
29
13
  HEALTHMAIL_ILH = "healthmail-ilh",
@@ -34,19 +18,27 @@ export declare enum PRESCRIPTION_INTEGRATION {
34
18
  SIGNATURERX = "signaturerx",
35
19
  DEFAULT = "default"
36
20
  }
37
- export type Prescription = {
38
- isRefused: boolean;
21
+ export interface Status {
22
+ message: string;
39
23
  status: PRESCRIPTION_STATUS;
40
- data?: {
41
- duration: string;
42
- instructions: string;
43
- quantity: string;
44
- medication: string;
45
- frequency: string;
46
- };
47
- pharmacy?: Pharmacy;
48
- deliveryAddress?: HKDeliveryAddress;
49
- fulfillmentOptions?: PRESCRIPTION_FULFILLMENT_OPTION[];
50
- payment?: PrescriptionPayment;
51
- integration?: PRESCRIPTION_INTEGRATION;
52
- };
24
+ }
25
+ export interface Delivery {
26
+ address: HKDeliveryAddress;
27
+ }
28
+ export interface Data {
29
+ delivery: Delivery;
30
+ drugId: number;
31
+ dsi: string;
32
+ duration: string;
33
+ frequency: string;
34
+ integration: string;
35
+ medication: string;
36
+ remarks: string;
37
+ unit: string;
38
+ }
39
+ export interface Prescription {
40
+ integration: PRESCRIPTION_INTEGRATION;
41
+ createdAt: string;
42
+ data: Data;
43
+ status: Status;
44
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PRESCRIPTION_INTEGRATION = exports.PRESCRIPTION_FULFILLMENT_OPTION = exports.PRESCRIPTION_STATUS = void 0;
3
+ exports.PRESCRIPTION_INTEGRATION = exports.PRESCRIPTION_STATUS = void 0;
4
4
  var PRESCRIPTION_STATUS;
5
5
  (function (PRESCRIPTION_STATUS) {
6
6
  PRESCRIPTION_STATUS["WAITING_FOR_FULFILLMENT"] = "waitingForFulfillment";
@@ -11,13 +11,6 @@ var PRESCRIPTION_STATUS;
11
11
  PRESCRIPTION_STATUS["RESOLVED"] = "resolved";
12
12
  PRESCRIPTION_STATUS["ERROR"] = "error";
13
13
  })(PRESCRIPTION_STATUS || (exports.PRESCRIPTION_STATUS = PRESCRIPTION_STATUS = {}));
14
- var PRESCRIPTION_FULFILLMENT_OPTION;
15
- (function (PRESCRIPTION_FULFILLMENT_OPTION) {
16
- PRESCRIPTION_FULFILLMENT_OPTION["DELIVERY"] = "delivery";
17
- PRESCRIPTION_FULFILLMENT_OPTION["COLLECT"] = "collect";
18
- PRESCRIPTION_FULFILLMENT_OPTION["USER_ADDRESS"] = "userAddress";
19
- PRESCRIPTION_FULFILLMENT_OPTION["PDF"] = "pdf";
20
- })(PRESCRIPTION_FULFILLMENT_OPTION || (exports.PRESCRIPTION_FULFILLMENT_OPTION = PRESCRIPTION_FULFILLMENT_OPTION = {}));
21
14
  var PRESCRIPTION_INTEGRATION;
22
15
  (function (PRESCRIPTION_INTEGRATION) {
23
16
  PRESCRIPTION_INTEGRATION["HEALTHMAIL"] = "healthmail";
@@ -13,8 +13,8 @@ var BackArrowIcon_1 = require("../../common/icons/BackArrowIcon");
13
13
  var CloseIcon_1 = require("../../common/icons/CloseIcon");
14
14
  var i18n_1 = __importDefault(require("../../common/locale/i18n"));
15
15
  var QuestionnaireLoader_1 = require("../components/loaders/QuestionnaireLoader");
16
- var QuestionnaireHeader_1 = require("../components/Questionnaire/QuestionnaireHeader");
17
16
  var QuestionnaireQuestion_1 = require("../components/Questionnaire/question/QuestionnaireQuestion");
17
+ var QuestionnaireHeader_1 = require("../components/Questionnaire/QuestionnaireHeader");
18
18
  var useIndicationSurvey_1 = require("../hooks/useIndicationSurvey");
19
19
  var react_1 = __importDefault(require("react"));
20
20
  var react_native_1 = require("react-native");
package/dist/index.d.ts CHANGED
@@ -44,7 +44,7 @@ import { PreparingSummaryScreen } from './common/screens/PreparingSummaryScreen'
44
44
  import { RatingScreen } from './common/screens/RatingScreen';
45
45
  import { CASE_TYPE, Consultation, CONSULTATION_STATUS, Question, QuestionType } from './common/types/consultation';
46
46
  import { HKDeliveryAddressSchema } from './common/types/deliveryAddress';
47
- import { Prescription, PRESCRIPTION_STATUS } from './common/types/prescription';
47
+ import { Prescription, PRESCRIPTION_INTEGRATION, PRESCRIPTION_STATUS } from './common/types/prescription';
48
48
  import { License, Professional } from './common/types/professional';
49
49
  import { Theme } from './common/types/theme';
50
50
  import { isAndroid, isIOS } from './common/utils/platform';
@@ -69,4 +69,4 @@ import { JoinVideoCallScreen } from './video-consultations/screens/JoinVideoCall
69
69
  import { ProcessingPrescriptionScreen } from './video-consultations/screens/ProcessingPrescriptionScreen';
70
70
  import VideoCallScreen from './video-consultations/screens/VideoCallScreen';
71
71
  export { AbiLogoIcon, AgoraWrapper, Animation, AnswerScreen, AttachmentPreviewModal, BackArrowIcon, BackgroundPattern, Button, CallingAnimation, CancelConsultationButton, CancelModal, Card, CASE_TYPE, Checkbox, CloseConsultationModal, CloseIcon, Consultation, CONSULTATION_STATUS, // TODO check this after last refactor
72
- ConsultationProvider, DateInput, DeliveryAddressScreen, DoctorIcon, DoctorProfileCard, DoctorProfileModal, EndingVideoScreen, EndVideoCallModal, FadeIn, FindingAnimation, FormPrescription, FormWrapper, getProfessionalLabel, Header, HKDeliveryAddressSchema, HorizontalLoadingAnimation, IndicationCategory, IndicationCategoryType, InfoIcon, Input, isAndroid, isIOS, JoinVideoCallScreen, License, LoadingCircleAnimation, LoadingDotsAnimation, MatchingScreen, MatchScreen, Modal, NoConsultationFoundScreen, PhoneInput, PlaneIcon, PreparingSummaryScreen, Prescription, PRESCRIPTION_STATUS, PrescriptionHomeScreen, ProcessingPrescriptionScreen, Professional, Question, QuestionType, RatingScreen, Reminder, requiredCheckbox, requiredString, ScreenWrapper, SearchableDropDown, Select, Slide, Text, TextConsultation, TextConsultationHomeScreen, TextConsultationIcon, Theme, TwoOptionsModal, useConsultation, useTheme, useTranslation, validPhone, VideoCallScreen, VideoConsultation, VideoConsultationIcon };
72
+ ConsultationProvider, DateInput, DeliveryAddressScreen, DoctorIcon, DoctorProfileCard, DoctorProfileModal, EndingVideoScreen, EndVideoCallModal, FadeIn, FindingAnimation, FormPrescription, FormWrapper, getProfessionalLabel, Header, HKDeliveryAddressSchema, HorizontalLoadingAnimation, IndicationCategory, IndicationCategoryType, InfoIcon, Input, isAndroid, isIOS, JoinVideoCallScreen, License, LoadingCircleAnimation, LoadingDotsAnimation, MatchingScreen, MatchScreen, Modal, NoConsultationFoundScreen, PhoneInput, PlaneIcon, PreparingSummaryScreen, Prescription, PRESCRIPTION_INTEGRATION, PRESCRIPTION_STATUS, PrescriptionHomeScreen, ProcessingPrescriptionScreen, Professional, Question, QuestionType, RatingScreen, Reminder, requiredCheckbox, requiredString, ScreenWrapper, SearchableDropDown, Select, Slide, Text, TextConsultation, TextConsultationHomeScreen, TextConsultationIcon, Theme, TwoOptionsModal, useConsultation, useTheme, useTranslation, validPhone, VideoCallScreen, VideoConsultation, VideoConsultationIcon };
package/dist/index.js CHANGED
@@ -3,8 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.PrescriptionHomeScreen = exports.PRESCRIPTION_STATUS = exports.PreparingSummaryScreen = exports.PlaneIcon = exports.PhoneInput = exports.NoConsultationFoundScreen = exports.Modal = exports.MatchScreen = exports.MatchingScreen = exports.LoadingDotsAnimation = exports.LoadingCircleAnimation = exports.JoinVideoCallScreen = exports.isIOS = exports.isAndroid = exports.Input = exports.InfoIcon = exports.IndicationCategory = exports.HorizontalLoadingAnimation = exports.HKDeliveryAddressSchema = exports.Header = exports.getProfessionalLabel = exports.FormWrapper = exports.FormPrescription = exports.FindingAnimation = exports.FadeIn = exports.EndVideoCallModal = exports.EndingVideoScreen = exports.DoctorProfileModal = exports.DoctorProfileCard = exports.DoctorIcon = exports.DeliveryAddressScreen = exports.DateInput = exports.ConsultationProvider = exports.CONSULTATION_STATUS = exports.CloseIcon = exports.CloseConsultationModal = exports.Checkbox = exports.CASE_TYPE = exports.Card = exports.CancelModal = exports.CancelConsultationButton = exports.CallingAnimation = exports.Button = exports.BackgroundPattern = exports.BackArrowIcon = exports.AttachmentPreviewModal = exports.AnswerScreen = exports.Animation = exports.AgoraWrapper = exports.AbiLogoIcon = void 0;
7
- exports.VideoConsultationIcon = exports.VideoConsultation = exports.VideoCallScreen = exports.validPhone = exports.useTranslation = exports.useTheme = exports.useConsultation = exports.TwoOptionsModal = exports.TextConsultationIcon = exports.TextConsultationHomeScreen = exports.TextConsultation = exports.Text = exports.Slide = exports.Select = exports.SearchableDropDown = exports.ScreenWrapper = exports.requiredString = exports.requiredCheckbox = exports.Reminder = exports.RatingScreen = exports.QuestionType = exports.ProcessingPrescriptionScreen = void 0;
6
+ exports.PRESCRIPTION_STATUS = exports.PRESCRIPTION_INTEGRATION = exports.PreparingSummaryScreen = exports.PlaneIcon = exports.PhoneInput = exports.NoConsultationFoundScreen = exports.Modal = exports.MatchScreen = exports.MatchingScreen = exports.LoadingDotsAnimation = exports.LoadingCircleAnimation = exports.JoinVideoCallScreen = exports.isIOS = exports.isAndroid = exports.Input = exports.InfoIcon = exports.IndicationCategory = exports.HorizontalLoadingAnimation = exports.HKDeliveryAddressSchema = exports.Header = exports.getProfessionalLabel = exports.FormWrapper = exports.FormPrescription = exports.FindingAnimation = exports.FadeIn = exports.EndVideoCallModal = exports.EndingVideoScreen = exports.DoctorProfileModal = exports.DoctorProfileCard = exports.DoctorIcon = exports.DeliveryAddressScreen = exports.DateInput = exports.ConsultationProvider = exports.CONSULTATION_STATUS = exports.CloseIcon = exports.CloseConsultationModal = exports.Checkbox = exports.CASE_TYPE = exports.Card = exports.CancelModal = exports.CancelConsultationButton = exports.CallingAnimation = exports.Button = exports.BackgroundPattern = exports.BackArrowIcon = exports.AttachmentPreviewModal = exports.AnswerScreen = exports.Animation = exports.AgoraWrapper = exports.AbiLogoIcon = void 0;
7
+ exports.VideoConsultationIcon = exports.VideoConsultation = exports.VideoCallScreen = exports.validPhone = exports.useTranslation = exports.useTheme = exports.useConsultation = exports.TwoOptionsModal = exports.TextConsultationIcon = exports.TextConsultationHomeScreen = exports.TextConsultation = exports.Text = exports.Slide = exports.Select = exports.SearchableDropDown = exports.ScreenWrapper = exports.requiredString = exports.requiredCheckbox = exports.Reminder = exports.RatingScreen = exports.QuestionType = exports.ProcessingPrescriptionScreen = exports.PrescriptionHomeScreen = void 0;
8
8
  var Animation_1 = require("./common/animations/Animation");
9
9
  Object.defineProperty(exports, "Animation", { enumerable: true, get: function () { return Animation_1.Animation; } });
10
10
  var animation_1 = require("./common/animations/FindingAnimation/animation");
@@ -100,6 +100,7 @@ Object.defineProperty(exports, "QuestionType", { enumerable: true, get: function
100
100
  var deliveryAddress_1 = require("./common/types/deliveryAddress");
101
101
  Object.defineProperty(exports, "HKDeliveryAddressSchema", { enumerable: true, get: function () { return deliveryAddress_1.HKDeliveryAddressSchema; } });
102
102
  var prescription_1 = require("./common/types/prescription");
103
+ Object.defineProperty(exports, "PRESCRIPTION_INTEGRATION", { enumerable: true, get: function () { return prescription_1.PRESCRIPTION_INTEGRATION; } });
103
104
  Object.defineProperty(exports, "PRESCRIPTION_STATUS", { enumerable: true, get: function () { return prescription_1.PRESCRIPTION_STATUS; } });
104
105
  var platform_1 = require("./common/utils/platform");
105
106
  Object.defineProperty(exports, "isAndroid", { enumerable: true, get: function () { return platform_1.isAndroid; } });
@@ -1,7 +1,6 @@
1
1
  import { ConsultationResponse, CreateConsultationRequest } from '../../common/api/models/consultation';
2
- import { Consultation } from '../../common/types/consultation';
3
2
  import { HKDeliveryAddress } from '../../common/types/deliveryAddress';
4
3
  import { HangOutRequest } from './models/video';
5
4
  export declare const hangOutVideocall: (body: HangOutRequest) => Promise<ConsultationResponse>;
6
- export declare const updateDeliveryAddress: (consultationId: string, address: HKDeliveryAddress) => Promise<Consultation>;
5
+ export declare const updateDeliveryAddress: (consultationId: string, address: HKDeliveryAddress) => Promise<ConsultationResponse>;
7
6
  export declare const createVideoConsultation: (_: CreateConsultationRequest) => Promise<ConsultationResponse>;
@@ -13,7 +13,9 @@ var hangOutVideocall = function (body) {
13
13
  };
14
14
  exports.hangOutVideocall = hangOutVideocall;
15
15
  var updateDeliveryAddress = function (consultationId, address) {
16
- return axios_1.default.post("".concat(VIDEO_CONSULTATION_URL, "/").concat(consultationId).concat(DELIVERY_ADDRESS_URL), { address: address }).then(function (response) { return response === null || response === void 0 ? void 0 : response.data; });
16
+ return axios_1.default
17
+ .post("".concat(VIDEO_CONSULTATION_URL, "/").concat(consultationId).concat(DELIVERY_ADDRESS_URL), { address: address })
18
+ .then(function (response) { return response === null || response === void 0 ? void 0 : response.data; });
17
19
  };
18
20
  exports.updateDeliveryAddress = updateDeliveryAddress;
19
21
  var createVideoConsultation = function (body) {
@@ -37,7 +37,7 @@ var VideoConsultation = function (_a) {
37
37
  case consultation_1.CONSULTATION_STATUS.VIDEO_CALL_ENDED:
38
38
  return <PreparingSummaryScreen_1.PreparingSummaryScreen professional={professional}/>;
39
39
  case consultation_1.CONSULTATION_STATUS.WAITING_FOR_INFO:
40
- if (prescription === null || prescription === void 0 ? void 0 : prescription.deliveryAddress)
40
+ if (prescription === null || prescription === void 0 ? void 0 : prescription.data.delivery.address)
41
41
  return <ProcessingPrescriptionScreen_1.ProcessingPrescriptionScreen />;
42
42
  return <DeliveryAddressScreen_1.DeliveryAddressScreen initialDeliveryAddress={deliveryAddress}/>;
43
43
  default:
@@ -46,6 +46,7 @@ var react_1 = __importStar(require("react"));
46
46
  var react_native_1 = require("react-native");
47
47
  var react_native_agora_1 = require("react-native-agora");
48
48
  var ui_1 = require("./ui");
49
+ var useCustomComponents_1 = require("../../../../common/hooks/useCustomComponents");
49
50
  var MutedIndicatorsContainer = function (_a) {
50
51
  var muted = _a.muted, isLocalUser = _a.isLocalUser;
51
52
  var theme = (0, useTheme_1.useTheme)();
@@ -60,9 +61,11 @@ var MutedIndicatorsContainer = function (_a) {
60
61
  </react_native_1.View>);
61
62
  };
62
63
  var BaseRenderUsers = function (props) {
64
+ var _a;
63
65
  var theme = (0, useTheme_1.useTheme)();
64
66
  var styles = getStyles(theme);
65
- var startPreview = props.startPreview, joinChannelSuccess = props.joinChannelSuccess, remoteUsers = props.remoteUsers, _a = props.localVideoMuted, localVideoMuted = _a === void 0 ? false : _a, _b = props.remoteVideoMuted, remoteVideoMuted = _b === void 0 ? false : _b, _c = props.remoteAudioMuted, remoteAudioMuted = _c === void 0 ? false : _c;
67
+ var screens = (0, useCustomComponents_1.useCustomComponents)().screens;
68
+ var startPreview = props.startPreview, joinChannelSuccess = props.joinChannelSuccess, remoteUsers = props.remoteUsers, _b = props.localVideoMuted, localVideoMuted = _b === void 0 ? false : _b, _c = props.remoteVideoMuted, remoteVideoMuted = _c === void 0 ? false : _c, _d = props.remoteAudioMuted, remoteAudioMuted = _d === void 0 ? false : _d;
66
69
  var showLargeVideo = function (user) { return (user.uid === 0 && !remoteUsers.length) || (remoteUsers.length && user.uid !== 0); };
67
70
  var renderUser = function (user) {
68
71
  var video = renderVideo(user);
@@ -95,7 +98,7 @@ var BaseRenderUsers = function (props) {
95
98
  {remoteUsers.length === 0
96
99
  ? renderVideoUser({ video: localVideoMuted })
97
100
  : renderVideoUser({ video: remoteVideoMuted, audio: remoteAudioMuted }, remoteUsers[0], react_native_agora_1.VideoSourceType.VideoSourceRemote)}
98
- {!!remoteUsers.length && (<ui_1.AgoraList style={styles.videoContainer} numColumns={undefined} horizontal={true} data={remoteUsers} renderItem={function () { return renderVideoUser({ video: localVideoMuted }); }}/>)}
101
+ {!!remoteUsers.length && (<ui_1.AgoraList style={[styles.videoContainer, (_a = screens === null || screens === void 0 ? void 0 : screens.VideoCallScreen) === null || _a === void 0 ? void 0 : _a.videoContainerStyle]} numColumns={undefined} horizontal={true} data={remoteUsers} renderItem={function () { return renderVideoUser({ video: localVideoMuted }); }}/>)}
99
102
  </>);
100
103
  };
101
104
  exports.BaseRenderUsers = BaseRenderUsers;