@awell-health/awell-extensions 2.1.63 → 2.1.65
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/awell/v1/actions/updateBaselineInfo/config/fields.d.ts +10 -0
- package/dist/extensions/awell/v1/actions/updateBaselineInfo/config/fields.js +18 -0
- package/dist/extensions/awell/v1/actions/updateBaselineInfo/config/fields.js.map +1 -1
- package/dist/extensions/awell/v1/actions/updateBaselineInfo/updateBaselineInfo.js +2 -2
- package/dist/extensions/awell/v1/actions/updateBaselineInfo/updateBaselineInfo.js.map +1 -1
- 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/package.json +1 -1
|
@@ -2,6 +2,13 @@ import { FieldType } from '@awell-health/extensions-core';
|
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { type BaselineInfoInput } from '../../../gql/graphql';
|
|
4
4
|
export declare const fields: {
|
|
5
|
+
careflowId: {
|
|
6
|
+
id: string;
|
|
7
|
+
label: string;
|
|
8
|
+
description: string;
|
|
9
|
+
type: FieldType.STRING;
|
|
10
|
+
required: false;
|
|
11
|
+
};
|
|
5
12
|
baselineInfo: {
|
|
6
13
|
id: string;
|
|
7
14
|
label: string;
|
|
@@ -11,9 +18,12 @@ export declare const fields: {
|
|
|
11
18
|
};
|
|
12
19
|
};
|
|
13
20
|
export declare const FieldsValidationSchema: z.ZodObject<{
|
|
21
|
+
careflowId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, string | undefined>;
|
|
14
22
|
baselineInfo: z.ZodEffects<z.ZodOptional<z.ZodString>, BaselineInfoInput[], string | undefined>;
|
|
15
23
|
}, "strip", z.ZodTypeAny, {
|
|
16
24
|
baselineInfo: BaselineInfoInput[];
|
|
25
|
+
careflowId?: string | undefined;
|
|
17
26
|
}, {
|
|
18
27
|
baselineInfo?: string | undefined;
|
|
28
|
+
careflowId?: string | undefined;
|
|
19
29
|
}>;
|
|
@@ -5,6 +5,13 @@ const extensions_core_1 = require("@awell-health/extensions-core");
|
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
6
|
const lodash_1 = require("lodash");
|
|
7
7
|
exports.fields = {
|
|
8
|
+
careflowId: {
|
|
9
|
+
id: 'careflowId',
|
|
10
|
+
label: 'Care flow ID',
|
|
11
|
+
description: 'The ID of the care flow to update the baseline info for. When not provided, the baseline info will be updated for the current care flow.',
|
|
12
|
+
type: extensions_core_1.FieldType.STRING,
|
|
13
|
+
required: false,
|
|
14
|
+
},
|
|
8
15
|
baselineInfo: {
|
|
9
16
|
id: 'baselineInfo',
|
|
10
17
|
label: 'Baseline info',
|
|
@@ -24,6 +31,17 @@ exports.fields = {
|
|
|
24
31
|
},
|
|
25
32
|
};
|
|
26
33
|
exports.FieldsValidationSchema = zod_1.z.object({
|
|
34
|
+
careflowId: zod_1.z
|
|
35
|
+
.string()
|
|
36
|
+
.trim()
|
|
37
|
+
.optional()
|
|
38
|
+
.transform((str) => {
|
|
39
|
+
const trimmed = (0, lodash_1.isNil)(str) ? str : str.trim();
|
|
40
|
+
if ((0, lodash_1.isNil)(trimmed) || (0, lodash_1.isEmpty)(trimmed)) {
|
|
41
|
+
return undefined;
|
|
42
|
+
}
|
|
43
|
+
return trimmed;
|
|
44
|
+
}),
|
|
27
45
|
baselineInfo: zod_1.z
|
|
28
46
|
.optional(zod_1.z.string())
|
|
29
47
|
.transform((str, ctx) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../../../../extensions/awell/v1/actions/updateBaselineInfo/config/fields.ts"],"names":[],"mappings":";;;AAAA,mEAAqE;AACrE,6BAAwC;AAExC,mCAAuC;AAE1B,QAAA,MAAM,GAAG;IACpB,YAAY,EAAE;QACZ,EAAE,EAAE,cAAc;QAClB,KAAK,EAAE,eAAe;QACtB,WAAW,EAAE;;;;;;;;;;QAUT;QACJ,IAAI,EAAE,2BAAS,CAAC,IAAI;QACpB,QAAQ,EAAE,KAAK;KAChB;CAC8B,CAAA;AAEpB,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,YAAY,EAAE,OAAC;SACZ,QAAQ,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;SACpB,SAAS,CAAC,CAAC,GAAG,EAAE,GAAG,EAAuB,EAAE;QAC3C,IAAI,CAAC;YACH,IAAI,IAAA,cAAK,EAAC,GAAG,CAAC,IAAI,IAAA,gBAAO,EAAC,GAAG,CAAC,EAAE,CAAC;gBAC/B,GAAG,CAAC,QAAQ,CAAC;oBACX,IAAI,EAAE,QAAQ;oBACd,OAAO,EAAE,iGAAiG;iBAC3G,CAAC,CAAA;gBACF,OAAO,OAAC,CAAC,KAAK,CAAA;YAChB,CAAC;YACD,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;YAElC,IAAI,IAAA,gBAAO,EAAC,UAAU,CAAC,EAAE,CAAC;gBACxB,GAAG,CAAC,QAAQ,CAAC;oBACX,IAAI,EAAE,QAAQ;oBACd,OAAO,EAAE,sFAAsF;iBAChG,CAAC,CAAA;gBACF,OAAO,OAAC,CAAC,KAAK,CAAA;YAChB,CAAC;YAED,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC;gBAC/B,GAAG,CAAC,QAAQ,CAAC;oBACX,IAAI,EAAE,QAAQ;oBACd,OAAO,EAAE,sDAAsD,OAAO,UAAU,GAAG;iBACpF,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AA;YAC1D,OAAO,OAAC,CAAC,KAAK,CAAA;QAChB,CAAC;IACH,CAAC,CAAC;CAC6C,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../../../../extensions/awell/v1/actions/updateBaselineInfo/config/fields.ts"],"names":[],"mappings":";;;AAAA,mEAAqE;AACrE,6BAAwC;AAExC,mCAAuC;AAE1B,QAAA,MAAM,GAAG;IACpB,UAAU,EAAE;QACV,EAAE,EAAE,YAAY;QAChB,KAAK,EAAE,cAAc;QACrB,WAAW,EACT,0IAA0I;QAC5I,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,KAAK;KAChB;IACD,YAAY,EAAE;QACZ,EAAE,EAAE,cAAc;QAClB,KAAK,EAAE,eAAe;QACtB,WAAW,EAAE;;;;;;;;;;QAUT;QACJ,IAAI,EAAE,2BAAS,CAAC,IAAI;QACpB,QAAQ,EAAE,KAAK;KAChB;CAC8B,CAAA;AAEpB,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,UAAU,EAAE,OAAC;SACV,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,EAAE;SACV,SAAS,CAAC,CAAC,GAAG,EAAE,EAAE;QACjB,MAAM,OAAO,GAAG,IAAA,cAAK,EAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,EAAE,CAAA;QAC7C,IAAI,IAAA,cAAK,EAAC,OAAO,CAAC,IAAI,IAAA,gBAAO,EAAC,OAAO,CAAC,EAAE,CAAC;YACvC,OAAO,SAAS,CAAA;QAClB,CAAC;QACD,OAAO,OAAO,CAAA;IAChB,CAAC,CAAC;IACJ,YAAY,EAAE,OAAC;SACZ,QAAQ,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;SACpB,SAAS,CAAC,CAAC,GAAG,EAAE,GAAG,EAAuB,EAAE;QAC3C,IAAI,CAAC;YACH,IAA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M,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,QAAQ,CAAC,CAAA;YAC/D,CAAC,CAAC,CAAA;YAEF,IAAI,CAAC,kBAAkB,EAAE,CAAC;gBACxB,GAAG,CAAC,QAAQ,CAAC;oBACX,IAAI,EAAE,QAAQ;oBACd,OAAO,EACL,4GAA4G;iBAC/G,CAAC,CAAA;gBACF,OAAO,OAAC,CAAC,KAAK,CAAA;YAChB,CAAC;YAED,IAAI,CAAC,yBAAyB,EAAE,CAAC;gBAC/B,GAAG,CAAC,QAAQ,CAAC;oBACX,IAAI,EAAE,QAAQ;oBACd,OAAO,EACL,kJAAkJ;iBACrJ,CAAC,CAAA;gBACF,OAAO,OAAC,CAAC,KAAK,CAAA;YAChB,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,OAAC,CAAC,KAAK,CAAA;QAChB,CAAC;IACH,CAAC,CAAC;CAC6C,CAAC,CAAA"}
|
|
@@ -16,7 +16,7 @@ exports.updateBaselineInfo = {
|
|
|
16
16
|
dataPoints: config_1.dataPoints,
|
|
17
17
|
previewable: false,
|
|
18
18
|
onEvent: async ({ payload, onComplete, helpers }) => {
|
|
19
|
-
const { fields: { baselineInfo }, pathway: { id:
|
|
19
|
+
const { fields: { careflowId: externalCareflowId, baselineInfo }, pathway: { id: currentCareflowId }, } = (0, extensions_core_1.validate)({
|
|
20
20
|
schema: zod_1.default.object({
|
|
21
21
|
fields: config_1.FieldsValidationSchema,
|
|
22
22
|
pathway: config_1.PathwayValidationSchema,
|
|
@@ -28,7 +28,7 @@ exports.updateBaselineInfo = {
|
|
|
28
28
|
updateBaselineInfo: {
|
|
29
29
|
__args: {
|
|
30
30
|
input: {
|
|
31
|
-
pathway_id:
|
|
31
|
+
pathway_id: externalCareflowId !== null && externalCareflowId !== void 0 ? externalCareflowId : currentCareflowId,
|
|
32
32
|
baseline_info: baselineInfo,
|
|
33
33
|
},
|
|
34
34
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateBaselineInfo.js","sourceRoot":"","sources":["../../../../../../extensions/awell/v1/actions/updateBaselineInfo/updateBaselineInfo.ts"],"names":[],"mappings":";;;;;;AAEA,mEAAkE;AAClE,qCAKiB;AACjB,8CAAmB;AAEN,QAAA,kBAAkB,GAA2C;IACxE,GAAG,EAAE,oBAAoB;IACzB,QAAQ,EAAE,0BAAQ,CAAC,QAAQ;IAC3B,KAAK,EAAE,4BAA4B;IACnC,WAAW,EACT,sGAAsG;IACxG,MAAM,EAAN,eAAM;IACN,UAAU,EAAV,mBAAU;IACV,WAAW,EAAE,KAAK;IAClB,OAAO,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,EAAiB,EAAE;QACjE,MAAM,EACJ,MAAM,EAAE,EAAE,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"updateBaselineInfo.js","sourceRoot":"","sources":["../../../../../../extensions/awell/v1/actions/updateBaselineInfo/updateBaselineInfo.ts"],"names":[],"mappings":";;;;;;AAEA,mEAAkE;AAClE,qCAKiB;AACjB,8CAAmB;AAEN,QAAA,kBAAkB,GAA2C;IACxE,GAAG,EAAE,oBAAoB;IACzB,QAAQ,EAAE,0BAAQ,CAAC,QAAQ;IAC3B,KAAK,EAAE,4BAA4B;IACnC,WAAW,EACT,sGAAsG;IACxG,MAAM,EAAN,eAAM;IACN,UAAU,EAAV,mBAAU;IACV,WAAW,EAAE,KAAK;IAClB,OAAO,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,EAAiB,EAAE;QACjE,MAAM,EACJ,MAAM,EAAE,EAAE,UAAU,EAAE,kBAAkB,EAAE,YAAY,EAAE,EACxD,OAAO,EAAE,EAAE,EAAE,EAAE,iBAAiB,EAAE,GACnC,GAAG,IAAA,0BAAQ,EAAC;YACX,MAAM,EAAE,aAAC,CAAC,MAAM,CAAC;gBACf,MAAM,EAAE,+BAAsB;gBAC9B,OAAO,EAAE,gCAAuB;aACjC,CAAC;YACF,OAAO;SACR,CAAC,CAAA;QAEF,MAAM,GAAG,GAAG,MAAM,OAAO,CAAC,QAAQ,EAAE,CAAA;QAEpC,MAAM,EAAE,kBAAkB,EAAE,GAAG,MAAM,GAAG,CAAC,aAAa,CAAC,QAAQ,CAAC;YAC9D,kBAAkB,EAAE;gBAClB,MAAM,EAAE;oBACN,KAAK,EAAE;wBACL,UAAU,EAAE,kBAAkB,aAAlB,kBAAkB,cAAlB,kBAAkB,GAAI,iBAAiB;wBACnD,aAAa,EAAE,YAAY;qBAC5B;iBACF;gBACD,IAAI,EAAE,IAAI;gBACV,OAAO,EAAE,IAAI;aACd;SACF,CAAC,CAAA;QAEF,MAAM,UAAU,CAAC;YACf,WAAW,EAAE;gBACX,OAAO,EAAE,kBAAkB,CAAC,OAAO,CAAC,QAAQ,EAAE;aAC/C;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA"}
|
|
@@ -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;
|