@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,188 +0,0 @@
1
- import { z } from 'zod';
2
- import { FieldType } from '@awell-health/extensions-core';
3
- export declare const fields: {
4
- language: {
5
- id: string;
6
- label: string;
7
- description: string;
8
- type: FieldType.STRING;
9
- required: true;
10
- };
11
- adminDate: {
12
- id: string;
13
- label: string;
14
- description: string;
15
- type: FieldType.DATE;
16
- required: true;
17
- };
18
- thirdPartyIdentifier: {
19
- id: string;
20
- label: string;
21
- description: string;
22
- type: FieldType.STRING;
23
- required: true;
24
- };
25
- gender: {
26
- id: string;
27
- label: string;
28
- description: string;
29
- type: FieldType.STRING;
30
- required: true;
31
- };
32
- age: {
33
- id: string;
34
- label: string;
35
- description: string;
36
- type: FieldType.NUMERIC;
37
- required: true;
38
- };
39
- pa1: {
40
- id: string;
41
- label: string;
42
- description: string;
43
- type: FieldType.NUMERIC;
44
- required: true;
45
- };
46
- pa2: {
47
- id: string;
48
- label: string;
49
- description: string;
50
- type: FieldType.NUMERIC;
51
- required: true;
52
- };
53
- pa3: {
54
- id: string;
55
- label: string;
56
- description: string;
57
- type: FieldType.NUMERIC;
58
- required: true;
59
- };
60
- pa4: {
61
- id: string;
62
- label: string;
63
- description: string;
64
- type: FieldType.NUMERIC;
65
- required: true;
66
- };
67
- pa5: {
68
- id: string;
69
- label: string;
70
- description: string;
71
- type: FieldType.NUMERIC;
72
- required: true;
73
- };
74
- pa6: {
75
- id: string;
76
- label: string;
77
- description: string;
78
- type: FieldType.NUMERIC;
79
- required: true;
80
- };
81
- pa7: {
82
- id: string;
83
- label: string;
84
- description: string;
85
- type: FieldType.NUMERIC;
86
- required: true;
87
- };
88
- pa8: {
89
- id: string;
90
- label: string;
91
- description: string;
92
- type: FieldType.NUMERIC;
93
- required: true;
94
- };
95
- pa9: {
96
- id: string;
97
- label: string;
98
- description: string;
99
- type: FieldType.NUMERIC;
100
- required: true;
101
- };
102
- pa10: {
103
- id: string;
104
- label: string;
105
- description: string;
106
- type: FieldType.NUMERIC;
107
- required: true;
108
- };
109
- pa11: {
110
- id: string;
111
- label: string;
112
- description: string;
113
- type: FieldType.NUMERIC;
114
- required: true;
115
- };
116
- pa12: {
117
- id: string;
118
- label: string;
119
- description: string;
120
- type: FieldType.NUMERIC;
121
- required: true;
122
- };
123
- pa13: {
124
- id: string;
125
- label: string;
126
- description: string;
127
- type: FieldType.NUMERIC;
128
- required: true;
129
- };
130
- };
131
- export declare const FieldsValidationSchema: z.ZodObject<{
132
- language: z.ZodString;
133
- adminDate: z.ZodString;
134
- thirdPartyIdentifier: z.ZodString;
135
- gender: z.ZodString;
136
- age: z.ZodNumber;
137
- pa1: z.ZodNumber;
138
- pa2: z.ZodNumber;
139
- pa3: z.ZodNumber;
140
- pa4: z.ZodNumber;
141
- pa5: z.ZodNumber;
142
- pa6: z.ZodNumber;
143
- pa7: z.ZodNumber;
144
- pa8: z.ZodNumber;
145
- pa9: z.ZodNumber;
146
- pa10: z.ZodNumber;
147
- pa11: z.ZodNumber;
148
- pa12: z.ZodNumber;
149
- pa13: z.ZodNumber;
150
- }, "strip", z.ZodTypeAny, {
151
- language: string;
152
- age: number;
153
- gender: string;
154
- adminDate: string;
155
- thirdPartyIdentifier: string;
156
- pa1: number;
157
- pa2: number;
158
- pa3: number;
159
- pa4: number;
160
- pa5: number;
161
- pa6: number;
162
- pa7: number;
163
- pa8: number;
164
- pa9: number;
165
- pa10: number;
166
- pa11: number;
167
- pa12: number;
168
- pa13: number;
169
- }, {
170
- language: string;
171
- age: number;
172
- gender: string;
173
- adminDate: string;
174
- thirdPartyIdentifier: string;
175
- pa1: number;
176
- pa2: number;
177
- pa3: number;
178
- pa4: number;
179
- pa5: number;
180
- pa6: number;
181
- pa7: number;
182
- pa8: number;
183
- pa9: number;
184
- pa10: number;
185
- pa11: number;
186
- pa12: number;
187
- pa13: number;
188
- }>;
@@ -1,160 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FieldsValidationSchema = exports.fields = void 0;
4
- const zod_1 = require("zod");
5
- const extensions_core_1 = require("@awell-health/extensions-core");
6
- exports.fields = {
7
- language: {
8
- id: 'language',
9
- label: 'language',
10
- description: 'The language the survey was completed in.',
11
- type: extensions_core_1.FieldType.STRING,
12
- required: true,
13
- },
14
- adminDate: {
15
- id: 'adminDate',
16
- label: 'Administration Date',
17
- description: 'The date the survey was completed in YYYY-MM-DD format.',
18
- type: extensions_core_1.FieldType.DATE,
19
- required: true,
20
- },
21
- thirdPartyIdentifier: {
22
- id: 'thirdPartyIdentifier',
23
- label: 'Third Party Identifier',
24
- description: 'The (external) identifier for the user for whom the survey was completed.',
25
- type: extensions_core_1.FieldType.STRING,
26
- required: true,
27
- },
28
- gender: {
29
- id: 'gender',
30
- label: 'Gender',
31
- description: 'The gender of the user for whom the survey was completed.',
32
- type: extensions_core_1.FieldType.STRING,
33
- required: true,
34
- },
35
- age: {
36
- id: 'age',
37
- label: 'Age',
38
- description: 'The age of the user for whom the survey was completed.',
39
- type: extensions_core_1.FieldType.NUMERIC,
40
- required: true,
41
- },
42
- pa1: {
43
- id: 'pa1',
44
- label: 'PA 1',
45
- description: 'The answer to PA 1.',
46
- type: extensions_core_1.FieldType.NUMERIC,
47
- required: true,
48
- },
49
- pa2: {
50
- id: 'pa2',
51
- label: 'PA 2',
52
- description: 'The answer to PA 2.',
53
- type: extensions_core_1.FieldType.NUMERIC,
54
- required: true,
55
- },
56
- pa3: {
57
- id: 'pa3',
58
- label: 'PA 3',
59
- description: 'The answer to PA 3.',
60
- type: extensions_core_1.FieldType.NUMERIC,
61
- required: true,
62
- },
63
- pa4: {
64
- id: 'pa4',
65
- label: 'PA 4',
66
- description: 'The answer to PA 4.',
67
- type: extensions_core_1.FieldType.NUMERIC,
68
- required: true,
69
- },
70
- pa5: {
71
- id: 'pa5',
72
- label: 'PA 5',
73
- description: 'The answer to PA 5.',
74
- type: extensions_core_1.FieldType.NUMERIC,
75
- required: true,
76
- },
77
- pa6: {
78
- id: 'pa6',
79
- label: 'PA 6',
80
- description: 'The answer to PA 6.',
81
- type: extensions_core_1.FieldType.NUMERIC,
82
- required: true,
83
- },
84
- pa7: {
85
- id: 'pa7',
86
- label: 'PA 7',
87
- description: 'The answer to PA 7.',
88
- type: extensions_core_1.FieldType.NUMERIC,
89
- required: true,
90
- },
91
- pa8: {
92
- id: 'pa8',
93
- label: 'PA 8',
94
- description: 'The answer to PA 8.',
95
- type: extensions_core_1.FieldType.NUMERIC,
96
- required: true,
97
- },
98
- pa9: {
99
- id: 'pa9',
100
- label: 'PA 9',
101
- description: 'The answer to PA 9.',
102
- type: extensions_core_1.FieldType.NUMERIC,
103
- required: true,
104
- },
105
- pa10: {
106
- id: 'pa10',
107
- label: 'PA 10',
108
- description: 'The answer to PA 10.',
109
- type: extensions_core_1.FieldType.NUMERIC,
110
- required: true,
111
- },
112
- pa11: {
113
- id: 'pa11',
114
- label: 'PA 11',
115
- description: 'The answer to PA 11.',
116
- type: extensions_core_1.FieldType.NUMERIC,
117
- required: true,
118
- },
119
- pa12: {
120
- id: 'pa12',
121
- label: 'PA 12',
122
- description: 'The answer to PA 12.',
123
- type: extensions_core_1.FieldType.NUMERIC,
124
- required: true,
125
- },
126
- pa13: {
127
- id: 'pa13',
128
- label: 'PA 13',
129
- description: 'The answer to PA 13.',
130
- type: extensions_core_1.FieldType.NUMERIC,
131
- required: true,
132
- },
133
- };
134
- exports.FieldsValidationSchema = zod_1.z.object({
135
- language: zod_1.z.string(),
136
- adminDate: zod_1.z
137
- .string({
138
- errorMap: () => ({
139
- message: 'Admin date is required and must be of format YYYY-MM-DD',
140
- }),
141
- })
142
- .datetime(),
143
- thirdPartyIdentifier: zod_1.z.string(),
144
- gender: zod_1.z.string(),
145
- age: zod_1.z.number(),
146
- pa1: zod_1.z.number(),
147
- pa2: zod_1.z.number(),
148
- pa3: zod_1.z.number(),
149
- pa4: zod_1.z.number(),
150
- pa5: zod_1.z.number(),
151
- pa6: zod_1.z.number(),
152
- pa7: zod_1.z.number(),
153
- pa8: zod_1.z.number(),
154
- pa9: zod_1.z.number(),
155
- pa10: zod_1.z.number(),
156
- pa11: zod_1.z.number(),
157
- pa12: zod_1.z.number(),
158
- pa13: zod_1.z.number(),
159
- });
160
- //# sourceMappingURL=fields.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../../../extensions/wellinks-public/actions/submitPamSurvey/config/fields.ts"],"names":[],"mappings":";;;AAAA,6BAAwC;AACxC,mEAAqE;AAExD,QAAA,MAAM,GAAG;IACpB,QAAQ,EAAE;QACR,EAAE,EAAE,UAAU;QACd,KAAK,EAAE,UAAU;QACjB,WAAW,EAAE,2CAA2C;QACxD,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;IACD,SAAS,EAAE;QACT,EAAE,EAAE,WAAW;QACf,KAAK,EAAE,qBAAqB;QAC5B,WAAW,EAAE,yDAAyD;QACtE,IAAI,EAAE,2BAAS,CAAC,IAAI;QACpB,QAAQ,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AI,EAAE,2BAAS,CAAC,OAAO;QACvB,QAAQ,EAAE,IAAI;KACf;CAC8B,CAAA;AAEpB,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,SAAS,EAAE,OAAC;SACT,MAAM,CAAC;QACN,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC;YACf,OAAO,EAAE,yDAAyD;SACnE,CAAC;KACH,CAAC;SACD,QAAQ,EAAE;IACb,oBAAoB,EAAE,OAAC,CAAC,MAAM,EAAE;IAChC,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;IAClB,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;CACiC,CAAC,CAAA"}
@@ -1,2 +0,0 @@
1
- export { fields, FieldsValidationSchema } from './fields';
2
- export { SettingsValidationSchema } from './settings';
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SettingsValidationSchema = exports.FieldsValidationSchema = exports.fields = void 0;
4
- var fields_1 = require("./fields");
5
- Object.defineProperty(exports, "fields", { enumerable: true, get: function () { return fields_1.fields; } });
6
- Object.defineProperty(exports, "FieldsValidationSchema", { enumerable: true, get: function () { return fields_1.FieldsValidationSchema; } });
7
- var settings_1 = require("./settings");
8
- Object.defineProperty(exports, "SettingsValidationSchema", { enumerable: true, get: function () { return settings_1.SettingsValidationSchema; } });
9
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../extensions/wellinks-public/actions/submitPamSurvey/config/index.ts"],"names":[],"mappings":";;;AAAA,mCAAyD;AAAhD,gGAAA,MAAM,OAAA;AAAE,gHAAA,sBAAsB,OAAA;AACvC,uCAAqD;AAA5C,oHAAA,wBAAwB,OAAA"}
@@ -1,35 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const SettingsValidationSchema: z.ZodObject<{
3
- platformApiKey: z.ZodOptional<z.ZodString>;
4
- platformApiUrl: z.ZodOptional<z.ZodString>;
5
- apiUrl: z.ZodOptional<z.ZodString>;
6
- apiKey: z.ZodOptional<z.ZodString>;
7
- selectEventTypeQuestion: z.ZodOptional<z.ZodString>;
8
- startSendingRemindersQuestions: z.ZodOptional<z.ZodString>;
9
- memberEventFormId: z.ZodOptional<z.ZodString>;
10
- flourishApiKey: z.ZodString;
11
- flourishApiUrl: z.ZodString;
12
- flourishClientExtId: z.ZodString;
13
- }, "strip", z.ZodTypeAny, {
14
- flourishApiUrl: string;
15
- flourishApiKey: string;
16
- flourishClientExtId: string;
17
- apiUrl?: string | undefined;
18
- apiKey?: string | undefined;
19
- platformApiUrl?: string | undefined;
20
- platformApiKey?: string | undefined;
21
- selectEventTypeQuestion?: string | undefined;
22
- startSendingRemindersQuestions?: string | undefined;
23
- memberEventFormId?: string | undefined;
24
- }, {
25
- flourishApiUrl: string;
26
- flourishApiKey: string;
27
- flourishClientExtId: string;
28
- apiUrl?: string | undefined;
29
- apiKey?: string | undefined;
30
- platformApiUrl?: string | undefined;
31
- platformApiKey?: string | undefined;
32
- selectEventTypeQuestion?: string | undefined;
33
- startSendingRemindersQuestions?: string | undefined;
34
- memberEventFormId?: string | undefined;
35
- }>;
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SettingsValidationSchema = void 0;
4
- const zod_1 = require("zod");
5
- exports.SettingsValidationSchema = zod_1.z.object({
6
- platformApiKey: zod_1.z.string().optional(),
7
- platformApiUrl: zod_1.z.string().optional(),
8
- apiUrl: zod_1.z.string().optional(),
9
- apiKey: zod_1.z.string().optional(),
10
- selectEventTypeQuestion: zod_1.z.string().optional(),
11
- startSendingRemindersQuestions: zod_1.z.string().optional(),
12
- memberEventFormId: zod_1.z.string().optional(),
13
- flourishApiKey: zod_1.z.string(),
14
- flourishApiUrl: zod_1.z.string(),
15
- flourishClientExtId: zod_1.z.string(),
16
- });
17
- //# sourceMappingURL=settings.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"settings.js","sourceRoot":"","sources":["../../../../../../extensions/wellinks-public/actions/submitPamSurvey/config/settings.ts"],"names":[],"mappings":";;;AAAA,6BAAwC;AAE3B,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,uBAAuB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9C,8BAA8B,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrD,iBAAiB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACxC,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE;IAC1B,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE;IAC1B,mBAAmB,EAAE,OAAC,CAAC,MAAM,EAAE;CACoB,CAAC,CAAA"}
@@ -1,19 +0,0 @@
1
- import { type Action } from '@awell-health/extensions-core';
2
- import { type settings } from '../../config/settings';
3
- import { fields } from './config';
4
- declare const dataPoints: {
5
- pamLevel: {
6
- key: string;
7
- valueType: "number";
8
- };
9
- pamScore: {
10
- key: string;
11
- valueType: "number";
12
- };
13
- success: {
14
- key: string;
15
- valueType: "boolean";
16
- };
17
- };
18
- export declare const submitPamSurvey: Action<typeof fields, typeof settings, keyof typeof dataPoints>;
19
- export {};
@@ -1,66 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.submitPamSurvey = void 0;
4
- const extensions_core_1 = require("@awell-health/extensions-core");
5
- const wellinksFlourishClient_1 = require("../../api/clients/wellinksFlourishClient");
6
- const zod_1 = require("zod");
7
- const config_1 = require("./config");
8
- const dataPoints = {
9
- pamLevel: {
10
- key: 'pamLevel',
11
- valueType: 'number',
12
- },
13
- pamScore: {
14
- key: 'pamScore',
15
- valueType: 'number',
16
- },
17
- success: {
18
- key: 'success',
19
- valueType: 'boolean',
20
- },
21
- };
22
- exports.submitPamSurvey = {
23
- key: 'submitPamSurvey',
24
- category: extensions_core_1.Category.WORKFLOW,
25
- title: 'Submit PAM Survey',
26
- description: 'Submits a PAM survey to Flourish.',
27
- fields: config_1.fields,
28
- dataPoints,
29
- previewable: true,
30
- onActivityCreated: async (payload, onComplete, onError) => {
31
- const { fields: { language, adminDate, thirdPartyIdentifier, gender, age, pa1, pa2, pa3, pa4, pa5, pa6, pa7, pa8, pa9, pa10, pa11, pa12, pa13, }, settings: { flourishApiKey, flourishApiUrl, flourishClientExtId }, } = (0, extensions_core_1.validate)({
32
- schema: zod_1.z.object({
33
- fields: config_1.FieldsValidationSchema,
34
- settings: config_1.SettingsValidationSchema,
35
- }),
36
- payload,
37
- });
38
- const client = new wellinksFlourishClient_1.WellinksFlourishClient(flourishApiUrl, flourishApiKey, flourishClientExtId);
39
- try {
40
- const result = await client.survey.submit(language, adminDate, thirdPartyIdentifier, gender, age, pa1, pa2, pa3, pa4, pa5, pa6, pa7, pa8, pa9, pa10, pa11, pa12, pa13);
41
- await onComplete({
42
- data_points: {
43
- pamLevel: result.pamLevel.toString(),
44
- pamScore: result.pamScore.toString(),
45
- success: result.success.toString(),
46
- },
47
- });
48
- }
49
- catch (err) {
50
- const error = err;
51
- await onError({
52
- events: [
53
- {
54
- date: new Date().toISOString(),
55
- text: { en: 'Something went wrong while orchestration the action' },
56
- error: {
57
- category: 'SERVER_ERROR',
58
- message: error.message,
59
- },
60
- },
61
- ],
62
- });
63
- }
64
- },
65
- };
66
- //# sourceMappingURL=submitPamSurvey.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"submitPamSurvey.js","sourceRoot":"","sources":["../../../../../extensions/wellinks-public/actions/submitPamSurvey/submitPamSurvey.ts"],"names":[],"mappings":";;;AAAA,mEAKsC;AAEtC,qFAAiF;AACjF,6BAAuB;AACvB,qCAIiB;AAEjB,MAAM,UAAU,GAAG;IACjB,QAAQ,EAAE;QACR,GAAG,EAAE,UAAU;QACf,SAAS,EAAE,QAAQ;KACpB;IACD,QAAQ,EAAE;QACR,GAAG,EAAE,UAAU;QACf,SAAS,EAAE,QAAQ;KACpB;IACD,OAAO,EAAE;QACP,GAAG,EAAE,SAAS;QACd,SAAS,EAAE,SAAS;KACrB;CAC4C,CAAA;AAElC,QAAA,eAAe,GAIxB;IACF,GAAG,EAAE,iBAAiB;IACtB,QAAQ,EAAE,0BAAQ,CAAC,QAAQ;IAC3B,KAAK,EAAE,mBAAmB;IAC1B,WAAW,EAAE,mCAAmC;IAChD,MAAM,EAAN,eAAM;IACN,UAAU;IACV,WAAW,EAAE,IAAI;IACjB,iBAAiB,EAAE,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAiB,EAAE;QACvE,MAAM,EACJ,MAAM,EAAE,E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,EAAE,EAAE,EAAE,EAAE,qDAAqD,EAAE;wBACnE,KAAK,EAAE;4BACL,QAAQ,EAAE,cAAc;4BACxB,OAAO,EAAE,KAAK,CAAC,OAAO;yBACvB;qBACF;iBACF;aACF,CAAC,CAAA;SACH;IACH,CAAC;CACF,CAAA"}
@@ -1,125 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tests_1 = require("../../../../src/tests");
4
- const wellinksFlourishClient_1 = require("../../api/clients/__mocks__/wellinksFlourishClient");
5
- const settings_1 = require("../../__mocks__/config/settings");
6
- const submitPamSurvey_1 = require("./submitPamSurvey");
7
- const zod_1 = require("zod");
8
- jest.mock('../../api/clients/wellinksFlourishClient', () => ({
9
- WellinksFlourishClient: wellinksFlourishClient_1.WellinksFlourishClient,
10
- }));
11
- describe('Submit PAM Survey', () => {
12
- const onComplete = jest.fn();
13
- const onError = jest.fn();
14
- beforeEach(() => {
15
- jest.clearAllMocks();
16
- });
17
- test('should call onError with a ZodError when the payload is invalid', async () => {
18
- const invalidPayload = (0, tests_1.generateTestPayload)({
19
- fields: {
20
- language: undefined,
21
- adminDate: undefined,
22
- thirdPartyIdentifier: undefined,
23
- gender: undefined,
24
- age: undefined,
25
- pa1: undefined,
26
- pa2: undefined,
27
- pa3: undefined,
28
- pa4: undefined,
29
- pa5: undefined,
30
- pa6: undefined,
31
- pa7: undefined,
32
- pa8: undefined,
33
- pa9: undefined,
34
- pa10: undefined,
35
- pa11: undefined,
36
- pa12: undefined,
37
- pa13: undefined,
38
- },
39
- settings: settings_1.mockSettings,
40
- });
41
- await expect(submitPamSurvey_1.submitPamSurvey.onActivityCreated(invalidPayload, onComplete, onError)).rejects.toThrowError(zod_1.ZodError);
42
- });
43
- test('should call onComplete with a complete DataPoint set when the survey is succesfully submitted', async () => {
44
- const validPayload = (0, tests_1.generateTestPayload)({
45
- fields: {
46
- language: 'en',
47
- adminDate: '2020-01-01T00:00:00Z',
48
- thirdPartyIdentifier: 'identifier',
49
- gender: 'male',
50
- age: 25,
51
- pa1: 1,
52
- pa2: 2,
53
- pa3: 3,
54
- pa4: 4,
55
- pa5: 5,
56
- pa6: 6,
57
- pa7: 7,
58
- pa8: 8,
59
- pa9: 9,
60
- pa10: 10,
61
- pa11: 11,
62
- pa12: 12,
63
- pa13: 13,
64
- },
65
- settings: settings_1.mockSettings,
66
- });
67
- wellinksFlourishClient_1.WellinksFlourishClientMockImplementation.survey.submit.mockImplementationOnce(() => {
68
- return {
69
- success: true,
70
- pamLevel: 1,
71
- pamScore: 1,
72
- };
73
- });
74
- await submitPamSurvey_1.submitPamSurvey.onActivityCreated(validPayload, onComplete, onError);
75
- expect(onError).not.toBeCalled();
76
- expect(onComplete).toHaveBeenNthCalledWith(1, {
77
- data_points: {
78
- pamLevel: '1',
79
- pamScore: '1',
80
- success: 'true',
81
- },
82
- });
83
- });
84
- test('should call onError when wellinksFlourishClient.survey.submit throws an error', async () => {
85
- const validPayload = (0, tests_1.generateTestPayload)({
86
- fields: {
87
- language: 'en',
88
- adminDate: '2020-01-01T00:00:00Z',
89
- thirdPartyIdentifier: 'identifier',
90
- gender: 'male',
91
- age: 25,
92
- pa1: 1,
93
- pa2: 2,
94
- pa3: 3,
95
- pa4: 4,
96
- pa5: 5,
97
- pa6: 6,
98
- pa7: 7,
99
- pa8: 8,
100
- pa9: 9,
101
- pa10: 10,
102
- pa11: 11,
103
- pa12: 12,
104
- pa13: 13,
105
- },
106
- settings: settings_1.mockSettings,
107
- });
108
- wellinksFlourishClient_1.WellinksFlourishClientMockImplementation.survey.submit.mockImplementationOnce(() => {
109
- throw new Error('Test Error');
110
- });
111
- await submitPamSurvey_1.submitPamSurvey.onActivityCreated(validPayload, onComplete, onError);
112
- expect(onError).toHaveBeenNthCalledWith(1, {
113
- events: expect.arrayContaining([
114
- expect.objectContaining({
115
- error: {
116
- category: 'SERVER_ERROR',
117
- message: 'Test Error',
118
- },
119
- }),
120
- ]),
121
- });
122
- expect(onComplete).not.toBeCalled();
123
- });
124
- });
125
- //# sourceMappingURL=submitPamSurvey.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"submitPamSurvey.test.js","sourceRoot":"","sources":["../../../../../extensions/wellinks-public/actions/submitPamSurvey/submitPamSurvey.test.ts"],"names":[],"mappings":";;AAAA,iDAA2D;AAC3D,+FAG2D;AAE3D,8DAA8D;AAC9D,uDAAmD;AACnD,6BAA8B;AAE9B,IAAI,CAAC,IAAI,CAAC,0CAA0C,EAAE,GAAG,EAAE,CAAC,CAAC;IAC3D,sBAAsB,EAAtB,+CAAsB;CACvB,CAAC,CAAC,CAAA;AAEH,QAAQ,CAAC,mBAAmB,EAAE,GAAG,EAAE;IACjC,MAAM,UAAU,GAAG,IAAI,CAAC,EAAE,EAAE,CAAA;IAC5B,MAAM,OAAO,GAAG,IAAI,CAAC,EAAE,EAAE,CAAA;IACzB,UAAU,CAAC,GAAG,EAAE;QACd,IAAI,CAAC,aAAa,EAAE,CAAA;IACtB,CAAC,CAAC,CAAA;IAEF,IAAI,CAAC,iEAAiE,EAAE,KAAK,IAAI,EAAE;QACjF,MAAM,cAAc,GAAG,IAAA,2BAAmB,EAAC;YACzC,MAAM,EAAE;gBACN,QAAQ,EAAE,SAAS;gBACnB,SAAS,EAAE,SAAS;gBACpB,oBAAoB,EAAE,SAAS;gBAC/B,MAAM,EAAE,SAAS;gBACjB,GAAG,EAAE,SAAS;gBACd,GAAG,EAAE,SAAS;gBACd,GAAG,EAAE,SAAS;gBACd,GAAG,EAAE,SAAS;gBACd,GAAG,EAAE,SAAS;gBACd,GAAG,EAAE,SAAS;gBACd,GAAG,EAAE,SAAS;gBACd,GAAG,EAAE,SAAS;gBACd,GAAG,EAAE,SAAS;gBACd,GAAG,EAAE,SAAS;gBACd,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,SAAS;aAChB;YACD,QAAQ,EAAE,uBAAY;SACvB,CAAC,CAAA;Q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C,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
@@ -1,16 +0,0 @@
1
- export declare class WellinksClient {
2
- private readonly _apiUrl;
3
- private readonly _apiKey;
4
- constructor(apiUrl: string, apiKey: string);
5
- readonly memberListEvent: {
6
- insert: ({ eventName, memberId, sourceName, sendgridListId, originatorName, eventDate, lockedById, }: {
7
- eventName: string;
8
- memberId: string;
9
- sourceName: string;
10
- sendgridListId: string;
11
- originatorName: string;
12
- eventDate: string;
13
- lockedById: string | undefined | null;
14
- }) => Promise<number>;
15
- };
16
- }