@awell-health/awell-extensions 2.0.231 → 2.0.233

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 (60) hide show
  1. package/dist/extensions/awell/index.js +1 -0
  2. package/dist/extensions/awell/index.js.map +1 -1
  3. package/dist/extensions/awell/v1/actions/index.d.ts +1 -0
  4. package/dist/extensions/awell/v1/actions/index.js +3 -1
  5. package/dist/extensions/awell/v1/actions/index.js.map +1 -1
  6. package/dist/extensions/awell/v1/actions/listFormAnswers/__testdata__/formDefinitionResponse.d.ts +36 -0
  7. package/dist/extensions/awell/v1/actions/listFormAnswers/__testdata__/formDefinitionResponse.js +281 -0
  8. package/dist/extensions/awell/v1/actions/listFormAnswers/__testdata__/formDefinitionResponse.js.map +1 -0
  9. package/dist/extensions/awell/v1/actions/listFormAnswers/__testdata__/formResponseResponse.d.ts +17 -0
  10. package/dist/extensions/awell/v1/actions/listFormAnswers/__testdata__/formResponseResponse.js +94 -0
  11. package/dist/extensions/awell/v1/actions/listFormAnswers/__testdata__/formResponseResponse.js.map +1 -0
  12. package/dist/extensions/awell/v1/actions/listFormAnswers/__testdata__/index.d.ts +3 -0
  13. package/dist/extensions/awell/v1/actions/listFormAnswers/__testdata__/index.js +20 -0
  14. package/dist/extensions/awell/v1/actions/listFormAnswers/__testdata__/index.js.map +1 -0
  15. package/dist/extensions/awell/v1/actions/listFormAnswers/__testdata__/pathwayActivitiesResponse.d.ts +15 -0
  16. package/dist/extensions/awell/v1/actions/listFormAnswers/__testdata__/pathwayActivitiesResponse.js +33 -0
  17. package/dist/extensions/awell/v1/actions/listFormAnswers/__testdata__/pathwayActivitiesResponse.js.map +1 -0
  18. package/dist/extensions/awell/v1/actions/listFormAnswers/config/dataPoints.d.ts +6 -0
  19. package/dist/extensions/awell/v1/actions/listFormAnswers/config/dataPoints.js +10 -0
  20. package/dist/extensions/awell/v1/actions/listFormAnswers/config/dataPoints.js.map +1 -0
  21. package/dist/extensions/awell/v1/actions/listFormAnswers/config/fields.d.ts +57 -0
  22. package/dist/extensions/awell/v1/actions/listFormAnswers/config/fields.js +49 -0
  23. package/dist/extensions/awell/v1/actions/listFormAnswers/config/fields.js.map +1 -0
  24. package/dist/extensions/awell/v1/actions/listFormAnswers/config/index.d.ts +2 -0
  25. package/dist/extensions/awell/v1/actions/listFormAnswers/config/index.js +9 -0
  26. package/dist/extensions/awell/v1/actions/listFormAnswers/config/index.js.map +1 -0
  27. package/dist/extensions/awell/v1/actions/listFormAnswers/index.d.ts +1 -0
  28. package/dist/extensions/awell/v1/actions/listFormAnswers/index.js +18 -0
  29. package/dist/extensions/awell/v1/actions/listFormAnswers/index.js.map +1 -0
  30. package/dist/extensions/awell/v1/actions/listFormAnswers/lib/generateFormOutput.d.ts +19 -0
  31. package/dist/extensions/awell/v1/actions/listFormAnswers/lib/generateFormOutput.js +141 -0
  32. package/dist/extensions/awell/v1/actions/listFormAnswers/lib/generateFormOutput.js.map +1 -0
  33. package/dist/extensions/awell/v1/actions/listFormAnswers/listFormAnswers.d.ts +4 -0
  34. package/dist/extensions/awell/v1/actions/listFormAnswers/listFormAnswers.js +51 -0
  35. package/dist/extensions/awell/v1/actions/listFormAnswers/listFormAnswers.js.map +1 -0
  36. package/dist/extensions/bland/actions/index.d.ts +1 -1
  37. package/dist/extensions/bland/actions/sendCall/config/fields.d.ts +2 -2
  38. package/dist/extensions/bland/actions/sendCallWithPathway/config/fields.d.ts +4 -4
  39. package/dist/extensions/bland/api/schema/GetCallDetails.schema.d.ts +2 -2
  40. package/dist/extensions/bland/api/schema/SendCall.schema.d.ts +6 -6
  41. package/dist/extensions/braze/actions/scheduleEmail/config.d.ts +2 -2
  42. package/dist/extensions/braze/actions/sendEmail/config.d.ts +2 -2
  43. package/dist/extensions/calDotCom/actions/createBooking/config/fields.d.ts +2 -2
  44. package/dist/extensions/calDotCom/schema.d.ts +6 -6
  45. package/dist/extensions/dockHealth/api/schema/task.schema.d.ts +2 -2
  46. package/dist/extensions/dropboxSign/settings.d.ts +2 -2
  47. package/dist/extensions/elation/actions/createPatient/config/fields.d.ts +4 -4
  48. package/dist/extensions/elation/actions/index.d.ts +2 -2
  49. package/dist/extensions/elation/validation/appointment.zod.d.ts +2 -2
  50. package/dist/extensions/elation/validation/patient.zod.d.ts +4 -4
  51. package/dist/extensions/healthie/actions/createAppointment/config/fields.d.ts +1 -1
  52. package/dist/extensions/hubspot/actions/sendEmailWithSmtp/config/fields.d.ts +2 -2
  53. package/dist/extensions/hubspot/lib/smtpApi/smtp.schema.d.ts +2 -2
  54. package/dist/extensions/infobip/v1/actions/sendEmail/config/fields.d.ts +2 -2
  55. package/dist/extensions/mailgun/settings.d.ts +2 -2
  56. package/dist/extensions/mailgun/v1/actions/sendEmail/config/fields.d.ts +1 -1
  57. package/dist/extensions/mailgun/v1/actions/sendEmailWithTemplate/config/fields.d.ts +1 -1
  58. package/dist/extensions/rest/actions/index.d.ts +1 -1
  59. package/dist/extensions/sendgrid-extension/v1/actions/sendEmailWithTemplate/config/fields.d.ts +2 -2
  60. package/package.json +1 -1
@@ -104,10 +104,10 @@ export declare const BookingSchema: z.ZodObject<{
104
104
  startTime: string;
105
105
  id: number;
106
106
  title: string;
107
- description: string;
108
107
  metadata: {
109
108
  videoCallUrl?: string | undefined;
110
109
  };
110
+ description: string;
111
111
  user: {
112
112
  email: string;
113
113
  timeZone: string;
@@ -136,10 +136,10 @@ export declare const BookingSchema: z.ZodObject<{
136
136
  startTime: string;
137
137
  id: number;
138
138
  title: string;
139
- description: string;
140
139
  metadata: {
141
140
  videoCallUrl?: string | undefined;
142
141
  };
142
+ description: string;
143
143
  user: {
144
144
  email: string;
145
145
  timeZone: string;
@@ -246,10 +246,10 @@ export declare const GetBookingResponseSchema: z.ZodObject<{
246
246
  startTime: string;
247
247
  id: number;
248
248
  title: string;
249
- description: string;
250
249
  metadata: {
251
250
  videoCallUrl?: string | undefined;
252
251
  };
252
+ description: string;
253
253
  user: {
254
254
  email: string;
255
255
  timeZone: string;
@@ -278,10 +278,10 @@ export declare const GetBookingResponseSchema: z.ZodObject<{
278
278
  startTime: string;
279
279
  id: number;
280
280
  title: string;
281
- description: string;
282
281
  metadata: {
283
282
  videoCallUrl?: string | undefined;
284
283
  };
284
+ description: string;
285
285
  user: {
286
286
  email: string;
287
287
  timeZone: string;
@@ -312,10 +312,10 @@ export declare const GetBookingResponseSchema: z.ZodObject<{
312
312
  startTime: string;
313
313
  id: number;
314
314
  title: string;
315
- description: string;
316
315
  metadata: {
317
316
  videoCallUrl?: string | undefined;
318
317
  };
318
+ description: string;
319
319
  user: {
320
320
  email: string;
321
321
  timeZone: string;
@@ -346,10 +346,10 @@ export declare const GetBookingResponseSchema: z.ZodObject<{
346
346
  startTime: string;
347
347
  id: number;
348
348
  title: string;
349
- description: string;
350
349
  metadata: {
351
350
  videoCallUrl?: string | undefined;
352
351
  };
352
+ description: string;
353
353
  user: {
354
354
  email: string;
355
355
  timeZone: string;
@@ -192,7 +192,7 @@ export declare const TaskSchema: z.ZodObject<{
192
192
  identifier?: string | undefined;
193
193
  location?: string | undefined;
194
194
  };
195
- type?: "IN_APP" | "EMAIL" | "TEMPLATE" | "BUNDLE" | undefined;
195
+ type?: "EMAIL" | "IN_APP" | "TEMPLATE" | "BUNDLE" | undefined;
196
196
  priority?: "LOW" | "MEDIUM" | "HIGH" | "NONE" | undefined;
197
197
  patient?: {
198
198
  id: string;
@@ -280,7 +280,7 @@ export declare const TaskSchema: z.ZodObject<{
280
280
  identifier?: string | undefined;
281
281
  location?: string | undefined;
282
282
  };
283
- type?: "IN_APP" | "EMAIL" | "TEMPLATE" | "BUNDLE" | undefined;
283
+ type?: "EMAIL" | "IN_APP" | "TEMPLATE" | "BUNDLE" | undefined;
284
284
  priority?: "LOW" | "MEDIUM" | "HIGH" | "NONE" | undefined;
285
285
  patient?: {
286
286
  id: string;
@@ -25,7 +25,7 @@ export declare const settings: {
25
25
  export declare const SettingsValidationSchema: z.ZodObject<{
26
26
  apiKey: z.ZodString;
27
27
  clientId: z.ZodString;
28
- testMode: z.ZodEffects<z.ZodOptional<z.ZodEnum<["Yes", "No", "yes", "no"]>>, boolean, "Yes" | "No" | "yes" | "no" | undefined>;
28
+ testMode: z.ZodEffects<z.ZodOptional<z.ZodEnum<["Yes", "No", "yes", "no"]>>, boolean, "No" | "Yes" | "yes" | "no" | undefined>;
29
29
  }, "strip", z.ZodTypeAny, {
30
30
  apiKey: string;
31
31
  clientId: string;
@@ -33,6 +33,6 @@ export declare const SettingsValidationSchema: z.ZodObject<{
33
33
  }, {
34
34
  apiKey: string;
35
35
  clientId: string;
36
- testMode?: "Yes" | "No" | "yes" | "no" | undefined;
36
+ testMode?: "No" | "Yes" | "yes" | "no" | undefined;
37
37
  }>;
38
38
  export declare const validateSettings: (settings: unknown) => z.infer<typeof SettingsValidationSchema>;
@@ -31,8 +31,8 @@ export declare const fields: {
31
31
  required: true;
32
32
  options: {
33
33
  dropdownOptions: {
34
- label: "Male" | "Female" | "Other" | "Unknown";
35
- value: "Male" | "Female" | "Other" | "Unknown";
34
+ label: "Unknown" | "Male" | "Female" | "Other";
35
+ value: "Unknown" | "Male" | "Female" | "Other";
36
36
  }[];
37
37
  };
38
38
  };
@@ -213,7 +213,7 @@ export declare const FieldsValidationSchema: z.ZodObject<{
213
213
  firstName: string;
214
214
  lastName: string;
215
215
  dob: string;
216
- sex: "Male" | "Female" | "Other" | "Unknown";
216
+ sex: "Unknown" | "Male" | "Female" | "Other";
217
217
  primaryPhysicianId: number;
218
218
  caregiverPracticeId: number;
219
219
  email?: string | undefined;
@@ -236,7 +236,7 @@ export declare const FieldsValidationSchema: z.ZodObject<{
236
236
  firstName: string;
237
237
  lastName: string;
238
238
  dob: Date;
239
- sex: "Male" | "Female" | "Other" | "Unknown";
239
+ sex: "Unknown" | "Male" | "Female" | "Other";
240
240
  primaryPhysicianId: number;
241
241
  caregiverPracticeId: number;
242
242
  email?: string | undefined;
@@ -88,8 +88,8 @@ export declare const actions: {
88
88
  required: true;
89
89
  options: {
90
90
  dropdownOptions: {
91
- label: "Male" | "Female" | "Other" | "Unknown";
92
- value: "Male" | "Female" | "Other" | "Unknown";
91
+ label: "Unknown" | "Male" | "Female" | "Other";
92
+ value: "Unknown" | "Male" | "Female" | "Other";
93
93
  }[];
94
94
  };
95
95
  };
@@ -63,8 +63,8 @@ export declare const appointmentSchema: z.ZodObject<{
63
63
  room?: string | undefined;
64
64
  } | undefined;
65
65
  duration?: number | undefined;
66
- description?: string | undefined;
67
66
  metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
67
+ description?: string | undefined;
68
68
  service_location?: number | undefined;
69
69
  telehealth_details?: string | undefined;
70
70
  }, {
@@ -83,8 +83,8 @@ export declare const appointmentSchema: z.ZodObject<{
83
83
  room?: string | undefined;
84
84
  } | undefined;
85
85
  duration?: number | undefined;
86
- description?: string | undefined;
87
86
  metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
87
+ description?: string | undefined;
88
88
  service_location?: number | undefined;
89
89
  telehealth_details?: string | undefined;
90
90
  }>;
@@ -482,7 +482,7 @@ export declare const patientSchema: z.ZodObject<{
482
482
  metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
483
483
  }, "strict", z.ZodTypeAny, {
484
484
  dob: string;
485
- sex: "Male" | "Female" | "Other" | "Unknown";
485
+ sex: "Unknown" | "Male" | "Female" | "Other";
486
486
  first_name: string;
487
487
  last_name: string;
488
488
  primary_physician: number;
@@ -615,7 +615,7 @@ export declare const patientSchema: z.ZodObject<{
615
615
  } | null | undefined;
616
616
  }, {
617
617
  dob: Date;
618
- sex: "Male" | "Female" | "Other" | "Unknown";
618
+ sex: "Unknown" | "Male" | "Female" | "Other";
619
619
  first_name: string;
620
620
  last_name: string;
621
621
  primary_physician: number;
@@ -1075,7 +1075,7 @@ export declare const updatePatientSchema: z.ZodObject<{
1075
1075
  metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
1076
1076
  }, "strict", z.ZodTypeAny, {
1077
1077
  dob?: string | null | undefined;
1078
- sex?: "Male" | "Female" | "Other" | "Unknown" | null | undefined;
1078
+ sex?: "Unknown" | "Male" | "Female" | "Other" | null | undefined;
1079
1079
  address?: {
1080
1080
  city: string;
1081
1081
  state: string;
@@ -1207,7 +1207,7 @@ export declare const updatePatientSchema: z.ZodObject<{
1207
1207
  } | null | undefined;
1208
1208
  }, {
1209
1209
  dob?: Date | null | undefined;
1210
- sex?: "Male" | "Female" | "Other" | "Unknown" | null | undefined;
1210
+ sex?: "Unknown" | "Male" | "Female" | "Other" | null | undefined;
1211
1211
  address?: {
1212
1212
  city: string;
1213
1213
  state: string;
@@ -69,8 +69,8 @@ export declare const FieldsValidationSchema: z.ZodObject<{
69
69
  }, "strip", z.ZodTypeAny, {
70
70
  patientId: string;
71
71
  appointmentTypeId: string;
72
- datetime: string;
73
72
  metadata: Record<string, any>;
73
+ datetime: string;
74
74
  contactTypeId: string;
75
75
  notes?: string | undefined;
76
76
  otherPartyId?: string | undefined;
@@ -37,12 +37,12 @@ export declare const FieldsValidationSchema: z.ZodObject<{
37
37
  message: z.ZodString;
38
38
  }, "strip", z.ZodTypeAny, {
39
39
  message: string;
40
+ subject: string;
40
41
  from: string;
41
42
  to: string;
42
- subject: string;
43
43
  }, {
44
44
  message: string;
45
+ subject: string;
45
46
  from: string;
46
47
  to: string;
47
- subject: string;
48
48
  }>;
@@ -6,13 +6,13 @@ export declare const SendEmailSchema: z.ZodObject<{
6
6
  message: z.ZodString;
7
7
  }, "strip", z.ZodTypeAny, {
8
8
  message: string;
9
+ subject: string;
9
10
  from: string;
10
11
  to: string;
11
- subject: string;
12
12
  }, {
13
13
  message: string;
14
+ subject: string;
14
15
  from: string;
15
16
  to: string;
16
- subject: string;
17
17
  }>;
18
18
  export type SendEmailType = z.infer<typeof SendEmailSchema>;
@@ -36,13 +36,13 @@ export declare const FieldsValidationSchema: z.ZodObject<{
36
36
  subject: z.ZodString;
37
37
  content: z.ZodString;
38
38
  }, "strip", z.ZodTypeAny, {
39
- to: string;
40
39
  subject: string;
40
+ to: string;
41
41
  content: string;
42
42
  from?: string | undefined;
43
43
  }, {
44
- to: string;
45
44
  subject: string;
45
+ to: string;
46
46
  content: string;
47
47
  from?: string | undefined;
48
48
  }>;
@@ -50,7 +50,7 @@ export declare const SettingsValidationSchema: z.ZodObject<{
50
50
  fromName: z.ZodString;
51
51
  fromEmail: z.ZodTypeAny;
52
52
  region: z.ZodOptional<z.ZodEnum<["EU", "eu", "US", "us"]>>;
53
- testMode: z.ZodEffects<z.ZodOptional<z.ZodEnum<["Yes", "yes", "No", "no"]>>, boolean, "Yes" | "No" | "yes" | "no" | undefined>;
53
+ testMode: z.ZodEffects<z.ZodOptional<z.ZodEnum<["Yes", "yes", "No", "no"]>>, boolean, "No" | "Yes" | "yes" | "no" | undefined>;
54
54
  }, "strip", z.ZodTypeAny, {
55
55
  apiKey: string;
56
56
  fromName: string;
@@ -62,7 +62,7 @@ export declare const SettingsValidationSchema: z.ZodObject<{
62
62
  apiKey: string;
63
63
  fromName: string;
64
64
  domain: string;
65
- testMode?: "Yes" | "No" | "yes" | "no" | undefined;
65
+ testMode?: "No" | "Yes" | "yes" | "no" | undefined;
66
66
  fromEmail?: any;
67
67
  region?: "EU" | "US" | "eu" | "us" | undefined;
68
68
  }>;
@@ -33,8 +33,8 @@ export declare const FieldsValidationSchema: z.ZodObject<{
33
33
  body: z.ZodString;
34
34
  }, "strip", z.ZodTypeAny, {
35
35
  body: string;
36
- to: string[];
37
36
  subject: string;
37
+ to: string[];
38
38
  }, {
39
39
  body: string;
40
40
  subject: string;
@@ -64,6 +64,7 @@ export declare const FieldsValidationSchema: z.ZodObject<{
64
64
  [key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
65
65
  } | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null, string | undefined>;
66
66
  }, "strip", z.ZodTypeAny, {
67
+ subject: string;
67
68
  to: string[];
68
69
  variables: string | number | boolean | {
69
70
  [key: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
@@ -90,7 +91,6 @@ export declare const FieldsValidationSchema: z.ZodObject<{
90
91
  } | (string | number | boolean | {
91
92
  [key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
92
93
  } | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
93
- subject: string;
94
94
  template: string;
95
95
  }, {
96
96
  subject: string;
@@ -28,6 +28,6 @@ declare const actions: {
28
28
  type: import("@awell-health/extensions-core").FieldType.JSON;
29
29
  required: false;
30
30
  };
31
- }, {}, "statusCode" | "response">;
31
+ }, {}, "response" | "statusCode">;
32
32
  };
33
33
  export default actions;
@@ -58,14 +58,14 @@ export declare const FieldsValidationSchema: z.ZodObject<{
58
58
  }, "strip", z.ZodTypeAny, {
59
59
  templateId: string;
60
60
  dynamicTemplateData: TemplateData;
61
- to?: any;
62
61
  subject?: string | undefined;
62
+ to?: any;
63
63
  fromName?: string | undefined;
64
64
  fromEmail?: any;
65
65
  }, {
66
66
  templateId: string;
67
- to?: any;
68
67
  subject?: string | undefined;
68
+ to?: any;
69
69
  fromName?: string | undefined;
70
70
  fromEmail?: any;
71
71
  dynamicTemplateData?: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awell-health/awell-extensions",
3
- "version": "2.0.231",
3
+ "version": "2.0.233",
4
4
  "packageManager": "yarn@4.5.3",
5
5
  "main": "dist/src/index.js",
6
6
  "repository": {