@awell-health/awell-extensions 2.0.229 → 2.0.231

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 (67) hide show
  1. package/dist/extensions/bland/actions/getCallDetails/config/dataPoints.d.ts +48 -0
  2. package/dist/extensions/bland/actions/getCallDetails/config/dataPoints.js +48 -0
  3. package/dist/extensions/bland/actions/getCallDetails/config/dataPoints.js.map +1 -1
  4. package/dist/extensions/bland/actions/getCallDetails/config/fields.js +1 -1
  5. package/dist/extensions/bland/actions/getCallDetails/config/fields.js.map +1 -1
  6. package/dist/extensions/bland/actions/getCallDetails/getCallDetails.js +24 -8
  7. package/dist/extensions/bland/actions/getCallDetails/getCallDetails.js.map +1 -1
  8. package/dist/extensions/bland/actions/index.d.ts +542 -1
  9. package/dist/extensions/bland/actions/sendCall/config/dataPoints.js +0 -2
  10. package/dist/extensions/bland/actions/sendCall/config/dataPoints.js.map +1 -1
  11. package/dist/extensions/bland/actions/sendCall/config/fields.d.ts +360 -2
  12. package/dist/extensions/bland/actions/sendCall/config/fields.js +291 -36
  13. package/dist/extensions/bland/actions/sendCall/config/fields.js.map +1 -1
  14. package/dist/extensions/bland/actions/sendCall/sendCall.js +23 -40
  15. package/dist/extensions/bland/actions/sendCall/sendCall.js.map +1 -1
  16. package/dist/extensions/bland/actions/sendCallWithPathway/config/dataPoints.js +0 -2
  17. package/dist/extensions/bland/actions/sendCallWithPathway/config/dataPoints.js.map +1 -1
  18. package/dist/extensions/bland/actions/sendCallWithPathway/config/fields.d.ts +370 -2
  19. package/dist/extensions/bland/actions/sendCallWithPathway/config/fields.js +300 -37
  20. package/dist/extensions/bland/actions/sendCallWithPathway/config/fields.js.map +1 -1
  21. package/dist/extensions/bland/actions/sendCallWithPathway/sendCallWithPathway.js +23 -40
  22. package/dist/extensions/bland/actions/sendCallWithPathway/sendCallWithPathway.js.map +1 -1
  23. package/dist/extensions/bland/api/schema/GetCallDetails.schema.d.ts +20 -29
  24. package/dist/extensions/bland/api/schema/GetCallDetails.schema.js +8 -9
  25. package/dist/extensions/bland/api/schema/GetCallDetails.schema.js.map +1 -1
  26. package/dist/extensions/bland/api/schema/SendCall.schema.d.ts +281 -34
  27. package/dist/extensions/bland/api/schema/SendCall.schema.js +53 -15
  28. package/dist/extensions/bland/api/schema/SendCall.schema.js.map +1 -1
  29. package/dist/extensions/bland/api/schema/atoms/BackgroundTrackSchema.d.ts +8 -0
  30. package/dist/extensions/bland/api/schema/atoms/BackgroundTrackSchema.js +26 -0
  31. package/dist/extensions/bland/api/schema/atoms/BackgroundTrackSchema.js.map +1 -0
  32. package/dist/extensions/bland/api/schema/atoms/ModelSchema.d.ts +2 -0
  33. package/dist/extensions/bland/api/schema/atoms/ModelSchema.js +6 -0
  34. package/dist/extensions/bland/api/schema/atoms/ModelSchema.js.map +1 -0
  35. package/dist/extensions/bland/api/schema/atoms/VoicemailActionSchema.d.ts +2 -0
  36. package/dist/extensions/bland/api/schema/atoms/VoicemailActionSchema.js +10 -0
  37. package/dist/extensions/bland/api/schema/atoms/VoicemailActionSchema.js.map +1 -0
  38. package/dist/extensions/bland/api/schema/atoms/WebhookEventsSchema.d.ts +2 -0
  39. package/dist/extensions/bland/api/schema/atoms/WebhookEventsSchema.js +6 -0
  40. package/dist/extensions/bland/api/schema/atoms/WebhookEventsSchema.js.map +1 -0
  41. package/dist/extensions/bland/api/schema/atoms/index.d.ts +4 -0
  42. package/dist/extensions/bland/api/schema/atoms/index.js +21 -0
  43. package/dist/extensions/bland/api/schema/atoms/index.js.map +1 -0
  44. package/dist/extensions/bland/index.js +2 -0
  45. package/dist/extensions/bland/index.js.map +1 -1
  46. package/dist/extensions/bland/lib/sharedActionFields.d.ts +8 -0
  47. package/dist/extensions/bland/lib/sharedActionFields.js +59 -0
  48. package/dist/extensions/bland/lib/sharedActionFields.js.map +1 -0
  49. package/dist/extensions/bland/webhooks/CallCompleted/__testdata__/callCompleted.mock.d.ts +68 -0
  50. package/dist/extensions/bland/webhooks/CallCompleted/__testdata__/callCompleted.mock.js +108 -0
  51. package/dist/extensions/bland/webhooks/CallCompleted/__testdata__/callCompleted.mock.js.map +1 -0
  52. package/dist/extensions/bland/webhooks/CallCompleted/callCompleted.d.ts +12 -0
  53. package/dist/extensions/bland/webhooks/CallCompleted/callCompleted.js +31 -0
  54. package/dist/extensions/bland/webhooks/CallCompleted/callCompleted.js.map +1 -0
  55. package/dist/extensions/bland/webhooks/CallCompleted/index.d.ts +1 -0
  56. package/dist/extensions/bland/webhooks/CallCompleted/index.js +18 -0
  57. package/dist/extensions/bland/webhooks/CallCompleted/index.js.map +1 -0
  58. package/dist/extensions/bland/webhooks/CallCompleted/types.d.ts +37 -0
  59. package/dist/extensions/bland/webhooks/CallCompleted/types.js +3 -0
  60. package/dist/extensions/bland/webhooks/CallCompleted/types.js.map +1 -0
  61. package/dist/extensions/bland/webhooks/index.d.ts +9 -0
  62. package/dist/extensions/bland/webhooks/index.js +6 -0
  63. package/dist/extensions/bland/webhooks/index.js.map +1 -0
  64. package/dist/extensions/markdown.json +1 -1
  65. package/dist/extensions/text-em-all/actions/createCallBroadcast/config.d.ts +20 -20
  66. package/dist/extensions/text-em-all/actions/types.d.ts +14 -14
  67. package/package.json +1 -1
@@ -5,13 +5,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.FieldsValidationSchema = exports.fields = void 0;
7
7
  const extensions_core_1 = require("@awell-health/extensions-core");
8
- const lodash_1 = require("lodash");
8
+ const atoms_1 = require("../../../api/schema/atoms");
9
9
  const zod_1 = __importDefault(require("zod"));
10
+ const getTimezones_1 = require("../../../../awell/v1/actions/updatePatient/config/getTimezones");
11
+ const sharedActionFields_1 = require("../../../lib/sharedActionFields");
10
12
  exports.fields = {
11
13
  phoneNumber: {
12
14
  id: 'phoneNumber',
13
15
  label: 'Phone number',
14
- description: '',
16
+ description: 'The phone number to call.',
15
17
  type: extensions_core_1.FieldType.STRING,
16
18
  stringType: extensions_core_1.StringType.PHONE,
17
19
  required: true,
@@ -19,10 +21,260 @@ exports.fields = {
19
21
  pathwayId: {
20
22
  id: 'pathwayId',
21
23
  label: 'Pathway ID',
22
- description: 'Follows the conversational pathway you created to guide the conversation.',
24
+ description: 'The pathway ID for the pathway you have created.',
23
25
  type: extensions_core_1.FieldType.TEXT,
24
26
  required: true,
25
27
  },
28
+ pathwayVersion: {
29
+ id: 'pathwayVersion',
30
+ label: 'Pathway version',
31
+ description: 'The version number of the pathway to use for the call. Defaults to the production version.',
32
+ type: extensions_core_1.FieldType.NUMERIC,
33
+ required: false,
34
+ },
35
+ voice: {
36
+ id: 'voice',
37
+ label: 'Voice',
38
+ description: 'The voice of the AI agent to use. Accepts any form of voice ID, including custom voice clones and voice presets.',
39
+ type: extensions_core_1.FieldType.STRING,
40
+ required: false,
41
+ },
42
+ background_track: {
43
+ id: 'background_track',
44
+ label: 'Background track',
45
+ description: 'Select an audio track that you’d like to play in the background during the call. The audio will play continuously when the agent isn’t speaking, and is incorporated into it’s speech as well.',
46
+ type: extensions_core_1.FieldType.STRING,
47
+ required: false,
48
+ options: {
49
+ dropdownOptions: atoms_1.backgroundTrackOptions,
50
+ },
51
+ },
52
+ first_sentence: {
53
+ id: 'first_sentence',
54
+ label: 'First sentence',
55
+ description: 'Makes your agent say a specific phrase or sentence for it’s first response.',
56
+ type: extensions_core_1.FieldType.STRING,
57
+ required: false,
58
+ },
59
+ wait_for_greeting: {
60
+ id: 'wait_for_greeting',
61
+ label: 'Wait for greeting',
62
+ description: 'When enabled, the agent will wait for the call recipient to speak first before responding.',
63
+ type: extensions_core_1.FieldType.STRING,
64
+ required: false,
65
+ options: {
66
+ dropdownOptions: sharedActionFields_1.dropdownOptionsBoolean,
67
+ },
68
+ },
69
+ block_interruptions: {
70
+ id: 'block_interruptions',
71
+ label: 'Block interruptions',
72
+ description: 'When enabled, the AI will not respond or process interruptions from the user.',
73
+ type: extensions_core_1.FieldType.STRING,
74
+ required: false,
75
+ options: {
76
+ dropdownOptions: sharedActionFields_1.dropdownOptionsBoolean,
77
+ },
78
+ },
79
+ interruption_threshold: {
80
+ id: 'interruption_threshold',
81
+ label: 'Interruption threshold',
82
+ description: 'Adjusts how patient the AI is when waiting for the user to finish speaking. Lower values mean the AI will respond more quickly, while higher values mean the AI will wait longer before responding.',
83
+ type: extensions_core_1.FieldType.NUMERIC,
84
+ required: false,
85
+ },
86
+ model: {
87
+ id: 'model',
88
+ label: 'Model',
89
+ description: 'Select a model to use for your call.',
90
+ type: extensions_core_1.FieldType.STRING,
91
+ required: false,
92
+ options: {
93
+ dropdownOptions: Object.values(atoms_1.ModelSchema.enum).map((model) => ({
94
+ label: model,
95
+ value: model,
96
+ })),
97
+ },
98
+ },
99
+ temperature: {
100
+ id: 'temperature',
101
+ label: 'Temperature',
102
+ description: 'A value between 0 and 1 that controls the randomness of the LLM. 0 will cause more deterministic outputs while 1 will cause more random.',
103
+ type: extensions_core_1.FieldType.NUMERIC,
104
+ required: false,
105
+ },
106
+ dynamic_data: {
107
+ id: 'dynamic_data',
108
+ label: 'Dynamic data',
109
+ description: 'Integrate data from external APIs into your agent’s knowledge.',
110
+ type: extensions_core_1.FieldType.JSON,
111
+ required: false,
112
+ },
113
+ keywords: {
114
+ id: 'keywords',
115
+ label: 'Keywords',
116
+ description: 'Comma-separated list of keywords. These words will be boosted in the transcription engine - recommended for proper nouns or words that are frequently mis-transcribed.',
117
+ type: extensions_core_1.FieldType.STRING,
118
+ required: false,
119
+ },
120
+ pronunciation_guide: {
121
+ id: 'pronunciation_guide',
122
+ label: 'Pronunciation guide',
123
+ description: 'The pronunciation guide is an array of objects that guides the agent on how to say specific words. This is great for situations with complicated terms or names.',
124
+ type: extensions_core_1.FieldType.JSON,
125
+ required: false,
126
+ },
127
+ language: {
128
+ id: 'language',
129
+ label: 'Language',
130
+ description: 'Optimizes every part of our API for that language - transcription, speech, and other inner workings.',
131
+ type: extensions_core_1.FieldType.STRING,
132
+ required: false,
133
+ },
134
+ local_dialing: {
135
+ id: 'local_dialing',
136
+ label: 'Local dialing',
137
+ description: 'When true, automatically selects a “from” number that matches the callee’s area code for US-based calls. Must have purchased a local dialing add-on.',
138
+ type: extensions_core_1.FieldType.STRING,
139
+ required: false,
140
+ options: {
141
+ dropdownOptions: sharedActionFields_1.dropdownOptionsBoolean,
142
+ },
143
+ },
144
+ voicemail_sms: {
145
+ id: 'voicemail_sms',
146
+ label: 'Voicemail SMS',
147
+ description: 'Configure SMS settings for voicemail notifications.',
148
+ type: extensions_core_1.FieldType.JSON,
149
+ required: false,
150
+ },
151
+ dispatch_hours: {
152
+ id: 'dispatch_hours',
153
+ label: 'Dispatch hours',
154
+ description: 'Restricts calls to certain hours in your timezone.',
155
+ type: extensions_core_1.FieldType.JSON,
156
+ required: false,
157
+ },
158
+ sensitive_voicemail_detection: {
159
+ id: 'sensitive_voicemail_detection',
160
+ label: 'Sensitive voicemail detection',
161
+ description: 'When true, uses LLM-based analysis to detect frequent voicemails.',
162
+ type: extensions_core_1.FieldType.STRING,
163
+ required: false,
164
+ options: {
165
+ dropdownOptions: sharedActionFields_1.dropdownOptionsBoolean,
166
+ },
167
+ },
168
+ noise_cancellation: {
169
+ id: 'noise_cancellation',
170
+ label: 'Noise cancellation',
171
+ description: 'Toggles noise filtering or suppression in the audio stream to filter out background noise.',
172
+ type: extensions_core_1.FieldType.STRING,
173
+ required: false,
174
+ options: {
175
+ dropdownOptions: sharedActionFields_1.dropdownOptionsBoolean,
176
+ },
177
+ },
178
+ ignore_button_press: {
179
+ id: 'ignore_button_press',
180
+ label: 'Ignore button press',
181
+ description: 'When true, DTMF (digit) presses are ignored, disabling menu navigation or call transfers triggered by keypad input.',
182
+ type: extensions_core_1.FieldType.STRING,
183
+ required: false,
184
+ options: {
185
+ dropdownOptions: sharedActionFields_1.dropdownOptionsBoolean,
186
+ },
187
+ },
188
+ timezone: {
189
+ id: 'timezone',
190
+ label: 'Timezone',
191
+ description: 'Set the timezone for the call. Handled automatically for calls in the US.',
192
+ type: extensions_core_1.FieldType.STRING,
193
+ required: false,
194
+ options: {
195
+ dropdownOptions: (0, getTimezones_1.getTimezoneOptions)(),
196
+ },
197
+ },
198
+ tools: {
199
+ id: 'tools',
200
+ label: 'Tools',
201
+ description: 'Interact with the real world through API calls.',
202
+ type: extensions_core_1.FieldType.JSON,
203
+ required: false,
204
+ },
205
+ voicemail_message: {
206
+ id: 'voicemail_message',
207
+ label: 'Voicemail message',
208
+ description: 'When the AI encounters a voicemail, it will leave this message after the beep and then immediately end the call.',
209
+ type: extensions_core_1.FieldType.STRING,
210
+ required: false,
211
+ },
212
+ voicemail_action: {
213
+ id: 'voicemail_action',
214
+ label: 'Voicemail action',
215
+ description: 'This is processed separately from the AI’s decision making, and overrides it. If voicemail_message is set, then the AI will leave the message regardless of the voicemail_action.',
216
+ type: extensions_core_1.FieldType.JSON,
217
+ required: false,
218
+ },
219
+ retry: {
220
+ id: 'retry',
221
+ label: 'Retry',
222
+ description: 'If the call goes to voicemail, you can set up the call to retry, after a configurable delay.',
223
+ type: extensions_core_1.FieldType.JSON,
224
+ required: false,
225
+ },
226
+ max_duration: {
227
+ id: 'max_duration',
228
+ label: 'Max duration (minutes)',
229
+ description: 'When the call starts, a timer is set for the max_duration minutes. At the end of that timer, if the call is still active it will be automatically ended.',
230
+ type: extensions_core_1.FieldType.NUMERIC,
231
+ required: false,
232
+ },
233
+ record: {
234
+ id: 'record',
235
+ label: 'Record call',
236
+ description: 'When your call completes, you can access through the recording_url field in the call details or your webhook.',
237
+ type: extensions_core_1.FieldType.STRING,
238
+ required: false,
239
+ options: {
240
+ dropdownOptions: sharedActionFields_1.dropdownOptionsBoolean,
241
+ },
242
+ },
243
+ metadata: {
244
+ id: 'metadata',
245
+ label: 'Metadata',
246
+ description: 'Add any additional information you want to associate with the call. This data is accessible for all calls, regardless of if they are picked up or not. This can be used to track calls or add custom data to the call.',
247
+ type: extensions_core_1.FieldType.JSON,
248
+ required: false,
249
+ },
250
+ analysis_preset: {
251
+ id: 'analysis_preset',
252
+ label: 'Analysis preset',
253
+ description: 'The analysis preset UUID used to analyze the call, must be created on the analysis presets page.',
254
+ type: extensions_core_1.FieldType.STRING,
255
+ required: false,
256
+ },
257
+ available_tags: {
258
+ id: 'available_tags',
259
+ label: 'Available tags',
260
+ description: 'Comma-separated list of disposition tags. Upon call completion, the AI will evaluate the transcripts of the call and assign one of the tags to the “disposition_tag” field.',
261
+ type: extensions_core_1.FieldType.STRING,
262
+ required: false,
263
+ },
264
+ geospatial_dialing: {
265
+ id: 'geospatial_dialing',
266
+ label: 'Geospatial dialing',
267
+ description: 'The geospatial dialing pool UUID.',
268
+ type: extensions_core_1.FieldType.STRING,
269
+ required: false,
270
+ },
271
+ precall_dtmf_sequence: {
272
+ id: 'precall_dtmf_sequence',
273
+ label: 'Pre-call DTMF sequence',
274
+ description: 'A sequence of DTMF digits that will be played before the call starts.',
275
+ type: extensions_core_1.FieldType.STRING,
276
+ required: false,
277
+ },
26
278
  requestData: {
27
279
  id: 'requestData',
28
280
  label: 'Request data',
@@ -41,39 +293,50 @@ exports.fields = {
41
293
  exports.FieldsValidationSchema = zod_1.default.object({
42
294
  phoneNumber: zod_1.default.string().min(1),
43
295
  pathwayId: zod_1.default.string().min(1),
44
- requestData: zod_1.default
45
- .optional(zod_1.default.string())
46
- .transform((str, ctx) => {
47
- if ((0, lodash_1.isNil)(str) || (0, lodash_1.isEmpty)(str))
48
- return undefined;
49
- try {
50
- const parsedJson = JSON.parse(str);
51
- if ((0, lodash_1.isEmpty)(parsedJson)) {
52
- return undefined;
53
- }
54
- return parsedJson;
55
- }
56
- catch (e) {
57
- ctx.addIssue({ code: 'custom', message: 'Invalid JSON.' });
58
- return zod_1.default.NEVER;
59
- }
60
- }),
61
- analysisSchema: zod_1.default
62
- .optional(zod_1.default.string())
63
- .transform((str, ctx) => {
64
- if ((0, lodash_1.isNil)(str) || (0, lodash_1.isEmpty)(str))
65
- return undefined;
66
- try {
67
- const parsedJson = JSON.parse(str);
68
- if ((0, lodash_1.isEmpty)(parsedJson)) {
69
- return undefined;
70
- }
71
- return parsedJson;
72
- }
73
- catch (e) {
74
- ctx.addIssue({ code: 'custom', message: 'Invalid JSON.' });
75
- return zod_1.default.NEVER;
76
- }
77
- }),
296
+ pathwayVersion: zod_1.default.number().optional(),
297
+ voice: zod_1.default.string().optional(),
298
+ background_track: atoms_1.BackgroundTrackEnum.optional(),
299
+ first_sentence: zod_1.default.string().optional(),
300
+ wait_for_greeting: sharedActionFields_1.dropdownOptionsBooleanSchema.optional(),
301
+ block_interruptions: sharedActionFields_1.dropdownOptionsBooleanSchema.optional(),
302
+ interruption_threshold: zod_1.default.number().optional(),
303
+ model: atoms_1.ModelSchema.optional(),
304
+ temperature: zod_1.default.number().optional(),
305
+ dynamic_data: sharedActionFields_1.JsonArraySchema.optional(),
306
+ keywords: zod_1.default
307
+ .string()
308
+ .transform((val) => val
309
+ .trim()
310
+ .split(',')
311
+ .map((keyword) => keyword.trim()))
312
+ .optional(),
313
+ pronunciation_guide: sharedActionFields_1.JsonArraySchema.optional(),
314
+ language: zod_1.default.string().optional(),
315
+ local_dialing: sharedActionFields_1.dropdownOptionsBooleanSchema.optional(),
316
+ voicemail_sms: sharedActionFields_1.JsonObjectSchema.optional(),
317
+ dispatch_hours: sharedActionFields_1.JsonObjectSchema.optional(),
318
+ sensitive_voicemail_detection: sharedActionFields_1.dropdownOptionsBooleanSchema.optional(),
319
+ noise_cancellation: sharedActionFields_1.dropdownOptionsBooleanSchema.optional(),
320
+ ignore_button_press: sharedActionFields_1.dropdownOptionsBooleanSchema.optional(),
321
+ timezone: zod_1.default.string().optional(),
322
+ tools: sharedActionFields_1.JsonArraySchema.optional(),
323
+ voicemail_message: zod_1.default.string().optional(),
324
+ voicemail_action: atoms_1.VoicemailActionSchema.optional(),
325
+ retry: sharedActionFields_1.JsonObjectSchema.optional(),
326
+ max_duration: zod_1.default.number().optional(),
327
+ record: sharedActionFields_1.dropdownOptionsBooleanSchema.optional(),
328
+ metadata: sharedActionFields_1.JsonObjectSchema.optional(),
329
+ analysis_preset: zod_1.default.string().optional(),
330
+ available_tags: zod_1.default
331
+ .string()
332
+ .transform((val) => val
333
+ .trim()
334
+ .split(',')
335
+ .map((tag) => tag.trim()))
336
+ .optional(),
337
+ geospatial_dialing: zod_1.default.string().optional(),
338
+ precall_dtmf_sequence: zod_1.default.string().optional(),
339
+ requestData: sharedActionFields_1.JsonObjectSchema.optional(),
340
+ analysisSchema: sharedActionFields_1.JsonObjectSchema.optional(),
78
341
  });
79
342
  //# sourceMappingURL=fields.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../../../extensions/bland/actions/sendCallWithPathway/config/fields.ts"],"names":[],"mappings":";;;;;;AAAA,mEAIsC;AACtC,mCAAuC;AACvC,8CAAwC;AAE3B,QAAA,MAAM,GAAG;IACpB,WAAW,EAAE;QACX,EAAE,EAAE,aAAa;QACjB,KAAK,EAAE,cAAc;QACrB,WAAW,EAAE,EAAE;QACf,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,UAAU,EAAE,4BAAU,CAAC,KAAK;QAC5B,QAAQ,EAAE,IAAI;KACf;IACD,SAAS,EAAE;QACT,EAAE,EAAE,WAAW;QACf,KAAK,EAAE,YAAY;QACnB,WAAW,EACT,2EAA2E;QAC7E,IAAI,EAAE,2BAAS,CAAC,IAAI;QACpB,QAAQ,EAAE,IAAI;KACf;IACD,WAAW,EAAE;QACX,EAAE,EAAE,aAAa;QACjB,KAAK,EAAE,cAAc;QACrB,WAAW,EACT,8HAA8H;QAChI,IAAI,EAAE,2BAAS,CAAC,IAAI;QACpB,QAAQ,EAAE,KAAK;KAChB;IACD,cAAc,EAAE;QACd,EAAE,EAAE,gBAAgB;QACpB,KAAK,EAAE,iBAAiB;QACxB,WAAW,EACT,wKAAwK;QAC1K,IAAI,EAAE,2BAAS,CAAC,IAAI;QACpB,QAAQ,EAAE,KAAK;KAChB;C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O,SAAS,CAAA;YAClB,CAAC;YAED,OAAO,UAAU,CAAA;QACnB,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACX,GAAG,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,eAAe,EAAE,CAAC,CAAA;YAC1D,OAAO,aAAC,CAAC,KAAK,CAAA;QAChB,CAAC;IACH,CAAC,CAAC;CAC6C,CAAC,CAAA"}
1
+ {"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../../../extensions/bland/actions/sendCallWithPathway/config/fields.ts"],"names":[],"mappings":";;;;;;AAAA,mEAIsC;AACtC,qDAKkC;AAClC,8CAAwC;AACxC,iGAAmG;AACnG,wEAKwC;AAE3B,QAAA,MAAM,GAAG;IACpB,WAAW,EAAE;QACX,EAAE,EAAE,aAAa;QACjB,KAAK,EAAE,cAAc;QACrB,WAAW,EAAE,2BAA2B;QACxC,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,UAAU,EAAE,4BAAU,CAAC,KAAK;QAC5B,QAAQ,EAAE,IAAI;KACf;IACD,SAAS,EAAE;QACT,EAAE,EAAE,WAAW;QACf,KAAK,EAAE,YAAY;QACnB,WAAW,EAAE,kDAAkD;QAC/D,IAAI,EAAE,2BAAS,CAAC,IAAI;QACpB,QAAQ,EAAE,IAAI;KACf;IACD,cAAc,EAAE;QACd,EAAE,EAAE,gBAAgB;QACpB,KAAK,EAAE,iBAAiB;QACxB,WAAW,EACT,4FAA4F;QAC9F,IAAI,EAAE,2BAAS,CAAC,OAAO;QACvB,QAAQ,EAAE,KAAK;KAChB;IACD,KAAK,EAAE;QACL,EAAE,EAAE,OAAO;QACX,KAAK,EAAE,OAAO;QACd,WAAW,EACT,kHAAkH;QACpH,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,KAAK;KAChB;IACD,gBAAgB,EAAE;QAChB,EAAE,EAAE,kBAAkB;QACtB,KAAK,EAAE,kBAAkB;QACzB,WAAW,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Q,EAAE,qCAAgB,CAAC,QAAQ,EAAE;IACrC,eAAe,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACtC,cAAc,EAAE,aAAC;SACd,MAAM,EAAE;SACR,SAAS,CAAC,CAAC,GAAG,EAAE,EAAE,CACjB,GAAG;SACA,IAAI,EAAE;SACN,KAAK,CAAC,GAAG,CAAC;SACV,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAC5B;SACA,QAAQ,EAAE;IACb,kBAAkB,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzC,qBAAqB,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5C,WAAW,EAAE,qCAAgB,CAAC,QAAQ,EAAE;IACxC,cAAc,EAAE,qCAAgB,CAAC,QAAQ,EAAE;CACM,CAAC,CAAA"}
@@ -2,9 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.sendCallWithPathway = void 0;
4
4
  const extensions_core_1 = require("@awell-health/extensions-core");
5
- // import { addActivityEventLog } from '../../../../src/lib/awell/addEventLog'
6
5
  const validatePayloadAndCreateSdk_1 = require("../../lib/validatePayloadAndCreateSdk");
7
6
  const config_1 = require("./config");
7
+ const schema_1 = require("../../api/schema");
8
+ const addEventLog_1 = require("../../../../src/lib/awell/addEventLog");
8
9
  exports.sendCallWithPathway = {
9
10
  key: 'sendCallWithPathway',
10
11
  category: extensions_core_1.Category.COMMUNICATION,
@@ -18,51 +19,33 @@ exports.sendCallWithPathway = {
18
19
  fieldsSchema: config_1.FieldsValidationSchema,
19
20
  payload,
20
21
  });
21
- const metaData = {
22
- awell_patient_id: payload.patient.id,
23
- awell_care_flow_definition_id: payload.pathway.definition_id,
24
- awell_care_flow_id: payload.pathway.id,
25
- awell_activity_id: payload.activity.id,
26
- };
27
- const { data } = await blandSdk.sendCall({
22
+ const sendCallInput = schema_1.SendCallInputSchema.parse({
23
+ ...fields,
28
24
  phone_number: fields.phoneNumber,
29
25
  pathway_id: fields.pathwayId,
30
- task: '',
31
- /**
32
- * A POST request will be made to this endpoint when the call ends
33
- *
34
- * [!!]
35
- * Currently only works with the sandbox environment but that's good enough for Workit bootcamp.
36
- * Todo: We need to ensure we grab the right base URL, depending on the environment.
37
- */
38
- webhook: `https://workit-cloud-functions-105158578148.us-central1.run.app/?activity_id=${payload.activity.id}`,
39
26
  request_data: fields.requestData,
40
- metadata: metaData,
27
+ metadata: {
28
+ ...fields.metadata,
29
+ awell_patient_id: payload.patient.id,
30
+ awell_care_flow_definition_id: payload.pathway.definition_id,
31
+ awell_care_flow_id: payload.pathway.id,
32
+ awell_activity_id: payload.activity.id,
33
+ },
41
34
  analysis_schema: fields.analysisSchema,
42
35
  });
43
- console.log('Bland call details', {
44
- awell_activity_id: metaData.awell_activity_id,
45
- ...data,
36
+ const { data } = await blandSdk.sendCall({
37
+ ...sendCallInput,
38
+ });
39
+ await onComplete({
40
+ data_points: {
41
+ call_id: data.call_id,
42
+ },
43
+ events: [
44
+ (0, addEventLog_1.addActivityEventLog)({
45
+ message: `Request for call with pathway sent to Bland.\nStatus: ${data.status}\nCall ID: ${data.call_id}\nMessage: ${data.message}`,
46
+ }),
47
+ ],
46
48
  });
47
- /**
48
- * Completion of the activity happens via a
49
- * Webhook to the endpoint provided in the `webhook` field.
50
- *
51
- * In an ideal world, we have an additional method like `await onWait({events...})`
52
- * that we can use to push some logs to the activity's timeline without completing or erroring the activity.
53
- * We can use this to log the call status and call ID which we receive immediately from Bland when we make the request.
54
- */
55
- // await onComplete({
56
- // data_points: {
57
- // callId: data.call_id,
58
- // status: data.status,
59
- // },
60
- // events: [
61
- // addActivityEventLog({
62
- // message: `Call sent to Bland. Status: ${data.status}, Call ID: ${data.call_id}, Message: ${data.message}.`,
63
- // }),
64
- // ],
65
- // })
66
49
  },
67
50
  };
68
51
  //# sourceMappingURL=sendCallWithPathway.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sendCallWithPathway.js","sourceRoot":"","sources":["../../../../../extensions/bland/actions/sendCallWithPathway/sendCallWithPathway.ts"],"names":[],"mappings":";;;AACA,mEAAwD;AACxD,8EAA8E;AAC9E,uFAAmF;AAEnF,qCAAqE;AAExD,QAAA,mBAAmB,GAI5B;IACF,GAAG,EAAE,qBAAqB;IAC1B,QAAQ,EAAE,0BAAQ,CAAC,aAAa;IAChC,KAAK,EAAE,wBAAwB;IAC/B,WAAW,EAAE,0CAA0C;IACvD,MAAM,EAAN,eAAM;IACN,WAAW,EAAE,KAAK;IAClB,UAAU,EAAV,mBAAU;IACV,OAAO,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,EAAiB,EAAE;QACxD,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,IAAA,yDAA2B,EAAC;YAC7D,YAAY,EAAE,+BAAsB;YACpC,OAAO;SACR,CAAC,CAAA;QAEF,MAAM,QAAQ,GAAG;YACf,gBAAgB,EAAE,OAAO,CAAC,OAAO,CAAC,EAAE;YACpC,6BAA6B,EAAE,OAAO,CAAC,OAAO,CAAC,aAAa;YAC5D,kBAAkB,EAAE,OAAO,CAAC,OAAO,CAAC,EAAE;YACtC,iBAAiB,EAAE,OAAO,CAAC,QAAQ,CAAC,EAAE;SACvC,CAAA;QAED,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,QAAQ,CAAC,QAAQ,CAAC;YACvC,YAAY,EAAE,MAAM,CAAC,WAAW;YAChC,UAAU,EAAE,MAAM,CAAC,SAAS;YAC5B,IAAI,EAAE,EAAE;YACR;;;;;;eAMG;YACH,OAAO,EAAE,gFAAgF,OAAO,CAAC,QAAQ,CAAC,EAAE,EAAE;YAC9G,YAAY,EAAE,MAAM,CAAC,WAAW;YAChC,QAAQ,EAAE,QAAQ;YAClB,eAAe,EAAE,MAAM,CAAC,cAAc;SACvC,CAAC,CAAA;QAEF,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE;YAChC,iBAAiB,EAAE,QAAQ,CAAC,iBAAiB;YAC7C,GAAG,IAAI;SACR,CAAC,CAAA;QAEF;;;;;;;WAOG;QACH,qBAAqB;QACrB,mBAAmB;QACnB,4BAA4B;QAC5B,2BAA2B;QAC3B,OAAO;QACP,cAAc;QACd,4BAA4B;QAC5B,oHAAoH;QACpH,UAAU;QACV,OAAO;QACP,KAAK;IACP,CAAC;CACF,CAAA"}
1
+ {"version":3,"file":"sendCallWithPathway.js","sourceRoot":"","sources":["../../../../../extensions/bland/actions/sendCallWithPathway/sendCallWithPathway.ts"],"names":[],"mappings":";;;AACA,mEAAwD;AACxD,uFAAmF;AAEnF,qCAAqE;AACrE,6CAAsD;AACtD,uEAA2E;AAE9D,QAAA,mBAAmB,GAI5B;IACF,GAAG,EAAE,qBAAqB;IAC1B,QAAQ,EAAE,0BAAQ,CAAC,aAAa;IAChC,KAAK,EAAE,wBAAwB;IAC/B,WAAW,EAAE,0CAA0C;IACvD,MAAM,EAAN,eAAM;IACN,WAAW,EAAE,KAAK;IAClB,UAAU,EAAV,mBAAU;IACV,OAAO,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,EAAiB,EAAE;QACxD,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,IAAA,yDAA2B,EAAC;YAC7D,YAAY,EAAE,+BAAsB;YACpC,OAAO;SACR,CAAC,CAAA;QAEF,MAAM,aAAa,GAAG,4BAAmB,CAAC,KAAK,CAAC;YAC9C,GAAG,MAAM;YACT,YAAY,EAAE,MAAM,CAAC,WAAW;YAChC,UAAU,EAAE,MAAM,CAAC,SAAS;YAC5B,YAAY,EAAE,MAAM,CAAC,WAAW;YAChC,QAAQ,EAAE;gBACR,GAAG,MAAM,CAAC,QAAQ;gBAClB,gBAAgB,EAAE,OAAO,CAAC,OAAO,CAAC,EAAE;gBACpC,6BAA6B,EAAE,OAAO,CAAC,OAAO,CAAC,aAAa;gBAC5D,kBAAkB,EAAE,OAAO,CAAC,OAAO,CAAC,EAAE;gBACtC,iBAAiB,EAAE,OAAO,CAAC,QAAQ,CAAC,EAAE;aACvC;YACD,eAAe,EAAE,MAAM,CAAC,cAAc;SACvC,CAAC,CAAA;QAEF,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,QAAQ,CAAC,QAAQ,CAAC;YACvC,GAAG,aAAa;SACjB,CAAC,CAAA;QAEF,MAAM,UAAU,CAAC;YACf,WAAW,EAAE;gBACX,OAAO,EAAE,IAAI,CAAC,OAAO;aACtB;YACD,MAAM,EAAE;gBACN,IAAA,iCAAmB,EAAC;oBAClB,OAAO,EAAE,yDAAyD,IAAI,CAAC,MAAM,cAAc,IAAI,CAAC,OAAO,cAAc,IAAI,CAAC,OAAO,EAAE;iBACpI,CAAC;aACH;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA"}
@@ -9,23 +9,21 @@ export declare const GetCallDetailsInputSchema: z.ZodObject<{
9
9
  export type GetCallDetailsInputType = z.infer<typeof GetCallDetailsInputSchema>;
10
10
  export declare const GetCallDetailsResponseSchema: z.ZodObject<{
11
11
  call_id: z.ZodString;
12
+ c_id: z.ZodString;
12
13
  call_length: z.ZodNumber;
13
14
  batch_id: z.ZodNullable<z.ZodString>;
14
15
  to: z.ZodString;
15
16
  from: z.ZodString;
16
- request_data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
17
17
  completed: z.ZodBoolean;
18
18
  created_at: z.ZodString;
19
19
  inbound: z.ZodBoolean;
20
20
  queue_status: z.ZodString;
21
- endpoint_url: z.ZodString;
22
21
  max_duration: z.ZodNumber;
23
22
  error_message: z.ZodNullable<z.ZodString>;
24
23
  variables: z.ZodRecord<z.ZodString, z.ZodUnknown>;
25
24
  answered_by: z.ZodString;
26
25
  record: z.ZodBoolean;
27
26
  recording_url: z.ZodNullable<z.ZodString>;
28
- c_id: z.ZodString;
29
27
  metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
30
28
  summary: z.ZodString;
31
29
  price: z.ZodNumber;
@@ -35,116 +33,109 @@ export declare const GetCallDetailsResponseSchema: z.ZodObject<{
35
33
  pathway_logs: z.ZodNullable<z.ZodUnknown>;
36
34
  analysis_schema: z.ZodNullable<z.ZodUnknown>;
37
35
  analysis: z.ZodRecord<z.ZodString, z.ZodUnknown>;
36
+ transferred_to: z.ZodNullable<z.ZodUnknown>;
37
+ pathway_tags: z.ZodArray<z.ZodUnknown, "many">;
38
+ recording_expiration: z.ZodNullable<z.ZodUnknown>;
39
+ status: z.ZodString;
40
+ pathway_id: z.ZodNullable<z.ZodString>;
38
41
  concatenated_transcript: z.ZodString;
39
42
  transcripts: z.ZodArray<z.ZodObject<{
40
43
  id: z.ZodNumber;
41
- created_at: z.ZodString;
42
- text: z.ZodString;
43
44
  user: z.ZodString;
44
- c_id: z.ZodString;
45
- status: z.ZodNullable<z.ZodString>;
46
- transcript_id: z.ZodNullable<z.ZodString>;
45
+ text: z.ZodString;
46
+ created_at: z.ZodString;
47
47
  }, "strip", z.ZodTypeAny, {
48
- status: string | null;
49
48
  id: number;
50
49
  text: string;
51
50
  created_at: string;
52
- c_id: string;
53
51
  user: string;
54
- transcript_id: string | null;
55
52
  }, {
56
- status: string | null;
57
53
  id: number;
58
54
  text: string;
59
55
  created_at: string;
60
- c_id: string;
61
56
  user: string;
62
- transcript_id: string | null;
63
57
  }>, "many">;
64
- status: z.ZodString;
65
58
  corrected_duration: z.ZodString;
66
59
  end_at: z.ZodString;
67
60
  }, "strip", z.ZodTypeAny, {
68
61
  status: string;
69
62
  completed: boolean;
63
+ pathway_id: string | null;
70
64
  created_at: string;
71
- request_data: Record<string, unknown>;
65
+ local_dialing: boolean;
72
66
  max_duration: number;
73
67
  record: boolean;
74
68
  from: string;
75
69
  metadata: Record<string, unknown>;
76
70
  call_id: string;
71
+ c_id: string;
77
72
  call_length: number;
78
73
  batch_id: string | null;
79
74
  to: string;
80
75
  inbound: boolean;
81
76
  queue_status: string;
82
- endpoint_url: string;
83
77
  error_message: string | null;
84
78
  variables: Record<string, unknown>;
85
79
  answered_by: string;
86
80
  recording_url: string | null;
87
- c_id: string;
88
81
  summary: string;
89
82
  price: number;
90
83
  started_at: string;
91
- local_dialing: boolean;
92
84
  call_ended_by: string;
93
85
  analysis: Record<string, unknown>;
86
+ pathway_tags: unknown[];
94
87
  concatenated_transcript: string;
95
88
  transcripts: {
96
- status: string | null;
97
89
  id: number;
98
90
  text: string;
99
91
  created_at: string;
100
- c_id: string;
101
92
  user: string;
102
- transcript_id: string | null;
103
93
  }[];
104
94
  corrected_duration: string;
105
95
  end_at: string;
106
96
  analysis_schema?: unknown;
107
97
  pathway_logs?: unknown;
98
+ transferred_to?: unknown;
99
+ recording_expiration?: unknown;
108
100
  }, {
109
101
  status: string;
110
102
  completed: boolean;
103
+ pathway_id: string | null;
111
104
  created_at: string;
112
- request_data: Record<string, unknown>;
105
+ local_dialing: boolean;
113
106
  max_duration: number;
114
107
  record: boolean;
115
108
  from: string;
116
109
  metadata: Record<string, unknown>;
117
110
  call_id: string;
111
+ c_id: string;
118
112
  call_length: number;
119
113
  batch_id: string | null;
120
114
  to: string;
121
115
  inbound: boolean;
122
116
  queue_status: string;
123
- endpoint_url: string;
124
117
  error_message: string | null;
125
118
  variables: Record<string, unknown>;
126
119
  answered_by: string;
127
120
  recording_url: string | null;
128
- c_id: string;
129
121
  summary: string;
130
122
  price: number;
131
123
  started_at: string;
132
- local_dialing: boolean;
133
124
  call_ended_by: string;
134
125
  analysis: Record<string, unknown>;
126
+ pathway_tags: unknown[];
135
127
  concatenated_transcript: string;
136
128
  transcripts: {
137
- status: string | null;
138
129
  id: number;
139
130
  text: string;
140
131
  created_at: string;
141
- c_id: string;
142
132
  user: string;
143
- transcript_id: string | null;
144
133
  }[];
145
134
  corrected_duration: string;
146
135
  end_at: string;
147
136
  analysis_schema?: unknown;
148
137
  pathway_logs?: unknown;
138
+ transferred_to?: unknown;
139
+ recording_expiration?: unknown;
149
140
  }>;
150
141
  export type GetCallDetailsResponseType = z.infer<typeof GetCallDetailsResponseSchema>;