@awell-health/awell-extensions 1.1.23 → 1.1.25

Sign up to get free protection for your applications and to get access to all the features.
@@ -848,6 +848,128 @@ export declare const actions: {
848
848
  required: true;
849
849
  };
850
850
  }, "nonVisitNoteId" | "nonVisitNoteBulletId">;
851
+ updateNonVisitNote: import("@awell-health/extensions-core").Action<{
852
+ nonVisitNoteId: {
853
+ id: string;
854
+ label: string;
855
+ description: string;
856
+ type: import("@awell-health/extensions-core").FieldType.NUMERIC;
857
+ required: true;
858
+ };
859
+ nonVisitNoteBulletId: {
860
+ id: string;
861
+ label: string;
862
+ description: string;
863
+ type: import("@awell-health/extensions-core").FieldType.NUMERIC;
864
+ required: false;
865
+ };
866
+ text: {
867
+ id: string;
868
+ label: string;
869
+ description: string;
870
+ type: import("@awell-health/extensions-core").FieldType.TEXT;
871
+ required: false;
872
+ };
873
+ authorId: {
874
+ id: string;
875
+ label: string;
876
+ description: string;
877
+ type: import("@awell-health/extensions-core").FieldType.NUMERIC;
878
+ required: false;
879
+ };
880
+ patientId: {
881
+ id: string;
882
+ label: string;
883
+ description: string;
884
+ type: import("@awell-health/extensions-core").FieldType.NUMERIC;
885
+ required: false;
886
+ };
887
+ category: {
888
+ id: string;
889
+ label: string;
890
+ description: string;
891
+ type: import("@awell-health/extensions-core").FieldType.STRING;
892
+ required: false;
893
+ };
894
+ practiceId: {
895
+ id: string;
896
+ label: string;
897
+ description: string;
898
+ type: import("@awell-health/extensions-core").FieldType.NUMERIC;
899
+ required: false;
900
+ };
901
+ documentDate: {
902
+ id: string;
903
+ label: string;
904
+ description: string;
905
+ type: import("@awell-health/extensions-core").FieldType.DATE;
906
+ required: false;
907
+ };
908
+ chartDate: {
909
+ id: string;
910
+ label: string;
911
+ description: string;
912
+ type: import("@awell-health/extensions-core").FieldType.DATE;
913
+ required: false;
914
+ };
915
+ tags: {
916
+ id: string;
917
+ label: string;
918
+ description: string;
919
+ type: import("@awell-health/extensions-core").FieldType.STRING;
920
+ required: false;
921
+ };
922
+ signed_by: {
923
+ id: string;
924
+ label: string;
925
+ description: string;
926
+ type: import("@awell-health/extensions-core").FieldType.NUMERIC;
927
+ required: false;
928
+ };
929
+ }, {
930
+ base_url: {
931
+ key: string;
932
+ label: string;
933
+ obfuscated: false;
934
+ description: string;
935
+ required: true;
936
+ };
937
+ auth_url: {
938
+ key: string;
939
+ label: string;
940
+ obfuscated: false;
941
+ description: string;
942
+ required: true;
943
+ };
944
+ client_id: {
945
+ key: string;
946
+ label: string;
947
+ obfuscated: false;
948
+ description: string;
949
+ required: true;
950
+ };
951
+ client_secret: {
952
+ key: string;
953
+ label: string;
954
+ obfuscated: true;
955
+ description: string;
956
+ required: true;
957
+ };
958
+ username: {
959
+ key: string;
960
+ label: string;
961
+ obfuscated: false;
962
+ description: string;
963
+ required: true;
964
+ };
965
+ password: {
966
+ key: string;
967
+ label: string;
968
+ obfuscated: true;
969
+ description: string;
970
+ required: true;
971
+ };
972
+ }, string>;
851
973
  getNonVisitNote: import("@awell-health/extensions-core").Action<{
852
974
  nonVisitNoteId: {
853
975
  id: string;
@@ -9,7 +9,7 @@ const getAppointment_1 = require("./getAppointment");
9
9
  const findAppointments_1 = require("./findAppointments");
10
10
  const findPhysician_1 = require("./findPhysician");
11
11
  const createNonVisitNote_1 = require("./createNonVisitNote");
12
- // import { updateNonVisitNote } from './updateNonVisitNote'
12
+ const updateNonVisitNote_1 = require("./updateNonVisitNote");
13
13
  const getNonVisitNote_1 = require("./getNonVisitNote");
14
14
  const deleteNonVisitNote_1 = require("./deleteNonVisitNote");
15
15
  const getPhysician_1 = require("./getPhysician");
@@ -25,7 +25,7 @@ exports.actions = {
25
25
  getPhysician: getPhysician_1.getPhysician,
26
26
  findPhysician: findPhysician_1.findPhysician,
27
27
  createNonVisitNote: createNonVisitNote_1.createNonVisitNote,
28
- // updateNonVisitNote, // Disable for now, don't immediately see a use case for this action.
28
+ updateNonVisitNote: updateNonVisitNote_1.updateNonVisitNote,
29
29
  getNonVisitNote: getNonVisitNote_1.getNonVisitNote,
30
30
  deleteNonVisitNote: deleteNonVisitNote_1.deleteNonVisitNote,
31
31
  postLetter: postLetter_1.postLetter,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../extensions/elation/actions/index.ts"],"names":[],"mappings":";;;AAAA,6CAAyC;AACzC,mDAA+C;AAC/C,mDAA+C;AAC/C,2DAAuD;AACvD,qDAAiD;AACjD,yDAAqD;AACrD,mDAA+C;AAC/C,6DAAyD;AACzD,4DAA4D;AAC5D,uDAAmD;AACnD,6DAAyD;AACzD,iDAA6C;AAC7C,6CAAyC;AACzC,qDAAiD;AAEpC,QAAA,OAAO,GAAG;IACrB,UAAU,EAAV,uBAAU;IACV,aAAa,EAAb,6BAAa;IACb,aAAa,EAAb,6BAAa;IACb,iBAAiB,EAAjB,qCAAiB;IACjB,cAAc,EAAd,+BAAc;IACd,gBAAgB,EAAhB,mCAAgB;IAChB,YAAY,EAAZ,2BAAY;IACZ,aAAa,EAAb,6BAAa;IACb,kBAAkB,EAAlB,uCAAkB;IAClB,4FAA4F;IAC5F,eAAe,EAAf,iCAAe;IACf,kBAAkB,EAAlB,uCAAkB;IAClB,UAAU,EAAV,uBAAU;IACV,cAAc,EAAd,+BAAc;CACf,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../extensions/elation/actions/index.ts"],"names":[],"mappings":";;;AAAA,6CAAyC;AACzC,mDAA+C;AAC/C,mDAA+C;AAC/C,2DAAuD;AACvD,qDAAiD;AACjD,yDAAqD;AACrD,mDAA+C;AAC/C,6DAAyD;AACzD,6DAAyD;AACzD,uDAAmD;AACnD,6DAAyD;AACzD,iDAA6C;AAC7C,6CAAyC;AACzC,qDAAiD;AAEpC,QAAA,OAAO,GAAG;IACrB,UAAU,EAAV,uBAAU;IACV,aAAa,EAAb,6BAAa;IACb,aAAa,EAAb,6BAAa;IACb,iBAAiB,EAAjB,qCAAiB;IACjB,cAAc,EAAd,+BAAc;IACd,gBAAgB,EAAhB,mCAAgB;IAChB,YAAY,EAAZ,2BAAY;IACZ,aAAa,EAAb,6BAAa;IACb,kBAAkB,EAAlB,uCAAkB;IAClB,kBAAkB,EAAlB,uCAAkB;IAClB,eAAe,EAAf,iCAAe;IACf,kBAAkB,EAAlB,uCAAkB;IAClB,UAAU,EAAV,uBAAU;IACV,cAAc,EAAd,+BAAc;CACf,CAAA"}
@@ -1,9 +1,3 @@
1
1
  import { z } from 'zod';
2
2
  export declare const MessageValidationSchema: z.ZodString;
3
- export declare const ParametersValidationSchema: z.ZodObject<{
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;KACxC,MAAM,CAAC;IACN,UAAU,EAAE,OAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;CAC/B,CAAC;KACD,QAAQ,CAAC,OAAC,CAAC,GAAG,EAAE,CAAC,CAAA"}
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.ZodObject<{
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
  }>;
@@ -29,6 +29,7 @@ exports.CreateFlowExecutionSchema = zod_1.default
29
29
  settings: val.settings,
30
30
  fields: {
31
31
  ...val.fields,
32
+ parameters: JSON.parse(val.fields.parameters),
32
33
  from: (_a = val.fields.from) !== null && _a !== void 0 ? _a : val.settings.fromNumber,
33
34
  },
34
35
  };
@@ -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.ZodObject<{
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
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awell-health/awell-extensions",
3
- "version": "1.1.23",
3
+ "version": "1.1.25",
4
4
  "packageManager": "yarn@3.4.1",
5
5
  "main": "dist/src/index.js",
6
6
  "repository": {