@awell-health/awell-extensions 1.1.42 → 1.1.43

Sign up to get free protection for your applications and to get access to all the features.
Files changed (142) hide show
  1. package/dist/extensions/elation/actions/updatePatient.js +1 -0
  2. package/dist/extensions/elation/actions/updatePatient.js.map +1 -1
  3. package/dist/extensions/markdown.json +0 -4
  4. package/package.json +2 -2
  5. package/dist/extensions/wellinks-public/actions/checkFlourishCustomer/checkFlourishCustomer.d.ts +0 -11
  6. package/dist/extensions/wellinks-public/actions/checkFlourishCustomer/checkFlourishCustomer.js +0 -39
  7. package/dist/extensions/wellinks-public/actions/checkFlourishCustomer/checkFlourishCustomer.js.map +0 -1
  8. package/dist/extensions/wellinks-public/actions/checkFlourishCustomer/checkFlourishCustomer.test.d.ts +0 -1
  9. package/dist/extensions/wellinks-public/actions/checkFlourishCustomer/checkFlourishCustomer.test.js +0 -85
  10. package/dist/extensions/wellinks-public/actions/checkFlourishCustomer/checkFlourishCustomer.test.js.map +0 -1
  11. package/dist/extensions/wellinks-public/actions/checkFlourishCustomer/config/fields.d.ts +0 -18
  12. package/dist/extensions/wellinks-public/actions/checkFlourishCustomer/config/fields.js +0 -18
  13. package/dist/extensions/wellinks-public/actions/checkFlourishCustomer/config/fields.js.map +0 -1
  14. package/dist/extensions/wellinks-public/actions/checkFlourishCustomer/config/index.d.ts +0 -2
  15. package/dist/extensions/wellinks-public/actions/checkFlourishCustomer/config/index.js +0 -9
  16. package/dist/extensions/wellinks-public/actions/checkFlourishCustomer/config/index.js.map +0 -1
  17. package/dist/extensions/wellinks-public/actions/checkFlourishCustomer/config/settings.d.ts +0 -35
  18. package/dist/extensions/wellinks-public/actions/checkFlourishCustomer/config/settings.js +0 -17
  19. package/dist/extensions/wellinks-public/actions/checkFlourishCustomer/config/settings.js.map +0 -1
  20. package/dist/extensions/wellinks-public/actions/checkForChat/checkForChat.d.ts +0 -33
  21. package/dist/extensions/wellinks-public/actions/checkForChat/checkForChat.js +0 -129
  22. package/dist/extensions/wellinks-public/actions/checkForChat/checkForChat.js.map +0 -1
  23. package/dist/extensions/wellinks-public/actions/checkForChat/checkForChat.test.d.ts +0 -1
  24. package/dist/extensions/wellinks-public/actions/checkForChat/checkForChat.test.js +0 -154
  25. package/dist/extensions/wellinks-public/actions/checkForChat/checkForChat.test.js.map +0 -1
  26. package/dist/extensions/wellinks-public/actions/checkForCheckInOverride/checkForCheckInOverride.d.ts +0 -26
  27. package/dist/extensions/wellinks-public/actions/checkForCheckInOverride/checkForCheckInOverride.js +0 -139
  28. package/dist/extensions/wellinks-public/actions/checkForCheckInOverride/checkForCheckInOverride.js.map +0 -1
  29. package/dist/extensions/wellinks-public/actions/checkForCheckInOverride/checkForCheckInOverride.test.d.ts +0 -1
  30. package/dist/extensions/wellinks-public/actions/checkForCheckInOverride/checkForCheckInOverride.test.js +0 -185
  31. package/dist/extensions/wellinks-public/actions/checkForCheckInOverride/checkForCheckInOverride.test.js.map +0 -1
  32. package/dist/extensions/wellinks-public/actions/checkForOverride/checkForOverride.d.ts +0 -23
  33. package/dist/extensions/wellinks-public/actions/checkForOverride/checkForOverride.js +0 -153
  34. package/dist/extensions/wellinks-public/actions/checkForOverride/checkForOverride.js.map +0 -1
  35. package/dist/extensions/wellinks-public/actions/checkForOverride/checkForOverride.test.d.ts +0 -1
  36. package/dist/extensions/wellinks-public/actions/checkForOverride/checkForOverride.test.js +0 -184
  37. package/dist/extensions/wellinks-public/actions/checkForOverride/checkForOverride.test.js.map +0 -1
  38. package/dist/extensions/wellinks-public/actions/checkForScheduledAppointment/checkForScheduledAppointment.d.ts +0 -26
  39. package/dist/extensions/wellinks-public/actions/checkForScheduledAppointment/checkForScheduledAppointment.js +0 -118
  40. package/dist/extensions/wellinks-public/actions/checkForScheduledAppointment/checkForScheduledAppointment.js.map +0 -1
  41. package/dist/extensions/wellinks-public/actions/checkForScheduledAppointment/checkForScheduledAppointment.test.d.ts +0 -1
  42. package/dist/extensions/wellinks-public/actions/checkForScheduledAppointment/checkForScheduledAppointment.test.js +0 -119
  43. package/dist/extensions/wellinks-public/actions/checkForScheduledAppointment/checkForScheduledAppointment.test.js.map +0 -1
  44. package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/config/fields.d.ts +0 -82
  45. package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/config/fields.js +0 -78
  46. package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/config/fields.js.map +0 -1
  47. package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/config/index.d.ts +0 -1
  48. package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/config/index.js +0 -6
  49. package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/config/index.js.map +0 -1
  50. package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/createChartingNoteAdvanced-fail.test.d.ts +0 -1
  51. package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/createChartingNoteAdvanced-fail.test.js +0 -152
  52. package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/createChartingNoteAdvanced-fail.test.js.map +0 -1
  53. package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/createChartingNoteAdvanced.d.ts +0 -4
  54. package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/createChartingNoteAdvanced.js +0 -86
  55. package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/createChartingNoteAdvanced.js.map +0 -1
  56. package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/createChartingNoteAdvanced.test.d.ts +0 -1
  57. package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/createChartingNoteAdvanced.test.js +0 -42
  58. package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/createChartingNoteAdvanced.test.js.map +0 -1
  59. package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/index.d.ts +0 -1
  60. package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/index.js +0 -6
  61. package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/index.js.map +0 -1
  62. package/dist/extensions/wellinks-public/actions/createFlourishCustomer/config/fields.d.ts +0 -58
  63. package/dist/extensions/wellinks-public/actions/createFlourishCustomer/config/fields.js +0 -56
  64. package/dist/extensions/wellinks-public/actions/createFlourishCustomer/config/fields.js.map +0 -1
  65. package/dist/extensions/wellinks-public/actions/createFlourishCustomer/config/index.d.ts +0 -2
  66. package/dist/extensions/wellinks-public/actions/createFlourishCustomer/config/index.js +0 -9
  67. package/dist/extensions/wellinks-public/actions/createFlourishCustomer/config/index.js.map +0 -1
  68. package/dist/extensions/wellinks-public/actions/createFlourishCustomer/config/settings.d.ts +0 -35
  69. package/dist/extensions/wellinks-public/actions/createFlourishCustomer/config/settings.js +0 -17
  70. package/dist/extensions/wellinks-public/actions/createFlourishCustomer/config/settings.js.map +0 -1
  71. package/dist/extensions/wellinks-public/actions/createFlourishCustomer/createFlourishCustomer.d.ts +0 -11
  72. package/dist/extensions/wellinks-public/actions/createFlourishCustomer/createFlourishCustomer.js +0 -56
  73. package/dist/extensions/wellinks-public/actions/createFlourishCustomer/createFlourishCustomer.js.map +0 -1
  74. package/dist/extensions/wellinks-public/actions/createFlourishCustomer/createFlourishCustomer.test.d.ts +0 -1
  75. package/dist/extensions/wellinks-public/actions/createFlourishCustomer/createFlourishCustomer.test.js +0 -53
  76. package/dist/extensions/wellinks-public/actions/createFlourishCustomer/createFlourishCustomer.test.js.map +0 -1
  77. package/dist/extensions/wellinks-public/actions/index.d.ts +0 -967
  78. package/dist/extensions/wellinks-public/actions/index.js +0 -24
  79. package/dist/extensions/wellinks-public/actions/index.js.map +0 -1
  80. package/dist/extensions/wellinks-public/actions/insertMemberListEvent/config/fields.d.ts +0 -78
  81. package/dist/extensions/wellinks-public/actions/insertMemberListEvent/config/fields.js +0 -66
  82. package/dist/extensions/wellinks-public/actions/insertMemberListEvent/config/fields.js.map +0 -1
  83. package/dist/extensions/wellinks-public/actions/insertMemberListEvent/config/index.d.ts +0 -2
  84. package/dist/extensions/wellinks-public/actions/insertMemberListEvent/config/index.js +0 -9
  85. package/dist/extensions/wellinks-public/actions/insertMemberListEvent/config/index.js.map +0 -1
  86. package/dist/extensions/wellinks-public/actions/insertMemberListEvent/config/settings.d.ts +0 -38
  87. package/dist/extensions/wellinks-public/actions/insertMemberListEvent/config/settings.js +0 -11
  88. package/dist/extensions/wellinks-public/actions/insertMemberListEvent/config/settings.js.map +0 -1
  89. package/dist/extensions/wellinks-public/actions/insertMemberListEvent/insertMemberListEvent.d.ts +0 -11
  90. package/dist/extensions/wellinks-public/actions/insertMemberListEvent/insertMemberListEvent.js +0 -75
  91. package/dist/extensions/wellinks-public/actions/insertMemberListEvent/insertMemberListEvent.js.map +0 -1
  92. package/dist/extensions/wellinks-public/actions/insertMemberListEvent/insertMemberListEvent.test.d.ts +0 -1
  93. package/dist/extensions/wellinks-public/actions/insertMemberListEvent/insertMemberListEvent.test.js +0 -133
  94. package/dist/extensions/wellinks-public/actions/insertMemberListEvent/insertMemberListEvent.test.js.map +0 -1
  95. package/dist/extensions/wellinks-public/actions/submitPamSurvey/config/fields.d.ts +0 -188
  96. package/dist/extensions/wellinks-public/actions/submitPamSurvey/config/fields.js +0 -160
  97. package/dist/extensions/wellinks-public/actions/submitPamSurvey/config/fields.js.map +0 -1
  98. package/dist/extensions/wellinks-public/actions/submitPamSurvey/config/index.d.ts +0 -2
  99. package/dist/extensions/wellinks-public/actions/submitPamSurvey/config/index.js +0 -9
  100. package/dist/extensions/wellinks-public/actions/submitPamSurvey/config/index.js.map +0 -1
  101. package/dist/extensions/wellinks-public/actions/submitPamSurvey/config/settings.d.ts +0 -35
  102. package/dist/extensions/wellinks-public/actions/submitPamSurvey/config/settings.js +0 -17
  103. package/dist/extensions/wellinks-public/actions/submitPamSurvey/config/settings.js.map +0 -1
  104. package/dist/extensions/wellinks-public/actions/submitPamSurvey/submitPamSurvey.d.ts +0 -19
  105. package/dist/extensions/wellinks-public/actions/submitPamSurvey/submitPamSurvey.js +0 -66
  106. package/dist/extensions/wellinks-public/actions/submitPamSurvey/submitPamSurvey.js.map +0 -1
  107. package/dist/extensions/wellinks-public/actions/submitPamSurvey/submitPamSurvey.test.d.ts +0 -1
  108. package/dist/extensions/wellinks-public/actions/submitPamSurvey/submitPamSurvey.test.js +0 -125
  109. package/dist/extensions/wellinks-public/actions/submitPamSurvey/submitPamSurvey.test.js.map +0 -1
  110. package/dist/extensions/wellinks-public/api/clients/wellinksClient.d.ts +0 -16
  111. package/dist/extensions/wellinks-public/api/clients/wellinksClient.js +0 -40
  112. package/dist/extensions/wellinks-public/api/clients/wellinksClient.js.map +0 -1
  113. package/dist/extensions/wellinks-public/api/clients/wellinksFlourishClient.d.ts +0 -14
  114. package/dist/extensions/wellinks-public/api/clients/wellinksFlourishClient.js +0 -201
  115. package/dist/extensions/wellinks-public/api/clients/wellinksFlourishClient.js.map +0 -1
  116. package/dist/extensions/wellinks-public/api/clients/wellinksGraphqlClient.d.ts +0 -3
  117. package/dist/extensions/wellinks-public/api/clients/wellinksGraphqlClient.js +0 -23
  118. package/dist/extensions/wellinks-public/api/clients/wellinksGraphqlClient.js.map +0 -1
  119. package/dist/extensions/wellinks-public/api/test/wellinksFlourishClient.test.d.ts +0 -1
  120. package/dist/extensions/wellinks-public/api/test/wellinksFlourishClient.test.js +0 -192
  121. package/dist/extensions/wellinks-public/api/test/wellinksFlourishClient.test.js.map +0 -1
  122. package/dist/extensions/wellinks-public/codegen.d.ts +0 -3
  123. package/dist/extensions/wellinks-public/codegen.js +0 -21
  124. package/dist/extensions/wellinks-public/codegen.js.map +0 -1
  125. package/dist/extensions/wellinks-public/config/settings.d.ts +0 -107
  126. package/dist/extensions/wellinks-public/config/settings.js +0 -89
  127. package/dist/extensions/wellinks-public/config/settings.js.map +0 -1
  128. package/dist/extensions/wellinks-public/config/types.d.ts +0 -5
  129. package/dist/extensions/wellinks-public/config/types.js +0 -3
  130. package/dist/extensions/wellinks-public/config/types.js.map +0 -1
  131. package/dist/extensions/wellinks-public/gql/wellinksSdk.d.ts +0 -24110
  132. package/dist/extensions/wellinks-public/gql/wellinksSdk.js +0 -635
  133. package/dist/extensions/wellinks-public/gql/wellinksSdk.js.map +0 -1
  134. package/dist/extensions/wellinks-public/graphql/mutations.d.ts +0 -1
  135. package/dist/extensions/wellinks-public/graphql/mutations.js +0 -17
  136. package/dist/extensions/wellinks-public/graphql/mutations.js.map +0 -1
  137. package/dist/extensions/wellinks-public/graphql/queries.d.ts +0 -5
  138. package/dist/extensions/wellinks-public/graphql/queries.js +0 -66
  139. package/dist/extensions/wellinks-public/graphql/queries.js.map +0 -1
  140. package/dist/extensions/wellinks-public/index.d.ts +0 -2
  141. package/dist/extensions/wellinks-public/index.js +0 -20
  142. package/dist/extensions/wellinks-public/index.js.map +0 -1
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.updatePatient = void 0;
4
+ /* eslint-disable @typescript-eslint/naming-convention */
4
5
  const extensions_core_1 = require("@awell-health/extensions-core");
5
6
  const extensions_core_2 = require("@awell-health/extensions-core");
6
7
  const client_1 = require("../client");
@@ -1 +1 @@
1
- {"version":3,"file":"updatePatient.js","sourceRoot":"","sources":["../../../../extensions/elation/actions/updatePatient.ts"],"names":[],"mappings":";;;AAEA,mEAMsC;AACtC,mEAAwD;AAExD,sCAAyC;AAGzC,2DAA+D;AAC/D,mCAAuC;AAEvC,MAAM,MAAM,GAAG;IACb,SAAS,EAAE;QACT,EAAE,EAAE,WAAW;QACf,KAAK,EAAE,YAAY;QACnB,WAAW,EAAE,kCAAkC;QAC/C,IAAI,EAAE,2BAAS,CAAC,OAAO;QACvB,QAAQ,EAAE,IAAI;KACf;IACD,SAAS,EAAE;QACT,EAAE,EAAE,WAAW;QACf,KAAK,EAAE,YAAY;QACnB,WAAW,EAAE,EAAE;QACf,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,KAAK;KAChB;IACD,QAAQ,EAAE;QACR,EAAE,EAAE,UAAU;QACd,KAAK,EAAE,WAAW;QAClB,W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MAAM,KAAK,UAAU,IAAI,EAAE,eAAe,EAAE,OAAO,EAAE,CAAC;iBAC3D;aACF,CAAC;SACH,CAAC,CAAA;QAEF,MAAM,EAAE,GAAG,iCAAe,CAAC,KAAK,CAAC,SAAS,CAAC,CAAA;QAE3C;;;;YAII;QACJ,MAAM,oBAAoB,GAAG,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,CACzD,CAAC,GAA4B,EAAE,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;YAC7C,IAAI,CAAC,IAAA,cAAK,EAAC,KAAK,CAAC,IAAI,CAAC,IAAA,gBAAO,EAAC,KAAK,CAAC,EAAE;gBACpC,GAAG,CAAC,GAAG,CAAC,GAAG,KAAK,CAAA;aACjB;YACD,OAAO,GAAG,CAAA;QACZ,CAAC,EACD,EAAE,CACH,CAAA;QAED,MAAM,GAAG,GAAG,IAAA,sBAAa,EAAC,OAAO,CAAC,QAAQ,CAAC,CAAA;QAC3C,MAAM,GAAG,CAAC,aAAa,CAAC,EAAE,EAAE,oBAAoB,CAAC,CAAA;QACjD,MAAM,UAAU,EAAE,CAAA;IACpB,CAAC;CACF,CAAA"}
1
+ {"version":3,"file":"updatePatient.js","sourceRoot":"","sources":["../../../../extensions/elation/actions/updatePatient.ts"],"names":[],"mappings":";;;AAAA,yDAAyD;AACzD,mEAMsC;AACtC,mEAAwD;AAExD,sCAAyC;AACzC,2DAA+D;AAC/D,mCAAuC;AAEvC,MAAM,MAAM,GAAG;IACb,SAAS,EAAE;QACT,EAAE,EAAE,WAAW;QACf,KAAK,EAAE,YAAY;QACnB,WAAW,EAAE,kCAAkC;QAC/C,IAAI,EAAE,2BAAS,CAAC,OAAO;QACvB,QAAQ,EAAE,IAAI;KACf;IACD,SAAS,EAAE;QACT,EAAE,EAAE,WAAW;QACf,KAAK,EAAE,YAAY;QACnB,WAAW,EAAE,EAAE;QACf,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,KA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,cAAK,EAAC,MAAM,CAAC,IAAI;gBACpB,cAAc,EAAE;oBACd,MAAM;oBACN,GAAG,CAAC,MAAM,KAAK,UAAU,IAAI,EAAE,eAAe,EAAE,OAAO,EAAE,CAAC;iBAC3D;aACF,CAAC;SACH,CAAC,CAAA;QAEF,MAAM,EAAE,GAAG,iCAAe,CAAC,KAAK,CAAC,SAAS,CAAC,CAAA;QAE3C;;;;YAII;QACJ,MAAM,oBAAoB,GAAG,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,CACzD,CAAC,GAA4B,EAAE,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;YAC7C,IAAI,CAAC,IAAA,cAAK,EAAC,KAAK,CAAC,IAAI,CAAC,IAAA,gBAAO,EAAC,KAAK,CAAC,EAAE;gBACpC,GAAG,CAAC,GAAG,CAAC,GAAG,KAAK,CAAA;aACjB;YACD,OAAO,GAAG,CAAA;QACZ,CAAC,EACD,EAAE,CACH,CAAA;QAED,MAAM,GAAG,GAAG,IAAA,sBAAa,EAAC,OAAO,CAAC,QAAQ,CAAC,CAAA;QAC3C,MAAM,GAAG,CAAC,aAAa,CAAC,EAAE,EAAE,oBAAoB,CAAC,CAAA;QACjD,MAAM,UAAU,EAAE,CAAA;IACpB,CAAC;CACF,CAAA"}
@@ -135,10 +135,6 @@
135
135
  "readme": "---\ntitle: Twilio\ndescription: Twilio is a customer engagement platform used by hundreds of thousands of businesses and more than ten million developers worldwide to build unique, personalized experiences for their customers.\n---\n# Twilio\n\nTwilio is a customer engagement platform used by hundreds of thousands of businesses and more than ten million developers worldwide to build unique, personalized experiences for their customers.\n\nThey are known for democratizing channels like voice, text, chat, video, and email through APIs, making it easy for every organization to build meaningful interactions with customers on the channels they prefer.\n\n## Extension settings\n\nIn order to set up this extension, you will need:\n\n1. A Twilio API key or auth token which can be found in the Twilio console.\n2. Your account SID which can be found in the Twilio console.\n3. A phone number to send the message from. This must be a Twilio phone number that you own.\n\n## Custom Actions\n\n### Send SMS\n\nSend an SMS with Twilio to a recipient of your liking.\n\n### Get messages\n\nGet a list of text messages matching the given criteria. Only the last 50 messages are returned.\n\n## Send SMS during working hours\n\nThis action allows for the scheduling of SMS messages to be sent within the \"daily operational hours\" of 9 AM to 5 PM. It ensures that text messages are dispatched at appropriate times during the day, avoiding early morning or late-night disturbances to recipients.\n\n**Here's how it works:**\n\n- If the action is activate during business hours (9 AM to 5 PM), the SMS is sent immediately.\n- If activated before 9 AM, the SMS is scheduled to be sent at 9 AM on the same day.\n- If activated after 5 PM, the SMS is scheduled to be sent at 9 AM the following day.\n\nThis setup ensures that all messages reach your respondents during reasonable daytime hours, enhancing the likelihood of a timely and considerate communication. It's important to mention that messages will still be dispatched over the weekend, but they will adhere to the \"business hours\" schedule of 9 AM to 5 PM.\n\nNote that scheduling messages with Twilio is only possible if you send text messages using a MessagingServiceSid.\n\n\n\n\n\n\n",
136
136
  "changelog": "# Twilio changelog\n\n## v2 2024-02-22\n\n1. Add capability to search for messages using all the allowed filters provided by Twilio API. Check here: https://www.twilio.com/docs/messaging/api/message-resource#read-multiple-message-resources\n\n## v2 2023-06-23\n\nFull description: https://github.com/awell-health/awell-extensions/issues/157\n\n1. \"Send SMS\" action\n 1. Change label from \"Send SMS\" to \"Send SMS (with from number)\"\n 2. Throw error when \"From\" number in both settings and in fields is not provided\n2. Add new action \"Send SMS (with Messaging Service)\"\n\n## v2\n\nCompared to v1 (pre-beta release), the extension only has one custom action \"Send SMS\" instead of two. The Custom Action allows for:\n\n1. Sending a text message to a recipient (phone number) stored in a data point, including patient profile data points.\n2. Sending a text message to a fixed recipient (phone number).\n"
137
137
  },
138
- "wellinks-public": {
139
- "readme": "---\ntitle: Wellinks\ndescription: The purpose of this extension is to keep application logic out of the Pathways and Tracks. Some actions require interactions with the Healthie API, hence the need for the API URL and Key in the settings.\n---\n# Wellinks Extension\n\nThe purpose of this extension is to keep application logic out of the Pathways and Tracks. Some actions require interactions with the Healthie API, hence the need for the API URL and Key in the settings.\n\n## Extension Settings\n\nYou will need to provide the API URL and Key for the Wellinks Healthie instance.\n\n# Custom Actions\n\n## Check for Override\n\nChecks to see if the patient in Healthie has an active Override form.\n\n## Check for Scheduled Appointments\n\nChecks to see if the patient in Healthie has an appointment of a specific type scheduled in the future.\n\n## Check for Chat\n\nChecks that a Chat message (either to or from a patient and coach) has happened at least 24 hours after an appointment\n\n## Insert Member List Event\n\nAdds an Insert Member List Event to the Platform Database.\n\n## Check for Flourish Customer\n\nQueries Flourish to see if there is a record that has a matching ThirdPartyIdentifier. Returns True/False.\n\n## Submit a PAM Survey\n\nSubmits a PAM 13 Survey (completed in the Careflow) to Flourish and returns the PAM Score and Levl.",
140
- "changelog": "# Wellinks Changelog\n\n## May 18th, 2023\n\nAdded the checkForOverride action.\n\n## May 19th, 2023\n\nAdded the checkForScheduledAppointment action.\n\n## May 25th, 2023\n\nAdded datapoints for actions\n\n\n## July 6th, 2023\n\nAdded new action to unenroll user from Sendgrid.\n\n## July 16th, 2023\n\nAdded a new action to insert a Member Event List to the Platform DB. This requires setting the platform API URL and API Key values for the extension.\n\n## September 12th, 2023\n\nAdds a new action to check Flourish for a customer with a matching ThirdPartyIdentifier.\n\n## September 18th, 2023\n\nAdds a new action to submit a PAM13 survey to Flourish, returning a PAM Score, level, and whether or not the submission was a success.\n\n## September 19th, 2023\n\nAdds a new action to create a customer in Flourish, returning true or false based on whether or not the creation was a success.\n\n## October 12th, 2023\n\nUpdates InsertMemberListEvent action to have clearer error messages."
141
- },
142
138
  "westFax": {
143
139
  "readme": "---\ntitle: WestFax\ndescription: WestFax is a leading provider of HIPAA Compliant Cloud Fax / Fax to Email, Print to Fax\n---\n\n# WestFax\n\n[WestFax](https://westfax.com/) is a cloud-based faxing service that offers a variety of features, including:\n- Secure faxing: WestFax uses end-to-end encryption to protect your documents from unauthorized access.\n- HIPAA compliance: WestFax is HIPAA compliant, so you can be sure that your medical records are safe.\n- Integration with other applications: WestFax can be integrated with your existing email, CRM, and other applications.\n- Mobile app: You can send and receive faxes from your mobile device with the WestFax mobile app.\n- Paperless faxing: WestFax can store your faxes in the cloud, so you can access them from anywhere.\n\n## WestFax x Awell\n\nThis extension allows you to let a stakeholder (eg: a patient) send a fax as part of a care flow.\n\n## Extension settings\n\nIn order to set up this extension, **you will need to provide a WestFax Username and Password**. You will need as well to provide the ProductId when setting up the action - check how [here](https://westfax.com/how-to-get-productid/).\n\n\n",
144
140
  "changelog": "# WestFax changelog\n\n## February 2024\n\n- Initial action to send an fax to an email\n"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awell-health/awell-extensions",
3
- "version": "1.1.42",
3
+ "version": "1.1.43",
4
4
  "packageManager": "yarn@3.4.1",
5
5
  "main": "dist/src/index.js",
6
6
  "repository": {
@@ -16,7 +16,7 @@
16
16
  "build": "tsc && echo 'Built new dist/' && yarn copy-markdown",
17
17
  "copy-markdown": "node copy-markdown.js && echo 'Copied markdown files to dist/'",
18
18
  "start": "node dist/src/index.js",
19
- "lint": "eslint **/*.ts",
19
+ "lint": "eslint \"**/*.ts\"",
20
20
  "postinstall": "husky install",
21
21
  "test": "jest",
22
22
  "prepack": "yarn build",
@@ -1,11 +0,0 @@
1
- import { type Action } from '@awell-health/extensions-core';
2
- import { type settings } from '../../config/settings';
3
- import { fields } from './config';
4
- declare const dataPoints: {
5
- userExists: {
6
- key: string;
7
- valueType: "boolean";
8
- };
9
- };
10
- export declare const checkFlourishCustomer: Action<typeof fields, typeof settings, keyof typeof dataPoints>;
11
- export {};
@@ -1,39 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.checkFlourishCustomer = void 0;
4
- const extensions_core_1 = require("@awell-health/extensions-core");
5
- const wellinksFlourishClient_1 = require("../../api/clients/wellinksFlourishClient");
6
- const config_1 = require("./config");
7
- const zod_1 = require("zod");
8
- const dataPoints = {
9
- userExists: {
10
- key: 'userExists',
11
- valueType: 'boolean',
12
- },
13
- };
14
- exports.checkFlourishCustomer = {
15
- key: 'checkFlourishCustomer',
16
- category: extensions_core_1.Category.WORKFLOW,
17
- title: 'Check for Flourish Customer',
18
- description: 'Checks Flourish for a customer with the given identifier.',
19
- fields: config_1.fields,
20
- dataPoints,
21
- previewable: true,
22
- onActivityCreated: async (payload, onComplete, onError) => {
23
- const { fields: { identifier }, settings: { flourishApiKey, flourishApiUrl, flourishClientExtId }, } = (0, extensions_core_1.validate)({
24
- schema: zod_1.z.object({
25
- fields: config_1.FieldsValidationSchema,
26
- settings: config_1.SettingsValidationSchema,
27
- }),
28
- payload,
29
- });
30
- const client = new wellinksFlourishClient_1.WellinksFlourishClient(flourishApiUrl, flourishApiKey, flourishClientExtId);
31
- const result = await client.user.exists(identifier);
32
- await onComplete({
33
- data_points: {
34
- userExists: result.toString(),
35
- },
36
- });
37
- },
38
- };
39
- //# sourceMappingURL=checkFlourishCustomer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"checkFlourishCustomer.js","sourceRoot":"","sources":["../../../../../extensions/wellinks-public/actions/checkFlourishCustomer/checkFlourishCustomer.ts"],"names":[],"mappings":";;;AAAA,mEAKsC;AAEtC,qFAAiF;AACjF,qCAIiB;AACjB,6BAAuB;AAEvB,MAAM,UAAU,GAAG;IACjB,UAAU,EAAE;QACV,GAAG,EAAE,YAAY;QACjB,SAAS,EAAE,SAAS;KACrB;CAC4C,CAAA;AAElC,QAAA,qBAAqB,GAI9B;IACF,GAAG,EAAE,uBAAuB;IAC5B,QAAQ,EAAE,0BAAQ,CAAC,QAAQ;IAC3B,KAAK,EAAE,6BAA6B;IACpC,WAAW,EAAE,2DAA2D;IACxE,MAAM,EAAN,eAAM;IACN,UAAU;IACV,WAAW,EAAE,IAAI;IACjB,iBAAiB,EAAE,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAiB,EAAE;QACvE,MAAM,EACJ,MAAM,EAAE,EAAE,UAAU,EAAE,EACtB,QAAQ,EAAE,EAAE,cAAc,EAAE,cAAc,EAAE,mBAAmB,EAAE,GAClE,GAAG,IAAA,0BAAQ,EAAC;YACX,MAAM,EAAE,OAAC,CAAC,MAAM,CAAC;gBACf,MAAM,EAAE,+BAAsB;gBAC9B,QAAQ,EAAE,iCAAwB;aACnC,CAAC;YACF,OAAO;SACR,CAAC,CAAA;QAEF,MAAM,MAAM,GAAG,IAAI,+CAAsB,CACvC,cAAc,EACd,cAAc,EACd,mBAAmB,CACpB,CAAA;QAED,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,CAAA;QACnD,MAAM,UAAU,CAAC;YACf,WAAW,EAAE;gBACX,UAAU,EAAE,MAAM,CAAC,QAAQ,EAAE;aAC9B;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA"}
@@ -1,85 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tests_1 = require("../../../../src/tests");
4
- const wellinksFlourishClient_1 = require("../../api/clients/__mocks__/wellinksFlourishClient");
5
- const settings_1 = require("../../__mocks__/config/settings");
6
- const checkFlourishCustomer_1 = require("./checkFlourishCustomer");
7
- const zod_1 = require("zod");
8
- jest.mock('../../api/clients/wellinksFlourishClient', () => ({
9
- WellinksFlourishClient: wellinksFlourishClient_1.WellinksFlourishClient,
10
- }));
11
- describe('Check Flourish Customer', () => {
12
- const onComplete = jest.fn();
13
- const onError = jest.fn();
14
- beforeEach(() => {
15
- jest.clearAllMocks();
16
- });
17
- test('should call onComplete with a true DataPoint when there is a customer with the given identifier', async () => {
18
- const validPayload = (0, tests_1.generateTestPayload)({
19
- fields: {
20
- identifier: 'identifier',
21
- },
22
- settings: settings_1.mockSettings,
23
- });
24
- wellinksFlourishClient_1.WellinksFlourishClientMockImplementation.user.exists.mockImplementationOnce(() => {
25
- return true;
26
- });
27
- await checkFlourishCustomer_1.checkFlourishCustomer.onActivityCreated(validPayload, onComplete, onError);
28
- expect(onError).not.toBeCalled();
29
- expect(onComplete).toHaveBeenNthCalledWith(1, {
30
- data_points: {
31
- userExists: 'true',
32
- },
33
- });
34
- });
35
- test('should call onComplete with a false DataPoint when there is a customer with the given identifier', async () => {
36
- const validPayload = (0, tests_1.generateTestPayload)({
37
- fields: {
38
- identifier: 'identifier',
39
- },
40
- settings: settings_1.mockSettings,
41
- });
42
- wellinksFlourishClient_1.WellinksFlourishClientMockImplementation.user.exists.mockImplementationOnce(() => {
43
- return false;
44
- });
45
- await checkFlourishCustomer_1.checkFlourishCustomer.onActivityCreated(validPayload, onComplete, onError);
46
- expect(onError).not.toBeCalled();
47
- expect(onComplete).toHaveBeenNthCalledWith(1, {
48
- data_points: {
49
- userExists: 'false',
50
- },
51
- });
52
- });
53
- test('should call onError when the action is not given an identifier', async () => {
54
- const validPayload = (0, tests_1.generateTestPayload)({
55
- fields: {
56
- identifier: undefined,
57
- },
58
- settings: settings_1.mockSettings,
59
- });
60
- wellinksFlourishClient_1.WellinksFlourishClientMockImplementation.user.exists.mockImplementationOnce(() => {
61
- return true;
62
- });
63
- await expect(checkFlourishCustomer_1.checkFlourishCustomer.onActivityCreated(validPayload, onComplete, onError)).rejects.toThrow(zod_1.ZodError);
64
- expect(onComplete).not.toBeCalled();
65
- });
66
- test('should call onError when the Flourish Settings are not set', async () => {
67
- const validPayload = (0, tests_1.generateTestPayload)({
68
- fields: {
69
- identifier: 'identifier',
70
- },
71
- settings: {
72
- ...settings_1.mockSettings,
73
- flourishApiKey: undefined,
74
- flourishApiUrl: undefined,
75
- flourishClientExtId: undefined,
76
- },
77
- });
78
- wellinksFlourishClient_1.WellinksFlourishClientMockImplementation.user.exists.mockImplementationOnce(() => {
79
- return true;
80
- });
81
- await expect(checkFlourishCustomer_1.checkFlourishCustomer.onActivityCreated(validPayload, onComplete, onError)).rejects.toThrow(zod_1.ZodError);
82
- expect(onComplete).not.toBeCalled();
83
- });
84
- });
85
- //# sourceMappingURL=checkFlourishCustomer.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"checkFlourishCustomer.test.js","sourceRoot":"","sources":["../../../../../extensions/wellinks-public/actions/checkFlourishCustomer/checkFlourishCustomer.test.ts"],"names":[],"mappings":";;AAAA,iDAA2D;AAC3D,+FAG2D;AAC3D,8DAA8D;AAC9D,mEAA+D;AAC/D,6BAA8B;AAE9B,IAAI,CAAC,IAAI,CAAC,0CAA0C,EAAE,GAAG,EAAE,CAAC,CAAC;IAC3D,sBAAsB,EAAtB,+CAAsB;CACvB,CAAC,CAAC,CAAA;AAEH,QAAQ,CAAC,yBAAyB,EAAE,GAAG,EAAE;IACvC,MAAM,UAAU,GAAG,IAAI,CAAC,EAAE,EAAE,CAAA;IAC5B,MAAM,OAAO,GAAG,IAAI,CAAC,EAAE,EAAE,CAAA;IACzB,UAAU,CAAC,GAAG,EAAE;QACd,IAAI,CAAC,aAAa,EAAE,CAAA;IACtB,CAAC,CAAC,CAAA;IAEF,IAAI,CAAC,iGAAiG,EAAE,KAAK,IAAI,EAAE;QACjH,MAAM,YAAY,GAAG,IAAA,2BAAmB,EAAC;YACvC,MAAM,EAAE;gBACN,UAAU,EAAE,YAAY;aACzB;YACD,QAAQ,EAAE,uBAAY;SACvB,CAAC,CAAA;QACF,iEAAwC,CAAC,IAAI,CAAC,MAAM,CAAC,sBAAsB,CACzE,GAAG,EAAE;YACH,OAAO,IAAI,CAAA;QACb,CAAC,CACF,CAAA;QACD,MAAM,6CAAqB,CAAC,iBAAiB,CAC3C,YAAY,EACZ,UAAU,EACV,OAAO,CACR,CAAA;QAED,MAAM,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,UAAU,EAAE,CAAA;QAChC,MAAM,CAAC,UAAU,CAAC,CAAC,uBAAuB,CAAC,CAAC,EAAE;YAC5C,WAAW,EAAE;gBACX,UAAU,EAAE,MAAM;aACnB;SACF,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;IAEF,IAAI,CAAC,kGAAkG,EAAE,KAAK,IAAI,EAAE;QAClH,MAAM,YAAY,GAAG,IAAA,2BA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gBACf,cAAc,EAAE,SAAS;gBACzB,cAAc,EAAE,SAAS;gBACzB,mBAAmB,EAAE,SAAS;aAC/B;SACF,CAAC,CAAA;QACF,iEAAwC,CAAC,IAAI,CAAC,MAAM,CAAC,sBAAsB,CACzE,GAAG,EAAE;YACH,OAAO,IAAI,CAAA;QACb,CAAC,CACF,CAAA;QACD,MAAM,MAAM,CACV,6CAAqB,CAAC,iBAAiB,CAAC,YAAY,EAAE,UAAU,EAAE,OAAO,CAAC,CAC3E,CAAC,OAAO,CAAC,OAAO,CAAC,cAAQ,CAAC,CAAA;QAE3B,MAAM,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,UAAU,EAAE,CAAA;IACrC,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
@@ -1,18 +0,0 @@
1
- import { z } from 'zod';
2
- import { FieldType } from '@awell-health/extensions-core';
3
- export declare const fields: {
4
- identifier: {
5
- id: string;
6
- label: string;
7
- description: string;
8
- type: FieldType.STRING;
9
- required: true;
10
- };
11
- };
12
- export declare const FieldsValidationSchema: z.ZodObject<{
13
- identifier: z.ZodString;
14
- }, "strip", z.ZodTypeAny, {
15
- identifier: string;
16
- }, {
17
- identifier: string;
18
- }>;
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FieldsValidationSchema = exports.fields = void 0;
4
- const zod_1 = require("zod");
5
- const extensions_core_1 = require("@awell-health/extensions-core");
6
- exports.fields = {
7
- identifier: {
8
- id: 'identifier',
9
- label: 'Identifier',
10
- description: 'The identifier of the user to check Flourish for.',
11
- type: extensions_core_1.FieldType.STRING,
12
- required: true,
13
- },
14
- };
15
- exports.FieldsValidationSchema = zod_1.z.object({
16
- identifier: zod_1.z.string(),
17
- });
18
- //# sourceMappingURL=fields.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../../../extensions/wellinks-public/actions/checkFlourishCustomer/config/fields.ts"],"names":[],"mappings":";;;AAAA,6BAAwC;AACxC,mEAAqE;AAExD,QAAA,MAAM,GAAG;IACpB,UAAU,EAAE;QACV,EAAE,EAAE,YAAY;QAChB,KAAK,EAAE,YAAY;QACnB,WAAW,EAAE,mDAAmD;QAChE,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;CAC8B,CAAA;AAEpB,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE;CAC2B,CAAC,CAAA"}
@@ -1,2 +0,0 @@
1
- export { fields, FieldsValidationSchema } from './fields';
2
- export { SettingsValidationSchema } from './settings';
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SettingsValidationSchema = exports.FieldsValidationSchema = exports.fields = void 0;
4
- var fields_1 = require("./fields");
5
- Object.defineProperty(exports, "fields", { enumerable: true, get: function () { return fields_1.fields; } });
6
- Object.defineProperty(exports, "FieldsValidationSchema", { enumerable: true, get: function () { return fields_1.FieldsValidationSchema; } });
7
- var settings_1 = require("./settings");
8
- Object.defineProperty(exports, "SettingsValidationSchema", { enumerable: true, get: function () { return settings_1.SettingsValidationSchema; } });
9
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../extensions/wellinks-public/actions/checkFlourishCustomer/config/index.ts"],"names":[],"mappings":";;;AAAA,mCAAyD;AAAhD,gGAAA,MAAM,OAAA;AAAE,gHAAA,sBAAsB,OAAA;AACvC,uCAAqD;AAA5C,oHAAA,wBAAwB,OAAA"}
@@ -1,35 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const SettingsValidationSchema: z.ZodObject<{
3
- platformApiKey: z.ZodOptional<z.ZodString>;
4
- platformApiUrl: z.ZodOptional<z.ZodString>;
5
- apiUrl: z.ZodOptional<z.ZodString>;
6
- apiKey: z.ZodOptional<z.ZodString>;
7
- selectEventTypeQuestion: z.ZodOptional<z.ZodString>;
8
- startSendingRemindersQuestions: z.ZodOptional<z.ZodString>;
9
- memberEventFormId: z.ZodOptional<z.ZodString>;
10
- flourishApiKey: z.ZodString;
11
- flourishApiUrl: z.ZodString;
12
- flourishClientExtId: z.ZodString;
13
- }, "strip", z.ZodTypeAny, {
14
- flourishApiUrl: string;
15
- flourishApiKey: string;
16
- flourishClientExtId: string;
17
- apiUrl?: string | undefined;
18
- apiKey?: string | undefined;
19
- platformApiUrl?: string | undefined;
20
- platformApiKey?: string | undefined;
21
- selectEventTypeQuestion?: string | undefined;
22
- startSendingRemindersQuestions?: string | undefined;
23
- memberEventFormId?: string | undefined;
24
- }, {
25
- flourishApiUrl: string;
26
- flourishApiKey: string;
27
- flourishClientExtId: string;
28
- apiUrl?: string | undefined;
29
- apiKey?: string | undefined;
30
- platformApiUrl?: string | undefined;
31
- platformApiKey?: string | undefined;
32
- selectEventTypeQuestion?: string | undefined;
33
- startSendingRemindersQuestions?: string | undefined;
34
- memberEventFormId?: string | undefined;
35
- }>;
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SettingsValidationSchema = void 0;
4
- const zod_1 = require("zod");
5
- exports.SettingsValidationSchema = zod_1.z.object({
6
- platformApiKey: zod_1.z.string().optional(),
7
- platformApiUrl: zod_1.z.string().optional(),
8
- apiUrl: zod_1.z.string().optional(),
9
- apiKey: zod_1.z.string().optional(),
10
- selectEventTypeQuestion: zod_1.z.string().optional(),
11
- startSendingRemindersQuestions: zod_1.z.string().optional(),
12
- memberEventFormId: zod_1.z.string().optional(),
13
- flourishApiKey: zod_1.z.string(),
14
- flourishApiUrl: zod_1.z.string(),
15
- flourishClientExtId: zod_1.z.string(),
16
- });
17
- //# sourceMappingURL=settings.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"settings.js","sourceRoot":"","sources":["../../../../../../extensions/wellinks-public/actions/checkFlourishCustomer/config/settings.ts"],"names":[],"mappings":";;;AAAA,6BAAwC;AAE3B,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,uBAAuB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9C,8BAA8B,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrD,iBAAiB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACxC,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE;IAC1B,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE;IAC1B,mBAAmB,EAAE,OAAC,CAAC,MAAM,EAAE;CACoB,CAAC,CAAA"}
@@ -1,33 +0,0 @@
1
- import { FieldType, type Action } from '@awell-health/extensions-core';
2
- import { type settings } from '../../config/settings';
3
- declare const fields: {
4
- patientId: {
5
- id: string;
6
- label: string;
7
- description: string;
8
- type: FieldType.STRING;
9
- required: true;
10
- };
11
- coachId: {
12
- id: string;
13
- label: string;
14
- description: string;
15
- type: FieldType.STRING;
16
- required: true;
17
- };
18
- appointmentTime: {
19
- id: string;
20
- label: string;
21
- description: string;
22
- type: FieldType.DATE;
23
- required: true;
24
- };
25
- };
26
- declare const dataPoints: {
27
- messageSent: {
28
- key: string;
29
- valueType: "boolean";
30
- };
31
- };
32
- export declare const checkForChat: Action<typeof fields, typeof settings, keyof typeof dataPoints>;
33
- export {};
@@ -1,129 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.checkForChat = void 0;
4
- const extensions_core_1 = require("@awell-health/extensions-core");
5
- const extensions_core_2 = require("@awell-health/extensions-core");
6
- const wellinksSdk_1 = require("../../gql/wellinksSdk");
7
- const wellinksGraphqlClient_1 = require("../../api/clients/wellinksGraphqlClient");
8
- const lodash_1 = require("lodash");
9
- const fields = {
10
- patientId: {
11
- id: 'patientId',
12
- label: 'Patient ID',
13
- description: 'The ID of the patient to check chats for.',
14
- type: extensions_core_1.FieldType.STRING,
15
- required: true,
16
- },
17
- coachId: {
18
- id: 'coachId',
19
- label: 'Coach ID',
20
- description: 'The ID of the coach to check chats for.',
21
- type: extensions_core_1.FieldType.STRING,
22
- required: true,
23
- },
24
- appointmentTime: {
25
- id: 'appointmentTime',
26
- label: 'Appointment Time',
27
- description: 'The appointment time to check against',
28
- type: extensions_core_1.FieldType.DATE,
29
- required: true,
30
- },
31
- };
32
- const dataPoints = {
33
- messageSent: {
34
- key: 'messageSent',
35
- valueType: 'boolean',
36
- },
37
- };
38
- exports.checkForChat = {
39
- key: 'checkForChat',
40
- category: extensions_core_2.Category.SCHEDULING,
41
- title: 'Check for Messages after Appointment',
42
- description: 'Checks that a message has been sent 24 hours after the given Appointment',
43
- fields,
44
- dataPoints,
45
- previewable: true,
46
- onActivityCreated: async (payload, onComplete, onError) => {
47
- var _a, _b;
48
- const { fields, settings } = payload;
49
- const { patientId, coachId, appointmentTime } = fields;
50
- try {
51
- const client = (0, wellinksGraphqlClient_1.initialiseClient)(settings);
52
- if (!(0, lodash_1.isNil)(client)) {
53
- const sdk = (0, wellinksSdk_1.getSdk)(client);
54
- const { data } = await sdk.getConversationMemberships({
55
- client_id: patientId,
56
- });
57
- if (!(0, lodash_1.isNil)(data.conversationMemberships)) {
58
- const conversationMemberships = data.conversationMemberships.filter((conversation) => { var _a; return ((_a = conversation === null || conversation === void 0 ? void 0 : conversation.convo) === null || _a === void 0 ? void 0 : _a.dietitian_id) === coachId; });
59
- for (const conversation of conversationMemberships) {
60
- // check if dates are within 24 hours of each other
61
- if (areDatesMoreThanADayApart(new Date((_b = (_a = conversation === null || conversation === void 0 ? void 0 : conversation.convo) === null || _a === void 0 ? void 0 : _a.updated_at) !== null && _b !== void 0 ? _b : ''), new Date(appointmentTime !== null && appointmentTime !== void 0 ? appointmentTime : ''))) {
62
- await onComplete({
63
- data_points: {
64
- messageSent: 'true',
65
- },
66
- });
67
- return;
68
- }
69
- }
70
- await onComplete({
71
- data_points: {
72
- messageSent: 'false',
73
- },
74
- });
75
- }
76
- else {
77
- await onError({
78
- events: [
79
- {
80
- date: new Date().toISOString(),
81
- text: {
82
- en: 'conversationMemberships returned null or undefined',
83
- },
84
- error: {
85
- category: 'SERVER_ERROR',
86
- message: 'conversationMemberships returned null or undefined',
87
- },
88
- },
89
- ],
90
- });
91
- }
92
- }
93
- else {
94
- await onError({
95
- events: [
96
- {
97
- date: new Date().toISOString(),
98
- text: { en: 'API client requires an API url and API key' },
99
- error: {
100
- category: 'MISSING_SETTINGS',
101
- message: 'Missing api url or api key',
102
- },
103
- },
104
- ],
105
- });
106
- }
107
- }
108
- catch (err) {
109
- const error = err;
110
- await onError({
111
- events: [
112
- {
113
- date: new Date().toISOString(),
114
- text: { en: 'There was in error checking for a recent Chat' },
115
- error: {
116
- category: 'SERVER_ERROR',
117
- message: error.message,
118
- },
119
- },
120
- ],
121
- });
122
- }
123
- },
124
- };
125
- function areDatesMoreThanADayApart(date1, date2) {
126
- const oneDay = 1000 * 60 * 60 * 24;
127
- return date1.getTime() > date2.getTime() + oneDay;
128
- }
129
- //# sourceMappingURL=checkForChat.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"checkForChat.js","sourceRoot":"","sources":["../../../../../extensions/wellinks-public/actions/checkForChat/checkForChat.ts"],"names":[],"mappings":";;;AAAA,mEAKsC;AACtC,mEAAwD;AACxD,uDAA8C;AAC9C,mFAA0E;AAE1E,mCAA8B;AAE9B,MAAM,MAAM,GAAG;IACb,SAAS,EAAE;QACT,EAAE,EAAE,WAAW;QACf,KAAK,EAAE,YAAY;QACnB,WAAW,EAAE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