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

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 +42 -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.d.ts +11 -1
  20. package/dist/extensions/healthie/lib/sdk/validatePayloadAndCreateSdk.js +15 -1
  21. package/dist/extensions/healthie/lib/sdk/validatePayloadAndCreateSdk.js.map +1 -1
  22. package/dist/extensions/healthie/lib/types.d.ts +1 -0
  23. package/dist/extensions/healthie/lib/types.js +2 -0
  24. package/dist/extensions/healthie/lib/types.js.map +1 -1
  25. package/dist/extensions/healthie/webhooks/appliedTagCreated.d.ts +2 -1
  26. package/dist/extensions/healthie/webhooks/appliedTagCreated.js +19 -7
  27. package/dist/extensions/healthie/webhooks/appliedTagCreated.js.map +1 -1
  28. package/dist/extensions/healthie/webhooks/appliedTagDeleted.d.ts +2 -1
  29. package/dist/extensions/healthie/webhooks/appliedTagDeleted.js +19 -7
  30. package/dist/extensions/healthie/webhooks/appliedTagDeleted.js.map +1 -1
  31. package/dist/extensions/healthie/webhooks/appointmentCreated.d.ts +6 -1
  32. package/dist/extensions/healthie/webhooks/appointmentCreated.js +25 -6
  33. package/dist/extensions/healthie/webhooks/appointmentCreated.js.map +1 -1
  34. package/dist/extensions/healthie/webhooks/appointmentDeleted.d.ts +2 -1
  35. package/dist/extensions/healthie/webhooks/appointmentDeleted.js +21 -6
  36. package/dist/extensions/healthie/webhooks/appointmentDeleted.js.map +1 -1
  37. package/dist/extensions/healthie/webhooks/appointmentUpdated.d.ts +6 -1
  38. package/dist/extensions/healthie/webhooks/appointmentUpdated.js +25 -6
  39. package/dist/extensions/healthie/webhooks/appointmentUpdated.js.map +1 -1
  40. package/dist/extensions/healthie/webhooks/formAnswerGroupCreated.d.ts +6 -1
  41. package/dist/extensions/healthie/webhooks/formAnswerGroupCreated.js +26 -7
  42. package/dist/extensions/healthie/webhooks/formAnswerGroupCreated.js.map +1 -1
  43. package/dist/extensions/healthie/webhooks/formAnswerGroupDeleted.d.ts +2 -1
  44. package/dist/extensions/healthie/webhooks/formAnswerGroupDeleted.js +20 -6
  45. package/dist/extensions/healthie/webhooks/formAnswerGroupDeleted.js.map +1 -1
  46. package/dist/extensions/healthie/webhooks/formAnswerGroupLocked.d.ts +6 -1
  47. package/dist/extensions/healthie/webhooks/formAnswerGroupLocked.js +25 -6
  48. package/dist/extensions/healthie/webhooks/formAnswerGroupLocked.js.map +1 -1
  49. package/dist/extensions/healthie/webhooks/formAnswerGroupSigned.d.ts +6 -1
  50. package/dist/extensions/healthie/webhooks/formAnswerGroupSigned.js +25 -6
  51. package/dist/extensions/healthie/webhooks/formAnswerGroupSigned.js.map +1 -1
  52. package/dist/extensions/healthie/webhooks/goalCreated.d.ts +3 -2
  53. package/dist/extensions/healthie/webhooks/goalCreated.js +21 -9
  54. package/dist/extensions/healthie/webhooks/goalCreated.js.map +1 -1
  55. package/dist/extensions/healthie/webhooks/goalUpdated.d.ts +2 -1
  56. package/dist/extensions/healthie/webhooks/goalUpdated.js +20 -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 +19 -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 +19 -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 +20 -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 +20 -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 +19 -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 +19 -7
  78. package/dist/extensions/healthie/webhooks/metricEntryUpdated.js.map +1 -1
  79. package/dist/extensions/healthie/webhooks/patientCreated.js +5 -0
  80. package/dist/extensions/healthie/webhooks/patientCreated.js.map +1 -1
  81. package/dist/extensions/healthie/webhooks/patientUpdated.js +5 -0
  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 +19 -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 +19 -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 +19 -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 +20 -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.d.ts +0 -1
  121. package/dist/extensions/wellinks-public/actions/checkFlourishCustomer/checkFlourishCustomer.test.js +0 -85
  122. package/dist/extensions/wellinks-public/actions/checkFlourishCustomer/checkFlourishCustomer.test.js.map +0 -1
  123. package/dist/extensions/wellinks-public/actions/checkFlourishCustomer/config/fields.d.ts +0 -18
  124. package/dist/extensions/wellinks-public/actions/checkFlourishCustomer/config/fields.js +0 -18
  125. package/dist/extensions/wellinks-public/actions/checkFlourishCustomer/config/fields.js.map +0 -1
  126. package/dist/extensions/wellinks-public/actions/checkFlourishCustomer/config/index.d.ts +0 -2
  127. package/dist/extensions/wellinks-public/actions/checkFlourishCustomer/config/index.js +0 -9
  128. package/dist/extensions/wellinks-public/actions/checkFlourishCustomer/config/index.js.map +0 -1
  129. package/dist/extensions/wellinks-public/actions/checkFlourishCustomer/config/settings.d.ts +0 -35
  130. package/dist/extensions/wellinks-public/actions/checkFlourishCustomer/config/settings.js +0 -17
  131. package/dist/extensions/wellinks-public/actions/checkFlourishCustomer/config/settings.js.map +0 -1
  132. package/dist/extensions/wellinks-public/actions/checkForChat/checkForChat.d.ts +0 -33
  133. package/dist/extensions/wellinks-public/actions/checkForChat/checkForChat.js +0 -129
  134. package/dist/extensions/wellinks-public/actions/checkForChat/checkForChat.js.map +0 -1
  135. package/dist/extensions/wellinks-public/actions/checkForChat/checkForChat.test.d.ts +0 -1
  136. package/dist/extensions/wellinks-public/actions/checkForChat/checkForChat.test.js +0 -154
  137. package/dist/extensions/wellinks-public/actions/checkForChat/checkForChat.test.js.map +0 -1
  138. package/dist/extensions/wellinks-public/actions/checkForCheckInOverride/checkForCheckInOverride.d.ts +0 -26
  139. package/dist/extensions/wellinks-public/actions/checkForCheckInOverride/checkForCheckInOverride.js +0 -139
  140. package/dist/extensions/wellinks-public/actions/checkForCheckInOverride/checkForCheckInOverride.js.map +0 -1
  141. package/dist/extensions/wellinks-public/actions/checkForCheckInOverride/checkForCheckInOverride.test.d.ts +0 -1
  142. package/dist/extensions/wellinks-public/actions/checkForCheckInOverride/checkForCheckInOverride.test.js +0 -185
  143. package/dist/extensions/wellinks-public/actions/checkForCheckInOverride/checkForCheckInOverride.test.js.map +0 -1
  144. package/dist/extensions/wellinks-public/actions/checkForOverride/checkForOverride.d.ts +0 -23
  145. package/dist/extensions/wellinks-public/actions/checkForOverride/checkForOverride.js +0 -153
  146. package/dist/extensions/wellinks-public/actions/checkForOverride/checkForOverride.js.map +0 -1
  147. package/dist/extensions/wellinks-public/actions/checkForOverride/checkForOverride.test.d.ts +0 -1
  148. package/dist/extensions/wellinks-public/actions/checkForOverride/checkForOverride.test.js +0 -184
  149. package/dist/extensions/wellinks-public/actions/checkForOverride/checkForOverride.test.js.map +0 -1
  150. package/dist/extensions/wellinks-public/actions/checkForScheduledAppointment/checkForScheduledAppointment.d.ts +0 -26
  151. package/dist/extensions/wellinks-public/actions/checkForScheduledAppointment/checkForScheduledAppointment.js +0 -118
  152. package/dist/extensions/wellinks-public/actions/checkForScheduledAppointment/checkForScheduledAppointment.js.map +0 -1
  153. package/dist/extensions/wellinks-public/actions/checkForScheduledAppointment/checkForScheduledAppointment.test.d.ts +0 -1
  154. package/dist/extensions/wellinks-public/actions/checkForScheduledAppointment/checkForScheduledAppointment.test.js +0 -119
  155. package/dist/extensions/wellinks-public/actions/checkForScheduledAppointment/checkForScheduledAppointment.test.js.map +0 -1
  156. package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/config/fields.d.ts +0 -82
  157. package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/config/fields.js +0 -78
  158. package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/config/fields.js.map +0 -1
  159. package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/config/index.d.ts +0 -1
  160. package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/config/index.js +0 -6
  161. package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/config/index.js.map +0 -1
  162. package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/createChartingNoteAdvanced-fail.test.d.ts +0 -1
  163. package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/createChartingNoteAdvanced-fail.test.js +0 -152
  164. package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/createChartingNoteAdvanced-fail.test.js.map +0 -1
  165. package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/createChartingNoteAdvanced.d.ts +0 -4
  166. package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/createChartingNoteAdvanced.js +0 -86
  167. package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/createChartingNoteAdvanced.js.map +0 -1
  168. package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/createChartingNoteAdvanced.test.d.ts +0 -1
  169. package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/createChartingNoteAdvanced.test.js +0 -42
  170. package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/createChartingNoteAdvanced.test.js.map +0 -1
  171. package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/index.d.ts +0 -1
  172. package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/index.js +0 -6
  173. package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/index.js.map +0 -1
  174. package/dist/extensions/wellinks-public/actions/createFlourishCustomer/config/fields.d.ts +0 -58
  175. package/dist/extensions/wellinks-public/actions/createFlourishCustomer/config/fields.js +0 -56
  176. package/dist/extensions/wellinks-public/actions/createFlourishCustomer/config/fields.js.map +0 -1
  177. package/dist/extensions/wellinks-public/actions/createFlourishCustomer/config/index.d.ts +0 -2
  178. package/dist/extensions/wellinks-public/actions/createFlourishCustomer/config/index.js +0 -9
  179. package/dist/extensions/wellinks-public/actions/createFlourishCustomer/config/index.js.map +0 -1
  180. package/dist/extensions/wellinks-public/actions/createFlourishCustomer/config/settings.d.ts +0 -35
  181. package/dist/extensions/wellinks-public/actions/createFlourishCustomer/config/settings.js +0 -17
  182. package/dist/extensions/wellinks-public/actions/createFlourishCustomer/config/settings.js.map +0 -1
  183. package/dist/extensions/wellinks-public/actions/createFlourishCustomer/createFlourishCustomer.d.ts +0 -11
  184. package/dist/extensions/wellinks-public/actions/createFlourishCustomer/createFlourishCustomer.js +0 -56
  185. package/dist/extensions/wellinks-public/actions/createFlourishCustomer/createFlourishCustomer.js.map +0 -1
  186. package/dist/extensions/wellinks-public/actions/createFlourishCustomer/createFlourishCustomer.test.d.ts +0 -1
  187. package/dist/extensions/wellinks-public/actions/createFlourishCustomer/createFlourishCustomer.test.js +0 -53
  188. package/dist/extensions/wellinks-public/actions/createFlourishCustomer/createFlourishCustomer.test.js.map +0 -1
  189. package/dist/extensions/wellinks-public/actions/index.d.ts +0 -967
  190. package/dist/extensions/wellinks-public/actions/index.js +0 -24
  191. package/dist/extensions/wellinks-public/actions/index.js.map +0 -1
  192. package/dist/extensions/wellinks-public/actions/insertMemberListEvent/config/fields.d.ts +0 -78
  193. package/dist/extensions/wellinks-public/actions/insertMemberListEvent/config/fields.js +0 -66
  194. package/dist/extensions/wellinks-public/actions/insertMemberListEvent/config/fields.js.map +0 -1
  195. package/dist/extensions/wellinks-public/actions/insertMemberListEvent/config/index.d.ts +0 -2
  196. package/dist/extensions/wellinks-public/actions/insertMemberListEvent/config/index.js +0 -9
  197. package/dist/extensions/wellinks-public/actions/insertMemberListEvent/config/index.js.map +0 -1
  198. package/dist/extensions/wellinks-public/actions/insertMemberListEvent/config/settings.d.ts +0 -38
  199. package/dist/extensions/wellinks-public/actions/insertMemberListEvent/config/settings.js +0 -11
  200. package/dist/extensions/wellinks-public/actions/insertMemberListEvent/config/settings.js.map +0 -1
  201. package/dist/extensions/wellinks-public/actions/insertMemberListEvent/insertMemberListEvent.d.ts +0 -11
  202. package/dist/extensions/wellinks-public/actions/insertMemberListEvent/insertMemberListEvent.js +0 -75
  203. package/dist/extensions/wellinks-public/actions/insertMemberListEvent/insertMemberListEvent.js.map +0 -1
  204. package/dist/extensions/wellinks-public/actions/insertMemberListEvent/insertMemberListEvent.test.d.ts +0 -1
  205. package/dist/extensions/wellinks-public/actions/insertMemberListEvent/insertMemberListEvent.test.js +0 -133
  206. package/dist/extensions/wellinks-public/actions/insertMemberListEvent/insertMemberListEvent.test.js.map +0 -1
  207. package/dist/extensions/wellinks-public/actions/submitPamSurvey/config/fields.d.ts +0 -188
  208. package/dist/extensions/wellinks-public/actions/submitPamSurvey/config/fields.js +0 -160
  209. package/dist/extensions/wellinks-public/actions/submitPamSurvey/config/fields.js.map +0 -1
  210. package/dist/extensions/wellinks-public/actions/submitPamSurvey/config/index.d.ts +0 -2
  211. package/dist/extensions/wellinks-public/actions/submitPamSurvey/config/index.js +0 -9
  212. package/dist/extensions/wellinks-public/actions/submitPamSurvey/config/index.js.map +0 -1
  213. package/dist/extensions/wellinks-public/actions/submitPamSurvey/config/settings.d.ts +0 -35
  214. package/dist/extensions/wellinks-public/actions/submitPamSurvey/config/settings.js +0 -17
  215. package/dist/extensions/wellinks-public/actions/submitPamSurvey/config/settings.js.map +0 -1
  216. package/dist/extensions/wellinks-public/actions/submitPamSurvey/submitPamSurvey.d.ts +0 -19
  217. package/dist/extensions/wellinks-public/actions/submitPamSurvey/submitPamSurvey.js +0 -66
  218. package/dist/extensions/wellinks-public/actions/submitPamSurvey/submitPamSurvey.js.map +0 -1
  219. package/dist/extensions/wellinks-public/actions/submitPamSurvey/submitPamSurvey.test.d.ts +0 -1
  220. package/dist/extensions/wellinks-public/actions/submitPamSurvey/submitPamSurvey.test.js +0 -125
  221. package/dist/extensions/wellinks-public/actions/submitPamSurvey/submitPamSurvey.test.js.map +0 -1
  222. package/dist/extensions/wellinks-public/api/clients/wellinksClient.d.ts +0 -16
  223. package/dist/extensions/wellinks-public/api/clients/wellinksClient.js +0 -40
  224. package/dist/extensions/wellinks-public/api/clients/wellinksClient.js.map +0 -1
  225. package/dist/extensions/wellinks-public/api/clients/wellinksFlourishClient.d.ts +0 -14
  226. package/dist/extensions/wellinks-public/api/clients/wellinksFlourishClient.js +0 -201
  227. package/dist/extensions/wellinks-public/api/clients/wellinksFlourishClient.js.map +0 -1
  228. package/dist/extensions/wellinks-public/api/clients/wellinksGraphqlClient.d.ts +0 -3
  229. package/dist/extensions/wellinks-public/api/clients/wellinksGraphqlClient.js +0 -23
  230. package/dist/extensions/wellinks-public/api/clients/wellinksGraphqlClient.js.map +0 -1
  231. package/dist/extensions/wellinks-public/api/test/wellinksFlourishClient.test.d.ts +0 -1
  232. package/dist/extensions/wellinks-public/api/test/wellinksFlourishClient.test.js +0 -192
  233. package/dist/extensions/wellinks-public/api/test/wellinksFlourishClient.test.js.map +0 -1
  234. package/dist/extensions/wellinks-public/codegen.d.ts +0 -3
  235. package/dist/extensions/wellinks-public/codegen.js +0 -21
  236. package/dist/extensions/wellinks-public/codegen.js.map +0 -1
  237. package/dist/extensions/wellinks-public/config/settings.d.ts +0 -107
  238. package/dist/extensions/wellinks-public/config/settings.js +0 -89
  239. package/dist/extensions/wellinks-public/config/settings.js.map +0 -1
  240. package/dist/extensions/wellinks-public/config/types.d.ts +0 -5
  241. package/dist/extensions/wellinks-public/config/types.js +0 -3
  242. package/dist/extensions/wellinks-public/config/types.js.map +0 -1
  243. package/dist/extensions/wellinks-public/gql/wellinksSdk.d.ts +0 -24110
  244. package/dist/extensions/wellinks-public/gql/wellinksSdk.js +0 -635
  245. package/dist/extensions/wellinks-public/gql/wellinksSdk.js.map +0 -1
  246. package/dist/extensions/wellinks-public/graphql/mutations.d.ts +0 -1
  247. package/dist/extensions/wellinks-public/graphql/mutations.js +0 -17
  248. package/dist/extensions/wellinks-public/graphql/mutations.js.map +0 -1
  249. package/dist/extensions/wellinks-public/graphql/queries.d.ts +0 -5
  250. package/dist/extensions/wellinks-public/graphql/queries.js +0 -66
  251. package/dist/extensions/wellinks-public/graphql/queries.js.map +0 -1
  252. package/dist/extensions/wellinks-public/index.d.ts +0 -2
  253. package/dist/extensions/wellinks-public/index.js +0 -20
  254. package/dist/extensions/wellinks-public/index.js.map +0 -1
@@ -1,40 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.WellinksClient = void 0;
7
- const node_fetch_1 = __importDefault(require("node-fetch"));
8
- class WellinksClient {
9
- constructor(apiUrl, apiKey) {
10
- this.memberListEvent = {
11
- insert: async ({ eventName, memberId, sourceName, sendgridListId, originatorName, eventDate, lockedById, }) => {
12
- try {
13
- const response = await (0, node_fetch_1.default)(`${this._apiUrl}/memberListEvent/insert`, {
14
- method: 'POST',
15
- body: JSON.stringify({
16
- sendgrid_list_id: sendgridListId,
17
- list_event_name: eventName,
18
- list_event_source_name: sourceName,
19
- list_event_originator_name: originatorName,
20
- wellinks_id: memberId,
21
- event_date: eventDate,
22
- locked_by_id: lockedById,
23
- }),
24
- headers: {
25
- 'x-api-key': this._apiKey,
26
- },
27
- });
28
- return response.status;
29
- }
30
- catch (_a) {
31
- return 0;
32
- }
33
- },
34
- };
35
- this._apiKey = apiKey;
36
- this._apiUrl = apiUrl;
37
- }
38
- }
39
- exports.WellinksClient = WellinksClient;
40
- //# sourceMappingURL=wellinksClient.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"wellinksClient.js","sourceRoot":"","sources":["../../../../../extensions/wellinks-public/api/clients/wellinksClient.ts"],"names":[],"mappings":";;;;;;AAAA,4DAA8B;AAE9B,MAAa,cAAc;IAGzB,YAAY,MAAc,EAAE,MAAc;QAKjC,oBAAe,GAAG;YACzB,MAAM,EAAE,KAAK,EAAE,EACb,SAAS,EACT,QAAQ,EACR,UAAU,EACV,cAAc,EACd,cAAc,EACd,SAAS,EACT,UAAU,GASX,EAAmB,EAAE;gBACpB,IAAI;oBACF,MAAM,QAAQ,GAAG,MAAM,IAAA,oBAAK,EAAC,GAAG,IAAI,CAAC,OAAO,yBAAyB,EAAE;wBACrE,MAAM,EAAE,MAAM;wBACd,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC;4BACnB,gBAAgB,EAAE,cAAc;4BAChC,eAAe,EAAE,SAAS;4BAC1B,sBAAsB,EAAE,UAAU;4BAClC,0BAA0B,EAAE,cAAc;4BAC1C,WAAW,EAAE,QAAQ;4BACrB,UAAU,EAAE,SAAS;4BACrB,YAAY,EAAE,UAAU;yBACzB,CAAC;wBACF,OAAO,EAAE;4BACP,WAAW,EAAE,IAAI,CAAC,OAAO;yBAC1B;qBACF,CAAC,CAAA;oBACF,OAAO,QAAQ,CAAC,MAAM,CAAA;iBACvB;gBAAC,WAAM;oBACN,OAAO,CAAC,CAAA;iBACT;YACH,CAAC;SACF,CAAA;QA3CC,IAAI,CAAC,OAAO,GAAG,MAAM,CAAA;QACrB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAA;IACvB,CAAC;CA0CF;AAhDD,wCAgDC"}
@@ -1,14 +0,0 @@
1
- import { type FlourishSubmitPamSurveyResponse } from '../../config/types';
2
- export declare class WellinksFlourishClient {
3
- private readonly _apiUrl;
4
- private readonly _apiKey;
5
- private readonly _clientextid;
6
- constructor(apiUrl: string, apiKey: string, clientextid: string);
7
- readonly user: {
8
- create: (firstName: string, lastName: string, dateOfBirth: string, subgroupId: string, thirdPartyIdentifier: string) => Promise<boolean>;
9
- exists: (identifier: string) => Promise<boolean>;
10
- };
11
- readonly survey: {
12
- submit: (language: string, adminDate: string, thirdPartyIdentifier: string, gender: string, age: number, pa1: number, pa2: number, pa3: number, pa4: number, pa5: number, pa6: number, pa7: number, pa8: number, pa9: number, pa10: number, pa11: number, pa12: number, pa13: number) => Promise<FlourishSubmitPamSurveyResponse>;
13
- };
14
- }
@@ -1,201 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- var __importDefault = (this && this.__importDefault) || function (mod) {
26
- return (mod && mod.__esModule) ? mod : { "default": mod };
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.WellinksFlourishClient = void 0;
30
- const node_fetch_1 = __importDefault(require("node-fetch"));
31
- const xml2js = __importStar(require("xml2js"));
32
- const lodash_1 = require("lodash");
33
- class WellinksFlourishClient {
34
- constructor(apiUrl, apiKey, clientextid) {
35
- this.user = {
36
- create: async (firstName, lastName, dateOfBirth, subgroupId, thirdPartyIdentifier) => {
37
- try {
38
- const response = await (0, node_fetch_1.default)(`${this._apiUrl}/enrolluser`, {
39
- method: 'POST',
40
- body: buildCreateUserRequest(this._clientextid, this._apiKey, firstName, lastName, dateOfBirth, subgroupId, thirdPartyIdentifier),
41
- headers: {
42
- 'Content-Type': 'text/xml',
43
- accept: 'application/xml',
44
- },
45
- });
46
- const xml = await response.text();
47
- return await new Promise((resolve, reject) => {
48
- xml2js.parseString(xml, (err, result) => {
49
- if (!(0, lodash_1.isNil)(err)) {
50
- reject(err);
51
- }
52
- else {
53
- resolve(result.RegisterResponseData.StatusCode[0] === 'Success_Register');
54
- }
55
- });
56
- });
57
- }
58
- catch (err) {
59
- const error = err;
60
- throw Error(`Node Fetch failed: ${error.message}`);
61
- }
62
- },
63
- exists: async (identifier) => {
64
- try {
65
- const response = await (0, node_fetch_1.default)(`${this._apiUrl}/checkifuserexists`, {
66
- method: 'POST',
67
- body: buildCheckIfUserExistsRequest(identifier, this._clientextid, this._apiKey),
68
- headers: {
69
- 'Content-Type': 'text/xml',
70
- accept: 'application/xml',
71
- },
72
- });
73
- const xml = await response.text();
74
- return await new Promise((resolve, reject) => {
75
- xml2js.parseString(xml, (err, result) => {
76
- if (!(0, lodash_1.isNil)(err)) {
77
- reject(err);
78
- }
79
- else {
80
- resolve(result.UserExistsResponseData.StatusMessage[0] ===
81
- 'User with third party identifier exists.');
82
- }
83
- });
84
- });
85
- }
86
- catch (err) {
87
- const error = err;
88
- throw Error(`Node Fetch failed: ${error.message}`);
89
- }
90
- },
91
- };
92
- this.survey = {
93
- submit: async (language, adminDate, thirdPartyIdentifier, gender, age, pa1, pa2, pa3, pa4, pa5, pa6, pa7, pa8, pa9, pa10, pa11, pa12, pa13) => {
94
- try {
95
- const response = await (0, node_fetch_1.default)(`${this._apiUrl}/SubmitUserSurvey`, {
96
- method: 'POST',
97
- body: buildSubmitPamSurveyRequest(this._clientextid, this._apiKey, language, adminDate, thirdPartyIdentifier, gender, age, pa1, pa2, pa3, pa4, pa5, pa6, pa7, pa8, pa9, pa10, pa11, pa12, pa13),
98
- headers: {
99
- 'Content-Type': 'text/xml',
100
- accept: 'application/xml',
101
- },
102
- });
103
- const xml = await response.text();
104
- return await new Promise((resolve, reject) => {
105
- xml2js.parseString(xml, (err, result) => {
106
- if (!(0, lodash_1.isNil)(err)) {
107
- reject(err);
108
- }
109
- else {
110
- if (result.UserSurveyResponseData.StatusCode[0] !==
111
- 'Success_SurveySubmit') {
112
- reject(new Error('Survey was not correctly submitted'));
113
- }
114
- resolve({
115
- success: result.UserSurveyResponseData.StatusMessage[0] ===
116
- 'Submit User Survey success.',
117
- pamLevel: +result.UserSurveyResponseData.SurveyResult[0].ResponseData[0].Type.find((type) => type.$.id === 'PAMLevel').$.value,
118
- pamScore: +result.UserSurveyResponseData.SurveyResult[0].ResponseData[0].Type.find((type) => type.$.id === 'PAMScore').$.value,
119
- });
120
- }
121
- });
122
- });
123
- }
124
- catch (err) {
125
- const error = err;
126
- throw new Error(`Node Fetch failed: ${error.message}`);
127
- }
128
- },
129
- };
130
- this._apiKey = apiKey;
131
- this._apiUrl = apiUrl;
132
- this._clientextid = clientextid;
133
- }
134
- }
135
- exports.WellinksFlourishClient = WellinksFlourishClient;
136
- function buildCheckIfUserExistsRequest(identifier, clientextid, apiKey) {
137
- return `<?xml version="1.0" encoding="utf-8" ?>
138
- <request>
139
- <user>
140
- <clientextid>${clientextid}</clientextid>
141
- <clientpasskey>${apiKey}</clientpasskey>
142
- <thirdpartyidentifier>${identifier}</thirdpartyidentifier>
143
- </user>
144
- </request>
145
- `;
146
- }
147
- function buildCreateUserRequest(clientextid, apiKey, firstName, lastName, dateOfBirth, subgroupId, thirdPartyIdentifier) {
148
- const date = new Date(dateOfBirth);
149
- const day = date.getDate();
150
- const month = date.getMonth() + 1; // Flourish indexes months from 1
151
- const year = date.getFullYear();
152
- return `<?xml version="1.0" encoding="utf-8" ?>
153
- <request>
154
- <user>
155
- <clientextid>${clientextid}</clientextid> <!--- required -->
156
- <clientpasskey>${apiKey}</clientpasskey> <!--- required -->
157
- <subgroupextid>${subgroupId}</subgroupextid > <!--- required -->
158
- <thirdpartyidentifier>${thirdPartyIdentifier}</thirdpartyidentifier> <!--- required -->
159
- <firstname>${firstName}</firstname>
160
- <lastname>${lastName}</lastname>
161
- <dob day="${day}" month="${month}" year="${year}"/>
162
- </user>
163
- </request>
164
- `;
165
- }
166
- function buildSubmitPamSurveyRequest(clientextid, apiKey, language, adminDate, thirdPartyIdentifier, gender, age, pa1, pa2, pa3, pa4, pa5, pa6, pa7, pa8, pa9, pa10, pa11, pa12, pa13) {
167
- const adminDateValue = new Date(adminDate);
168
- const date = adminDateValue.getDate();
169
- const month = adminDateValue.getMonth() + 1; // Flourish indexes months from 1
170
- const year = adminDateValue.getFullYear();
171
- return `<?xml version="1.0" encoding="utf-8" ?>
172
- <Request>
173
- <user>
174
- <clientextid>${clientextid}</clientextid>
175
- <clientpasskey>${apiKey}</clientpasskey>
176
- <thirdpartyidentifier>${thirdPartyIdentifier}</thirdpartyidentifier>
177
- </user>
178
- <Survey>
179
- <Language>${language}</Language>
180
- <SurveyName>PAM13_S</SurveyName>
181
- <Administration day="${date}" month="${month}" year="${year}" />
182
- <SurveyResponse Age="${age}" Gender="${gender}" SurveyDeliveryMode="Online">
183
- <Answer ID="PA1">${pa1}</Answer>
184
- <Answer ID="PA2">${pa2}</Answer>
185
- <Answer ID="PA3">${pa3}</Answer>
186
- <Answer ID="PA4">${pa4}</Answer>
187
- <Answer ID="PA5">${pa5}</Answer>
188
- <Answer ID="PA6">${pa6}</Answer>
189
- <Answer ID="PA7">${pa7}</Answer>
190
- <Answer ID="PA8">${pa8}</Answer>
191
- <Answer ID="PA9">${pa9}</Answer>
192
- <Answer ID="PA10">${pa10}</Answer>
193
- <Answer ID="PA11">${pa11}</Answer>
194
- <Answer ID="PA12">${pa12}</Answer>
195
- <Answer ID="PA13">${pa13}</Answer>
196
- </SurveyResponse>
197
- </Survey>
198
- </Request>
199
- `;
200
- }
201
- //# sourceMappingURL=wellinksFlourishClient.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"wellinksFlourishClient.js","sourceRoot":"","sources":["../../../../../extensions/wellinks-public/api/clients/wellinksFlourishClient.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4DAA8B;AAC9B,+CAAgC;AAChC,mCAA8B;AAE9B,MAAa,sBAAsB;IAKjC,YAAY,MAAc,EAAE,MAAc,EAAE,WAAmB;QAMtD,SAAI,GAAG;YACd,MAAM,EAAE,KAAK,EACX,SAAiB,EACjB,QAAgB,EAChB,WAAmB,EACnB,UAAkB,EAClB,oBAA4B,EACV,EAAE;gBACpB,IAAI;oBACF,MAAM,QAAQ,GAAG,MAAM,IAAA,oBAAK,EAAC,GAAG,IAAI,CAAC,OAAO,aAAa,EAAE;wBACzD,MAAM,EAAE,MAAM;wBACd,IAAI,EAAE,sBAAsB,CAC1B,IAAI,CAAC,YAAY,EACjB,IAAI,CAAC,OAAO,EACZ,SAAS,EACT,QAAQ,EACR,WAAW,EACX,UAAU,EACV,oBAAoB,CACrB;wBACD,OAAO,EAAE;4BACP,cAAc,EAAE,UAAU;4BAC1B,MAAM,EAAE,iBAAiB;yBAC1B;qBACF,CAAC,CAAA;oBACF,MAAM,GAAG,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAA;oBAEjC,OAAO,MAAM,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;wBAC3C,MAAM,CAAC,WAAW,CAAC,GAAG,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE;4BACtC,IAAI,CAAC,IAAA,cAAK,EAAC,GAAG,CAAC,EAAE;gCACf,MAAM,CAAC,GAAG,CAAC,C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AAG;2BACH,GAAG;2BACH,GAAG;2BACH,GAAG;2BACH,GAAG;2BACH,GAAG;4BACF,IAAI;4BACJ,IAAI;4BACJ,IAAI;4BACJ,IAAI;;;;GAI7B,CAAA;AACH,CAAC"}
@@ -1,3 +0,0 @@
1
- import { GraphQLClient } from 'graphql-request';
2
- import { type settings } from '../../config/settings';
3
- export declare const initialiseClient: (s: Partial<Record<keyof typeof settings, string | undefined>>) => GraphQLClient | undefined;
@@ -1,23 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.initialiseClient = void 0;
7
- const graphql_request_1 = require("graphql-request");
8
- const zod_1 = __importDefault(require("zod"));
9
- const ClientSchema = zod_1.default.object({
10
- apiUrl: zod_1.default.string(),
11
- apiKey: zod_1.default.string(),
12
- });
13
- const initialiseClient = (s) => {
14
- const { apiUrl, apiKey } = ClientSchema.parse(s);
15
- return new graphql_request_1.GraphQLClient(apiUrl, {
16
- headers: {
17
- AuthorizationSource: 'API',
18
- Authorization: `Basic ${apiKey}`,
19
- },
20
- });
21
- };
22
- exports.initialiseClient = initialiseClient;
23
- //# sourceMappingURL=wellinksGraphqlClient.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"wellinksGraphqlClient.js","sourceRoot":"","sources":["../../../../../extensions/wellinks-public/api/clients/wellinksGraphqlClient.ts"],"names":[],"mappings":";;;;;;AAAA,qDAA+C;AAE/C,8CAAmB;AACnB,MAAM,YAAY,GAAG,aAAC,CAAC,MAAM,CAAC;IAC5B,MAAM,EAAE,aAAC,CAAC,MAAM,EAAE;IAClB,MAAM,EAAE,aAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAA;AACK,MAAM,gBAAgB,GAAG,CAC9B,CAA6D,EAClC,EAAE;IAC7B,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;IAChD,OAAO,IAAI,+BAAa,CAAC,MAAM,EAAE;QAC/B,OAAO,EAAE;YACP,mBAAmB,EAAE,KAAK;YAC1B,aAAa,EAAE,SAAS,MAAM,EAAE;SACjC;KACF,CAAC,CAAA;AACJ,CAAC,CAAA;AAVY,QAAA,gBAAgB,oBAU5B"}
@@ -1,192 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const wellinksFlourishClient_1 = require("../clients/wellinksFlourishClient");
7
- const node_fetch_1 = __importDefault(require("node-fetch"));
8
- jest.mock('node-fetch');
9
- const { Response } = jest.requireActual('node-fetch');
10
- describe('WellinksFlourishClient', () => {
11
- const apiKey = 'apiKey';
12
- const apiUrl = 'apiUrl';
13
- const clientextid = 'clientextid';
14
- const wellinksFlourishClient = new wellinksFlourishClient_1.WellinksFlourishClient(apiUrl, apiKey, clientextid);
15
- beforeEach(() => {
16
- jest.clearAllMocks();
17
- });
18
- describe('user', () => {
19
- describe('exists', () => {
20
- test('should return true when the StatusMessage is affirmative.', async () => {
21
- const properResponse = `
22
- <UserExistsResponseData xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
23
- <StatusCode>Success_ExternalIdentifier</StatusCode>
24
- <StatusMessage>User with third party identifier exists.</StatusMessage>
25
- <ExternalUserID>230905-OV92CZDC</ExternalUserID>
26
- <NationalPatientIdentifier i:nil="true"/>
27
- <ThirdPartyIdentifier>18071982001</ThirdPartyIdentifier>
28
- <UserName i:nil="true"/>
29
- </UserExistsResponseData>`;
30
- node_fetch_1.default.mockResolvedValue(new Response(properResponse, {
31
- url: 'url',
32
- status: 200,
33
- statusText: 'OK',
34
- headers: {
35
- 'Content-Type': 'application/xml', // Specify the content type as XML
36
- },
37
- }));
38
- const result = await wellinksFlourishClient.user.exists('identifier');
39
- expect(result).toBe(true);
40
- });
41
- test('should return false when the StatusMessage is negative.', async () => {
42
- const properResponse = `
43
- <UserExistsResponseData xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
44
- <StatusCode>Success_ExternalIdentifier</StatusCode>
45
- <StatusMessage>User with third party identifier doesn't exist or invalid.</StatusMessage>
46
- <ExternalUserID>230905-OV92CZDC</ExternalUserID>
47
- <NationalPatientIdentifier i:nil="true"/>
48
- <ThirdPartyIdentifier>18071982001</ThirdPartyIdentifier>
49
- <UserName i:nil="true"/>
50
- </UserExistsResponseData>`;
51
- node_fetch_1.default.mockResolvedValue(new Response(properResponse, {
52
- url: 'url',
53
- status: 200,
54
- statusText: 'OK',
55
- headers: {
56
- 'Content-Type': 'application/xml', // Specify the content type as XML
57
- },
58
- }));
59
- const result = await wellinksFlourishClient.user.exists('identifier');
60
- expect(result).toBe(false);
61
- });
62
- test('should throw an error when node-fetch fails', async () => {
63
- ;
64
- node_fetch_1.default.mockImplementation(() => {
65
- throw new Error('something went wrong');
66
- });
67
- await expect(wellinksFlourishClient.user.exists('identifier')).rejects.toThrowError(Error('Node Fetch failed: something went wrong'));
68
- });
69
- });
70
- describe('create', () => {
71
- test('should return true when the StatusCode is affirmative', async () => {
72
- const positiveResponse = `
73
- <RegisterResponseData xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
74
- <StatusCode>Success_Register</StatusCode>
75
- <StatusMessage>User successfully registered.</StatusMessage>
76
- <ExternalUserID>230919-HQXTAR2E</ExternalUserID>
77
- <NationalPatientIdentifier i:nil="true"/>
78
- <ThirdPartyIdentifier>180719827444001</ThirdPartyIdentifier>
79
- <UserName i:nil="true"/>
80
- </RegisterResponseData>
81
- `;
82
- node_fetch_1.default.mockResolvedValue(new Response(positiveResponse, {
83
- url: 'url',
84
- status: 200,
85
- statusText: 'OK',
86
- headers: {
87
- 'Content-Type': 'application/xml', // Specify the content type as XML
88
- },
89
- }));
90
- const result = await wellinksFlourishClient.user.create('firstName', 'lastName', 'September 8th, 2000', '1234', '1234');
91
- expect(result).toEqual(true);
92
- });
93
- test('should return false when the statusCode is not affirmative', async () => {
94
- const negativeResponse = `
95
- <RegisterResponseData xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
96
- <StatusCode>Error_DuplicatePrimaryEmail</StatusCode>
97
- <StatusMessage>Email is either duplicate or invalid.</StatusMessage>
98
- <ExternalUserID i:nil="true"/>
99
- <NationalPatientIdentifier i:nil="true"/>
100
- <ThirdPartyIdentifier i:nil="true"/>
101
- <UserName i:nil="true"/>
102
- </RegisterResponseData>`;
103
- node_fetch_1.default.mockResolvedValue(new Response(negativeResponse, {
104
- url: 'url',
105
- status: 200,
106
- statusText: 'OK',
107
- headers: {
108
- 'Content-Type': 'application/xml', // Specify the content type as XML
109
- },
110
- }));
111
- const result = await wellinksFlourishClient.user.create('firstName', 'lastName', 'September 8th, 2000', '1234', '1234');
112
- expect(result).toEqual(false);
113
- });
114
- test('should throw an error when node-fetch fails', async () => {
115
- ;
116
- node_fetch_1.default.mockImplementation(() => {
117
- throw new Error('something went wrong');
118
- });
119
- await expect(wellinksFlourishClient.user.create('firstName', 'lastName', 'September 8th, 2000', '1234', '1234')).rejects.toThrowError(Error('Node Fetch failed: something went wrong'));
120
- });
121
- });
122
- });
123
- describe('survey submit', () => {
124
- describe('submit', () => {
125
- test('should return a FlourishSubmitPamSurveyResponse object on success', async () => {
126
- const properResponse = `
127
- <UserSurveyResponseData xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
128
- <StatusCode>Success_SurveySubmit</StatusCode>
129
- <StatusMessage>Submit User Survey success.</StatusMessage>
130
- <ExternalUserID>230905-OV92CZDC</ExternalUserID>
131
- <NationalPatientIdentifier i:nil="true"/>
132
- <SurveyEnteredDateTime>2023-09-05T00:00:00</SurveyEnteredDateTime>
133
- <SurveyName>PAM13_S</SurveyName>
134
- <SurveyResult>
135
- <ResponseData>
136
- <Type id="PAMLevel" value="1"/>
137
- <Type id="PAMScore" value="38.10"/>
138
- </ResponseData>
139
- </SurveyResult>
140
- <ThirdPartyIdentifier i:nil="true"/>
141
- <UserName i:nil="true"/>
142
- </UserSurveyResponseData>
143
- `;
144
- node_fetch_1.default.mockResolvedValue(new Response(properResponse, {
145
- url: 'url',
146
- status: 200,
147
- statusText: 'OK',
148
- headers: {
149
- 'Content-Type': 'application/xml', // Specify the content type as XML
150
- },
151
- }));
152
- const result = await wellinksFlourishClient.survey.submit('en', '2023-09-18', 'thirdpartyIdentifier', 'male', 22, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13);
153
- expect(result).toEqual({
154
- success: true,
155
- pamLevel: 1,
156
- pamScore: 38.1,
157
- });
158
- });
159
- test('should throw an error if node-fetch fails', async () => {
160
- ;
161
- node_fetch_1.default.mockImplementation(() => {
162
- throw new Error('something went wrong');
163
- });
164
- await expect(wellinksFlourishClient.survey.submit('en', Date().toString(), 'thirdpartyIdentifier', 'male', 22, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13)).rejects.toThrowError(Error('Node Fetch failed: something went wrong'));
165
- });
166
- test('should throw an error if the StatusCode is not affirmative', async () => {
167
- const wrongResponse = `
168
- <UserSurveyResponseData xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
169
- <StatusCode>Error_InvalidUserCredential</StatusCode>
170
- <StatusMessage>Sorry. We could not find user with the specified credentials.</StatusMessage>
171
- <ExternalUserID i:nil="true"/>
172
- <NationalPatientIdentifier i:nil="true"/>
173
- <SurveyEnteredDateTime>2023-09-05T00:00:00</SurveyEnteredDateTime>
174
- <SurveyName>PAM13_S</SurveyName>
175
- <SurveyResult i:nil="true"/>
176
- <ThirdPartyIdentifier i:nil="true"/>
177
- <UserName i:nil="true"/>
178
- </UserSurveyResponseData>`;
179
- node_fetch_1.default.mockResolvedValue(new Response(wrongResponse, {
180
- url: 'url',
181
- status: 200,
182
- statusText: 'OK',
183
- headers: {
184
- 'Content-Type': 'application/xml', // Specify the content type as XML
185
- },
186
- }));
187
- await expect(wellinksFlourishClient.survey.submit('en', Date().toString(), 'thirdpartyIdentifier', 'male', 22, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13)).rejects.toThrowError(Error('Node Fetch failed: Survey was not correctly submitted'));
188
- });
189
- });
190
- });
191
- });
192
- //# sourceMappingURL=wellinksFlourishClient.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"wellinksFlourishClient.test.js","sourceRoot":"","sources":["../../../../../extensions/wellinks-public/api/test/wellinksFlourishClient.test.ts"],"names":[],"mappings":";;;;;AAAA,8EAA0E;AAC1E,4DAA8B;AAC9B,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAA;AAEvB,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC,aAAa,CAAC,YAAY,CAAC,CAAA;AAErD,QAAQ,CAAC,wBAAwB,EAAE,GAAG,EAAE;IACtC,MAAM,MAAM,GAAG,QAAQ,CAAA;IACvB,MAAM,MAAM,GAAG,QAAQ,CAAA;IACvB,MAAM,WAAW,GAAG,aAAa,CAAA;IACjC,MAAM,sBAAsB,GAAG,IAAI,+CAAsB,CACvD,MAAM,EACN,MAAM,EACN,WAAW,CACZ,CAAA;IACD,UAAU,CAAC,GAAG,EAAE;QACd,IAAI,CAAC,aAAa,EAAE,CAAA;IACtB,CAAC,CAAC,CAAA;IAEF,QAAQ,CAAC,MAAM,EAAE,GAAG,EAAE;QACpB,QAAQ,CAAC,QAAQ,EAAE,GAAG,EAAE;YACtB,IAAI,CAAC,2DAA2D,EAAE,KAAK,IAAI,EAAE;gBAC3E,MAAM,cAAc,GAAG;;;;;;;;kCAQG,CACzB;gBAAC,oBAA2C,CAAC,iBAAiB,CAC7D,IAAI,QAAQ,CAAC,cAAc,EAAE;oBAC3B,GAAG,EAAE,KAAK;oBACV,MAAM,EAAE,GAAG;oBACX,UAAU,EAAE,IAAI;oBAChB,OAAO,EAAE;wBACP,cAAc,EAAE,iBAAiB,EAAE,kCAAkC;qBACtE;iBACF,CAAC,CACH,CAAA;gBACD,MA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@ -1,3 +0,0 @@
1
- import type { CodegenConfig } from '@graphql-codegen/cli';
2
- declare const config: CodegenConfig;
3
- export default config;
@@ -1,21 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const config = {
4
- overwrite: true,
5
- schema: 'https://staging-api.gethealthie.com/graphql',
6
- documents: 'extensions/wellinks/graphql/*.ts',
7
- generates: {
8
- 'extensions/wellinks/gql/wellinksSdk.ts': {
9
- plugins: [
10
- 'typescript',
11
- 'typescript-operations',
12
- 'typescript-graphql-request',
13
- ],
14
- config: {
15
- rawRequest: true,
16
- },
17
- },
18
- },
19
- };
20
- exports.default = config;
21
- //# sourceMappingURL=codegen.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"codegen.js","sourceRoot":"","sources":["../../../extensions/wellinks-public/codegen.ts"],"names":[],"mappings":";;AAGA,MAAM,MAAM,GAAkB;IAC1B,SAAS,EAAE,IAAI;IACf,MAAM,EAAE,6CAA6C;IACrD,SAAS,EAAE,kCAAkC;IAC7C,SAAS,EAAE;QACT,wCAAwC,EAAE;YACxC,OAAO,EAAE;gBACP,YAAY;gBACZ,uBAAuB;gBACvB,4BAA4B;aAC7B;YACD,MAAM,EAAE;gBACN,UAAU,EAAE,IAAI;aACjB;SACF;KACF;CACF,CAAA;AACD,kBAAe,MAAM,CAAA"}
@@ -1,107 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const settings: {
3
- platformApiUrl: {
4
- key: string;
5
- label: string;
6
- obfuscated: false;
7
- required: false;
8
- description: string;
9
- };
10
- platformApiKey: {
11
- key: string;
12
- label: string;
13
- obfuscated: true;
14
- required: false;
15
- description: string;
16
- };
17
- apiUrl: {
18
- key: string;
19
- label: string;
20
- obfuscated: false;
21
- required: true;
22
- description: string;
23
- };
24
- apiKey: {
25
- key: string;
26
- label: string;
27
- obfuscated: true;
28
- required: true;
29
- description: string;
30
- };
31
- selectEventTypeQuestion: {
32
- key: string;
33
- label: string;
34
- obfuscated: false;
35
- required: false;
36
- description: string;
37
- };
38
- startSendingRemindersQuestions: {
39
- key: string;
40
- label: string;
41
- obfuscated: false;
42
- required: false;
43
- description: string;
44
- };
45
- memberEventFormId: {
46
- key: string;
47
- label: string;
48
- obfuscated: false;
49
- required: false;
50
- description: string;
51
- };
52
- flourishApiUrl: {
53
- key: string;
54
- label: string;
55
- obfuscated: false;
56
- required: false;
57
- description: string;
58
- };
59
- flourishApiKey: {
60
- key: string;
61
- label: string;
62
- obfuscated: true;
63
- required: false;
64
- description: string;
65
- };
66
- flourishClientExtId: {
67
- key: string;
68
- label: string;
69
- obfuscated: false;
70
- required: false;
71
- description: string;
72
- };
73
- };
74
- export declare const SettingsValidationSchema: z.ZodObject<{
75
- platformApiUrl: z.ZodOptional<z.ZodString>;
76
- platformApiKey: z.ZodOptional<z.ZodString>;
77
- apiUrl: z.ZodOptional<z.ZodString>;
78
- apiKey: z.ZodOptional<z.ZodString>;
79
- selectEventTypeQuestion: z.ZodOptional<z.ZodString>;
80
- startSendingRemindersQuestions: z.ZodOptional<z.ZodString>;
81
- memberEventFormId: z.ZodOptional<z.ZodString>;
82
- flourishApiUrl: z.ZodOptional<z.ZodString>;
83
- flourishApiKey: z.ZodOptional<z.ZodString>;
84
- flourishClientExtId: z.ZodOptional<z.ZodString>;
85
- }, "strip", z.ZodTypeAny, {
86
- apiUrl?: string | undefined;
87
- apiKey?: string | undefined;
88
- platformApiUrl?: string | undefined;
89
- platformApiKey?: string | undefined;
90
- selectEventTypeQuestion?: string | undefined;
91
- startSendingRemindersQuestions?: string | undefined;
92
- memberEventFormId?: string | undefined;
93
- flourishApiUrl?: string | undefined;
94
- flourishApiKey?: string | undefined;
95
- flourishClientExtId?: string | undefined;
96
- }, {
97
- apiUrl?: string | undefined;
98
- apiKey?: string | undefined;
99
- platformApiUrl?: string | undefined;
100
- platformApiKey?: string | undefined;
101
- selectEventTypeQuestion?: string | undefined;
102
- startSendingRemindersQuestions?: string | undefined;
103
- memberEventFormId?: string | undefined;
104
- flourishApiUrl?: string | undefined;
105
- flourishApiKey?: string | undefined;
106
- flourishClientExtId?: string | undefined;
107
- }>;