@awell-health/awell-extensions 1.1.43-beta47 → 1.1.43-beta50

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 (66) hide show
  1. package/dist/extensions/athenahealth/actions/index.d.ts +1 -1
  2. package/dist/extensions/athenahealth/settings.d.ts +2 -2
  3. package/dist/extensions/awell/v1/actions/updatePatient/config/fields.d.ts +2 -2
  4. package/dist/extensions/calDotCom/actions/createBooking/config/fields.d.ts +12 -12
  5. package/dist/extensions/calDotCom/actions/updateBooking/config/fields.d.ts +6 -6
  6. package/dist/extensions/calDotCom/schema.d.ts +70 -70
  7. package/dist/extensions/calendly/schema.d.ts +262 -262
  8. package/dist/extensions/calendly/webhooks/index.d.ts +1 -1
  9. package/dist/extensions/canvasMedical/v1/actions/createClaim/config/fields.d.ts +2 -2
  10. package/dist/extensions/canvasMedical/v1/actions/createCoverage/config/fields.d.ts +2 -2
  11. package/dist/extensions/canvasMedical/v1/actions/createQuestionnaireResponses/config/fields.d.ts +2 -2
  12. package/dist/extensions/canvasMedical/v1/actions/updateCoverage/config/fields.d.ts +4 -4
  13. package/dist/extensions/canvasMedical/v1/validation/address.zod.d.ts +4 -4
  14. package/dist/extensions/canvasMedical/v1/validation/appointment.zod.d.ts +48 -48
  15. package/dist/extensions/canvasMedical/v1/validation/claim.d.ts +6 -6
  16. package/dist/extensions/canvasMedical/v1/validation/coding.zod.d.ts +2 -2
  17. package/dist/extensions/canvasMedical/v1/validation/coverage.zod.d.ts +6 -6
  18. package/dist/extensions/canvasMedical/v1/validation/identifier.zod.d.ts +8 -8
  19. package/dist/extensions/canvasMedical/v1/validation/patient.zod.d.ts +148 -148
  20. package/dist/extensions/canvasMedical/v1/validation/questionnaireResponses.zod.d.ts +30 -30
  21. package/dist/extensions/canvasMedical/v1/validation/settings.zod.d.ts +4 -4
  22. package/dist/extensions/canvasMedical/v1/validation/task.zod.d.ts +12 -12
  23. package/dist/extensions/collectData/v1/actions/remoteSingleSelect/config/fields.d.ts +2 -2
  24. package/dist/extensions/dockHealth/api/schema/atoms/patientReference.schema.d.ts +2 -2
  25. package/dist/extensions/dockHealth/api/schema/atoms/taskGroup.schema.d.ts +2 -2
  26. package/dist/extensions/dockHealth/api/schema/atoms/taskListReference.schema.d.ts +2 -2
  27. package/dist/extensions/dockHealth/api/schema/atoms/taskReference.schema.d.ts +2 -2
  28. package/dist/extensions/dockHealth/api/schema/atoms/taskWorkflowStatusReference.schema.d.ts +2 -2
  29. package/dist/extensions/dockHealth/api/schema/atoms/userReference.schema.d.ts +2 -2
  30. package/dist/extensions/dockHealth/api/schema/patient.schema.d.ts +10 -10
  31. package/dist/extensions/dockHealth/api/schema/task.schema.d.ts +77 -77
  32. package/dist/extensions/dockHealth/lib/dock.types.d.ts +2 -2
  33. package/dist/extensions/elation/actions/index.d.ts +2 -2
  34. package/dist/extensions/elation/validation/appointment.zod.d.ts +18 -18
  35. package/dist/extensions/elation/validation/labOrder.zod.d.ts +2 -2
  36. package/dist/extensions/elation/validation/nonVisitNote.zod.d.ts +6 -6
  37. package/dist/extensions/elation/validation/patient.zod.d.ts +116 -116
  38. package/dist/extensions/elation/validation/physician.zod.d.ts +2 -2
  39. package/dist/extensions/elation/validation/settings.zod.d.ts +6 -6
  40. package/dist/extensions/formsort/settings.d.ts +3 -3
  41. package/dist/extensions/healthie/lib/validation/createTask.zod.d.ts +1 -1
  42. package/dist/extensions/healthie/lib/validation/sendFormCompletionRequest.zod.d.ts +4 -4
  43. package/dist/extensions/infobip/v1/actions/sendEmail/config/fields.d.ts +2 -2
  44. package/dist/extensions/mailgun/settings.d.ts +1 -1
  45. package/dist/extensions/mailgun/v1/actions/sendEmailWithTemplate/config/fields.d.ts +2 -2
  46. package/dist/extensions/math/v1/actions/calculateDateDifference/config/fields.d.ts +2 -2
  47. package/dist/extensions/math/v1/actions/generateRandomNumber/config/fields.d.ts +2 -2
  48. package/dist/extensions/medplum/actions/createPatient/config/fields.d.ts +4 -4
  49. package/dist/extensions/medplum/actions/createServiceRequest/config/fields.d.ts +4 -4
  50. package/dist/extensions/medplum/actions/createTask/config/fields.d.ts +6 -6
  51. package/dist/extensions/medplum/fhir/schemas/atoms/PeriodSchema.d.ts +2 -2
  52. package/dist/extensions/medplum/fhir/schemas/resources/patient.schema.d.ts +4 -4
  53. package/dist/extensions/medplum/fhir/schemas/resources/serviceRequest.schema.d.ts +4 -4
  54. package/dist/extensions/medplum/fhir/schemas/resources/task.schema.d.ts +6 -6
  55. package/dist/extensions/metriport/actions/index.d.ts +1 -1
  56. package/dist/extensions/metriport/actions/patient/validation.d.ts +4 -4
  57. package/dist/extensions/stripe/actions/createCustomer/config/fields.d.ts +2 -2
  58. package/dist/extensions/stripe/actions/embeddedCheckout/config/fields.d.ts +2 -2
  59. package/dist/extensions/talkDesk/settings.d.ts +1 -1
  60. package/dist/extensions/textline/client/schema.d.ts +10 -10
  61. package/dist/extensions/westFax/actions/sendFax/sendFax.test.js +13 -3
  62. package/dist/extensions/westFax/actions/sendFax/sendFax.test.js.map +1 -1
  63. package/dist/extensions/westFax/settings.d.ts +2 -2
  64. package/dist/extensions/zendesk/v1/actions/createTask/config/fields.d.ts +2 -2
  65. package/dist/extensions/zusHealth/validation/settings.zod.d.ts +6 -6
  66. package/package.json +2 -1
@@ -8,16 +8,16 @@ export declare const physicianSchema: z.ZodObject<{
8
8
  license_state: z.ZodOptional<z.ZodString>;
9
9
  credentials: z.ZodOptional<z.ZodString>;
10
10
  }, "strict", z.ZodTypeAny, {
11
- email?: string | undefined;
12
11
  credentials?: string | undefined;
12
+ email?: string | undefined;
13
13
  first_name?: string | undefined;
14
14
  last_name?: string | undefined;
15
15
  npi?: string | undefined;
16
16
  license?: string | undefined;
17
17
  license_state?: string | undefined;
18
18
  }, {
19
- email?: string | undefined;
20
19
  credentials?: string | undefined;
20
+ email?: string | undefined;
21
21
  first_name?: string | undefined;
22
22
  last_name?: string | undefined;
23
23
  npi?: string | undefined;
@@ -7,17 +7,17 @@ export declare const settingsSchema: z.ZodObject<{
7
7
  username: z.ZodString;
8
8
  password: z.ZodString;
9
9
  }, "strip", z.ZodTypeAny, {
10
- password: string;
10
+ base_url: string;
11
+ client_secret: string;
11
12
  auth_url: string;
12
13
  client_id: string;
13
- client_secret: string;
14
14
  username: string;
15
- base_url: string;
16
- }, {
17
15
  password: string;
16
+ }, {
17
+ base_url: string;
18
+ client_secret: string;
18
19
  auth_url: string;
19
20
  client_id: string;
20
- client_secret: string;
21
21
  username: string;
22
- base_url: string;
22
+ password: string;
23
23
  }>;
@@ -21,12 +21,12 @@ export declare const SettingsValidationSchema: z.ZodObject<{
21
21
  * we currently have today + Formsort's API is in alpha currently.
22
22
  */
23
23
  apiKey: z.ZodOptional<z.ZodString>;
24
- environment: z.ZodEffects<z.ZodOptional<z.ZodEnum<["production", "staging"]>>, "staging" | "production", "staging" | "production" | undefined>;
24
+ environment: z.ZodEffects<z.ZodOptional<z.ZodEnum<["production", "staging"]>>, "production" | "staging", "production" | "staging" | undefined>;
25
25
  }, "strip", z.ZodTypeAny, {
26
- environment: "staging" | "production";
26
+ environment: "production" | "staging";
27
27
  apiKey?: string | undefined;
28
28
  }, {
29
- environment?: "staging" | "production" | undefined;
30
29
  apiKey?: string | undefined;
30
+ environment?: "production" | "staging" | undefined;
31
31
  }>;
32
32
  export declare const validateSettings: (settings: unknown) => z.infer<typeof SettingsValidationSchema>;
@@ -137,7 +137,7 @@ export declare const createTaskSchema: z.ZodIntersection<z.ZodObject<{
137
137
  }>, {
138
138
  reminder: {
139
139
  is_enabled: boolean;
140
- interval_type: "once" | "daily" | "weekly";
140
+ interval_type: "daily" | "weekly" | "once";
141
141
  interval_value: string | undefined;
142
142
  reminder_time: number;
143
143
  } | undefined;
@@ -13,44 +13,44 @@ export declare const FieldsSchema: z.ZodEffects<z.ZodObject<{
13
13
  }, "strip", z.ZodTypeAny, {
14
14
  healthie_patient_id: string;
15
15
  form_id: string;
16
+ period?: string | undefined;
16
17
  frequency?: string | undefined;
17
18
  hour?: string | undefined;
18
19
  minute?: string | undefined;
19
20
  weekday?: string | undefined;
20
- period?: string | undefined;
21
21
  monthday?: string | undefined;
22
22
  is_recurring?: boolean | undefined;
23
23
  ends_on?: string | undefined;
24
24
  }, {
25
25
  healthie_patient_id: string;
26
26
  form_id: string;
27
+ period?: string | undefined;
27
28
  frequency?: string | undefined;
28
29
  hour?: string | undefined;
29
30
  minute?: string | undefined;
30
31
  weekday?: string | undefined;
31
- period?: string | undefined;
32
32
  monthday?: string | undefined;
33
33
  is_recurring?: boolean | undefined;
34
34
  ends_on?: "" | Date | undefined;
35
35
  }>, {
36
36
  healthie_patient_id: string;
37
37
  form_id: string;
38
+ period?: string | undefined;
38
39
  frequency?: string | undefined;
39
40
  hour?: string | undefined;
40
41
  minute?: string | undefined;
41
42
  weekday?: string | undefined;
42
- period?: string | undefined;
43
43
  monthday?: string | undefined;
44
44
  is_recurring?: boolean | undefined;
45
45
  ends_on?: string | undefined;
46
46
  }, {
47
47
  healthie_patient_id: string;
48
48
  form_id: string;
49
+ period?: string | undefined;
49
50
  frequency?: string | undefined;
50
51
  hour?: string | undefined;
51
52
  minute?: string | undefined;
52
53
  weekday?: string | undefined;
53
- period?: string | undefined;
54
54
  monthday?: string | undefined;
55
55
  is_recurring?: boolean | undefined;
56
56
  ends_on?: "" | Date | undefined;
@@ -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
- content: string;
40
39
  subject: string;
40
+ content: string;
41
41
  to: string;
42
42
  from?: string | undefined;
43
43
  }, {
44
- content: string;
45
44
  subject: string;
45
+ content: string;
46
46
  to: string;
47
47
  from?: string | undefined;
48
48
  }>;
@@ -63,7 +63,7 @@ export declare const SettingsValidationSchema: z.ZodObject<{
63
63
  fromName: string;
64
64
  fromEmail: string;
65
65
  domain: string;
66
- region?: "US" | "EU" | "eu" | "us" | undefined;
67
66
  testMode?: "Yes" | "No" | "yes" | "no" | undefined;
67
+ region?: "US" | "EU" | "eu" | "us" | undefined;
68
68
  }>;
69
69
  export declare const validateSettings: (settings: unknown) => z.infer<typeof SettingsValidationSchema>;
@@ -42,16 +42,16 @@ export declare const FieldsValidationSchema: z.ZodObject<{
42
42
  [key: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
43
43
  } | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null, string | undefined>;
44
44
  }, "strip", z.ZodTypeAny, {
45
- template: string;
46
45
  subject: string;
47
46
  to: string;
47
+ template: string;
48
48
  variables: string | number | boolean | {
49
49
  [key: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
50
50
  } | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
51
51
  }, {
52
- template: string;
53
52
  subject: string;
54
53
  to: string;
54
+ template: string;
55
55
  variables?: string | undefined;
56
56
  }>;
57
57
  export declare const validateActionFields: (fields: unknown) => z.infer<typeof FieldsValidationSchema>;
@@ -28,11 +28,11 @@ export declare const FieldsValidationSchema: z.ZodObject<{
28
28
  dateRight: z.ZodDate;
29
29
  unit: z.ZodEnum<["seconds", "minutes", "hours", "days", "weeks", "months", "years"]>;
30
30
  }, "strip", z.ZodTypeAny, {
31
- unit: "years" | "months" | "weeks" | "days" | "hours" | "minutes" | "seconds";
32
31
  dateLeft: Date;
33
32
  dateRight: Date;
33
+ unit: "seconds" | "minutes" | "hours" | "days" | "weeks" | "months" | "years";
34
34
  }, {
35
- unit: "years" | "months" | "weeks" | "days" | "hours" | "minutes" | "seconds";
36
35
  dateLeft: Date;
37
36
  dateRight: Date;
37
+ unit: "seconds" | "minutes" | "hours" | "days" | "weeks" | "months" | "years";
38
38
  }>;
@@ -20,9 +20,9 @@ export declare const FieldsValidationSchema: z.ZodObject<{
20
20
  min: z.ZodNumber;
21
21
  max: z.ZodNumber;
22
22
  }, "strip", z.ZodTypeAny, {
23
- max: number;
24
23
  min: number;
25
- }, {
26
24
  max: number;
25
+ }, {
27
26
  min: number;
27
+ max: number;
28
28
  }>;
@@ -93,7 +93,6 @@ export declare const FieldsValidationSchema: ZodObject<{
93
93
  country: import("zod").ZodOptional<import("zod").ZodString>;
94
94
  postalCode: import("zod").ZodOptional<import("zod").ZodString>;
95
95
  }, "strip", ZodTypeAny, {
96
- state?: string | undefined;
97
96
  address?: string | undefined;
98
97
  email?: string | undefined;
99
98
  firstName?: string | undefined;
@@ -102,10 +101,10 @@ export declare const FieldsValidationSchema: ZodObject<{
102
101
  mobilePhone?: import("libphonenumber-js").E164Number | undefined;
103
102
  city?: string | undefined;
104
103
  country?: string | undefined;
104
+ state?: string | undefined;
105
105
  postalCode?: string | undefined;
106
- gender?: "unknown" | "other" | "male" | "female" | undefined;
106
+ gender?: "unknown" | "male" | "female" | "other" | undefined;
107
107
  }, {
108
- state?: string | undefined;
109
108
  address?: string | undefined;
110
109
  email?: string | undefined;
111
110
  firstName?: string | undefined;
@@ -114,6 +113,7 @@ export declare const FieldsValidationSchema: ZodObject<{
114
113
  mobilePhone?: string | undefined;
115
114
  city?: string | undefined;
116
115
  country?: string | undefined;
116
+ state?: string | undefined;
117
117
  postalCode?: string | undefined;
118
- gender?: "unknown" | "other" | "male" | "female" | undefined;
118
+ gender?: "unknown" | "male" | "female" | "other" | undefined;
119
119
  }>;
@@ -36,13 +36,13 @@ export declare const FieldsValidationSchema: ZodObject<{
36
36
  intent: import("zod").ZodUnion<[import("zod").ZodLiteral<"proposal">, import("zod").ZodLiteral<"plan">, import("zod").ZodLiteral<"directive">, import("zod").ZodLiteral<"order">, import("zod").ZodLiteral<"original-order">, import("zod").ZodLiteral<"reflex-order">, import("zod").ZodLiteral<"filler-order">, import("zod").ZodLiteral<"instance-order">, import("zod").ZodLiteral<"option">]>;
37
37
  priority: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"routine">, import("zod").ZodLiteral<"urgent">, import("zod").ZodLiteral<"asap">, import("zod").ZodLiteral<"stat">]>>;
38
38
  }, "strip", ZodTypeAny, {
39
- status: "active" | "unknown" | "completed" | "draft" | "on-hold" | "entered-in-error" | "revoked";
39
+ status: "unknown" | "active" | "draft" | "on-hold" | "completed" | "entered-in-error" | "revoked";
40
40
  patientId: string;
41
- intent: "order" | "option" | "plan" | "proposal" | "original-order" | "reflex-order" | "filler-order" | "instance-order" | "directive";
41
+ intent: "order" | "plan" | "proposal" | "directive" | "original-order" | "reflex-order" | "filler-order" | "instance-order" | "option";
42
42
  priority?: "routine" | "urgent" | "asap" | "stat" | undefined;
43
43
  }, {
44
- status: "active" | "unknown" | "completed" | "draft" | "on-hold" | "entered-in-error" | "revoked";
44
+ status: "unknown" | "active" | "draft" | "on-hold" | "completed" | "entered-in-error" | "revoked";
45
45
  patientId: string;
46
- intent: "order" | "option" | "plan" | "proposal" | "original-order" | "reflex-order" | "filler-order" | "instance-order" | "directive";
46
+ intent: "order" | "plan" | "proposal" | "directive" | "original-order" | "reflex-order" | "filler-order" | "instance-order" | "option";
47
47
  priority?: "routine" | "urgent" | "asap" | "stat" | undefined;
48
48
  }>;
@@ -68,21 +68,21 @@ export declare const FieldsValidationSchema: ZodObject<{
68
68
  dueDate: import("zod").ZodUnion<[import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodDate, string, Date>>, import("zod").ZodEffects<import("zod").ZodLiteral<"">, undefined, "">]>;
69
69
  performerType: import("zod").ZodOptional<import("zod").ZodString>;
70
70
  }, "strip", ZodTypeAny, {
71
- status: "failed" | "in-progress" | "completed" | "rejected" | "received" | "ready" | "accepted" | "draft" | "requested" | "cancelled" | "on-hold" | "entered-in-error";
71
+ status: "received" | "accepted" | "draft" | "requested" | "rejected" | "ready" | "cancelled" | "in-progress" | "on-hold" | "failed" | "completed" | "entered-in-error";
72
72
  patientId: string;
73
- intent: "order" | "option" | "unknown" | "plan" | "proposal" | "original-order" | "reflex-order" | "filler-order" | "instance-order";
73
+ intent: "unknown" | "order" | "plan" | "proposal" | "original-order" | "reflex-order" | "filler-order" | "instance-order" | "option";
74
74
  taskTitle: string;
75
- priority?: "routine" | "urgent" | "asap" | "stat" | undefined;
76
75
  description?: string | undefined;
76
+ priority?: "routine" | "urgent" | "asap" | "stat" | undefined;
77
77
  dueDate?: string | undefined;
78
78
  performerType?: string | undefined;
79
79
  }, {
80
- status: "failed" | "in-progress" | "completed" | "rejected" | "received" | "ready" | "accepted" | "draft" | "requested" | "cancelled" | "on-hold" | "entered-in-error";
80
+ status: "received" | "accepted" | "draft" | "requested" | "rejected" | "ready" | "cancelled" | "in-progress" | "on-hold" | "failed" | "completed" | "entered-in-error";
81
81
  patientId: string;
82
- intent: "order" | "option" | "unknown" | "plan" | "proposal" | "original-order" | "reflex-order" | "filler-order" | "instance-order";
82
+ intent: "unknown" | "order" | "plan" | "proposal" | "original-order" | "reflex-order" | "filler-order" | "instance-order" | "option";
83
83
  taskTitle: string;
84
- priority?: "routine" | "urgent" | "asap" | "stat" | undefined;
85
84
  description?: string | undefined;
85
+ priority?: "routine" | "urgent" | "asap" | "stat" | undefined;
86
86
  dueDate?: "" | Date | undefined;
87
87
  performerType?: string | undefined;
88
88
  }>;
@@ -5,10 +5,10 @@ export declare const PeriodSchema: z.ZodObject<{
5
5
  end: z.ZodOptional<z.ZodString>;
6
6
  }, "strip", z.ZodTypeAny, {
7
7
  id?: string | undefined;
8
- end?: string | undefined;
9
8
  start?: string | undefined;
9
+ end?: string | undefined;
10
10
  }, {
11
11
  id?: string | undefined;
12
- end?: string | undefined;
13
12
  start?: string | undefined;
13
+ end?: string | undefined;
14
14
  }>;
@@ -12,7 +12,6 @@ export declare const PatientSchema: z.ZodObject<{
12
12
  country: z.ZodOptional<z.ZodString>;
13
13
  postalCode: z.ZodOptional<z.ZodString>;
14
14
  }, "strip", z.ZodTypeAny, {
15
- state?: string | undefined;
16
15
  address?: string | undefined;
17
16
  email?: string | undefined;
18
17
  firstName?: string | undefined;
@@ -21,10 +20,10 @@ export declare const PatientSchema: z.ZodObject<{
21
20
  mobilePhone?: import("libphonenumber-js").E164Number | undefined;
22
21
  city?: string | undefined;
23
22
  country?: string | undefined;
23
+ state?: string | undefined;
24
24
  postalCode?: string | undefined;
25
- gender?: "unknown" | "other" | "male" | "female" | undefined;
25
+ gender?: "unknown" | "male" | "female" | "other" | undefined;
26
26
  }, {
27
- state?: string | undefined;
28
27
  address?: string | undefined;
29
28
  email?: string | undefined;
30
29
  firstName?: string | undefined;
@@ -33,6 +32,7 @@ export declare const PatientSchema: z.ZodObject<{
33
32
  mobilePhone?: string | undefined;
34
33
  city?: string | undefined;
35
34
  country?: string | undefined;
35
+ state?: string | undefined;
36
36
  postalCode?: string | undefined;
37
- gender?: "unknown" | "other" | "male" | "female" | undefined;
37
+ gender?: "unknown" | "male" | "female" | "other" | undefined;
38
38
  }>;
@@ -5,13 +5,13 @@ export declare const CreateServiceRequestSchema: z.ZodObject<{
5
5
  intent: z.ZodUnion<[z.ZodLiteral<"proposal">, z.ZodLiteral<"plan">, z.ZodLiteral<"directive">, z.ZodLiteral<"order">, z.ZodLiteral<"original-order">, z.ZodLiteral<"reflex-order">, z.ZodLiteral<"filler-order">, z.ZodLiteral<"instance-order">, z.ZodLiteral<"option">]>;
6
6
  priority: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"routine">, z.ZodLiteral<"urgent">, z.ZodLiteral<"asap">, z.ZodLiteral<"stat">]>>;
7
7
  }, "strip", z.ZodTypeAny, {
8
- status: "active" | "unknown" | "completed" | "draft" | "on-hold" | "entered-in-error" | "revoked";
8
+ status: "unknown" | "active" | "draft" | "on-hold" | "completed" | "entered-in-error" | "revoked";
9
9
  patientId: string;
10
- intent: "order" | "option" | "plan" | "proposal" | "original-order" | "reflex-order" | "filler-order" | "instance-order" | "directive";
10
+ intent: "order" | "plan" | "proposal" | "directive" | "original-order" | "reflex-order" | "filler-order" | "instance-order" | "option";
11
11
  priority?: "routine" | "urgent" | "asap" | "stat" | undefined;
12
12
  }, {
13
- status: "active" | "unknown" | "completed" | "draft" | "on-hold" | "entered-in-error" | "revoked";
13
+ status: "unknown" | "active" | "draft" | "on-hold" | "completed" | "entered-in-error" | "revoked";
14
14
  patientId: string;
15
- intent: "order" | "option" | "plan" | "proposal" | "original-order" | "reflex-order" | "filler-order" | "instance-order" | "directive";
15
+ intent: "order" | "plan" | "proposal" | "directive" | "original-order" | "reflex-order" | "filler-order" | "instance-order" | "option";
16
16
  priority?: "routine" | "urgent" | "asap" | "stat" | undefined;
17
17
  }>;
@@ -9,21 +9,21 @@ export declare const CreateTaskSchema: z.ZodObject<{
9
9
  dueDate: z.ZodUnion<[z.ZodOptional<z.ZodEffects<z.ZodDate, string, Date>>, z.ZodEffects<z.ZodLiteral<"">, undefined, "">]>;
10
10
  performerType: z.ZodOptional<z.ZodString>;
11
11
  }, "strip", z.ZodTypeAny, {
12
- status: "failed" | "in-progress" | "completed" | "rejected" | "received" | "ready" | "accepted" | "draft" | "requested" | "cancelled" | "on-hold" | "entered-in-error";
12
+ status: "received" | "accepted" | "draft" | "requested" | "rejected" | "ready" | "cancelled" | "in-progress" | "on-hold" | "failed" | "completed" | "entered-in-error";
13
13
  patientId: string;
14
- intent: "order" | "option" | "unknown" | "plan" | "proposal" | "original-order" | "reflex-order" | "filler-order" | "instance-order";
14
+ intent: "unknown" | "order" | "plan" | "proposal" | "original-order" | "reflex-order" | "filler-order" | "instance-order" | "option";
15
15
  taskTitle: string;
16
- priority?: "routine" | "urgent" | "asap" | "stat" | undefined;
17
16
  description?: string | undefined;
17
+ priority?: "routine" | "urgent" | "asap" | "stat" | undefined;
18
18
  dueDate?: string | undefined;
19
19
  performerType?: string | undefined;
20
20
  }, {
21
- status: "failed" | "in-progress" | "completed" | "rejected" | "received" | "ready" | "accepted" | "draft" | "requested" | "cancelled" | "on-hold" | "entered-in-error";
21
+ status: "received" | "accepted" | "draft" | "requested" | "rejected" | "ready" | "cancelled" | "in-progress" | "on-hold" | "failed" | "completed" | "entered-in-error";
22
22
  patientId: string;
23
- intent: "order" | "option" | "unknown" | "plan" | "proposal" | "original-order" | "reflex-order" | "filler-order" | "instance-order";
23
+ intent: "unknown" | "order" | "plan" | "proposal" | "original-order" | "reflex-order" | "filler-order" | "instance-order" | "option";
24
24
  taskTitle: string;
25
- priority?: "routine" | "urgent" | "asap" | "stat" | undefined;
26
25
  description?: string | undefined;
26
+ priority?: "routine" | "urgent" | "asap" | "stat" | undefined;
27
27
  dueDate?: "" | Date | undefined;
28
28
  performerType?: string | undefined;
29
29
  }>;
@@ -22,7 +22,7 @@ export declare const actions: {
22
22
  description: string;
23
23
  required: false;
24
24
  };
25
- }, "state" | "email" | "phone" | "firstName" | "lastName" | "city" | "country" | "zip" | "dob" | "addressLine1" | "addressLine2" | "genderAtBirth" | "driversLicenseValue" | "driversLicenseState">;
25
+ }, "email" | "phone" | "firstName" | "lastName" | "city" | "country" | "state" | "zip" | "dob" | "addressLine1" | "addressLine2" | "genderAtBirth" | "driversLicenseValue" | "driversLicenseState">;
26
26
  createPatient: import("@awell-health/extensions-core").Action<{
27
27
  phone: {
28
28
  id: string;
@@ -22,10 +22,10 @@ export declare const patientCreateSchema: z.ZodObject<z.objectUtil.extendShape<{
22
22
  zip: string;
23
23
  dob: string;
24
24
  genderAtBirth: "M" | "F";
25
- state?: string | undefined;
26
25
  email?: string | undefined;
27
26
  phone?: string | undefined;
28
27
  city?: string | undefined;
28
+ state?: string | undefined;
29
29
  addressLine1?: string | undefined;
30
30
  addressLine2?: string | undefined;
31
31
  driversLicenseValue?: string | undefined;
@@ -36,11 +36,11 @@ export declare const patientCreateSchema: z.ZodObject<z.objectUtil.extendShape<{
36
36
  zip: string;
37
37
  dob: string;
38
38
  genderAtBirth: "M" | "F";
39
- state?: string | undefined;
40
39
  email?: string | undefined;
41
40
  phone?: string | undefined;
42
41
  city?: string | undefined;
43
42
  country?: string | undefined;
43
+ state?: string | undefined;
44
44
  addressLine1?: string | undefined;
45
45
  addressLine2?: string | undefined;
46
46
  driversLicenseValue?: string | undefined;
@@ -73,10 +73,10 @@ export declare const patientUpdateSchema: z.ZodObject<z.objectUtil.extendShape<{
73
73
  zip: string;
74
74
  dob: string;
75
75
  genderAtBirth: "M" | "F";
76
- state?: string | undefined;
77
76
  email?: string | undefined;
78
77
  phone?: string | undefined;
79
78
  city?: string | undefined;
79
+ state?: string | undefined;
80
80
  addressLine1?: string | undefined;
81
81
  addressLine2?: string | undefined;
82
82
  driversLicenseValue?: string | undefined;
@@ -88,11 +88,11 @@ export declare const patientUpdateSchema: z.ZodObject<z.objectUtil.extendShape<{
88
88
  zip: string;
89
89
  dob: string;
90
90
  genderAtBirth: "M" | "F";
91
- state?: string | undefined;
92
91
  email?: string | undefined;
93
92
  phone?: string | undefined;
94
93
  city?: string | undefined;
95
94
  country?: string | undefined;
95
+ state?: string | undefined;
96
96
  addressLine1?: string | undefined;
97
97
  addressLine2?: string | undefined;
98
98
  driversLicenseValue?: string | undefined;
@@ -20,9 +20,9 @@ export declare const FieldsValidationSchema: z.ZodObject<{
20
20
  email: z.ZodOptional<z.ZodString>;
21
21
  name: z.ZodOptional<z.ZodString>;
22
22
  }, "strip", z.ZodTypeAny, {
23
- name?: string | undefined;
24
23
  email?: string | undefined;
25
- }, {
26
24
  name?: string | undefined;
25
+ }, {
27
26
  email?: string | undefined;
27
+ name?: string | undefined;
28
28
  }>;
@@ -20,9 +20,9 @@ export declare const FieldsValidationSchema: z.ZodObject<{
20
20
  mode: z.ZodPipeline<z.ZodString, z.ZodEnum<["payment", "setup", "subscription"]>>;
21
21
  item: z.ZodString;
22
22
  }, "strip", z.ZodTypeAny, {
23
+ mode: "payment" | "setup" | "subscription";
23
24
  item: string;
24
- mode: "setup" | "subscription" | "payment";
25
25
  }, {
26
- item: string;
27
26
  mode: string;
27
+ item: string;
28
28
  }>;
@@ -35,8 +35,8 @@ export declare const SettingsValidationSchema: z.ZodObject<{
35
35
  clientId: z.ZodString;
36
36
  clientSecret: z.ZodString;
37
37
  }, "strip", z.ZodTypeAny, {
38
- region: "US" | "EU" | "Canada";
39
38
  clientId: string;
39
+ region: "US" | "EU" | "Canada";
40
40
  talkDeskAccountName: string;
41
41
  clientSecret: string;
42
42
  }, {
@@ -19,7 +19,6 @@ declare const PostSchema: z.ZodObject<{
19
19
  uuid: z.ZodString;
20
20
  }, "strip", z.ZodTypeAny, {
21
21
  body: string;
22
- uuid: string;
23
22
  created_at: number;
24
23
  creator: {
25
24
  type: string;
@@ -27,9 +26,9 @@ declare const PostSchema: z.ZodObject<{
27
26
  phone_number?: string | undefined;
28
27
  };
29
28
  conversation_uuid: string;
29
+ uuid: string;
30
30
  }, {
31
31
  body: string;
32
- uuid: string;
33
32
  created_at: number;
34
33
  creator: {
35
34
  type: string;
@@ -37,6 +36,7 @@ declare const PostSchema: z.ZodObject<{
37
36
  phone_number?: string | undefined;
38
37
  };
39
38
  conversation_uuid: string;
39
+ uuid: string;
40
40
  }>;
41
41
  export declare const GetMessagesSchema: z.ZodObject<{
42
42
  posts: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -59,7 +59,6 @@ export declare const GetMessagesSchema: z.ZodObject<{
59
59
  uuid: z.ZodString;
60
60
  }, "strip", z.ZodTypeAny, {
61
61
  body: string;
62
- uuid: string;
63
62
  created_at: number;
64
63
  creator: {
65
64
  type: string;
@@ -67,9 +66,9 @@ export declare const GetMessagesSchema: z.ZodObject<{
67
66
  phone_number?: string | undefined;
68
67
  };
69
68
  conversation_uuid: string;
69
+ uuid: string;
70
70
  }, {
71
71
  body: string;
72
- uuid: string;
73
72
  created_at: number;
74
73
  creator: {
75
74
  type: string;
@@ -77,11 +76,11 @@ export declare const GetMessagesSchema: z.ZodObject<{
77
76
  phone_number?: string | undefined;
78
77
  };
79
78
  conversation_uuid: string;
79
+ uuid: string;
80
80
  }>, "many">>;
81
81
  }, "strip", z.ZodTypeAny, {
82
82
  posts?: {
83
83
  body: string;
84
- uuid: string;
85
84
  created_at: number;
86
85
  creator: {
87
86
  type: string;
@@ -89,11 +88,11 @@ export declare const GetMessagesSchema: z.ZodObject<{
89
88
  phone_number?: string | undefined;
90
89
  };
91
90
  conversation_uuid: string;
91
+ uuid: string;
92
92
  }[] | undefined;
93
93
  }, {
94
94
  posts?: {
95
95
  body: string;
96
- uuid: string;
97
96
  created_at: number;
98
97
  creator: {
99
98
  type: string;
@@ -101,6 +100,7 @@ export declare const GetMessagesSchema: z.ZodObject<{
101
100
  phone_number?: string | undefined;
102
101
  };
103
102
  conversation_uuid: string;
103
+ uuid: string;
104
104
  }[] | undefined;
105
105
  }>;
106
106
  declare const SendMessageResponseSchema: z.ZodObject<{
@@ -124,7 +124,6 @@ declare const SendMessageResponseSchema: z.ZodObject<{
124
124
  uuid: z.ZodString;
125
125
  }, "strip", z.ZodTypeAny, {
126
126
  body: string;
127
- uuid: string;
128
127
  created_at: number;
129
128
  creator: {
130
129
  type: string;
@@ -132,9 +131,9 @@ declare const SendMessageResponseSchema: z.ZodObject<{
132
131
  phone_number?: string | undefined;
133
132
  };
134
133
  conversation_uuid: string;
134
+ uuid: string;
135
135
  }, {
136
136
  body: string;
137
- uuid: string;
138
137
  created_at: number;
139
138
  creator: {
140
139
  type: string;
@@ -142,11 +141,11 @@ declare const SendMessageResponseSchema: z.ZodObject<{
142
141
  phone_number?: string | undefined;
143
142
  };
144
143
  conversation_uuid: string;
144
+ uuid: string;
145
145
  }>;
146
146
  }, "strip", z.ZodTypeAny, {
147
147
  post: {
148
148
  body: string;
149
- uuid: string;
150
149
  created_at: number;
151
150
  creator: {
152
151
  type: string;
@@ -154,11 +153,11 @@ declare const SendMessageResponseSchema: z.ZodObject<{
154
153
  phone_number?: string | undefined;
155
154
  };
156
155
  conversation_uuid: string;
156
+ uuid: string;
157
157
  };
158
158
  }, {
159
159
  post: {
160
160
  body: string;
161
- uuid: string;
162
161
  created_at: number;
163
162
  creator: {
164
163
  type: string;
@@ -166,6 +165,7 @@ declare const SendMessageResponseSchema: z.ZodObject<{
166
165
  phone_number?: string | undefined;
167
166
  };
168
167
  conversation_uuid: string;
168
+ uuid: string;
169
169
  };
170
170
  }>;
171
171
  export type SendMessageResponse = z.infer<typeof SendMessageResponseSchema>;
@@ -1,11 +1,17 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
6
  const tests_1 = require("../../../../src/tests");
4
7
  const sendFax_1 = require("./sendFax");
8
+ const jest_fetch_mock_1 = __importDefault(require("jest-fetch-mock"));
5
9
  describe('send fax action', () => {
6
10
  const onComplete = jest.fn();
7
11
  const onError = jest.fn();
8
- test('Should not send a fax', async () => {
12
+ jest_fetch_mock_1.default.enableMocks();
13
+ jest_fetch_mock_1.default.mockResponseOnce(JSON.stringify({ Success: true, Result: 'asdf' }));
14
+ test('Mock send a fax - success', async () => {
9
15
  await sendFax_1.sendFax.onActivityCreated((0, tests_1.generateTestPayload)({
10
16
  fields: {
11
17
  productId: 'wrongproductid',
@@ -22,8 +28,12 @@ describe('send fax action', () => {
22
28
  faceSheetUrl: '',
23
29
  },
24
30
  }), onComplete, onError);
25
- expect(onComplete).not.toHaveBeenCalled();
26
- expect(onError).toHaveBeenCalled();
31
+ expect(onComplete).toHaveBeenCalledWith({
32
+ data_points: {
33
+ faxId: 'asdf',
34
+ },
35
+ });
36
+ expect(onError).not.toHaveBeenCalled();
27
37
  });
28
38
  });
29
39
  //# sourceMappingURL=sendFax.test.js.map