@awell-health/awell-extensions 2.0.196 → 2.0.197

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/dist/extensions/index.js +2 -0
  2. package/dist/extensions/index.js.map +1 -1
  3. package/dist/extensions/markdown.json +4 -0
  4. package/dist/extensions/text-em-all/actions/createCallBroadcast/__testdata__/CreateCallBroadcast.mock.d.ts +88 -0
  5. package/dist/extensions/text-em-all/actions/createCallBroadcast/__testdata__/CreateCallBroadcast.mock.js +92 -0
  6. package/dist/extensions/text-em-all/actions/createCallBroadcast/__testdata__/CreateCallBroadcast.mock.js.map +1 -0
  7. package/dist/extensions/text-em-all/actions/createCallBroadcast/config.d.ts +254 -0
  8. package/dist/extensions/text-em-all/actions/createCallBroadcast/config.js +166 -0
  9. package/dist/extensions/text-em-all/actions/createCallBroadcast/config.js.map +1 -0
  10. package/dist/extensions/text-em-all/actions/createCallBroadcast/createCallBroadcast.d.ts +4 -0
  11. package/dist/extensions/text-em-all/actions/createCallBroadcast/createCallBroadcast.js +55 -0
  12. package/dist/extensions/text-em-all/actions/createCallBroadcast/createCallBroadcast.js.map +1 -0
  13. package/dist/extensions/text-em-all/actions/createCallBroadcast/index.d.ts +1 -0
  14. package/dist/extensions/text-em-all/actions/createCallBroadcast/index.js +18 -0
  15. package/dist/extensions/text-em-all/actions/createCallBroadcast/index.js.map +1 -0
  16. package/dist/extensions/text-em-all/actions/createCallBroadcast/types.d.ts +2 -0
  17. package/dist/extensions/text-em-all/actions/createCallBroadcast/types.js +6 -0
  18. package/dist/extensions/text-em-all/actions/createCallBroadcast/types.js.map +1 -0
  19. package/dist/extensions/text-em-all/actions/createSMSBroadcast/__testdata__/CreateSMSBroadcast.mock.d.ts +55 -0
  20. package/dist/extensions/text-em-all/actions/createSMSBroadcast/__testdata__/CreateSMSBroadcast.mock.js +59 -0
  21. package/dist/extensions/text-em-all/actions/createSMSBroadcast/__testdata__/CreateSMSBroadcast.mock.js.map +1 -0
  22. package/dist/extensions/text-em-all/actions/createSMSBroadcast/config.d.ts +82 -0
  23. package/dist/extensions/text-em-all/actions/createSMSBroadcast/config.js +87 -0
  24. package/dist/extensions/text-em-all/actions/createSMSBroadcast/config.js.map +1 -0
  25. package/dist/extensions/text-em-all/actions/createSMSBroadcast/createSMSBroadcast.d.ts +4 -0
  26. package/dist/extensions/text-em-all/actions/createSMSBroadcast/createSMSBroadcast.js +49 -0
  27. package/dist/extensions/text-em-all/actions/createSMSBroadcast/createSMSBroadcast.js.map +1 -0
  28. package/dist/extensions/text-em-all/actions/createSMSBroadcast/index.d.ts +1 -0
  29. package/dist/extensions/text-em-all/actions/createSMSBroadcast/index.js +18 -0
  30. package/dist/extensions/text-em-all/actions/createSMSBroadcast/index.js.map +1 -0
  31. package/dist/extensions/text-em-all/actions/createSMSBroadcast/types.d.ts +2 -0
  32. package/dist/extensions/text-em-all/actions/createSMSBroadcast/types.js +6 -0
  33. package/dist/extensions/text-em-all/actions/createSMSBroadcast/types.js.map +1 -0
  34. package/dist/extensions/text-em-all/actions/index.d.ts +69 -0
  35. package/dist/extensions/text-em-all/actions/index.js +9 -0
  36. package/dist/extensions/text-em-all/actions/index.js.map +1 -0
  37. package/dist/extensions/text-em-all/actions/types.d.ts +152 -0
  38. package/dist/extensions/text-em-all/actions/types.js +60 -0
  39. package/dist/extensions/text-em-all/actions/types.js.map +1 -0
  40. package/dist/extensions/text-em-all/actions/utils/validateJsonField.d.ts +2 -0
  41. package/dist/extensions/text-em-all/actions/utils/validateJsonField.js +32 -0
  42. package/dist/extensions/text-em-all/actions/utils/validateJsonField.js.map +1 -0
  43. package/dist/extensions/text-em-all/index.d.ts +2 -0
  44. package/dist/extensions/text-em-all/index.js +21 -0
  45. package/dist/extensions/text-em-all/index.js.map +1 -0
  46. package/dist/extensions/text-em-all/lib/client.d.ts +17 -0
  47. package/dist/extensions/text-em-all/lib/client.js +64 -0
  48. package/dist/extensions/text-em-all/lib/client.js.map +1 -0
  49. package/dist/extensions/text-em-all/lib/index.d.ts +1 -0
  50. package/dist/extensions/text-em-all/lib/index.js +18 -0
  51. package/dist/extensions/text-em-all/lib/index.js.map +1 -0
  52. package/dist/extensions/text-em-all/settings.d.ts +48 -0
  53. package/dist/extensions/text-em-all/settings.js +41 -0
  54. package/dist/extensions/text-em-all/settings.js.map +1 -0
  55. package/dist/extensions/text-em-all/webhooks/broadcastStatusChange.d.ts +15 -0
  56. package/dist/extensions/text-em-all/webhooks/broadcastStatusChange.js +42 -0
  57. package/dist/extensions/text-em-all/webhooks/broadcastStatusChange.js.map +1 -0
  58. package/dist/extensions/text-em-all/webhooks/index.d.ts +1 -0
  59. package/dist/extensions/text-em-all/webhooks/index.js +6 -0
  60. package/dist/extensions/text-em-all/webhooks/index.js.map +1 -0
  61. package/dist/extensions/text-em-all/webhooks/types.d.ts +24 -0
  62. package/dist/extensions/text-em-all/webhooks/types.js +15 -0
  63. package/dist/extensions/text-em-all/webhooks/types.js.map +1 -0
  64. package/package.json +4 -1
@@ -76,6 +76,7 @@ const shelly_1 = require("./shelly");
76
76
  const stripe_1 = require("./stripe");
77
77
  const talkDesk_1 = require("./talkDesk");
78
78
  const textline_1 = require("./textline");
79
+ const text_em_all_1 = require("./text-em-all");
79
80
  const transform_1 = require("./transform");
80
81
  const twilio_1 = require("./twilio");
81
82
  const westFax_1 = require("./westFax");
@@ -126,6 +127,7 @@ exports.extensions = [
126
127
  stripe_1.stripe,
127
128
  talkDesk_1.TalkDesk,
128
129
  textline_1.TextLine,
130
+ text_em_all_1.TextEmAll,
129
131
  transform_1.Transform,
130
132
  twilio_1.Twilio,
131
133
  westFax_1.WestFax,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../extensions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iDAA6C;AAC7C,mCAA+B;AAC/B,6CAAyC;AACzC,mCAA+B;AAC/B,mCAA+B;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T,eAAM;IACN,iBAAO;IACP,mBAAQ;IACR,iBAAO;CACR,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../extensions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iDAA6C;AAC7C,mCAA+B;AAC/B,6CAAyC;AACzC,mCAA+B;AAC/B,mCAA+B;AAC/B,2CAAuC;AACvC,yCAAqC;AACrC,mDAA+C;AAC/C,qCAAiC;AACjC,6CAAyC;AACzC,yCAAqC;AACrC,+CAA2C;AAC3C,6CAAyC;AACzC,yCAAqC;AACrC,+CAA2C;AAC3C,uCAAmC;AACnC,iCAA6B;AAC7B,iDAA6C;AAC7C,uDAAkD;AAClD,yCAAqC;AACrC,2CAAuC;AACvC,yCAAqC;AACrC,+CAA0C;AAC1C,uCAAmC;AACnC,iEAA6D;AAC7D,uCAAmC;AACnC,yCAAqC;AACrC,2CAAuC;AACvC,uCAAmC;AACnC,iCAAsC;AACtC,uCAAmC;AACnC,+CAA2C;AAC3C,0CAA0C;AAC1C,+CAA2C;AAC3C,iCAA6B;AAC7B,yCAAqC;AACrC,6DAA+C;AAC/C,iCAA6B;AAC7B,qCAAiC;AACjC,qCAAiC;AACjC,yCAAqC;AACrC,yCAAqC;AACrC,+CAAyC;AACzC,2CAAuC;AACvC,qCAAiC;AACjC,uCAAmC;AACnC,yCAAqC;AACrC,uCAAmC;AAEnC,sDAAuC;AAG1B,QAAA,QAAQ,GAAa,IAAI,CAAA;AAEzB,QAAA,UAAU,GAAG;IACxB,aAAK;IACL,aAAK;IACL,2BAAY;IACZ,aAAK;IACL,uBAAU;IACV,qBAAS;IACT,mBAAQ;IACR,6BAAa;IACb,eAAM;IACN,uBAAU;IACV,mBAAQ;IACR,yBAAW;IACX,uBAAU;IACV,mBAAQ;IACR,yBAAW;IACX,iBAAO;IACP,WAAI;IACJ,2BAAY;IACZ,gCAAc;IACd,mBAAQ;IACR,qBAAS;IACT,mBAAQ;IACR,wBAAU;IACV,iBAAO;IACP,2CAAoB;IACpB,iBAAO;IACP,mBAAQ;IACR,qBAAS;IACT,iBAAO;IACP,oBAAa;IACb,yBAAW;IACX,iBAAO;IACP,aAAa;IACb,yBAAW;IACX,WAAI;IACJ,mBAAQ;IACR,6BAAQ;IACR,WAAI;IACJ,eAAM;IACN,eAAM;IACN,mBAAQ;IACR,mBAAQ;IACR,uBAAS;IACT,qBAAS;IACT,eAAM;IACN,iBAAO;IACP,mBAAQ;IACR,iBAAO;CACR,CAAA"}
@@ -163,6 +163,10 @@
163
163
  "readme": "---\ntitle: Talkdesk\ndescription: Talkdesk is a cloud-based customer experience and contact center software company. It provides a platform that enables businesses to set up and manage their customer service and support operations.\n---\n# TalkDesk\n\nTalkdesk is a cloud-based customer experience and contact center software company. It provides a platform that enables businesses to set up and manage their customer service and support operations. Talkdesk offers a range of features and tools to streamline and enhance communication between businesses and their customers.\n\n## Setup\n\nTo set up the extension, you'll need your Talkdesk account name along with a client ID and client secret. Please ensure that the credentials you provide are associated with the necessary permissions, or \"scopes,\" to run the extension:\n\n- flows-interactions:start\n\n## Custom Actions\n\n### Trigger flow\n\nEnables the initiation of a Talkdesk flow directly from an Awell careflow. This feature triggers an interaction using the most recent published version of a specific Studio flow. You'll need to supply the ID of the flow and the data (as a JSON object) that you want to input into the flow.\n\nImportant: Please note that Talkdesk sets a restriction of up to two API requests per second (rps) for each account using their Flows API.\n\n[Click here](https://studio.talkdesk.com/docs/sending-notifications-to-contacts-via-api-request) to learn more about triggering flows via the Talkdesk API and here to read the [API docs](https://docs.talkdesk.com/reference/flows-api-ref).\n",
164
164
  "changelog": "# TalkDesk changelog\n"
165
165
  },
166
+ "text-em-all": {
167
+ "readme": "---\ntitle: Text-Em-All\ndescription: Text-Em-All is a texting and automated calling service that enables organizations to communicate with patients.\n---\n\n# Text-Em-All\n\nText-Em-All is a texting and automated calling service that enables organizations to communicate with patients.\n\n## Supported Actions\n\n- **sendSMSBroadcast** - Schedule SMS message to a specified user\n- **sendCallBroadcast** - Schedule an Call message to a specified user\n\n## Webhooks\n\n# Broadcast Status Change\n\nTriggered when the status of a call or text broadcast changes to one of the following states:\n\n| Status | Description |\n|--------|-------------|\n| `created` | A broadcast has been created on your Call-Em-All account. It may be scheduled to run in the future and it may not have all the information set up to run yet. |\n| `ready` | The broadcast has all information necessary to run and is waiting for its start time. |\n| `broadcasting` | The broadcast started to send out phone calls or text messages. |\n| `completed` | The broadcast has finished sending out all phone calls or text messages. |\n| `paused` | The broadcast has been paused and no calls or texts are going out. |\n| `resumed` | A paused broadcast resumes. |\n| `canceled` | The broadcast was canceled. |\n| `expired` | The window that was set up for the broadcast by the user was insufficient to send out all the calls or texts. The broadcast has been expired and some of the calls and texts are not delivered. |\n\nWebhook includes:\n- Broadcast ID\n- Broadcast status\n\n## Setup\n\nThe Text-Em-All extension requires the following settings to be configured:\n\n| Setting name | Required | Description |\n|--------------|----------|-------------|\n| `customerKey` | Yes | Your Text-Em-All customer key |\n| `customerSecret` | Yes | Your Text-Em-All customer secret |\n| `token` | Yes | Your Text-Em-All token |\n| `baseUrl` | Yes | Your Text-Em-All base URL |\n\n# Find out more\n\nFor detailed information about setting up webhooks, notification formats, and additional event types, please visit the [Text-Em-All Webhooks documentation](https://dev.text-em-all.com/Webhooks#events).",
168
+ "changelog": "# Text-em-all changelog\n"
169
+ },
166
170
  "textline": {
167
171
  "readme": "---\ntitle: TextLine\ndescription: Textline's business texting software offers solutions for sales, marketing, customer service and beyond. Utilize the power of SMS to grow quickly.\n---\n\n# TextLine\n\nTextLine 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 TextLine API key or auth token which can be found in the TextLine console.\n2. Your account SID which can be found in the TextLine console.\n3. A phone number to send the message from. This must be a TextLine phone number that you own.\n\n## Custom Actions\n\n### Send SMS\n\nSend an SMS with TextLine to a recipient of your liking.\n\n### Get messages\n\nThis action retrieves received messages. One can apply the `phoneNumber` filter to this action to display only received messages from that `phoneNumber`.\nOnly the last 30 messages are returned.\n\n### Set Contact Consent\n\nFor HIPAA and Pro accounts setup with Contact Consent, this action can set contact's consent status. To do this, your account must have API import allowed and the user making the API request must have the \"Can manually set consent\" permission on for their role. You must then use the Contact's phone number and their consent status (true or false).\n\n#### Simple Use Case\n\n**Initiating a Conversation**: A user sends a message to \"Number A\", initiating a conversation.\n\n**Receiving a Response**: \"Number A\" responds to the message, contributing to the ongoing conversation.\n\n**Searching Messages & Applying Filters**: To focus on the responses from \"Number A\", `phoneNumber`` filter can be applied to only show received messages from \"Number A\" within the conversation. This allows users to easily review and manage responses from \"Number A\", without the clutter of other received messages.\n\n",
168
172
  "changelog": "# TextLine changelog\n\n## 2024-03-11\n\n1. Add option to set department ID when sending messages and when retrieving messages. Check official documentation here: https://textline.docs.apiary.io/#reference/conversations/phone-numbers/message-a-phone-number\n## 2024-03-5\n\n1. Add capability to set contact consent status (https://textline.docs.apiary.io/#reference/customers/set-contact-consent/set-contact-consent)\n2. Add several fixes and tweaks to improve current actions\n\n## 2024-02-26\n\n1. Add capability to search for messages using all the allowed filters provided by TextLine API.\n2. Add \"Send SMS\" action\n"
@@ -0,0 +1,88 @@
1
+ export declare const CreateCallBroadcastMockResponse: {
2
+ status: number;
3
+ statusText: string;
4
+ headers: {
5
+ Location: string;
6
+ };
7
+ data: {
8
+ Uri: string;
9
+ UriBroadcastDetails: string;
10
+ BroadcastID: number;
11
+ BroadcastName: string;
12
+ BroadcastType: string;
13
+ BroadcastStatus: string;
14
+ BroadcastStatusCategory: string;
15
+ CreatedDate: string;
16
+ StartDate: string;
17
+ CompletedDate: null;
18
+ CallerID: string;
19
+ CreditsUsed: null;
20
+ MaxCreditCost: number;
21
+ PhoneNumberCount: number;
22
+ TotalCompleted: number;
23
+ User: {
24
+ PinCode: null;
25
+ UserID: number;
26
+ UserName: null;
27
+ FirstName: null;
28
+ LastName: null;
29
+ Email: null;
30
+ Phone: null;
31
+ CallerID: null;
32
+ IsMasterUser: boolean;
33
+ AuthToken: null;
34
+ State: null;
35
+ Permissions: null;
36
+ };
37
+ TransferAndConnect: {
38
+ IsTransfer: boolean;
39
+ TransferLines: number;
40
+ TransferNumber: string;
41
+ TransferCreditsUsed: null;
42
+ };
43
+ Audio: {
44
+ Uri: string;
45
+ AudioID: string;
46
+ Name: null;
47
+ Description: null;
48
+ Favorite: null;
49
+ Shared: null;
50
+ Length: number;
51
+ MessageType: null;
52
+ ReadOnly: null;
53
+ Created: null;
54
+ LastUsed: null;
55
+ TextToSpeech: boolean;
56
+ };
57
+ AudioVM: {
58
+ Uri: string;
59
+ AudioID: string;
60
+ Name: null;
61
+ Description: null;
62
+ Favorite: null;
63
+ Shared: null;
64
+ Length: number;
65
+ MessageType: null;
66
+ ReadOnly: null;
67
+ Created: null;
68
+ LastUsed: null;
69
+ TextToSpeech: boolean;
70
+ };
71
+ RetryTimes: number;
72
+ CallThrottle: number;
73
+ LivePersonTotal: number;
74
+ AnsweringMachineTotal: number;
75
+ BusyNoAnswerTotal: number;
76
+ InvalidNumberTotal: number;
77
+ SurveyResponseTotal: number;
78
+ TransferTotal: number;
79
+ SurveyResponses: null;
80
+ MaxMessageLength: number;
81
+ MessageRecordingInstruction: null;
82
+ EstimatedDuration: number;
83
+ EstimatedCompletion: null;
84
+ ExcludedDaysIgnored: boolean;
85
+ CallingWindowIgnored: boolean;
86
+ NotEnoughTimeToComplete: boolean;
87
+ };
88
+ };
@@ -0,0 +1,92 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateCallBroadcastMockResponse = void 0;
4
+ exports.CreateCallBroadcastMockResponse = {
5
+ status: 200,
6
+ statusText: 'OK',
7
+ headers: {
8
+ Location: 'https://staging-rest.call-em-all.com/v1/broadcasts',
9
+ },
10
+ data: {
11
+ Uri: '/v1/broadcasts/10006607',
12
+ UriBroadcastDetails: '/v1/broadcasts/10006607/details',
13
+ BroadcastID: 10006607,
14
+ BroadcastName: 'Testing Alert System with Transfer Option',
15
+ BroadcastType: 'Announcement',
16
+ BroadcastStatus: 'AuthorizationApproved',
17
+ BroadcastStatusCategory: 'Scheduled',
18
+ CreatedDate: '2020-11-20 14:04:09-0600',
19
+ StartDate: '2020-11-20 14:04:08-0600',
20
+ CompletedDate: null,
21
+ CallerID: '2142960678',
22
+ CreditsUsed: null,
23
+ MaxCreditCost: 1,
24
+ PhoneNumberCount: 1,
25
+ TotalCompleted: 0,
26
+ User: {
27
+ PinCode: null,
28
+ UserID: 215790,
29
+ UserName: null,
30
+ FirstName: null,
31
+ LastName: null,
32
+ Email: null,
33
+ Phone: null,
34
+ CallerID: null,
35
+ IsMasterUser: false,
36
+ AuthToken: null,
37
+ State: null,
38
+ Permissions: null,
39
+ },
40
+ TransferAndConnect: {
41
+ IsTransfer: true,
42
+ TransferLines: 1,
43
+ TransferNumber: '2142960678',
44
+ TransferCreditsUsed: null,
45
+ },
46
+ Audio: {
47
+ Uri: '/v1/audio/ah2441',
48
+ AudioID: 'ah2441',
49
+ Name: null,
50
+ Description: null,
51
+ Favorite: null,
52
+ Shared: null,
53
+ Length: 10,
54
+ MessageType: null,
55
+ ReadOnly: null,
56
+ Created: null,
57
+ LastUsed: null,
58
+ TextToSpeech: false,
59
+ },
60
+ AudioVM: {
61
+ Uri: '/v1/audio/ah2442',
62
+ AudioID: 'ah2442',
63
+ Name: null,
64
+ Description: null,
65
+ Favorite: null,
66
+ Shared: null,
67
+ Length: 13,
68
+ MessageType: null,
69
+ ReadOnly: null,
70
+ Created: null,
71
+ LastUsed: null,
72
+ TextToSpeech: false,
73
+ },
74
+ RetryTimes: 1,
75
+ CallThrottle: 0,
76
+ LivePersonTotal: 0,
77
+ AnsweringMachineTotal: 0,
78
+ BusyNoAnswerTotal: 0,
79
+ InvalidNumberTotal: 0,
80
+ SurveyResponseTotal: 0,
81
+ TransferTotal: 0,
82
+ SurveyResponses: null,
83
+ MaxMessageLength: 30,
84
+ MessageRecordingInstruction: null,
85
+ EstimatedDuration: 0,
86
+ EstimatedCompletion: null,
87
+ ExcludedDaysIgnored: false,
88
+ CallingWindowIgnored: false,
89
+ NotEnoughTimeToComplete: false,
90
+ },
91
+ };
92
+ //# sourceMappingURL=CreateCallBroadcast.mock.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateCallBroadcast.mock.js","sourceRoot":"","sources":["../../../../../../extensions/text-em-all/actions/createCallBroadcast/__testdata__/CreateCallBroadcast.mock.ts"],"names":[],"mappings":";;;AAEa,QAAA,+BAA+B,GAAG;IAC7C,MAAM,EAAE,GAAG;IACX,UAAU,EAAE,IAAI;IAChB,OAAO,EAAE;QACP,QAAQ,EAAE,oDAAoD;KAC/D;IACD,IAAI,EAAE;QACJ,GAAG,EAAE,yBAAyB;QAC9B,mBAAmB,EAAE,iCAAiC;QACtD,WAAW,EAAE,QAAQ;QACrB,aAAa,EAAE,2CAA2C;QAC1D,aAAa,EAAE,cAAc;QAC7B,eAAe,EAAE,uBAAuB;QACxC,uBAAuB,EAAE,WAAW;QACpC,WAAW,EAAE,0BAA0B;QACvC,SAAS,EAAE,0BAA0B;QACrC,aAAa,EAAE,IAAI;QACnB,QAAQ,EAAE,YAAY;QACtB,WAAW,EAAE,IAAI;QACjB,aAAa,EAAE,CAAC;QAChB,gBAAgB,EAAE,CAAC;QACnB,cAAc,EAAE,CAAC;QACjB,IAAI,EAAE;YACJ,OAAO,EAAE,IAAI;YACb,MAAM,EAAE,MAAM;YACd,QAAQ,EAAE,IAAI;YACd,SAAS,EAAE,IAAI;YACf,QAAQ,EAAE,IAAI;YACd,KAAK,EAAE,IAAI;YACX,KAAK,EAAE,IAAI;YACX,QAAQ,EAAE,IAAI;YACd,YAAY,EAAE,KAAK;YACnB,SAAS,EAAE,IAAI;YACf,KAAK,EAAE,IAAI;YACX,WAAW,EAAE,IAAI;SA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Type, StringType } from '@awell-health/extensions-core';
3
+ export declare const fields: {
4
+ broadcastName: {
5
+ id: string;
6
+ label: string;
7
+ type: FieldType.STRING;
8
+ required: true;
9
+ description: string;
10
+ };
11
+ broadcastType: {
12
+ id: string;
13
+ label: string;
14
+ type: FieldType.STRING;
15
+ required: true;
16
+ description: string;
17
+ options: {
18
+ dropdownOptions: {
19
+ label: "Announcement" | "Survey";
20
+ value: "Announcement" | "Survey";
21
+ }[];
22
+ };
23
+ };
24
+ startDate: {
25
+ id: string;
26
+ label: string;
27
+ type: FieldType.STRING;
28
+ required: false;
29
+ description: string;
30
+ };
31
+ maxMessageLength: {
32
+ id: string;
33
+ label: string;
34
+ type: FieldType.NUMERIC;
35
+ required: false;
36
+ description: string;
37
+ };
38
+ callerID: {
39
+ id: string;
40
+ label: string;
41
+ type: FieldType.STRING;
42
+ required: false;
43
+ description: string;
44
+ };
45
+ phoneNumber: {
46
+ id: string;
47
+ label: string;
48
+ type: FieldType.STRING;
49
+ stringType: StringType.PHONE;
50
+ required: true;
51
+ description: string;
52
+ };
53
+ checkCallingWindow: {
54
+ id: string;
55
+ label: string;
56
+ type: FieldType.BOOLEAN;
57
+ required: false;
58
+ description: string;
59
+ };
60
+ continueOnNextDay: {
61
+ id: string;
62
+ label: string;
63
+ type: FieldType.BOOLEAN;
64
+ required: false;
65
+ description: string;
66
+ };
67
+ transferAndConnect: {
68
+ id: string;
69
+ label: string;
70
+ type: FieldType.JSON;
71
+ required: false;
72
+ description: string;
73
+ };
74
+ audio: {
75
+ id: string;
76
+ label: string;
77
+ type: FieldType.JSON;
78
+ required: false;
79
+ description: string;
80
+ };
81
+ audioVM: {
82
+ id: string;
83
+ label: string;
84
+ type: FieldType.JSON;
85
+ required: false;
86
+ description: string;
87
+ };
88
+ retryTimes: {
89
+ id: string;
90
+ label: string;
91
+ type: FieldType.NUMERIC;
92
+ required: false;
93
+ description: string;
94
+ };
95
+ callThrottle: {
96
+ id: string;
97
+ label: string;
98
+ type: FieldType.NUMERIC;
99
+ required: false;
100
+ description: string;
101
+ };
102
+ };
103
+ export declare const dataPoints: {
104
+ broadcastId: {
105
+ key: string;
106
+ valueType: "number";
107
+ };
108
+ broadcastStatus: {
109
+ key: string;
110
+ valueType: "string";
111
+ };
112
+ uriBroadcastDetails: {
113
+ key: string;
114
+ valueType: "string";
115
+ };
116
+ broadcastStatusCategory: {
117
+ key: string;
118
+ valueType: "string";
119
+ };
120
+ broadcastStartDate: {
121
+ key: string;
122
+ valueType: "string";
123
+ };
124
+ };
125
+ export declare const FieldsSchema: z.ZodObject<{
126
+ broadcastName: z.ZodString;
127
+ broadcastType: z.ZodEnum<["Announcement", "Survey"]>;
128
+ startDate: z.ZodEffects<z.ZodOptional<z.ZodEffects<z.ZodDate, string, Date>>, string | undefined, Date | undefined>;
129
+ maxMessageLength: z.ZodOptional<z.ZodNumber>;
130
+ callerID: z.ZodOptional<z.ZodString>;
131
+ phoneNumber: z.ZodEffects<z.ZodString, string, string>;
132
+ checkCallingWindow: z.ZodOptional<z.ZodBoolean>;
133
+ continueOnNextDay: z.ZodOptional<z.ZodBoolean>;
134
+ transferAndConnect: z.ZodEffects<z.ZodOptional<z.ZodString>, {
135
+ transferNumber: string;
136
+ transferMessage: string;
137
+ transferDigit: string;
138
+ transferIntroduction: string;
139
+ } | undefined, string | undefined>;
140
+ audio: z.ZodEffects<z.ZodOptional<z.ZodString>, {
141
+ Description: string;
142
+ Created: string;
143
+ Text: string;
144
+ Name: string;
145
+ Voice: {
146
+ Text: string;
147
+ Voice: "Ivy" | "Joanna" | "Kendra" | "Kimberly" | "Salli" | "Joey" | "Justin" | "Kevin" | "Matthew";
148
+ TextToSpeech: boolean;
149
+ };
150
+ TextToSpeech: boolean;
151
+ Uri: string;
152
+ AudioID: string;
153
+ Favorite: boolean;
154
+ Shared: boolean;
155
+ Length: number;
156
+ MessageType: "Announcement" | "NeverUsed" | "SurveyLiveAnswer" | "SurveyVoiceMail" | "AnnouncementVoiceMail" | "TransferAndConnect";
157
+ ReadOnly: boolean;
158
+ LastUsed: string;
159
+ } | undefined, string | undefined>;
160
+ audioVM: z.ZodEffects<z.ZodOptional<z.ZodString>, {
161
+ Description: string;
162
+ Created: string;
163
+ Text: string;
164
+ Name: string;
165
+ Voice: {
166
+ Text: string;
167
+ Voice: "Ivy" | "Joanna" | "Kendra" | "Kimberly" | "Salli" | "Joey" | "Justin" | "Kevin" | "Matthew";
168
+ TextToSpeech: boolean;
169
+ };
170
+ TextToSpeech: boolean;
171
+ Uri: string;
172
+ AudioID: string;
173
+ Favorite: boolean;
174
+ Shared: boolean;
175
+ Length: number;
176
+ MessageType: "Announcement" | "NeverUsed" | "SurveyLiveAnswer" | "SurveyVoiceMail" | "AnnouncementVoiceMail" | "TransferAndConnect";
177
+ ReadOnly: boolean;
178
+ LastUsed: string;
179
+ } | undefined, string | undefined>;
180
+ retryTimes: z.ZodOptional<z.ZodNumber>;
181
+ callThrottle: z.ZodOptional<z.ZodNumber>;
182
+ }, "strip", z.ZodTypeAny, {
183
+ phoneNumber: string;
184
+ broadcastName: string;
185
+ broadcastType: "Announcement" | "Survey";
186
+ startDate?: string | undefined;
187
+ maxMessageLength?: number | undefined;
188
+ callerID?: string | undefined;
189
+ checkCallingWindow?: boolean | undefined;
190
+ continueOnNextDay?: boolean | undefined;
191
+ transferAndConnect?: {
192
+ transferNumber: string;
193
+ transferMessage: string;
194
+ transferDigit: string;
195
+ transferIntroduction: string;
196
+ } | undefined;
197
+ audio?: {
198
+ Description: string;
199
+ Created: string;
200
+ Text: string;
201
+ Name: string;
202
+ Voice: {
203
+ Text: string;
204
+ Voice: "Ivy" | "Joanna" | "Kendra" | "Kimberly" | "Salli" | "Joey" | "Justin" | "Kevin" | "Matthew";
205
+ TextToSpeech: boolean;
206
+ };
207
+ TextToSpeech: boolean;
208
+ Uri: string;
209
+ AudioID: string;
210
+ Favorite: boolean;
211
+ Shared: boolean;
212
+ Length: number;
213
+ MessageType: "Announcement" | "NeverUsed" | "SurveyLiveAnswer" | "SurveyVoiceMail" | "AnnouncementVoiceMail" | "TransferAndConnect";
214
+ ReadOnly: boolean;
215
+ LastUsed: string;
216
+ } | undefined;
217
+ audioVM?: {
218
+ Description: string;
219
+ Created: string;
220
+ Text: string;
221
+ Name: string;
222
+ Voice: {
223
+ Text: string;
224
+ Voice: "Ivy" | "Joanna" | "Kendra" | "Kimberly" | "Salli" | "Joey" | "Justin" | "Kevin" | "Matthew";
225
+ TextToSpeech: boolean;
226
+ };
227
+ TextToSpeech: boolean;
228
+ Uri: string;
229
+ AudioID: string;
230
+ Favorite: boolean;
231
+ Shared: boolean;
232
+ Length: number;
233
+ MessageType: "Announcement" | "NeverUsed" | "SurveyLiveAnswer" | "SurveyVoiceMail" | "AnnouncementVoiceMail" | "TransferAndConnect";
234
+ ReadOnly: boolean;
235
+ LastUsed: string;
236
+ } | undefined;
237
+ retryTimes?: number | undefined;
238
+ callThrottle?: number | undefined;
239
+ }, {
240
+ phoneNumber: string;
241
+ broadcastName: string;
242
+ broadcastType: "Announcement" | "Survey";
243
+ startDate?: Date | undefined;
244
+ maxMessageLength?: number | undefined;
245
+ callerID?: string | undefined;
246
+ checkCallingWindow?: boolean | undefined;
247
+ continueOnNextDay?: boolean | undefined;
248
+ transferAndConnect?: string | undefined;
249
+ audio?: string | undefined;
250
+ audioVM?: string | undefined;
251
+ retryTimes?: number | undefined;
252
+ callThrottle?: number | undefined;
253
+ }>;
254
+ export type ActionFields = z.infer<typeof FieldsSchema>;
@@ -0,0 +1,166 @@
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.FieldsSchema = exports.dataPoints = exports.fields = void 0;
7
+ const zod_1 = require("zod");
8
+ const extensions_core_1 = require("@awell-health/extensions-core");
9
+ const types_1 = require("./types");
10
+ const types_2 = require("../types");
11
+ const validateJsonField_1 = require("../utils/validateJsonField");
12
+ const libphonenumber_js_1 = require("libphonenumber-js");
13
+ const format_1 = __importDefault(require("date-fns/format"));
14
+ const lodash_1 = require("lodash");
15
+ exports.fields = {
16
+ broadcastName: {
17
+ id: 'broadcastName',
18
+ label: 'Broadcast Name',
19
+ type: extensions_core_1.FieldType.STRING,
20
+ required: true,
21
+ description: 'The name of the broadcast.',
22
+ },
23
+ broadcastType: {
24
+ id: 'broadcastType',
25
+ label: 'Broadcast Type',
26
+ type: extensions_core_1.FieldType.STRING,
27
+ required: true,
28
+ description: 'The type of broadcast.',
29
+ options: {
30
+ dropdownOptions: Object.values(types_1.BroadcastTypes.enum).map((type) => ({
31
+ label: type,
32
+ value: type,
33
+ })),
34
+ },
35
+ },
36
+ startDate: {
37
+ id: 'startDate',
38
+ label: 'Start Date',
39
+ type: extensions_core_1.FieldType.STRING,
40
+ required: false,
41
+ description: 'The time the broadcast should start. Will default to start immediately. If provided must be a datetime as ISO 8601 string and time to send the message in UTC',
42
+ },
43
+ maxMessageLength: {
44
+ id: 'maxMessageLength',
45
+ label: 'Max Message Length',
46
+ type: extensions_core_1.FieldType.NUMERIC,
47
+ required: false,
48
+ description: 'The maximum number of seconds the audio message can be. If not set, the value from your voice settings.',
49
+ },
50
+ callerID: {
51
+ id: 'callerID',
52
+ label: 'Caller ID',
53
+ type: extensions_core_1.FieldType.STRING,
54
+ required: false,
55
+ description: 'Voice messages will appear to be coming from this phone number. If left blank, we will default to the callerID in your voice settings. Must be a valid North American Numbering Plan (NANP) phone number.',
56
+ },
57
+ phoneNumber: {
58
+ id: 'phoneNumber',
59
+ label: 'Phone Number',
60
+ type: extensions_core_1.FieldType.STRING,
61
+ stringType: extensions_core_1.StringType.PHONE,
62
+ required: true,
63
+ description: 'The primary phone number of the recipient in E.164 format',
64
+ },
65
+ checkCallingWindow: {
66
+ id: 'checkCallingWindow',
67
+ label: 'Check Calling Window',
68
+ type: extensions_core_1.FieldType.BOOLEAN,
69
+ required: false,
70
+ description: 'Used for voice messages only and determines whether to enforce or ignore the user`s calling window. Defaults to True.',
71
+ },
72
+ continueOnNextDay: {
73
+ id: 'continueOnNextDay',
74
+ label: 'Continue On Next Day',
75
+ type: extensions_core_1.FieldType.BOOLEAN,
76
+ required: false,
77
+ description: 'Can override the "continue on next day" user setting.',
78
+ },
79
+ transferAndConnect: {
80
+ id: 'transferAndConnect',
81
+ label: 'Transfer and Connect',
82
+ type: extensions_core_1.FieldType.JSON,
83
+ required: false,
84
+ description: 'The settings for transfer & connect broadcasts. Only required for Transfer & Connect type broadcasts.',
85
+ },
86
+ audio: {
87
+ id: 'audio',
88
+ label: 'Audio',
89
+ type: extensions_core_1.FieldType.JSON,
90
+ required: false,
91
+ description: 'The assigned audio message for voice broadcasts. This ID can be found in your Message Library. If left blank you will receive a message recording information in your response.',
92
+ },
93
+ audioVM: {
94
+ id: 'audioVM',
95
+ label: 'Audio VM',
96
+ type: extensions_core_1.FieldType.JSON,
97
+ required: false,
98
+ description: 'This message plays if the contact`s message is left on the recipient`s voicemail.',
99
+ },
100
+ retryTimes: {
101
+ id: 'retryTimes',
102
+ label: 'Retry Times',
103
+ type: extensions_core_1.FieldType.NUMERIC,
104
+ required: false,
105
+ description: 'The number of times a call is retried after busy signal or no answer. Defaults to retry settings in your account.',
106
+ },
107
+ callThrottle: {
108
+ id: 'callThrottle',
109
+ label: 'Call Throttle',
110
+ type: extensions_core_1.FieldType.NUMERIC,
111
+ required: false,
112
+ description: 'The call speed specifies the number of simultaneous calls that can be ongoing at any given time. Defaults to call speed settings in your account.',
113
+ },
114
+ };
115
+ exports.dataPoints = {
116
+ broadcastId: {
117
+ key: 'broadcastId',
118
+ valueType: 'number',
119
+ },
120
+ broadcastStatus: {
121
+ key: 'broadcastStatus',
122
+ valueType: 'string',
123
+ },
124
+ uriBroadcastDetails: {
125
+ key: 'uriBroadcastDetails',
126
+ valueType: 'string',
127
+ },
128
+ broadcastStatusCategory: {
129
+ key: 'broadcastStatusCategory',
130
+ valueType: 'string',
131
+ },
132
+ broadcastStartDate: {
133
+ key: 'broadcastStartDate',
134
+ valueType: 'string',
135
+ },
136
+ };
137
+ exports.FieldsSchema = zod_1.z.object({
138
+ broadcastName: zod_1.z.string(),
139
+ broadcastType: types_1.BroadcastTypes,
140
+ startDate: extensions_core_1.DateTimeSchema.optional().transform((date) => {
141
+ if ((0, lodash_1.isNil)(date) || date === '')
142
+ return undefined;
143
+ // format is required: 2/1/2020 1:15PM',
144
+ return (0, format_1.default)(new Date(date), 'M/d/yyyy h:mmaa');
145
+ }),
146
+ maxMessageLength: zod_1.z.number().optional(),
147
+ callerID: zod_1.z.string().optional(),
148
+ phoneNumber: zod_1.z.string().transform((phone) => {
149
+ const parsedNumber = (0, libphonenumber_js_1.parsePhoneNumber)(phone);
150
+ return parsedNumber.format('NATIONAL'); // Returns "(XXX) XXX-XXXX" NANP format
151
+ }),
152
+ checkCallingWindow: zod_1.z.boolean().optional(),
153
+ continueOnNextDay: zod_1.z.boolean().optional(),
154
+ transferAndConnect: zod_1.z
155
+ .optional(zod_1.z.string())
156
+ .transform((0, validateJsonField_1.validateJsonField)(types_2.TransferSchema, 'Missing required transfer details fields. Required fields: transferNumber, transferMessage, transferDigit, transferIntroduction')),
157
+ audio: zod_1.z
158
+ .optional(zod_1.z.string())
159
+ .transform((0, validateJsonField_1.validateJsonField)(types_2.AudioSchema, 'Invalid audio details. Required fields: Uri, AudioID, Name, Description, Favorite, Shared, Length, MessageType, ReadOnly, Created, LastUsed, TextToSpeech, Text, Voice')),
160
+ audioVM: zod_1.z
161
+ .optional(zod_1.z.string())
162
+ .transform((0, validateJsonField_1.validateJsonField)(types_2.AudioSchema, 'Invalid audioVM details. Required fields: Uri, AudioID, Name, Description, Favorite, Shared, Length, MessageType, ReadOnly, Created, LastUsed, TextToSpeech, Text, Voice')),
163
+ retryTimes: zod_1.z.number().optional(),
164
+ callThrottle: zod_1.z.number().optional(),
165
+ });
166
+ //# sourceMappingURL=config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../../../../../extensions/text-em-all/actions/createCallBroadcast/config.ts"],"names":[],"mappings":";;;;;;AAAA,6BAAuB;AAEvB,mEAMsC;AAEtC,mCAAwC;AACxC,oCAAsD;AACtD,kEAA8D;AAC9D,yDAAoD;AACpD,6DAAoC;AACpC,mCAA8B;AAEjB,QAAA,MAAM,GAAG;IACpB,aAAa,EAAE;QACb,EAAE,EAAE,eAAe;QACnB,KAAK,EAAE,gBAAgB;QACvB,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,4BAA4B;KAC1C;IACD,aAAa,EAAE;QACb,EAAE,EAAE,eAAe;QACnB,KAAK,EAAE,gBAAgB;QACvB,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,wBAAwB;QACrC,OAAO,EAAE;YACP,eAAe,EAAE,MAAM,CAAC,MAAM,CAAC,sBAAc,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;gBACjE,KAAK,EAAE,IAAI;gBACX,KAAK,EAAE,IAAI;aACZ,CAAC,CAAC;SACJ;KACF;IACD,SAAS,EAAE;QACT,EAAE,EAAE,WAAW;QACf,KAAK,EAAE,YAAY;QACnB,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,KAAK;QACf,WAAW,EACT,+JAA+J;KAClK;IACD,gBAAgB,EAAE;QAChB,EAAE,EAAE,kBAAkB;QACtB,KAAK,EAAE,oBAAoB;QAC3B,IAAI,EAAE,2BAAS,CAAC,OAAO;QACvB,QAAQ,EAAE,KAAK;QACf,WAAW,EACT,yGAAyG;KAC5G;IACD,QAAQ,EAAE;QACR,EAAE,EAAE,UAAU;QACd,KAAK,EAAE,WAAW;QAClB,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,KAAK;QACf,WAAW,EACT,2MAA2M;KA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AAC,MAAM,CAAC,UAAU,CAAC,CAAA,CAAC,uCAAuC;IAChF,CAAC,CAAC;IACF,kBAAkB,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC1C,iBAAiB,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACzC,kBAAkB,EAAE,OAAC;SAClB,QAAQ,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;SACpB,SAAS,CACR,IAAA,qCAAiB,EACf,sBAAc,EACd,iIAAiI,CAClI,CACF;IACH,KAAK,EAAE,OAAC;SACL,QAAQ,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;SACpB,SAAS,CACR,IAAA,qCAAiB,EACf,mBAAW,EACX,wKAAwK,CACzK,CACF;IACH,OAAO,EAAE,OAAC;SACP,QAAQ,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;SACpB,SAAS,CACR,IAAA,qCAAiB,EACf,mBAAW,EACX,0KAA0K,CAC3K,CACF;IACH,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACpC,CAAC,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { type Action } from '@awell-health/extensions-core';
2
+ import { fields, dataPoints } from './config';
3
+ import { type settings } from '../../settings';
4
+ export declare const createCallBroadcast: Action<typeof fields, typeof settings, keyof typeof dataPoints>;