@awell-health/awell-extensions 1.1.24 → 1.1.25
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/extensions/twilio/common/validation.d.ts +1 -7
- package/dist/extensions/twilio/common/validation.js +1 -5
- package/dist/extensions/twilio/common/validation.js.map +1 -1
- package/dist/extensions/twilio/v2/actions/createFlowExecution/config/actionSchema.d.ts +11 -57
- package/dist/extensions/twilio/v2/actions/createFlowExecution/config/actionSchema.js +1 -0
- package/dist/extensions/twilio/v2/actions/createFlowExecution/config/actionSchema.js.map +1 -1
- package/dist/extensions/twilio/v2/actions/createFlowExecution/config/fields.d.ts +3 -17
- package/package.json +1 -1
@@ -1,9 +1,3 @@
|
|
1
1
|
import { z } from 'zod';
|
2
2
|
export declare const MessageValidationSchema: z.ZodString;
|
3
|
-
export declare const ParametersValidationSchema: z.
|
4
|
-
patient_id: z.ZodOptional<z.ZodAny>;
|
5
|
-
}, "strip", z.ZodAny, z.objectOutputType<{
|
6
|
-
patient_id: z.ZodOptional<z.ZodAny>;
|
7
|
-
}, z.ZodAny, "strip">, z.objectInputType<{
|
8
|
-
patient_id: z.ZodOptional<z.ZodAny>;
|
9
|
-
}, z.ZodAny, "strip">>;
|
3
|
+
export declare const ParametersValidationSchema: z.ZodString;
|
@@ -7,9 +7,5 @@ exports.MessageValidationSchema = zod_1.z
|
|
7
7
|
.min(1, { message: 'Missing or empty message' })
|
8
8
|
.max(1600, { message: 'Message can not be longer than 1600 characters' });
|
9
9
|
// The expectation here is that any object can be passed
|
10
|
-
exports.ParametersValidationSchema = zod_1.z
|
11
|
-
.object({
|
12
|
-
patient_id: zod_1.z.any().optional(),
|
13
|
-
})
|
14
|
-
.catchall(zod_1.z.any());
|
10
|
+
exports.ParametersValidationSchema = zod_1.z.string();
|
15
11
|
//# sourceMappingURL=validation.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"validation.js","sourceRoot":"","sources":["../../../../extensions/twilio/common/validation.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEV,QAAA,uBAAuB,GAAG,OAAC;KACrC,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,0BAA0B,EAAE,CAAC;KAC/C,GAAG,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,gDAAgD,EAAE,CAAC,CAAA;AAE3E,wDAAwD;AAC3C,QAAA,0BAA0B,GAAG,OAAC
|
1
|
+
{"version":3,"file":"validation.js","sourceRoot":"","sources":["../../../../extensions/twilio/common/validation.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEV,QAAA,uBAAuB,GAAG,OAAC;KACrC,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,0BAA0B,EAAE,CAAC;KAC/C,GAAG,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,gDAAgD,EAAE,CAAC,CAAA;AAE3E,wDAAwD;AAC3C,QAAA,0BAA0B,GAAG,OAAC,CAAC,MAAM,EAAE,CAAA"}
|
@@ -19,33 +19,19 @@ export declare const CreateFlowExecutionSchema: z.ZodEffects<z.ZodEffects<z.ZodE
|
|
19
19
|
fields: z.ZodObject<{
|
20
20
|
recipient: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, import("libphonenumber-js").PhoneNumber | import("libphonenumber-js").ParseError, string>, import("libphonenumber-js").PhoneNumber | import("libphonenumber-js").ParseError, string>, import("libphonenumber-js").E164Number, string>;
|
21
21
|
from: z.ZodUnion<[z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, import("libphonenumber-js").PhoneNumber | import("libphonenumber-js").ParseError, string>, import("libphonenumber-js").PhoneNumber | import("libphonenumber-js").ParseError, string>, import("libphonenumber-js").E164Number, string>>, z.ZodEffects<z.ZodLiteral<"">, undefined, "">]>;
|
22
|
-
parameters: z.
|
23
|
-
patient_id: z.ZodOptional<z.ZodAny>;
|
24
|
-
}, "strip", z.ZodAny, z.objectOutputType<{
|
25
|
-
patient_id: z.ZodOptional<z.ZodAny>;
|
26
|
-
}, z.ZodAny, "strip">, z.objectInputType<{
|
27
|
-
patient_id: z.ZodOptional<z.ZodAny>;
|
28
|
-
}, z.ZodAny, "strip">>;
|
22
|
+
parameters: z.ZodString;
|
29
23
|
flow_id: z.ZodString;
|
30
24
|
}, "strip", z.ZodTypeAny, {
|
31
25
|
recipient: string & {
|
32
26
|
__tag?: "E164Number" | undefined;
|
33
27
|
};
|
34
28
|
flow_id: string;
|
35
|
-
parameters:
|
36
|
-
patient_id?: any;
|
37
|
-
} & {
|
38
|
-
[k: string]: any;
|
39
|
-
};
|
29
|
+
parameters: string;
|
40
30
|
from?: import("libphonenumber-js").E164Number | undefined;
|
41
31
|
}, {
|
42
32
|
recipient: string;
|
43
33
|
flow_id: string;
|
44
|
-
parameters:
|
45
|
-
patient_id?: any;
|
46
|
-
} & {
|
47
|
-
[k: string]: any;
|
48
|
-
};
|
34
|
+
parameters: string;
|
49
35
|
from?: string | undefined;
|
50
36
|
}>;
|
51
37
|
}, "strip", z.ZodTypeAny, {
|
@@ -60,11 +46,7 @@ export declare const CreateFlowExecutionSchema: z.ZodEffects<z.ZodEffects<z.ZodE
|
|
60
46
|
__tag?: "E164Number" | undefined;
|
61
47
|
};
|
62
48
|
flow_id: string;
|
63
|
-
parameters:
|
64
|
-
patient_id?: any;
|
65
|
-
} & {
|
66
|
-
[k: string]: any;
|
67
|
-
};
|
49
|
+
parameters: string;
|
68
50
|
from?: import("libphonenumber-js").E164Number | undefined;
|
69
51
|
};
|
70
52
|
}, {
|
@@ -77,11 +59,7 @@ export declare const CreateFlowExecutionSchema: z.ZodEffects<z.ZodEffects<z.ZodE
|
|
77
59
|
fields: {
|
78
60
|
recipient: string;
|
79
61
|
flow_id: string;
|
80
|
-
parameters:
|
81
|
-
patient_id?: any;
|
82
|
-
} & {
|
83
|
-
[k: string]: any;
|
84
|
-
};
|
62
|
+
parameters: string;
|
85
63
|
from?: string | undefined;
|
86
64
|
};
|
87
65
|
}>, {
|
@@ -96,11 +74,7 @@ export declare const CreateFlowExecutionSchema: z.ZodEffects<z.ZodEffects<z.ZodE
|
|
96
74
|
__tag?: "E164Number" | undefined;
|
97
75
|
};
|
98
76
|
flow_id: string;
|
99
|
-
parameters:
|
100
|
-
patient_id?: any;
|
101
|
-
} & {
|
102
|
-
[k: string]: any;
|
103
|
-
};
|
77
|
+
parameters: string;
|
104
78
|
from?: import("libphonenumber-js").E164Number | undefined;
|
105
79
|
};
|
106
80
|
}, {
|
@@ -113,11 +87,7 @@ export declare const CreateFlowExecutionSchema: z.ZodEffects<z.ZodEffects<z.ZodE
|
|
113
87
|
fields: {
|
114
88
|
recipient: string;
|
115
89
|
flow_id: string;
|
116
|
-
parameters:
|
117
|
-
patient_id?: any;
|
118
|
-
} & {
|
119
|
-
[k: string]: any;
|
120
|
-
};
|
90
|
+
parameters: string;
|
121
91
|
from?: string | undefined;
|
122
92
|
};
|
123
93
|
}>, {
|
@@ -128,16 +98,12 @@ export declare const CreateFlowExecutionSchema: z.ZodEffects<z.ZodEffects<z.ZodE
|
|
128
98
|
messagingServiceSid?: string | undefined;
|
129
99
|
};
|
130
100
|
fields: {
|
101
|
+
parameters: any;
|
131
102
|
from: import("libphonenumber-js").E164Number | undefined;
|
132
103
|
recipient: string & {
|
133
104
|
__tag?: "E164Number" | undefined;
|
134
105
|
};
|
135
106
|
flow_id: string;
|
136
|
-
parameters: {
|
137
|
-
patient_id?: any;
|
138
|
-
} & {
|
139
|
-
[k: string]: any;
|
140
|
-
};
|
141
107
|
};
|
142
108
|
}, {
|
143
109
|
settings: {
|
@@ -149,11 +115,7 @@ export declare const CreateFlowExecutionSchema: z.ZodEffects<z.ZodEffects<z.ZodE
|
|
149
115
|
fields: {
|
150
116
|
recipient: string;
|
151
117
|
flow_id: string;
|
152
|
-
parameters:
|
153
|
-
patient_id?: any;
|
154
|
-
} & {
|
155
|
-
[k: string]: any;
|
156
|
-
};
|
118
|
+
parameters: string;
|
157
119
|
from?: string | undefined;
|
158
120
|
};
|
159
121
|
}>, {
|
@@ -164,16 +126,12 @@ export declare const CreateFlowExecutionSchema: z.ZodEffects<z.ZodEffects<z.ZodE
|
|
164
126
|
messagingServiceSid?: string | undefined;
|
165
127
|
};
|
166
128
|
fields: {
|
129
|
+
parameters: any;
|
167
130
|
from: import("libphonenumber-js").E164Number | undefined;
|
168
131
|
recipient: string & {
|
169
132
|
__tag?: "E164Number" | undefined;
|
170
133
|
};
|
171
134
|
flow_id: string;
|
172
|
-
parameters: {
|
173
|
-
patient_id?: any;
|
174
|
-
} & {
|
175
|
-
[k: string]: any;
|
176
|
-
};
|
177
135
|
};
|
178
136
|
}, {
|
179
137
|
settings: {
|
@@ -185,11 +143,7 @@ export declare const CreateFlowExecutionSchema: z.ZodEffects<z.ZodEffects<z.ZodE
|
|
185
143
|
fields: {
|
186
144
|
recipient: string;
|
187
145
|
flow_id: string;
|
188
|
-
parameters:
|
189
|
-
patient_id?: any;
|
190
|
-
} & {
|
191
|
-
[k: string]: any;
|
192
|
-
};
|
146
|
+
parameters: string;
|
193
147
|
from?: string | undefined;
|
194
148
|
};
|
195
149
|
}>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"actionSchema.js","sourceRoot":"","sources":["../../../../../../../extensions/twilio/v2/actions/createFlowExecution/config/actionSchema.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAmB;AACnB,qCAAiD;AACjD,mCAA8B;AAC9B,mDAA+D;AAElD,QAAA,yBAAyB,GAAG,aAAC;KACvC,MAAM,CAAC;IACN,QAAQ,EAAE,mCAAwB;IAClC,MAAM,EAAE,+BAAsB;CAC/B,CAAC;KACD,WAAW,CAAC,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;IAC1B,8CAA8C;IAC9C,IAAI,IAAA,cAAK,EAAC,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,IAAA,cAAK,EAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE;QAChE,GAAG,CAAC,QAAQ,CAAC;YACX,IAAI,EAAE,aAAC,CAAC,YAAY,CAAC,MAAM;YAC3B,KAAK,EAAE,IAAI;YACX,OAAO,EACL,oEAAoE;SACvE,CAAC,CAAA;KACH;AACH,CAAC,CAAC;KACD,SAAS,CAAC,CAAC,GAAG,EAAE,EAAE;;IACjB,OAAO;QACL,QAAQ,EAAE,GAAG,CAAC,QAAQ;QACtB,MAAM,EAAE;YACN,GAAG,GAAG,CAAC,MAAM;YACb,IAAI,EAAE,MAAA,GAAG,CAAC,MAAM,CAAC,IAAI,mCAAI,GAAG,CAAC,QAAQ,CAAC,UAAU;SACjD;KACF,CAAA;AACH,CAAC,CAAC;KACD,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,IAAA,cAAK,EAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,OAAO,CAAC,CAAC,MAAM,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAA"}
|
1
|
+
{"version":3,"file":"actionSchema.js","sourceRoot":"","sources":["../../../../../../../extensions/twilio/v2/actions/createFlowExecution/config/actionSchema.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAmB;AACnB,qCAAiD;AACjD,mCAA8B;AAC9B,mDAA+D;AAElD,QAAA,yBAAyB,GAAG,aAAC;KACvC,MAAM,CAAC;IACN,QAAQ,EAAE,mCAAwB;IAClC,MAAM,EAAE,+BAAsB;CAC/B,CAAC;KACD,WAAW,CAAC,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;IAC1B,8CAA8C;IAC9C,IAAI,IAAA,cAAK,EAAC,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,IAAA,cAAK,EAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE;QAChE,GAAG,CAAC,QAAQ,CAAC;YACX,IAAI,EAAE,aAAC,CAAC,YAAY,CAAC,MAAM;YAC3B,KAAK,EAAE,IAAI;YACX,OAAO,EACL,oEAAoE;SACvE,CAAC,CAAA;KACH;AACH,CAAC,CAAC;KACD,SAAS,CAAC,CAAC,GAAG,EAAE,EAAE;;IACjB,OAAO;QACL,QAAQ,EAAE,GAAG,CAAC,QAAQ;QACtB,MAAM,EAAE;YACN,GAAG,GAAG,CAAC,MAAM;YACb,UAAU,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,UAAU,CAAC;YAC7C,IAAI,EAAE,MAAA,GAAG,CAAC,MAAM,CAAC,IAAI,mCAAI,GAAG,CAAC,QAAQ,CAAC,UAAU;SACjD;KACF,CAAA;AACH,CAAC,CAAC;KACD,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,IAAA,cAAK,EAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,OAAO,CAAC,CAAC,MAAM,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAA"}
|
@@ -35,32 +35,18 @@ export declare const fields: {
|
|
35
35
|
export declare const FieldsValidationSchema: z.ZodObject<{
|
36
36
|
recipient: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, import("libphonenumber-js").PhoneNumber | import("libphonenumber-js").ParseError, string>, import("libphonenumber-js").PhoneNumber | import("libphonenumber-js").ParseError, string>, import("libphonenumber-js").E164Number, string>;
|
37
37
|
from: z.ZodUnion<[z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, import("libphonenumber-js").PhoneNumber | import("libphonenumber-js").ParseError, string>, import("libphonenumber-js").PhoneNumber | import("libphonenumber-js").ParseError, string>, import("libphonenumber-js").E164Number, string>>, z.ZodEffects<z.ZodLiteral<"">, undefined, "">]>;
|
38
|
-
parameters: z.
|
39
|
-
patient_id: z.ZodOptional<z.ZodAny>;
|
40
|
-
}, "strip", z.ZodAny, z.objectOutputType<{
|
41
|
-
patient_id: z.ZodOptional<z.ZodAny>;
|
42
|
-
}, z.ZodAny, "strip">, z.objectInputType<{
|
43
|
-
patient_id: z.ZodOptional<z.ZodAny>;
|
44
|
-
}, z.ZodAny, "strip">>;
|
38
|
+
parameters: z.ZodString;
|
45
39
|
flow_id: z.ZodString;
|
46
40
|
}, "strip", z.ZodTypeAny, {
|
47
41
|
recipient: string & {
|
48
42
|
__tag?: "E164Number" | undefined;
|
49
43
|
};
|
50
44
|
flow_id: string;
|
51
|
-
parameters:
|
52
|
-
patient_id?: any;
|
53
|
-
} & {
|
54
|
-
[k: string]: any;
|
55
|
-
};
|
45
|
+
parameters: string;
|
56
46
|
from?: import("libphonenumber-js").E164Number | undefined;
|
57
47
|
}, {
|
58
48
|
recipient: string;
|
59
49
|
flow_id: string;
|
60
|
-
parameters:
|
61
|
-
patient_id?: any;
|
62
|
-
} & {
|
63
|
-
[k: string]: any;
|
64
|
-
};
|
50
|
+
parameters: string;
|
65
51
|
from?: string | undefined;
|
66
52
|
}>;
|