@awell-health/awell-extensions 1.0.235 → 1.0.237

Sign up to get free protection for your applications and to get access to all the features.
Files changed (69) hide show
  1. package/dist/extensions/athenahealth/actions/index.d.ts +1 -1
  2. package/dist/extensions/athenahealth/api/schema/clinicalDocument.d.ts +2 -2
  3. package/dist/extensions/avaAi/v1/actions/generatePatientSummary/config/fields.d.ts +1 -1
  4. package/dist/extensions/awell/v1/actions/searchPatientsByPatientCode/searchPatientsByPatientCode.test.js +12 -15
  5. package/dist/extensions/awell/v1/actions/searchPatientsByPatientCode/searchPatientsByPatientCode.test.js.map +1 -1
  6. package/dist/extensions/awell/v1/actions/updatePatient/config/fields.d.ts +14 -14
  7. package/dist/extensions/calDotCom/actions/createBooking/config/fields.d.ts +6 -6
  8. package/dist/extensions/calDotCom/actions/deleteBooking/config/fields.d.ts +2 -2
  9. package/dist/extensions/calDotCom/actions/updateBooking/config/fields.d.ts +6 -6
  10. package/dist/extensions/calendly/schema.d.ts +1030 -218
  11. package/dist/extensions/canvasMedical/v1/validation/appointment.zod.d.ts +11 -10
  12. package/dist/extensions/canvasMedical/v1/validation/coverage.zod.d.ts +16 -15
  13. package/dist/extensions/canvasMedical/v1/validation/identifier.zod.d.ts +13 -13
  14. package/dist/extensions/canvasMedical/v1/validation/patient.zod.d.ts +229 -228
  15. package/dist/extensions/canvasMedical/v1/validation/questionnaireResponses.zod.d.ts +24 -21
  16. package/dist/extensions/canvasMedical/v1/validation/task.zod.d.ts +52 -51
  17. package/dist/extensions/docuSign/actions/createEmbeddedSignatureRequestWithTemplate/config/fields.d.ts +2 -2
  18. package/dist/extensions/dropboxSign/v1/actions/cancelSignatureRequest/cancelSignatureRequest.test.js +9 -12
  19. package/dist/extensions/dropboxSign/v1/actions/cancelSignatureRequest/cancelSignatureRequest.test.js.map +1 -1
  20. package/dist/extensions/dropboxSign/v1/actions/createEmbeddedSignatureRequestWithTemplate/config/fields.d.ts +2 -2
  21. package/dist/extensions/dropboxSign/v1/actions/createEmbeddedSignatureRequestWithTemplate/createEmbeddedSignatureRequestWithTemplate.test.js +32 -38
  22. package/dist/extensions/dropboxSign/v1/actions/createEmbeddedSignatureRequestWithTemplate/createEmbeddedSignatureRequestWithTemplate.test.js.map +1 -1
  23. package/dist/extensions/dropboxSign/v1/actions/getSignatureRequest/getSignatureRequest.test.js +13 -16
  24. package/dist/extensions/dropboxSign/v1/actions/getSignatureRequest/getSignatureRequest.test.js.map +1 -1
  25. package/dist/extensions/dropboxSign/v1/actions/sendRequestReminder/sendRequestReminder.test.js +13 -16
  26. package/dist/extensions/dropboxSign/v1/actions/sendRequestReminder/sendRequestReminder.test.js.map +1 -1
  27. package/dist/extensions/dropboxSign/v1/actions/sendSignatureRequestWithTemplate/config/fields.d.ts +2 -2
  28. package/dist/extensions/dropboxSign/v1/actions/sendSignatureRequestWithTemplate/sendSignatureRequestWithTemplate.test.js +13 -16
  29. package/dist/extensions/dropboxSign/v1/actions/sendSignatureRequestWithTemplate/sendSignatureRequestWithTemplate.test.js.map +1 -1
  30. package/dist/extensions/elation/actions/index.d.ts +1 -1
  31. package/dist/extensions/elation/validation/appointment.zod.d.ts +4 -4
  32. package/dist/extensions/elation/validation/labOrder.zod.d.ts +2 -2
  33. package/dist/extensions/elation/validation/nonVisitNote.zod.d.ts +2 -2
  34. package/dist/extensions/elation/validation/patient.zod.d.ts +248 -248
  35. package/dist/extensions/elation/validation/physician.zod.d.ts +4 -4
  36. package/dist/extensions/experimental/index.js +1 -0
  37. package/dist/extensions/experimental/index.js.map +1 -1
  38. package/dist/extensions/experimental/v1/actions/index.d.ts +1 -0
  39. package/dist/extensions/experimental/v1/actions/index.js +3 -1
  40. package/dist/extensions/experimental/v1/actions/index.js.map +1 -1
  41. package/dist/extensions/experimental/v1/actions/returnObject/index.d.ts +18 -0
  42. package/dist/extensions/experimental/v1/actions/returnObject/index.js +45 -0
  43. package/dist/extensions/experimental/v1/actions/returnObject/index.js.map +1 -0
  44. package/dist/extensions/formsort/settings.d.ts +1 -1
  45. package/dist/extensions/healthie/validation/sendFormCompletionRequest.zod.d.ts +12 -12
  46. package/dist/extensions/infobip/v1/actions/sendEmailWithTemplate/config/fields.d.ts +2 -4
  47. package/dist/extensions/iterable/v1/actions/sendEmail/config/fields.d.ts +4 -4
  48. package/dist/extensions/mailgun/v1/actions/sendEmailWithTemplate/config/fields.d.ts +2 -4
  49. package/dist/extensions/medplum/actions/createPatient/config/fields.d.ts +10 -10
  50. package/dist/extensions/medplum/actions/createTask/config/fields.d.ts +2 -2
  51. package/dist/extensions/medplum/actions/executeBot/config/fields.d.ts +2 -4
  52. package/dist/extensions/medplum/fhir/schemas/atoms/PeriodSchema.d.ts +2 -2
  53. package/dist/extensions/medplum/fhir/schemas/resources/patient.schema.d.ts +10 -10
  54. package/dist/extensions/medplum/fhir/schemas/resources/task.schema.d.ts +2 -2
  55. package/dist/extensions/metriport/actions/patient/validation.d.ts +31 -28
  56. package/dist/extensions/sendbird/v1/actions/createTicket/config/fields.d.ts +4 -4
  57. package/dist/extensions/sendbird/v1/actions/createUser/config/fields.d.ts +2 -2
  58. package/dist/extensions/sendgrid-extension/v1/actions/sendEmailWithTemplate/config/fields.d.ts +1 -1
  59. package/dist/extensions/textline/actions/getMessages/config/fields.d.ts +2 -2
  60. package/dist/extensions/twilio/v2/actions/getMessages/config/fields.d.ts +4 -4
  61. package/dist/extensions/twilio/v2/actions/sendSmsDuringBusinessHours/config/fields.d.ts +2 -2
  62. package/dist/extensions/wellinks-public/actions/checkFlourishCustomer/config/settings.d.ts +4 -4
  63. package/dist/extensions/wellinks-public/actions/createFlourishCustomer/config/settings.d.ts +4 -4
  64. package/dist/extensions/wellinks-public/actions/insertMemberListEvent/config/settings.d.ts +5 -2
  65. package/dist/extensions/wellinks-public/actions/submitPamSurvey/config/settings.d.ts +4 -4
  66. package/dist/extensions/wellinks-public/config/settings.d.ts +4 -4
  67. package/dist/extensions/zendesk/v1/actions/createTask/config/fields.d.ts +4 -4
  68. package/dist/src/tests/constants.d.ts +4 -0
  69. package/package.json +4 -4
@@ -8,19 +8,19 @@ 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
+ credentials?: string | undefined;
11
13
  first_name?: string | undefined;
12
14
  last_name?: string | undefined;
13
- email?: string | undefined;
14
15
  npi?: string | undefined;
15
16
  license?: string | undefined;
16
17
  license_state?: string | undefined;
17
- credentials?: string | undefined;
18
18
  }, {
19
+ email?: string | undefined;
20
+ credentials?: string | undefined;
19
21
  first_name?: string | undefined;
20
22
  last_name?: string | undefined;
21
- email?: string | undefined;
22
23
  npi?: string | undefined;
23
24
  license?: string | undefined;
24
25
  license_state?: string | undefined;
25
- credentials?: string | undefined;
26
26
  }>;
@@ -20,6 +20,7 @@ exports.Experimental = {
20
20
  wait: actions_1.wait,
21
21
  patientRecommendation: actions_1.patientRecommendation,
22
22
  redirect: actions_1.redirect,
23
+ returnObject: actions_1.returnObject,
23
24
  },
24
25
  };
25
26
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../extensions/experimental/index.ts"],"names":[],"mappings":";;;AAAA,0CAMqB;AAErB,yCAAqC;AACrC,mEAAoE;AAEvD,QAAA,YAAY,GAAc;IACrC,GAAG,EAAE,cAAc;IACnB,KAAK,EAAE,wBAAwB;IAC/B,QAAQ,EAAE,yDAAyD;IACnE,WAAW,EAAE,qCAAqC;IAClD,QAAQ,EAAE,0BAAQ,CAAC,QAAQ;IAC3B,MAAM,EAAE;QACN,UAAU,EAAE,4BAAU,CAAC,KAAK;KAC7B;IACD,QAAQ,EAAR,mBAAQ;IACR,OAAO,EAAE;QACP,iBAAiB,EAAjB,2BAAiB;QACjB,eAAe,EAAf,yBAAe;QACf,IAAI,EAAJ,cAAI;QACJ,qBAAqB,EAArB,+BAAqB;QACrB,QAAQ,EAAR,kBAAQ;KACT;CACF,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../extensions/experimental/index.ts"],"names":[],"mappings":";;;AAAA,0CAOqB;AAErB,yCAAqC;AACrC,mEAAoE;AAEvD,QAAA,YAAY,GAAc;IACrC,GAAG,EAAE,cAAc;IACnB,KAAK,EAAE,wBAAwB;IAC/B,QAAQ,EAAE,yDAAyD;IACnE,WAAW,EAAE,qCAAqC;IAClD,QAAQ,EAAE,0BAAQ,CAAC,QAAQ;IAC3B,MAAM,EAAE;QACN,UAAU,EAAE,4BAAU,CAAC,KAAK;KAC7B;IACD,QAAQ,EAAR,mBAAQ;IACR,OAAO,EAAE;QACP,iBAAiB,EAAjB,2BAAiB;QACjB,eAAe,EAAf,yBAAe;QACf,IAAI,EAAJ,cAAI;QACJ,qBAAqB,EAArB,+BAAqB;QACrB,QAAQ,EAAR,kBAAQ;QACR,YAAY,EAAZ,sBAAY;KACb;CACF,CAAA"}
@@ -3,3 +3,4 @@ export { enterMedication } from './enterMedication';
3
3
  export { wait } from './wait';
4
4
  export { patientRecommendation } from './patientRecommendation';
5
5
  export { redirect } from './redirect';
6
+ export { returnObject } from './returnObject';
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.redirect = exports.patientRecommendation = exports.wait = exports.enterMedication = exports.requestVideoVisit = void 0;
3
+ exports.returnObject = exports.redirect = exports.patientRecommendation = exports.wait = exports.enterMedication = exports.requestVideoVisit = void 0;
4
4
  var requestVideoVisit_1 = require("./requestVideoVisit");
5
5
  Object.defineProperty(exports, "requestVideoVisit", { enumerable: true, get: function () { return requestVideoVisit_1.requestVideoVisit; } });
6
6
  var enterMedication_1 = require("./enterMedication");
@@ -11,4 +11,6 @@ var patientRecommendation_1 = require("./patientRecommendation");
11
11
  Object.defineProperty(exports, "patientRecommendation", { enumerable: true, get: function () { return patientRecommendation_1.patientRecommendation; } });
12
12
  var redirect_1 = require("./redirect");
13
13
  Object.defineProperty(exports, "redirect", { enumerable: true, get: function () { return redirect_1.redirect; } });
14
+ var returnObject_1 = require("./returnObject");
15
+ Object.defineProperty(exports, "returnObject", { enumerable: true, get: function () { return returnObject_1.returnObject; } });
14
16
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../extensions/experimental/v1/actions/index.ts"],"names":[],"mappings":";;;AAAA,yDAAuD;AAA9C,sHAAA,iBAAiB,OAAA;AAC1B,qDAAmD;AAA1C,kHAAA,eAAe,OAAA;AACxB,+BAA6B;AAApB,4FAAA,IAAI,OAAA;AACb,iEAA+D;AAAtD,8HAAA,qBAAqB,OAAA;AAC9B,uCAAqC;AAA5B,oGAAA,QAAQ,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../extensions/experimental/v1/actions/index.ts"],"names":[],"mappings":";;;AAAA,yDAAuD;AAA9C,sHAAA,iBAAiB,OAAA;AAC1B,qDAAmD;AAA1C,kHAAA,eAAe,OAAA;AACxB,+BAA6B;AAApB,4FAAA,IAAI,OAAA;AACb,iEAA+D;AAAtD,8HAAA,qBAAqB,OAAA;AAC9B,uCAAqC;AAA5B,oGAAA,QAAQ,OAAA;AACjB,+CAA6C;AAApC,4GAAA,YAAY,OAAA"}
@@ -0,0 +1,18 @@
1
+ import { type Action, FieldType } from '@awell-health/extensions-core';
2
+ import { type settings } from '../../../settings';
3
+ export declare const dataPoints: {
4
+ object: {
5
+ key: string;
6
+ valueType: "json";
7
+ };
8
+ };
9
+ declare const fields: {
10
+ array: {
11
+ id: string;
12
+ label: string;
13
+ type: FieldType.BOOLEAN;
14
+ required: false;
15
+ };
16
+ };
17
+ export declare const returnObject: Action<typeof fields, typeof settings>;
18
+ export {};
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.returnObject = exports.dataPoints = void 0;
4
+ const extensions_core_1 = require("@awell-health/extensions-core");
5
+ const extensions_core_2 = require("@awell-health/extensions-core");
6
+ exports.dataPoints = {
7
+ object: {
8
+ key: 'object',
9
+ valueType: 'json',
10
+ },
11
+ };
12
+ const fields = {
13
+ array: {
14
+ id: 'array',
15
+ label: 'Send array instead of object',
16
+ type: extensions_core_1.FieldType.BOOLEAN,
17
+ required: false,
18
+ },
19
+ };
20
+ exports.returnObject = {
21
+ key: 'returnObject',
22
+ category: extensions_core_2.Category.WORKFLOW,
23
+ title: 'Return object',
24
+ description: 'Return an object to be stored as a datapoint',
25
+ fields,
26
+ dataPoints: exports.dataPoints,
27
+ previewable: false,
28
+ onActivityCreated: async (payload, onComplete, onError) => {
29
+ if (payload.fields.array === true) {
30
+ await onComplete({
31
+ data_points: {
32
+ object: JSON.stringify([{ message: 'Hello World' }]),
33
+ },
34
+ });
35
+ }
36
+ else {
37
+ await onComplete({
38
+ data_points: {
39
+ object: JSON.stringify({ message: 'Hello World' }),
40
+ },
41
+ });
42
+ }
43
+ },
44
+ };
45
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../extensions/experimental/v1/actions/returnObject/index.ts"],"names":[],"mappings":";;;AAAA,mEAKsC;AAEtC,mEAAwD;AAE3C,QAAA,UAAU,GAAG;IACxB,MAAM,EAAE;QACN,GAAG,EAAE,QAAQ;QACb,SAAS,EAAE,MAAM;KAClB;CAC4C,CAAA;AAE/C,MAAM,MAAM,GAAG;IACb,KAAK,EAAE;QACL,EAAE,EAAE,OAAO;QACX,KAAK,EAAE,8BAA8B;QACrC,IAAI,EAAE,2BAAS,CAAC,OAAO;QACvB,QAAQ,EAAE,KAAK;KAChB;CAC8B,CAAA;AAEpB,QAAA,YAAY,GAA2C;IAClE,GAAG,EAAE,cAAc;IACnB,QAAQ,EAAE,0BAAQ,CAAC,QAAQ;IAC3B,KAAK,EAAE,eAAe;IACtB,WAAW,EAAE,8CAA8C;IAC3D,MAAM;IACN,UAAU,EAAV,kBAAU;IACV,WAAW,EAAE,KAAK;IAClB,iBAAiB,EAAE,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAiB,EAAE;QACvE,IAAI,OAAO,CAAC,MAAM,CAAC,KAAK,KAAK,IAAI,EAAE;YACjC,MAAM,UAAU,CAAC;gBACf,WAAW,EAAE;oBACX,MAAM,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,OAAO,EAAE,aAAa,EAAE,CAAC,CAAC;iBACrD;aACF,CAAC,CAAA;SACH;aAAM;YACL,MAAM,UAAU,CAAC;gBACf,WAAW,EAAE;oBACX,MAAM,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,OAAO,EAAE,aAAa,EAAE,CAAC;iBACnD;aACF,CAAC,CAAA;SACH;IACH,CAAC;CACF,CAAA"}
@@ -26,7 +26,7 @@ export declare const SettingsValidationSchema: z.ZodObject<{
26
26
  environment: "production" | "staging";
27
27
  apiKey?: string | undefined;
28
28
  }, {
29
- apiKey?: string | undefined;
30
29
  environment?: "production" | "staging" | undefined;
30
+ apiKey?: string | undefined;
31
31
  }>;
32
32
  export declare const validateSettings: (settings: unknown) => z.infer<typeof SettingsValidationSchema>;
@@ -13,45 +13,45 @@ 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
- is_recurring?: boolean | undefined;
17
16
  frequency?: string | undefined;
18
- period?: string | undefined;
19
- minute?: string | undefined;
20
17
  hour?: string | undefined;
18
+ minute?: string | undefined;
21
19
  weekday?: string | undefined;
20
+ period?: string | undefined;
22
21
  monthday?: string | undefined;
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
- is_recurring?: boolean | undefined;
28
27
  frequency?: string | undefined;
29
- period?: string | undefined;
30
- minute?: string | undefined;
31
28
  hour?: string | undefined;
29
+ minute?: string | undefined;
32
30
  weekday?: string | undefined;
31
+ period?: string | undefined;
33
32
  monthday?: string | undefined;
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
- is_recurring?: boolean | undefined;
39
38
  frequency?: string | undefined;
40
- period?: string | undefined;
41
- minute?: string | undefined;
42
39
  hour?: string | undefined;
40
+ minute?: string | undefined;
43
41
  weekday?: string | undefined;
42
+ period?: string | undefined;
44
43
  monthday?: string | undefined;
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
- is_recurring?: boolean | undefined;
50
49
  frequency?: string | undefined;
51
- period?: string | undefined;
52
- minute?: string | undefined;
53
50
  hour?: string | undefined;
51
+ minute?: string | undefined;
54
52
  weekday?: string | undefined;
53
+ period?: string | undefined;
55
54
  monthday?: string | undefined;
55
+ is_recurring?: boolean | undefined;
56
56
  ends_on?: "" | Date | undefined;
57
57
  }>;
@@ -40,11 +40,9 @@ export declare const FieldsValidationSchema: z.ZodObject<{
40
40
  }, "strip", z.ZodTypeAny, {
41
41
  templateId: number;
42
42
  to: string;
43
- placeholders: ((string | number | boolean | {
43
+ placeholders: string | number | boolean | {
44
44
  [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;
45
- } | (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)[]) & (string | number | boolean | {
46
- [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;
47
- } | (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)[] | undefined)) | null;
45
+ } | (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;
48
46
  subject?: string | undefined;
49
47
  }, {
50
48
  templateId: number;
@@ -53,30 +53,30 @@ export declare const FieldsValidationSchema: z.ZodEffects<z.ZodObject<{
53
53
  metadata: z.ZodUnion<[z.ZodOptional<z.ZodEffects<z.ZodString, Record<string, any>, string>>, z.ZodEffects<z.ZodLiteral<"">, undefined, "">]>;
54
54
  }, "strip", z.ZodTypeAny, {
55
55
  campaignId: number;
56
+ metadata?: Record<string, any> | undefined;
56
57
  recipientEmail?: string | undefined;
57
58
  recipientUserId?: string | undefined;
58
59
  dataFields?: Record<string, any> | undefined;
59
60
  allowRepeatMarketingSends?: boolean | undefined;
60
- metadata?: Record<string, any> | undefined;
61
61
  }, {
62
62
  campaignId: number;
63
+ metadata?: string | undefined;
63
64
  recipientEmail?: string | undefined;
64
65
  recipientUserId?: string | undefined;
65
66
  dataFields?: string | undefined;
66
67
  allowRepeatMarketingSends?: boolean | undefined;
67
- metadata?: string | undefined;
68
68
  }>, {
69
69
  campaignId: number;
70
+ metadata?: Record<string, any> | undefined;
70
71
  recipientEmail?: string | undefined;
71
72
  recipientUserId?: string | undefined;
72
73
  dataFields?: Record<string, any> | undefined;
73
74
  allowRepeatMarketingSends?: boolean | undefined;
74
- metadata?: Record<string, any> | undefined;
75
75
  }, {
76
76
  campaignId: number;
77
+ metadata?: string | undefined;
77
78
  recipientEmail?: string | undefined;
78
79
  recipientUserId?: string | undefined;
79
80
  dataFields?: string | undefined;
80
81
  allowRepeatMarketingSends?: boolean | undefined;
81
- metadata?: string | undefined;
82
82
  }>;
@@ -45,11 +45,9 @@ export declare const FieldsValidationSchema: z.ZodObject<{
45
45
  template: string;
46
46
  subject: string;
47
47
  to: string;
48
- variables: ((string | number | boolean | {
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
- } | (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)[]) & (string | number | boolean | {
51
- [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;
52
- } | (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)[] | undefined)) | null;
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;
53
51
  }, {
54
52
  template: string;
55
53
  subject: string;
@@ -93,27 +93,27 @@ 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
+ address?: string | undefined;
98
+ email?: string | undefined;
96
99
  firstName?: string | undefined;
97
100
  lastName?: string | undefined;
98
- email?: string | undefined;
99
- mobilePhone?: import("libphonenumber-js").E164Number | undefined;
100
101
  birthDate?: string | undefined;
101
- gender?: "unknown" | "other" | "male" | "female" | undefined;
102
- address?: string | undefined;
102
+ mobilePhone?: import("libphonenumber-js").E164Number | undefined;
103
103
  city?: string | undefined;
104
- state?: string | undefined;
105
104
  country?: string | undefined;
106
105
  postalCode?: string | undefined;
106
+ gender?: "unknown" | "other" | "male" | "female" | undefined;
107
107
  }, {
108
+ state?: string | undefined;
109
+ address?: string | undefined;
110
+ email?: string | undefined;
108
111
  firstName?: string | undefined;
109
112
  lastName?: string | undefined;
110
- email?: string | undefined;
111
- mobilePhone?: string | undefined;
112
113
  birthDate?: "" | Date | undefined;
113
- gender?: "unknown" | "other" | "male" | "female" | undefined;
114
- address?: string | undefined;
114
+ mobilePhone?: string | undefined;
115
115
  city?: string | undefined;
116
- state?: string | undefined;
117
116
  country?: string | undefined;
118
117
  postalCode?: string | undefined;
118
+ gender?: "unknown" | "other" | "male" | "female" | undefined;
119
119
  }>;
@@ -72,8 +72,8 @@ export declare const FieldsValidationSchema: ZodObject<{
72
72
  patientId: string;
73
73
  intent: "order" | "option" | "unknown" | "plan" | "proposal" | "original-order" | "reflex-order" | "filler-order" | "instance-order";
74
74
  taskTitle: string;
75
- description?: string | undefined;
76
75
  priority?: "routine" | "urgent" | "asap" | "stat" | undefined;
76
+ description?: string | undefined;
77
77
  dueDate?: string | undefined;
78
78
  performerType?: string | undefined;
79
79
  }, {
@@ -81,8 +81,8 @@ export declare const FieldsValidationSchema: ZodObject<{
81
81
  patientId: string;
82
82
  intent: "order" | "option" | "unknown" | "plan" | "proposal" | "original-order" | "reflex-order" | "filler-order" | "instance-order";
83
83
  taskTitle: string;
84
- description?: string | undefined;
85
84
  priority?: "routine" | "urgent" | "asap" | "stat" | undefined;
85
+ description?: string | undefined;
86
86
  dueDate?: "" | Date | undefined;
87
87
  performerType?: string | undefined;
88
88
  }>;
@@ -22,11 +22,9 @@ export declare const FieldsValidationSchema: z.ZodObject<{
22
22
  [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;
23
23
  } | (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>;
24
24
  }, "strip", z.ZodTypeAny, {
25
- body: ((string | number | boolean | {
25
+ body: string | number | boolean | {
26
26
  [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;
27
- } | (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)[]) & (string | number | boolean | {
28
- [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;
29
- } | (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)[] | undefined)) | null;
27
+ } | (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;
30
28
  botId: string;
31
29
  }, {
32
30
  botId: string;
@@ -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
- start?: string | undefined;
9
8
  end?: string | undefined;
9
+ start?: string | undefined;
10
10
  }, {
11
11
  id?: string | undefined;
12
- start?: string | undefined;
13
12
  end?: string | undefined;
13
+ start?: string | undefined;
14
14
  }>;
@@ -12,27 +12,27 @@ 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
+ address?: string | undefined;
17
+ email?: string | undefined;
15
18
  firstName?: string | undefined;
16
19
  lastName?: string | undefined;
17
- email?: string | undefined;
18
- mobilePhone?: import("libphonenumber-js").E164Number | undefined;
19
20
  birthDate?: string | undefined;
20
- gender?: "unknown" | "other" | "male" | "female" | undefined;
21
- address?: string | undefined;
21
+ mobilePhone?: import("libphonenumber-js").E164Number | undefined;
22
22
  city?: string | undefined;
23
- state?: string | undefined;
24
23
  country?: string | undefined;
25
24
  postalCode?: string | undefined;
25
+ gender?: "unknown" | "other" | "male" | "female" | undefined;
26
26
  }, {
27
+ state?: string | undefined;
28
+ address?: string | undefined;
29
+ email?: string | undefined;
27
30
  firstName?: string | undefined;
28
31
  lastName?: string | undefined;
29
- email?: string | undefined;
30
- mobilePhone?: string | undefined;
31
32
  birthDate?: "" | Date | undefined;
32
- gender?: "unknown" | "other" | "male" | "female" | undefined;
33
- address?: string | undefined;
33
+ mobilePhone?: string | undefined;
34
34
  city?: string | undefined;
35
- state?: string | undefined;
36
35
  country?: string | undefined;
37
36
  postalCode?: string | undefined;
37
+ gender?: "unknown" | "other" | "male" | "female" | undefined;
38
38
  }>;
@@ -13,8 +13,8 @@ export declare const CreateTaskSchema: z.ZodObject<{
13
13
  patientId: string;
14
14
  intent: "order" | "option" | "unknown" | "plan" | "proposal" | "original-order" | "reflex-order" | "filler-order" | "instance-order";
15
15
  taskTitle: string;
16
- description?: string | undefined;
17
16
  priority?: "routine" | "urgent" | "asap" | "stat" | undefined;
17
+ description?: string | undefined;
18
18
  dueDate?: string | undefined;
19
19
  performerType?: string | undefined;
20
20
  }, {
@@ -22,8 +22,8 @@ export declare const CreateTaskSchema: z.ZodObject<{
22
22
  patientId: string;
23
23
  intent: "order" | "option" | "unknown" | "plan" | "proposal" | "original-order" | "reflex-order" | "filler-order" | "instance-order";
24
24
  taskTitle: string;
25
- description?: string | undefined;
26
25
  priority?: "routine" | "urgent" | "asap" | "stat" | undefined;
26
+ description?: string | undefined;
27
27
  dueDate?: "" | Date | undefined;
28
28
  performerType?: string | undefined;
29
29
  }>;
@@ -1,68 +1,71 @@
1
1
  import * as z from 'zod';
2
- export declare const patientCreateSchema: z.ZodObject<{
3
- email: z.ZodOptional<z.ZodString>;
4
- phone: z.ZodOptional<z.ZodString>;
2
+ export declare const patientCreateSchema: z.ZodObject<z.objectUtil.extendShape<{
5
3
  firstName: z.ZodString;
6
4
  lastName: z.ZodString;
7
5
  dob: z.ZodString;
8
6
  genderAtBirth: z.ZodEnum<["F", "M"]>;
9
- driversLicenseValue: z.ZodOptional<z.ZodString>;
10
7
  driversLicenseState: z.ZodOptional<z.ZodString>;
8
+ driversLicenseValue: z.ZodOptional<z.ZodString>;
9
+ phone: z.ZodOptional<z.ZodString>;
10
+ email: z.ZodOptional<z.ZodString>;
11
+ }, {
11
12
  addressLine1: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>, string | undefined, string | undefined>;
12
13
  addressLine2: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>, string | undefined, string | undefined>;
13
14
  city: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>, string | undefined, string | undefined>;
14
15
  state: z.ZodUnion<[z.ZodNativeEnum<typeof import("@metriport/api").USState>, z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>, string | undefined, string | undefined>]>;
15
16
  zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
16
17
  country: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>, string | undefined, string | undefined>>;
17
- }, "strip", z.ZodTypeAny, {
18
+ }>, "strip", z.ZodTypeAny, {
18
19
  firstName: string;
19
20
  lastName: string;
20
21
  country: string;
21
22
  zip: string;
22
23
  dob: string;
23
24
  genderAtBirth: "M" | "F";
25
+ state?: string | undefined;
24
26
  email?: string | undefined;
25
27
  phone?: string | undefined;
26
- driversLicenseValue?: string | undefined;
27
- driversLicenseState?: string | undefined;
28
+ city?: string | undefined;
28
29
  addressLine1?: string | undefined;
29
30
  addressLine2?: string | undefined;
30
- city?: string | undefined;
31
- state?: string | undefined;
31
+ driversLicenseValue?: string | undefined;
32
+ driversLicenseState?: string | undefined;
32
33
  }, {
33
34
  firstName: string;
34
35
  lastName: string;
35
36
  zip: string;
36
37
  dob: string;
37
38
  genderAtBirth: "M" | "F";
39
+ state?: string | undefined;
38
40
  email?: string | undefined;
39
41
  phone?: string | undefined;
40
- driversLicenseValue?: string | undefined;
41
- driversLicenseState?: string | undefined;
42
- addressLine1?: string | undefined;
43
- addressLine2?: string | undefined;
44
42
  city?: string | undefined;
45
- state?: string | undefined;
46
43
  country?: string | undefined;
44
+ addressLine1?: string | undefined;
45
+ addressLine2?: string | undefined;
46
+ driversLicenseValue?: string | undefined;
47
+ driversLicenseState?: string | undefined;
47
48
  }>;
48
49
  export type PatientCreate = z.infer<typeof patientCreateSchema>;
49
- export declare const patientUpdateSchema: z.ZodObject<{
50
+ export declare const patientUpdateSchema: z.ZodObject<z.objectUtil.extendShape<{
50
51
  id: z.ZodString;
51
- email: z.ZodOptional<z.ZodString>;
52
- phone: z.ZodOptional<z.ZodString>;
52
+ }, z.objectUtil.extendShape<{
53
53
  firstName: z.ZodString;
54
54
  lastName: z.ZodString;
55
55
  dob: z.ZodString;
56
56
  genderAtBirth: z.ZodEnum<["F", "M"]>;
57
- driversLicenseValue: z.ZodOptional<z.ZodString>;
58
57
  driversLicenseState: z.ZodOptional<z.ZodString>;
58
+ driversLicenseValue: z.ZodOptional<z.ZodString>;
59
+ phone: z.ZodOptional<z.ZodString>;
60
+ email: z.ZodOptional<z.ZodString>;
61
+ }, {
59
62
  addressLine1: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>, string | undefined, string | undefined>;
60
63
  addressLine2: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>, string | undefined, string | undefined>;
61
64
  city: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>, string | undefined, string | undefined>;
62
65
  state: z.ZodUnion<[z.ZodNativeEnum<typeof import("@metriport/api").USState>, z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>, string | undefined, string | undefined>]>;
63
66
  zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
64
67
  country: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>, string | undefined, string | undefined>>;
65
- }, "strip", z.ZodTypeAny, {
68
+ }>>, "strip", z.ZodTypeAny, {
66
69
  id: string;
67
70
  firstName: string;
68
71
  lastName: string;
@@ -70,14 +73,14 @@ export declare const patientUpdateSchema: z.ZodObject<{
70
73
  zip: string;
71
74
  dob: string;
72
75
  genderAtBirth: "M" | "F";
76
+ state?: string | undefined;
73
77
  email?: string | undefined;
74
78
  phone?: string | undefined;
75
- driversLicenseValue?: string | undefined;
76
- driversLicenseState?: string | undefined;
79
+ city?: string | undefined;
77
80
  addressLine1?: string | undefined;
78
81
  addressLine2?: string | undefined;
79
- city?: string | undefined;
80
- state?: string | undefined;
82
+ driversLicenseValue?: string | undefined;
83
+ driversLicenseState?: string | undefined;
81
84
  }, {
82
85
  id: string;
83
86
  firstName: string;
@@ -85,13 +88,13 @@ export declare const patientUpdateSchema: z.ZodObject<{
85
88
  zip: string;
86
89
  dob: string;
87
90
  genderAtBirth: "M" | "F";
91
+ state?: string | undefined;
88
92
  email?: string | undefined;
89
93
  phone?: string | undefined;
90
- driversLicenseValue?: string | undefined;
91
- driversLicenseState?: string | undefined;
92
- addressLine1?: string | undefined;
93
- addressLine2?: string | undefined;
94
94
  city?: string | undefined;
95
- state?: string | undefined;
96
95
  country?: string | undefined;
96
+ addressLine1?: string | undefined;
97
+ addressLine2?: string | undefined;
98
+ driversLicenseValue?: string | undefined;
99
+ driversLicenseState?: string | undefined;
97
100
  }>;
@@ -55,15 +55,15 @@ export declare const FieldsValidationSchema: z.ZodObject<{
55
55
  }, "strip", z.ZodTypeAny, {
56
56
  channelName: string;
57
57
  customerId: number;
58
- relatedChannelUrls?: string | undefined;
59
- groupKey?: string | undefined;
60
58
  priority?: TicketPriority | undefined;
61
59
  customFields?: string | undefined;
60
+ relatedChannelUrls?: string | undefined;
61
+ groupKey?: string | undefined;
62
62
  }, {
63
63
  channelName: string;
64
64
  customerId: number;
65
- relatedChannelUrls?: string | undefined;
66
- groupKey?: string | undefined;
67
65
  priority?: "" | TicketPriority | undefined;
68
66
  customFields?: string | undefined;
67
+ relatedChannelUrls?: string | undefined;
68
+ groupKey?: string | undefined;
69
69
  }>;
@@ -46,14 +46,14 @@ export declare const FieldsValidationSchema: z.ZodObject<{
46
46
  metadata: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, import("../../../types").Metadata, string>, import("../../../types").Metadata, string>>;
47
47
  }, "strip", z.ZodTypeAny, {
48
48
  userId: string;
49
+ metadata?: import("../../../types").Metadata | undefined;
49
50
  nickname?: string | undefined;
50
51
  issueAccessToken?: boolean | undefined;
51
52
  profileUrl?: string | undefined;
52
- metadata?: import("../../../types").Metadata | undefined;
53
53
  }, {
54
54
  userId: string;
55
+ metadata?: string | undefined;
55
56
  nickname?: string | undefined;
56
57
  issueAccessToken?: boolean | undefined;
57
58
  profileUrl?: string | undefined;
58
- metadata?: string | undefined;
59
59
  }>;
@@ -66,8 +66,8 @@ export declare const FieldsValidationSchema: z.ZodObject<{
66
66
  templateId: string;
67
67
  to: string;
68
68
  subject?: string | undefined;
69
- dynamicTemplateData?: string | undefined;
70
69
  fromName?: string | undefined;
71
70
  fromEmail?: string | undefined;
71
+ dynamicTemplateData?: string | undefined;
72
72
  }>;
73
73
  export {};
@@ -30,10 +30,10 @@ export declare const FieldsValidationSchema: z.ZodObject<{
30
30
  departmentId: z.ZodOptional<z.ZodString>;
31
31
  }, "strip", z.ZodTypeAny, {
32
32
  phoneNumber?: import("libphonenumber-js").E164Number | undefined;
33
- afterMessageId?: string | undefined;
34
33
  departmentId?: string | undefined;
34
+ afterMessageId?: string | undefined;
35
35
  }, {
36
36
  phoneNumber?: string | undefined;
37
- afterMessageId?: string | undefined;
38
37
  departmentId?: string | undefined;
38
+ afterMessageId?: string | undefined;
39
39
  }>;