@awell-health/awell-extensions 2.0.6 → 2.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (280) hide show
  1. package/dist/extensions/healthie/actions/applyTagToPatient/applyTagToPatient.js +3 -3
  2. package/dist/extensions/healthie/actions/applyTagToPatient/applyTagToPatient.js.map +1 -1
  3. package/dist/extensions/healthie/actions/applyTagToPatient/applyTagToPatient.test.js +4 -4
  4. package/dist/extensions/healthie/actions/applyTagToPatient/applyTagToPatient.test.js.map +1 -1
  5. package/dist/extensions/healthie/actions/archivePatient/archivePatient.js +3 -3
  6. package/dist/extensions/healthie/actions/archivePatient/archivePatient.js.map +1 -1
  7. package/dist/extensions/healthie/actions/archivePatient/archivePatient.test.js +4 -4
  8. package/dist/extensions/healthie/actions/archivePatient/archivePatient.test.js.map +1 -1
  9. package/dist/extensions/healthie/actions/assignPatientToGroup/assignPatientToGroup.js +3 -3
  10. package/dist/extensions/healthie/actions/assignPatientToGroup/assignPatientToGroup.js.map +1 -1
  11. package/dist/extensions/healthie/actions/assignPatientToGroup/assignPatientToGroup.test.js +4 -4
  12. package/dist/extensions/healthie/actions/assignPatientToGroup/assignPatientToGroup.test.js.map +1 -1
  13. package/dist/extensions/healthie/actions/cancelAppointment/cancelAppointment.js +3 -3
  14. package/dist/extensions/healthie/actions/cancelAppointment/cancelAppointment.js.map +1 -1
  15. package/dist/extensions/healthie/actions/cancelAppointment/cancelAppointment.test.js +4 -4
  16. package/dist/extensions/healthie/actions/cancelAppointment/cancelAppointment.test.js.map +1 -1
  17. package/dist/extensions/healthie/actions/checkPatientTag/checkPatientTag.js +3 -3
  18. package/dist/extensions/healthie/actions/checkPatientTag/checkPatientTag.js.map +1 -1
  19. package/dist/extensions/healthie/actions/checkPatientTag/checkPatientTag.test.js +4 -4
  20. package/dist/extensions/healthie/actions/checkPatientTag/checkPatientTag.test.js.map +1 -1
  21. package/dist/extensions/healthie/actions/checkScheduledAppointments/checkScheduledAppointments.js +3 -3
  22. package/dist/extensions/healthie/actions/checkScheduledAppointments/checkScheduledAppointments.js.map +1 -1
  23. package/dist/extensions/healthie/actions/checkScheduledAppointments/checkScheduledAppointments.test.js +4 -4
  24. package/dist/extensions/healthie/actions/checkScheduledAppointments/checkScheduledAppointments.test.js.map +1 -1
  25. package/dist/extensions/healthie/actions/closeChatConversation/closeChatConversation.js +3 -3
  26. package/dist/extensions/healthie/actions/closeChatConversation/closeChatConversation.js.map +1 -1
  27. package/dist/extensions/healthie/actions/closeChatConversation/closeChatConversation.test.js +4 -4
  28. package/dist/extensions/healthie/actions/closeChatConversation/closeChatConversation.test.js.map +1 -1
  29. package/dist/extensions/healthie/actions/completeTask/completeTask.js +3 -3
  30. package/dist/extensions/healthie/actions/completeTask/completeTask.js.map +1 -1
  31. package/dist/extensions/healthie/actions/completeTask/completeTask.test.js +4 -4
  32. package/dist/extensions/healthie/actions/completeTask/completeTask.test.js.map +1 -1
  33. package/dist/extensions/healthie/actions/createAppointment/createAppointment.test.js +4 -4
  34. package/dist/extensions/healthie/actions/createAppointment/createAppointment.test.js.map +1 -1
  35. package/dist/extensions/healthie/actions/createChartingNote/createChartingNote.js +3 -3
  36. package/dist/extensions/healthie/actions/createChartingNote/createChartingNote.js.map +1 -1
  37. package/dist/extensions/healthie/actions/createChartingNote/createChartingNote.test.js +4 -4
  38. package/dist/extensions/healthie/actions/createChartingNote/createChartingNote.test.js.map +1 -1
  39. package/dist/extensions/healthie/actions/createGoal/config/datapoints.d.ts +6 -0
  40. package/dist/extensions/healthie/actions/createGoal/config/datapoints.js +10 -0
  41. package/dist/extensions/healthie/actions/createGoal/config/datapoints.js.map +1 -0
  42. package/dist/extensions/healthie/actions/createGoal/config/fields.d.ts +58 -0
  43. package/dist/extensions/healthie/actions/createGoal/config/fields.js +70 -0
  44. package/dist/extensions/healthie/actions/createGoal/config/fields.js.map +1 -0
  45. package/dist/extensions/healthie/actions/createGoal/config/index.d.ts +2 -0
  46. package/dist/extensions/healthie/actions/createGoal/config/index.js +9 -0
  47. package/dist/extensions/healthie/actions/createGoal/config/index.js.map +1 -0
  48. package/dist/extensions/healthie/actions/createGoal/createGoal.d.ts +4 -0
  49. package/dist/extensions/healthie/actions/createGoal/createGoal.js +45 -0
  50. package/dist/extensions/healthie/actions/createGoal/createGoal.js.map +1 -0
  51. package/dist/extensions/healthie/actions/createGoal/createGoal.test.js +76 -0
  52. package/dist/extensions/healthie/actions/createGoal/createGoal.test.js.map +1 -0
  53. package/dist/extensions/healthie/actions/createGoal/index.d.ts +1 -0
  54. package/dist/extensions/healthie/actions/createGoal/index.js +18 -0
  55. package/dist/extensions/healthie/actions/createGoal/index.js.map +1 -0
  56. package/dist/extensions/healthie/actions/createJournalEntry/createJournalEntry.js +3 -3
  57. package/dist/extensions/healthie/actions/createJournalEntry/createJournalEntry.js.map +1 -1
  58. package/dist/extensions/healthie/actions/createJournalEntry/createJournalEntry.test.js +4 -4
  59. package/dist/extensions/healthie/actions/createJournalEntry/createJournalEntry.test.js.map +1 -1
  60. package/dist/extensions/healthie/actions/createLocation/createLocation.js +3 -3
  61. package/dist/extensions/healthie/actions/createLocation/createLocation.js.map +1 -1
  62. package/dist/extensions/healthie/actions/createLocation/createLocation.test.js +4 -4
  63. package/dist/extensions/healthie/actions/createLocation/createLocation.test.js.map +1 -1
  64. package/dist/extensions/healthie/actions/createMetricEntry/createMetricEntry.js +3 -3
  65. package/dist/extensions/healthie/actions/createMetricEntry/createMetricEntry.js.map +1 -1
  66. package/dist/extensions/healthie/actions/createMetricEntry/createMetricEntry.test.js +4 -4
  67. package/dist/extensions/healthie/actions/createMetricEntry/createMetricEntry.test.js.map +1 -1
  68. package/dist/extensions/healthie/actions/createPatient/createPatient.js +3 -3
  69. package/dist/extensions/healthie/actions/createPatient/createPatient.js.map +1 -1
  70. package/dist/extensions/healthie/actions/createPatient/createPatient.test.js +4 -4
  71. package/dist/extensions/healthie/actions/createPatient/createPatient.test.js.map +1 -1
  72. package/dist/extensions/healthie/actions/createTask/createTask.js +3 -3
  73. package/dist/extensions/healthie/actions/createTask/createTask.js.map +1 -1
  74. package/dist/extensions/healthie/actions/createTask/createTask.test.js +4 -4
  75. package/dist/extensions/healthie/actions/createTask/createTask.test.js.map +1 -1
  76. package/dist/extensions/healthie/actions/deleteAppointment/deleteAppointment.js +3 -3
  77. package/dist/extensions/healthie/actions/deleteAppointment/deleteAppointment.js.map +1 -1
  78. package/dist/extensions/healthie/actions/deleteAppointment/deleteAppointment.test.js +4 -4
  79. package/dist/extensions/healthie/actions/deleteAppointment/deleteAppointment.test.js.map +1 -1
  80. package/dist/extensions/healthie/actions/deleteGoal/config/datapoints.d.ts +1 -0
  81. package/dist/extensions/healthie/actions/deleteGoal/config/datapoints.js +5 -0
  82. package/dist/extensions/healthie/actions/deleteGoal/config/datapoints.js.map +1 -0
  83. package/dist/extensions/healthie/actions/deleteGoal/config/fields.d.ts +18 -0
  84. package/dist/extensions/healthie/actions/deleteGoal/config/fields.js +21 -0
  85. package/dist/extensions/healthie/actions/deleteGoal/config/fields.js.map +1 -0
  86. package/dist/extensions/healthie/actions/deleteGoal/config/index.d.ts +2 -0
  87. package/dist/extensions/healthie/actions/deleteGoal/config/index.js +9 -0
  88. package/dist/extensions/healthie/actions/deleteGoal/config/index.js.map +1 -0
  89. package/dist/extensions/healthie/actions/deleteGoal/deleteGoal.d.ts +4 -0
  90. package/dist/extensions/healthie/actions/deleteGoal/deleteGoal.js +35 -0
  91. package/dist/extensions/healthie/actions/deleteGoal/deleteGoal.js.map +1 -0
  92. package/dist/extensions/healthie/actions/deleteGoal/deleteGoal.test.d.ts +1 -0
  93. package/dist/extensions/healthie/actions/deleteGoal/deleteGoal.test.js +42 -0
  94. package/dist/extensions/healthie/actions/deleteGoal/deleteGoal.test.js.map +1 -0
  95. package/dist/extensions/healthie/actions/deleteGoal/index.d.ts +1 -0
  96. package/dist/extensions/healthie/actions/deleteGoal/index.js +18 -0
  97. package/dist/extensions/healthie/actions/deleteGoal/index.js.map +1 -0
  98. package/dist/extensions/healthie/actions/deleteTask/deleteTask.js +3 -3
  99. package/dist/extensions/healthie/actions/deleteTask/deleteTask.js.map +1 -1
  100. package/dist/extensions/healthie/actions/deleteTask/deleteTask.test.js +4 -4
  101. package/dist/extensions/healthie/actions/deleteTask/deleteTask.test.js.map +1 -1
  102. package/dist/extensions/healthie/actions/getAppointment/getAppointment.js +3 -3
  103. package/dist/extensions/healthie/actions/getAppointment/getAppointment.js.map +1 -1
  104. package/dist/extensions/healthie/actions/getAppointment/getAppointment.test.js +4 -4
  105. package/dist/extensions/healthie/actions/getAppointment/getAppointment.test.js.map +1 -1
  106. package/dist/extensions/healthie/actions/getFormAnswers/getFormAnswers.test.js +2 -2
  107. package/dist/extensions/healthie/actions/getFormAnswers/getFormAnswers.test.js.map +1 -1
  108. package/dist/extensions/healthie/actions/getMetricEntry/getMetricEntry.js +3 -3
  109. package/dist/extensions/healthie/actions/getMetricEntry/getMetricEntry.js.map +1 -1
  110. package/dist/extensions/healthie/actions/getMetricEntry/getMetricEntry.test.js +4 -4
  111. package/dist/extensions/healthie/actions/getMetricEntry/getMetricEntry.test.js.map +1 -1
  112. package/dist/extensions/healthie/actions/getPatient/getPatient.js +3 -3
  113. package/dist/extensions/healthie/actions/getPatient/getPatient.js.map +1 -1
  114. package/dist/extensions/healthie/actions/getPatient/getPatient.test.js +4 -4
  115. package/dist/extensions/healthie/actions/getPatient/getPatient.test.js.map +1 -1
  116. package/dist/extensions/healthie/actions/getSetPasswordLink/config/datapoints.d.ts +6 -0
  117. package/dist/extensions/healthie/actions/getSetPasswordLink/config/datapoints.js +10 -0
  118. package/dist/extensions/healthie/actions/getSetPasswordLink/config/datapoints.js.map +1 -0
  119. package/dist/extensions/healthie/actions/getSetPasswordLink/config/fields.d.ts +18 -0
  120. package/dist/extensions/healthie/actions/getSetPasswordLink/config/fields.js +21 -0
  121. package/dist/extensions/healthie/actions/getSetPasswordLink/config/fields.js.map +1 -0
  122. package/dist/extensions/healthie/actions/getSetPasswordLink/config/index.d.ts +2 -0
  123. package/dist/extensions/healthie/actions/getSetPasswordLink/config/index.js +9 -0
  124. package/dist/extensions/healthie/actions/getSetPasswordLink/config/index.js.map +1 -0
  125. package/dist/extensions/healthie/actions/getSetPasswordLink/getSetPasswordLink.d.ts +4 -0
  126. package/dist/extensions/healthie/actions/getSetPasswordLink/getSetPasswordLink.js +39 -0
  127. package/dist/extensions/healthie/actions/getSetPasswordLink/getSetPasswordLink.js.map +1 -0
  128. package/dist/extensions/healthie/actions/getSetPasswordLink/getSetPasswordLink.test.d.ts +1 -0
  129. package/dist/extensions/healthie/actions/getSetPasswordLink/getSetPasswordLink.test.js +48 -0
  130. package/dist/extensions/healthie/actions/getSetPasswordLink/getSetPasswordLink.test.js.map +1 -0
  131. package/dist/extensions/healthie/actions/getSetPasswordLink/index.d.ts +1 -0
  132. package/dist/extensions/healthie/actions/getSetPasswordLink/index.js +18 -0
  133. package/dist/extensions/healthie/actions/getSetPasswordLink/index.js.map +1 -0
  134. package/dist/extensions/healthie/actions/index.d.ts +100 -0
  135. package/dist/extensions/healthie/actions/index.js +6 -0
  136. package/dist/extensions/healthie/actions/index.js.map +1 -1
  137. package/dist/extensions/healthie/actions/removeTagFromPatient/removeTagFromPatient.js +3 -3
  138. package/dist/extensions/healthie/actions/removeTagFromPatient/removeTagFromPatient.js.map +1 -1
  139. package/dist/extensions/healthie/actions/removeTagFromPatient/removeTagFromPatient.test.js +4 -4
  140. package/dist/extensions/healthie/actions/removeTagFromPatient/removeTagFromPatient.test.js.map +1 -1
  141. package/dist/extensions/healthie/actions/sendChatMessage/sendChatMessage.js +3 -3
  142. package/dist/extensions/healthie/actions/sendChatMessage/sendChatMessage.js.map +1 -1
  143. package/dist/extensions/healthie/actions/sendChatMessage/sendChatMessage.test.js +4 -4
  144. package/dist/extensions/healthie/actions/sendChatMessage/sendChatMessage.test.js.map +1 -1
  145. package/dist/extensions/healthie/actions/sendFormCompletionRequest/sendFormCompletionRequest.js +3 -3
  146. package/dist/extensions/healthie/actions/sendFormCompletionRequest/sendFormCompletionRequest.js.map +1 -1
  147. package/dist/extensions/healthie/actions/sendFormCompletionRequest/sendFormCompletionRequest.test.js +4 -4
  148. package/dist/extensions/healthie/actions/sendFormCompletionRequest/sendFormCompletionRequest.test.js.map +1 -1
  149. package/dist/extensions/healthie/actions/updatePatient/updatePatient.js +3 -3
  150. package/dist/extensions/healthie/actions/updatePatient/updatePatient.js.map +1 -1
  151. package/dist/extensions/healthie/actions/updatePatient/updatePatient.test.js +4 -4
  152. package/dist/extensions/healthie/actions/updatePatient/updatePatient.test.js.map +1 -1
  153. package/dist/extensions/healthie/actions/updatePatientQuickNote/updatePatientQuickNote.js +3 -3
  154. package/dist/extensions/healthie/actions/updatePatientQuickNote/updatePatientQuickNote.js.map +1 -1
  155. package/dist/extensions/healthie/actions/updatePatientQuickNote/updatePatientQuickNote.test.js +4 -4
  156. package/dist/extensions/healthie/actions/updatePatientQuickNote/updatePatientQuickNote.test.js.map +1 -1
  157. package/dist/extensions/healthie/index.js +1 -1
  158. package/dist/extensions/healthie/index.js.map +1 -1
  159. package/dist/extensions/healthie/lib/sdk/genql/HealthieSdk.d.ts +29 -0
  160. package/dist/extensions/healthie/lib/sdk/genql/HealthieSdk.js +30 -0
  161. package/dist/extensions/healthie/lib/sdk/genql/HealthieSdk.js.map +1 -0
  162. package/dist/extensions/healthie/lib/sdk/genql/generateSdk.d.ts +1 -0
  163. package/dist/extensions/healthie/lib/sdk/genql/generateSdk.js +21 -0
  164. package/dist/extensions/healthie/lib/sdk/genql/generateSdk.js.map +1 -0
  165. package/dist/extensions/healthie/lib/sdk/genql/generated/index.d.ts +29 -0
  166. package/dist/extensions/healthie/lib/sdk/genql/generated/index.js +51 -0
  167. package/dist/extensions/healthie/lib/sdk/genql/generated/index.js.map +1 -0
  168. package/dist/extensions/healthie/lib/sdk/genql/generated/runtime/batcher.d.ts +105 -0
  169. package/dist/extensions/healthie/lib/sdk/genql/generated/runtime/batcher.js +205 -0
  170. package/dist/extensions/healthie/lib/sdk/genql/generated/runtime/batcher.js.map +1 -0
  171. package/dist/extensions/healthie/lib/sdk/genql/generated/runtime/createClient.d.ts +23 -0
  172. package/dist/extensions/healthie/lib/sdk/genql/generated/runtime/createClient.js +29 -0
  173. package/dist/extensions/healthie/lib/sdk/genql/generated/runtime/createClient.js.map +1 -0
  174. package/dist/extensions/healthie/lib/sdk/genql/generated/runtime/error.d.ts +18 -0
  175. package/dist/extensions/healthie/lib/sdk/genql/generated/runtime/error.js +20 -0
  176. package/dist/extensions/healthie/lib/sdk/genql/generated/runtime/error.js.map +1 -0
  177. package/dist/extensions/healthie/lib/sdk/genql/generated/runtime/fetcher.d.ts +10 -0
  178. package/dist/extensions/healthie/lib/sdk/genql/generated/runtime/fetcher.js +72 -0
  179. package/dist/extensions/healthie/lib/sdk/genql/generated/runtime/fetcher.js.map +1 -0
  180. package/dist/extensions/healthie/lib/sdk/genql/generated/runtime/generateGraphqlOperation.d.ts +30 -0
  181. package/dist/extensions/healthie/lib/sdk/genql/generated/runtime/generateGraphqlOperation.js +134 -0
  182. package/dist/extensions/healthie/lib/sdk/genql/generated/runtime/generateGraphqlOperation.js.map +1 -0
  183. package/dist/extensions/healthie/lib/sdk/genql/generated/runtime/index.d.ts +11 -0
  184. package/dist/extensions/healthie/lib/sdk/genql/generated/runtime/index.js +19 -0
  185. package/dist/extensions/healthie/lib/sdk/genql/generated/runtime/index.js.map +1 -0
  186. package/dist/extensions/healthie/lib/sdk/genql/generated/runtime/linkTypeMap.d.ts +9 -0
  187. package/dist/extensions/healthie/lib/sdk/genql/generated/runtime/linkTypeMap.js +102 -0
  188. package/dist/extensions/healthie/lib/sdk/genql/generated/runtime/linkTypeMap.js.map +1 -0
  189. package/dist/extensions/healthie/lib/sdk/genql/generated/runtime/typeSelection.d.ts +28 -0
  190. package/dist/extensions/healthie/lib/sdk/genql/generated/runtime/typeSelection.js +5 -0
  191. package/dist/extensions/healthie/lib/sdk/genql/generated/runtime/typeSelection.js.map +1 -0
  192. package/dist/extensions/healthie/lib/sdk/genql/generated/runtime/types.d.ts +55 -0
  193. package/dist/extensions/healthie/lib/sdk/genql/generated/runtime/types.js +4 -0
  194. package/dist/extensions/healthie/lib/sdk/genql/generated/runtime/types.js.map +1 -0
  195. package/dist/extensions/healthie/lib/sdk/genql/generated/schema.d.ts +42906 -0
  196. package/dist/extensions/healthie/lib/sdk/genql/generated/schema.js +5072 -0
  197. package/dist/extensions/healthie/lib/sdk/genql/generated/schema.js.map +1 -0
  198. package/dist/extensions/healthie/lib/sdk/genql/generated/types.d.ts +14934 -0
  199. package/dist/extensions/healthie/lib/sdk/genql/generated/types.js +39502 -0
  200. package/dist/extensions/healthie/lib/sdk/genql/generated/types.js.map +1 -0
  201. package/dist/extensions/healthie/lib/sdk/genql/index.d.ts +2 -0
  202. package/dist/extensions/healthie/lib/sdk/genql/index.js +21 -0
  203. package/dist/extensions/healthie/lib/sdk/genql/index.js.map +1 -0
  204. package/dist/extensions/healthie/lib/sdk/graphql-codegen/codegen.d.ts +7 -0
  205. package/dist/extensions/healthie/lib/sdk/{codegen.js → graphql-codegen/codegen.js} +6 -2
  206. package/dist/extensions/healthie/lib/sdk/graphql-codegen/codegen.js.map +1 -0
  207. package/dist/extensions/healthie/lib/sdk/{createSdk.d.ts → graphql-codegen/createSdk.d.ts} +5 -1
  208. package/dist/extensions/healthie/lib/sdk/{createSdk.js → graphql-codegen/createSdk.js} +4 -1
  209. package/dist/extensions/healthie/lib/sdk/graphql-codegen/createSdk.js.map +1 -0
  210. package/dist/extensions/healthie/lib/sdk/graphql-codegen/errors.js.map +1 -0
  211. package/dist/extensions/healthie/lib/sdk/{generated → graphql-codegen/generated}/sdk.d.ts +510 -84
  212. package/dist/extensions/healthie/lib/sdk/{generated → graphql-codegen/generated}/sdk.js +534 -373
  213. package/dist/extensions/healthie/lib/sdk/graphql-codegen/generated/sdk.js.map +1 -0
  214. package/dist/extensions/healthie/lib/sdk/{graphqlClient.d.ts → graphql-codegen/graphqlClient.d.ts} +5 -1
  215. package/dist/extensions/healthie/lib/sdk/{graphqlClient.js → graphql-codegen/graphqlClient.js} +4 -0
  216. package/dist/extensions/healthie/lib/sdk/graphql-codegen/graphqlClient.js.map +1 -0
  217. package/dist/extensions/healthie/lib/sdk/graphql-codegen/graphqlClient.test.d.ts +1 -0
  218. package/dist/extensions/healthie/lib/sdk/graphql-codegen/graphqlClient.test.js.map +1 -0
  219. package/dist/extensions/healthie/lib/sdk/validatePayloadAndCreateSdk.d.ts +7 -1
  220. package/dist/extensions/healthie/lib/sdk/validatePayloadAndCreateSdk.js +12 -4
  221. package/dist/extensions/healthie/lib/sdk/validatePayloadAndCreateSdk.js.map +1 -1
  222. package/dist/extensions/healthie/lib/types.d.ts +1 -1
  223. package/dist/extensions/healthie/lib/validation/getPatient.zod.d.ts +1 -1
  224. package/dist/extensions/healthie/webhooks/appliedTagCreated.js +2 -2
  225. package/dist/extensions/healthie/webhooks/appliedTagCreated.js.map +1 -1
  226. package/dist/extensions/healthie/webhooks/appliedTagDeleted.js +6 -3
  227. package/dist/extensions/healthie/webhooks/appliedTagDeleted.js.map +1 -1
  228. package/dist/extensions/healthie/webhooks/appointmentCreated.js +2 -2
  229. package/dist/extensions/healthie/webhooks/appointmentCreated.js.map +1 -1
  230. package/dist/extensions/healthie/webhooks/appointmentDeleted.js +2 -2
  231. package/dist/extensions/healthie/webhooks/appointmentDeleted.js.map +1 -1
  232. package/dist/extensions/healthie/webhooks/appointmentUpdated.js +2 -2
  233. package/dist/extensions/healthie/webhooks/appointmentUpdated.js.map +1 -1
  234. package/dist/extensions/healthie/webhooks/formAnswerGroupCreated.js +3 -3
  235. package/dist/extensions/healthie/webhooks/formAnswerGroupCreated.js.map +1 -1
  236. package/dist/extensions/healthie/webhooks/formAnswerGroupDeleted.js +2 -2
  237. package/dist/extensions/healthie/webhooks/formAnswerGroupDeleted.js.map +1 -1
  238. package/dist/extensions/healthie/webhooks/formAnswerGroupLocked.js +2 -2
  239. package/dist/extensions/healthie/webhooks/formAnswerGroupLocked.js.map +1 -1
  240. package/dist/extensions/healthie/webhooks/formAnswerGroupSigned.js +2 -2
  241. package/dist/extensions/healthie/webhooks/formAnswerGroupSigned.js.map +1 -1
  242. package/dist/extensions/healthie/webhooks/goalCreated.js +3 -3
  243. package/dist/extensions/healthie/webhooks/goalCreated.js.map +1 -1
  244. package/dist/extensions/healthie/webhooks/goalUpdated.js +3 -3
  245. package/dist/extensions/healthie/webhooks/goalUpdated.js.map +1 -1
  246. package/dist/extensions/healthie/webhooks/labOrderCreated.js +2 -2
  247. package/dist/extensions/healthie/webhooks/labOrderCreated.js.map +1 -1
  248. package/dist/extensions/healthie/webhooks/labOrderUpdated.js +2 -2
  249. package/dist/extensions/healthie/webhooks/labOrderUpdated.js.map +1 -1
  250. package/dist/extensions/healthie/webhooks/messageCreated.js +7 -5
  251. package/dist/extensions/healthie/webhooks/messageCreated.js.map +1 -1
  252. package/dist/extensions/healthie/webhooks/messageDeleted.js +6 -4
  253. package/dist/extensions/healthie/webhooks/messageDeleted.js.map +1 -1
  254. package/dist/extensions/healthie/webhooks/metricEntryCreated.js +2 -2
  255. package/dist/extensions/healthie/webhooks/metricEntryCreated.js.map +1 -1
  256. package/dist/extensions/healthie/webhooks/metricEntryUpdated.js +2 -2
  257. package/dist/extensions/healthie/webhooks/metricEntryUpdated.js.map +1 -1
  258. package/dist/extensions/healthie/webhooks/requestedFormCompletionCreated.js +5 -3
  259. package/dist/extensions/healthie/webhooks/requestedFormCompletionCreated.js.map +1 -1
  260. package/dist/extensions/healthie/webhooks/requestedFormCompletionUpdated.js +5 -3
  261. package/dist/extensions/healthie/webhooks/requestedFormCompletionUpdated.js.map +1 -1
  262. package/dist/extensions/healthie/webhooks/taskCreated.js +2 -2
  263. package/dist/extensions/healthie/webhooks/taskCreated.js.map +1 -1
  264. package/dist/extensions/healthie/webhooks/taskUpdated.js +3 -3
  265. package/dist/extensions/healthie/webhooks/taskUpdated.js.map +1 -1
  266. package/dist/extensions/healthie/webhooks/webhooks.test.js +4 -4
  267. package/dist/extensions/healthie/webhooks/webhooks.test.js.map +1 -1
  268. package/dist/extensions/stripe/actions/embeddedCheckout/config/fields.d.ts +1 -1
  269. package/package.json +7 -3
  270. package/dist/extensions/healthie/lib/sdk/codegen.d.ts +0 -3
  271. package/dist/extensions/healthie/lib/sdk/codegen.js.map +0 -1
  272. package/dist/extensions/healthie/lib/sdk/createSdk.js.map +0 -1
  273. package/dist/extensions/healthie/lib/sdk/errors.js.map +0 -1
  274. package/dist/extensions/healthie/lib/sdk/generated/sdk.js.map +0 -1
  275. package/dist/extensions/healthie/lib/sdk/graphqlClient.js.map +0 -1
  276. package/dist/extensions/healthie/lib/sdk/graphqlClient.test.js.map +0 -1
  277. /package/dist/extensions/healthie/{lib/sdk/graphqlClient.test.d.ts → actions/createGoal/createGoal.test.d.ts} +0 -0
  278. /package/dist/extensions/healthie/lib/sdk/{errors.d.ts → graphql-codegen/errors.d.ts} +0 -0
  279. /package/dist/extensions/healthie/lib/sdk/{errors.js → graphql-codegen/errors.js} +0 -0
  280. /package/dist/extensions/healthie/lib/sdk/{graphqlClient.test.js → graphql-codegen/graphqlClient.test.js} +0 -0
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GenqlError = void 0;
4
+ // @ts-nocheck
5
+ class GenqlError extends Error {
6
+ constructor(errors, data) {
7
+ let message = Array.isArray(errors)
8
+ ? errors.map((x) => (x === null || x === void 0 ? void 0 : x.message) || '').join('\n')
9
+ : '';
10
+ if (!message) {
11
+ message = 'GraphQL error';
12
+ }
13
+ super(message);
14
+ this.errors = [];
15
+ this.errors = errors;
16
+ this.data = data;
17
+ }
18
+ }
19
+ exports.GenqlError = GenqlError;
20
+ //# sourceMappingURL=error.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error.js","sourceRoot":"","sources":["../../../../../../../../extensions/healthie/lib/sdk/genql/generated/runtime/error.ts"],"names":[],"mappings":";;;AAAA,cAAc;AACd,MAAa,UAAW,SAAQ,KAAK;IAMjC,YAAY,MAAa,EAAE,IAAS;QAChC,IAAI,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC;YAC/B,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAA,CAAC,aAAD,CAAC,uBAAD,CAAC,CAAE,OAAO,KAAI,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;YAChD,CAAC,CAAC,EAAE,CAAA;QACR,IAAI,CAAC,OAAO,EAAE;YACV,OAAO,GAAG,eAAe,CAAA;SAC5B;QACD,KAAK,CAAC,OAAO,CAAC,CAAA;QAZlB,WAAM,GAAwB,EAAE,CAAA;QAa5B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;QACpB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAA;IACpB,CAAC;CACJ;AAjBD,gCAiBC"}
@@ -0,0 +1,10 @@
1
+ import type { ClientOptions } from './createClient';
2
+ import type { GraphqlOperation } from './generateGraphqlOperation';
3
+ export interface Fetcher {
4
+ (gql: GraphqlOperation): Promise<any>;
5
+ }
6
+ export type BatchOptions = {
7
+ batchInterval?: number;
8
+ maxBatchSize?: number;
9
+ };
10
+ export declare const createFetcher: ({ url, headers, fetcher, fetch: _fetch, batch, ...rest }: ClientOptions) => Fetcher;
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createFetcher = void 0;
4
+ // @ts-nocheck
5
+ const batcher_1 = require("./batcher");
6
+ const error_1 = require("./error");
7
+ const DEFAULT_BATCH_OPTIONS = {
8
+ maxBatchSize: 10,
9
+ batchInterval: 40,
10
+ };
11
+ const createFetcher = ({ url, headers = {}, fetcher, fetch: _fetch, batch = false, ...rest }) => {
12
+ if (!url && !fetcher) {
13
+ throw new Error('url or fetcher is required');
14
+ }
15
+ fetcher = fetcher || (async (body) => {
16
+ let headersObject = typeof headers == 'function' ? await headers() : headers;
17
+ headersObject = headersObject || {};
18
+ if (typeof fetch === 'undefined' && !_fetch) {
19
+ throw new Error('Global `fetch` function is not available, pass a fetch polyfill to Genql `createClient`');
20
+ }
21
+ let fetchImpl = _fetch || fetch;
22
+ const res = await fetchImpl(url, {
23
+ headers: {
24
+ 'Content-Type': 'application/json',
25
+ ...headersObject,
26
+ },
27
+ method: 'POST',
28
+ body: JSON.stringify(body),
29
+ ...rest,
30
+ });
31
+ if (!res.ok) {
32
+ throw new Error(`${res.statusText}: ${await res.text()}`);
33
+ }
34
+ const json = await res.json();
35
+ return json;
36
+ });
37
+ if (!batch) {
38
+ return async (body) => {
39
+ var _a;
40
+ const json = await fetcher(body);
41
+ if (Array.isArray(json)) {
42
+ return json.map((json) => {
43
+ var _a;
44
+ if ((_a = json === null || json === void 0 ? void 0 : json.errors) === null || _a === void 0 ? void 0 : _a.length) {
45
+ throw new error_1.GenqlError(json.errors || [], json.data);
46
+ }
47
+ return json.data;
48
+ });
49
+ }
50
+ else {
51
+ if ((_a = json === null || json === void 0 ? void 0 : json.errors) === null || _a === void 0 ? void 0 : _a.length) {
52
+ throw new error_1.GenqlError(json.errors || [], json.data);
53
+ }
54
+ return json.data;
55
+ }
56
+ };
57
+ }
58
+ const batcher = new batcher_1.QueryBatcher(async (batchedQuery) => {
59
+ // console.log(batchedQuery) // [{ query: 'query{user{age}}', variables: {} }, ...]
60
+ const json = await fetcher(batchedQuery);
61
+ return json;
62
+ }, batch === true ? DEFAULT_BATCH_OPTIONS : batch);
63
+ return async ({ query, variables }) => {
64
+ const json = await batcher.fetch(query, variables);
65
+ if (json === null || json === void 0 ? void 0 : json.data) {
66
+ return json.data;
67
+ }
68
+ throw new Error('Genql batch fetcher returned unexpected result ' + JSON.stringify(json));
69
+ };
70
+ };
71
+ exports.createFetcher = createFetcher;
72
+ //# sourceMappingURL=fetcher.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetcher.js","sourceRoot":"","sources":["../../../../../../../../extensions/healthie/lib/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C,KAAK,CAAC,KAAK,EAAE,SAAS,CAAC,CAAA;QAClD,IAAI,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,IAAI,EAAE;YACZ,OAAO,IAAI,CAAC,IAAI,CAAA;SACnB;QACD,MAAM,IAAI,KAAK,CACX,iDAAiD,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAC3E,CAAA;IACL,CAAC,CAAA;AACL,CAAC,CAAA;AA3EY,QAAA,aAAa,iBA2EzB"}
@@ -0,0 +1,30 @@
1
+ import type { LinkedField, LinkedType } from './types';
2
+ export interface Args {
3
+ [arg: string]: any | undefined;
4
+ }
5
+ export interface Fields {
6
+ [field: string]: Request;
7
+ }
8
+ export type Request = boolean | number | Fields;
9
+ export interface Variables {
10
+ [name: string]: {
11
+ value: any;
12
+ typing: [LinkedType, string];
13
+ };
14
+ }
15
+ export interface Context {
16
+ root: LinkedType;
17
+ varCounter: number;
18
+ variables: Variables;
19
+ fragmentCounter: number;
20
+ fragments: string[];
21
+ }
22
+ export interface GraphqlOperation {
23
+ query: string;
24
+ variables?: {
25
+ [name: string]: any;
26
+ };
27
+ operationName?: string;
28
+ }
29
+ export declare const generateGraphqlOperation: (operation: 'query' | 'mutation' | 'subscription', root: LinkedType, fields?: Fields) => GraphqlOperation;
30
+ export declare const getFieldFromPath: (root: LinkedType | undefined, path: string[]) => LinkedField;
@@ -0,0 +1,134 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getFieldFromPath = exports.generateGraphqlOperation = void 0;
4
+ const parseRequest = (request, ctx, path) => {
5
+ if (typeof request === 'object' && '__args' in request) {
6
+ const args = request.__args;
7
+ let fields = { ...request };
8
+ delete fields.__args;
9
+ const argNames = Object.keys(args);
10
+ if (argNames.length === 0) {
11
+ return parseRequest(fields, ctx, path);
12
+ }
13
+ const field = (0, exports.getFieldFromPath)(ctx.root, path);
14
+ const argStrings = argNames.map((argName) => {
15
+ ctx.varCounter++;
16
+ const varName = `v${ctx.varCounter}`;
17
+ const typing = field.args && field.args[argName]; // typeMap used here, .args
18
+ if (!typing) {
19
+ throw new Error(`no typing defined for argument \`${argName}\` in path \`${path.join('.')}\``);
20
+ }
21
+ ctx.variables[varName] = {
22
+ value: args[argName],
23
+ typing,
24
+ };
25
+ return `${argName}:$${varName}`;
26
+ });
27
+ return `(${argStrings})${parseRequest(fields, ctx, path)}`;
28
+ }
29
+ else if (typeof request === 'object' && Object.keys(request).length > 0) {
30
+ const fields = request;
31
+ const fieldNames = Object.keys(fields).filter((k) => Boolean(fields[k]));
32
+ if (fieldNames.length === 0) {
33
+ throw new Error(`field selection should not be empty: ${path.join('.')}`);
34
+ }
35
+ const type = path.length > 0 ? (0, exports.getFieldFromPath)(ctx.root, path).type : ctx.root;
36
+ const scalarFields = type.scalar;
37
+ let scalarFieldsFragment;
38
+ if (fieldNames.includes('__scalar')) {
39
+ const falsyFieldNames = new Set(Object.keys(fields).filter((k) => !Boolean(fields[k])));
40
+ if (scalarFields === null || scalarFields === void 0 ? void 0 : scalarFields.length) {
41
+ ctx.fragmentCounter++;
42
+ scalarFieldsFragment = `f${ctx.fragmentCounter}`;
43
+ ctx.fragments.push(`fragment ${scalarFieldsFragment} on ${type.name}{${scalarFields
44
+ .filter((f) => !falsyFieldNames.has(f))
45
+ .join(',')}}`);
46
+ }
47
+ }
48
+ const fieldsSelection = fieldNames
49
+ .filter((f) => !['__scalar', '__name'].includes(f))
50
+ .map((f) => {
51
+ const parsed = parseRequest(fields[f], ctx, [...path, f]);
52
+ if (f.startsWith('on_')) {
53
+ ctx.fragmentCounter++;
54
+ const implementationFragment = `f${ctx.fragmentCounter}`;
55
+ const typeMatch = f.match(/^on_(.+)/);
56
+ if (!typeMatch || !typeMatch[1])
57
+ throw new Error('match failed');
58
+ ctx.fragments.push(`fragment ${implementationFragment} on ${typeMatch[1]}${parsed}`);
59
+ return `...${implementationFragment}`;
60
+ }
61
+ else {
62
+ return `${f}${parsed}`;
63
+ }
64
+ })
65
+ .concat(scalarFieldsFragment ? [`...${scalarFieldsFragment}`] : [])
66
+ .join(',');
67
+ return `{${fieldsSelection}}`;
68
+ }
69
+ else {
70
+ return '';
71
+ }
72
+ };
73
+ const generateGraphqlOperation = (operation, root, fields) => {
74
+ const ctx = {
75
+ root: root,
76
+ varCounter: 0,
77
+ variables: {},
78
+ fragmentCounter: 0,
79
+ fragments: [],
80
+ };
81
+ const result = parseRequest(fields, ctx, []);
82
+ const varNames = Object.keys(ctx.variables);
83
+ const varsString = varNames.length > 0
84
+ ? `(${varNames.map((v) => {
85
+ const variableType = ctx.variables[v].typing[1];
86
+ return `$${v}:${variableType}`;
87
+ })})`
88
+ : '';
89
+ const operationName = (fields === null || fields === void 0 ? void 0 : fields.__name) || '';
90
+ return {
91
+ query: [
92
+ `${operation} ${operationName}${varsString}${result}`,
93
+ ...ctx.fragments,
94
+ ].join(','),
95
+ variables: Object.keys(ctx.variables).reduce((r, v) => {
96
+ r[v] = ctx.variables[v].value;
97
+ return r;
98
+ }, {}),
99
+ ...(operationName ? { operationName: operationName.toString() } : {}),
100
+ };
101
+ };
102
+ exports.generateGraphqlOperation = generateGraphqlOperation;
103
+ const getFieldFromPath = (root, path) => {
104
+ let current;
105
+ if (!root)
106
+ throw new Error('root type is not provided');
107
+ if (path.length === 0)
108
+ throw new Error(`path is empty`);
109
+ path.forEach((f) => {
110
+ const type = current ? current.type : root;
111
+ if (!type.fields)
112
+ throw new Error(`type \`${type.name}\` does not have fields`);
113
+ const possibleTypes = Object.keys(type.fields)
114
+ .filter((i) => i.startsWith('on_'))
115
+ .reduce((types, fieldName) => {
116
+ const field = type.fields && type.fields[fieldName];
117
+ if (field)
118
+ types.push(field.type);
119
+ return types;
120
+ }, [type]);
121
+ let field = null;
122
+ possibleTypes.forEach((type) => {
123
+ const found = type.fields && type.fields[f];
124
+ if (found)
125
+ field = found;
126
+ });
127
+ if (!field)
128
+ throw new Error(`type \`${type.name}\` does not have a field \`${f}\``);
129
+ current = field;
130
+ });
131
+ return current;
132
+ };
133
+ exports.getFieldFromPath = getFieldFromPath;
134
+ //# sourceMappingURL=generateGraphqlOperation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generateGraphqlOperation.js","sourceRoot":"","sources":["../../../../../../../../extensions/healthie/lib/sdk/genql/generated/runtime/generateGraphqlOperation.ts"],"names":[],"mappings":";;;AAkCA,MAAM,YAAY,GAAG,CACjB,OAA4B,EAC5B,GAAY,EACZ,IAAc,EACR,EAAE;IACR,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,QAAQ,IAAI,OAAO,EAAE;QACpD,MAAM,IAAI,GAAQ,OAAO,CAAC,MAAM,CAAA;QAChC,IAAI,MAAM,GAAwB,EAAE,GAAG,OAAO,EAAE,CAAA;QAChD,OAAO,MAAM,CAAC,MAAM,CAAA;QACpB,MAAM,QAAQ,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QAElC,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE;YACvB,OAAO,YAAY,CAAC,MAAM,EAAE,GAAG,EAAE,IAAI,CAAC,CAAA;SACzC;QAED,MAAM,KAAK,GAAG,IAAA,wBAAgB,EAAC,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,CAAA;QAE9C,MAAM,UAAU,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE;YACxC,GAAG,CAAC,UAAU,EAAE,CAAA;YAChB,MAAM,OAAO,GAAG,IAAI,GAAG,CAAC,UAAU,EAAE,CAAA;YAEpC,MAAM,MAAM,GAAG,KAAK,CAAC,IAAI,IAAI,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA,CAAC,2BAA2B;YAE5E,IAAI,CAAC,MAAM,EAAE;gBACT,MAAM,IAAI,KAAK,CACX,oCAAoC,OAAO,gBAAgB,IAAI,CAAC,IAAI,CAChE,GAAG,CACN,IAAI,CACR,CAAA;aACJ;YAED,GAAG,CAAC,SAAS,CAAC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AC,MAAM,IAAI,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAA;YACnD,IAAI,KAAK;gBAAE,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;YACjC,OAAO,KAAK,CAAA;QAChB,CAAC,EACD,CAAC,IAAI,CAAC,CACT,CAAA;QAEL,IAAI,KAAK,GAAuB,IAAI,CAAA;QAEpC,aAAa,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;YAC3B,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAA;YAC3C,IAAI,KAAK;gBAAE,KAAK,GAAG,KAAK,CAAA;QAC5B,CAAC,CAAC,CAAA;QAEF,IAAI,CAAC,KAAK;YACN,MAAM,IAAI,KAAK,CACX,UAAU,IAAI,CAAC,IAAI,8BAA8B,CAAC,IAAI,CACzD,CAAA;QAEL,OAAO,GAAG,KAAK,CAAA;IACnB,CAAC,CAAC,CAAA;IAEF,OAAO,OAAsB,CAAA;AACjC,CAAC,CAAA;AA3CY,QAAA,gBAAgB,oBA2C5B"}
@@ -0,0 +1,11 @@
1
+ export { createClient } from './createClient';
2
+ export type { ClientOptions } from './createClient';
3
+ export type { FieldsSelection } from './typeSelection';
4
+ export { generateGraphqlOperation } from './generateGraphqlOperation';
5
+ export type { GraphqlOperation } from './generateGraphqlOperation';
6
+ export { linkTypeMap } from './linkTypeMap';
7
+ export { createFetcher } from './fetcher';
8
+ export { GenqlError } from './error';
9
+ export declare const everything: {
10
+ __scalar: boolean;
11
+ };
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.everything = exports.GenqlError = exports.createFetcher = exports.linkTypeMap = exports.generateGraphqlOperation = exports.createClient = void 0;
4
+ // @ts-nocheck
5
+ var createClient_1 = require("./createClient");
6
+ Object.defineProperty(exports, "createClient", { enumerable: true, get: function () { return createClient_1.createClient; } });
7
+ var generateGraphqlOperation_1 = require("./generateGraphqlOperation");
8
+ Object.defineProperty(exports, "generateGraphqlOperation", { enumerable: true, get: function () { return generateGraphqlOperation_1.generateGraphqlOperation; } });
9
+ var linkTypeMap_1 = require("./linkTypeMap");
10
+ Object.defineProperty(exports, "linkTypeMap", { enumerable: true, get: function () { return linkTypeMap_1.linkTypeMap; } });
11
+ // export { Observable } from 'zen-observable-ts'
12
+ var fetcher_1 = require("./fetcher");
13
+ Object.defineProperty(exports, "createFetcher", { enumerable: true, get: function () { return fetcher_1.createFetcher; } });
14
+ var error_1 = require("./error");
15
+ Object.defineProperty(exports, "GenqlError", { enumerable: true, get: function () { return error_1.GenqlError; } });
16
+ exports.everything = {
17
+ __scalar: true,
18
+ };
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../extensions/healthie/lib/sdk/genql/generated/runtime/index.ts"],"names":[],"mappings":";;;AAAA,cAAc;AACd,+CAA6C;AAApC,4GAAA,YAAY,OAAA;AAGrB,uEAAqE;AAA5D,oIAAA,wBAAwB,OAAA;AAEjC,6CAA2C;AAAlC,0GAAA,WAAW,OAAA;AACpB,iDAAiD;AACjD,qCAAyC;AAAhC,wGAAA,aAAa,OAAA;AACtB,iCAAoC;AAA3B,mGAAA,UAAU,OAAA;AACN,QAAA,UAAU,GAAG;IACtB,QAAQ,EAAE,IAAI;CACjB,CAAA"}
@@ -0,0 +1,9 @@
1
+ import type { CompressedTypeMap, LinkedArgMap, LinkedTypeMap } from './types';
2
+ export interface PartialLinkedFieldMap {
3
+ [field: string]: {
4
+ type: string;
5
+ args?: LinkedArgMap;
6
+ };
7
+ }
8
+ export declare const linkTypeMap: (typeMap: CompressedTypeMap<number>) => LinkedTypeMap;
9
+ export declare const resolveConcreteTypes: (linkedTypeMap: LinkedTypeMap) => LinkedTypeMap;
@@ -0,0 +1,102 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.resolveConcreteTypes = exports.linkTypeMap = void 0;
4
+ const linkTypeMap = (typeMap) => {
5
+ const indexToName = Object.assign({}, ...Object.keys(typeMap.types).map((k, i) => ({ [i]: k })));
6
+ let intermediaryTypeMap = Object.assign({}, ...Object.keys(typeMap.types || {}).map((k) => {
7
+ const type = typeMap.types[k];
8
+ const fields = type || {};
9
+ return {
10
+ [k]: {
11
+ name: k,
12
+ // type scalar properties
13
+ scalar: Object.keys(fields).filter((f) => {
14
+ var _a;
15
+ const [type] = fields[f] || [];
16
+ const isScalar = type && typeMap.scalars.includes(type);
17
+ if (!isScalar) {
18
+ return false;
19
+ }
20
+ const args = (_a = fields[f]) === null || _a === void 0 ? void 0 : _a[1];
21
+ const argTypes = Object.values(args || {})
22
+ .map((x) => x === null || x === void 0 ? void 0 : x[1])
23
+ .filter(Boolean);
24
+ const hasRequiredArgs = argTypes.some((str) => str && str.endsWith('!'));
25
+ if (hasRequiredArgs) {
26
+ return false;
27
+ }
28
+ return true;
29
+ }),
30
+ // fields with corresponding `type` and `args`
31
+ fields: Object.assign({}, ...Object.keys(fields).map((f) => {
32
+ const [typeIndex, args] = fields[f] || [];
33
+ if (typeIndex == null) {
34
+ return {};
35
+ }
36
+ return {
37
+ [f]: {
38
+ // replace index with type name
39
+ type: indexToName[typeIndex],
40
+ args: Object.assign({}, ...Object.keys(args || {}).map((k) => {
41
+ // if argTypeString == argTypeName, argTypeString is missing, need to readd it
42
+ if (!args || !args[k]) {
43
+ return;
44
+ }
45
+ const [argTypeName, argTypeString,] = args[k];
46
+ return {
47
+ [k]: [
48
+ indexToName[argTypeName],
49
+ argTypeString ||
50
+ indexToName[argTypeName],
51
+ ],
52
+ };
53
+ })),
54
+ },
55
+ };
56
+ })),
57
+ },
58
+ };
59
+ }));
60
+ const res = (0, exports.resolveConcreteTypes)(intermediaryTypeMap);
61
+ return res;
62
+ };
63
+ exports.linkTypeMap = linkTypeMap;
64
+ // replace typename with concrete type
65
+ const resolveConcreteTypes = (linkedTypeMap) => {
66
+ Object.keys(linkedTypeMap).forEach((typeNameFromKey) => {
67
+ const type = linkedTypeMap[typeNameFromKey];
68
+ // type.name = typeNameFromKey
69
+ if (!type.fields) {
70
+ return;
71
+ }
72
+ const fields = type.fields;
73
+ Object.keys(fields).forEach((f) => {
74
+ const field = fields[f];
75
+ if (field.args) {
76
+ const args = field.args;
77
+ Object.keys(args).forEach((key) => {
78
+ const arg = args[key];
79
+ if (arg) {
80
+ const [typeName] = arg;
81
+ if (typeof typeName === 'string') {
82
+ if (!linkedTypeMap[typeName]) {
83
+ linkedTypeMap[typeName] = { name: typeName };
84
+ }
85
+ arg[0] = linkedTypeMap[typeName];
86
+ }
87
+ }
88
+ });
89
+ }
90
+ const typeName = field.type;
91
+ if (typeof typeName === 'string') {
92
+ if (!linkedTypeMap[typeName]) {
93
+ linkedTypeMap[typeName] = { name: typeName };
94
+ }
95
+ field.type = linkedTypeMap[typeName];
96
+ }
97
+ });
98
+ });
99
+ return linkedTypeMap;
100
+ };
101
+ exports.resolveConcreteTypes = resolveConcreteTypes;
102
+ //# sourceMappingURL=linkTypeMap.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"linkTypeMap.js","sourceRoot":"","sources":["../../../../../../../../extensions/healthie/lib/sdk/genql/generated/runtime/linkTypeMap.ts"],"names":[],"mappings":";;;AAiBO,MAAM,WAAW,GAAG,CACvB,OAAkC,EACrB,EAAE;IACf,MAAM,WAAW,GAA2B,MAAM,CAAC,MAAM,CACrD,EAAE,EACF,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAC5D,CAAA;IAED,IAAI,mBAAmB,GAAG,MAAM,CAAC,MAAM,CACnC,EAAE,EACF,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,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AACxB,CAAC,CAAA;AA7CY,QAAA,oBAAoB,wBA6ChC"}
@@ -0,0 +1,28 @@
1
+ export type FieldsSelection<SRC extends Anify<DST> | undefined, DST> = {
2
+ scalar: SRC;
3
+ union: Handle__isUnion<SRC, DST>;
4
+ object: HandleObject<SRC, DST>;
5
+ array: SRC extends Nil ? never : SRC extends Array<infer T | null> ? Array<FieldsSelection<T, DST>> : never;
6
+ __scalar: Handle__scalar<SRC, DST>;
7
+ never: never;
8
+ }[DST extends Nil ? 'never' : DST extends false | 0 ? 'never' : SRC extends Scalar ? 'scalar' : SRC extends any[] ? 'array' : SRC extends {
9
+ __isUnion?: any;
10
+ } ? 'union' : DST extends {
11
+ __scalar?: any;
12
+ } ? '__scalar' : DST extends {} ? 'object' : 'never'];
13
+ type HandleObject<SRC extends Anify<DST>, DST> = DST extends boolean ? SRC : SRC extends Nil ? never : Pick<{
14
+ [Key in keyof SRC]: Key extends keyof DST ? FieldsSelection<SRC[Key], NonNullable<DST[Key]>> : SRC[Key];
15
+ }, Exclude<keyof DST, FieldsToRemove>>;
16
+ type Handle__scalar<SRC extends Anify<DST>, DST> = SRC extends Nil ? never : Pick<{
17
+ [Key in keyof SRC]: Key extends keyof DST ? FieldsSelection<SRC[Key], DST[Key]> : SRC[Key];
18
+ }, {
19
+ [Key in keyof SRC]: SRC[Key] extends Nil ? never : Key extends FieldsToRemove ? never : SRC[Key] extends Scalar ? Key : Key extends keyof DST ? Key : never;
20
+ }[keyof SRC]>;
21
+ type Handle__isUnion<SRC extends Anify<DST>, DST> = SRC extends Nil ? never : Omit<SRC, FieldsToRemove>;
22
+ type Scalar = string | number | Date | boolean | null | undefined;
23
+ type Anify<T> = {
24
+ [P in keyof T]?: any;
25
+ };
26
+ type FieldsToRemove = '__isUnion' | '__scalar' | '__name' | '__args';
27
+ type Nil = undefined | null;
28
+ export {};
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ // @ts-nocheck
3
+ //////////////////////////////////////////////////
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ //# sourceMappingURL=typeSelection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typeSelection.js","sourceRoot":"","sources":["../../../../../../../../extensions/healthie/lib/sdk/genql/generated/runtime/typeSelection.ts"],"names":[],"mappings":";AAAA,cAAc;AACd,kDAAkD"}
@@ -0,0 +1,55 @@
1
+ export interface ExecutionResult<TData = {
2
+ [key: string]: any;
3
+ }> {
4
+ errors?: Array<Error>;
5
+ data?: TData | null;
6
+ }
7
+ export interface ArgMap<keyType = number> {
8
+ [arg: string]: [keyType, string] | [keyType] | undefined;
9
+ }
10
+ export type CompressedField<keyType = number> = [
11
+ type: keyType,
12
+ args?: ArgMap<keyType>
13
+ ];
14
+ export interface CompressedFieldMap<keyType = number> {
15
+ [field: string]: CompressedField<keyType> | undefined;
16
+ }
17
+ export type CompressedType<keyType = number> = CompressedFieldMap<keyType>;
18
+ export interface CompressedTypeMap<keyType = number> {
19
+ scalars: Array<keyType>;
20
+ types: {
21
+ [type: string]: CompressedType<keyType> | undefined;
22
+ };
23
+ }
24
+ export type Field<keyType = number> = {
25
+ type: keyType;
26
+ args?: ArgMap<keyType>;
27
+ };
28
+ export interface FieldMap<keyType = number> {
29
+ [field: string]: Field<keyType> | undefined;
30
+ }
31
+ export type Type<keyType = number> = FieldMap<keyType>;
32
+ export interface TypeMap<keyType = number> {
33
+ scalars: Array<keyType>;
34
+ types: {
35
+ [type: string]: Type<keyType> | undefined;
36
+ };
37
+ }
38
+ export interface LinkedArgMap {
39
+ [arg: string]: [LinkedType, string] | undefined;
40
+ }
41
+ export interface LinkedField {
42
+ type: LinkedType;
43
+ args?: LinkedArgMap;
44
+ }
45
+ export interface LinkedFieldMap {
46
+ [field: string]: LinkedField | undefined;
47
+ }
48
+ export interface LinkedType {
49
+ name: string;
50
+ fields?: LinkedFieldMap;
51
+ scalar?: string[];
52
+ }
53
+ export interface LinkedTypeMap {
54
+ [type: string]: LinkedType | undefined;
55
+ }
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // @ts-nocheck
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../../../extensions/healthie/lib/sdk/genql/generated/runtime/types.ts"],"names":[],"mappings":";AAAA,cAAc"}