@awell-health/awell-extensions 1.1.43 → 1.1.45
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/extensions/athenahealth/actions/index.d.ts +1 -1
- package/dist/extensions/athenahealth/settings.d.ts +2 -2
- package/dist/extensions/awell/v1/actions/updatePatient/config/fields.d.ts +2 -2
- package/dist/extensions/awell/v1/webhooks/index.d.ts +1 -1
- package/dist/extensions/awell/v1/webhooks/pathwayStart.d.ts +3 -1
- package/dist/extensions/awell/v1/webhooks/pathwayStart.js +13 -3
- package/dist/extensions/awell/v1/webhooks/pathwayStart.js.map +1 -1
- package/dist/extensions/calDotCom/actions/createBooking/config/fields.d.ts +12 -12
- package/dist/extensions/calDotCom/actions/updateBooking/config/fields.d.ts +6 -6
- package/dist/extensions/calDotCom/schema.d.ts +70 -70
- package/dist/extensions/calDotCom/webhooks/index.d.ts +1 -1
- package/dist/extensions/calendly/schema.d.ts +262 -262
- package/dist/extensions/calendly/webhooks/index.d.ts +1 -1
- package/dist/extensions/canvasMedical/v1/actions/createClaim/config/fields.d.ts +2 -2
- package/dist/extensions/canvasMedical/v1/actions/createCoverage/config/fields.d.ts +2 -2
- package/dist/extensions/canvasMedical/v1/actions/createQuestionnaireResponses/config/fields.d.ts +2 -2
- package/dist/extensions/canvasMedical/v1/actions/updateCoverage/config/fields.d.ts +4 -4
- package/dist/extensions/canvasMedical/v1/validation/address.zod.d.ts +4 -4
- package/dist/extensions/canvasMedical/v1/validation/appointment.zod.d.ts +48 -48
- package/dist/extensions/canvasMedical/v1/validation/claim.d.ts +6 -6
- package/dist/extensions/canvasMedical/v1/validation/coding.zod.d.ts +2 -2
- package/dist/extensions/canvasMedical/v1/validation/coverage.zod.d.ts +6 -6
- package/dist/extensions/canvasMedical/v1/validation/identifier.zod.d.ts +8 -8
- package/dist/extensions/canvasMedical/v1/validation/patient.zod.d.ts +148 -148
- package/dist/extensions/canvasMedical/v1/validation/questionnaireResponses.zod.d.ts +30 -30
- package/dist/extensions/canvasMedical/v1/validation/settings.zod.d.ts +4 -4
- package/dist/extensions/canvasMedical/v1/validation/task.zod.d.ts +12 -12
- package/dist/extensions/collectData/v1/actions/remoteSingleSelect/config/fields.d.ts +2 -2
- package/dist/extensions/dockHealth/api/schema/atoms/patientReference.schema.d.ts +2 -2
- package/dist/extensions/dockHealth/api/schema/atoms/taskGroup.schema.d.ts +2 -2
- package/dist/extensions/dockHealth/api/schema/atoms/taskListReference.schema.d.ts +2 -2
- package/dist/extensions/dockHealth/api/schema/atoms/taskReference.schema.d.ts +2 -2
- package/dist/extensions/dockHealth/api/schema/atoms/taskWorkflowStatusReference.schema.d.ts +2 -2
- package/dist/extensions/dockHealth/api/schema/atoms/userReference.schema.d.ts +2 -2
- package/dist/extensions/dockHealth/api/schema/patient.schema.d.ts +10 -10
- package/dist/extensions/dockHealth/api/schema/task.schema.d.ts +77 -77
- package/dist/extensions/dockHealth/lib/dock.types.d.ts +2 -2
- package/dist/extensions/elation/actions/index.d.ts +2 -2
- package/dist/extensions/elation/validation/appointment.zod.d.ts +18 -18
- package/dist/extensions/elation/validation/labOrder.zod.d.ts +2 -2
- package/dist/extensions/elation/validation/nonVisitNote.zod.d.ts +6 -6
- package/dist/extensions/elation/validation/patient.zod.d.ts +116 -116
- package/dist/extensions/elation/validation/physician.zod.d.ts +2 -2
- package/dist/extensions/elation/validation/settings.zod.d.ts +6 -6
- package/dist/extensions/elation/webhooks/index.d.ts +1 -1
- package/dist/extensions/formsort/settings.d.ts +3 -3
- package/dist/extensions/healthie/actions/createAppointment/config/fields.d.ts +30 -0
- package/dist/extensions/healthie/actions/createAppointment/config/fields.js +28 -1
- package/dist/extensions/healthie/actions/createAppointment/config/fields.js.map +1 -1
- package/dist/extensions/healthie/actions/createAppointment/config/index.d.ts +1 -1
- package/dist/extensions/healthie/actions/createAppointment/config/index.js +2 -1
- package/dist/extensions/healthie/actions/createAppointment/config/index.js.map +1 -1
- package/dist/extensions/healthie/actions/createAppointment/createAppointment.js +19 -61
- package/dist/extensions/healthie/actions/createAppointment/createAppointment.js.map +1 -1
- package/dist/extensions/healthie/actions/createAppointment/createAppointment.test.d.ts +1 -0
- package/dist/extensions/healthie/actions/createAppointment/createAppointment.test.js +42 -0
- package/dist/extensions/healthie/actions/createAppointment/createAppointment.test.js.map +1 -0
- package/dist/extensions/healthie/actions/createMetricEntry/createMetricEntry.js +1 -1
- package/dist/extensions/healthie/actions/getMetricEntry/getMetricEntry.js +1 -1
- package/dist/extensions/healthie/actions/index.d.ts +7 -0
- package/dist/extensions/healthie/actions/updatePatientQuickNote/updatePatientQuickNote.js +1 -1
- package/dist/extensions/healthie/lib/helpers.d.ts +8 -0
- package/dist/extensions/healthie/lib/helpers.js +6 -1
- package/dist/extensions/healthie/lib/helpers.js.map +1 -1
- package/dist/extensions/healthie/lib/sdk/createSdk.d.ts +10 -0
- package/dist/extensions/healthie/lib/sdk/createSdk.js +17 -0
- package/dist/extensions/healthie/lib/sdk/createSdk.js.map +1 -0
- package/dist/extensions/healthie/lib/sdk/errors.d.ts +1 -0
- package/dist/extensions/healthie/lib/sdk/errors.js +46 -1
- package/dist/extensions/healthie/lib/sdk/errors.js.map +1 -1
- package/dist/extensions/healthie/lib/sdk/generated/sdk.d.ts +399 -11
- package/dist/extensions/healthie/lib/sdk/generated/sdk.js +112 -5
- package/dist/extensions/healthie/lib/sdk/generated/sdk.js.map +1 -1
- package/dist/extensions/healthie/lib/sdk/validatePayloadAndCreateSdk.d.ts +2 -2
- package/dist/extensions/healthie/lib/sdk/validatePayloadAndCreateSdk.js +1 -1
- package/dist/extensions/healthie/lib/types.d.ts +2 -1
- package/dist/extensions/healthie/lib/types.js +2 -0
- package/dist/extensions/healthie/lib/types.js.map +1 -1
- package/dist/extensions/healthie/lib/validation/createTask.zod.d.ts +1 -1
- package/dist/extensions/healthie/lib/validation/sendFormCompletionRequest.zod.d.ts +4 -4
- package/dist/extensions/healthie/settings.d.ts +1 -1
- package/dist/extensions/healthie/settings.js +2 -2
- package/dist/extensions/healthie/webhooks/appliedTagCreated.d.ts +2 -1
- package/dist/extensions/healthie/webhooks/appliedTagCreated.js +20 -7
- package/dist/extensions/healthie/webhooks/appliedTagCreated.js.map +1 -1
- package/dist/extensions/healthie/webhooks/appliedTagDeleted.d.ts +2 -1
- package/dist/extensions/healthie/webhooks/appliedTagDeleted.js +20 -7
- package/dist/extensions/healthie/webhooks/appliedTagDeleted.js.map +1 -1
- package/dist/extensions/healthie/webhooks/appointmentCreated.d.ts +6 -1
- package/dist/extensions/healthie/webhooks/appointmentCreated.js +26 -6
- package/dist/extensions/healthie/webhooks/appointmentCreated.js.map +1 -1
- package/dist/extensions/healthie/webhooks/appointmentCreated.test.d.ts +1 -0
- package/dist/extensions/healthie/webhooks/appointmentCreated.test.js +61 -0
- package/dist/extensions/healthie/webhooks/appointmentCreated.test.js.map +1 -0
- package/dist/extensions/healthie/webhooks/appointmentDeleted.d.ts +2 -1
- package/dist/extensions/healthie/webhooks/appointmentDeleted.js +22 -6
- package/dist/extensions/healthie/webhooks/appointmentDeleted.js.map +1 -1
- package/dist/extensions/healthie/webhooks/appointmentUpdated.d.ts +6 -1
- package/dist/extensions/healthie/webhooks/appointmentUpdated.js +26 -6
- package/dist/extensions/healthie/webhooks/appointmentUpdated.js.map +1 -1
- package/dist/extensions/healthie/webhooks/formAnswerGroupCreated.d.ts +6 -1
- package/dist/extensions/healthie/webhooks/formAnswerGroupCreated.js +27 -7
- package/dist/extensions/healthie/webhooks/formAnswerGroupCreated.js.map +1 -1
- package/dist/extensions/healthie/webhooks/formAnswerGroupDeleted.d.ts +2 -1
- package/dist/extensions/healthie/webhooks/formAnswerGroupDeleted.js +21 -6
- package/dist/extensions/healthie/webhooks/formAnswerGroupDeleted.js.map +1 -1
- package/dist/extensions/healthie/webhooks/formAnswerGroupLocked.d.ts +6 -1
- package/dist/extensions/healthie/webhooks/formAnswerGroupLocked.js +26 -6
- package/dist/extensions/healthie/webhooks/formAnswerGroupLocked.js.map +1 -1
- package/dist/extensions/healthie/webhooks/formAnswerGroupSigned.d.ts +6 -1
- package/dist/extensions/healthie/webhooks/formAnswerGroupSigned.js +26 -6
- package/dist/extensions/healthie/webhooks/formAnswerGroupSigned.js.map +1 -1
- package/dist/extensions/healthie/webhooks/goalCreated.d.ts +3 -2
- package/dist/extensions/healthie/webhooks/goalCreated.js +22 -9
- package/dist/extensions/healthie/webhooks/goalCreated.js.map +1 -1
- package/dist/extensions/healthie/webhooks/goalCreated.test.d.ts +1 -0
- package/dist/extensions/healthie/webhooks/goalCreated.test.js +35 -0
- package/dist/extensions/healthie/webhooks/goalCreated.test.js.map +1 -0
- package/dist/extensions/healthie/webhooks/goalUpdated.d.ts +2 -1
- package/dist/extensions/healthie/webhooks/goalUpdated.js +21 -8
- package/dist/extensions/healthie/webhooks/goalUpdated.js.map +1 -1
- package/dist/extensions/healthie/webhooks/index.d.ts +316 -5
- package/dist/extensions/healthie/webhooks/index.js +0 -8
- package/dist/extensions/healthie/webhooks/index.js.map +1 -1
- package/dist/extensions/healthie/webhooks/labOrderCreated.d.ts +2 -1
- package/dist/extensions/healthie/webhooks/labOrderCreated.js +20 -7
- package/dist/extensions/healthie/webhooks/labOrderCreated.js.map +1 -1
- package/dist/extensions/healthie/webhooks/labOrderUpdated.d.ts +2 -1
- package/dist/extensions/healthie/webhooks/labOrderUpdated.js +20 -7
- package/dist/extensions/healthie/webhooks/labOrderUpdated.js.map +1 -1
- package/dist/extensions/healthie/webhooks/messageCreated.d.ts +2 -1
- package/dist/extensions/healthie/webhooks/messageCreated.js +21 -7
- package/dist/extensions/healthie/webhooks/messageCreated.js.map +1 -1
- package/dist/extensions/healthie/webhooks/messageDeleted.d.ts +2 -1
- package/dist/extensions/healthie/webhooks/messageDeleted.js +21 -7
- package/dist/extensions/healthie/webhooks/messageDeleted.js.map +1 -1
- package/dist/extensions/healthie/webhooks/metricEntryCreated.d.ts +2 -1
- package/dist/extensions/healthie/webhooks/metricEntryCreated.js +20 -7
- package/dist/extensions/healthie/webhooks/metricEntryCreated.js.map +1 -1
- package/dist/extensions/healthie/webhooks/metricEntryUpdated.d.ts +2 -1
- package/dist/extensions/healthie/webhooks/metricEntryUpdated.js +20 -7
- package/dist/extensions/healthie/webhooks/metricEntryUpdated.js.map +1 -1
- package/dist/extensions/healthie/webhooks/patientCreated.js +8 -1
- package/dist/extensions/healthie/webhooks/patientCreated.js.map +1 -1
- package/dist/extensions/healthie/webhooks/patientUpdated.js +8 -1
- package/dist/extensions/healthie/webhooks/patientUpdated.js.map +1 -1
- package/dist/extensions/healthie/webhooks/requestedFormCompletionCreated.d.ts +2 -1
- package/dist/extensions/healthie/webhooks/requestedFormCompletionCreated.js +20 -7
- package/dist/extensions/healthie/webhooks/requestedFormCompletionCreated.js.map +1 -1
- package/dist/extensions/healthie/webhooks/requestedFormCompletionUpdated.d.ts +2 -1
- package/dist/extensions/healthie/webhooks/requestedFormCompletionUpdated.js +20 -7
- package/dist/extensions/healthie/webhooks/requestedFormCompletionUpdated.js.map +1 -1
- package/dist/extensions/healthie/webhooks/taskCreated.d.ts +2 -1
- package/dist/extensions/healthie/webhooks/taskCreated.js +20 -7
- package/dist/extensions/healthie/webhooks/taskCreated.js.map +1 -1
- package/dist/extensions/healthie/webhooks/taskUpdated.d.ts +2 -1
- package/dist/extensions/healthie/webhooks/taskUpdated.js +21 -8
- package/dist/extensions/healthie/webhooks/taskUpdated.js.map +1 -1
- package/dist/extensions/hello-world/webhooks/index.d.ts +1 -1
- package/dist/extensions/infobip/v1/actions/sendEmail/config/fields.d.ts +2 -2
- package/dist/extensions/mailgun/settings.d.ts +1 -1
- package/dist/extensions/mailgun/v1/actions/sendEmailWithTemplate/config/fields.d.ts +2 -2
- package/dist/extensions/math/v1/actions/calculateDateDifference/config/fields.d.ts +2 -2
- package/dist/extensions/math/v1/actions/generateRandomNumber/config/fields.d.ts +2 -2
- package/dist/extensions/medplum/actions/createPatient/config/fields.d.ts +4 -4
- package/dist/extensions/medplum/actions/createServiceRequest/config/fields.d.ts +4 -4
- package/dist/extensions/medplum/actions/createTask/config/fields.d.ts +6 -6
- package/dist/extensions/medplum/fhir/schemas/atoms/PeriodSchema.d.ts +2 -2
- package/dist/extensions/medplum/fhir/schemas/resources/patient.schema.d.ts +4 -4
- package/dist/extensions/medplum/fhir/schemas/resources/serviceRequest.schema.d.ts +4 -4
- package/dist/extensions/medplum/fhir/schemas/resources/task.schema.d.ts +6 -6
- package/dist/extensions/medplum/settings.d.ts +2 -2
- package/dist/extensions/medplum/settings.js +2 -2
- package/dist/extensions/medplum/settings.js.map +1 -1
- package/dist/extensions/metriport/actions/index.d.ts +1 -1
- package/dist/extensions/metriport/actions/patient/validation.d.ts +4 -4
- package/dist/extensions/stripe/actions/createCustomer/config/fields.d.ts +2 -2
- package/dist/extensions/stripe/actions/embeddedCheckout/config/fields.d.ts +2 -2
- package/dist/extensions/talkDesk/settings.d.ts +1 -1
- package/dist/extensions/textline/client/schema.d.ts +10 -10
- package/dist/extensions/westFax/actions/sendFax/sendFax.test.js +13 -3
- package/dist/extensions/westFax/actions/sendFax/sendFax.test.js.map +1 -1
- package/dist/extensions/westFax/settings.d.ts +2 -2
- package/dist/extensions/zendesk/v1/actions/createTask/config/fields.d.ts +2 -2
- package/dist/extensions/zusHealth/validation/settings.zod.d.ts +6 -6
- package/dist/extensions/zusHealth/webhooks/index.d.ts +37 -1
- package/dist/extensions/zusHealth/webhooks/patientAdmitted.d.ts +2 -1
- package/dist/extensions/zusHealth/webhooks/patientAdmitted.js.map +1 -1
- package/dist/extensions/zusHealth/webhooks/patientDischarged.d.ts +2 -1
- package/dist/extensions/zusHealth/webhooks/patientDischarged.js.map +1 -1
- package/dist/src/test-server.js +4 -0
- package/dist/src/test-server.js.map +1 -1
- package/package.json +4 -3
- package/dist/extensions/healthie/webhooks/goalDeleted.d.ts +0 -11
- package/dist/extensions/healthie/webhooks/goalDeleted.js +0 -30
- package/dist/extensions/healthie/webhooks/goalDeleted.js.map +0 -1
- package/dist/extensions/healthie/webhooks/metricEntryDeleted.d.ts +0 -11
- package/dist/extensions/healthie/webhooks/metricEntryDeleted.js +0 -30
- package/dist/extensions/healthie/webhooks/metricEntryDeleted.js.map +0 -1
- package/dist/extensions/healthie/webhooks/requestedFormCompletionDeleted.d.ts +0 -11
- package/dist/extensions/healthie/webhooks/requestedFormCompletionDeleted.js +0 -30
- package/dist/extensions/healthie/webhooks/requestedFormCompletionDeleted.js.map +0 -1
- package/dist/extensions/healthie/webhooks/taskDeleted.d.ts +0 -11
- package/dist/extensions/healthie/webhooks/taskDeleted.js +0 -30
- package/dist/extensions/healthie/webhooks/taskDeleted.js.map +0 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"taskCreated.js","sourceRoot":"","sources":["../../../../extensions/healthie/webhooks/taskCreated.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;
|
1
|
+
{"version":3,"file":"taskCreated.js","sourceRoot":"","sources":["../../../../extensions/healthie/webhooks/taskCreated.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;AAK9B,wCAA+E;AAE/E,oDAAgD;AAChD,8CAA+C;AAC/C,4CAAqD;AAGrD,MAAM,UAAU,GAAG;IACjB,aAAa,EAAE;QACb,GAAG,EAAE,eAAe;QACpB,SAAS,EAAE,QAAQ;KACpB;CAC4C,CAAA;AAElC,QAAA,WAAW,GAIpB;IACF,GAAG,EAAE,aAAa;IAClB,UAAU;IACV,iBAAiB,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE;;QACrE,IAAI;YACF,MAAM,EAAE,GAAG,EAAE,GAAG,MAAM,IAAA,qBAAS,EAAC,EAAE,QAAQ,EAAE,CAAC,CAAA;YAE7C,MAAM,gBAAgB,GAAG,8BAAoB,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA;YAC5D,MAAM,aAAa,GAAG,gBAAgB,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAA;YAE7D,MAAM,QAAQ,GAAG,MAAM,GAAG,CAAC,OAAO,CAAC,EAAE,EAAE,EAAE,aAAa,EAAE,CAAC,CAAA;YACzD,MAAM,iBAAiB,GAAG,MAAA,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,0CAAE,IAAI,0CAAE,SAAS,CAAA;YACzD,MAAM,SAAS,CAAC;gBACd,WAAW,EAAE;oBACX,aAAa;iBACd;gBACD,GAAG,CAAC,CAAC,IAAA,cAAK,EAAC,iBAAiB,CAAC,IAAI;oBAC/B,kBAAkB,EAAE;wBAClB,MAAM,EAAE,2BAAmB;wBAC3B,KAAK,EAAE,iBAAiB;qBACzB;iBACF,CAAC;aACH,CAAC,CAAA;SACH;QAAC,OAAO,KAAK,EAAE;YACd,MAAM,OAAO,CAAC,IAAA,oBAAW,EAAC,KAAK,CAAC,CAAC,CAAA;SAClC;IACH,CAAC;CACF,CAAA"}
|
@@ -1,11 +1,12 @@
|
|
1
1
|
import { type Webhook } from '@awell-health/extensions-core';
|
2
2
|
import { type HealthieWebhookPayload } from '../lib/types';
|
3
|
+
import { type settings } from '../settings';
|
3
4
|
declare const dataPoints: {
|
4
5
|
updatedTaskId: {
|
5
6
|
key: string;
|
6
7
|
valueType: "string";
|
7
8
|
};
|
8
9
|
};
|
9
|
-
export declare const taskUpdated: Webhook<keyof typeof dataPoints, HealthieWebhookPayload>;
|
10
|
+
export declare const taskUpdated: Webhook<keyof typeof dataPoints, HealthieWebhookPayload, typeof settings>;
|
10
11
|
export type TaskUpdated = typeof taskUpdated;
|
11
12
|
export {};
|
@@ -2,6 +2,10 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.taskUpdated = void 0;
|
4
4
|
const lodash_1 = require("lodash");
|
5
|
+
const types_1 = require("../lib/types");
|
6
|
+
const createSdk_1 = require("../lib/sdk/createSdk");
|
7
|
+
const errors_1 = require("../lib/sdk/errors");
|
8
|
+
const helpers_1 = require("../lib/helpers");
|
5
9
|
const dataPoints = {
|
6
10
|
updatedTaskId: {
|
7
11
|
key: 'updatedTaskId',
|
@@ -12,19 +16,28 @@ exports.taskUpdated = {
|
|
12
16
|
key: 'taskUpdated',
|
13
17
|
dataPoints,
|
14
18
|
onWebhookReceived: async ({ payload, settings }, onSuccess, onError) => {
|
15
|
-
|
16
|
-
|
17
|
-
await
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
19
|
+
var _a, _b;
|
20
|
+
try {
|
21
|
+
const { sdk } = await (0, createSdk_1.createSdk)({ settings });
|
22
|
+
const validatedPayload = helpers_1.webhookPayloadSchema.parse(payload);
|
23
|
+
const updatedTaskId = validatedPayload.resource_id.toString();
|
24
|
+
const response = await sdk.getTask({ id: updatedTaskId });
|
25
|
+
const healthiePatientId = (_b = (_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.task) === null || _b === void 0 ? void 0 : _b.client_id;
|
22
26
|
await onSuccess({
|
23
27
|
data_points: {
|
24
28
|
updatedTaskId,
|
25
29
|
},
|
30
|
+
...(!(0, lodash_1.isNil)(healthiePatientId) && {
|
31
|
+
patient_identifier: {
|
32
|
+
system: types_1.HEALTHIE_IDENTIFIER,
|
33
|
+
value: healthiePatientId,
|
34
|
+
},
|
35
|
+
}),
|
26
36
|
});
|
27
37
|
}
|
28
|
-
|
38
|
+
catch (error) {
|
39
|
+
await onError((0, errors_1.formatError)(error));
|
40
|
+
}
|
41
|
+
}
|
29
42
|
};
|
30
43
|
//# sourceMappingURL=taskUpdated.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"taskUpdated.js","sourceRoot":"","sources":["../../../../extensions/healthie/webhooks/taskUpdated.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;
|
1
|
+
{"version":3,"file":"taskUpdated.js","sourceRoot":"","sources":["../../../../extensions/healthie/webhooks/taskUpdated.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;AAK9B,wCAA+E;AAE/E,oDAAgD;AAChD,8CAA+C;AAC/C,4CAAqD;AAErD,MAAM,UAAU,GAAG;IACjB,aAAa,EAAE;QACb,GAAG,EAAE,eAAe;QACpB,SAAS,EAAE,QAAQ;KACpB;CAC4C,CAAA;AAElC,QAAA,WAAW,GAIpB;IACF,GAAG,EAAE,aAAa;IAClB,UAAU;IACV,iBAAiB,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE;;QACrE,IAAI;YACF,MAAM,EAAE,GAAG,EAAE,GAAG,MAAM,IAAA,qBAAS,EAAC,EAAE,QAAQ,EAAE,CAAC,CAAA;YAE7C,MAAM,gBAAgB,GAAG,8BAAoB,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA;YAC5D,MAAM,aAAa,GAAG,gBAAgB,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAA;YAE7D,MAAM,QAAQ,GAAG,MAAM,GAAG,CAAC,OAAO,CAAC,EAAE,EAAE,EAAE,aAAa,EAAE,CAAC,CAAA;YACzD,MAAM,iBAAiB,GAAG,MAAA,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,0CAAE,IAAI,0CAAE,SAAS,CAAA;YACzD,MAAM,SAAS,CAAC;gBACd,WAAW,EAAE;oBACX,aAAa;iBACd;gBACD,GAAG,CAAC,CAAC,IAAA,cAAK,EAAC,iBAAiB,CAAC,IAAI;oBAC/B,kBAAkB,EAAE;wBAClB,MAAM,EAAE,2BAAmB;wBAC3B,KAAK,EAAE,iBAAiB;qBACzB;iBACF,CAAC;aACH,CAAC,CAAA;SACH;QAAC,OAAO,KAAK,EAAE;YACd,MAAM,OAAO,CAAC,IAAA,oBAAW,EAAC,KAAK,CAAC,CAAC,CAAA;SAClC;IACH,CAAC;CACF,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
export declare const webhooks: import("@awell-health/extensions-core").Webhook<"hello" | "eventType", import("./demo").Payload
|
1
|
+
export declare const webhooks: import("@awell-health/extensions-core").Webhook<"hello" | "eventType", import("./demo").Payload, Record<string, import("@awell-health/extensions-core").Setting>>[];
|
@@ -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
|
}>;
|
@@ -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" | "
|
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" | "
|
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: "
|
39
|
+
status: "unknown" | "active" | "draft" | "on-hold" | "completed" | "entered-in-error" | "revoked";
|
40
40
|
patientId: string;
|
41
|
-
intent: "order" | "
|
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: "
|
44
|
+
status: "unknown" | "active" | "draft" | "on-hold" | "completed" | "entered-in-error" | "revoked";
|
45
45
|
patientId: string;
|
46
|
-
intent: "order" | "
|
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: "
|
71
|
+
status: "received" | "accepted" | "draft" | "requested" | "rejected" | "ready" | "cancelled" | "in-progress" | "on-hold" | "failed" | "completed" | "entered-in-error";
|
72
72
|
patientId: string;
|
73
|
-
intent: "
|
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: "
|
80
|
+
status: "received" | "accepted" | "draft" | "requested" | "rejected" | "ready" | "cancelled" | "in-progress" | "on-hold" | "failed" | "completed" | "entered-in-error";
|
81
81
|
patientId: string;
|
82
|
-
intent: "
|
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" | "
|
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" | "
|
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: "
|
8
|
+
status: "unknown" | "active" | "draft" | "on-hold" | "completed" | "entered-in-error" | "revoked";
|
9
9
|
patientId: string;
|
10
|
-
intent: "order" | "
|
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: "
|
13
|
+
status: "unknown" | "active" | "draft" | "on-hold" | "completed" | "entered-in-error" | "revoked";
|
14
14
|
patientId: string;
|
15
|
-
intent: "order" | "
|
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: "
|
12
|
+
status: "received" | "accepted" | "draft" | "requested" | "rejected" | "ready" | "cancelled" | "in-progress" | "on-hold" | "failed" | "completed" | "entered-in-error";
|
13
13
|
patientId: string;
|
14
|
-
intent: "
|
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: "
|
21
|
+
status: "received" | "accepted" | "draft" | "requested" | "rejected" | "ready" | "cancelled" | "in-progress" | "on-hold" | "failed" | "completed" | "entered-in-error";
|
22
22
|
patientId: string;
|
23
|
-
intent: "
|
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
|
}>;
|
@@ -4,7 +4,7 @@ export declare const settings: {
|
|
4
4
|
key: string;
|
5
5
|
label: string;
|
6
6
|
obfuscated: true;
|
7
|
-
required:
|
7
|
+
required: false;
|
8
8
|
description: string;
|
9
9
|
};
|
10
10
|
clientSecret: {
|
@@ -17,7 +17,7 @@ export declare const settings: {
|
|
17
17
|
awellApiUrl: {
|
18
18
|
key: string;
|
19
19
|
label: string;
|
20
|
-
obfuscated:
|
20
|
+
obfuscated: false;
|
21
21
|
required: false;
|
22
22
|
description: string;
|
23
23
|
};
|
@@ -7,7 +7,7 @@ exports.settings = {
|
|
7
7
|
key: 'clientId',
|
8
8
|
label: 'Client ID',
|
9
9
|
obfuscated: true,
|
10
|
-
required:
|
10
|
+
required: false,
|
11
11
|
description: 'Used to authenticate with Medplum',
|
12
12
|
},
|
13
13
|
clientSecret: {
|
@@ -20,7 +20,7 @@ exports.settings = {
|
|
20
20
|
awellApiUrl: {
|
21
21
|
key: 'awellApiUrl',
|
22
22
|
label: 'Awell API URL',
|
23
|
-
obfuscated:
|
23
|
+
obfuscated: false,
|
24
24
|
required: false,
|
25
25
|
description: 'Temporary to support "Submit Questionnaire Response" action',
|
26
26
|
},
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"settings.js","sourceRoot":"","sources":["../../../extensions/medplum/settings.ts"],"names":[],"mappings":";;;AACA,6BAAwC;AAE3B,QAAA,QAAQ,GAAG;IACtB,QAAQ,EAAE;QACR,GAAG,EAAE,UAAU;QACf,KAAK,EAAE,WAAW;QAClB,UAAU,EAAE,IAAI;QAChB,QAAQ,EAAE,
|
1
|
+
{"version":3,"file":"settings.js","sourceRoot":"","sources":["../../../extensions/medplum/settings.ts"],"names":[],"mappings":";;;AACA,6BAAwC;AAE3B,QAAA,QAAQ,GAAG;IACtB,QAAQ,EAAE;QACR,GAAG,EAAE,UAAU;QACf,KAAK,EAAE,WAAW;QAClB,UAAU,EAAE,IAAI;QAChB,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,mCAAmC;KACjD;IACD,YAAY,EAAE;QACZ,GAAG,EAAE,cAAc;QACnB,KAAK,EAAE,eAAe;QACtB,UAAU,EAAE,IAAI;QAChB,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,mCAAmC;KACjD;IACD,WAAW,EAAE;QACX,GAAG,EAAE,aAAa;QAClB,KAAK,EAAE,eAAe;QACtB,UAAU,EAAE,KAAK;QACjB,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,6DAA6D;KAC3E;IACD,WAAW,EAAE;QACX,GAAG,EAAE,aAAa;QAClB,KAAK,EAAE,eAAe;QACtB,UAAU,EAAE,IAAI;QAChB,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,6DAA6D;KAC3E;CACgC,CAAA;AAEtB,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC3B,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC/B,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACiB,CAAC,CAAA"}
|
@@ -22,7 +22,7 @@ export declare const actions: {
|
|
22
22
|
description: string;
|
23
23
|
required: false;
|
24
24
|
};
|
25
|
-
}, "
|
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>;
|