@awell-health/awell-extensions 2.1.62 → 2.1.64
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.
- package/dist/extensions/bland/api/schema/SendCall.schema.d.ts +7 -7
- package/dist/extensions/bland/api/schema/atoms/WebhookEventsSchema.d.ts +1 -1
- package/dist/extensions/bland/api/schema/atoms/WebhookEventsSchema.js +9 -1
- package/dist/extensions/bland/api/schema/atoms/WebhookEventsSchema.js.map +1 -1
- package/dist/extensions/freshdesk/lib/api/schema/GetTicket.schema.d.ts +2 -2
- package/dist/extensions/freshdesk/lib/api/schema/UpdateTicket.schema.d.ts +4 -4
- package/dist/extensions/freshdesk/lib/api/schema/atoms/Ticket.Schema.d.ts +2 -2
- package/dist/extensions/markdown.json +1 -1
- package/dist/extensions/zoom/actions/index.d.ts +1 -1
- package/dist/extensions/zoom/actions/sendSms/config/dataPoints.d.ts +4 -0
- package/dist/extensions/zoom/actions/sendSms/config/dataPoints.js +4 -0
- package/dist/extensions/zoom/actions/sendSms/config/dataPoints.js.map +1 -1
- package/dist/extensions/zoom/actions/sendSms/sendSms.js +58 -8
- package/dist/extensions/zoom/actions/sendSms/sendSms.js.map +1 -1
- package/package.json +1 -1
|
@@ -47,7 +47,7 @@ export declare const SendCallInputSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<
|
|
|
47
47
|
record: z.ZodOptional<z.ZodBoolean>;
|
|
48
48
|
from: z.ZodOptional<z.ZodString>;
|
|
49
49
|
webhook: z.ZodOptional<z.ZodString>;
|
|
50
|
-
webhook_events: z.ZodOptional<z.ZodArray<z.ZodEnum<["queue", "call", "latency", "webhook", "tool", "dynamic_data"]>, "many">>;
|
|
50
|
+
webhook_events: z.ZodOptional<z.ZodArray<z.ZodEnum<["queue", "call", "latency", "webhook", "tool", "dynamic_data", "citations"]>, "many">>;
|
|
51
51
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
52
52
|
analysis_preset: z.ZodOptional<z.ZodString>;
|
|
53
53
|
available_tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -106,7 +106,7 @@ export declare const SendCallInputSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<
|
|
|
106
106
|
record: z.ZodOptional<z.ZodBoolean>;
|
|
107
107
|
from: z.ZodOptional<z.ZodString>;
|
|
108
108
|
webhook: z.ZodOptional<z.ZodString>;
|
|
109
|
-
webhook_events: z.ZodOptional<z.ZodArray<z.ZodEnum<["queue", "call", "latency", "webhook", "tool", "dynamic_data"]>, "many">>;
|
|
109
|
+
webhook_events: z.ZodOptional<z.ZodArray<z.ZodEnum<["queue", "call", "latency", "webhook", "tool", "dynamic_data", "citations"]>, "many">>;
|
|
110
110
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
111
111
|
analysis_preset: z.ZodOptional<z.ZodString>;
|
|
112
112
|
available_tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -165,7 +165,7 @@ export declare const SendCallInputSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<
|
|
|
165
165
|
record: z.ZodOptional<z.ZodBoolean>;
|
|
166
166
|
from: z.ZodOptional<z.ZodString>;
|
|
167
167
|
webhook: z.ZodOptional<z.ZodString>;
|
|
168
|
-
webhook_events: z.ZodOptional<z.ZodArray<z.ZodEnum<["queue", "call", "latency", "webhook", "tool", "dynamic_data"]>, "many">>;
|
|
168
|
+
webhook_events: z.ZodOptional<z.ZodArray<z.ZodEnum<["queue", "call", "latency", "webhook", "tool", "dynamic_data", "citations"]>, "many">>;
|
|
169
169
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
170
170
|
analysis_preset: z.ZodOptional<z.ZodString>;
|
|
171
171
|
available_tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -224,7 +224,7 @@ export declare const SendCallInputSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<
|
|
|
224
224
|
record: z.ZodOptional<z.ZodBoolean>;
|
|
225
225
|
from: z.ZodOptional<z.ZodString>;
|
|
226
226
|
webhook: z.ZodOptional<z.ZodString>;
|
|
227
|
-
webhook_events: z.ZodOptional<z.ZodArray<z.ZodEnum<["queue", "call", "latency", "webhook", "tool", "dynamic_data"]>, "many">>;
|
|
227
|
+
webhook_events: z.ZodOptional<z.ZodArray<z.ZodEnum<["queue", "call", "latency", "webhook", "tool", "dynamic_data", "citations"]>, "many">>;
|
|
228
228
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
229
229
|
analysis_preset: z.ZodOptional<z.ZodString>;
|
|
230
230
|
available_tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -283,7 +283,7 @@ export declare const SendCallInputSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<
|
|
|
283
283
|
record: z.ZodOptional<z.ZodBoolean>;
|
|
284
284
|
from: z.ZodOptional<z.ZodString>;
|
|
285
285
|
webhook: z.ZodOptional<z.ZodString>;
|
|
286
|
-
webhook_events: z.ZodOptional<z.ZodArray<z.ZodEnum<["queue", "call", "latency", "webhook", "tool", "dynamic_data"]>, "many">>;
|
|
286
|
+
webhook_events: z.ZodOptional<z.ZodArray<z.ZodEnum<["queue", "call", "latency", "webhook", "tool", "dynamic_data", "citations"]>, "many">>;
|
|
287
287
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
288
288
|
analysis_preset: z.ZodOptional<z.ZodString>;
|
|
289
289
|
available_tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -342,7 +342,7 @@ export declare const SendCallInputSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<
|
|
|
342
342
|
record: z.ZodOptional<z.ZodBoolean>;
|
|
343
343
|
from: z.ZodOptional<z.ZodString>;
|
|
344
344
|
webhook: z.ZodOptional<z.ZodString>;
|
|
345
|
-
webhook_events: z.ZodOptional<z.ZodArray<z.ZodEnum<["queue", "call", "latency", "webhook", "tool", "dynamic_data"]>, "many">>;
|
|
345
|
+
webhook_events: z.ZodOptional<z.ZodArray<z.ZodEnum<["queue", "call", "latency", "webhook", "tool", "dynamic_data", "citations"]>, "many">>;
|
|
346
346
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
347
347
|
analysis_preset: z.ZodOptional<z.ZodString>;
|
|
348
348
|
available_tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -401,7 +401,7 @@ export declare const SendCallInputSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<
|
|
|
401
401
|
record: z.ZodOptional<z.ZodBoolean>;
|
|
402
402
|
from: z.ZodOptional<z.ZodString>;
|
|
403
403
|
webhook: z.ZodOptional<z.ZodString>;
|
|
404
|
-
webhook_events: z.ZodOptional<z.ZodArray<z.ZodEnum<["queue", "call", "latency", "webhook", "tool", "dynamic_data"]>, "many">>;
|
|
404
|
+
webhook_events: z.ZodOptional<z.ZodArray<z.ZodEnum<["queue", "call", "latency", "webhook", "tool", "dynamic_data", "citations"]>, "many">>;
|
|
405
405
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
406
406
|
analysis_preset: z.ZodOptional<z.ZodString>;
|
|
407
407
|
available_tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const WebhookEventsSchema: z.ZodArray<z.ZodEnum<["queue", "call", "latency", "webhook", "tool", "dynamic_data"]>, "many">;
|
|
2
|
+
export declare const WebhookEventsSchema: z.ZodArray<z.ZodEnum<["queue", "call", "latency", "webhook", "tool", "dynamic_data", "citations"]>, "many">;
|
|
@@ -2,5 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.WebhookEventsSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
exports.WebhookEventsSchema = zod_1.z.array(zod_1.z.enum([
|
|
5
|
+
exports.WebhookEventsSchema = zod_1.z.array(zod_1.z.enum([
|
|
6
|
+
'queue',
|
|
7
|
+
'call',
|
|
8
|
+
'latency',
|
|
9
|
+
'webhook',
|
|
10
|
+
'tool',
|
|
11
|
+
'dynamic_data',
|
|
12
|
+
'citations',
|
|
13
|
+
]));
|
|
6
14
|
//# sourceMappingURL=WebhookEventsSchema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WebhookEventsSchema.js","sourceRoot":"","sources":["../../../../../../extensions/bland/api/schema/atoms/WebhookEventsSchema.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEV,QAAA,mBAAmB,GAAG,OAAC,CAAC,KAAK,CACxC,OAAC,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"WebhookEventsSchema.js","sourceRoot":"","sources":["../../../../../../extensions/bland/api/schema/atoms/WebhookEventsSchema.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEV,QAAA,mBAAmB,GAAG,OAAC,CAAC,KAAK,CACxC,OAAC,CAAC,IAAI,CAAC;IACL,OAAO;IACP,MAAM;IACN,SAAS;IACT,SAAS;IACT,MAAM;IACN,cAAc;IACd,WAAW;CACZ,CAAC,CACH,CAAA"}
|
|
@@ -47,7 +47,7 @@ export declare const GetTicketResponseSchema: z.ZodObject<{
|
|
|
47
47
|
fr_escalated: boolean;
|
|
48
48
|
requester_id: number;
|
|
49
49
|
responder_id: number | null;
|
|
50
|
-
source: 1 | 2 | 3 |
|
|
50
|
+
source: 1 | 2 | 3 | 7 | 10 | 9;
|
|
51
51
|
spam: boolean;
|
|
52
52
|
to_emails: string[] | null;
|
|
53
53
|
product_id: number | null;
|
|
@@ -77,7 +77,7 @@ export declare const GetTicketResponseSchema: z.ZodObject<{
|
|
|
77
77
|
fr_escalated: boolean;
|
|
78
78
|
requester_id: number;
|
|
79
79
|
responder_id: number | null;
|
|
80
|
-
source: 1 | 2 | 3 |
|
|
80
|
+
source: 1 | 2 | 3 | 7 | 10 | 9;
|
|
81
81
|
spam: boolean;
|
|
82
82
|
to_emails: string[] | null;
|
|
83
83
|
product_id: number | null;
|
|
@@ -42,7 +42,7 @@ export declare const UpdateTicketInputSchema: z.ZodObject<{
|
|
|
42
42
|
email_config_id?: number | undefined;
|
|
43
43
|
requester_id?: number | undefined;
|
|
44
44
|
responder_id?: number | undefined;
|
|
45
|
-
source?: 1 | 2 | 3 |
|
|
45
|
+
source?: 1 | 2 | 3 | 7 | 10 | 9 | undefined;
|
|
46
46
|
company_id?: number | undefined;
|
|
47
47
|
product_id?: number | undefined;
|
|
48
48
|
due_by?: string | undefined;
|
|
@@ -70,7 +70,7 @@ export declare const UpdateTicketInputSchema: z.ZodObject<{
|
|
|
70
70
|
email_config_id?: number | undefined;
|
|
71
71
|
requester_id?: number | undefined;
|
|
72
72
|
responder_id?: number | undefined;
|
|
73
|
-
source?: 1 | 2 | 3 |
|
|
73
|
+
source?: 1 | 2 | 3 | 7 | 10 | 9 | undefined;
|
|
74
74
|
company_id?: number | undefined;
|
|
75
75
|
product_id?: number | undefined;
|
|
76
76
|
due_by?: string | undefined;
|
|
@@ -133,7 +133,7 @@ export declare const UpdateTicketResponseSchema: z.ZodObject<{
|
|
|
133
133
|
fr_escalated: boolean;
|
|
134
134
|
requester_id: number;
|
|
135
135
|
responder_id: number | null;
|
|
136
|
-
source: 1 | 2 | 3 |
|
|
136
|
+
source: 1 | 2 | 3 | 7 | 10 | 9;
|
|
137
137
|
spam: boolean;
|
|
138
138
|
to_emails: string[] | null;
|
|
139
139
|
product_id: number | null;
|
|
@@ -163,7 +163,7 @@ export declare const UpdateTicketResponseSchema: z.ZodObject<{
|
|
|
163
163
|
fr_escalated: boolean;
|
|
164
164
|
requester_id: number;
|
|
165
165
|
responder_id: number | null;
|
|
166
|
-
source: 1 | 2 | 3 |
|
|
166
|
+
source: 1 | 2 | 3 | 7 | 10 | 9;
|
|
167
167
|
spam: boolean;
|
|
168
168
|
to_emails: string[] | null;
|
|
169
169
|
product_id: number | null;
|
|
@@ -47,7 +47,7 @@ export declare const TicketSchema: z.ZodObject<{
|
|
|
47
47
|
fr_escalated: boolean;
|
|
48
48
|
requester_id: number;
|
|
49
49
|
responder_id: number | null;
|
|
50
|
-
source: 1 | 2 | 3 |
|
|
50
|
+
source: 1 | 2 | 3 | 7 | 10 | 9;
|
|
51
51
|
spam: boolean;
|
|
52
52
|
to_emails: string[] | null;
|
|
53
53
|
product_id: number | null;
|
|
@@ -77,7 +77,7 @@ export declare const TicketSchema: z.ZodObject<{
|
|
|
77
77
|
fr_escalated: boolean;
|
|
78
78
|
requester_id: number;
|
|
79
79
|
responder_id: number | null;
|
|
80
|
-
source: 1 | 2 | 3 |
|
|
80
|
+
source: 1 | 2 | 3 | 7 | 10 | 9;
|
|
81
81
|
spam: boolean;
|
|
82
82
|
to_emails: string[] | null;
|
|
83
83
|
product_id: number | null;
|
|
@@ -232,7 +232,7 @@
|
|
|
232
232
|
"changelog": "# Zendesk changelog\n"
|
|
233
233
|
},
|
|
234
234
|
"zoom": {
|
|
235
|
-
"readme": "---\ntitle: Zoom\ndescription: Zoom is a communications platform that allows users to connect with video, audio, phone, and chat.\n---\n\n# Zoom\n\nZoom is a communications platform that allows users to connect with video, audio, phone, and chat.\n\n## Extension settings\n\nTo set up this extension, you will need to provide the following:\n\n1. **Account ID:** your Zoom account ID, found on the Server to Server app build page.\n2. **Client ID:** the client ID of the OAuth app you created in Zoom\n3. **Client secret:** the client secret of the OAuth app you created in Zoom\n\nYou'll have to set up a [Server-to-Server OAuth app](https://developers.zoom.us/docs/internal-apps/create/) in Zoom to provision a client ID and secret.\n\n## Actions\n\n### Send SMS\n\nSend an SMS to a recipient.\n\nEnsure your Server-to-Server OAuth app has the following scopes set:\n\n- Scopes: `contact_center_sms:write:admin`\n- Granular Scopes: `contact_center:write:sms:admin`\n",
|
|
235
|
+
"readme": "---\ntitle: Zoom\ndescription: Zoom is a communications platform that allows users to connect with video, audio, phone, and chat.\n---\n\n# Zoom\n\nZoom is a communications platform that allows users to connect with video, audio, phone, and chat.\n\n## Extension settings\n\nTo set up this extension, you will need to provide the following:\n\n1. **Account ID:** your Zoom account ID, found on the Server to Server app build page.\n2. **Client ID:** the client ID of the OAuth app you created in Zoom\n3. **Client secret:** the client secret of the OAuth app you created in Zoom\n\nYou'll have to set up a [Server-to-Server OAuth app](https://developers.zoom.us/docs/internal-apps/create/) in Zoom to provision a client ID and secret.\n\n## Actions\n\n### Send SMS\n\nSend an SMS to a recipient.\n\nEnsure your Server-to-Server OAuth app has the following scopes set:\n\n- Scopes: `contact_center_sms:write:admin`\n- Granular Scopes: `contact_center:write:sms:admin`\n\n#### Result codes\n\nOn completion, the action returns a `code` data point indicating the outcome:\n\n- **SUCCESS**: SMS was sent successfully.\n- **INVALID_CONSUMER_NUMBER_FORMAT**: Invalid consumer number; E.164 format is required.\n- **CONTACT_CENTER_NUMBER_USED**: Zoom Contact Center numbers cannot be used as consumer numbers.\n- **CONSUMER_NOT_OPTED_IN**: The consumer number you have messaged has not opted in.\n- **CONSUMER_OPTED_OUT**: The consumer number has opted out of receiving SMS from this Zoom Contact Center number.\n- **CONSUMER_BLOCK_LISTED**: The consumer number is block-listed by your Zoom Contact Center administrator.\n- **INTERNATIONAL_SMS_NOT_SUPPORTED**: International messaging is not supported on this account.\n- **BODY_TOO_LONG**: Validation error — body exceeds 500 characters.\n",
|
|
236
236
|
"changelog": "# CHANGELOG"
|
|
237
237
|
},
|
|
238
238
|
"zusHealth": {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataPoints.js","sourceRoot":"","sources":["../../../../../../extensions/zoom/actions/sendSms/config/dataPoints.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG;IACxB,SAAS,EAAE;QACT,GAAG,EAAE,WAAW;QAChB,SAAS,EAAE,QAAQ;KACpB;IACD,OAAO,EAAE;QACP,GAAG,EAAE,SAAS;QACd,SAAS,EAAE,SAAS;KACrB;CAC4C,CAAA"}
|
|
1
|
+
{"version":3,"file":"dataPoints.js","sourceRoot":"","sources":["../../../../../../extensions/zoom/actions/sendSms/config/dataPoints.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG;IACxB,SAAS,EAAE;QACT,GAAG,EAAE,WAAW;QAChB,SAAS,EAAE,QAAQ;KACpB;IACD,OAAO,EAAE;QACP,GAAG,EAAE,SAAS;QACd,SAAS,EAAE,SAAS;KACrB;IACD,IAAI,EAAE;QACJ,GAAG,EAAE,MAAM;QACX,SAAS,EAAE,QAAQ;KACpB;CAC4C,CAAA"}
|
|
@@ -5,6 +5,37 @@ const extensions_core_1 = require("@awell-health/extensions-core");
|
|
|
5
5
|
const validatePayloadAndCreateSdk_1 = require("../../lib/validatePayloadAndCreateSdk");
|
|
6
6
|
const config_1 = require("./config");
|
|
7
7
|
const addEventLog_1 = require("../../../../src/lib/awell/addEventLog");
|
|
8
|
+
const codes = [
|
|
9
|
+
{
|
|
10
|
+
code: 'INVALID_CONSUMER_NUMBER_FORMAT',
|
|
11
|
+
errorMessage: 'Invalid consumer number. The format of the consumer number used is incorrect. E.164 format is required',
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
code: 'CONTACT_CENTER_NUMBER_USED',
|
|
15
|
+
errorMessage: 'Zoom Contact Center numbers cannot be used as consumer numbers',
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
code: 'CONSUMER_NOT_OPTED_IN',
|
|
19
|
+
errorMessage: 'The consumer number you have messaged has not opted in',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
code: 'CONSUMER_OPTED_OUT',
|
|
23
|
+
errorMessage: 'This consumer number has opted out of receiving SMS from this Zoom contact center number',
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
code: 'CONSUMER_BLOCK_LISTED',
|
|
27
|
+
errorMessage: 'This consumer number is a part of the block list defined by your Zoom Contact Center account administrator and cannot be messaged',
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
code: 'INTERNATIONAL_SMS_NOT_SUPPORTED',
|
|
31
|
+
errorMessage: 'International messaging is not supported on this account',
|
|
32
|
+
},
|
|
33
|
+
// Keep non-enum validations we have seen from API responses
|
|
34
|
+
{
|
|
35
|
+
code: 'BODY_TOO_LONG',
|
|
36
|
+
errorMessage: 'Validation error: String must contain at most 500 character(s)',
|
|
37
|
+
},
|
|
38
|
+
];
|
|
8
39
|
exports.sendSms = {
|
|
9
40
|
key: 'sendSms',
|
|
10
41
|
category: extensions_core_1.Category.COMMUNICATION,
|
|
@@ -14,7 +45,7 @@ exports.sendSms = {
|
|
|
14
45
|
previewable: false,
|
|
15
46
|
dataPoints: config_1.dataPoints,
|
|
16
47
|
onEvent: async ({ payload, onComplete, onError }) => {
|
|
17
|
-
var _a;
|
|
48
|
+
var _a, _b, _c;
|
|
18
49
|
const { fields, zoomSdk } = await (0, validatePayloadAndCreateSdk_1.validatePayloadAndCreateSdk)({
|
|
19
50
|
fieldsSchema: config_1.FieldsValidationSchema,
|
|
20
51
|
payload,
|
|
@@ -31,19 +62,38 @@ exports.sendSms = {
|
|
|
31
62
|
* All other errors are handled with AxiosError and caught in Extensions Core
|
|
32
63
|
*/
|
|
33
64
|
if (!data[0].success) {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
65
|
+
const failureDescription = (_a = data[0].description) !== null && _a !== void 0 ? _a : 'Unknown error';
|
|
66
|
+
const code = (_b = codes.find((code) => failureDescription.includes(code.errorMessage))) === null || _b === void 0 ? void 0 : _b.code;
|
|
67
|
+
if (code !== undefined) {
|
|
68
|
+
await onComplete({
|
|
69
|
+
data_points: {
|
|
70
|
+
code,
|
|
71
|
+
success: String(false),
|
|
72
|
+
messageId: null,
|
|
73
|
+
},
|
|
74
|
+
events: [
|
|
75
|
+
(0, addEventLog_1.addActivityEventLog)({
|
|
76
|
+
message: failureDescription,
|
|
77
|
+
}),
|
|
78
|
+
],
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
else {
|
|
82
|
+
await onError({
|
|
83
|
+
events: [
|
|
84
|
+
(0, addEventLog_1.addActivityEventLog)({
|
|
85
|
+
message: (_c = data[0].description) !== null && _c !== void 0 ? _c : 'Unknown error',
|
|
86
|
+
}),
|
|
87
|
+
],
|
|
88
|
+
});
|
|
89
|
+
}
|
|
41
90
|
return;
|
|
42
91
|
}
|
|
43
92
|
await onComplete({
|
|
44
93
|
data_points: {
|
|
45
94
|
messageId: data[0].message_id,
|
|
46
95
|
success: String(data[0].success),
|
|
96
|
+
code: 'SUCCESS',
|
|
47
97
|
},
|
|
48
98
|
events: [
|
|
49
99
|
(0, addEventLog_1.addActivityEventLog)({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sendSms.js","sourceRoot":"","sources":["../../../../../extensions/zoom/actions/sendSms/sendSms.ts"],"names":[],"mappings":";;;AACA,mEAAwD;AACxD,uFAAmF;AAEnF,qCAAqE;AACrE,uEAA2E;
|
|
1
|
+
{"version":3,"file":"sendSms.js","sourceRoot":"","sources":["../../../../../extensions/zoom/actions/sendSms/sendSms.ts"],"names":[],"mappings":";;;AACA,mEAAwD;AACxD,uFAAmF;AAEnF,qCAAqE;AACrE,uEAA2E;AAE3E,MAAM,KAAK,GAAG;IACZ;QACE,IAAI,EAAE,gCAAgC;QACtC,YAAY,EACV,wGAAwG;KAC3G;IACD;QACE,IAAI,EAAE,4BAA4B;QAClC,YAAY,EACV,gEAAgE;KACnE;IACD;QACE,IAAI,EAAE,uBAAuB;QAC7B,YAAY,EAAE,wDAAwD;KACvE;IACD;QACE,IAAI,EAAE,oBAAoB;QAC1B,YAAY,EACV,0FAA0F;KAC7F;IACD;QACE,IAAI,EAAE,uBAAuB;QAC7B,YAAY,EACV,mIAAmI;KACtI;IACD;QACE,IAAI,EAAE,iCAAiC;QACvC,YA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