@awell-health/awell-extensions 1.0.108 → 1.0.110

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 (353) hide show
  1. package/dist/extensions/healthie/actions/applyTagToPatient/applyTagToPatient.d.ts +4 -0
  2. package/dist/extensions/healthie/actions/{applyTagToPatient.js → applyTagToPatient/applyTagToPatient.js} +6 -22
  3. package/dist/extensions/healthie/actions/applyTagToPatient/applyTagToPatient.js.map +1 -0
  4. package/dist/extensions/healthie/actions/applyTagToPatient/applyTagToPatient.test.d.ts +1 -0
  5. package/dist/extensions/healthie/actions/applyTagToPatient/applyTagToPatient.test.js +33 -0
  6. package/dist/extensions/healthie/actions/applyTagToPatient/applyTagToPatient.test.js.map +1 -0
  7. package/dist/extensions/healthie/actions/{applyTagToPatient.d.ts → applyTagToPatient/config/fields.d.ts} +2 -5
  8. package/dist/extensions/healthie/actions/applyTagToPatient/config/fields.js +21 -0
  9. package/dist/extensions/healthie/actions/applyTagToPatient/config/fields.js.map +1 -0
  10. package/dist/extensions/healthie/actions/applyTagToPatient/config/index.d.ts +1 -0
  11. package/dist/extensions/healthie/actions/applyTagToPatient/config/index.js +6 -0
  12. package/dist/extensions/healthie/actions/applyTagToPatient/config/index.js.map +1 -0
  13. package/dist/extensions/healthie/actions/applyTagToPatient/index.d.ts +1 -0
  14. package/dist/extensions/healthie/actions/applyTagToPatient/index.js +18 -0
  15. package/dist/extensions/healthie/actions/applyTagToPatient/index.js.map +1 -0
  16. package/dist/extensions/healthie/actions/archivePatient/archivePatient.d.ts +4 -0
  17. package/dist/extensions/healthie/actions/{archivePatient.js → archivePatient/archivePatient.js} +6 -15
  18. package/dist/extensions/healthie/actions/archivePatient/archivePatient.js.map +1 -0
  19. package/dist/extensions/healthie/actions/archivePatient/archivePatient.test.d.ts +1 -0
  20. package/dist/extensions/healthie/actions/archivePatient/archivePatient.test.js +42 -0
  21. package/dist/extensions/healthie/actions/archivePatient/archivePatient.test.js.map +1 -0
  22. package/dist/extensions/healthie/actions/archivePatient/config/fields.d.ts +10 -0
  23. package/dist/extensions/healthie/actions/archivePatient/config/fields.js +14 -0
  24. package/dist/extensions/healthie/actions/archivePatient/config/fields.js.map +1 -0
  25. package/dist/extensions/healthie/actions/archivePatient/config/index.d.ts +1 -0
  26. package/dist/extensions/healthie/actions/archivePatient/config/index.js +6 -0
  27. package/dist/extensions/healthie/actions/archivePatient/config/index.js.map +1 -0
  28. package/dist/extensions/healthie/actions/archivePatient/index.d.ts +1 -0
  29. package/dist/extensions/healthie/actions/archivePatient/index.js +18 -0
  30. package/dist/extensions/healthie/actions/archivePatient/index.js.map +1 -0
  31. package/dist/extensions/healthie/actions/assignPatientToGroup/assignPatientToGroup.d.ts +4 -0
  32. package/dist/extensions/healthie/actions/{assignPatientToGroup.js → assignPatientToGroup/assignPatientToGroup.js} +6 -22
  33. package/dist/extensions/healthie/actions/assignPatientToGroup/assignPatientToGroup.js.map +1 -0
  34. package/dist/extensions/healthie/actions/assignPatientToGroup/assignPatientToGroup.test.d.ts +1 -0
  35. package/dist/extensions/healthie/actions/assignPatientToGroup/assignPatientToGroup.test.js +42 -0
  36. package/dist/extensions/healthie/actions/assignPatientToGroup/assignPatientToGroup.test.js.map +1 -0
  37. package/dist/extensions/healthie/actions/{assignPatientToGroup.d.ts → assignPatientToGroup/config/fields.d.ts} +2 -5
  38. package/dist/extensions/healthie/actions/assignPatientToGroup/config/fields.js +21 -0
  39. package/dist/extensions/healthie/actions/assignPatientToGroup/config/fields.js.map +1 -0
  40. package/dist/extensions/healthie/actions/assignPatientToGroup/config/index.d.ts +1 -0
  41. package/dist/extensions/healthie/actions/assignPatientToGroup/config/index.js +6 -0
  42. package/dist/extensions/healthie/actions/assignPatientToGroup/config/index.js.map +1 -0
  43. package/dist/extensions/healthie/actions/assignPatientToGroup/index.d.ts +1 -0
  44. package/dist/extensions/healthie/actions/assignPatientToGroup/index.js +18 -0
  45. package/dist/extensions/healthie/actions/assignPatientToGroup/index.js.map +1 -0
  46. package/dist/extensions/healthie/actions/cancelAppointment/cancelAppointment.d.ts +4 -0
  47. package/dist/extensions/healthie/actions/{cancelAppointment.js → cancelAppointment/cancelAppointment.js} +6 -15
  48. package/dist/extensions/healthie/actions/cancelAppointment/cancelAppointment.js.map +1 -0
  49. package/dist/extensions/healthie/actions/cancelAppointment/cancelAppointment.test.d.ts +1 -0
  50. package/dist/extensions/healthie/actions/cancelAppointment/cancelAppointment.test.js +37 -0
  51. package/dist/extensions/healthie/actions/cancelAppointment/cancelAppointment.test.js.map +1 -0
  52. package/dist/extensions/healthie/actions/cancelAppointment/config/fields.d.ts +10 -0
  53. package/dist/extensions/healthie/actions/cancelAppointment/config/fields.js +14 -0
  54. package/dist/extensions/healthie/actions/cancelAppointment/config/fields.js.map +1 -0
  55. package/dist/extensions/healthie/actions/cancelAppointment/config/index.d.ts +1 -0
  56. package/dist/extensions/healthie/actions/cancelAppointment/config/index.js +6 -0
  57. package/dist/extensions/healthie/actions/cancelAppointment/config/index.js.map +1 -0
  58. package/dist/extensions/healthie/actions/cancelAppointment/index.d.ts +1 -0
  59. package/dist/extensions/healthie/actions/cancelAppointment/index.js +6 -0
  60. package/dist/extensions/healthie/actions/cancelAppointment/index.js.map +1 -0
  61. package/dist/extensions/healthie/actions/closeChatConversation/closeChatConversation.d.ts +4 -0
  62. package/dist/extensions/healthie/actions/{closeChatConversation.js → closeChatConversation/closeChatConversation.js} +6 -22
  63. package/dist/extensions/healthie/actions/closeChatConversation/closeChatConversation.js.map +1 -0
  64. package/dist/extensions/healthie/actions/closeChatConversation/closeChatConversation.test.d.ts +1 -0
  65. package/dist/extensions/healthie/actions/closeChatConversation/closeChatConversation.test.js +38 -0
  66. package/dist/extensions/healthie/actions/closeChatConversation/closeChatConversation.test.js.map +1 -0
  67. package/dist/extensions/healthie/actions/{closeChatConversation.d.ts → closeChatConversation/config/fields.d.ts} +2 -5
  68. package/dist/extensions/healthie/actions/closeChatConversation/config/fields.js +21 -0
  69. package/dist/extensions/healthie/actions/closeChatConversation/config/fields.js.map +1 -0
  70. package/dist/extensions/healthie/actions/closeChatConversation/config/index.d.ts +1 -0
  71. package/dist/extensions/healthie/actions/closeChatConversation/config/index.js +6 -0
  72. package/dist/extensions/healthie/actions/closeChatConversation/config/index.js.map +1 -0
  73. package/dist/extensions/healthie/actions/closeChatConversation/index.d.ts +1 -0
  74. package/dist/extensions/healthie/actions/closeChatConversation/index.js +6 -0
  75. package/dist/extensions/healthie/actions/closeChatConversation/index.js.map +1 -0
  76. package/dist/extensions/healthie/actions/completeTask/completeTask.d.ts +4 -0
  77. package/dist/extensions/healthie/actions/{completeTask.js → completeTask/completeTask.js} +6 -15
  78. package/dist/extensions/healthie/actions/completeTask/completeTask.js.map +1 -0
  79. package/dist/extensions/healthie/actions/completeTask/completeTask.test.d.ts +1 -0
  80. package/dist/extensions/healthie/actions/completeTask/completeTask.test.js +37 -0
  81. package/dist/extensions/healthie/actions/completeTask/completeTask.test.js.map +1 -0
  82. package/dist/extensions/healthie/actions/completeTask/config/fields.d.ts +10 -0
  83. package/dist/extensions/healthie/actions/completeTask/config/fields.js +14 -0
  84. package/dist/extensions/healthie/actions/completeTask/config/fields.js.map +1 -0
  85. package/dist/extensions/healthie/actions/completeTask/config/index.d.ts +1 -0
  86. package/dist/extensions/healthie/actions/completeTask/config/index.js +6 -0
  87. package/dist/extensions/healthie/actions/completeTask/config/index.js.map +1 -0
  88. package/dist/extensions/healthie/actions/completeTask/index.d.ts +1 -0
  89. package/dist/extensions/healthie/actions/completeTask/index.js +6 -0
  90. package/dist/extensions/healthie/actions/completeTask/index.js.map +1 -0
  91. package/dist/extensions/healthie/actions/createAppointment/config/dataPoints.d.ts +6 -0
  92. package/dist/extensions/healthie/actions/createAppointment/config/dataPoints.js +10 -0
  93. package/dist/extensions/healthie/actions/createAppointment/config/dataPoints.js.map +1 -0
  94. package/dist/extensions/healthie/actions/{createAppointment.d.ts → createAppointment/config/fields.d.ts} +2 -11
  95. package/dist/extensions/healthie/actions/createAppointment/config/fields.js +41 -0
  96. package/dist/extensions/healthie/actions/createAppointment/config/fields.js.map +1 -0
  97. package/dist/extensions/healthie/actions/createAppointment/config/index.d.ts +2 -0
  98. package/dist/extensions/healthie/actions/createAppointment/config/index.js +8 -0
  99. package/dist/extensions/healthie/actions/createAppointment/config/index.js.map +1 -0
  100. package/dist/extensions/healthie/actions/createAppointment/createAppointment.d.ts +4 -0
  101. package/dist/extensions/healthie/actions/{createAppointment.js → createAppointment/createAppointment.js} +7 -49
  102. package/dist/extensions/healthie/actions/createAppointment/createAppointment.js.map +1 -0
  103. package/dist/extensions/healthie/actions/createAppointment/index.d.ts +1 -0
  104. package/dist/extensions/healthie/actions/createAppointment/index.js +6 -0
  105. package/dist/extensions/healthie/actions/createAppointment/index.js.map +1 -0
  106. package/dist/extensions/healthie/actions/{createChartingNote.d.ts → createChartingNote/config/fields.d.ts} +2 -5
  107. package/dist/extensions/healthie/actions/createChartingNote/config/fields.js +35 -0
  108. package/dist/extensions/healthie/actions/createChartingNote/config/fields.js.map +1 -0
  109. package/dist/extensions/healthie/actions/createChartingNote/config/index.d.ts +1 -0
  110. package/dist/extensions/healthie/actions/createChartingNote/config/index.js +6 -0
  111. package/dist/extensions/healthie/actions/createChartingNote/config/index.js.map +1 -0
  112. package/dist/extensions/healthie/actions/createChartingNote/createChartingNote.d.ts +4 -0
  113. package/dist/extensions/healthie/actions/{createChartingNote.js → createChartingNote/createChartingNote.js} +6 -36
  114. package/dist/extensions/healthie/actions/createChartingNote/createChartingNote.js.map +1 -0
  115. package/dist/extensions/healthie/actions/createChartingNote/createChartingNote.test.d.ts +1 -0
  116. package/dist/extensions/healthie/actions/createChartingNote/createChartingNote.test.js +36 -0
  117. package/dist/extensions/healthie/actions/createChartingNote/createChartingNote.test.js.map +1 -0
  118. package/dist/extensions/healthie/actions/createChartingNote/index.d.ts +1 -0
  119. package/dist/extensions/healthie/actions/createChartingNote/index.js +6 -0
  120. package/dist/extensions/healthie/actions/createChartingNote/index.js.map +1 -0
  121. package/dist/extensions/healthie/actions/createJournalEntry/config/dataPoints.d.ts +6 -0
  122. package/dist/extensions/healthie/actions/createJournalEntry/config/dataPoints.js +10 -0
  123. package/dist/extensions/healthie/actions/createJournalEntry/config/dataPoints.js.map +1 -0
  124. package/dist/extensions/healthie/actions/{createJournalEntry.d.ts → createJournalEntry/config/fields.d.ts} +2 -11
  125. package/dist/extensions/healthie/actions/createJournalEntry/config/fields.js +27 -0
  126. package/dist/extensions/healthie/actions/createJournalEntry/config/fields.js.map +1 -0
  127. package/dist/extensions/healthie/actions/createJournalEntry/config/index.d.ts +2 -0
  128. package/dist/extensions/healthie/actions/createJournalEntry/config/index.js +8 -0
  129. package/dist/extensions/healthie/actions/createJournalEntry/config/index.js.map +1 -0
  130. package/dist/extensions/healthie/actions/createJournalEntry/createJournalEntry.d.ts +4 -0
  131. package/dist/extensions/healthie/actions/{createJournalEntry.js → createJournalEntry/createJournalEntry.js} +7 -35
  132. package/dist/extensions/healthie/actions/createJournalEntry/createJournalEntry.js.map +1 -0
  133. package/dist/extensions/healthie/actions/createJournalEntry/createJournalEntry.test.d.ts +1 -0
  134. package/dist/extensions/healthie/actions/createJournalEntry/createJournalEntry.test.js +34 -0
  135. package/dist/extensions/healthie/actions/createJournalEntry/createJournalEntry.test.js.map +1 -0
  136. package/dist/extensions/healthie/actions/createJournalEntry/index.d.ts +1 -0
  137. package/dist/extensions/healthie/actions/createJournalEntry/index.js +6 -0
  138. package/dist/extensions/healthie/actions/createJournalEntry/index.js.map +1 -0
  139. package/dist/extensions/healthie/actions/createLocation/config/dataPoints.d.ts +6 -0
  140. package/dist/extensions/healthie/actions/createLocation/config/dataPoints.js +10 -0
  141. package/dist/extensions/healthie/actions/createLocation/config/dataPoints.js.map +1 -0
  142. package/dist/extensions/healthie/actions/{createLocation.d.ts → createLocation/config/fields.d.ts} +2 -11
  143. package/dist/extensions/healthie/actions/createLocation/config/fields.js +57 -0
  144. package/dist/extensions/healthie/actions/createLocation/config/fields.js.map +1 -0
  145. package/dist/extensions/healthie/actions/createLocation/config/index.d.ts +2 -0
  146. package/dist/extensions/healthie/actions/createLocation/config/index.js +8 -0
  147. package/dist/extensions/healthie/actions/createLocation/config/index.js.map +1 -0
  148. package/dist/extensions/healthie/actions/createLocation/createLocation.d.ts +4 -0
  149. package/dist/extensions/healthie/actions/createLocation/createLocation.js +100 -0
  150. package/dist/extensions/healthie/actions/createLocation/createLocation.js.map +1 -0
  151. package/dist/extensions/healthie/actions/createLocation/createLocation.test.d.ts +1 -0
  152. package/dist/extensions/healthie/actions/createLocation/createLocation.test.js +39 -0
  153. package/dist/extensions/healthie/actions/createLocation/createLocation.test.js.map +1 -0
  154. package/dist/extensions/healthie/actions/createLocation/index.d.ts +1 -0
  155. package/dist/extensions/healthie/actions/createLocation/index.js +6 -0
  156. package/dist/extensions/healthie/actions/createLocation/index.js.map +1 -0
  157. package/dist/extensions/healthie/actions/{createPatient.d.ts → createPatient/config/fields.d.ts} +2 -11
  158. package/dist/extensions/healthie/actions/createPatient/config/fields.js +59 -0
  159. package/dist/extensions/healthie/actions/createPatient/config/fields.js.map +1 -0
  160. package/dist/extensions/healthie/actions/createPatient/config/index.d.ts +1 -0
  161. package/dist/extensions/healthie/actions/createPatient/config/index.js +6 -0
  162. package/dist/extensions/healthie/actions/createPatient/config/index.js.map +1 -0
  163. package/dist/extensions/healthie/actions/createPatient/createPatient.d.ts +11 -0
  164. package/dist/extensions/healthie/actions/{createPatient.js → createPatient/createPatient.js} +6 -60
  165. package/dist/extensions/healthie/actions/createPatient/createPatient.js.map +1 -0
  166. package/dist/extensions/healthie/actions/createPatient/createPatient.test.d.ts +1 -0
  167. package/dist/extensions/healthie/actions/createPatient/createPatient.test.js +43 -0
  168. package/dist/extensions/healthie/actions/createPatient/createPatient.test.js.map +1 -0
  169. package/dist/extensions/healthie/actions/createPatient/index.d.ts +1 -0
  170. package/dist/extensions/healthie/actions/createPatient/index.js +6 -0
  171. package/dist/extensions/healthie/actions/createPatient/index.js.map +1 -0
  172. package/dist/extensions/healthie/actions/createTask/config/dataPoints.d.ts +6 -0
  173. package/dist/extensions/healthie/actions/createTask/config/dataPoints.js +10 -0
  174. package/dist/extensions/healthie/actions/createTask/config/dataPoints.js.map +1 -0
  175. package/dist/extensions/healthie/actions/{createTask.d.ts → createTask/config/fields.d.ts} +2 -11
  176. package/dist/extensions/healthie/actions/createTask/config/fields.js +64 -0
  177. package/dist/extensions/healthie/actions/createTask/config/fields.js.map +1 -0
  178. package/dist/extensions/healthie/actions/createTask/config/index.d.ts +2 -0
  179. package/dist/extensions/healthie/actions/createTask/config/index.js +8 -0
  180. package/dist/extensions/healthie/actions/createTask/config/index.js.map +1 -0
  181. package/dist/extensions/healthie/actions/createTask/createTask.d.ts +4 -0
  182. package/dist/extensions/healthie/actions/createTask/createTask.js +96 -0
  183. package/dist/extensions/healthie/actions/createTask/createTask.js.map +1 -0
  184. package/dist/extensions/healthie/actions/createTask/createTask.test.d.ts +1 -0
  185. package/dist/extensions/healthie/actions/createTask/createTask.test.js +245 -0
  186. package/dist/extensions/healthie/actions/createTask/createTask.test.js.map +1 -0
  187. package/dist/extensions/healthie/actions/createTask/index.d.ts +1 -0
  188. package/dist/extensions/healthie/actions/createTask/index.js +6 -0
  189. package/dist/extensions/healthie/actions/createTask/index.js.map +1 -0
  190. package/dist/extensions/healthie/actions/deleteAppointment/config/fields.d.ts +10 -0
  191. package/dist/extensions/healthie/actions/deleteAppointment/config/fields.js +14 -0
  192. package/dist/extensions/healthie/actions/deleteAppointment/config/fields.js.map +1 -0
  193. package/dist/extensions/healthie/actions/deleteAppointment/config/index.d.ts +1 -0
  194. package/dist/extensions/healthie/actions/deleteAppointment/config/index.js +6 -0
  195. package/dist/extensions/healthie/actions/deleteAppointment/config/index.js.map +1 -0
  196. package/dist/extensions/healthie/actions/deleteAppointment/deleteAppointment.d.ts +4 -0
  197. package/dist/extensions/healthie/actions/{deleteAppointment.js → deleteAppointment/deleteAppointment.js} +6 -15
  198. package/dist/extensions/healthie/actions/deleteAppointment/deleteAppointment.js.map +1 -0
  199. package/dist/extensions/healthie/actions/deleteAppointment/deleteAppointment.test.d.ts +1 -0
  200. package/dist/extensions/healthie/actions/deleteAppointment/deleteAppointment.test.js +34 -0
  201. package/dist/extensions/healthie/actions/deleteAppointment/deleteAppointment.test.js.map +1 -0
  202. package/dist/extensions/healthie/actions/deleteAppointment/index.d.ts +1 -0
  203. package/dist/extensions/healthie/actions/deleteAppointment/index.js +6 -0
  204. package/dist/extensions/healthie/actions/deleteAppointment/index.js.map +1 -0
  205. package/dist/extensions/healthie/actions/deleteTask/config/fields.d.ts +10 -0
  206. package/dist/extensions/healthie/actions/deleteTask/config/fields.js +14 -0
  207. package/dist/extensions/healthie/actions/deleteTask/config/fields.js.map +1 -0
  208. package/dist/extensions/healthie/actions/deleteTask/config/index.d.ts +1 -0
  209. package/dist/extensions/healthie/actions/deleteTask/config/index.js +6 -0
  210. package/dist/extensions/healthie/actions/deleteTask/config/index.js.map +1 -0
  211. package/dist/extensions/healthie/actions/deleteTask/deleteTask.d.ts +4 -0
  212. package/dist/extensions/healthie/actions/{deleteTask.js → deleteTask/deleteTask.js} +6 -15
  213. package/dist/extensions/healthie/actions/deleteTask/deleteTask.js.map +1 -0
  214. package/dist/extensions/healthie/actions/deleteTask/deleteTask.test.d.ts +1 -0
  215. package/dist/extensions/healthie/actions/deleteTask/deleteTask.test.js +34 -0
  216. package/dist/extensions/healthie/actions/deleteTask/deleteTask.test.js.map +1 -0
  217. package/dist/extensions/healthie/actions/deleteTask/index.d.ts +1 -0
  218. package/dist/extensions/healthie/actions/deleteTask/index.js +6 -0
  219. package/dist/extensions/healthie/actions/deleteTask/index.js.map +1 -0
  220. package/dist/extensions/healthie/actions/getAppointment/config/dataPoints.d.ts +22 -0
  221. package/dist/extensions/healthie/actions/getAppointment/config/dataPoints.js +26 -0
  222. package/dist/extensions/healthie/actions/getAppointment/config/dataPoints.js.map +1 -0
  223. package/dist/extensions/healthie/actions/getAppointment/config/fields.d.ts +9 -0
  224. package/dist/extensions/healthie/actions/getAppointment/config/fields.js +13 -0
  225. package/dist/extensions/healthie/actions/getAppointment/config/fields.js.map +1 -0
  226. package/dist/extensions/healthie/actions/getAppointment/config/index.d.ts +2 -0
  227. package/dist/extensions/healthie/actions/getAppointment/config/index.js +8 -0
  228. package/dist/extensions/healthie/actions/getAppointment/config/index.js.map +1 -0
  229. package/dist/extensions/healthie/actions/getAppointment/getAppointment.d.ts +4 -0
  230. package/dist/extensions/healthie/actions/{getAppointment.js → getAppointment/getAppointment.js} +8 -38
  231. package/dist/extensions/healthie/actions/getAppointment/getAppointment.js.map +1 -0
  232. package/dist/extensions/healthie/actions/getAppointment/getAppointment.test.d.ts +1 -0
  233. package/dist/extensions/healthie/actions/getAppointment/getAppointment.test.js +83 -0
  234. package/dist/extensions/healthie/actions/getAppointment/getAppointment.test.js.map +1 -0
  235. package/dist/extensions/healthie/actions/getAppointment/index.d.ts +1 -0
  236. package/dist/extensions/healthie/actions/getAppointment/index.js +6 -0
  237. package/dist/extensions/healthie/actions/getAppointment/index.js.map +1 -0
  238. package/dist/extensions/healthie/actions/{getPatient.d.ts → getPatient/config/dataPoints.d.ts} +1 -13
  239. package/dist/extensions/healthie/actions/getPatient/config/dataPoints.js +42 -0
  240. package/dist/extensions/healthie/actions/getPatient/config/dataPoints.js.map +1 -0
  241. package/dist/extensions/healthie/actions/getPatient/config/fields.d.ts +9 -0
  242. package/dist/extensions/healthie/actions/getPatient/config/fields.js +13 -0
  243. package/dist/extensions/healthie/actions/getPatient/config/fields.js.map +1 -0
  244. package/dist/extensions/healthie/actions/getPatient/config/index.d.ts +2 -0
  245. package/dist/extensions/healthie/actions/getPatient/config/index.js +8 -0
  246. package/dist/extensions/healthie/actions/getPatient/config/index.js.map +1 -0
  247. package/dist/extensions/healthie/actions/getPatient/getPatient.d.ts +4 -0
  248. package/dist/extensions/healthie/actions/{getPatient.js → getPatient/getPatient.js} +9 -55
  249. package/dist/extensions/healthie/actions/{getPatient.js.map → getPatient/getPatient.js.map} +1 -1
  250. package/dist/extensions/healthie/actions/getPatient/getPatient.test.d.ts +1 -0
  251. package/dist/extensions/healthie/actions/getPatient/getPatient.test.js +235 -0
  252. package/dist/extensions/healthie/actions/getPatient/getPatient.test.js.map +1 -0
  253. package/dist/extensions/healthie/actions/getPatient/index.d.ts +1 -0
  254. package/dist/extensions/healthie/actions/getPatient/index.js +18 -0
  255. package/dist/extensions/healthie/actions/getPatient/index.js.map +1 -0
  256. package/dist/extensions/healthie/actions/index.d.ts +8 -2
  257. package/dist/extensions/healthie/actions/index.js +4 -4
  258. package/dist/extensions/healthie/actions/index.js.map +1 -1
  259. package/dist/extensions/healthie/actions/{removeTagFromPatient.d.ts → removeTagFromPatient/config/fields.d.ts} +2 -5
  260. package/dist/extensions/healthie/actions/removeTagFromPatient/config/fields.js +21 -0
  261. package/dist/extensions/healthie/actions/removeTagFromPatient/config/fields.js.map +1 -0
  262. package/dist/extensions/healthie/actions/removeTagFromPatient/config/index.d.ts +1 -0
  263. package/dist/extensions/healthie/actions/removeTagFromPatient/config/index.js +6 -0
  264. package/dist/extensions/healthie/actions/removeTagFromPatient/config/index.js.map +1 -0
  265. package/dist/extensions/healthie/actions/removeTagFromPatient/index.d.ts +1 -0
  266. package/dist/extensions/healthie/actions/removeTagFromPatient/index.js +6 -0
  267. package/dist/extensions/healthie/actions/removeTagFromPatient/index.js.map +1 -0
  268. package/dist/extensions/healthie/actions/removeTagFromPatient/removeTagFromPatient.d.ts +4 -0
  269. package/dist/extensions/healthie/actions/{removeTagFromPatient.js → removeTagFromPatient/removeTagFromPatient.js} +6 -22
  270. package/dist/extensions/healthie/actions/removeTagFromPatient/removeTagFromPatient.js.map +1 -0
  271. package/dist/extensions/healthie/actions/removeTagFromPatient/removeTagFromPatient.test.d.ts +1 -0
  272. package/dist/extensions/healthie/actions/removeTagFromPatient/removeTagFromPatient.test.js +33 -0
  273. package/dist/extensions/healthie/actions/removeTagFromPatient/removeTagFromPatient.test.js.map +1 -0
  274. package/dist/extensions/healthie/actions/sendChatMessage/config/dataPoints.d.ts +6 -0
  275. package/dist/extensions/healthie/actions/sendChatMessage/config/dataPoints.js +10 -0
  276. package/dist/extensions/healthie/actions/sendChatMessage/config/dataPoints.js.map +1 -0
  277. package/dist/extensions/healthie/actions/{sendChatMessage.d.ts → sendChatMessage/config/fields.d.ts} +2 -11
  278. package/dist/extensions/healthie/actions/sendChatMessage/config/fields.js +28 -0
  279. package/dist/extensions/healthie/actions/sendChatMessage/config/fields.js.map +1 -0
  280. package/dist/extensions/healthie/actions/sendChatMessage/config/index.d.ts +2 -0
  281. package/dist/extensions/healthie/actions/sendChatMessage/config/index.js +8 -0
  282. package/dist/extensions/healthie/actions/sendChatMessage/config/index.js.map +1 -0
  283. package/dist/extensions/healthie/actions/sendChatMessage/index.d.ts +1 -0
  284. package/dist/extensions/healthie/actions/sendChatMessage/index.js +6 -0
  285. package/dist/extensions/healthie/actions/sendChatMessage/index.js.map +1 -0
  286. package/dist/extensions/healthie/actions/sendChatMessage/sendChatMessage.d.ts +4 -0
  287. package/dist/extensions/healthie/actions/{sendChatMessage.js → sendChatMessage/sendChatMessage.js} +7 -36
  288. package/dist/extensions/healthie/actions/sendChatMessage/sendChatMessage.js.map +1 -0
  289. package/dist/extensions/healthie/actions/sendChatMessage/sendChatMessage.test.d.ts +1 -0
  290. package/dist/extensions/healthie/actions/sendChatMessage/sendChatMessage.test.js +142 -0
  291. package/dist/extensions/healthie/actions/sendChatMessage/sendChatMessage.test.js.map +1 -0
  292. package/dist/extensions/healthie/actions/{sendFormCompletionRequest.d.ts → sendFormCompletionRequest/config/fields.d.ts} +2 -5
  293. package/dist/extensions/healthie/actions/sendFormCompletionRequest/config/fields.js +77 -0
  294. package/dist/extensions/healthie/actions/sendFormCompletionRequest/config/fields.js.map +1 -0
  295. package/dist/extensions/healthie/actions/sendFormCompletionRequest/config/index.d.ts +1 -0
  296. package/dist/extensions/healthie/actions/sendFormCompletionRequest/config/index.js +6 -0
  297. package/dist/extensions/healthie/actions/sendFormCompletionRequest/config/index.js.map +1 -0
  298. package/dist/extensions/healthie/actions/sendFormCompletionRequest/index.d.ts +1 -0
  299. package/dist/extensions/healthie/actions/sendFormCompletionRequest/index.js +6 -0
  300. package/dist/extensions/healthie/actions/sendFormCompletionRequest/index.js.map +1 -0
  301. package/dist/extensions/healthie/actions/sendFormCompletionRequest/sendFormCompletionRequest.d.ts +4 -0
  302. package/dist/extensions/healthie/actions/{sendFormCompletionRequest.js → sendFormCompletionRequest/sendFormCompletionRequest.js} +7 -79
  303. package/dist/extensions/healthie/actions/sendFormCompletionRequest/sendFormCompletionRequest.js.map +1 -0
  304. package/dist/extensions/healthie/actions/sendFormCompletionRequest/sendFormCompletionRequest.test.d.ts +1 -0
  305. package/dist/extensions/healthie/actions/sendFormCompletionRequest/sendFormCompletionRequest.test.js +199 -0
  306. package/dist/extensions/healthie/actions/sendFormCompletionRequest/sendFormCompletionRequest.test.js.map +1 -0
  307. package/dist/extensions/healthie/actions/{updatePatient.d.ts → updatePatient/config/fields.d.ts} +2 -6
  308. package/dist/extensions/healthie/actions/updatePatient/config/fields.js +99 -0
  309. package/dist/extensions/healthie/actions/updatePatient/config/fields.js.map +1 -0
  310. package/dist/extensions/healthie/actions/updatePatient/config/index.d.ts +1 -0
  311. package/dist/extensions/healthie/actions/updatePatient/config/index.js +6 -0
  312. package/dist/extensions/healthie/actions/updatePatient/config/index.js.map +1 -0
  313. package/dist/extensions/healthie/actions/updatePatient/index.d.ts +1 -0
  314. package/dist/extensions/healthie/actions/updatePatient/index.js +18 -0
  315. package/dist/extensions/healthie/actions/updatePatient/index.js.map +1 -0
  316. package/dist/extensions/healthie/actions/updatePatient/updatePatient.d.ts +4 -0
  317. package/dist/extensions/healthie/actions/updatePatient/updatePatient.js +100 -0
  318. package/dist/extensions/healthie/actions/updatePatient/updatePatient.js.map +1 -0
  319. package/dist/extensions/healthie/actions/updatePatient/updatePatient.test.d.ts +1 -0
  320. package/dist/extensions/healthie/actions/updatePatient/updatePatient.test.js +46 -0
  321. package/dist/extensions/healthie/actions/updatePatient/updatePatient.test.js.map +1 -0
  322. package/dist/extensions/healthie/graphqlClient.test.d.ts +1 -0
  323. package/dist/extensions/healthie/graphqlClient.test.js +63 -0
  324. package/dist/extensions/healthie/graphqlClient.test.js.map +1 -0
  325. package/package.json +5 -5
  326. package/dist/extensions/healthie/actions/applyTagToPatient.js.map +0 -1
  327. package/dist/extensions/healthie/actions/archivePatient.d.ts +0 -13
  328. package/dist/extensions/healthie/actions/archivePatient.js.map +0 -1
  329. package/dist/extensions/healthie/actions/assignPatientToGroup.js.map +0 -1
  330. package/dist/extensions/healthie/actions/cancelAppointment.d.ts +0 -13
  331. package/dist/extensions/healthie/actions/cancelAppointment.js.map +0 -1
  332. package/dist/extensions/healthie/actions/closeChatConversation.js.map +0 -1
  333. package/dist/extensions/healthie/actions/completeTask.d.ts +0 -13
  334. package/dist/extensions/healthie/actions/completeTask.js.map +0 -1
  335. package/dist/extensions/healthie/actions/createAppointment.js.map +0 -1
  336. package/dist/extensions/healthie/actions/createChartingNote.js.map +0 -1
  337. package/dist/extensions/healthie/actions/createJournalEntry.js.map +0 -1
  338. package/dist/extensions/healthie/actions/createLocation.js +0 -158
  339. package/dist/extensions/healthie/actions/createLocation.js.map +0 -1
  340. package/dist/extensions/healthie/actions/createPatient.js.map +0 -1
  341. package/dist/extensions/healthie/actions/createTask.js +0 -161
  342. package/dist/extensions/healthie/actions/createTask.js.map +0 -1
  343. package/dist/extensions/healthie/actions/deleteAppointment.d.ts +0 -13
  344. package/dist/extensions/healthie/actions/deleteAppointment.js.map +0 -1
  345. package/dist/extensions/healthie/actions/deleteTask.d.ts +0 -13
  346. package/dist/extensions/healthie/actions/deleteTask.js.map +0 -1
  347. package/dist/extensions/healthie/actions/getAppointment.d.ts +0 -34
  348. package/dist/extensions/healthie/actions/getAppointment.js.map +0 -1
  349. package/dist/extensions/healthie/actions/removeTagFromPatient.js.map +0 -1
  350. package/dist/extensions/healthie/actions/sendChatMessage.js.map +0 -1
  351. package/dist/extensions/healthie/actions/sendFormCompletionRequest.js.map +0 -1
  352. package/dist/extensions/healthie/actions/updatePatient.js +0 -194
  353. package/dist/extensions/healthie/actions/updatePatient.js.map +0 -1
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tests_1 = require("../../../../src/tests");
4
+ const sdk_1 = require("../../gql/sdk");
5
+ const sdk_2 = require("../../gql/__mocks__/sdk");
6
+ const deleteTask_1 = require("../deleteTask");
7
+ jest.mock('../../gql/sdk');
8
+ jest.mock('../../graphqlClient');
9
+ describe('deleteTask action', () => {
10
+ const onComplete = jest.fn();
11
+ beforeAll(() => {
12
+ ;
13
+ sdk_1.getSdk.mockImplementation(sdk_2.mockGetSdk);
14
+ });
15
+ beforeEach(() => {
16
+ jest.clearAllMocks();
17
+ });
18
+ test('Should delete a task', async () => {
19
+ await deleteTask_1.deleteTask.onActivityCreated((0, tests_1.generateTestPayload)({
20
+ fields: {
21
+ id: 'task-1',
22
+ },
23
+ settings: {
24
+ apiKey: 'apiKey',
25
+ apiUrl: 'test-url',
26
+ },
27
+ }), onComplete, jest.fn());
28
+ expect(sdk_2.mockGetSdkReturn.deleteTask).toHaveBeenCalledWith({
29
+ id: 'task-1',
30
+ });
31
+ expect(onComplete).toHaveBeenCalled();
32
+ });
33
+ });
34
+ //# sourceMappingURL=deleteTask.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deleteTask.test.js","sourceRoot":"","sources":["../../../../../extensions/healthie/actions/deleteTask/deleteTask.test.ts"],"names":[],"mappings":";;AAAA,iDAA2D;AAC3D,uCAAsC;AACtC,iDAAsE;AACtE,8CAA0C;AAE1C,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,CAAA;AAC1B,IAAI,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAA;AAEhC,QAAQ,CAAC,mBAAmB,EAAE,GAAG,EAAE;IACjC,MAAM,UAAU,GAAG,IAAI,CAAC,EAAE,EAAE,CAAA;IAE5B,SAAS,CAAC,GAAG,EAAE;QACb,CAAC;QAAC,YAAoB,CAAC,kBAAkB,CAAC,gBAAU,CAAC,CAAA;IACvD,CAAC,CAAC,CAAA;IAEF,UAAU,CAAC,GAAG,EAAE;QACd,IAAI,CAAC,aAAa,EAAE,CAAA;IACtB,CAAC,CAAC,CAAA;IAEF,IAAI,CAAC,sBAAsB,EAAE,KAAK,IAAI,EAAE;QACtC,MAAM,uBAAU,CAAC,iBAAiB,CAChC,IAAA,2BAAmB,EAAC;YAClB,MAAM,EAAE;gBACN,EAAE,EAAE,QAAQ;aACb;YACD,QAAQ,EAAE;gBACR,MAAM,EAAE,QAAQ;gBAChB,MAAM,EAAE,UAAU;aACnB;SACF,CAAC,EACF,UAAU,EACV,IAAI,CAAC,EAAE,EAAE,CACV,CAAA;QAED,MAAM,CAAC,sBAAgB,CAAC,UAAU,CAAC,CAAC,oBAAoB,CAAC;YACvD,EAAE,EAAE,QAAQ;SACb,CAAC,CAAA;QACF,MAAM,CAAC,UAAU,CAAC,CAAC,gBAAgB,EAAE,CAAA;IACvC,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
@@ -0,0 +1 @@
1
+ export { deleteTask } from './deleteTask';
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.deleteTask = void 0;
4
+ var deleteTask_1 = require("./deleteTask");
5
+ Object.defineProperty(exports, "deleteTask", { enumerable: true, get: function () { return deleteTask_1.deleteTask; } });
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../extensions/healthie/actions/deleteTask/index.ts"],"names":[],"mappings":";;;AAAA,2CAAyC;AAAhC,wGAAA,UAAU,OAAA"}
@@ -0,0 +1,22 @@
1
+ export declare const dataPoints: {
2
+ date: {
3
+ key: string;
4
+ valueType: "date";
5
+ };
6
+ appointmentTypeId: {
7
+ key: string;
8
+ valueType: "string";
9
+ };
10
+ appointmentTypeName: {
11
+ key: string;
12
+ valueType: "string";
13
+ };
14
+ contactType: {
15
+ key: string;
16
+ valueType: "string";
17
+ };
18
+ patientId: {
19
+ key: string;
20
+ valueType: "string";
21
+ };
22
+ };
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.dataPoints = void 0;
4
+ exports.dataPoints = {
5
+ date: {
6
+ key: 'date',
7
+ valueType: 'date',
8
+ },
9
+ appointmentTypeId: {
10
+ key: 'appointmentTypeId',
11
+ valueType: 'string',
12
+ },
13
+ appointmentTypeName: {
14
+ key: 'appointmentTypeName',
15
+ valueType: 'string',
16
+ },
17
+ contactType: {
18
+ key: 'contactType',
19
+ valueType: 'string',
20
+ },
21
+ patientId: {
22
+ key: 'patientId',
23
+ valueType: 'string',
24
+ },
25
+ };
26
+ //# sourceMappingURL=dataPoints.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataPoints.js","sourceRoot":"","sources":["../../../../../../extensions/healthie/actions/getAppointment/config/dataPoints.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG;IACxB,IAAI,EAAE;QACJ,GAAG,EAAE,MAAM;QACX,SAAS,EAAE,MAAM;KAClB;IACD,iBAAiB,EAAE;QACjB,GAAG,EAAE,mBAAmB;QACxB,SAAS,EAAE,QAAQ;KACpB;IACD,mBAAmB,EAAE;QACnB,GAAG,EAAE,qBAAqB;QAC1B,SAAS,EAAE,QAAQ;KACpB;IACD,WAAW,EAAE;QACX,GAAG,EAAE,aAAa;QAClB,SAAS,EAAE,QAAQ;KACpB;IACD,SAAS,EAAE;QACT,GAAG,EAAE,WAAW;QAChB,SAAS,EAAE,QAAQ;KACpB;CAC4C,CAAA"}
@@ -0,0 +1,9 @@
1
+ import { FieldType } from '@awell-health/extensions-core';
2
+ export declare const fields: {
3
+ appointmentId: {
4
+ id: string;
5
+ label: string;
6
+ description: string;
7
+ type: FieldType.STRING;
8
+ };
9
+ };
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fields = void 0;
4
+ const extensions_core_1 = require("@awell-health/extensions-core");
5
+ exports.fields = {
6
+ appointmentId: {
7
+ id: 'appointmentId',
8
+ label: 'Appointment ID',
9
+ description: 'The identifier of the appointment you want to retrieve.',
10
+ type: extensions_core_1.FieldType.STRING,
11
+ },
12
+ };
13
+ //# sourceMappingURL=fields.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../../../extensions/healthie/actions/getAppointment/config/fields.ts"],"names":[],"mappings":";;;AAAA,mEAAqE;AAExD,QAAA,MAAM,GAAG;IACpB,aAAa,EAAE;QACb,EAAE,EAAE,eAAe;QACnB,KAAK,EAAE,gBAAgB;QACvB,WAAW,EAAE,yDAAyD;QACtE,IAAI,EAAE,2BAAS,CAAC,MAAM;KACvB;CAC8B,CAAA"}
@@ -0,0 +1,2 @@
1
+ export { fields } from './fields';
2
+ export { dataPoints } from './dataPoints';
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.dataPoints = exports.fields = void 0;
4
+ var fields_1 = require("./fields");
5
+ Object.defineProperty(exports, "fields", { enumerable: true, get: function () { return fields_1.fields; } });
6
+ var dataPoints_1 = require("./dataPoints");
7
+ Object.defineProperty(exports, "dataPoints", { enumerable: true, get: function () { return dataPoints_1.dataPoints; } });
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../extensions/healthie/actions/getAppointment/config/index.ts"],"names":[],"mappings":";;;AAAA,mCAAiC;AAAxB,gGAAA,MAAM,OAAA;AACf,2CAAyC;AAAhC,wGAAA,UAAU,OAAA"}
@@ -0,0 +1,4 @@
1
+ import { type Action } from '@awell-health/extensions-core';
2
+ import { type settings } from '../../settings';
3
+ import { dataPoints, fields } from './config';
4
+ export declare const getAppointment: Action<typeof fields, typeof settings, keyof typeof dataPoints>;
@@ -2,48 +2,18 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getAppointment = void 0;
4
4
  const extensions_core_1 = require("@awell-health/extensions-core");
5
- const extensions_core_2 = require("@awell-health/extensions-core");
6
- const errors_1 = require("../errors");
7
- const sdk_1 = require("../gql/sdk");
8
- const graphqlClient_1 = require("../graphqlClient");
9
- const dateValidation_1 = require("../validation/dateValidation");
10
- const fields = {
11
- appointmentId: {
12
- id: 'appointmentId',
13
- label: 'Appointment ID',
14
- description: 'The identifier of the appointment you want to retrieve.',
15
- type: extensions_core_1.FieldType.STRING,
16
- },
17
- };
18
- const dataPoints = {
19
- date: {
20
- key: 'date',
21
- valueType: 'date',
22
- },
23
- appointmentTypeId: {
24
- key: 'appointmentTypeId',
25
- valueType: 'string',
26
- },
27
- appointmentTypeName: {
28
- key: 'appointmentTypeName',
29
- valueType: 'string',
30
- },
31
- contactType: {
32
- key: 'contactType',
33
- valueType: 'string',
34
- },
35
- patientId: {
36
- key: 'patientId',
37
- valueType: 'string',
38
- },
39
- };
5
+ const errors_1 = require("../../errors");
6
+ const sdk_1 = require("../../gql/sdk");
7
+ const graphqlClient_1 = require("../../graphqlClient");
8
+ const dateValidation_1 = require("../../validation/dateValidation");
9
+ const config_1 = require("./config");
40
10
  exports.getAppointment = {
41
11
  key: 'getAppointment',
42
- category: extensions_core_2.Category.EHR_INTEGRATIONS,
12
+ category: extensions_core_1.Category.EHR_INTEGRATIONS,
43
13
  title: 'Get appointment',
44
14
  description: 'Retrieve the details of an appointment in Healthie.',
45
- fields,
46
- dataPoints,
15
+ fields: config_1.fields,
16
+ dataPoints: config_1.dataPoints,
47
17
  previewable: true,
48
18
  onActivityCreated: async (payload, onComplete, onError) => {
49
19
  var _a, _b, _c, _d, _e, _f, _g, _h;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAppointment.js","sourceRoot":"","sources":["../../../../../extensions/healthie/actions/getAppointment/getAppointment.ts"],"names":[],"mappings":";;;AACA,mEAAwD;AACxD,yCAAwE;AACxE,uCAAsC;AACtC,uDAAsD;AAEtD,oEAA6D;AAC7D,qCAA6C;AAEhC,QAAA,cAAc,GAIvB;IACF,GAAG,EAAE,gBAAgB;IACrB,QAAQ,EAAE,0BAAQ,CAAC,gBAAgB;IACnC,KAAK,EAAE,iBAAiB;IACxB,WAAW,EAAE,qDAAqD;IAClE,MAAM,EAAN,eAAM;IACN,UAAU,EAAV,mBAAU;IACV,WAAW,EAAE,IAAI;IACjB,iBAAiB,EAAE,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAiB,EAAE;;QACvE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAA;QACpC,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,CAAA;QAChC,IAAI;YACF,MAAM,MAAM,GAAG,IAAA,gCAAgB,EAAC,QAAQ,CAAC,CAAA;YACzC,IAAI,MAAM,KAAK,SAAS,EAAE;gBACxB,MAAM,GAAG,GAAG,IAAA,YAAM,EAAC,MAAM,CAAC,CAAA;gBAC1B,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,GAAG,CAAC,cAAc,CAAC;oBACxC,EAAE,EAAE,aAAa;iBAClB,CAAC,CAAA;gBACF,MAAM,IAAI,GAAG,IAAA,4BAAW,EAAC,MAAA,IAAI,CAAC,WAAW,0CAAE,IAAI,CAAC,CAAA;gBAChD,MAAM,UAAU,CAAC;oBACf,WAAW,EAAE;wBACX,iBAAiB,EAAE,MAAA,MAAA,IAAI,CAAC,WAAW,0CAAE,gBAAgB,0CAAE,EAAE;wBACzD,mBAAmB,EAAE,MAAA,MAAA,IAAI,CAAC,WAAW,0CAAE,gBAAgB,0CAAE,IAAI;wBAC7D,WAAW,EAAE,MAAA,IAAI,CAAC,WAAW,0CAAE,YAAY;wBAC3C,IAAI;wBACJ,SAAS,EAAE,MAAA,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,WAAW,0CAAE,IAAI,0CAAE,EAAE;qBACvC;iBACF,CAAC,CAAA;aACH;iBAAM;gBACL,MAAM,OAAO,CAAC;oBACZ,MAAM,EAAE;wBACN;4BACE,IAAI,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;4BAC9B,IAAI,EAAE,EAAE,EAAE,EAAE,4CAA4C,EAAE;4BAC1D,KAAK,EAAE;gCACL,QAAQ,EAAE,kBAAkB;gCAC5B,OAAO,EAAE,4BAA4B;6BACtC;yBACF;qBACF;iBACF,CAAC,CAAA;aACH;SACF;QAAC,OAAO,GAAG,EAAE;YACZ,IAAI,GAAG,YAAY,sBAAa,EAAE;gBAChC,MAAM,MAAM,GAAG,IAAA,mCAA0B,EAAC,GAAG,CAAC,MAAM,CAAC,CAAA;gBACrD,MAAM,OAAO,CAAC;oBACZ,MAAM,EAAE,MAAM;iBACf,CAAC,CAAA;aACH;iBAAM;gBACL,MAAM,KAAK,GAAG,GAAY,CAAA;gBAC1B,MAAM,OAAO,CAAC;oBACZ,MAAM,EAAE;wBACN;4BACE,IAAI,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;4BAC9B,IAAI,EAAE,EAAE,EAAE,EAAE,gCAAgC,EAAE;4BAC9C,KAAK,EAAE;gCACL,QAAQ,EAAE,cAAc;gCACxB,OAAO,EAAE,KAAK,CAAC,OAAO;6BACvB;yBACF;qBACF;iBACF,CAAC,CAAA;aACH;SACF;IACH,CAAC;CACF,CAAA"}
@@ -0,0 +1,83 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tests_1 = require("../../../../src/tests");
4
+ const sdk_1 = require("../../gql/sdk");
5
+ const sdk_2 = require("../../gql/__mocks__/sdk");
6
+ const getAppointment_1 = require("../getAppointment");
7
+ jest.mock('../../gql/sdk');
8
+ jest.mock('../../graphqlClient');
9
+ describe('getAppointment action', () => {
10
+ const onComplete = jest.fn();
11
+ const newActivityPayload = (0, tests_1.generateTestPayload)({
12
+ fields: {
13
+ appointmentId: 'appointment-1',
14
+ },
15
+ settings: {
16
+ apiKey: 'apiKey',
17
+ apiUrl: 'test-url',
18
+ },
19
+ });
20
+ const appointmentWithNoDate = {
21
+ id: 'appointment-1',
22
+ appointment_type: {
23
+ id: 'appointment-type-1',
24
+ name: 'Appointment type',
25
+ },
26
+ contact_type: 'contact-type',
27
+ user: {
28
+ id: 'user-id',
29
+ },
30
+ };
31
+ const appointmentWithDate = {
32
+ ...appointmentWithNoDate,
33
+ date: '2023-06-05 14:10:00 +0200',
34
+ };
35
+ beforeAll(() => {
36
+ ;
37
+ sdk_1.getSdk.mockImplementation(sdk_2.mockGetSdk);
38
+ });
39
+ beforeEach(() => {
40
+ jest.clearAllMocks();
41
+ });
42
+ test('Should handle an appointment with no date set', async () => {
43
+ sdk_2.mockGetSdkReturn.getAppointment.mockReturnValueOnce({
44
+ data: {
45
+ appointment: appointmentWithNoDate,
46
+ },
47
+ });
48
+ await getAppointment_1.getAppointment.onActivityCreated(newActivityPayload, onComplete, jest.fn());
49
+ expect(sdk_2.mockGetSdkReturn.getAppointment).toHaveBeenCalledWith({
50
+ id: 'appointment-1',
51
+ });
52
+ expect(onComplete).toHaveBeenCalledWith({
53
+ data_points: {
54
+ appointmentTypeId: appointmentWithNoDate.appointment_type.id,
55
+ appointmentTypeName: appointmentWithNoDate.appointment_type.name,
56
+ contactType: appointmentWithNoDate.contact_type,
57
+ date: undefined,
58
+ patientId: appointmentWithNoDate.user.id,
59
+ },
60
+ });
61
+ });
62
+ test('Should handle an appointment with a date set', async () => {
63
+ sdk_2.mockGetSdkReturn.getAppointment.mockReturnValueOnce({
64
+ data: {
65
+ appointment: appointmentWithDate,
66
+ },
67
+ });
68
+ await getAppointment_1.getAppointment.onActivityCreated(newActivityPayload, onComplete, jest.fn());
69
+ expect(sdk_2.mockGetSdkReturn.getAppointment).toHaveBeenCalledWith({
70
+ id: 'appointment-1',
71
+ });
72
+ expect(onComplete).toHaveBeenCalledWith({
73
+ data_points: {
74
+ appointmentTypeId: appointmentWithNoDate.appointment_type.id,
75
+ appointmentTypeName: appointmentWithNoDate.appointment_type.name,
76
+ contactType: appointmentWithNoDate.contact_type,
77
+ date: '2023-06-05T12:10:00Z',
78
+ patientId: appointmentWithNoDate.user.id,
79
+ },
80
+ });
81
+ });
82
+ });
83
+ //# sourceMappingURL=getAppointment.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAppointment.test.js","sourceRoot":"","sources":["../../../../../extensions/healthie/actions/getAppointment/getAppointment.test.ts"],"names":[],"mappings":";;AAAA,iDAA2D;AAC3D,uCAAsC;AACtC,iDAAsE;AACtE,sDAAkD;AAElD,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,CAAA;AAC1B,IAAI,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAA;AAEhC,QAAQ,CAAC,uBAAuB,EAAE,GAAG,EAAE;IACrC,MAAM,UAAU,GAAG,IAAI,CAAC,EAAE,EAAE,CAAA;IAC5B,MAAM,kBAAkB,GAAG,IAAA,2BAAmB,EAAC;QAC7C,MAAM,EAAE;YACN,aAAa,EAAE,eAAe;SAC/B;QACD,QAAQ,EAAE;YACR,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE,UAAU;SACnB;KACF,CAAC,CAAA;IACF,MAAM,qBAAqB,GAAG;QAC5B,EAAE,EAAE,eAAe;QACnB,gBAAgB,EAAE;YAChB,EAAE,EAAE,oBAAoB;YACxB,IAAI,EAAE,kBAAkB;SACzB;QACD,YAAY,EAAE,cAAc;QAC5B,IAAI,EAAE;YACJ,EAAE,EAAE,SAAS;SACd;KACF,CAAA;IACD,MAAM,mBAAmB,GAAG;QAC1B,GAAG,qBAAqB;QACxB,IAAI,EAAE,2BAA2B;KAClC,CAAA;IAED,SAAS,CAAC,GAAG,E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AC3D,EAAE,EAAE,eAAe;SACpB,CAAC,CAAA;QACF,MAAM,CAAC,UAAU,CAAC,CAAC,oBAAoB,CAAC;YACtC,WAAW,EAAE;gBACX,iBAAiB,EAAE,qBAAqB,CAAC,gBAAgB,CAAC,EAAE;gBAC5D,mBAAmB,EAAE,qBAAqB,CAAC,gBAAgB,CAAC,IAAI;gBAChE,WAAW,EAAE,qBAAqB,CAAC,YAAY;gBAC/C,IAAI,EAAE,sBAAsB;gBAC5B,SAAS,EAAE,qBAAqB,CAAC,IAAI,CAAC,EAAE;aACzC;SACF,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
@@ -0,0 +1 @@
1
+ export { getAppointment } from './getAppointment';
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getAppointment = void 0;
4
+ var getAppointment_1 = require("./getAppointment");
5
+ Object.defineProperty(exports, "getAppointment", { enumerable: true, get: function () { return getAppointment_1.getAppointment; } });
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../extensions/healthie/actions/getAppointment/index.ts"],"names":[],"mappings":";;;AAAA,mDAAiD;AAAxC,gHAAA,cAAc,OAAA"}
@@ -1,14 +1,4 @@
1
- import { FieldType, type Action } from '@awell-health/extensions-core';
2
- import { type settings } from '../settings';
3
- declare const fields: {
4
- patientId: {
5
- id: string;
6
- label: string;
7
- description: string;
8
- type: FieldType.STRING;
9
- };
10
- };
11
- declare const dataPoints: {
1
+ export declare const dataPoints: {
12
2
  firstName: {
13
3
  key: string;
14
4
  valueType: "string";
@@ -46,5 +36,3 @@ declare const dataPoints: {
46
36
  valueType: "string";
47
37
  };
48
38
  };
49
- export declare const getPatient: Action<typeof fields, typeof settings, keyof typeof dataPoints>;
50
- export {};
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.dataPoints = void 0;
4
+ exports.dataPoints = {
5
+ firstName: {
6
+ key: 'firstName',
7
+ valueType: 'string',
8
+ },
9
+ lastName: {
10
+ key: 'lastName',
11
+ valueType: 'string',
12
+ },
13
+ dob: {
14
+ key: 'dob',
15
+ valueType: 'date',
16
+ },
17
+ gender: {
18
+ key: 'gender',
19
+ valueType: 'string',
20
+ },
21
+ isoSex: {
22
+ key: 'isoSex',
23
+ valueType: 'number',
24
+ },
25
+ email: {
26
+ key: 'email',
27
+ valueType: 'string',
28
+ },
29
+ phoneNumber: {
30
+ key: 'phoneNumber',
31
+ valueType: 'telephone',
32
+ },
33
+ primaryProviderId: {
34
+ key: 'primaryProviderId',
35
+ valueType: 'string',
36
+ },
37
+ groupName: {
38
+ key: 'groupName',
39
+ valueType: 'string',
40
+ },
41
+ };
42
+ //# sourceMappingURL=dataPoints.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataPoints.js","sourceRoot":"","sources":["../../../../../../extensions/healthie/actions/getPatient/config/dataPoints.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG;IACxB,SAAS,EAAE;QACT,GAAG,EAAE,WAAW;QAChB,SAAS,EAAE,QAAQ;KACpB;IACD,QAAQ,EAAE;QACR,GAAG,EAAE,UAAU;QACf,SAAS,EAAE,QAAQ;KACpB;IACD,GAAG,EAAE;QACH,GAAG,EAAE,KAAK;QACV,SAAS,EAAE,MAAM;KAClB;IACD,MAAM,EAAE;QACN,GAAG,EAAE,QAAQ;QACb,SAAS,EAAE,QAAQ;KACpB;IACD,MAAM,EAAE;QACN,GAAG,EAAE,QAAQ;QACb,SAAS,EAAE,QAAQ;KACpB;IACD,KAAK,EAAE;QACL,GAAG,EAAE,OAAO;QACZ,SAAS,EAAE,QAAQ;KACpB;IACD,WAAW,EAAE;QACX,GAAG,EAAE,aAAa;QAClB,SAAS,EAAE,WAAW;KACvB;IACD,iBAAiB,EAAE;QACjB,GAAG,EAAE,mBAAmB;QACxB,SAAS,EAAE,QAAQ;KACpB;IACD,SAAS,EAAE;QACT,GAAG,EAAE,WAAW;QAChB,SAAS,EAAE,QAAQ;KACpB;CAC4C,CAAA"}
@@ -0,0 +1,9 @@
1
+ import { FieldType } from '@awell-health/extensions-core';
2
+ export declare const fields: {
3
+ patientId: {
4
+ id: string;
5
+ label: string;
6
+ description: string;
7
+ type: FieldType.STRING;
8
+ };
9
+ };
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fields = void 0;
4
+ const extensions_core_1 = require("@awell-health/extensions-core");
5
+ exports.fields = {
6
+ patientId: {
7
+ id: 'patientId',
8
+ label: 'Patient ID',
9
+ description: 'The ID of the patient in Healthie you would like to retrieve.',
10
+ type: extensions_core_1.FieldType.STRING,
11
+ },
12
+ };
13
+ //# sourceMappingURL=fields.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../../../extensions/healthie/actions/getPatient/config/fields.ts"],"names":[],"mappings":";;;AAAA,mEAAqE;AAExD,QAAA,MAAM,GAAG;IACpB,SAAS,EAAE;QACT,EAAE,EAAE,WAAW;QACf,KAAK,EAAE,YAAY;QACnB,WAAW,EACT,+DAA+D;QACjE,IAAI,EAAE,2BAAS,CAAC,MAAM;KACvB;CAC8B,CAAA"}
@@ -0,0 +1,2 @@
1
+ export { fields } from './fields';
2
+ export { dataPoints } from './dataPoints';
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.dataPoints = exports.fields = void 0;
4
+ var fields_1 = require("./fields");
5
+ Object.defineProperty(exports, "fields", { enumerable: true, get: function () { return fields_1.fields; } });
6
+ var dataPoints_1 = require("./dataPoints");
7
+ Object.defineProperty(exports, "dataPoints", { enumerable: true, get: function () { return dataPoints_1.dataPoints; } });
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../extensions/healthie/actions/getPatient/config/index.ts"],"names":[],"mappings":";;;AAAA,mCAAiC;AAAxB,gGAAA,MAAM,OAAA;AACf,2CAAyC;AAAhC,wGAAA,UAAU,OAAA"}
@@ -0,0 +1,4 @@
1
+ import { type Action } from '@awell-health/extensions-core';
2
+ import { type settings } from '../../settings';
3
+ import { dataPoints, fields } from './config';
4
+ export declare const getPatient: Action<typeof fields, typeof settings, keyof typeof dataPoints>;
@@ -2,65 +2,19 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getPatient = void 0;
4
4
  const extensions_core_1 = require("@awell-health/extensions-core");
5
- const extensions_core_2 = require("@awell-health/extensions-core");
6
- const errors_1 = require("../errors");
7
- const sdk_1 = require("../gql/sdk");
8
- const graphqlClient_1 = require("../graphqlClient");
9
- const helpers_1 = require("../helpers");
10
- const getPatient_zod_1 = require("../validation/getPatient.zod");
11
- const fields = {
12
- patientId: {
13
- id: 'patientId',
14
- label: 'Patient ID',
15
- description: 'The ID of the patient in Healthie you would like to retrieve.',
16
- type: extensions_core_1.FieldType.STRING,
17
- },
18
- };
19
- const dataPoints = {
20
- firstName: {
21
- key: 'firstName',
22
- valueType: 'string',
23
- },
24
- lastName: {
25
- key: 'lastName',
26
- valueType: 'string',
27
- },
28
- dob: {
29
- key: 'dob',
30
- valueType: 'date',
31
- },
32
- gender: {
33
- key: 'gender',
34
- valueType: 'string',
35
- },
36
- isoSex: {
37
- key: 'isoSex',
38
- valueType: 'number',
39
- },
40
- email: {
41
- key: 'email',
42
- valueType: 'string',
43
- },
44
- phoneNumber: {
45
- key: 'phoneNumber',
46
- valueType: 'telephone',
47
- },
48
- primaryProviderId: {
49
- key: 'primaryProviderId',
50
- valueType: 'string',
51
- },
52
- groupName: {
53
- key: 'groupName',
54
- valueType: 'string',
55
- },
56
- };
5
+ const errors_1 = require("../../errors");
6
+ const sdk_1 = require("../../gql/sdk");
7
+ const graphqlClient_1 = require("../../graphqlClient");
8
+ const helpers_1 = require("../../helpers");
9
+ const getPatient_zod_1 = require("../../validation/getPatient.zod");
10
+ const config_1 = require("./config");
57
11
  exports.getPatient = {
58
12
  key: 'getPatient',
59
- category: extensions_core_2.Category.EHR_INTEGRATIONS,
13
+ category: extensions_core_1.Category.EHR_INTEGRATIONS,
60
14
  title: 'Get patient',
61
15
  description: 'Retrieve the details of a patient in Healthie.',
62
- fields,
63
- dataPoints,
16
+ fields: config_1.fields,
17
+ dataPoints: config_1.dataPoints,
64
18
  previewable: true,
65
19
  onActivityCreated: async (payload, onComplete, onError) => {
66
20
  var _a, _b, _c, _d, _e, _f, _g, _h;
@@ -1 +1 @@
1
- {"version":3,"file":"getPatient.js","sourceRoot":"","sources":["../../../../extensions/healthie/actions/getPatient.ts"],"names":[],"mappings":";;;AAAA,mEAKsC;AACtC,mEAAwD;AACxD,sCAAqE;AACrE,oCAAmC;AACnC,oDAAmD;AACnD,wCAAsD;AAEtD,iEAAiE;AAEjE,MAAM,MAAM,GAAG;IACb,SAAS,EAAE;QACT,EAAE,EAAE,WAAW;QACf,KAAK,EAAE,YAAY;QACnB,WAAW,EACT,+DAA+D;QACjE,IAAI,EAAE,2BAAS,CAAC,MAAM;KACvB;CAC8B,CAAA;AAEjC,MAAM,UAAU,GAAG;IACjB,SAAS,EAAE;QACT,GAAG,EAAE,WAAW;QAChB,SAAS,EAAE,QAAQ;KACpB;IACD,QAAQ,EAAE;QACR,GAAG,EAAE,UAAU;QACf,SAAS,EAAE,QAAQ;KACpB;IACD,GAAG,EAAE;QACH,GAAG,EAAE,KAAK;QACV,SAAS,EAAE,MAAM;KAClB;IACD,MAAM,EAAE;QACN,GAAG,EAAE,QAAQ;QACb,SAAS,EAAE,QAAQ;KACpB;IACD,MAAM,EAAE;QACN,GAAG,EAAE,QAAQ;QACb,SAAS,EAAE,QAAQ;KACpB;IACD,KAAK,EAAE;QACL,GAAG,EAAE,OAAO;QACZ,SAAS,EAAE,QAAQ;KACpB;IACD,WAAW,EAAE;QAC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