@metriport/shared 0.20.2 → 0.20.3

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 (59) hide show
  1. package/dist/domain/db.d.ts +2 -2
  2. package/dist/index.d.ts +6 -6
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +5 -5
  5. package/dist/index.js.map +1 -1
  6. package/dist/interface/external/ehr/athenahealth/appointment.d.ts +26 -4
  7. package/dist/interface/external/ehr/athenahealth/appointment.d.ts.map +1 -1
  8. package/dist/interface/external/ehr/athenahealth/appointment.js +7 -3
  9. package/dist/interface/external/ehr/athenahealth/appointment.js.map +1 -1
  10. package/dist/interface/external/ehr/athenahealth/cx-mapping.d.ts +3 -0
  11. package/dist/interface/external/ehr/athenahealth/cx-mapping.d.ts.map +1 -1
  12. package/dist/interface/external/ehr/athenahealth/cx-mapping.js +1 -0
  13. package/dist/interface/external/ehr/athenahealth/cx-mapping.js.map +1 -1
  14. package/dist/interface/external/ehr/canvas/appointment.d.ts +38 -20
  15. package/dist/interface/external/ehr/canvas/appointment.d.ts.map +1 -1
  16. package/dist/interface/external/ehr/canvas/appointment.js +6 -5
  17. package/dist/interface/external/ehr/canvas/appointment.js.map +1 -1
  18. package/dist/interface/external/ehr/elation/appointment.d.ts +5 -2
  19. package/dist/interface/external/ehr/elation/appointment.d.ts.map +1 -1
  20. package/dist/interface/external/ehr/elation/appointment.js +3 -2
  21. package/dist/interface/external/ehr/elation/appointment.js.map +1 -1
  22. package/dist/interface/external/ehr/elation/cx-mapping.d.ts +43 -0
  23. package/dist/interface/external/ehr/elation/cx-mapping.d.ts.map +1 -0
  24. package/dist/interface/external/ehr/elation/cx-mapping.js +19 -0
  25. package/dist/interface/external/ehr/elation/cx-mapping.js.map +1 -0
  26. package/dist/interface/external/ehr/elation/event.d.ts +106 -0
  27. package/dist/interface/external/ehr/elation/event.d.ts.map +1 -0
  28. package/dist/interface/external/ehr/elation/event.js +31 -0
  29. package/dist/interface/external/ehr/elation/event.js.map +1 -0
  30. package/dist/interface/external/ehr/elation/index.d.ts +1 -0
  31. package/dist/interface/external/ehr/elation/index.d.ts.map +1 -1
  32. package/dist/interface/external/ehr/elation/index.js +1 -0
  33. package/dist/interface/external/ehr/elation/index.js.map +1 -1
  34. package/dist/interface/external/ehr/elation/jwt-token.d.ts +0 -15
  35. package/dist/interface/external/ehr/elation/jwt-token.d.ts.map +1 -1
  36. package/dist/interface/external/ehr/elation/jwt-token.js +1 -7
  37. package/dist/interface/external/ehr/elation/jwt-token.js.map +1 -1
  38. package/dist/interface/external/ehr/elation/subscription.d.ts +53 -0
  39. package/dist/interface/external/ehr/elation/subscription.d.ts.map +1 -0
  40. package/dist/interface/external/ehr/elation/subscription.js +22 -0
  41. package/dist/interface/external/ehr/elation/subscription.js.map +1 -0
  42. package/dist/interface/external/ehr/patient.d.ts +12 -12
  43. package/package.json +2 -2
  44. package/dist/common/titleCase.d.ts +0 -2
  45. package/dist/common/titleCase.d.ts.map +0 -1
  46. package/dist/common/titleCase.js +0 -10
  47. package/dist/common/titleCase.js.map +0 -1
  48. package/dist/domain/address/__tests__/normalize-zip.test.d.ts +0 -2
  49. package/dist/domain/address/__tests__/normalize-zip.test.d.ts.map +0 -1
  50. package/dist/domain/address/__tests__/normalize-zip.test.js +0 -83
  51. package/dist/domain/address/__tests__/normalize-zip.test.js.map +0 -1
  52. package/dist/interface/external/athenahealth/patient.d.ts +0 -44
  53. package/dist/interface/external/athenahealth/patient.d.ts.map +0 -1
  54. package/dist/interface/external/athenahealth/patient.js +0 -15
  55. package/dist/interface/external/athenahealth/patient.js.map +0 -1
  56. package/dist/interface/external/elation/subscription.d.ts +0 -2
  57. package/dist/interface/external/elation/subscription.d.ts.map +0 -1
  58. package/dist/interface/external/elation/subscription.js +0 -3
  59. package/dist/interface/external/elation/subscription.js.map +0 -1
@@ -44,13 +44,13 @@ export declare const dbPoolSettingsSchema: z.ZodObject<{
44
44
  acquire: z.ZodNumber;
45
45
  idle: z.ZodNumber;
46
46
  }, "strip", z.ZodTypeAny, {
47
- min: number;
48
47
  max: number;
48
+ min: number;
49
49
  acquire: number;
50
50
  idle: number;
51
51
  }, {
52
- min: number;
53
52
  max: number;
53
+ min: number;
54
54
  acquire: number;
55
55
  idle: number;
56
56
  }>;
package/dist/index.d.ts CHANGED
@@ -15,26 +15,26 @@ export * from "./common/string";
15
15
  export { toTitleCase } from "./common/title-case";
16
16
  export { AtLeastOne, stringToBoolean } from "./common/types";
17
17
  export { validateNPI } from "./common/validate-npi";
18
- export * from "./domain/address/index";
18
+ export * from "./domain/address/city";
19
19
  export * from "./domain/address/country";
20
+ export * from "./domain/address/index";
20
21
  export * from "./domain/address/state";
21
22
  export * from "./domain/address/territory";
22
23
  export * from "./domain/address/zip";
23
- export * from "./domain/address/city";
24
24
  export * from "./domain/contact/email";
25
25
  export * from "./domain/contact/phone";
26
+ export * from "./domain/db";
26
27
  export * from "./domain/dob";
27
28
  export * from "./domain/externalId";
28
29
  export * from "./domain/gender";
30
+ export * from "./domain/jwt-token";
29
31
  export { metriportCompanyDetails } from "./domain/metriport";
30
32
  export * from "./domain/patient/patient";
31
33
  export * from "./domain/patient/patient-import";
32
- export * from "./domain/secrets";
33
34
  export * from "./domain/rate-limiting";
34
- export * from "./domain/jwt-token";
35
- export * from "./domain/db";
35
+ export * from "./domain/secrets";
36
36
  export { BadRequestError } from "./error/bad-request";
37
- export { MetriportError, AdditionalInfo } from "./error/metriport-error";
37
+ export { AdditionalInfo, MetriportError } from "./error/metriport-error";
38
38
  export { NotFoundError } from "./error/not-found";
39
39
  export { errorToString } from "./error/shared";
40
40
  export { TooManyRequestsError } from "./error/too-many-requests";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MA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C7D,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,cAAc,0BAA0B,CAAC;AACzC,cAAc,iCAAiC,CAAC;AAChD,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC;AACjC,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzE,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,cAAc,aAAa,CAAC;AAC5B,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC"}
package/dist/index.js CHANGED
@@ -60,25 +60,25 @@ var types_1 = require("./common/types");
60
60
  Object.defineProperty(exports, "stringToBoolean", { enumerable: true, get: function () { return types_1.stringToBoolean; } });
61
61
  var validate_npi_1 = require("./common/validate-npi");
62
62
  Object.defineProperty(exports, "validateNPI", { enumerable: true, get: function () { return validate_npi_1.validateNPI; } });
63
- __exportStar(require("./domain/address/index"), exports);
63
+ __exportStar(require("./domain/address/city"), exports);
64
64
  __exportStar(require("./domain/address/country"), exports);
65
+ __exportStar(require("./domain/address/index"), exports);
65
66
  __exportStar(require("./domain/address/state"), exports);
66
67
  __exportStar(require("./domain/address/territory"), exports);
67
68
  __exportStar(require("./domain/address/zip"), exports);
68
- __exportStar(require("./domain/address/city"), exports);
69
69
  __exportStar(require("./domain/contact/email"), exports);
70
70
  __exportStar(require("./domain/contact/phone"), exports);
71
+ __exportStar(require("./domain/db"), exports);
71
72
  __exportStar(require("./domain/dob"), exports);
72
73
  __exportStar(require("./domain/externalId"), exports);
73
74
  __exportStar(require("./domain/gender"), exports);
75
+ __exportStar(require("./domain/jwt-token"), exports);
74
76
  var metriport_1 = require("./domain/metriport");
75
77
  Object.defineProperty(exports, "metriportCompanyDetails", { enumerable: true, get: function () { return metriport_1.metriportCompanyDetails; } });
76
78
  __exportStar(require("./domain/patient/patient"), exports);
77
79
  __exportStar(require("./domain/patient/patient-import"), exports);
78
- __exportStar(require("./domain/secrets"), exports);
79
80
  __exportStar(require("./domain/rate-limiting"), exports);
80
- __exportStar(require("./domain/jwt-token"), exports);
81
- __exportStar(require("./domain/db"), exports);
81
+ __exportStar(require("./domain/secrets"), exports);
82
82
  var bad_request_1 = require("./error/bad-request");
83
83
  Object.defineProperty(exports, "BadRequestError", { enumerable: true, get: function () { return bad_request_1.BadRequestError; } });
84
84
  var metriport_error_1 = require("./error/metriport-error");
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,wCAAyC;AAAhC,gGAAA,OAAO,OAAA;AAChB,4CAA0C;AAAjC,iGAAA,MAAM,OAAA;AACf,sCAAwF;AAA/E,kGAAA,UAAU,OAAA;AAAE,0GAAA,kBAAkB,OAAA;AAAE,+GAAA,uBAAuB,OAAA;AAChE,wCAA8D;AAArD,qHAAA,4BAA4B,OAAA;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
4
+ departmentid: z.ZodString;
4
5
  appointmenttypeid: z.ZodString;
5
6
  }, "strip", z.ZodTypeAny, {
6
7
  patientid: string;
8
+ departmentid: string;
7
9
  appointmenttypeid: string;
8
10
  }, {
9
11
  patientid: string;
12
+ departmentid: string;
10
13
  appointmenttypeid: string;
11
14
  }>;
12
15
  export type BookedAppointment = z.infer<typeof bookedAppointmentSchema>;
13
- export declare const bookedAppointmentsSchema: z.ZodObject<{
16
+ export declare const bookedAppointmentListResponseSchema: z.ZodObject<{
14
17
  appointments: z.ZodArray<z.ZodObject<{
15
18
  patientid: z.ZodString;
19
+ departmentid: z.ZodString;
16
20
  appointmenttypeid: z.ZodString;
17
21
  }, "strip", z.ZodTypeAny, {
18
22
  patientid: string;
23
+ departmentid: string;
19
24
  appointmenttypeid: string;
20
25
  }, {
21
26
  patientid: string;
27
+ departmentid: string;
22
28
  appointmenttypeid: string;
23
29
  }>, "many">;
30
+ next: z.ZodOptional<z.ZodString>;
24
31
  }, "strip", z.ZodTypeAny, {
25
32
  appointments: {
26
33
  patientid: string;
34
+ departmentid: string;
27
35
  appointmenttypeid: string;
28
36
  }[];
37
+ next?: string | undefined;
29
38
  }, {
30
39
  appointments: {
31
40
  patientid: string;
41
+ departmentid: string;
32
42
  appointmenttypeid: string;
33
43
  }[];
44
+ next?: string | undefined;
34
45
  }>;
35
- export type BookedAppointments = z.infer<typeof bookedAppointmentsSchema>;
46
+ export type BookedAppointmentListResponse = z.infer<typeof bookedAppointmentListResponseSchema>;
36
47
  declare const appointmentEventSchema: z.ZodObject<{
37
48
  patientid: z.ZodOptional<z.ZodString>;
49
+ departmentid: z.ZodString;
38
50
  appointmentstatus: z.ZodString;
39
51
  appointmenttypeid: z.ZodString;
40
52
  }, "strip", z.ZodTypeAny, {
53
+ departmentid: string;
41
54
  appointmenttypeid: string;
42
55
  appointmentstatus: string;
43
56
  patientid?: string | undefined;
44
57
  }, {
58
+ departmentid: string;
45
59
  appointmenttypeid: string;
46
60
  appointmentstatus: string;
47
61
  patientid?: string | undefined;
48
62
  }>;
49
63
  export type AppointmentEvent = z.infer<typeof appointmentEventSchema>;
50
- export declare const appointmentEventsSchema: z.ZodObject<{
64
+ export declare const appointmentEventListResponseSchema: z.ZodObject<{
51
65
  appointments: z.ZodArray<z.ZodObject<{
52
66
  patientid: z.ZodOptional<z.ZodString>;
67
+ departmentid: z.ZodString;
53
68
  appointmentstatus: z.ZodString;
54
69
  appointmenttypeid: z.ZodString;
55
70
  }, "strip", z.ZodTypeAny, {
71
+ departmentid: string;
56
72
  appointmenttypeid: string;
57
73
  appointmentstatus: string;
58
74
  patientid?: string | undefined;
59
75
  }, {
76
+ departmentid: string;
60
77
  appointmenttypeid: string;
61
78
  appointmentstatus: string;
62
79
  patientid?: string | undefined;
63
80
  }>, "many">;
81
+ next: z.ZodOptional<z.ZodString>;
64
82
  }, "strip", z.ZodTypeAny, {
65
83
  appointments: {
84
+ departmentid: string;
66
85
  appointmenttypeid: string;
67
86
  appointmentstatus: string;
68
87
  patientid?: string | undefined;
69
88
  }[];
89
+ next?: string | undefined;
70
90
  }, {
71
91
  appointments: {
92
+ departmentid: string;
72
93
  appointmenttypeid: string;
73
94
  appointmentstatus: string;
74
95
  patientid?: string | undefined;
75
96
  }[];
97
+ next?: string | undefined;
76
98
  }>;
77
- export type AppointmentEvents = z.infer<typeof appointmentEventsSchema>;
99
+ export type AppointmentEventListResponse = z.infer<typeof appointmentEventListResponseSchema>;
78
100
  export {};
79
101
  //# sourceMappingURL=appointment.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"appointment.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/athenahealth/appointment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,uBAAuB;;;;;;;;;EAGlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;EAEnC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,QAAA,MAAM,sBAAsB;;;;;;;;;;;;EAI1B,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACtE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;EAElC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
1
+ {"version":3,"file":"appointment.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/athenahealth/appointment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,uBAAuB;;;;;;;;;;;;EAIlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG9C,CAAC;AACH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC;AAEhG,QAAA,MAAM,sBAAsB;;;;;;;;;;;;;;;EAK1B,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACtE,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG7C,CAAC;AACH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC"}
@@ -1,20 +1,24 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.appointmentEventsSchema = exports.bookedAppointmentsSchema = exports.bookedAppointmentSchema = void 0;
3
+ exports.appointmentEventListResponseSchema = exports.bookedAppointmentListResponseSchema = exports.bookedAppointmentSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  exports.bookedAppointmentSchema = zod_1.z.object({
6
6
  patientid: zod_1.z.string(),
7
+ departmentid: zod_1.z.string(),
7
8
  appointmenttypeid: zod_1.z.string(),
8
9
  });
9
- exports.bookedAppointmentsSchema = zod_1.z.object({
10
+ exports.bookedAppointmentListResponseSchema = zod_1.z.object({
10
11
  appointments: exports.bookedAppointmentSchema.array(),
12
+ next: zod_1.z.string().optional(),
11
13
  });
12
14
  const appointmentEventSchema = zod_1.z.object({
13
15
  patientid: zod_1.z.string().optional(),
16
+ departmentid: zod_1.z.string(),
14
17
  appointmentstatus: zod_1.z.string(),
15
18
  appointmenttypeid: zod_1.z.string(),
16
19
  });
17
- exports.appointmentEventsSchema = zod_1.z.object({
20
+ exports.appointmentEventListResponseSchema = zod_1.z.object({
18
21
  appointments: appointmentEventSchema.array(),
22
+ next: zod_1.z.string().optional(),
19
23
  });
20
24
  //# sourceMappingURL=appointment.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"appointment.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/athenahealth/appointment.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;IACrB,iBAAiB,EAAE,OAAC,CAAC,MAAM,EAAE;CAC9B,CAAC,CAAC;AAEU,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,YAAY,EAAE,+BAAuB,CAAC,KAAK,EAAE;CAC9C,CAAC,CAAC;AAGH,MAAM,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IACtC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,iBAAiB,EAAE,OAAC,CAAC,MAAM,EAAE;IAC7B,iBAAiB,EAAE,OAAC,CAAC,MAAM,EAAE;CAC9B,CAAC,CAAC;AAEU,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,YAAY,EAAE,sBAAsB,CAAC,KAAK,EAAE;CAC7C,CAAC,CAAC"}
1
+ {"version":3,"file":"appointment.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/athenahealth/appointment.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;IACrB,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE;IACxB,iBAAiB,EAAE,OAAC,CAAC,MAAM,EAAE;CAC9B,CAAC,CAAC;AAEU,QAAA,mCAAmC,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1D,YAAY,EAAE,+BAAuB,CAAC,KAAK,EAAE;IAC7C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC5B,CAAC,CAAC;AAGH,MAAM,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IACtC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE;IACxB,iBAAiB,EAAE,OAAC,CAAC,MAAM,EAAE;IAC7B,iBAAiB,EAAE,OAAC,CAAC,MAAM,EAAE;CAC9B,CAAC,CAAC;AAEU,QAAA,kCAAkC,GAAG,OAAC,CAAC,MAAM,CAAC;IACzD,YAAY,EAAE,sBAAsB,CAAC,KAAK,EAAE;IAC5C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC5B,CAAC,CAAC"}
@@ -1,12 +1,15 @@
1
1
  import { z } from "zod";
2
2
  export declare const athenaSecondaryMappingsSchema: z.ZodObject<{
3
3
  departmentIds: z.ZodArray<z.ZodString, "many">;
4
+ webhookAppointmentDisabled: z.ZodOptional<z.ZodBoolean>;
4
5
  backgroundAppointmentsDisabled: z.ZodOptional<z.ZodBoolean>;
5
6
  }, "strip", z.ZodTypeAny, {
6
7
  departmentIds: string[];
8
+ webhookAppointmentDisabled?: boolean | undefined;
7
9
  backgroundAppointmentsDisabled?: boolean | undefined;
8
10
  }, {
9
11
  departmentIds: string[];
12
+ webhookAppointmentDisabled?: boolean | undefined;
10
13
  backgroundAppointmentsDisabled?: boolean | undefined;
11
14
  }>;
12
15
  export type AthenaSecondaryMappings = z.infer<typeof athenaSecondaryMappingsSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"cx-mapping.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/athenahealth/cx-mapping.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,6BAA6B;;;;;;;;;EAGxC,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC"}
1
+ {"version":3,"file":"cx-mapping.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/athenahealth/cx-mapping.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,6BAA6B;;;;;;;;;;;;EAIxC,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC"}
@@ -4,6 +4,7 @@ exports.athenaSecondaryMappingsSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  exports.athenaSecondaryMappingsSchema = zod_1.z.object({
6
6
  departmentIds: zod_1.z.string().array(),
7
+ webhookAppointmentDisabled: zod_1.z.boolean().optional(),
7
8
  backgroundAppointmentsDisabled: zod_1.z.boolean().optional(),
8
9
  });
9
10
  //# sourceMappingURL=cx-mapping.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"cx-mapping.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/athenahealth/cx-mapping.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,6BAA6B,GAAG,OAAC,CAAC,MAAM,CAAC;IACpD,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE;IACjC,8BAA8B,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CACvD,CAAC,CAAC"}
1
+ {"version":3,"file":"cx-mapping.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/athenahealth/cx-mapping.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,6BAA6B,GAAG,OAAC,CAAC,MAAM,CAAC;IACpD,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE;IACjC,0BAA0B,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAClD,8BAA8B,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CACvD,CAAC,CAAC"}
@@ -7,7 +7,7 @@ export declare const slimBookedAppointmentSchema: z.ZodObject<{
7
7
  patientId: string;
8
8
  }>;
9
9
  export type SlimBookedAppointment = z.infer<typeof slimBookedAppointmentSchema>;
10
- export declare const bookedAppointmentSchema: z.ZodObject<{
10
+ export declare const appointmentSchema: z.ZodObject<{
11
11
  resourceType: z.ZodLiteral<"Appointment">;
12
12
  participant: z.ZodArray<z.ZodObject<{
13
13
  actor: z.ZodObject<{
@@ -31,9 +31,9 @@ export declare const bookedAppointmentSchema: z.ZodObject<{
31
31
  reference: string;
32
32
  };
33
33
  }>, "many">;
34
- status: z.ZodLiteral<"booked">;
34
+ status: z.ZodString;
35
35
  }, "strip", z.ZodTypeAny, {
36
- status: "booked";
36
+ status: string;
37
37
  resourceType: "Appointment";
38
38
  participant: {
39
39
  actor: {
@@ -42,7 +42,7 @@ export declare const bookedAppointmentSchema: z.ZodObject<{
42
42
  };
43
43
  }[];
44
44
  }, {
45
- status: "booked";
45
+ status: string;
46
46
  resourceType: "Appointment";
47
47
  participant: {
48
48
  actor: {
@@ -51,9 +51,9 @@ export declare const bookedAppointmentSchema: z.ZodObject<{
51
51
  };
52
52
  }[];
53
53
  }>;
54
- export type BookedAppointment = z.infer<typeof bookedAppointmentSchema>;
55
- export declare const bookedAppointmentsSchema: z.ZodObject<{
56
- entry: z.ZodArray<z.ZodObject<{
54
+ export type Appointment = z.infer<typeof appointmentSchema>;
55
+ export declare const appointmentListResponseSchema: z.ZodObject<{
56
+ entry: z.ZodOptional<z.ZodArray<z.ZodObject<{
57
57
  resource: z.ZodObject<{
58
58
  resourceType: z.ZodLiteral<"Appointment">;
59
59
  participant: z.ZodArray<z.ZodObject<{
@@ -78,9 +78,9 @@ export declare const bookedAppointmentsSchema: z.ZodObject<{
78
78
  reference: string;
79
79
  };
80
80
  }>, "many">;
81
- status: z.ZodLiteral<"booked">;
81
+ status: z.ZodString;
82
82
  }, "strip", z.ZodTypeAny, {
83
- status: "booked";
83
+ status: string;
84
84
  resourceType: "Appointment";
85
85
  participant: {
86
86
  actor: {
@@ -89,7 +89,7 @@ export declare const bookedAppointmentsSchema: z.ZodObject<{
89
89
  };
90
90
  }[];
91
91
  }, {
92
- status: "booked";
92
+ status: string;
93
93
  resourceType: "Appointment";
94
94
  participant: {
95
95
  actor: {
@@ -100,7 +100,7 @@ export declare const bookedAppointmentsSchema: z.ZodObject<{
100
100
  }>;
101
101
  }, "strip", z.ZodTypeAny, {
102
102
  resource: {
103
- status: "booked";
103
+ status: string;
104
104
  resourceType: "Appointment";
105
105
  participant: {
106
106
  actor: {
@@ -111,7 +111,7 @@ export declare const bookedAppointmentsSchema: z.ZodObject<{
111
111
  };
112
112
  }, {
113
113
  resource: {
114
- status: "booked";
114
+ status: string;
115
115
  resourceType: "Appointment";
116
116
  participant: {
117
117
  actor: {
@@ -120,11 +120,25 @@ export declare const bookedAppointmentsSchema: z.ZodObject<{
120
120
  };
121
121
  }[];
122
122
  };
123
- }>, "many">;
123
+ }>, "many">>;
124
+ link: z.ZodOptional<z.ZodArray<z.ZodObject<{
125
+ relation: z.ZodString;
126
+ url: z.ZodString;
127
+ }, "strip", z.ZodTypeAny, {
128
+ url: string;
129
+ relation: string;
130
+ }, {
131
+ url: string;
132
+ relation: string;
133
+ }>, "many">>;
124
134
  }, "strip", z.ZodTypeAny, {
125
- entry: {
135
+ link?: {
136
+ url: string;
137
+ relation: string;
138
+ }[] | undefined;
139
+ entry?: {
126
140
  resource: {
127
- status: "booked";
141
+ status: string;
128
142
  resourceType: "Appointment";
129
143
  participant: {
130
144
  actor: {
@@ -133,11 +147,15 @@ export declare const bookedAppointmentsSchema: z.ZodObject<{
133
147
  };
134
148
  }[];
135
149
  };
136
- }[];
150
+ }[] | undefined;
137
151
  }, {
138
- entry: {
152
+ link?: {
153
+ url: string;
154
+ relation: string;
155
+ }[] | undefined;
156
+ entry?: {
139
157
  resource: {
140
- status: "booked";
158
+ status: string;
141
159
  resourceType: "Appointment";
142
160
  participant: {
143
161
  actor: {
@@ -146,7 +164,7 @@ export declare const bookedAppointmentsSchema: z.ZodObject<{
146
164
  };
147
165
  }[];
148
166
  };
149
- }[];
167
+ }[] | undefined;
150
168
  }>;
151
- export type BookedAppointments = z.infer<typeof bookedAppointmentsSchema>;
169
+ export type AppointmentListResponse = z.infer<typeof appointmentListResponseSchema>;
152
170
  //# sourceMappingURL=appointment.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"appointment.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/canvas/appointment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,2BAA2B;;;;;;EAEtC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEnC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
1
+ {"version":3,"file":"appointment.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/canvas/appointment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,2BAA2B;;;;;;EAEtC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAW5B,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC5D,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGxC,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC"}
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.bookedAppointmentsSchema = exports.bookedAppointmentSchema = exports.slimBookedAppointmentSchema = void 0;
3
+ exports.appointmentListResponseSchema = exports.appointmentSchema = exports.slimBookedAppointmentSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  exports.slimBookedAppointmentSchema = zod_1.z.object({
6
6
  patientId: zod_1.z.string(),
7
7
  });
8
- exports.bookedAppointmentSchema = zod_1.z.object({
8
+ exports.appointmentSchema = zod_1.z.object({
9
9
  resourceType: zod_1.z.literal("Appointment"),
10
10
  participant: zod_1.z
11
11
  .object({
@@ -15,9 +15,10 @@ exports.bookedAppointmentSchema = zod_1.z.object({
15
15
  }),
16
16
  })
17
17
  .array(),
18
- status: zod_1.z.literal("booked"),
18
+ status: zod_1.z.string(),
19
19
  });
20
- exports.bookedAppointmentsSchema = zod_1.z.object({
21
- entry: zod_1.z.object({ resource: exports.bookedAppointmentSchema }).array(),
20
+ exports.appointmentListResponseSchema = zod_1.z.object({
21
+ entry: zod_1.z.object({ resource: exports.appointmentSchema }).array().optional(),
22
+ link: zod_1.z.object({ relation: zod_1.z.string(), url: zod_1.z.string() }).array().optional(),
22
23
  });
23
24
  //# sourceMappingURL=appointment.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"appointment.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/canvas/appointment.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC;IAClD,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAC;AAGU,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,YAAY,EAAE,OAAC,CAAC,OAAO,CAAC,aAAa,CAAC;IACtC,WAAW,EAAE,OAAC;SACX,MAAM,CAAC;QACN,KAAK,EAAE,OAAC,CAAC,MAAM,CAAC;YACd,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;YACrB,IAAI,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,cAAc,CAAC,CAAC;SAC1C,CAAC;KAC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EAAE;CAC7E,CAAC,CAAC"}
@@ -28,7 +28,7 @@ export declare const appointmentSchema: z.ZodObject<{
28
28
  patient: string | null;
29
29
  }>;
30
30
  export type Appointment = z.infer<typeof appointmentSchema>;
31
- export declare const appointmentsSchema: z.ZodObject<{
31
+ export declare const appointmentListResponseSchema: z.ZodObject<{
32
32
  results: z.ZodArray<z.ZodObject<{
33
33
  patient: z.ZodNullable<z.ZodString>;
34
34
  status: z.ZodNullable<z.ZodObject<{
@@ -49,7 +49,9 @@ export declare const appointmentsSchema: z.ZodObject<{
49
49
  } | null;
50
50
  patient: string | null;
51
51
  }>, "many">;
52
+ next: z.ZodNullable<z.ZodString>;
52
53
  }, "strip", z.ZodTypeAny, {
54
+ next: string | null;
53
55
  results: {
54
56
  status: {
55
57
  status: string;
@@ -57,6 +59,7 @@ export declare const appointmentsSchema: z.ZodObject<{
57
59
  patient: string | null;
58
60
  }[];
59
61
  }, {
62
+ next: string | null;
60
63
  results: {
61
64
  status: {
62
65
  status: string;
@@ -64,5 +67,5 @@ export declare const appointmentsSchema: z.ZodObject<{
64
67
  patient: string | null;
65
68
  }[];
66
69
  }>;
67
- export type Appointments = z.infer<typeof appointmentsSchema>;
70
+ export type AppointmentListResponse = z.infer<typeof appointmentListResponseSchema>;
68
71
  //# sourceMappingURL=appointment.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"appointment.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/elation/appointment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,uBAAuB;;;;;;EAElC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;EAG5B,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC5D,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
1
+ {"version":3,"file":"appointment.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/elation/appointment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,uBAAuB;;;;;;EAElC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;EAG5B,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC5D,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGxC,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.appointmentsSchema = exports.appointmentSchema = exports.bookedAppointmentSchema = void 0;
3
+ exports.appointmentListResponseSchema = exports.appointmentSchema = exports.bookedAppointmentSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  exports.bookedAppointmentSchema = zod_1.z.object({
6
6
  patient: zod_1.z.coerce.string(),
@@ -9,7 +9,8 @@ exports.appointmentSchema = zod_1.z.object({
9
9
  patient: zod_1.z.coerce.string().nullable(),
10
10
  status: zod_1.z.object({ status: zod_1.z.string() }).nullable(),
11
11
  });
12
- exports.appointmentsSchema = zod_1.z.object({
12
+ exports.appointmentListResponseSchema = zod_1.z.object({
13
13
  results: exports.appointmentSchema.array(),
14
+ next: zod_1.z.string().nullable(),
14
15
  });
15
16
  //# sourceMappingURL=appointment.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"appointment.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/elation/appointment.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;CAC3B,CAAC,CAAC;AAGU,QAAA,iBAAiB,GAAG,OAAC,CAAC,MAAM,CAAC;IACxC,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,MAAM,EAAE,OAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,QAAQ,EAAE;CACpD,CAAC,CAAC;AAEU,QAAA,kBAAkB,GAAG,OAAC,CAAC,MAAM,CAAC;IACzC,OAAO,EAAE,yBAAiB,CAAC,KAAK,EAAE;CACnC,CAAC,CAAC"}
1
+ {"version":3,"file":"appointment.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/elation/appointment.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;CAC3B,CAAC,CAAC;AAGU,QAAA,iBAAiB,GAAG,OAAC,CAAC,MAAM,CAAC;IACxC,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,MAAM,EAAE,OAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,QAAQ,EAAE;CACpD,CAAC,CAAC;AAEU,QAAA,6BAA6B,GAAG,OAAC,CAAC,MAAM,CAAC;IACpD,OAAO,EAAE,yBAAiB,CAAC,KAAK,EAAE;IAClC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC5B,CAAC,CAAC"}
@@ -0,0 +1,43 @@
1
+ import { z } from "zod";
2
+ export declare const elationSecondaryMappingsSchema: z.ZodObject<{
3
+ webhooks: z.ZodOptional<z.ZodRecord<z.ZodEnum<["appointments", "patients"]>, z.ZodObject<{
4
+ url: z.ZodString;
5
+ signingKey: z.ZodString;
6
+ }, "strip", z.ZodTypeAny, {
7
+ url: string;
8
+ signingKey: string;
9
+ }, {
10
+ url: string;
11
+ signingKey: string;
12
+ }>>>;
13
+ webhookPatientPatientLinkingDisabled: z.ZodOptional<z.ZodBoolean>;
14
+ webhookPatientPatientProcessingEnabled: z.ZodOptional<z.ZodBoolean>;
15
+ webhookAppointmentPatientLinkingDisabled: z.ZodOptional<z.ZodBoolean>;
16
+ webhookAppointmentPatientProcessingDisabled: z.ZodOptional<z.ZodBoolean>;
17
+ backgroundAppointmentsDisabled: z.ZodOptional<z.ZodBoolean>;
18
+ backgroundAppointmentPatientProcessingDisabled: z.ZodOptional<z.ZodBoolean>;
19
+ }, "strip", z.ZodTypeAny, {
20
+ backgroundAppointmentsDisabled?: boolean | undefined;
21
+ webhooks?: Partial<Record<"patients" | "appointments", {
22
+ url: string;
23
+ signingKey: string;
24
+ }>> | undefined;
25
+ webhookPatientPatientLinkingDisabled?: boolean | undefined;
26
+ webhookPatientPatientProcessingEnabled?: boolean | undefined;
27
+ webhookAppointmentPatientLinkingDisabled?: boolean | undefined;
28
+ webhookAppointmentPatientProcessingDisabled?: boolean | undefined;
29
+ backgroundAppointmentPatientProcessingDisabled?: boolean | undefined;
30
+ }, {
31
+ backgroundAppointmentsDisabled?: boolean | undefined;
32
+ webhooks?: Partial<Record<"patients" | "appointments", {
33
+ url: string;
34
+ signingKey: string;
35
+ }>> | undefined;
36
+ webhookPatientPatientLinkingDisabled?: boolean | undefined;
37
+ webhookPatientPatientProcessingEnabled?: boolean | undefined;
38
+ webhookAppointmentPatientLinkingDisabled?: boolean | undefined;
39
+ webhookAppointmentPatientProcessingDisabled?: boolean | undefined;
40
+ backgroundAppointmentPatientProcessingDisabled?: boolean | undefined;
41
+ }>;
42
+ export type ElationSecondaryMappings = z.infer<typeof elationSecondaryMappingsSchema>;
43
+ //# sourceMappingURL=cx-mapping.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cx-mapping.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/elation/cx-mapping.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQzC,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.elationSecondaryMappingsSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const subscription_1 = require("./subscription");
6
+ const webhookSchema = zod_1.z.object({
7
+ url: zod_1.z.string(),
8
+ signingKey: zod_1.z.string(),
9
+ });
10
+ exports.elationSecondaryMappingsSchema = zod_1.z.object({
11
+ webhooks: zod_1.z.record(zod_1.z.enum(subscription_1.subscriptionResources), webhookSchema).optional(),
12
+ webhookPatientPatientLinkingDisabled: zod_1.z.boolean().optional(),
13
+ webhookPatientPatientProcessingEnabled: zod_1.z.boolean().optional(),
14
+ webhookAppointmentPatientLinkingDisabled: zod_1.z.boolean().optional(),
15
+ webhookAppointmentPatientProcessingDisabled: zod_1.z.boolean().optional(),
16
+ backgroundAppointmentsDisabled: zod_1.z.boolean().optional(),
17
+ backgroundAppointmentPatientProcessingDisabled: zod_1.z.boolean().optional(),
18
+ });
19
+ //# sourceMappingURL=cx-mapping.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cx-mapping.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/elation/cx-mapping.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iDAAuD;AAEvD,MAAM,aAAa,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7B,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE;CACvB,CAAC,CAAC;AAEU,QAAA,8BAA8B,GAAG,OAAC,CAAC,MAAM,CAAC;IACrD,QAAQ,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,IAAI,CAAC,oCAAqB,CAAC,EAAE,aAAa,CAAC,CAAC,QAAQ,EAAE;IAC3E,oCAAoC,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC5D,sCAAsC,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC9D,wCAAwC,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAChE,2CAA2C,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACnE,8BAA8B,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACtD,8CAA8C,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CACvE,CAAC,CAAC"}