@abihealth/goapp-react-native 1.13.4

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 (282) hide show
  1. package/CHANGELOG.md +157 -0
  2. package/README.md +3 -0
  3. package/dist/common/animations/Animation.d.ts +10 -0
  4. package/dist/common/animations/Animation.js +38 -0
  5. package/dist/common/animations/FindingAnimation/index.d.ts +2 -0
  6. package/dist/common/animations/FindingAnimation/index.js +20 -0
  7. package/dist/common/animations/FindingAnimation/xml.d.ts +2 -0
  8. package/dist/common/animations/FindingAnimation/xml.js +7 -0
  9. package/dist/common/animations/HorizontalLoadingAnimation/index.d.ts +5 -0
  10. package/dist/common/animations/HorizontalLoadingAnimation/index.js +14 -0
  11. package/dist/common/animations/HorizontalLoadingAnimation/xml.d.ts +1 -0
  12. package/dist/common/animations/HorizontalLoadingAnimation/xml.js +5 -0
  13. package/dist/common/animations/LoadingCircleAnimation/index.d.ts +2 -0
  14. package/dist/common/animations/LoadingCircleAnimation/index.js +24 -0
  15. package/dist/common/animations/LoadingCircleAnimation/xml.d.ts +2 -0
  16. package/dist/common/animations/LoadingCircleAnimation/xml.js +5 -0
  17. package/dist/common/animations/LoadingDotsAnimation/index.d.ts +6 -0
  18. package/dist/common/animations/LoadingDotsAnimation/index.js +17 -0
  19. package/dist/common/animations/LoadingDotsAnimation/xml.d.ts +1 -0
  20. package/dist/common/animations/LoadingDotsAnimation/xml.js +5 -0
  21. package/dist/common/animations/LoadingHeart.d.ts +2 -0
  22. package/dist/common/animations/LoadingHeart.js +92 -0
  23. package/dist/common/api/auth.d.ts +2 -0
  24. package/dist/common/api/auth.js +18 -0
  25. package/dist/common/api/config.d.ts +7 -0
  26. package/dist/common/api/config.js +15 -0
  27. package/dist/common/api/consultation.d.ts +6 -0
  28. package/dist/common/api/consultation.js +80 -0
  29. package/dist/common/api/models/auth.d.ts +8 -0
  30. package/dist/common/api/models/auth.js +2 -0
  31. package/dist/common/api/models/consultation.d.ts +70 -0
  32. package/dist/common/api/models/consultation.js +23 -0
  33. package/dist/common/api/models/region.d.ts +1 -0
  34. package/dist/common/api/models/region.js +2 -0
  35. package/dist/common/api/models/user.d.ts +5 -0
  36. package/dist/common/api/models/user.js +2 -0
  37. package/dist/common/api/models/websocket.d.ts +6 -0
  38. package/dist/common/api/models/websocket.js +2 -0
  39. package/dist/common/api/user.d.ts +2 -0
  40. package/dist/common/api/user.js +10 -0
  41. package/dist/common/api/websocket.d.ts +6 -0
  42. package/dist/common/api/websocket.js +66 -0
  43. package/dist/common/assets/background-pattern.png +0 -0
  44. package/dist/common/components/ActionSheet.d.ts +6 -0
  45. package/dist/common/components/ActionSheet.js +43 -0
  46. package/dist/common/components/AnswerScreen/Card.d.ts +8 -0
  47. package/dist/common/components/AnswerScreen/Card.js +76 -0
  48. package/dist/common/components/AnswerScreen/CloseConsultationActionSheet.d.ts +2 -0
  49. package/dist/common/components/AnswerScreen/CloseConsultationActionSheet.js +109 -0
  50. package/dist/common/components/AnswerScreen/DeliveryAddressCard.d.ts +5 -0
  51. package/dist/common/components/AnswerScreen/DeliveryAddressCard.js +39 -0
  52. package/dist/common/components/AnswerScreen/PrescriptionCard/PrescriptionCardHeader.d.ts +5 -0
  53. package/dist/common/components/AnswerScreen/PrescriptionCard/PrescriptionCardHeader.js +79 -0
  54. package/dist/common/components/AnswerScreen/PrescriptionCard/index.d.ts +5 -0
  55. package/dist/common/components/AnswerScreen/PrescriptionCard/index.js +46 -0
  56. package/dist/common/components/AnswerScreen/Summary.d.ts +5 -0
  57. package/dist/common/components/AnswerScreen/Summary.js +49 -0
  58. package/dist/common/components/BackgroundPattern.d.ts +2 -0
  59. package/dist/common/components/BackgroundPattern.js +19 -0
  60. package/dist/common/components/Button.d.ts +14 -0
  61. package/dist/common/components/Button.js +124 -0
  62. package/dist/common/components/CancelConsultationButton.d.ts +2 -0
  63. package/dist/common/components/CancelConsultationButton.js +107 -0
  64. package/dist/common/components/Card.d.ts +2 -0
  65. package/dist/common/components/Card.js +13 -0
  66. package/dist/common/components/Checkbox.d.ts +7 -0
  67. package/dist/common/components/Checkbox.js +75 -0
  68. package/dist/common/components/DateInput.d.ts +8 -0
  69. package/dist/common/components/DateInput.js +76 -0
  70. package/dist/common/components/DoctorProfileCard.d.ts +8 -0
  71. package/dist/common/components/DoctorProfileCard.js +128 -0
  72. package/dist/common/components/FadeIn.d.ts +8 -0
  73. package/dist/common/components/FadeIn.js +66 -0
  74. package/dist/common/components/FormControl.d.ts +8 -0
  75. package/dist/common/components/FormControl.js +40 -0
  76. package/dist/common/components/FormWrapper.d.ts +11 -0
  77. package/dist/common/components/FormWrapper.js +46 -0
  78. package/dist/common/components/Header.d.ts +10 -0
  79. package/dist/common/components/Header.js +109 -0
  80. package/dist/common/components/Input.d.ts +8 -0
  81. package/dist/common/components/Input.js +74 -0
  82. package/dist/common/components/Modal/AttachmentPreviewModal.d.ts +9 -0
  83. package/dist/common/components/Modal/AttachmentPreviewModal.js +68 -0
  84. package/dist/common/components/Modal/CancelModal.d.ts +9 -0
  85. package/dist/common/components/Modal/CancelModal.js +16 -0
  86. package/dist/common/components/Modal/CloseConsultationModal.d.ts +9 -0
  87. package/dist/common/components/Modal/CloseConsultationModal.js +16 -0
  88. package/dist/common/components/Modal/DoctorProfileModal.d.ts +8 -0
  89. package/dist/common/components/Modal/DoctorProfileModal.js +47 -0
  90. package/dist/common/components/Modal/ModalHeader.d.ts +7 -0
  91. package/dist/common/components/Modal/ModalHeader.js +40 -0
  92. package/dist/common/components/Modal/TwoOptionsModal.d.ts +14 -0
  93. package/dist/common/components/Modal/TwoOptionsModal.js +58 -0
  94. package/dist/common/components/Modal/index.d.ts +7 -0
  95. package/dist/common/components/Modal/index.js +57 -0
  96. package/dist/common/components/PhoneInput.d.ts +11 -0
  97. package/dist/common/components/PhoneInput.js +81 -0
  98. package/dist/common/components/Reminder.d.ts +7 -0
  99. package/dist/common/components/Reminder.js +214 -0
  100. package/dist/common/components/ScreenWrapper.d.ts +12 -0
  101. package/dist/common/components/ScreenWrapper.js +46 -0
  102. package/dist/common/components/Select.d.ts +17 -0
  103. package/dist/common/components/Select.js +132 -0
  104. package/dist/common/components/Slide.d.ts +13 -0
  105. package/dist/common/components/Slide.js +83 -0
  106. package/dist/common/components/SlideUp.d.ts +8 -0
  107. package/dist/common/components/SlideUp.js +69 -0
  108. package/dist/common/components/Text.d.ts +22 -0
  109. package/dist/common/components/Text.js +130 -0
  110. package/dist/common/contexts/ConsultationContext.d.ts +22 -0
  111. package/dist/common/contexts/ConsultationContext.js +215 -0
  112. package/dist/common/contexts/FormContext.d.ts +25 -0
  113. package/dist/common/contexts/FormContext.js +55 -0
  114. package/dist/common/contexts/ThemeContext.d.ts +13 -0
  115. package/dist/common/contexts/ThemeContext.js +18 -0
  116. package/dist/common/hooks/useConsultation.d.ts +13 -0
  117. package/dist/common/hooks/useConsultation.js +166 -0
  118. package/dist/common/hooks/useForm.d.ts +10 -0
  119. package/dist/common/hooks/useForm.js +107 -0
  120. package/dist/common/hooks/useHeader.d.ts +4 -0
  121. package/dist/common/hooks/useHeader.js +10 -0
  122. package/dist/common/hooks/useTheme.d.ts +2 -0
  123. package/dist/common/hooks/useTheme.js +26 -0
  124. package/dist/common/hooks/useUser.d.ts +4 -0
  125. package/dist/common/hooks/useUser.js +10 -0
  126. package/dist/common/icons/AbiLogoIcon.d.ts +2 -0
  127. package/dist/common/icons/AbiLogoIcon.js +53 -0
  128. package/dist/common/icons/BackArrowIcon.d.ts +2 -0
  129. package/dist/common/icons/BackArrowIcon.js +49 -0
  130. package/dist/common/icons/CalendarIcon.d.ts +3 -0
  131. package/dist/common/icons/CalendarIcon.js +43 -0
  132. package/dist/common/icons/CheckSuccessIcon.d.ts +3 -0
  133. package/dist/common/icons/CheckSuccessIcon.js +47 -0
  134. package/dist/common/icons/CloseIcon.d.ts +5 -0
  135. package/dist/common/icons/CloseIcon.js +51 -0
  136. package/dist/common/icons/DoctorIcon.d.ts +3 -0
  137. package/dist/common/icons/DoctorIcon.js +48 -0
  138. package/dist/common/icons/DoctorImagePlaceholderIcon.d.ts +5 -0
  139. package/dist/common/icons/DoctorImagePlaceholderIcon.js +64 -0
  140. package/dist/common/icons/DropdownIcon.d.ts +3 -0
  141. package/dist/common/icons/DropdownIcon.js +41 -0
  142. package/dist/common/icons/ExitIcon.d.ts +2 -0
  143. package/dist/common/icons/ExitIcon.js +58 -0
  144. package/dist/common/icons/InfoIcon.d.ts +2 -0
  145. package/dist/common/icons/InfoIcon.js +49 -0
  146. package/dist/common/icons/KoCircleIcon.d.ts +3 -0
  147. package/dist/common/icons/KoCircleIcon.js +42 -0
  148. package/dist/common/icons/MotorbikeIcon.d.ts +2 -0
  149. package/dist/common/icons/MotorbikeIcon.js +65 -0
  150. package/dist/common/icons/NoCaseFoundIcon.d.ts +3 -0
  151. package/dist/common/icons/NoCaseFoundIcon.js +55 -0
  152. package/dist/common/icons/PdfDownloadIcon.d.ts +2 -0
  153. package/dist/common/icons/PdfDownloadIcon.js +58 -0
  154. package/dist/common/icons/PdfIcon.d.ts +2 -0
  155. package/dist/common/icons/PdfIcon.js +50 -0
  156. package/dist/common/icons/PersonIcon.d.ts +3 -0
  157. package/dist/common/icons/PersonIcon.js +45 -0
  158. package/dist/common/icons/PillsIcon.d.ts +2 -0
  159. package/dist/common/icons/PillsIcon.js +52 -0
  160. package/dist/common/icons/PlaneIcon.d.ts +5 -0
  161. package/dist/common/icons/PlaneIcon.js +48 -0
  162. package/dist/common/icons/RatingIcon.d.ts +2 -0
  163. package/dist/common/icons/RatingIcon.js +53 -0
  164. package/dist/common/icons/StarIcon.d.ts +4 -0
  165. package/dist/common/icons/StarIcon.js +57 -0
  166. package/dist/common/icons/TextConsultationIcon.d.ts +4 -0
  167. package/dist/common/icons/TextConsultationIcon.js +53 -0
  168. package/dist/common/icons/TrashIcon.d.ts +2 -0
  169. package/dist/common/icons/TrashIcon.js +49 -0
  170. package/dist/common/icons/VideoConsultationIcon.d.ts +4 -0
  171. package/dist/common/icons/VideoConsultationIcon.js +50 -0
  172. package/dist/common/index.d.ts +57 -0
  173. package/dist/common/index.js +114 -0
  174. package/dist/common/locale/i18n.d.ts +5 -0
  175. package/dist/common/locale/i18n.js +79 -0
  176. package/dist/common/locale/translations/ar-AE.base.json +604 -0
  177. package/dist/common/locale/translations/ar-LB.base.json +604 -0
  178. package/dist/common/locale/translations/bg.base.json +488 -0
  179. package/dist/common/locale/translations/cs.base.json +499 -0
  180. package/dist/common/locale/translations/en.base.json +923 -0
  181. package/dist/common/locale/translations/es-MX.base.json +827 -0
  182. package/dist/common/locale/translations/es.base.json +827 -0
  183. package/dist/common/locale/translations/fr.base.json +605 -0
  184. package/dist/common/locale/translations/hu.base.json +488 -0
  185. package/dist/common/locale/translations/pl.base.json +487 -0
  186. package/dist/common/locale/translations/ro.base.json +501 -0
  187. package/dist/common/locale/translations/ru.base.json +603 -0
  188. package/dist/common/locale/translations/sk.base.json +535 -0
  189. package/dist/common/locale/translations/zh-HK.base.json +349 -0
  190. package/dist/common/locale/translations/zh-SG.base.json +603 -0
  191. package/dist/common/locale/translations/zh-TW.base.json +873 -0
  192. package/dist/common/screens/AnswerScreen.d.ts +11 -0
  193. package/dist/common/screens/AnswerScreen.js +101 -0
  194. package/dist/common/screens/MatchScreen.d.ts +5 -0
  195. package/dist/common/screens/MatchScreen.js +36 -0
  196. package/dist/common/screens/MatchingScreen.d.ts +2 -0
  197. package/dist/common/screens/MatchingScreen.js +41 -0
  198. package/dist/common/screens/NoConsultationFoundScreen.d.ts +2 -0
  199. package/dist/common/screens/NoConsultationFoundScreen.js +34 -0
  200. package/dist/common/screens/PreparingSummaryScreen.d.ts +5 -0
  201. package/dist/common/screens/PreparingSummaryScreen.js +35 -0
  202. package/dist/common/screens/RatingScreen.d.ts +2 -0
  203. package/dist/common/screens/RatingScreen.js +198 -0
  204. package/dist/common/screens/index.d.ts +3 -0
  205. package/dist/common/screens/index.js +29 -0
  206. package/dist/common/types/consultation.d.ts +93 -0
  207. package/dist/common/types/consultation.js +41 -0
  208. package/dist/common/types/deliveryAddress.d.ts +18 -0
  209. package/dist/common/types/deliveryAddress.js +11 -0
  210. package/dist/common/types/events.d.ts +13 -0
  211. package/dist/common/types/events.js +15 -0
  212. package/dist/common/types/prescription.d.ts +52 -0
  213. package/dist/common/types/prescription.js +31 -0
  214. package/dist/common/types/professional.d.ts +14 -0
  215. package/dist/common/types/professional.js +2 -0
  216. package/dist/common/types/theme.d.ts +82 -0
  217. package/dist/common/types/theme.js +58 -0
  218. package/dist/common/types/user.d.ts +10 -0
  219. package/dist/common/types/user.js +2 -0
  220. package/dist/common/utils/platform.d.ts +3 -0
  221. package/dist/common/utils/platform.js +7 -0
  222. package/dist/common/utils/professional.d.ts +2 -0
  223. package/dist/common/utils/professional.js +12 -0
  224. package/dist/common/utils/zod.d.ts +5 -0
  225. package/dist/common/utils/zod.js +19 -0
  226. package/dist/index.d.ts +65 -0
  227. package/dist/index.js +133 -0
  228. package/dist/video-consultations/animations/CallingAnimation/index.d.ts +2 -0
  229. package/dist/video-consultations/animations/CallingAnimation/index.js +17 -0
  230. package/dist/video-consultations/animations/CallingAnimation/xml.d.ts +2 -0
  231. package/dist/video-consultations/animations/CallingAnimation/xml.js +5 -0
  232. package/dist/video-consultations/api/models/video.d.ts +10 -0
  233. package/dist/video-consultations/api/models/video.js +2 -0
  234. package/dist/video-consultations/api/video.d.ts +3 -0
  235. package/dist/video-consultations/api/video.js +12 -0
  236. package/dist/video-consultations/components/AgoraWrapper/components/BaseRenderUsers.d.ts +12 -0
  237. package/dist/video-consultations/components/AgoraWrapper/components/BaseRenderUsers.js +174 -0
  238. package/dist/video-consultations/components/AgoraWrapper/components/BtnControls.d.ts +14 -0
  239. package/dist/video-consultations/components/AgoraWrapper/components/BtnControls.js +55 -0
  240. package/dist/video-consultations/components/AgoraWrapper/components/ui/index.d.ts +14 -0
  241. package/dist/video-consultations/components/AgoraWrapper/components/ui/index.js +100 -0
  242. package/dist/video-consultations/components/AgoraWrapper/index.d.ts +8 -0
  243. package/dist/video-consultations/components/AgoraWrapper/index.js +173 -0
  244. package/dist/video-consultations/components/Modal/EndVideoCallModal.d.ts +8 -0
  245. package/dist/video-consultations/components/Modal/EndVideoCallModal.js +15 -0
  246. package/dist/video-consultations/components/VideoConsultation.d.ts +7 -0
  247. package/dist/video-consultations/components/VideoConsultation.js +42 -0
  248. package/dist/video-consultations/helpers/eventHandler.d.ts +14 -0
  249. package/dist/video-consultations/helpers/eventHandler.js +61 -0
  250. package/dist/video-consultations/hooks/useInitRtcEngine.d.ts +15 -0
  251. package/dist/video-consultations/hooks/useInitRtcEngine.js +194 -0
  252. package/dist/video-consultations/icons/EndVideoCallIcon.d.ts +2 -0
  253. package/dist/video-consultations/icons/EndVideoCallIcon.js +51 -0
  254. package/dist/video-consultations/icons/HangUpIcon.d.ts +3 -0
  255. package/dist/video-consultations/icons/HangUpIcon.js +41 -0
  256. package/dist/video-consultations/icons/MicroOffIcon.d.ts +7 -0
  257. package/dist/video-consultations/icons/MicroOffIcon.js +47 -0
  258. package/dist/video-consultations/icons/MicroOnIcon.d.ts +3 -0
  259. package/dist/video-consultations/icons/MicroOnIcon.js +42 -0
  260. package/dist/video-consultations/icons/PersonIcon.d.ts +3 -0
  261. package/dist/video-consultations/icons/PersonIcon.js +45 -0
  262. package/dist/video-consultations/icons/SwitchCameraIcon.d.ts +3 -0
  263. package/dist/video-consultations/icons/SwitchCameraIcon.js +41 -0
  264. package/dist/video-consultations/icons/VideoOffIcon.d.ts +5 -0
  265. package/dist/video-consultations/icons/VideoOffIcon.js +44 -0
  266. package/dist/video-consultations/icons/VideoOnIcon.d.ts +3 -0
  267. package/dist/video-consultations/icons/VideoOnIcon.js +41 -0
  268. package/dist/video-consultations/index.d.ts +10 -0
  269. package/dist/video-consultations/index.js +24 -0
  270. package/dist/video-consultations/screens/DeliveryAddressScreen.d.ts +2 -0
  271. package/dist/video-consultations/screens/DeliveryAddressScreen.js +84 -0
  272. package/dist/video-consultations/screens/EndingVideoScreen.d.ts +5 -0
  273. package/dist/video-consultations/screens/EndingVideoScreen.js +27 -0
  274. package/dist/video-consultations/screens/JoinVideoCallScreen.d.ts +5 -0
  275. package/dist/video-consultations/screens/JoinVideoCallScreen.js +108 -0
  276. package/dist/video-consultations/screens/ProcessingPrescriptionScreen.d.ts +2 -0
  277. package/dist/video-consultations/screens/ProcessingPrescriptionScreen.js +32 -0
  278. package/dist/video-consultations/screens/VideoCallScreen.d.ts +3 -0
  279. package/dist/video-consultations/screens/VideoCallScreen.js +77 -0
  280. package/dist/video-consultations/utils/permission.d.ts +14 -0
  281. package/dist/video-consultations/utils/permission.js +97 -0
  282. package/package.json +58 -0
@@ -0,0 +1,18 @@
1
+ import { z } from 'zod';
2
+ export declare const HKDeliveryAddressSchema: z.ZodObject<{
3
+ house: z.ZodString;
4
+ building: z.ZodString;
5
+ street: z.ZodString;
6
+ district: z.ZodString;
7
+ }, "strip", z.ZodTypeAny, {
8
+ house?: string;
9
+ building?: string;
10
+ street?: string;
11
+ district?: string;
12
+ }, {
13
+ house?: string;
14
+ building?: string;
15
+ street?: string;
16
+ district?: string;
17
+ }>;
18
+ export type HKDeliveryAddress = z.infer<typeof HKDeliveryAddressSchema>;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HKDeliveryAddressSchema = void 0;
4
+ var zod_1 = require("zod");
5
+ var zod_2 = require("../utils/zod");
6
+ exports.HKDeliveryAddressSchema = zod_1.z.object({
7
+ house: zod_2.requiredString,
8
+ building: zod_2.requiredString,
9
+ street: zod_2.requiredString,
10
+ district: zod_2.requiredString
11
+ });
@@ -0,0 +1,13 @@
1
+ import { Consultation } from './consultation';
2
+ export declare enum CONSULTATION_EVENT {
3
+ CANCELED = "Canceled",
4
+ CLOSED = "Closed",
5
+ SUBMITTED = "Submitted",
6
+ CLAIMED = "Claimed",
7
+ VIDEO_CALL_STARTED = "VideoCallStarted",
8
+ VIDEO_CALL_ENDED = "VideoCallEnded",
9
+ DELIVERY_ADDRESS_SUBMITTED = "deliveryAddressSubmitted",
10
+ PRESCRIPTION_SUBMITTED = "prescriptionSubmitted",
11
+ SUMMARY_GENERATED = "summaryGenerated"
12
+ }
13
+ export type EventCallback = (_: Consultation) => void;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CONSULTATION_EVENT = void 0;
4
+ var CONSULTATION_EVENT;
5
+ (function (CONSULTATION_EVENT) {
6
+ CONSULTATION_EVENT["CANCELED"] = "Canceled";
7
+ CONSULTATION_EVENT["CLOSED"] = "Closed";
8
+ CONSULTATION_EVENT["SUBMITTED"] = "Submitted";
9
+ CONSULTATION_EVENT["CLAIMED"] = "Claimed";
10
+ CONSULTATION_EVENT["VIDEO_CALL_STARTED"] = "VideoCallStarted";
11
+ CONSULTATION_EVENT["VIDEO_CALL_ENDED"] = "VideoCallEnded";
12
+ CONSULTATION_EVENT["DELIVERY_ADDRESS_SUBMITTED"] = "deliveryAddressSubmitted";
13
+ CONSULTATION_EVENT["PRESCRIPTION_SUBMITTED"] = "prescriptionSubmitted";
14
+ CONSULTATION_EVENT["SUMMARY_GENERATED"] = "summaryGenerated";
15
+ })(CONSULTATION_EVENT || (exports.CONSULTATION_EVENT = CONSULTATION_EVENT = {}));
@@ -0,0 +1,52 @@
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
+ export declare enum PRESCRIPTION_STATUS {
10
+ WAITING_FOR_FULFILLMENT = "waitingForFulfillment",
11
+ ADDRESS_REJECTED = "addressRejected",
12
+ PROCESSING = "processing",
13
+ WAITING_FOR_PAYMENT = "waitingForPayment",
14
+ PAYMENT_REJECTED = "paymentRejected",
15
+ RESOLVED = "resolved",
16
+ ERROR = "error"
17
+ }
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
+ export declare enum PRESCRIPTION_INTEGRATION {
28
+ HEALTHMAIL = "healthmail",
29
+ HEALTHMAIL_ILH = "healthmail-ilh",
30
+ HEALTHMAIL_DOUGLASDALE = "healthmail-douglasdale",
31
+ HIN = "hin",
32
+ DOSE_SPOT = "doseSpot",
33
+ THREE_TREE = "3Tree",
34
+ SIGNATURERX = "signaturerx",
35
+ DEFAULT = "default"
36
+ }
37
+ export type Prescription = {
38
+ isRefused: boolean;
39
+ 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
+ };
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PRESCRIPTION_INTEGRATION = exports.PRESCRIPTION_FULFILLMENT_OPTION = exports.PRESCRIPTION_STATUS = void 0;
4
+ var PRESCRIPTION_STATUS;
5
+ (function (PRESCRIPTION_STATUS) {
6
+ PRESCRIPTION_STATUS["WAITING_FOR_FULFILLMENT"] = "waitingForFulfillment";
7
+ PRESCRIPTION_STATUS["ADDRESS_REJECTED"] = "addressRejected";
8
+ PRESCRIPTION_STATUS["PROCESSING"] = "processing";
9
+ PRESCRIPTION_STATUS["WAITING_FOR_PAYMENT"] = "waitingForPayment";
10
+ PRESCRIPTION_STATUS["PAYMENT_REJECTED"] = "paymentRejected";
11
+ PRESCRIPTION_STATUS["RESOLVED"] = "resolved";
12
+ PRESCRIPTION_STATUS["ERROR"] = "error";
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
+ var PRESCRIPTION_INTEGRATION;
22
+ (function (PRESCRIPTION_INTEGRATION) {
23
+ PRESCRIPTION_INTEGRATION["HEALTHMAIL"] = "healthmail";
24
+ PRESCRIPTION_INTEGRATION["HEALTHMAIL_ILH"] = "healthmail-ilh";
25
+ PRESCRIPTION_INTEGRATION["HEALTHMAIL_DOUGLASDALE"] = "healthmail-douglasdale";
26
+ PRESCRIPTION_INTEGRATION["HIN"] = "hin";
27
+ PRESCRIPTION_INTEGRATION["DOSE_SPOT"] = "doseSpot";
28
+ PRESCRIPTION_INTEGRATION["THREE_TREE"] = "3Tree";
29
+ PRESCRIPTION_INTEGRATION["SIGNATURERX"] = "signaturerx";
30
+ PRESCRIPTION_INTEGRATION["DEFAULT"] = "default";
31
+ })(PRESCRIPTION_INTEGRATION || (exports.PRESCRIPTION_INTEGRATION = PRESCRIPTION_INTEGRATION = {}));
@@ -0,0 +1,14 @@
1
+ export type License = {
2
+ licenseNumber: string;
3
+ countries: string[];
4
+ };
5
+ export type Professional = {
6
+ firstName: string;
7
+ lastName: string;
8
+ title: string;
9
+ specialties: string[];
10
+ licenses: License[];
11
+ profileUrl: string;
12
+ gender: string;
13
+ profileImage: string;
14
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,82 @@
1
+ import { ColorValue, StyleProp, ViewStyle } from 'react-native';
2
+ export type RecursivePartial<T> = {
3
+ [P in keyof T]?: RecursivePartial<T[P]>;
4
+ };
5
+ export type Shadow = {
6
+ shadowColor: ColorValue;
7
+ shadowOffset: {
8
+ width: number;
9
+ height: number;
10
+ };
11
+ shadowOpacity: number;
12
+ shadowRadius: number;
13
+ elevation: number;
14
+ };
15
+ export type Colors = {
16
+ white: ColorValue;
17
+ black: ColorValue;
18
+ gray: ColorValue;
19
+ darkGray: ColorValue;
20
+ text: ColorValue;
21
+ background: ColorValue;
22
+ primary: ColorValue;
23
+ primaryDark: ColorValue;
24
+ primaryLight: ColorValue;
25
+ secondary: ColorValue;
26
+ tertiary: ColorValue;
27
+ pattern: ColorValue;
28
+ rating: ColorValue;
29
+ warning: ColorValue;
30
+ success: ColorValue;
31
+ backdrop: ColorValue;
32
+ divider: ColorValue;
33
+ };
34
+ export type FontSize = {
35
+ sm: number;
36
+ base: number;
37
+ h1: number;
38
+ h2: number;
39
+ h3: number;
40
+ h4: number;
41
+ };
42
+ export type LineHeight = {
43
+ xxl: number;
44
+ xl: number;
45
+ base: number;
46
+ sm: number;
47
+ xs: number;
48
+ };
49
+ export type BorderRadius = {
50
+ sm: number;
51
+ md: number;
52
+ xl: number;
53
+ full: number;
54
+ };
55
+ export type Spacing = {
56
+ xxxs: number;
57
+ xxs: number;
58
+ xs: number;
59
+ sm: number;
60
+ md: number;
61
+ xl: number;
62
+ xxl: number;
63
+ };
64
+ export type Shadows = {
65
+ soft: Shadow;
66
+ strong: Shadow;
67
+ };
68
+ export type Components = {
69
+ videoCall?: {
70
+ endCall?: StyleProp<ViewStyle>;
71
+ };
72
+ };
73
+ export type Theme = {
74
+ colors: Colors;
75
+ fontSize: FontSize;
76
+ lineHeight: LineHeight;
77
+ borderRadius: BorderRadius;
78
+ spacing: Spacing;
79
+ shadows: Shadows;
80
+ components?: Components;
81
+ };
82
+ export declare const DEFAULT_THEME: Theme;
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DEFAULT_THEME = void 0;
4
+ exports.DEFAULT_THEME = {
5
+ colors: {
6
+ white: '#FFFFFF',
7
+ black: '#1A1A1A',
8
+ background: '#F4F4F4',
9
+ primary: '#0096D6',
10
+ primaryDark: '#0D7BA2',
11
+ primaryLight: '#E8F4FE',
12
+ secondary: '#FFFFFF',
13
+ tertiary: '#BBDEFB',
14
+ pattern: '#EBEEF0',
15
+ rating: '#FF9800',
16
+ warning: '#D8000C',
17
+ success: '#27AE60',
18
+ gray: '#C4C4C4',
19
+ backdrop: '#071E388C',
20
+ divider: '#D8D8D8',
21
+ text: '#161616',
22
+ darkGray: '#757575'
23
+ },
24
+ fontSize: {
25
+ sm: 14,
26
+ base: 16,
27
+ h1: 28,
28
+ h2: 24,
29
+ h3: 20,
30
+ h4: 18
31
+ },
32
+ lineHeight: {
33
+ xxl: 40,
34
+ xl: 36,
35
+ base: 24,
36
+ sm: 21,
37
+ xs: 19
38
+ },
39
+ borderRadius: {
40
+ sm: 4,
41
+ md: 8,
42
+ xl: 16,
43
+ full: 999
44
+ },
45
+ spacing: {
46
+ xxxs: 2,
47
+ xxs: 4,
48
+ xs: 8,
49
+ sm: 16,
50
+ md: 24,
51
+ xl: 32,
52
+ xxl: 40
53
+ },
54
+ shadows: {
55
+ soft: { shadowColor: '#757575', shadowOffset: { width: 0, height: 1 }, shadowOpacity: 0.16, shadowRadius: 1.51, elevation: 2 },
56
+ strong: { shadowColor: '#757575', shadowOffset: { width: 0, height: 3 }, shadowOpacity: 0.17, shadowRadius: 3.05, elevation: 4 }
57
+ }
58
+ };
@@ -0,0 +1,10 @@
1
+ export type User = {
2
+ id: string;
3
+ partnerUserId: string;
4
+ firstName: string;
5
+ lastName: string;
6
+ email: string;
7
+ address: string;
8
+ phone: string;
9
+ language: string;
10
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export declare const isAndroid: boolean;
2
+ export declare const isIOS: boolean;
3
+ export declare const isWeb: boolean;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isWeb = exports.isIOS = exports.isAndroid = void 0;
4
+ var react_native_1 = require("react-native");
5
+ exports.isAndroid = react_native_1.Platform.OS === 'android';
6
+ exports.isIOS = react_native_1.Platform.OS === 'ios';
7
+ exports.isWeb = react_native_1.Platform.OS === 'web';
@@ -0,0 +1,2 @@
1
+ import { Professional } from '../types/professional';
2
+ export declare const getProfessionalLabel: ({ title, gender, firstName }: Professional) => string;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.getProfessionalLabel = void 0;
7
+ var i18n_1 = __importDefault(require("../locale/i18n"));
8
+ var getProfessionalLabel = function (_a) {
9
+ var title = _a.title, gender = _a.gender, firstName = _a.firstName;
10
+ return i18n_1.default.t("".concat(title, "_title_").concat(gender), { name: firstName });
11
+ };
12
+ exports.getProfessionalLabel = getProfessionalLabel;
@@ -0,0 +1,5 @@
1
+ import { z } from 'zod';
2
+ export declare const requiredString: z.ZodString;
3
+ export declare const validPhone: z.ZodEffects<z.ZodString, string, string>;
4
+ export declare const requiredCheckbox: z.ZodEffects<z.ZodBoolean, boolean, boolean>;
5
+ export declare const parseErrors: <T extends z.AnyZodObject>(error: z.ZodError) => Record<keyof z.infer<T>, string>;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.parseErrors = exports.requiredCheckbox = exports.validPhone = exports.requiredString = void 0;
7
+ var phone_1 = __importDefault(require("phone"));
8
+ var zod_1 = require("zod");
9
+ exports.requiredString = zod_1.z.string().min(1, { message: 'Required field' });
10
+ exports.validPhone = zod_1.z.string().refine(function (val) { return (0, phone_1.default)(val).isValid; }, { message: 'Invalid phone number' });
11
+ exports.requiredCheckbox = zod_1.z.boolean().refine(function (val) { return val === true; }, { message: 'Required' });
12
+ var parseErrors = function (error) {
13
+ return error.errors.reduce(function (acc, curr) {
14
+ var key = curr.path[0];
15
+ acc[key] = curr.message;
16
+ return acc;
17
+ }, {});
18
+ };
19
+ exports.parseErrors = parseErrors;
@@ -0,0 +1,65 @@
1
+ import { CallingAnimation } from './video-consultations/animations/CallingAnimation';
2
+ import AgoraWrapper from './video-consultations/components/AgoraWrapper';
3
+ import { EndVideoCallModal } from './video-consultations/components/Modal/EndVideoCallModal';
4
+ import { VideoConsultation } from './video-consultations/components/VideoConsultation';
5
+ import { DeliveryAddressScreen } from './video-consultations/screens/DeliveryAddressScreen';
6
+ import { EndingVideoScreen } from './video-consultations/screens/EndingVideoScreen';
7
+ import { JoinVideoCallScreen } from './video-consultations/screens/JoinVideoCallScreen';
8
+ import { ProcessingPrescriptionScreen } from './video-consultations/screens/ProcessingPrescriptionScreen';
9
+ import VideoCallScreen from './video-consultations/screens/VideoCallScreen';
10
+ import { useTranslation } from 'react-i18next';
11
+ import { Animation } from './common/animations/Animation';
12
+ import { FindingAnimation } from './common/animations/FindingAnimation';
13
+ import { LoadingCircleAnimation } from './common/animations/LoadingCircleAnimation';
14
+ import { LoadingDotsAnimation } from './common/animations/LoadingDotsAnimation';
15
+ import { authorization } from './common/api/auth';
16
+ import { BackgroundPattern } from './common/components/BackgroundPattern';
17
+ import { Button } from './common/components/Button';
18
+ import { CancelConsultationButton } from './common/components/CancelConsultationButton';
19
+ import { Card } from './common/components/Card';
20
+ import { Checkbox } from './common/components/Checkbox';
21
+ import { DateInput } from './common/components/DateInput';
22
+ import { DoctorProfileCard } from './common/components/DoctorProfileCard';
23
+ import { FadeIn } from './common/components/FadeIn';
24
+ import { FormWrapper } from './common/components/FormWrapper';
25
+ import { Header } from './common/components/Header';
26
+ import { Input } from './common/components/Input';
27
+ import { Modal } from './common/components/Modal';
28
+ import { AttachmentPreviewModal } from './common/components/Modal/AttachmentPreviewModal';
29
+ import { CancelModal } from './common/components/Modal/CancelModal';
30
+ import { CloseConsultationModal } from './common/components/Modal/CloseConsultationModal';
31
+ import { DoctorProfileModal } from './common/components/Modal/DoctorProfileModal';
32
+ import { TwoOptionsModal } from './common/components/Modal/TwoOptionsModal';
33
+ import { PhoneInput } from './common/components/PhoneInput';
34
+ import { Reminder } from './common/components/Reminder';
35
+ import { ScreenWrapper } from './common/components/ScreenWrapper';
36
+ import { Select } from './common/components/Select';
37
+ import { Slide } from './common/components/Slide';
38
+ import { Text } from './common/components/Text';
39
+ import { ConsultationProvider } from './common/contexts/ConsultationContext';
40
+ import { useConsultation } from './common/hooks/useConsultation';
41
+ import { useTheme } from './common/hooks/useTheme';
42
+ import { AbiLogoIcon } from './common/icons/AbiLogoIcon';
43
+ import { BackArrowIcon } from './common/icons/BackArrowIcon';
44
+ import { CloseIcon } from './common/icons/CloseIcon';
45
+ import { DoctorIcon } from './common/icons/DoctorIcon';
46
+ import { InfoIcon } from './common/icons/InfoIcon';
47
+ import { PlaneIcon } from './common/icons/PlaneIcon';
48
+ import { TextConsultationIcon } from './common/icons/TextConsultationIcon';
49
+ import { VideoConsultationIcon } from './common/icons/VideoConsultationIcon';
50
+ import { AnswerScreen } from './common/screens/AnswerScreen';
51
+ import { MatchingScreen } from './common/screens/MatchingScreen';
52
+ import { MatchScreen } from './common/screens/MatchScreen';
53
+ import { NoConsultationFoundScreen } from './common/screens/NoConsultationFoundScreen';
54
+ import { PreparingSummaryScreen } from './common/screens/PreparingSummaryScreen';
55
+ import { RatingScreen } from './common/screens/RatingScreen';
56
+ import { CASE_TYPE, Consultation, CONSULTATION_STATUS, Question } from './common/types/consultation';
57
+ import { HKDeliveryAddressSchema } from './common/types/deliveryAddress';
58
+ import { Prescription, PRESCRIPTION_STATUS } from './common/types/prescription';
59
+ import { License, Professional } from './common/types/professional';
60
+ import { Theme } from './common/types/theme';
61
+ import { isAndroid, isIOS } from './common/utils/platform';
62
+ import { getProfessionalLabel } from './common/utils/professional';
63
+ import { requiredCheckbox, requiredString, validPhone } from './common/utils/zod';
64
+ export { AbiLogoIcon, AgoraWrapper, Animation, AnswerScreen, AttachmentPreviewModal, authorization, BackArrowIcon, BackgroundPattern, Button, CallingAnimation, CancelConsultationButton, CancelModal, Card, CASE_TYPE, Checkbox, CloseConsultationModal, CloseIcon, Consultation, CONSULTATION_STATUS, // TODO check this after last refactor
65
+ ConsultationProvider, DateInput, DeliveryAddressScreen, DoctorIcon, DoctorProfileCard, DoctorProfileModal, EndingVideoScreen, EndVideoCallModal, FadeIn, FindingAnimation, FormWrapper, getProfessionalLabel, Header, HKDeliveryAddressSchema, InfoIcon, Input, isAndroid, isIOS, JoinVideoCallScreen, License, LoadingCircleAnimation, LoadingDotsAnimation, MatchingScreen, MatchScreen, Modal, NoConsultationFoundScreen, PhoneInput, PlaneIcon, PreparingSummaryScreen, Prescription, PRESCRIPTION_STATUS, ProcessingPrescriptionScreen, Professional, Question, RatingScreen, Reminder, requiredCheckbox, requiredString, ScreenWrapper, Select, Slide, Text, TextConsultationIcon, Theme, TwoOptionsModal, useConsultation, useTheme, useTranslation, validPhone, VideoCallScreen, VideoConsultation, VideoConsultationIcon };
package/dist/index.js ADDED
@@ -0,0 +1,133 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.Reminder = exports.RatingScreen = exports.ProcessingPrescriptionScreen = 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.HKDeliveryAddressSchema = exports.Header = exports.getProfessionalLabel = exports.FormWrapper = 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.authorization = 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.Text = exports.Slide = exports.Select = exports.ScreenWrapper = exports.requiredString = exports.requiredCheckbox = void 0;
8
+ var CallingAnimation_1 = require("./video-consultations/animations/CallingAnimation");
9
+ Object.defineProperty(exports, "CallingAnimation", { enumerable: true, get: function () { return CallingAnimation_1.CallingAnimation; } });
10
+ var AgoraWrapper_1 = __importDefault(require("./video-consultations/components/AgoraWrapper"));
11
+ exports.AgoraWrapper = AgoraWrapper_1.default;
12
+ var EndVideoCallModal_1 = require("./video-consultations/components/Modal/EndVideoCallModal");
13
+ Object.defineProperty(exports, "EndVideoCallModal", { enumerable: true, get: function () { return EndVideoCallModal_1.EndVideoCallModal; } });
14
+ var VideoConsultation_1 = require("./video-consultations/components/VideoConsultation");
15
+ Object.defineProperty(exports, "VideoConsultation", { enumerable: true, get: function () { return VideoConsultation_1.VideoConsultation; } });
16
+ var DeliveryAddressScreen_1 = require("./video-consultations/screens/DeliveryAddressScreen");
17
+ Object.defineProperty(exports, "DeliveryAddressScreen", { enumerable: true, get: function () { return DeliveryAddressScreen_1.DeliveryAddressScreen; } });
18
+ var EndingVideoScreen_1 = require("./video-consultations/screens/EndingVideoScreen");
19
+ Object.defineProperty(exports, "EndingVideoScreen", { enumerable: true, get: function () { return EndingVideoScreen_1.EndingVideoScreen; } });
20
+ var JoinVideoCallScreen_1 = require("./video-consultations/screens/JoinVideoCallScreen");
21
+ Object.defineProperty(exports, "JoinVideoCallScreen", { enumerable: true, get: function () { return JoinVideoCallScreen_1.JoinVideoCallScreen; } });
22
+ var ProcessingPrescriptionScreen_1 = require("./video-consultations/screens/ProcessingPrescriptionScreen");
23
+ Object.defineProperty(exports, "ProcessingPrescriptionScreen", { enumerable: true, get: function () { return ProcessingPrescriptionScreen_1.ProcessingPrescriptionScreen; } });
24
+ var VideoCallScreen_1 = __importDefault(require("./video-consultations/screens/VideoCallScreen"));
25
+ exports.VideoCallScreen = VideoCallScreen_1.default;
26
+ var react_i18next_1 = require("react-i18next");
27
+ Object.defineProperty(exports, "useTranslation", { enumerable: true, get: function () { return react_i18next_1.useTranslation; } });
28
+ var Animation_1 = require("./common/animations/Animation");
29
+ Object.defineProperty(exports, "Animation", { enumerable: true, get: function () { return Animation_1.Animation; } });
30
+ var FindingAnimation_1 = require("./common/animations/FindingAnimation");
31
+ Object.defineProperty(exports, "FindingAnimation", { enumerable: true, get: function () { return FindingAnimation_1.FindingAnimation; } });
32
+ var LoadingCircleAnimation_1 = require("./common/animations/LoadingCircleAnimation");
33
+ Object.defineProperty(exports, "LoadingCircleAnimation", { enumerable: true, get: function () { return LoadingCircleAnimation_1.LoadingCircleAnimation; } });
34
+ var LoadingDotsAnimation_1 = require("./common/animations/LoadingDotsAnimation");
35
+ Object.defineProperty(exports, "LoadingDotsAnimation", { enumerable: true, get: function () { return LoadingDotsAnimation_1.LoadingDotsAnimation; } });
36
+ var auth_1 = require("./common/api/auth");
37
+ Object.defineProperty(exports, "authorization", { enumerable: true, get: function () { return auth_1.authorization; } });
38
+ var BackgroundPattern_1 = require("./common/components/BackgroundPattern");
39
+ Object.defineProperty(exports, "BackgroundPattern", { enumerable: true, get: function () { return BackgroundPattern_1.BackgroundPattern; } });
40
+ var Button_1 = require("./common/components/Button");
41
+ Object.defineProperty(exports, "Button", { enumerable: true, get: function () { return Button_1.Button; } });
42
+ var CancelConsultationButton_1 = require("./common/components/CancelConsultationButton");
43
+ Object.defineProperty(exports, "CancelConsultationButton", { enumerable: true, get: function () { return CancelConsultationButton_1.CancelConsultationButton; } });
44
+ var Card_1 = require("./common/components/Card");
45
+ Object.defineProperty(exports, "Card", { enumerable: true, get: function () { return Card_1.Card; } });
46
+ var Checkbox_1 = require("./common/components/Checkbox");
47
+ Object.defineProperty(exports, "Checkbox", { enumerable: true, get: function () { return Checkbox_1.Checkbox; } });
48
+ var DateInput_1 = require("./common/components/DateInput");
49
+ Object.defineProperty(exports, "DateInput", { enumerable: true, get: function () { return DateInput_1.DateInput; } });
50
+ var DoctorProfileCard_1 = require("./common/components/DoctorProfileCard");
51
+ Object.defineProperty(exports, "DoctorProfileCard", { enumerable: true, get: function () { return DoctorProfileCard_1.DoctorProfileCard; } });
52
+ var FadeIn_1 = require("./common/components/FadeIn");
53
+ Object.defineProperty(exports, "FadeIn", { enumerable: true, get: function () { return FadeIn_1.FadeIn; } });
54
+ var FormWrapper_1 = require("./common/components/FormWrapper");
55
+ Object.defineProperty(exports, "FormWrapper", { enumerable: true, get: function () { return FormWrapper_1.FormWrapper; } });
56
+ var Header_1 = require("./common/components/Header");
57
+ Object.defineProperty(exports, "Header", { enumerable: true, get: function () { return Header_1.Header; } });
58
+ var Input_1 = require("./common/components/Input");
59
+ Object.defineProperty(exports, "Input", { enumerable: true, get: function () { return Input_1.Input; } });
60
+ var Modal_1 = require("./common/components/Modal");
61
+ Object.defineProperty(exports, "Modal", { enumerable: true, get: function () { return Modal_1.Modal; } });
62
+ var AttachmentPreviewModal_1 = require("./common/components/Modal/AttachmentPreviewModal");
63
+ Object.defineProperty(exports, "AttachmentPreviewModal", { enumerable: true, get: function () { return AttachmentPreviewModal_1.AttachmentPreviewModal; } });
64
+ var CancelModal_1 = require("./common/components/Modal/CancelModal");
65
+ Object.defineProperty(exports, "CancelModal", { enumerable: true, get: function () { return CancelModal_1.CancelModal; } });
66
+ var CloseConsultationModal_1 = require("./common/components/Modal/CloseConsultationModal");
67
+ Object.defineProperty(exports, "CloseConsultationModal", { enumerable: true, get: function () { return CloseConsultationModal_1.CloseConsultationModal; } });
68
+ var DoctorProfileModal_1 = require("./common/components/Modal/DoctorProfileModal");
69
+ Object.defineProperty(exports, "DoctorProfileModal", { enumerable: true, get: function () { return DoctorProfileModal_1.DoctorProfileModal; } });
70
+ var TwoOptionsModal_1 = require("./common/components/Modal/TwoOptionsModal");
71
+ Object.defineProperty(exports, "TwoOptionsModal", { enumerable: true, get: function () { return TwoOptionsModal_1.TwoOptionsModal; } });
72
+ var PhoneInput_1 = require("./common/components/PhoneInput");
73
+ Object.defineProperty(exports, "PhoneInput", { enumerable: true, get: function () { return PhoneInput_1.PhoneInput; } });
74
+ var Reminder_1 = require("./common/components/Reminder");
75
+ Object.defineProperty(exports, "Reminder", { enumerable: true, get: function () { return Reminder_1.Reminder; } });
76
+ var ScreenWrapper_1 = require("./common/components/ScreenWrapper");
77
+ Object.defineProperty(exports, "ScreenWrapper", { enumerable: true, get: function () { return ScreenWrapper_1.ScreenWrapper; } });
78
+ var Select_1 = require("./common/components/Select");
79
+ Object.defineProperty(exports, "Select", { enumerable: true, get: function () { return Select_1.Select; } });
80
+ var Slide_1 = require("./common/components/Slide");
81
+ Object.defineProperty(exports, "Slide", { enumerable: true, get: function () { return Slide_1.Slide; } });
82
+ var Text_1 = require("./common/components/Text");
83
+ Object.defineProperty(exports, "Text", { enumerable: true, get: function () { return Text_1.Text; } });
84
+ var ConsultationContext_1 = require("./common/contexts/ConsultationContext");
85
+ Object.defineProperty(exports, "ConsultationProvider", { enumerable: true, get: function () { return ConsultationContext_1.ConsultationProvider; } });
86
+ var useConsultation_1 = require("./common/hooks/useConsultation");
87
+ Object.defineProperty(exports, "useConsultation", { enumerable: true, get: function () { return useConsultation_1.useConsultation; } });
88
+ var useTheme_1 = require("./common/hooks/useTheme");
89
+ Object.defineProperty(exports, "useTheme", { enumerable: true, get: function () { return useTheme_1.useTheme; } });
90
+ var AbiLogoIcon_1 = require("./common/icons/AbiLogoIcon");
91
+ Object.defineProperty(exports, "AbiLogoIcon", { enumerable: true, get: function () { return AbiLogoIcon_1.AbiLogoIcon; } });
92
+ var BackArrowIcon_1 = require("./common/icons/BackArrowIcon");
93
+ Object.defineProperty(exports, "BackArrowIcon", { enumerable: true, get: function () { return BackArrowIcon_1.BackArrowIcon; } });
94
+ var CloseIcon_1 = require("./common/icons/CloseIcon");
95
+ Object.defineProperty(exports, "CloseIcon", { enumerable: true, get: function () { return CloseIcon_1.CloseIcon; } });
96
+ var DoctorIcon_1 = require("./common/icons/DoctorIcon");
97
+ Object.defineProperty(exports, "DoctorIcon", { enumerable: true, get: function () { return DoctorIcon_1.DoctorIcon; } });
98
+ var InfoIcon_1 = require("./common/icons/InfoIcon");
99
+ Object.defineProperty(exports, "InfoIcon", { enumerable: true, get: function () { return InfoIcon_1.InfoIcon; } });
100
+ var PlaneIcon_1 = require("./common/icons/PlaneIcon");
101
+ Object.defineProperty(exports, "PlaneIcon", { enumerable: true, get: function () { return PlaneIcon_1.PlaneIcon; } });
102
+ var TextConsultationIcon_1 = require("./common/icons/TextConsultationIcon");
103
+ Object.defineProperty(exports, "TextConsultationIcon", { enumerable: true, get: function () { return TextConsultationIcon_1.TextConsultationIcon; } });
104
+ var VideoConsultationIcon_1 = require("./common/icons/VideoConsultationIcon");
105
+ Object.defineProperty(exports, "VideoConsultationIcon", { enumerable: true, get: function () { return VideoConsultationIcon_1.VideoConsultationIcon; } });
106
+ var AnswerScreen_1 = require("./common/screens/AnswerScreen");
107
+ Object.defineProperty(exports, "AnswerScreen", { enumerable: true, get: function () { return AnswerScreen_1.AnswerScreen; } });
108
+ var MatchingScreen_1 = require("./common/screens/MatchingScreen");
109
+ Object.defineProperty(exports, "MatchingScreen", { enumerable: true, get: function () { return MatchingScreen_1.MatchingScreen; } });
110
+ var MatchScreen_1 = require("./common/screens/MatchScreen");
111
+ Object.defineProperty(exports, "MatchScreen", { enumerable: true, get: function () { return MatchScreen_1.MatchScreen; } });
112
+ var NoConsultationFoundScreen_1 = require("./common/screens/NoConsultationFoundScreen");
113
+ Object.defineProperty(exports, "NoConsultationFoundScreen", { enumerable: true, get: function () { return NoConsultationFoundScreen_1.NoConsultationFoundScreen; } });
114
+ var PreparingSummaryScreen_1 = require("./common/screens/PreparingSummaryScreen");
115
+ Object.defineProperty(exports, "PreparingSummaryScreen", { enumerable: true, get: function () { return PreparingSummaryScreen_1.PreparingSummaryScreen; } });
116
+ var RatingScreen_1 = require("./common/screens/RatingScreen");
117
+ Object.defineProperty(exports, "RatingScreen", { enumerable: true, get: function () { return RatingScreen_1.RatingScreen; } });
118
+ var consultation_1 = require("./common/types/consultation");
119
+ Object.defineProperty(exports, "CASE_TYPE", { enumerable: true, get: function () { return consultation_1.CASE_TYPE; } });
120
+ Object.defineProperty(exports, "CONSULTATION_STATUS", { enumerable: true, get: function () { return consultation_1.CONSULTATION_STATUS; } });
121
+ var deliveryAddress_1 = require("./common/types/deliveryAddress");
122
+ Object.defineProperty(exports, "HKDeliveryAddressSchema", { enumerable: true, get: function () { return deliveryAddress_1.HKDeliveryAddressSchema; } });
123
+ var prescription_1 = require("./common/types/prescription");
124
+ Object.defineProperty(exports, "PRESCRIPTION_STATUS", { enumerable: true, get: function () { return prescription_1.PRESCRIPTION_STATUS; } });
125
+ var platform_1 = require("./common/utils/platform");
126
+ Object.defineProperty(exports, "isAndroid", { enumerable: true, get: function () { return platform_1.isAndroid; } });
127
+ Object.defineProperty(exports, "isIOS", { enumerable: true, get: function () { return platform_1.isIOS; } });
128
+ var professional_1 = require("./common/utils/professional");
129
+ Object.defineProperty(exports, "getProfessionalLabel", { enumerable: true, get: function () { return professional_1.getProfessionalLabel; } });
130
+ var zod_1 = require("./common/utils/zod");
131
+ Object.defineProperty(exports, "requiredCheckbox", { enumerable: true, get: function () { return zod_1.requiredCheckbox; } });
132
+ Object.defineProperty(exports, "requiredString", { enumerable: true, get: function () { return zod_1.requiredString; } });
133
+ Object.defineProperty(exports, "validPhone", { enumerable: true, get: function () { return zod_1.validPhone; } });
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const CallingAnimation: () => React.JSX.Element;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.CallingAnimation = void 0;
7
+ var index_1 = require("../../../common/index");
8
+ var react_1 = __importDefault(require("react"));
9
+ var react_native_1 = require("react-native");
10
+ var xml_1 = require("./xml");
11
+ var windowWidth = react_native_1.Dimensions.get('window').width;
12
+ var width = windowWidth * 0.7;
13
+ var CallingAnimation = function () {
14
+ var colors = (0, index_1.useTheme)().colors;
15
+ return <index_1.Animation source={(0, xml_1.getXml)(colors)} width={width} height={width}/>;
16
+ };
17
+ exports.CallingAnimation = CallingAnimation;
@@ -0,0 +1,2 @@
1
+ import { Colors } from '../../../common/types/theme';
2
+ export declare const getXml: (colors: Colors) => string;