@awell-health/awell-extensions 1.1.42 → 1.1.43-beta45

Sign up to get free protection for your applications and to get access to all the features.
Files changed (254) hide show
  1. package/dist/extensions/awell/v1/webhooks/index.d.ts +1 -1
  2. package/dist/extensions/awell/v1/webhooks/pathwayStart.d.ts +3 -1
  3. package/dist/extensions/awell/v1/webhooks/pathwayStart.js +13 -3
  4. package/dist/extensions/awell/v1/webhooks/pathwayStart.js.map +1 -1
  5. package/dist/extensions/calDotCom/webhooks/index.d.ts +1 -1
  6. package/dist/extensions/calendly/webhooks/index.d.ts +1 -1
  7. package/dist/extensions/elation/actions/updatePatient.js +1 -0
  8. package/dist/extensions/elation/actions/updatePatient.js.map +1 -1
  9. package/dist/extensions/elation/webhooks/index.d.ts +1 -1
  10. package/dist/extensions/healthie/lib/sdk/createSdk.d.ts +10 -0
  11. package/dist/extensions/healthie/lib/sdk/createSdk.js +17 -0
  12. package/dist/extensions/healthie/lib/sdk/createSdk.js.map +1 -0
  13. package/dist/extensions/healthie/lib/sdk/errors.d.ts +1 -0
  14. package/dist/extensions/healthie/lib/sdk/errors.js +46 -1
  15. package/dist/extensions/healthie/lib/sdk/errors.js.map +1 -1
  16. package/dist/extensions/healthie/lib/sdk/generated/sdk.d.ts +373 -9
  17. package/dist/extensions/healthie/lib/sdk/generated/sdk.js +110 -3
  18. package/dist/extensions/healthie/lib/sdk/generated/sdk.js.map +1 -1
  19. package/dist/extensions/healthie/lib/sdk/validatePayloadAndCreateSdk.js.map +1 -1
  20. package/dist/extensions/healthie/lib/types.d.ts +2 -1
  21. package/dist/extensions/healthie/lib/types.js +2 -0
  22. package/dist/extensions/healthie/lib/types.js.map +1 -1
  23. package/dist/extensions/healthie/webhooks/appliedTagCreated.d.ts +2 -1
  24. package/dist/extensions/healthie/webhooks/appliedTagCreated.js +18 -7
  25. package/dist/extensions/healthie/webhooks/appliedTagCreated.js.map +1 -1
  26. package/dist/extensions/healthie/webhooks/appliedTagDeleted.d.ts +2 -1
  27. package/dist/extensions/healthie/webhooks/appliedTagDeleted.js +18 -7
  28. package/dist/extensions/healthie/webhooks/appliedTagDeleted.js.map +1 -1
  29. package/dist/extensions/healthie/webhooks/appointmentCreated.d.ts +6 -1
  30. package/dist/extensions/healthie/webhooks/appointmentCreated.js +24 -6
  31. package/dist/extensions/healthie/webhooks/appointmentCreated.js.map +1 -1
  32. package/dist/extensions/healthie/webhooks/appointmentDeleted.d.ts +2 -1
  33. package/dist/extensions/healthie/webhooks/appointmentDeleted.js +20 -6
  34. package/dist/extensions/healthie/webhooks/appointmentDeleted.js.map +1 -1
  35. package/dist/extensions/healthie/webhooks/appointmentUpdated.d.ts +6 -1
  36. package/dist/extensions/healthie/webhooks/appointmentUpdated.js +24 -6
  37. package/dist/extensions/healthie/webhooks/appointmentUpdated.js.map +1 -1
  38. package/dist/extensions/healthie/webhooks/formAnswerGroupCreated.d.ts +6 -1
  39. package/dist/extensions/healthie/webhooks/formAnswerGroupCreated.js +25 -7
  40. package/dist/extensions/healthie/webhooks/formAnswerGroupCreated.js.map +1 -1
  41. package/dist/extensions/healthie/webhooks/formAnswerGroupDeleted.d.ts +2 -1
  42. package/dist/extensions/healthie/webhooks/formAnswerGroupDeleted.js +19 -6
  43. package/dist/extensions/healthie/webhooks/formAnswerGroupDeleted.js.map +1 -1
  44. package/dist/extensions/healthie/webhooks/formAnswerGroupLocked.d.ts +6 -1
  45. package/dist/extensions/healthie/webhooks/formAnswerGroupLocked.js +24 -6
  46. package/dist/extensions/healthie/webhooks/formAnswerGroupLocked.js.map +1 -1
  47. package/dist/extensions/healthie/webhooks/formAnswerGroupSigned.d.ts +6 -1
  48. package/dist/extensions/healthie/webhooks/formAnswerGroupSigned.js +24 -6
  49. package/dist/extensions/healthie/webhooks/formAnswerGroupSigned.js.map +1 -1
  50. package/dist/extensions/healthie/webhooks/goalCreated.d.ts +3 -2
  51. package/dist/extensions/healthie/webhooks/goalCreated.js +26 -9
  52. package/dist/extensions/healthie/webhooks/goalCreated.js.map +1 -1
  53. package/dist/extensions/healthie/webhooks/goalCreated.test.js +35 -0
  54. package/dist/extensions/healthie/webhooks/goalCreated.test.js.map +1 -0
  55. package/dist/extensions/healthie/webhooks/goalUpdated.d.ts +2 -1
  56. package/dist/extensions/healthie/webhooks/goalUpdated.js +19 -8
  57. package/dist/extensions/healthie/webhooks/goalUpdated.js.map +1 -1
  58. package/dist/extensions/healthie/webhooks/index.d.ts +316 -5
  59. package/dist/extensions/healthie/webhooks/index.js +0 -8
  60. package/dist/extensions/healthie/webhooks/index.js.map +1 -1
  61. package/dist/extensions/healthie/webhooks/labOrderCreated.d.ts +2 -1
  62. package/dist/extensions/healthie/webhooks/labOrderCreated.js +18 -7
  63. package/dist/extensions/healthie/webhooks/labOrderCreated.js.map +1 -1
  64. package/dist/extensions/healthie/webhooks/labOrderUpdated.d.ts +2 -1
  65. package/dist/extensions/healthie/webhooks/labOrderUpdated.js +18 -7
  66. package/dist/extensions/healthie/webhooks/labOrderUpdated.js.map +1 -1
  67. package/dist/extensions/healthie/webhooks/messageCreated.d.ts +2 -1
  68. package/dist/extensions/healthie/webhooks/messageCreated.js +19 -7
  69. package/dist/extensions/healthie/webhooks/messageCreated.js.map +1 -1
  70. package/dist/extensions/healthie/webhooks/messageDeleted.d.ts +2 -1
  71. package/dist/extensions/healthie/webhooks/messageDeleted.js +19 -7
  72. package/dist/extensions/healthie/webhooks/messageDeleted.js.map +1 -1
  73. package/dist/extensions/healthie/webhooks/metricEntryCreated.d.ts +2 -1
  74. package/dist/extensions/healthie/webhooks/metricEntryCreated.js +18 -7
  75. package/dist/extensions/healthie/webhooks/metricEntryCreated.js.map +1 -1
  76. package/dist/extensions/healthie/webhooks/metricEntryUpdated.d.ts +2 -1
  77. package/dist/extensions/healthie/webhooks/metricEntryUpdated.js +18 -7
  78. package/dist/extensions/healthie/webhooks/metricEntryUpdated.js.map +1 -1
  79. package/dist/extensions/healthie/webhooks/patientCreated.js +7 -1
  80. package/dist/extensions/healthie/webhooks/patientCreated.js.map +1 -1
  81. package/dist/extensions/healthie/webhooks/patientUpdated.js +7 -1
  82. package/dist/extensions/healthie/webhooks/patientUpdated.js.map +1 -1
  83. package/dist/extensions/healthie/webhooks/requestedFormCompletionCreated.d.ts +2 -1
  84. package/dist/extensions/healthie/webhooks/requestedFormCompletionCreated.js +18 -7
  85. package/dist/extensions/healthie/webhooks/requestedFormCompletionCreated.js.map +1 -1
  86. package/dist/extensions/healthie/webhooks/requestedFormCompletionUpdated.d.ts +2 -1
  87. package/dist/extensions/healthie/webhooks/requestedFormCompletionUpdated.js +18 -7
  88. package/dist/extensions/healthie/webhooks/requestedFormCompletionUpdated.js.map +1 -1
  89. package/dist/extensions/healthie/webhooks/taskCreated.d.ts +2 -1
  90. package/dist/extensions/healthie/webhooks/taskCreated.js +18 -7
  91. package/dist/extensions/healthie/webhooks/taskCreated.js.map +1 -1
  92. package/dist/extensions/healthie/webhooks/taskUpdated.d.ts +2 -1
  93. package/dist/extensions/healthie/webhooks/taskUpdated.js +19 -8
  94. package/dist/extensions/healthie/webhooks/taskUpdated.js.map +1 -1
  95. package/dist/extensions/hello-world/webhooks/index.d.ts +1 -1
  96. package/dist/extensions/markdown.json +0 -4
  97. package/dist/extensions/zusHealth/webhooks/index.d.ts +37 -1
  98. package/dist/extensions/zusHealth/webhooks/patientAdmitted.d.ts +2 -1
  99. package/dist/extensions/zusHealth/webhooks/patientAdmitted.js.map +1 -1
  100. package/dist/extensions/zusHealth/webhooks/patientDischarged.d.ts +2 -1
  101. package/dist/extensions/zusHealth/webhooks/patientDischarged.js.map +1 -1
  102. package/dist/src/test-server.js +4 -0
  103. package/dist/src/test-server.js.map +1 -1
  104. package/package.json +6 -5
  105. package/dist/extensions/healthie/webhooks/goalDeleted.d.ts +0 -11
  106. package/dist/extensions/healthie/webhooks/goalDeleted.js +0 -30
  107. package/dist/extensions/healthie/webhooks/goalDeleted.js.map +0 -1
  108. package/dist/extensions/healthie/webhooks/metricEntryDeleted.d.ts +0 -11
  109. package/dist/extensions/healthie/webhooks/metricEntryDeleted.js +0 -30
  110. package/dist/extensions/healthie/webhooks/metricEntryDeleted.js.map +0 -1
  111. package/dist/extensions/healthie/webhooks/requestedFormCompletionDeleted.d.ts +0 -11
  112. package/dist/extensions/healthie/webhooks/requestedFormCompletionDeleted.js +0 -30
  113. package/dist/extensions/healthie/webhooks/requestedFormCompletionDeleted.js.map +0 -1
  114. package/dist/extensions/healthie/webhooks/taskDeleted.d.ts +0 -11
  115. package/dist/extensions/healthie/webhooks/taskDeleted.js +0 -30
  116. package/dist/extensions/healthie/webhooks/taskDeleted.js.map +0 -1
  117. package/dist/extensions/wellinks-public/actions/checkFlourishCustomer/checkFlourishCustomer.d.ts +0 -11
  118. package/dist/extensions/wellinks-public/actions/checkFlourishCustomer/checkFlourishCustomer.js +0 -39
  119. package/dist/extensions/wellinks-public/actions/checkFlourishCustomer/checkFlourishCustomer.js.map +0 -1
  120. package/dist/extensions/wellinks-public/actions/checkFlourishCustomer/checkFlourishCustomer.test.js +0 -85
  121. package/dist/extensions/wellinks-public/actions/checkFlourishCustomer/checkFlourishCustomer.test.js.map +0 -1
  122. package/dist/extensions/wellinks-public/actions/checkFlourishCustomer/config/fields.d.ts +0 -18
  123. package/dist/extensions/wellinks-public/actions/checkFlourishCustomer/config/fields.js +0 -18
  124. package/dist/extensions/wellinks-public/actions/checkFlourishCustomer/config/fields.js.map +0 -1
  125. package/dist/extensions/wellinks-public/actions/checkFlourishCustomer/config/index.d.ts +0 -2
  126. package/dist/extensions/wellinks-public/actions/checkFlourishCustomer/config/index.js +0 -9
  127. package/dist/extensions/wellinks-public/actions/checkFlourishCustomer/config/index.js.map +0 -1
  128. package/dist/extensions/wellinks-public/actions/checkFlourishCustomer/config/settings.d.ts +0 -35
  129. package/dist/extensions/wellinks-public/actions/checkFlourishCustomer/config/settings.js +0 -17
  130. package/dist/extensions/wellinks-public/actions/checkFlourishCustomer/config/settings.js.map +0 -1
  131. package/dist/extensions/wellinks-public/actions/checkForChat/checkForChat.d.ts +0 -33
  132. package/dist/extensions/wellinks-public/actions/checkForChat/checkForChat.js +0 -129
  133. package/dist/extensions/wellinks-public/actions/checkForChat/checkForChat.js.map +0 -1
  134. package/dist/extensions/wellinks-public/actions/checkForChat/checkForChat.test.d.ts +0 -1
  135. package/dist/extensions/wellinks-public/actions/checkForChat/checkForChat.test.js +0 -154
  136. package/dist/extensions/wellinks-public/actions/checkForChat/checkForChat.test.js.map +0 -1
  137. package/dist/extensions/wellinks-public/actions/checkForCheckInOverride/checkForCheckInOverride.d.ts +0 -26
  138. package/dist/extensions/wellinks-public/actions/checkForCheckInOverride/checkForCheckInOverride.js +0 -139
  139. package/dist/extensions/wellinks-public/actions/checkForCheckInOverride/checkForCheckInOverride.js.map +0 -1
  140. package/dist/extensions/wellinks-public/actions/checkForCheckInOverride/checkForCheckInOverride.test.d.ts +0 -1
  141. package/dist/extensions/wellinks-public/actions/checkForCheckInOverride/checkForCheckInOverride.test.js +0 -185
  142. package/dist/extensions/wellinks-public/actions/checkForCheckInOverride/checkForCheckInOverride.test.js.map +0 -1
  143. package/dist/extensions/wellinks-public/actions/checkForOverride/checkForOverride.d.ts +0 -23
  144. package/dist/extensions/wellinks-public/actions/checkForOverride/checkForOverride.js +0 -153
  145. package/dist/extensions/wellinks-public/actions/checkForOverride/checkForOverride.js.map +0 -1
  146. package/dist/extensions/wellinks-public/actions/checkForOverride/checkForOverride.test.d.ts +0 -1
  147. package/dist/extensions/wellinks-public/actions/checkForOverride/checkForOverride.test.js +0 -184
  148. package/dist/extensions/wellinks-public/actions/checkForOverride/checkForOverride.test.js.map +0 -1
  149. package/dist/extensions/wellinks-public/actions/checkForScheduledAppointment/checkForScheduledAppointment.d.ts +0 -26
  150. package/dist/extensions/wellinks-public/actions/checkForScheduledAppointment/checkForScheduledAppointment.js +0 -118
  151. package/dist/extensions/wellinks-public/actions/checkForScheduledAppointment/checkForScheduledAppointment.js.map +0 -1
  152. package/dist/extensions/wellinks-public/actions/checkForScheduledAppointment/checkForScheduledAppointment.test.d.ts +0 -1
  153. package/dist/extensions/wellinks-public/actions/checkForScheduledAppointment/checkForScheduledAppointment.test.js +0 -119
  154. package/dist/extensions/wellinks-public/actions/checkForScheduledAppointment/checkForScheduledAppointment.test.js.map +0 -1
  155. package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/config/fields.d.ts +0 -82
  156. package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/config/fields.js +0 -78
  157. package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/config/fields.js.map +0 -1
  158. package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/config/index.d.ts +0 -1
  159. package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/config/index.js +0 -6
  160. package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/config/index.js.map +0 -1
  161. package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/createChartingNoteAdvanced-fail.test.d.ts +0 -1
  162. package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/createChartingNoteAdvanced-fail.test.js +0 -152
  163. package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/createChartingNoteAdvanced-fail.test.js.map +0 -1
  164. package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/createChartingNoteAdvanced.d.ts +0 -4
  165. package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/createChartingNoteAdvanced.js +0 -86
  166. package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/createChartingNoteAdvanced.js.map +0 -1
  167. package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/createChartingNoteAdvanced.test.d.ts +0 -1
  168. package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/createChartingNoteAdvanced.test.js +0 -42
  169. package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/createChartingNoteAdvanced.test.js.map +0 -1
  170. package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/index.d.ts +0 -1
  171. package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/index.js +0 -6
  172. package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/index.js.map +0 -1
  173. package/dist/extensions/wellinks-public/actions/createFlourishCustomer/config/fields.d.ts +0 -58
  174. package/dist/extensions/wellinks-public/actions/createFlourishCustomer/config/fields.js +0 -56
  175. package/dist/extensions/wellinks-public/actions/createFlourishCustomer/config/fields.js.map +0 -1
  176. package/dist/extensions/wellinks-public/actions/createFlourishCustomer/config/index.d.ts +0 -2
  177. package/dist/extensions/wellinks-public/actions/createFlourishCustomer/config/index.js +0 -9
  178. package/dist/extensions/wellinks-public/actions/createFlourishCustomer/config/index.js.map +0 -1
  179. package/dist/extensions/wellinks-public/actions/createFlourishCustomer/config/settings.d.ts +0 -35
  180. package/dist/extensions/wellinks-public/actions/createFlourishCustomer/config/settings.js +0 -17
  181. package/dist/extensions/wellinks-public/actions/createFlourishCustomer/config/settings.js.map +0 -1
  182. package/dist/extensions/wellinks-public/actions/createFlourishCustomer/createFlourishCustomer.d.ts +0 -11
  183. package/dist/extensions/wellinks-public/actions/createFlourishCustomer/createFlourishCustomer.js +0 -56
  184. package/dist/extensions/wellinks-public/actions/createFlourishCustomer/createFlourishCustomer.js.map +0 -1
  185. package/dist/extensions/wellinks-public/actions/createFlourishCustomer/createFlourishCustomer.test.d.ts +0 -1
  186. package/dist/extensions/wellinks-public/actions/createFlourishCustomer/createFlourishCustomer.test.js +0 -53
  187. package/dist/extensions/wellinks-public/actions/createFlourishCustomer/createFlourishCustomer.test.js.map +0 -1
  188. package/dist/extensions/wellinks-public/actions/index.d.ts +0 -967
  189. package/dist/extensions/wellinks-public/actions/index.js +0 -24
  190. package/dist/extensions/wellinks-public/actions/index.js.map +0 -1
  191. package/dist/extensions/wellinks-public/actions/insertMemberListEvent/config/fields.d.ts +0 -78
  192. package/dist/extensions/wellinks-public/actions/insertMemberListEvent/config/fields.js +0 -66
  193. package/dist/extensions/wellinks-public/actions/insertMemberListEvent/config/fields.js.map +0 -1
  194. package/dist/extensions/wellinks-public/actions/insertMemberListEvent/config/index.d.ts +0 -2
  195. package/dist/extensions/wellinks-public/actions/insertMemberListEvent/config/index.js +0 -9
  196. package/dist/extensions/wellinks-public/actions/insertMemberListEvent/config/index.js.map +0 -1
  197. package/dist/extensions/wellinks-public/actions/insertMemberListEvent/config/settings.d.ts +0 -38
  198. package/dist/extensions/wellinks-public/actions/insertMemberListEvent/config/settings.js +0 -11
  199. package/dist/extensions/wellinks-public/actions/insertMemberListEvent/config/settings.js.map +0 -1
  200. package/dist/extensions/wellinks-public/actions/insertMemberListEvent/insertMemberListEvent.d.ts +0 -11
  201. package/dist/extensions/wellinks-public/actions/insertMemberListEvent/insertMemberListEvent.js +0 -75
  202. package/dist/extensions/wellinks-public/actions/insertMemberListEvent/insertMemberListEvent.js.map +0 -1
  203. package/dist/extensions/wellinks-public/actions/insertMemberListEvent/insertMemberListEvent.test.d.ts +0 -1
  204. package/dist/extensions/wellinks-public/actions/insertMemberListEvent/insertMemberListEvent.test.js +0 -133
  205. package/dist/extensions/wellinks-public/actions/insertMemberListEvent/insertMemberListEvent.test.js.map +0 -1
  206. package/dist/extensions/wellinks-public/actions/submitPamSurvey/config/fields.d.ts +0 -188
  207. package/dist/extensions/wellinks-public/actions/submitPamSurvey/config/fields.js +0 -160
  208. package/dist/extensions/wellinks-public/actions/submitPamSurvey/config/fields.js.map +0 -1
  209. package/dist/extensions/wellinks-public/actions/submitPamSurvey/config/index.d.ts +0 -2
  210. package/dist/extensions/wellinks-public/actions/submitPamSurvey/config/index.js +0 -9
  211. package/dist/extensions/wellinks-public/actions/submitPamSurvey/config/index.js.map +0 -1
  212. package/dist/extensions/wellinks-public/actions/submitPamSurvey/config/settings.d.ts +0 -35
  213. package/dist/extensions/wellinks-public/actions/submitPamSurvey/config/settings.js +0 -17
  214. package/dist/extensions/wellinks-public/actions/submitPamSurvey/config/settings.js.map +0 -1
  215. package/dist/extensions/wellinks-public/actions/submitPamSurvey/submitPamSurvey.d.ts +0 -19
  216. package/dist/extensions/wellinks-public/actions/submitPamSurvey/submitPamSurvey.js +0 -66
  217. package/dist/extensions/wellinks-public/actions/submitPamSurvey/submitPamSurvey.js.map +0 -1
  218. package/dist/extensions/wellinks-public/actions/submitPamSurvey/submitPamSurvey.test.d.ts +0 -1
  219. package/dist/extensions/wellinks-public/actions/submitPamSurvey/submitPamSurvey.test.js +0 -125
  220. package/dist/extensions/wellinks-public/actions/submitPamSurvey/submitPamSurvey.test.js.map +0 -1
  221. package/dist/extensions/wellinks-public/api/clients/wellinksClient.d.ts +0 -16
  222. package/dist/extensions/wellinks-public/api/clients/wellinksClient.js +0 -40
  223. package/dist/extensions/wellinks-public/api/clients/wellinksClient.js.map +0 -1
  224. package/dist/extensions/wellinks-public/api/clients/wellinksFlourishClient.d.ts +0 -14
  225. package/dist/extensions/wellinks-public/api/clients/wellinksFlourishClient.js +0 -201
  226. package/dist/extensions/wellinks-public/api/clients/wellinksFlourishClient.js.map +0 -1
  227. package/dist/extensions/wellinks-public/api/clients/wellinksGraphqlClient.d.ts +0 -3
  228. package/dist/extensions/wellinks-public/api/clients/wellinksGraphqlClient.js +0 -23
  229. package/dist/extensions/wellinks-public/api/clients/wellinksGraphqlClient.js.map +0 -1
  230. package/dist/extensions/wellinks-public/api/test/wellinksFlourishClient.test.d.ts +0 -1
  231. package/dist/extensions/wellinks-public/api/test/wellinksFlourishClient.test.js +0 -192
  232. package/dist/extensions/wellinks-public/api/test/wellinksFlourishClient.test.js.map +0 -1
  233. package/dist/extensions/wellinks-public/codegen.d.ts +0 -3
  234. package/dist/extensions/wellinks-public/codegen.js +0 -21
  235. package/dist/extensions/wellinks-public/codegen.js.map +0 -1
  236. package/dist/extensions/wellinks-public/config/settings.d.ts +0 -107
  237. package/dist/extensions/wellinks-public/config/settings.js +0 -89
  238. package/dist/extensions/wellinks-public/config/settings.js.map +0 -1
  239. package/dist/extensions/wellinks-public/config/types.d.ts +0 -5
  240. package/dist/extensions/wellinks-public/config/types.js +0 -3
  241. package/dist/extensions/wellinks-public/config/types.js.map +0 -1
  242. package/dist/extensions/wellinks-public/gql/wellinksSdk.d.ts +0 -24110
  243. package/dist/extensions/wellinks-public/gql/wellinksSdk.js +0 -635
  244. package/dist/extensions/wellinks-public/gql/wellinksSdk.js.map +0 -1
  245. package/dist/extensions/wellinks-public/graphql/mutations.d.ts +0 -1
  246. package/dist/extensions/wellinks-public/graphql/mutations.js +0 -17
  247. package/dist/extensions/wellinks-public/graphql/mutations.js.map +0 -1
  248. package/dist/extensions/wellinks-public/graphql/queries.d.ts +0 -5
  249. package/dist/extensions/wellinks-public/graphql/queries.js +0 -66
  250. package/dist/extensions/wellinks-public/graphql/queries.js.map +0 -1
  251. package/dist/extensions/wellinks-public/index.d.ts +0 -2
  252. package/dist/extensions/wellinks-public/index.js +0 -20
  253. package/dist/extensions/wellinks-public/index.js.map +0 -1
  254. /package/dist/extensions/{wellinks-public/actions/checkFlourishCustomer/checkFlourishCustomer.test.d.ts → healthie/webhooks/goalCreated.test.d.ts} +0 -0
@@ -1,11 +1,12 @@
1
1
  import { type Webhook } from '@awell-health/extensions-core';
2
2
  import { type HealthieWebhookPayload } from '../lib/types';
3
+ import { type settings } from '../settings';
3
4
  declare const dataPoints: {
4
5
  createdMetricId: {
5
6
  key: string;
6
7
  valueType: "string";
7
8
  };
8
9
  };
9
- export declare const metricEntryCreated: Webhook<keyof typeof dataPoints, HealthieWebhookPayload>;
10
+ export declare const metricEntryCreated: Webhook<keyof typeof dataPoints, HealthieWebhookPayload, typeof settings>;
10
11
  export type MetricEntryCreated = typeof metricEntryCreated;
11
12
  export {};
@@ -2,6 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.metricEntryCreated = void 0;
4
4
  const lodash_1 = require("lodash");
5
+ const types_1 = require("../lib/types");
6
+ const errors_1 = require("../lib/sdk/errors");
7
+ const createSdk_1 = require("../lib/sdk/createSdk");
5
8
  const dataPoints = {
6
9
  createdMetricId: {
7
10
  key: 'createdMetricId',
@@ -12,19 +15,27 @@ exports.metricEntryCreated = {
12
15
  key: 'metricEntryCreated',
13
16
  dataPoints,
14
17
  onWebhookReceived: async ({ payload, settings }, onSuccess, onError) => {
15
- const { resource_id: createdMetricId } = payload;
16
- if ((0, lodash_1.isNil)(createdMetricId)) {
17
- await onError({
18
- // We should automatically send a 400 here, so no need to provide info
19
- });
20
- }
21
- else {
18
+ var _a, _b, _c;
19
+ try {
20
+ const { sdk } = await (0, createSdk_1.createSdk)({ settings });
21
+ const createdMetricId = payload.resource_id.toString();
22
+ const response = await sdk.getMetricEntry({ id: createdMetricId });
23
+ const healthiePatientId = (_c = (_b = (_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.entry) === null || _b === void 0 ? void 0 : _b.poster) === null || _c === void 0 ? void 0 : _c.id;
22
24
  await onSuccess({
23
25
  data_points: {
24
26
  createdMetricId,
25
27
  },
28
+ ...(!(0, lodash_1.isNil)(healthiePatientId) && {
29
+ patient_identifier: {
30
+ system: types_1.HEALTHIE_IDENTIFIER,
31
+ value: healthiePatientId,
32
+ },
33
+ }),
26
34
  });
27
35
  }
36
+ catch (error) {
37
+ await onError((0, errors_1.formatError)(error));
38
+ }
28
39
  },
29
40
  };
30
41
  //# sourceMappingURL=metricEntryCreated.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"metricEntryCreated.js","sourceRoot":"","sources":["../../../../extensions/healthie/webhooks/metricEntryCreated.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;AAO9B,MAAM,UAAU,GAAG;IACjB,eAAe,EAAE;QACf,GAAG,EAAE,iBAAiB;QACtB,SAAS,EAAE,QAAQ;KACpB;CAC4C,CAAA;AAElC,QAAA,kBAAkB,GAG3B;IACF,GAAG,EAAE,oBAAoB;IACzB,UAAU;IACV,iBAAiB,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE;QACrE,MAAM,EAAE,WAAW,EAAE,eAAe,EAAE,GAAG,OAAO,CAAA;QAEhD,IAAI,IAAA,cAAK,EAAC,eAAe,CAAC,EAAE;YAC1B,MAAM,OAAO,CAAC;YACZ,sEAAsE;aACvE,CAAC,CAAA;SACH;aAAM;YACL,MAAM,SAAS,CAAC;gBACd,WAAW,EAAE;oBACX,eAAe;iBAChB;aACF,CAAC,CAAA;SACH;IACH,CAAC;CACF,CAAA"}
1
+ {"version":3,"file":"metricEntryCreated.js","sourceRoot":"","sources":["../../../../extensions/healthie/webhooks/metricEntryCreated.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;AAK9B,wCAA+E;AAE/E,8CAA+C;AAC/C,oDAAgD;AAEhD,MAAM,UAAU,GAAG;IACjB,eAAe,EAAE;QACf,GAAG,EAAE,iBAAiB;QACtB,SAAS,EAAE,QAAQ;KACpB;CAC4C,CAAA;AAElC,QAAA,kBAAkB,GAI3B;IACF,GAAG,EAAE,oBAAoB;IACzB,UAAU;IACV,iBAAiB,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE;;QACrE,IAAI;YACF,MAAM,EAAE,GAAG,EAAE,GAAG,MAAM,IAAA,qBAAS,EAAC,EAAE,QAAQ,EAAE,CAAC,CAAA;YAC7C,MAAM,eAAe,GAAG,OAAO,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAA;YAEtD,MAAM,QAAQ,GAAG,MAAM,GAAG,CAAC,cAAc,CAAC,EAAE,EAAE,EAAE,eAAe,EAAE,CAAC,CAAA;YAClE,MAAM,iBAAiB,GAAG,MAAA,MAAA,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,0CAAE,KAAK,0CAAE,MAAM,0CAAE,EAAE,CAAA;YAC3D,MAAM,SAAS,CAAC;gBACd,WAAW,EAAE;oBACX,eAAe;iBAChB;gBACD,GAAG,CAAC,CAAC,IAAA,cAAK,EAAC,iBAAiB,CAAC,IAAI;oBAC/B,kBAAkB,EAAE;wBAClB,MAAM,EAAE,2BAAmB;wBAC3B,KAAK,EAAE,iBAAiB;qBACzB;iBACF,CAAC;aACH,CAAC,CAAA;SACH;QAAC,OAAO,KAAK,EAAE;YACd,MAAM,OAAO,CAAC,IAAA,oBAAW,EAAC,KAAK,CAAC,CAAC,CAAA;SAClC;IACH,CAAC;CACF,CAAA"}
@@ -1,11 +1,12 @@
1
1
  import { type Webhook } from '@awell-health/extensions-core';
2
2
  import { type HealthieWebhookPayload } from '../lib/types';
3
+ import { type settings } from '../settings';
3
4
  declare const dataPoints: {
4
5
  updatedMetricId: {
5
6
  key: string;
6
7
  valueType: "string";
7
8
  };
8
9
  };
9
- export declare const metricEntryUpdated: Webhook<keyof typeof dataPoints, HealthieWebhookPayload>;
10
+ export declare const metricEntryUpdated: Webhook<keyof typeof dataPoints, HealthieWebhookPayload, typeof settings>;
10
11
  export type MetricEntryUpdated = typeof metricEntryUpdated;
11
12
  export {};
@@ -2,6 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.metricEntryUpdated = void 0;
4
4
  const lodash_1 = require("lodash");
5
+ const types_1 = require("../lib/types");
6
+ const createSdk_1 = require("../lib/sdk/createSdk");
7
+ const errors_1 = require("../lib/sdk/errors");
5
8
  const dataPoints = {
6
9
  updatedMetricId: {
7
10
  key: 'updatedMetricId',
@@ -12,19 +15,27 @@ exports.metricEntryUpdated = {
12
15
  key: 'metricEntryUpdated',
13
16
  dataPoints,
14
17
  onWebhookReceived: async ({ payload, settings }, onSuccess, onError) => {
15
- const { resource_id: updatedMetricId } = payload;
16
- if ((0, lodash_1.isNil)(updatedMetricId)) {
17
- await onError({
18
- // We should automatically send a 400 here, so no need to provide info
19
- });
20
- }
21
- else {
18
+ var _a, _b, _c;
19
+ try {
20
+ const { sdk } = await (0, createSdk_1.createSdk)({ settings });
21
+ const updatedMetricId = payload.resource_id.toString();
22
+ const response = await sdk.getMetricEntry({ id: updatedMetricId });
23
+ const healthiePatientId = (_c = (_b = (_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.entry) === null || _b === void 0 ? void 0 : _b.poster) === null || _c === void 0 ? void 0 : _c.id;
22
24
  await onSuccess({
23
25
  data_points: {
24
26
  updatedMetricId,
25
27
  },
28
+ ...(!(0, lodash_1.isNil)(healthiePatientId) && {
29
+ patient_identifier: {
30
+ system: types_1.HEALTHIE_IDENTIFIER,
31
+ value: healthiePatientId,
32
+ },
33
+ }),
26
34
  });
27
35
  }
36
+ catch (error) {
37
+ await onError((0, errors_1.formatError)(error));
38
+ }
28
39
  },
29
40
  };
30
41
  //# sourceMappingURL=metricEntryUpdated.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"metricEntryUpdated.js","sourceRoot":"","sources":["../../../../extensions/healthie/webhooks/metricEntryUpdated.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;AAO9B,MAAM,UAAU,GAAG;IACjB,eAAe,EAAE;QACf,GAAG,EAAE,iBAAiB;QACtB,SAAS,EAAE,QAAQ;KACpB;CAC4C,CAAA;AAElC,QAAA,kBAAkB,GAG3B;IACF,GAAG,EAAE,oBAAoB;IACzB,UAAU;IACV,iBAAiB,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE;QACrE,MAAM,EAAE,WAAW,EAAE,eAAe,EAAE,GAAG,OAAO,CAAA;QAEhD,IAAI,IAAA,cAAK,EAAC,eAAe,CAAC,EAAE;YAC1B,MAAM,OAAO,CAAC;YACZ,sEAAsE;aACvE,CAAC,CAAA;SACH;aAAM;YACL,MAAM,SAAS,CAAC;gBACd,WAAW,EAAE;oBACX,eAAe;iBAChB;aACF,CAAC,CAAA;SACH;IACH,CAAC;CACF,CAAA"}
1
+ {"version":3,"file":"metricEntryUpdated.js","sourceRoot":"","sources":["../../../../extensions/healthie/webhooks/metricEntryUpdated.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;AAK9B,wCAA+E;AAE/E,oDAAgD;AAChD,8CAA+C;AAE/C,MAAM,UAAU,GAAG;IACjB,eAAe,EAAE;QACf,GAAG,EAAE,iBAAiB;QACtB,SAAS,EAAE,QAAQ;KACpB;CAC4C,CAAA;AAElC,QAAA,kBAAkB,GAI3B;IACF,GAAG,EAAE,oBAAoB;IACzB,UAAU;IACV,iBAAiB,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE;;QACrE,IAAI;YACF,MAAM,EAAE,GAAG,EAAE,GAAG,MAAM,IAAA,qBAAS,EAAC,EAAE,QAAQ,EAAE,CAAC,CAAA;YAC7C,MAAM,eAAe,GAAG,OAAO,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAA;YAEtD,MAAM,QAAQ,GAAG,MAAM,GAAG,CAAC,cAAc,CAAC,EAAE,EAAE,EAAE,eAAe,EAAE,CAAC,CAAA;YAClE,MAAM,iBAAiB,GAAG,MAAA,MAAA,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,0CAAE,KAAK,0CAAE,MAAM,0CAAE,EAAE,CAAA;YAE3D,MAAM,SAAS,CAAC;gBACd,WAAW,EAAE;oBACX,eAAe;iBAChB;gBACD,GAAG,CAAC,CAAC,IAAA,cAAK,EAAC,iBAAiB,CAAC,IAAI;oBAC/B,kBAAkB,EAAE;wBAClB,MAAM,EAAE,2BAAmB;wBAC3B,KAAK,EAAE,iBAAiB;qBACzB;iBACF,CAAC;aACH,CAAC,CAAA;SACH;QAAC,OAAO,KAAK,EAAE;YACd,MAAM,OAAO,CAAC,IAAA,oBAAW,EAAC,KAAK,CAAC,CAAC,CAAA;SAClC;IACH,CAAC;CACF,CAAA"}
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.patientCreated = void 0;
4
4
  const lodash_1 = require("lodash");
5
+ const types_1 = require("../lib/types");
5
6
  const dataPoints = {
6
7
  patientId: {
7
8
  key: 'patientId',
@@ -12,7 +13,8 @@ exports.patientCreated = {
12
13
  key: 'patientCreated',
13
14
  dataPoints,
14
15
  onWebhookReceived: async ({ payload, settings }, onSuccess, onError) => {
15
- const { resource_id: patientId } = payload;
16
+ const { resource_id } = payload;
17
+ const patientId = resource_id.toString();
16
18
  if ((0, lodash_1.isNil)(patientId)) {
17
19
  await onError({
18
20
  // We should automatically send a 400 here, so no need to provide info
@@ -23,6 +25,10 @@ exports.patientCreated = {
23
25
  data_points: {
24
26
  patientId,
25
27
  },
28
+ patient_identifier: {
29
+ system: types_1.HEALTHIE_IDENTIFIER,
30
+ value: patientId,
31
+ },
26
32
  });
27
33
  }
28
34
  },
@@ -1 +1 @@
1
- {"version":3,"file":"patientCreated.js","sourceRoot":"","sources":["../../../../extensions/healthie/webhooks/patientCreated.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;AAO9B,MAAM,UAAU,GAAG;IACjB,SAAS,EAAE;QACT,GAAG,EAAE,WAAW;QAChB,SAAS,EAAE,QAAQ;KACpB;CAC4C,CAAA;AAElC,QAAA,cAAc,GAGvB;IACF,GAAG,EAAE,gBAAgB;IACrB,UAAU;IACV,iBAAiB,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE;QACrE,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,GAAG,OAAO,CAAA;QAE1C,IAAI,IAAA,cAAK,EAAC,SAAS,CAAC,EAAE;YACpB,MAAM,OAAO,CAAC;YACZ,sEAAsE;aACvE,CAAC,CAAA;SACH;aAAM;YACL,MAAM,SAAS,CAAC;gBACd,WAAW,EAAE;oBACX,SAAS;iBACV;aACF,CAAC,CAAA;SACH;IACH,CAAC;CACF,CAAA"}
1
+ {"version":3,"file":"patientCreated.js","sourceRoot":"","sources":["../../../../extensions/healthie/webhooks/patientCreated.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;AAK9B,wCAA+E;AAE/E,MAAM,UAAU,GAAG;IACjB,SAAS,EAAE;QACT,GAAG,EAAE,WAAW;QAChB,SAAS,EAAE,QAAQ;KACpB;CAC4C,CAAA;AAElC,QAAA,cAAc,GAGvB;IACF,GAAG,EAAE,gBAAgB;IACrB,UAAU;IACV,iBAAiB,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE;QACrE,MAAM,EAAE,WAAW,EAAE,GAAG,OAAO,CAAA;QAC/B,MAAM,SAAS,GAAG,WAAW,CAAC,QAAQ,EAAE,CAAA;QAExC,IAAI,IAAA,cAAK,EAAC,SAAS,CAAC,EAAE;YACpB,MAAM,OAAO,CAAC;YACZ,sEAAsE;aACvE,CAAC,CAAA;SACH;aAAM;YACL,MAAM,SAAS,CAAC;gBACd,WAAW,EAAE;oBACX,SAAS;iBACV;gBACD,kBAAkB,EAAE;oBAClB,MAAM,EAAE,2BAAmB;oBAC3B,KAAK,EAAE,SAAS;iBACjB;aACF,CAAC,CAAA;SACH;IACH,CAAC;CACF,CAAA"}
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.patientUpdated = void 0;
4
4
  const lodash_1 = require("lodash");
5
+ const types_1 = require("../lib/types");
5
6
  const dataPoints = {
6
7
  updatedPatientId: {
7
8
  key: 'updatedPatientId',
@@ -12,7 +13,8 @@ exports.patientUpdated = {
12
13
  key: 'patientUpdated',
13
14
  dataPoints,
14
15
  onWebhookReceived: async ({ payload, settings }, onSuccess, onError) => {
15
- const { resource_id: updatedPatientId } = payload;
16
+ const { resource_id } = payload;
17
+ const updatedPatientId = resource_id.toString();
16
18
  if ((0, lodash_1.isNil)(updatedPatientId)) {
17
19
  await onError({
18
20
  // We should automatically send a 400 here, so no need to provide info
@@ -23,6 +25,10 @@ exports.patientUpdated = {
23
25
  data_points: {
24
26
  updatedPatientId,
25
27
  },
28
+ patient_identifier: {
29
+ system: types_1.HEALTHIE_IDENTIFIER,
30
+ value: updatedPatientId,
31
+ },
26
32
  });
27
33
  }
28
34
  },
@@ -1 +1 @@
1
- {"version":3,"file":"patientUpdated.js","sourceRoot":"","sources":["../../../../extensions/healthie/webhooks/patientUpdated.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;AAO9B,MAAM,UAAU,GAAG;IACjB,gBAAgB,EAAE;QAChB,GAAG,EAAE,kBAAkB;QACvB,SAAS,EAAE,QAAQ;KACpB;CAC4C,CAAA;AAElC,QAAA,cAAc,GAGvB;IACF,GAAG,EAAE,gBAAgB;IACrB,UAAU;IACV,iBAAiB,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE;QACrE,MAAM,EAAE,WAAW,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAA;QAEjD,IAAI,IAAA,cAAK,EAAC,gBAAgB,CAAC,EAAE;YAC3B,MAAM,OAAO,CAAC;YACZ,sEAAsE;aACvE,CAAC,CAAA;SACH;aAAM;YACL,MAAM,SAAS,CAAC;gBACd,WAAW,EAAE;oBACX,gBAAgB;iBACjB;aACF,CAAC,CAAA;SACH;IACH,CAAC;CACF,CAAA"}
1
+ {"version":3,"file":"patientUpdated.js","sourceRoot":"","sources":["../../../../extensions/healthie/webhooks/patientUpdated.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;AAK9B,wCAA+E;AAE/E,MAAM,UAAU,GAAG;IACjB,gBAAgB,EAAE;QAChB,GAAG,EAAE,kBAAkB;QACvB,SAAS,EAAE,QAAQ;KACpB;CAC4C,CAAA;AAElC,QAAA,cAAc,GAGvB;IACF,GAAG,EAAE,gBAAgB;IACrB,UAAU;IACV,iBAAiB,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE;QACrE,MAAM,EAAE,WAAW,EAAE,GAAG,OAAO,CAAA;QAC/B,MAAM,gBAAgB,GAAG,WAAW,CAAC,QAAQ,EAAE,CAAA;QAE/C,IAAI,IAAA,cAAK,EAAC,gBAAgB,CAAC,EAAE;YAC3B,MAAM,OAAO,CAAC;YACZ,sEAAsE;aACvE,CAAC,CAAA;SACH;aAAM;YACL,MAAM,SAAS,CAAC;gBACd,WAAW,EAAE;oBACX,gBAAgB;iBACjB;gBACD,kBAAkB,EAAE;oBAClB,MAAM,EAAE,2BAAmB;oBAC3B,KAAK,EAAE,gBAAgB;iBACxB;aACF,CAAC,CAAA;SACH;IACH,CAAC;CACF,CAAA"}
@@ -1,11 +1,12 @@
1
1
  import { type Webhook } from '@awell-health/extensions-core';
2
2
  import { type HealthieWebhookPayload } from '../lib/types';
3
+ import { type settings } from '../settings';
3
4
  declare const dataPoints: {
4
5
  createdFormCompletionId: {
5
6
  key: string;
6
7
  valueType: "string";
7
8
  };
8
9
  };
9
- export declare const requestFormCompletionCreated: Webhook<keyof typeof dataPoints, HealthieWebhookPayload>;
10
+ export declare const requestFormCompletionCreated: Webhook<keyof typeof dataPoints, HealthieWebhookPayload, typeof settings>;
10
11
  export type RequestFormCompletionCreated = typeof requestFormCompletionCreated;
11
12
  export {};
@@ -2,6 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.requestFormCompletionCreated = void 0;
4
4
  const lodash_1 = require("lodash");
5
+ const types_1 = require("../lib/types");
6
+ const errors_1 = require("../lib/sdk/errors");
7
+ const createSdk_1 = require("../lib/sdk/createSdk");
5
8
  const dataPoints = {
6
9
  createdFormCompletionId: {
7
10
  key: 'createdFormCompletionId',
@@ -12,19 +15,27 @@ exports.requestFormCompletionCreated = {
12
15
  key: 'requestFormCompletionCreated',
13
16
  dataPoints,
14
17
  onWebhookReceived: async ({ payload, settings }, onSuccess, onError) => {
15
- const { resource_id: createdFormCompletionId } = payload;
16
- if ((0, lodash_1.isNil)(createdFormCompletionId)) {
17
- await onError({
18
- // We should automatically send a 400 here, so no need to provide info
19
- });
20
- }
21
- else {
18
+ var _a, _b;
19
+ try {
20
+ const { sdk } = await (0, createSdk_1.createSdk)({ settings });
21
+ const createdFormCompletionId = payload.resource_id.toString();
22
+ const response = await sdk.getRequestedFormCompletion({ id: createdFormCompletionId });
23
+ const healthiePatientId = (_b = (_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.requestedFormCompletion) === null || _b === void 0 ? void 0 : _b.recipient_id;
22
24
  await onSuccess({
23
25
  data_points: {
24
26
  createdFormCompletionId,
25
27
  },
28
+ ...(!(0, lodash_1.isNil)(healthiePatientId) && {
29
+ patient_identifier: {
30
+ system: types_1.HEALTHIE_IDENTIFIER,
31
+ value: healthiePatientId,
32
+ },
33
+ }),
26
34
  });
27
35
  }
36
+ catch (error) {
37
+ await onError((0, errors_1.formatError)(error));
38
+ }
28
39
  },
29
40
  };
30
41
  //# sourceMappingURL=requestedFormCompletionCreated.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"requestedFormCompletionCreated.js","sourceRoot":"","sources":["../../../../extensions/healthie/webhooks/requestedFormCompletionCreated.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;AAO9B,MAAM,UAAU,GAAG;IACjB,uBAAuB,EAAE;QACvB,GAAG,EAAE,yBAAyB;QAC9B,SAAS,EAAE,QAAQ;KACpB;CAC4C,CAAA;AAElC,QAAA,4BAA4B,GAGrC;IACF,GAAG,EAAE,8BAA8B;IACnC,UAAU;IACV,iBAAiB,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE;QACrE,MAAM,EAAE,WAAW,EAAE,uBAAuB,EAAE,GAAG,OAAO,CAAA;QAExD,IAAI,IAAA,cAAK,EAAC,uBAAuB,CAAC,EAAE;YAClC,MAAM,OAAO,CAAC;YACZ,sEAAsE;aACvE,CAAC,CAAA;SACH;aAAM;YACL,MAAM,SAAS,CAAC;gBACd,WAAW,EAAE;oBACX,uBAAuB;iBACxB;aACF,CAAC,CAAA;SACH;IACH,CAAC;CACF,CAAA"}
1
+ {"version":3,"file":"requestedFormCompletionCreated.js","sourceRoot":"","sources":["../../../../extensions/healthie/webhooks/requestedFormCompletionCreated.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;AAK9B,wCAA+E;AAE/E,8CAA+C;AAC/C,oDAAgD;AAEhD,MAAM,UAAU,GAAG;IACjB,uBAAuB,EAAE;QACvB,GAAG,EAAE,yBAAyB;QAC9B,SAAS,EAAE,QAAQ;KACpB;CAC4C,CAAA;AAElC,QAAA,4BAA4B,GAIrC;IACF,GAAG,EAAE,8BAA8B;IACnC,UAAU;IACV,iBAAiB,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE;;QACrE,IAAI;YACF,MAAM,EAAE,GAAG,EAAE,GAAG,MAAM,IAAA,qBAAS,EAAC,EAAE,QAAQ,EAAE,CAAC,CAAA;YAC7C,MAAM,uBAAuB,GAAG,OAAO,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAA;YAE9D,MAAM,QAAQ,GAAG,MAAM,GAAG,CAAC,0BAA0B,CAAC,EAAE,EAAE,EAAE,uBAAuB,EAAE,CAAC,CAAA;YACtF,MAAM,iBAAiB,GAAG,MAAA,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,0CAAE,uBAAuB,0CAAE,YAAY,CAAA;YAC/E,MAAM,SAAS,CAAC;gBACd,WAAW,EAAE;oBACX,uBAAuB;iBACxB;gBACD,GAAG,CAAC,CAAC,IAAA,cAAK,EAAC,iBAAiB,CAAC,IAAI;oBAC/B,kBAAkB,EAAE;wBAClB,MAAM,EAAE,2BAAmB;wBAC3B,KAAK,EAAE,iBAAiB;qBACzB;iBACF,CAAC;aACH,CAAC,CAAA;SACH;QAAC,OAAO,KAAK,EAAE;YACd,MAAM,OAAO,CAAC,IAAA,oBAAW,EAAC,KAAK,CAAC,CAAC,CAAA;SAClC;IACH,CAAC;CACF,CAAA"}
@@ -1,11 +1,12 @@
1
1
  import { type Webhook } from '@awell-health/extensions-core';
2
2
  import { type HealthieWebhookPayload } from '../lib/types';
3
+ import { type settings } from '../settings';
3
4
  declare const dataPoints: {
4
5
  updatedFormCompletionId: {
5
6
  key: string;
6
7
  valueType: "string";
7
8
  };
8
9
  };
9
- export declare const requestFormCompletionUpdated: Webhook<keyof typeof dataPoints, HealthieWebhookPayload>;
10
+ export declare const requestFormCompletionUpdated: Webhook<keyof typeof dataPoints, HealthieWebhookPayload, typeof settings>;
10
11
  export type RequestFormCompletionUpdated = typeof requestFormCompletionUpdated;
11
12
  export {};
@@ -2,6 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.requestFormCompletionUpdated = void 0;
4
4
  const lodash_1 = require("lodash");
5
+ const types_1 = require("../lib/types");
6
+ const errors_1 = require("../lib/sdk/errors");
7
+ const createSdk_1 = require("../lib/sdk/createSdk");
5
8
  const dataPoints = {
6
9
  updatedFormCompletionId: {
7
10
  key: 'updatedFormCompletionId',
@@ -12,19 +15,27 @@ exports.requestFormCompletionUpdated = {
12
15
  key: 'requestFormCompletionUpdated',
13
16
  dataPoints,
14
17
  onWebhookReceived: async ({ payload, settings }, onSuccess, onError) => {
15
- const { resource_id: updatedFormCompletionId } = payload;
16
- if ((0, lodash_1.isNil)(updatedFormCompletionId)) {
17
- await onError({
18
- // We should automatically send a 400 here, so no need to provide info
19
- });
20
- }
21
- else {
18
+ var _a, _b;
19
+ try {
20
+ const { sdk } = await (0, createSdk_1.createSdk)({ settings });
21
+ const updatedFormCompletionId = payload.resource_id.toString();
22
+ const response = await sdk.getRequestedFormCompletion({ id: updatedFormCompletionId });
23
+ const healthiePatientId = (_b = (_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.requestedFormCompletion) === null || _b === void 0 ? void 0 : _b.recipient_id;
22
24
  await onSuccess({
23
25
  data_points: {
24
26
  updatedFormCompletionId,
25
27
  },
28
+ ...(!(0, lodash_1.isNil)(healthiePatientId) && {
29
+ patient_identifier: {
30
+ system: types_1.HEALTHIE_IDENTIFIER,
31
+ value: healthiePatientId,
32
+ },
33
+ }),
26
34
  });
27
35
  }
36
+ catch (error) {
37
+ await onError((0, errors_1.formatError)(error));
38
+ }
28
39
  },
29
40
  };
30
41
  //# sourceMappingURL=requestedFormCompletionUpdated.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"requestedFormCompletionUpdated.js","sourceRoot":"","sources":["../../../../extensions/healthie/webhooks/requestedFormCompletionUpdated.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;AAO9B,MAAM,UAAU,GAAG;IACjB,uBAAuB,EAAE;QACvB,GAAG,EAAE,yBAAyB;QAC9B,SAAS,EAAE,QAAQ;KACpB;CAC4C,CAAA;AAElC,QAAA,4BAA4B,GAGrC;IACF,GAAG,EAAE,8BAA8B;IACnC,UAAU;IACV,iBAAiB,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE;QACrE,MAAM,EAAE,WAAW,EAAE,uBAAuB,EAAE,GAAG,OAAO,CAAA;QAExD,IAAI,IAAA,cAAK,EAAC,uBAAuB,CAAC,EAAE;YAClC,MAAM,OAAO,CAAC;YACZ,sEAAsE;aACvE,CAAC,CAAA;SACH;aAAM;YACL,MAAM,SAAS,CAAC;gBACd,WAAW,EAAE;oBACX,uBAAuB;iBACxB;aACF,CAAC,CAAA;SACH;IACH,CAAC;CACF,CAAA"}
1
+ {"version":3,"file":"requestedFormCompletionUpdated.js","sourceRoot":"","sources":["../../../../extensions/healthie/webhooks/requestedFormCompletionUpdated.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;AAK9B,wCAA+E;AAE/E,8CAA+C;AAC/C,oDAAgD;AAEhD,MAAM,UAAU,GAAG;IACjB,uBAAuB,EAAE;QACvB,GAAG,EAAE,yBAAyB;QAC9B,SAAS,EAAE,QAAQ;KACpB;CAC4C,CAAA;AAElC,QAAA,4BAA4B,GAIrC;IACF,GAAG,EAAE,8BAA8B;IACnC,UAAU;IACV,iBAAiB,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE;;QACrE,IAAI;YACF,MAAM,EAAE,GAAG,EAAE,GAAG,MAAM,IAAA,qBAAS,EAAC,EAAE,QAAQ,EAAE,CAAC,CAAA;YAC7C,MAAM,uBAAuB,GAAG,OAAO,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAA;YAE9D,MAAM,QAAQ,GAAG,MAAM,GAAG,CAAC,0BAA0B,CAAC,EAAE,EAAE,EAAE,uBAAuB,EAAE,CAAC,CAAA;YACtF,MAAM,iBAAiB,GAAG,MAAA,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,0CAAE,uBAAuB,0CAAE,YAAY,CAAA;YAC/E,MAAM,SAAS,CAAC;gBACd,WAAW,EAAE;oBACX,uBAAuB;iBACxB;gBACD,GAAG,CAAC,CAAC,IAAA,cAAK,EAAC,iBAAiB,CAAC,IAAI;oBAC/B,kBAAkB,EAAE;wBAClB,MAAM,EAAE,2BAAmB;wBAC3B,KAAK,EAAE,iBAAiB;qBACzB;iBACF,CAAC;aACH,CAAC,CAAA;SACH;QAAC,OAAO,KAAK,EAAE;YACd,MAAM,OAAO,CAAC,IAAA,oBAAW,EAAC,KAAK,CAAC,CAAC,CAAA;SAClC;IACH,CAAC;CACF,CAAA"}
@@ -1,11 +1,12 @@
1
1
  import { type Webhook } from '@awell-health/extensions-core';
2
2
  import { type HealthieWebhookPayload } from '../lib/types';
3
+ import { type settings } from '../settings';
3
4
  declare const dataPoints: {
4
5
  createdTaskId: {
5
6
  key: string;
6
7
  valueType: "string";
7
8
  };
8
9
  };
9
- export declare const taskCreated: Webhook<keyof typeof dataPoints, HealthieWebhookPayload>;
10
+ export declare const taskCreated: Webhook<keyof typeof dataPoints, HealthieWebhookPayload, typeof settings>;
10
11
  export type TaskCreated = typeof taskCreated;
11
12
  export {};
@@ -2,6 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.taskCreated = void 0;
4
4
  const lodash_1 = require("lodash");
5
+ const types_1 = require("../lib/types");
6
+ const createSdk_1 = require("../lib/sdk/createSdk");
7
+ const errors_1 = require("../lib/sdk/errors");
5
8
  const dataPoints = {
6
9
  createdTaskId: {
7
10
  key: 'createdTaskId',
@@ -12,19 +15,27 @@ exports.taskCreated = {
12
15
  key: 'taskCreated',
13
16
  dataPoints,
14
17
  onWebhookReceived: async ({ payload, settings }, onSuccess, onError) => {
15
- const { resource_id: createdTaskId } = payload;
16
- if ((0, lodash_1.isNil)(createdTaskId)) {
17
- await onError({
18
- // We should automatically send a 400 here, so no need to provide info
19
- });
20
- }
21
- else {
18
+ var _a, _b;
19
+ try {
20
+ const { sdk } = await (0, createSdk_1.createSdk)({ settings });
21
+ const createdTaskId = payload.resource_id.toString();
22
+ const response = await sdk.getTask({ id: createdTaskId });
23
+ const healthiePatientId = (_b = (_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.task) === null || _b === void 0 ? void 0 : _b.client_id;
22
24
  await onSuccess({
23
25
  data_points: {
24
26
  createdTaskId,
25
27
  },
28
+ ...(!(0, lodash_1.isNil)(healthiePatientId) && {
29
+ patient_identifier: {
30
+ system: types_1.HEALTHIE_IDENTIFIER,
31
+ value: healthiePatientId,
32
+ },
33
+ }),
26
34
  });
27
35
  }
36
+ catch (error) {
37
+ await onError((0, errors_1.formatError)(error));
38
+ }
28
39
  },
29
40
  };
30
41
  //# sourceMappingURL=taskCreated.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"taskCreated.js","sourceRoot":"","sources":["../../../../extensions/healthie/webhooks/taskCreated.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;AAO9B,MAAM,UAAU,GAAG;IACjB,aAAa,EAAE;QACb,GAAG,EAAE,eAA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AAQ,uBAAR,QAAQ,CAAE,IAAI,0CAAE,IAAI,0CAAE,SAAS,CAAA;YACzD,MAAM,SAAS,CAAC;gBACd,WAAW,EAAE;oBACX,aAAa;iBACd;gBACD,GAAG,CAAC,CAAC,IAAA,cAAK,EAAC,iBAAiB,CAAC,IAAI;oBAC/B,kBAAkB,EAAE;wBAClB,MAAM,EAAE,2BAAmB;wBAC3B,KAAK,EAAE,iBAAiB;qBACzB;iBACF,CAAC;aACH,CAAC,CAAA;SACH;QAAC,OAAO,KAAK,EAAE;YACd,MAAM,OAAO,CAAC,IAAA,oBAAW,EAAC,KAAK,CAAC,CAAC,CAAA;SAClC;IACH,CAAC;CACF,CAAA"}
@@ -1,11 +1,12 @@
1
1
  import { type Webhook } from '@awell-health/extensions-core';
2
2
  import { type HealthieWebhookPayload } from '../lib/types';
3
+ import { type settings } from '../settings';
3
4
  declare const dataPoints: {
4
5
  updatedTaskId: {
5
6
  key: string;
6
7
  valueType: "string";
7
8
  };
8
9
  };
9
- export declare const taskUpdated: Webhook<keyof typeof dataPoints, HealthieWebhookPayload>;
10
+ export declare const taskUpdated: Webhook<keyof typeof dataPoints, HealthieWebhookPayload, typeof settings>;
10
11
  export type TaskUpdated = typeof taskUpdated;
11
12
  export {};
@@ -2,6 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.taskUpdated = void 0;
4
4
  const lodash_1 = require("lodash");
5
+ const types_1 = require("../lib/types");
6
+ const createSdk_1 = require("../lib/sdk/createSdk");
7
+ const errors_1 = require("../lib/sdk/errors");
5
8
  const dataPoints = {
6
9
  updatedTaskId: {
7
10
  key: 'updatedTaskId',
@@ -12,19 +15,27 @@ exports.taskUpdated = {
12
15
  key: 'taskUpdated',
13
16
  dataPoints,
14
17
  onWebhookReceived: async ({ payload, settings }, onSuccess, onError) => {
15
- const { resource_id: updatedTaskId } = payload;
16
- if ((0, lodash_1.isNil)(updatedTaskId)) {
17
- await onError({
18
- // We should automatically send a 400 here, so no need to provide info
19
- });
20
- }
21
- else {
18
+ var _a, _b;
19
+ try {
20
+ const { sdk } = await (0, createSdk_1.createSdk)({ settings });
21
+ const updatedTaskId = payload.resource_id.toString();
22
+ const response = await sdk.getTask({ id: updatedTaskId });
23
+ const healthiePatientId = (_b = (_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.task) === null || _b === void 0 ? void 0 : _b.client_id;
22
24
  await onSuccess({
23
25
  data_points: {
24
26
  updatedTaskId,
25
27
  },
28
+ ...(!(0, lodash_1.isNil)(healthiePatientId) && {
29
+ patient_identifier: {
30
+ system: types_1.HEALTHIE_IDENTIFIER,
31
+ value: healthiePatientId,
32
+ },
33
+ }),
26
34
  });
27
35
  }
28
- },
36
+ catch (error) {
37
+ await onError((0, errors_1.formatError)(error));
38
+ }
39
+ }
29
40
  };
30
41
  //# sourceMappingURL=taskUpdated.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"taskUpdated.js","sourceRoot":"","sources":["../../../../extensions/healthie/webhooks/taskUpdated.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;AAO9B,MAAM,UAAU,GAAG;IACjB,aAAa,EAAE;QACb,GAAG,EAAE,eAAe;QACpB,SAAS,EAAE,QAAQ;KACpB;CAC4C,CAAA;AAElC,QAAA,WAAW,GAGpB;IACF,GAAG,EAAE,aAAa;IAClB,UAAU;IACV,iBAAiB,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE;QACrE,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE,GAAG,OAAO,CAAA;QAE9C,IAAI,IAAA,cAAK,EAAC,aAAa,CAAC,EAAE;YACxB,MAAM,OAAO,CAAC;YACZ,sEAAsE;aACvE,CAAC,CAAA;SACH;aAAM;YACL,MAAM,SAAS,CAAC;gBACd,WAAW,EAAE;oBACX,aAAa;iBACd;aACF,CAAC,CAAA;SACH;IACH,CAAC;CACF,CAAA"}
1
+ {"version":3,"file":"taskUpdated.js","sourceRoot":"","sources":["../../../../extensions/healthie/webhooks/taskUpdated.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;AAK9B,wCAA+E;AAE/E,oDAAgD;AAChD,8CAA+C;AAE/C,MAAM,UAAU,GAAG;IACjB,aAAa,EAAE;QACb,GAAG,EAAE,eAAe;QACpB,SAAS,EAAE,QAAQ;KACpB;CAC4C,CAAA;AAElC,QAAA,WAAW,GAIpB;IACF,GAAG,EAAE,aAAa;IAClB,UAAU;IACV,iBAAiB,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE;;QACrE,IAAI;YACF,MAAM,EAAE,GAAG,EAAE,GAAG,MAAM,IAAA,qBAAS,EAAC,EAAE,QAAQ,EAAE,CAAC,CAAA;YAC7C,MAAM,aAAa,GAAG,OAAO,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAA;YAEpD,MAAM,QAAQ,GAAG,MAAM,GAAG,CAAC,OAAO,CAAC,EAAE,EAAE,EAAE,aAAa,EAAE,CAAC,CAAA;YACzD,MAAM,iBAAiB,GAAG,MAAA,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,0CAAE,IAAI,0CAAE,SAAS,CAAA;YACzD,MAAM,SAAS,CAAC;gBACd,WAAW,EAAE;oBACX,aAAa;iBACd;gBACD,GAAG,CAAC,CAAC,IAAA,cAAK,EAAC,iBAAiB,CAAC,IAAI;oBAC/B,kBAAkB,EAAE;wBAClB,MAAM,EAAE,2BAAmB;wBAC3B,KAAK,EAAE,iBAAiB;qBACzB;iBACF,CAAC;aACH,CAAC,CAAA;SACH;QAAC,OAAO,KAAK,EAAE;YACd,MAAM,OAAO,CAAC,IAAA,oBAAW,EAAC,KAAK,CAAC,CAAC,CAAA;SAClC;IACH,CAAC;CACF,CAAA"}
@@ -1 +1 @@
1
- export declare const webhooks: import("@awell-health/extensions-core").Webhook<"hello" | "eventType", import("./demo").Payload>[];
1
+ export declare const webhooks: import("@awell-health/extensions-core").Webhook<"hello" | "eventType", import("./demo").Payload, Record<string, import("@awell-health/extensions-core").Setting>>[];
@@ -135,10 +135,6 @@
135
135
  "readme": "---\ntitle: Twilio\ndescription: Twilio is a customer engagement platform used by hundreds of thousands of businesses and more than ten million developers worldwide to build unique, personalized experiences for their customers.\n---\n# Twilio\n\nTwilio is a customer engagement platform used by hundreds of thousands of businesses and more than ten million developers worldwide to build unique, personalized experiences for their customers.\n\nThey are known for democratizing channels like voice, text, chat, video, and email through APIs, making it easy for every organization to build meaningful interactions with customers on the channels they prefer.\n\n## Extension settings\n\nIn order to set up this extension, you will need:\n\n1. A Twilio API key or auth token which can be found in the Twilio console.\n2. Your account SID which can be found in the Twilio console.\n3. A phone number to send the message from. This must be a Twilio phone number that you own.\n\n## Custom Actions\n\n### Send SMS\n\nSend an SMS with Twilio to a recipient of your liking.\n\n### Get messages\n\nGet a list of text messages matching the given criteria. Only the last 50 messages are returned.\n\n## Send SMS during working hours\n\nThis action allows for the scheduling of SMS messages to be sent within the \"daily operational hours\" of 9 AM to 5 PM. It ensures that text messages are dispatched at appropriate times during the day, avoiding early morning or late-night disturbances to recipients.\n\n**Here's how it works:**\n\n- If the action is activate during business hours (9 AM to 5 PM), the SMS is sent immediately.\n- If activated before 9 AM, the SMS is scheduled to be sent at 9 AM on the same day.\n- If activated after 5 PM, the SMS is scheduled to be sent at 9 AM the following day.\n\nThis setup ensures that all messages reach your respondents during reasonable daytime hours, enhancing the likelihood of a timely and considerate communication. It's important to mention that messages will still be dispatched over the weekend, but they will adhere to the \"business hours\" schedule of 9 AM to 5 PM.\n\nNote that scheduling messages with Twilio is only possible if you send text messages using a MessagingServiceSid.\n\n\n\n\n\n\n",
136
136
  "changelog": "# Twilio changelog\n\n## v2 2024-02-22\n\n1. Add capability to search for messages using all the allowed filters provided by Twilio API. Check here: https://www.twilio.com/docs/messaging/api/message-resource#read-multiple-message-resources\n\n## v2 2023-06-23\n\nFull description: https://github.com/awell-health/awell-extensions/issues/157\n\n1. \"Send SMS\" action\n 1. Change label from \"Send SMS\" to \"Send SMS (with from number)\"\n 2. Throw error when \"From\" number in both settings and in fields is not provided\n2. Add new action \"Send SMS (with Messaging Service)\"\n\n## v2\n\nCompared to v1 (pre-beta release), the extension only has one custom action \"Send SMS\" instead of two. The Custom Action allows for:\n\n1. Sending a text message to a recipient (phone number) stored in a data point, including patient profile data points.\n2. Sending a text message to a fixed recipient (phone number).\n"
137
137
  },
138
- "wellinks-public": {
139
- "readme": "---\ntitle: Wellinks\ndescription: The purpose of this extension is to keep application logic out of the Pathways and Tracks. Some actions require interactions with the Healthie API, hence the need for the API URL and Key in the settings.\n---\n# Wellinks Extension\n\nThe purpose of this extension is to keep application logic out of the Pathways and Tracks. Some actions require interactions with the Healthie API, hence the need for the API URL and Key in the settings.\n\n## Extension Settings\n\nYou will need to provide the API URL and Key for the Wellinks Healthie instance.\n\n# Custom Actions\n\n## Check for Override\n\nChecks to see if the patient in Healthie has an active Override form.\n\n## Check for Scheduled Appointments\n\nChecks to see if the patient in Healthie has an appointment of a specific type scheduled in the future.\n\n## Check for Chat\n\nChecks that a Chat message (either to or from a patient and coach) has happened at least 24 hours after an appointment\n\n## Insert Member List Event\n\nAdds an Insert Member List Event to the Platform Database.\n\n## Check for Flourish Customer\n\nQueries Flourish to see if there is a record that has a matching ThirdPartyIdentifier. Returns True/False.\n\n## Submit a PAM Survey\n\nSubmits a PAM 13 Survey (completed in the Careflow) to Flourish and returns the PAM Score and Levl.",
140
- "changelog": "# Wellinks Changelog\n\n## May 18th, 2023\n\nAdded the checkForOverride action.\n\n## May 19th, 2023\n\nAdded the checkForScheduledAppointment action.\n\n## May 25th, 2023\n\nAdded datapoints for actions\n\n\n## July 6th, 2023\n\nAdded new action to unenroll user from Sendgrid.\n\n## July 16th, 2023\n\nAdded a new action to insert a Member Event List to the Platform DB. This requires setting the platform API URL and API Key values for the extension.\n\n## September 12th, 2023\n\nAdds a new action to check Flourish for a customer with a matching ThirdPartyIdentifier.\n\n## September 18th, 2023\n\nAdds a new action to submit a PAM13 survey to Flourish, returning a PAM Score, level, and whether or not the submission was a success.\n\n## September 19th, 2023\n\nAdds a new action to create a customer in Flourish, returning true or false based on whether or not the creation was a success.\n\n## October 12th, 2023\n\nUpdates InsertMemberListEvent action to have clearer error messages."
141
- },
142
138
  "westFax": {
143
139
  "readme": "---\ntitle: WestFax\ndescription: WestFax is a leading provider of HIPAA Compliant Cloud Fax / Fax to Email, Print to Fax\n---\n\n# WestFax\n\n[WestFax](https://westfax.com/) is a cloud-based faxing service that offers a variety of features, including:\n- Secure faxing: WestFax uses end-to-end encryption to protect your documents from unauthorized access.\n- HIPAA compliance: WestFax is HIPAA compliant, so you can be sure that your medical records are safe.\n- Integration with other applications: WestFax can be integrated with your existing email, CRM, and other applications.\n- Mobile app: You can send and receive faxes from your mobile device with the WestFax mobile app.\n- Paperless faxing: WestFax can store your faxes in the cloud, so you can access them from anywhere.\n\n## WestFax x Awell\n\nThis extension allows you to let a stakeholder (eg: a patient) send a fax as part of a care flow.\n\n## Extension settings\n\nIn order to set up this extension, **you will need to provide a WestFax Username and Password**. You will need as well to provide the ProductId when setting up the action - check how [here](https://westfax.com/how-to-get-productid/).\n\n\n",
144
140
  "changelog": "# WestFax changelog\n\n## February 2024\n\n- Initial action to send an fax to an email\n"
@@ -1,3 +1,39 @@
1
1
  export type { PatientAdmitted } from './patientAdmitted';
2
2
  export type { PatientDischarged } from './patientDischarged';
3
- export declare const webhooks: import("@awell-health/extensions-core").Webhook<"eventType" | "ownerId" | "resourceId" | "UPID" | "encounterStatus" | "encounterStart" | "HL7EventType" | "HL7EventTypeDescription" | "HL7EventTypeFull", import("./types").AdtEventWebhookPayload>[];
3
+ export declare const webhooks: import("@awell-health/extensions-core").Webhook<"eventType" | "ownerId" | "resourceId" | "UPID" | "encounterStatus" | "encounterStart" | "HL7EventType" | "HL7EventTypeDescription" | "HL7EventTypeFull", import("./types").AdtEventWebhookPayload, {
4
+ base_url: {
5
+ key: string;
6
+ label: string;
7
+ obfuscated: false;
8
+ description: string;
9
+ required: true;
10
+ };
11
+ auth_url: {
12
+ key: string;
13
+ label: string;
14
+ obfuscated: false;
15
+ description: string;
16
+ required: true;
17
+ };
18
+ client_id: {
19
+ key: string;
20
+ label: string;
21
+ obfuscated: false;
22
+ description: string;
23
+ required: true;
24
+ };
25
+ client_secret: {
26
+ key: string;
27
+ label: string;
28
+ obfuscated: false;
29
+ description: string;
30
+ required: true;
31
+ };
32
+ audience: {
33
+ key: string;
34
+ label: string;
35
+ obfuscated: false;
36
+ description: string;
37
+ required: true;
38
+ };
39
+ }>[];
@@ -1,5 +1,6 @@
1
1
  import { type Webhook } from '@awell-health/extensions-core';
2
2
  import { type AdtEventWebhookPayload } from './types';
3
+ import { type settings } from '../settings';
3
4
  declare const dataPoints: {
4
5
  resourceId: {
5
6
  key: string;
@@ -38,6 +39,6 @@ declare const dataPoints: {
38
39
  valueType: "string";
39
40
  };
40
41
  };
41
- export declare const patientAdmitted: Webhook<keyof typeof dataPoints, AdtEventWebhookPayload>;
42
+ export declare const patientAdmitted: Webhook<keyof typeof dataPoints, AdtEventWebhookPayload, typeof settings>;
42
43
  export type PatientAdmitted = typeof patientAdmitted;
43
44
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"patientAdmitted.js","sourceRoot":"","sources":["../../../../extensions/zusHealth/webhooks/patientAdmitted.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;AAK9B,mCAIgB;AAChB,sCAAyC;AACzC,8CAAmD;AACnD,oCAMiB;AAGjB,MAAM,UAAU,GAAG;IACjB,UAAU,EAAE;QACV,GAAG,EAAE,YAAY;QACjB,SAAS,EAAE,QAAQ;KACpB;IACD,IAAI,EAAE;QACJ,GAAG,EAAE,MAAM;QACX,SAAS,EAAE,QAAQ;KACpB;IACD,OAAO,EAAE;QACP,GAAG,EAAE,SAAS;QACd,SAAS,EAAE,QAAQ;KACpB;IACD,SA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AE,OAAO,CAAC,OAAO;wBACxB,eAAe,EAAE,QAAQ,CAAC,MAAM;wBAChC,cAAc,EAAE,QAAQ,CAAC,MAAM,CAAC,KAAK;wBACrC,SAAS,EAAE,uBAAe,CAAC,QAAQ;wBACnC,YAAY,EAAE,oBAAY,CAAC,GAAG,CAAC,IAAI;wBACnC,gBAAgB,EAAE,oBAAY,CAAC,GAAG,CAAC,QAAQ;wBAC3C,uBAAuB,EAAE,oBAAY,CAAC,GAAG,CAAC,WAAW;qBACtD;iBACF,CAAC,CAAA;aACH;SACF;QAAC,OAAO,KAAK,EAAE;YACd,IAAI,WAAW,CAAA;YAEf,IAAI,IAAA,kBAAU,EAAC,KAAK,CAAC,EAAE;gBACrB,WAAW,GAAG,IAAA,qBAAa,EAAC,KAAK,CAAC,CAAA;aACnC;iBAAM,IAAI,IAAA,oBAAY,EAAC,KAAK,CAAC,EAAE;gBAC9B,WAAW,GAAG,IAAA,uBAAe,EAAC,KAAmB,CAAC,CAAA;aACnD;iBAAM;gBACL,WAAW,GAAG,IAAA,wBAAgB,EAAC,KAAc,CAAC,CAAA;aAC/C;YACD,MAAM,OAAO,CAAC;gBACZ,MAAM,EAAE,CAAC,WAAW,CAAC;aACtB,CAAC,CAAA;SACH;IACH,CAAC;CACF,CAAA"}
1
+ {"version":3,"file":"patientAdmitted.js","sourceRoot":"","sources":["../../../../extensions/zusHealth/webhooks/patientAdmitted.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;AAK9B,mCAIgB;AAChB,sCAAyC;AACzC,8CAAmD;AACnD,oCAMiB;AAIjB,MAAM,UAAU,GAAG;IACjB,UAAU,EAAE;QACV,GAAG,EAAE,YAAY;QACjB,SAAS,EAAE,QAAQ;KACpB;IACD,IAAI,EAAE;QACJ,GAAG,EAAE,MAAM;QACX,SAAS,EAAE,QAAQ;KACpB;IACD,OAAO,EAAE;QACP,GAAG,EAAE,SAAS;QACd,SAAS,EAAE,QAAQ;KACpB;IACD,SAAS,EAAE;QACT,GAAG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O;wBACxB,eAAe,EAAE,QAAQ,CAAC,MAAM;wBAChC,cAAc,EAAE,QAAQ,CAAC,MAAM,CAAC,KAAK;wBACrC,SAAS,EAAE,uBAAe,CAAC,QAAQ;wBACnC,YAAY,EAAE,oBAAY,CAAC,GAAG,CAAC,IAAI;wBACnC,gBAAgB,EAAE,oBAAY,CAAC,GAAG,CAAC,QAAQ;wBAC3C,uBAAuB,EAAE,oBAAY,CAAC,GAAG,CAAC,WAAW;qBACtD;iBACF,CAAC,CAAA;aACH;SACF;QAAC,OAAO,KAAK,EAAE;YACd,IAAI,WAAW,CAAA;YAEf,IAAI,IAAA,kBAAU,EAAC,KAAK,CAAC,EAAE;gBACrB,WAAW,GAAG,IAAA,qBAAa,EAAC,KAAK,CAAC,CAAA;aACnC;iBAAM,IAAI,IAAA,oBAAY,EAAC,KAAK,CAAC,EAAE;gBAC9B,WAAW,GAAG,IAAA,uBAAe,EAAC,KAAmB,CAAC,CAAA;aACnD;iBAAM;gBACL,WAAW,GAAG,IAAA,wBAAgB,EAAC,KAAc,CAAC,CAAA;aAC/C;YACD,MAAM,OAAO,CAAC;gBACZ,MAAM,EAAE,CAAC,WAAW,CAAC;aACtB,CAAC,CAAA;SACH;IACH,CAAC;CACF,CAAA"}
@@ -1,5 +1,6 @@
1
1
  import { type Webhook } from '@awell-health/extensions-core';
2
2
  import { type AdtEventWebhookPayload } from './types';
3
+ import { type settings } from '../settings';
3
4
  declare const dataPoints: {
4
5
  resourceId: {
5
6
  key: string;
@@ -42,6 +43,6 @@ declare const dataPoints: {
42
43
  valueType: "string";
43
44
  };
44
45
  };
45
- export declare const patientDischarged: Webhook<keyof typeof dataPoints, AdtEventWebhookPayload>;
46
+ export declare const patientDischarged: Webhook<keyof typeof dataPoints, AdtEventWebhookPayload, typeof settings>;
46
47
  export type PatientDischarged = typeof patientDischarged;
47
48
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"patientDischarged.js","sourceRoot":"","sources":["../../../../extensions/zusHealth/webhooks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ACH,CAAC;CACF,CAAA"}
1
+ {"version":3,"file":"patientDischarged.js","sourceRoot":"","sources":["../../../../extensions/zusHealth/webhooks/patientDischarged.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;AAK9B,mCAIgB;AAChB,sCAAyC;AACzC,8CAAmD;AACnD,oCAMiB;AAIjB,MAAM,UAAU,GAAG;IACjB,UAAU,EAAE;QACV,GAAG,EAAE,YAAY;QACjB,SAAS,EAAE,QAAQ;KACpB;IACD,IAAI,EAAE;QACJ,GAAG,EAAE,MAAM;QACX,SAAS,EAAE,QAAQ;KACpB;IACD,OAAO,EAAE;QACP,GAAG,EAAE,SAAS;QACd,SAAS,EAAE,QAAQ;KACpB;IACD,SAAS,EAAE;QACT,GAAG,EAAE,WAAW;QAChB,SAAS,EAAE,QAAQ;KACpB;IACD,eAAe,EAAE;QACf,GAAG,EAAE,iBAAiB;QACtB,SAAS,EAAE,QAAQ;KACpB;IACD,cAAc,EAAE;QACd,GAAG,EAAE,gBAAgB;QACrB,SAAS,EAAE,MAAM;KAClB;IACD,YAAY,EAAE;QACZ,GAAG,EAAE,cAAc;QACnB,SAAS,EAAE,MAAM;KAClB;IACD,YAAY,EAAE;QACZ,GAAG,EAAE,cAAc;QACnB,SAAS,EAAE,QAAQ;KACpB;IACD,uBAAuB,EAAE;QACvB,GAAG,EAAE,yBAAyB;QAC9B,SAAS,EAAE,QAAQ;KACpB;IACD,gBAAgB,EAAE;QAChB,GAAG,EAAE,kBAAkB;QACvB,SAAS,EAAE,QAAQ;KACpB;CAC4C,CAAA;AAElC,QAAA,iBAAiB,GAI1B;IACF,GAAG,EAAE,mBAAmB;IACxB,UAAU;IACV,iBAAiB,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE;QACrE,IAAI;YACF,IAAI,EAAE,UAAU,EAAE,GAAG,OAAO,CAAA;YAE5B,IAAI,IAAA,cAAK,EAAC,UAAU,CAAC,EAAE;gB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