@awell-health/awell-extensions 1.0.88 → 1.0.90
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.
- package/dist/extensions/calDotCom/actions/bookAppointment/bookAppointment.d.ts +4 -0
- package/dist/extensions/calDotCom/actions/bookAppointment/bookAppointment.js +53 -0
- package/dist/extensions/calDotCom/actions/bookAppointment/bookAppointment.js.map +1 -0
- package/dist/extensions/calDotCom/actions/bookAppointment/bookAppointment.test.d.ts +1 -0
- package/dist/extensions/calDotCom/actions/bookAppointment/bookAppointment.test.js +22 -0
- package/dist/extensions/calDotCom/actions/bookAppointment/bookAppointment.test.js.map +1 -0
- package/dist/extensions/calDotCom/actions/bookAppointment/config/dataPoints.d.ts +6 -0
- package/dist/extensions/calDotCom/actions/bookAppointment/config/dataPoints.js +10 -0
- package/dist/extensions/calDotCom/actions/bookAppointment/config/dataPoints.js.map +1 -0
- package/dist/extensions/calDotCom/actions/bookAppointment/config/fields.d.ts +18 -0
- package/dist/extensions/calDotCom/actions/bookAppointment/config/fields.js +18 -0
- package/dist/extensions/calDotCom/actions/bookAppointment/config/fields.js.map +1 -0
- package/dist/extensions/calDotCom/actions/bookAppointment/config/index.d.ts +2 -0
- package/dist/extensions/calDotCom/actions/bookAppointment/config/index.js +9 -0
- package/dist/extensions/calDotCom/actions/bookAppointment/config/index.js.map +1 -0
- package/dist/extensions/calDotCom/actions/bookAppointment/index.d.ts +1 -0
- package/dist/extensions/calDotCom/actions/bookAppointment/index.js +6 -0
- package/dist/extensions/calDotCom/actions/bookAppointment/index.js.map +1 -0
- package/dist/extensions/calDotCom/actions/deleteBooking/config/fields.d.ts +38 -0
- package/dist/extensions/calDotCom/actions/deleteBooking/config/fields.js +34 -0
- package/dist/extensions/calDotCom/actions/deleteBooking/config/fields.js.map +1 -0
- package/dist/extensions/calDotCom/actions/deleteBooking/config/index.d.ts +1 -0
- package/dist/extensions/calDotCom/actions/deleteBooking/config/index.js +7 -0
- package/dist/extensions/calDotCom/actions/deleteBooking/config/index.js.map +1 -0
- package/dist/extensions/calDotCom/actions/deleteBooking/deleteBooking.d.ts +4 -0
- package/dist/extensions/calDotCom/actions/deleteBooking/deleteBooking.js +71 -0
- package/dist/extensions/calDotCom/actions/deleteBooking/deleteBooking.js.map +1 -0
- package/dist/extensions/calDotCom/actions/deleteBooking/deleteBooking.test.d.ts +1 -0
- package/dist/extensions/calDotCom/actions/deleteBooking/deleteBooking.test.js +29 -0
- package/dist/extensions/calDotCom/actions/deleteBooking/deleteBooking.test.js.map +1 -0
- package/dist/extensions/calDotCom/actions/deleteBooking/index.d.ts +1 -0
- package/dist/extensions/calDotCom/actions/deleteBooking/index.js +6 -0
- package/dist/extensions/calDotCom/actions/deleteBooking/index.js.map +1 -0
- package/dist/extensions/calDotCom/actions/getBooking/config/dataPoints.d.ts +46 -0
- package/dist/extensions/calDotCom/actions/getBooking/config/dataPoints.js +51 -0
- package/dist/extensions/calDotCom/actions/getBooking/config/dataPoints.js.map +1 -0
- package/dist/extensions/calDotCom/actions/getBooking/config/fields.d.ts +17 -0
- package/dist/extensions/calDotCom/actions/getBooking/config/fields.js +17 -0
- package/dist/extensions/calDotCom/actions/getBooking/config/fields.js.map +1 -0
- package/dist/extensions/calDotCom/actions/getBooking/config/index.d.ts +2 -0
- package/dist/extensions/calDotCom/actions/getBooking/config/index.js +9 -0
- package/dist/extensions/calDotCom/actions/getBooking/config/index.js.map +1 -0
- package/dist/extensions/calDotCom/actions/getBooking/getBooking.d.ts +4 -0
- package/dist/extensions/calDotCom/actions/{getBooking.js → getBooking/getBooking.js} +9 -60
- package/dist/extensions/calDotCom/actions/getBooking/getBooking.js.map +1 -0
- package/dist/extensions/calDotCom/actions/getBooking/getBooking.test.d.ts +1 -0
- package/dist/extensions/calDotCom/actions/getBooking/getBooking.test.js +196 -0
- package/dist/extensions/calDotCom/actions/getBooking/getBooking.test.js.map +1 -0
- package/dist/extensions/calDotCom/actions/getBooking/index.d.ts +1 -0
- package/dist/extensions/calDotCom/actions/getBooking/index.js +6 -0
- package/dist/extensions/calDotCom/actions/getBooking/index.js.map +1 -0
- package/dist/extensions/calDotCom/actions/index.d.ts +2 -0
- package/dist/extensions/calDotCom/actions/index.js +2 -0
- package/dist/extensions/calDotCom/actions/index.js.map +1 -1
- package/dist/extensions/calDotCom/actions/updateBooking/config/dataPoints.d.ts +10 -0
- package/dist/extensions/calDotCom/actions/updateBooking/config/dataPoints.js +14 -0
- package/dist/extensions/calDotCom/actions/updateBooking/config/dataPoints.js.map +1 -0
- package/dist/extensions/calDotCom/actions/updateBooking/config/fields.d.ts +68 -0
- package/dist/extensions/calDotCom/actions/updateBooking/config/fields.js +61 -0
- package/dist/extensions/calDotCom/actions/updateBooking/config/fields.js.map +1 -0
- package/dist/extensions/calDotCom/actions/updateBooking/config/index.d.ts +2 -0
- package/dist/extensions/calDotCom/actions/updateBooking/config/index.js +9 -0
- package/dist/extensions/calDotCom/actions/updateBooking/config/index.js.map +1 -0
- package/dist/extensions/calDotCom/actions/updateBooking/index.d.ts +1 -0
- package/dist/extensions/calDotCom/actions/updateBooking/index.js +6 -0
- package/dist/extensions/calDotCom/actions/updateBooking/index.js.map +1 -0
- package/dist/extensions/calDotCom/actions/updateBooking/updateBooking.d.ts +4 -0
- package/dist/extensions/calDotCom/actions/updateBooking/updateBooking.js +80 -0
- package/dist/extensions/calDotCom/actions/updateBooking/updateBooking.js.map +1 -0
- package/dist/extensions/calDotCom/actions/updateBooking/updateBooking.test.d.ts +1 -0
- package/dist/extensions/calDotCom/actions/updateBooking/updateBooking.test.js +43 -0
- package/dist/extensions/calDotCom/actions/updateBooking/updateBooking.test.js.map +1 -0
- package/dist/extensions/calDotCom/calComApi.d.ts +11 -0
- package/dist/extensions/calDotCom/calComApi.js +31 -2
- package/dist/extensions/calDotCom/calComApi.js.map +1 -1
- package/dist/extensions/calDotCom/index.js +2 -0
- package/dist/extensions/calDotCom/index.js.map +1 -1
- package/dist/extensions/calDotCom/schema.d.ts +12 -27
- package/dist/extensions/calDotCom/schema.js +3 -10
- package/dist/extensions/calDotCom/schema.js.map +1 -1
- package/dist/extensions/canvasMedical/v1/actions/createClaim/config/dataPoints.d.ts +6 -0
- package/dist/extensions/canvasMedical/v1/actions/createClaim/config/dataPoints.js +10 -0
- package/dist/extensions/canvasMedical/v1/actions/createClaim/config/dataPoints.js.map +1 -0
- package/dist/extensions/canvasMedical/v1/actions/createClaim/config/fields.d.ts +98 -0
- package/dist/extensions/canvasMedical/v1/actions/createClaim/config/fields.js +84 -0
- package/dist/extensions/canvasMedical/v1/actions/createClaim/config/fields.js.map +1 -0
- package/dist/extensions/canvasMedical/v1/actions/createClaim/config/index.d.ts +2 -0
- package/dist/extensions/canvasMedical/v1/actions/createClaim/config/index.js +19 -0
- package/dist/extensions/canvasMedical/v1/actions/createClaim/config/index.js.map +1 -0
- package/dist/extensions/canvasMedical/v1/actions/createClaim/createClaim.d.ts +4 -0
- package/dist/extensions/canvasMedical/v1/actions/createClaim/createClaim.js +66 -0
- package/dist/extensions/canvasMedical/v1/actions/createClaim/createClaim.js.map +1 -0
- package/dist/extensions/canvasMedical/v1/actions/createClaim/createClaim.test.d.ts +1 -0
- package/dist/extensions/canvasMedical/v1/actions/createClaim/createClaim.test.js +27 -0
- package/dist/extensions/canvasMedical/v1/actions/createClaim/createClaim.test.js.map +1 -0
- package/dist/extensions/canvasMedical/v1/actions/createClaim/index.d.ts +1 -0
- package/dist/extensions/canvasMedical/v1/actions/createClaim/index.js +6 -0
- package/dist/extensions/canvasMedical/v1/actions/createClaim/index.js.map +1 -0
- package/dist/extensions/canvasMedical/v1/actions/index.d.ts +1 -0
- package/dist/extensions/canvasMedical/v1/actions/index.js +3 -1
- package/dist/extensions/canvasMedical/v1/actions/index.js.map +1 -1
- package/dist/extensions/canvasMedical/v1/client/client.d.ts +3 -0
- package/dist/extensions/canvasMedical/v1/client/client.js +11 -0
- package/dist/extensions/canvasMedical/v1/client/client.js.map +1 -1
- package/dist/extensions/canvasMedical/v1/validation/claim.d.ts +52 -0
- package/dist/extensions/canvasMedical/v1/validation/claim.js +23 -0
- package/dist/extensions/canvasMedical/v1/validation/claim.js.map +1 -0
- package/dist/extensions/canvasMedical/v1/validation/index.d.ts +1 -0
- package/dist/extensions/canvasMedical/v1/validation/index.js +1 -0
- package/dist/extensions/canvasMedical/v1/validation/index.js.map +1 -1
- package/dist/extensions/canvasMedical/v1/validation/validation.d.ts +4 -0
- package/dist/extensions/canvasMedical/v1/validation/validation.js +36 -0
- package/dist/extensions/canvasMedical/v1/validation/validation.js.map +1 -0
- package/dist/extensions/markdown.json +3 -3
- package/package.json +1 -1
- package/dist/extensions/calDotCom/actions/bookAppointment.d.ts +0 -13
- package/dist/extensions/calDotCom/actions/bookAppointment.js +0 -49
- package/dist/extensions/calDotCom/actions/bookAppointment.js.map +0 -1
- package/dist/extensions/calDotCom/actions/getBooking.d.ts +0 -12
- package/dist/extensions/calDotCom/actions/getBooking.js.map +0 -1
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.createQuestionnaireResponses = exports.updatePatient = exports.createPatient = exports.updateTask = exports.createTask = exports.updateAppointment = exports.createAppointment = void 0;
|
3
|
+
exports.createClaim = exports.createQuestionnaireResponses = exports.updatePatient = exports.createPatient = exports.updateTask = exports.createTask = exports.updateAppointment = exports.createAppointment = void 0;
|
4
4
|
var createAppointment_1 = require("./createAppointment");
|
5
5
|
Object.defineProperty(exports, "createAppointment", { enumerable: true, get: function () { return createAppointment_1.createAppointment; } });
|
6
6
|
var updateAppointment_1 = require("./updateAppointment");
|
@@ -15,6 +15,8 @@ var updatePatient_1 = require("./updatePatient");
|
|
15
15
|
Object.defineProperty(exports, "updatePatient", { enumerable: true, get: function () { return updatePatient_1.updatePatient; } });
|
16
16
|
var createQuestionnaireResponses_1 = require("./createQuestionnaireResponses");
|
17
17
|
Object.defineProperty(exports, "createQuestionnaireResponses", { enumerable: true, get: function () { return createQuestionnaireResponses_1.createQuestionnaireResponses; } });
|
18
|
+
var createClaim_1 = require("./createClaim");
|
19
|
+
Object.defineProperty(exports, "createClaim", { enumerable: true, get: function () { return createClaim_1.createClaim; } });
|
18
20
|
// Note: should also NOT be exported, since that is only used with the JSON type data points, which we don't support yet
|
19
21
|
// export { getAppointment } from './getAppointment'
|
20
22
|
// export { getTask } from './getTask'
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../extensions/canvasMedical/v1/actions/index.ts"],"names":[],"mappings":";;;AAAA,yDAAuD;AAA9C,sHAAA,iBAAiB,OAAA;AAC1B,yDAAuD;AAA9C,sHAAA,iBAAiB,OAAA;AAC1B,2CAAyC;AAAhC,wGAAA,UAAU,OAAA;AACnB,2CAAyC;AAAhC,wGAAA,UAAU,OAAA;AACnB,iDAA+C;AAAtC,8GAAA,aAAa,OAAA;AACtB,iDAA+C;AAAtC,8GAAA,aAAa,OAAA;AACtB,+EAA6E;AAApE,4IAAA,4BAA4B,OAAA;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../extensions/canvasMedical/v1/actions/index.ts"],"names":[],"mappings":";;;AAAA,yDAAuD;AAA9C,sHAAA,iBAAiB,OAAA;AAC1B,yDAAuD;AAA9C,sHAAA,iBAAiB,OAAA;AAC1B,2CAAyC;AAAhC,wGAAA,UAAU,OAAA;AACnB,2CAAyC;AAAhC,wGAAA,UAAU,OAAA;AACnB,iDAA+C;AAAtC,8GAAA,aAAa,OAAA;AACtB,iDAA+C;AAAtC,8GAAA,aAAa,OAAA;AACtB,+EAA6E;AAApE,4IAAA,4BAA4B,OAAA;AACrC,6CAA2C;AAAlC,0GAAA,WAAW,OAAA;AACpB,wHAAwH;AACxH,oDAAoD;AACpD,sCAAsC;AACtC,4CAA4C;AAC5C,4DAA4D;AAC5D,wEAAwE"}
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { DataWrapper, APIClient, type DataWrapperCtor } from '@awell-health/extensions-core';
|
2
2
|
import { type settings } from '../../settings';
|
3
3
|
import { type AppointmentWithId, type Appointment, type Task, type TaskWithId, type Patient, type PatientWithId, type CreatingQuestionnaireResponses, type QuestionnaireResponse } from '../validation';
|
4
|
+
import { type Claim } from '../validation/claim';
|
4
5
|
import type { AppointmentWithIdResponse, CanvasAPIClientConstrutorProps, Id, TaskWithIdResponse, PatientWithIdResponse } from './type';
|
5
6
|
export declare class CanvasDataWrapper extends DataWrapper {
|
6
7
|
createAppointment(data: Appointment): Promise<Id>;
|
@@ -14,6 +15,7 @@ export declare class CanvasDataWrapper extends DataWrapper {
|
|
14
15
|
getPatient(id: string): Promise<PatientWithIdResponse>;
|
15
16
|
createQuestionnaireResponses(data: CreatingQuestionnaireResponses): Promise<Id>;
|
16
17
|
getQuestionnaireResponse(id: string): Promise<QuestionnaireResponse>;
|
18
|
+
createClaim(data: Claim): Promise<Id>;
|
17
19
|
}
|
18
20
|
export declare class CanvasAPIClient extends APIClient<CanvasDataWrapper> {
|
19
21
|
readonly ctor: DataWrapperCtor<CanvasDataWrapper>;
|
@@ -29,5 +31,6 @@ export declare class CanvasAPIClient extends APIClient<CanvasDataWrapper> {
|
|
29
31
|
getPatient(id: string): Promise<PatientWithIdResponse>;
|
30
32
|
createQuestionnaireResponses(obj: CreatingQuestionnaireResponses): Promise<Id>;
|
31
33
|
getQuestionnaireResponse(id: string): Promise<QuestionnaireResponse>;
|
34
|
+
createClaim(obj: Claim): Promise<Id>;
|
32
35
|
}
|
33
36
|
export declare const makeAPIClient: (payloadSettings: Record<keyof typeof settings, string | undefined>) => CanvasAPIClient;
|
@@ -88,6 +88,14 @@ class CanvasDataWrapper extends extensions_core_1.DataWrapper {
|
|
88
88
|
url: `/QuestionnaireResponse/${id}`,
|
89
89
|
});
|
90
90
|
}
|
91
|
+
async createClaim(data) {
|
92
|
+
const response = await this.RequestRaw({
|
93
|
+
method: 'POST',
|
94
|
+
url: `/Claim`,
|
95
|
+
data,
|
96
|
+
});
|
97
|
+
return (0, utils_1.extractIdFromLocationHeader)(response);
|
98
|
+
}
|
91
99
|
}
|
92
100
|
exports.CanvasDataWrapper = CanvasDataWrapper;
|
93
101
|
class CanvasAPIClient extends extensions_core_1.APIClient {
|
@@ -134,6 +142,9 @@ class CanvasAPIClient extends extensions_core_1.APIClient {
|
|
134
142
|
async getQuestionnaireResponse(id) {
|
135
143
|
return await this.FetchData(async (dw) => await dw.getQuestionnaireResponse(id));
|
136
144
|
}
|
145
|
+
async createClaim(obj) {
|
146
|
+
return await this.FetchData(async (dw) => await dw.createClaim(obj));
|
147
|
+
}
|
137
148
|
}
|
138
149
|
exports.CanvasAPIClient = CanvasAPIClient;
|
139
150
|
const makeAPIClient = (payloadSettings) => {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../../../../extensions/canvasMedical/v1/client/client.ts"],"names":[],"mappings":";;;AAAA,mEAKsC;AAEtC,8CAUsB;
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../../../../extensions/canvasMedical/v1/client/client.ts"],"names":[],"mappings":";;;AAAA,mEAKsC;AAEtC,8CAUsB;AAUtB,mCAAqD;AAErD,MAAa,iBAAkB,SAAQ,6BAAW;IACzC,KAAK,CAAC,iBAAiB,CAAC,IAAiB;QAC9C,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC;YACrC,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,cAAc;YACnB,IAAI;SACL,CAAC,CAAA;QAEF,OAAO,IAAA,mCAA2B,EAAC,QAAQ,CAAC,CAAA;IAC9C,CAAC;IAEM,KAAK,CAAC,cAAc,CAAC,EAAU;QACpC,OAAO,MAAM,IAAI,CAAC,OAAO,CAA4B;YACnD,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,gBAAgB,EAAE,EAAE;SAC1B,CAAC,CAAA;IACJ,CAAC;IAEM,KAAK,CAAC,iBAAiB,CAAC,IAAu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CAAC,CAAC,CAAA;IACtE,CAAC;CACF;AA3ED,0CA2EC;AAEM,MAAM,aAAa,GAAG,CAC3B,eAAkE,EACjD,EAAE;IACnB,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,qBAAqB,EAAE,GACpD,2BAAc,CAAC,KAAK,CAAC,eAAe,CAAC,CAAA;IAEvC,OAAO,IAAI,eAAe,CAAC;QACzB,OAAO,EAAE,QAAQ;QACjB,aAAa,EAAE,qBAAqB;QACpC,OAAO,EAAE,QAAQ;KAClB,CAAC,CAAA;AACJ,CAAC,CAAA;AAXY,QAAA,aAAa,iBAWzB"}
|
@@ -0,0 +1,52 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare const claimSchema: z.ZodObject<{
|
3
|
+
resourceType: z.ZodLiteral<"Claim">;
|
4
|
+
status: z.ZodString;
|
5
|
+
type: z.ZodRecord<z.ZodString, z.ZodAny>;
|
6
|
+
use: z.ZodString;
|
7
|
+
patient: z.ZodObject<{
|
8
|
+
reference: z.ZodString;
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
10
|
+
reference: string;
|
11
|
+
}, {
|
12
|
+
reference: string;
|
13
|
+
}>;
|
14
|
+
created: z.ZodEffects<z.ZodDate, string, Date>;
|
15
|
+
priority: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
16
|
+
provider: z.ZodRecord<z.ZodString, z.ZodAny>;
|
17
|
+
supportingInfo: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
18
|
+
diagnosis: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">;
|
19
|
+
insurance: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">;
|
20
|
+
item: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">;
|
21
|
+
}, "strip", z.ZodTypeAny, {
|
22
|
+
type: Record<string, any>;
|
23
|
+
item: Record<string, any>[];
|
24
|
+
use: string;
|
25
|
+
status: string;
|
26
|
+
patient: {
|
27
|
+
reference: string;
|
28
|
+
};
|
29
|
+
resourceType: "Claim";
|
30
|
+
created: string;
|
31
|
+
provider: Record<string, any>;
|
32
|
+
diagnosis: Record<string, any>[];
|
33
|
+
insurance: Record<string, any>[];
|
34
|
+
priority?: Record<string, any> | undefined;
|
35
|
+
supportingInfo?: any[] | undefined;
|
36
|
+
}, {
|
37
|
+
type: Record<string, any>;
|
38
|
+
item: Record<string, any>[];
|
39
|
+
use: string;
|
40
|
+
status: string;
|
41
|
+
patient: {
|
42
|
+
reference: string;
|
43
|
+
};
|
44
|
+
resourceType: "Claim";
|
45
|
+
created: Date;
|
46
|
+
provider: Record<string, any>;
|
47
|
+
diagnosis: Record<string, any>[];
|
48
|
+
insurance: Record<string, any>[];
|
49
|
+
priority?: Record<string, any> | undefined;
|
50
|
+
supportingInfo?: any[] | undefined;
|
51
|
+
}>;
|
52
|
+
export type Claim = z.infer<typeof claimSchema>;
|
@@ -0,0 +1,23 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.claimSchema = void 0;
|
4
|
+
const extensions_core_1 = require("@awell-health/extensions-core");
|
5
|
+
const zod_1 = require("zod");
|
6
|
+
const reference_zod_1 = require("./reference.zod");
|
7
|
+
exports.claimSchema = zod_1.z.object({
|
8
|
+
resourceType: zod_1.z.literal('Claim'),
|
9
|
+
status: zod_1.z.string(),
|
10
|
+
type: zod_1.z.record(zod_1.z.string(), zod_1.z.any()),
|
11
|
+
use: zod_1.z.string(),
|
12
|
+
patient: zod_1.z.object({
|
13
|
+
reference: (0, reference_zod_1.createReferenceSchema)('Patient'),
|
14
|
+
}),
|
15
|
+
created: extensions_core_1.DateOnlySchema,
|
16
|
+
priority: zod_1.z.record(zod_1.z.string(), zod_1.z.any()).optional(),
|
17
|
+
provider: zod_1.z.record(zod_1.z.string(), zod_1.z.any()),
|
18
|
+
supportingInfo: zod_1.z.array(zod_1.z.any()).optional(),
|
19
|
+
diagnosis: zod_1.z.array(zod_1.z.record(zod_1.z.string(), zod_1.z.any())),
|
20
|
+
insurance: zod_1.z.array(zod_1.z.record(zod_1.z.string(), zod_1.z.any())),
|
21
|
+
item: zod_1.z.array(zod_1.z.record(zod_1.z.string(), zod_1.z.any())),
|
22
|
+
});
|
23
|
+
//# sourceMappingURL=claim.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"claim.js","sourceRoot":"","sources":["../../../../../extensions/canvasMedical/v1/validation/claim.ts"],"names":[],"mappings":";;;AAAA,mEAA8D;AAC9D,6BAAuB;AACvB,mDAAuD;AAE1C,QAAA,WAAW,GAAG,OAAC,CAAC,MAAM,CAAC;IAClC,YAAY,EAAE,OAAC,CAAC,OAAO,CAAC,OAAO,CAAC;IAChC,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;IAClB,IAAI,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,GAAG,EAAE,CAAC;IACnC,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC;QAChB,SAAS,EAAE,IAAA,qCAAqB,EAAC,SAAS,CAAC;KAC5C,CAAC;IACF,OAAO,EAAE,gCAAc;IACvB,QAAQ,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;IAClD,QAAQ,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,GAAG,EAAE,CAAC;IACvC,cAAc,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC3C,SAAS,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,GAAG,EAAE,CAAC,CAAC;IACjD,SAAS,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,GAAG,EAAE,CAAC,CAAC;IACjD,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,GAAG,EAAE,CAAC,CAAC;CAC7C,CAAC,CAAA"}
|
@@ -23,4 +23,5 @@ __exportStar(require("./id.zod"), exports);
|
|
23
23
|
__exportStar(require("./task.zod"), exports);
|
24
24
|
__exportStar(require("./patient.zod"), exports);
|
25
25
|
__exportStar(require("./questionnaireResponses.zod"), exports);
|
26
|
+
__exportStar(require("./validation"), exports);
|
26
27
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../extensions/canvasMedical/v1/validation/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,iDAAuD;AAA9C,sHAAA,qBAAqB,OAAA;AAC9B,oDAAiC;AACjC,iDAA8B;AAC9B,2CAAwB;AACxB,6CAA0B;AAC1B,gDAA6B;AAC7B,+DAA4C"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../extensions/canvasMedical/v1/validation/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,iDAAuD;AAA9C,sHAAA,qBAAqB,OAAA;AAC9B,oDAAiC;AACjC,iDAA8B;AAC9B,2CAAwB;AACxB,6CAA0B;AAC1B,gDAA6B;AAC7B,+DAA4C;AAC5C,+CAA4B"}
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare const StringTransformToJson: z.ZodEffects<z.ZodString, Record<string, any>, string>;
|
3
|
+
export declare const JsonSchema: z.ZodEffects<z.ZodEffects<z.ZodString, Record<string, any>, string>, Record<string, any>, string>;
|
4
|
+
export declare const JsonArraySchema: z.ZodEffects<z.ZodEffects<z.ZodString, Record<string, any>, string>, Record<string, any>[], string>;
|
@@ -0,0 +1,36 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.JsonArraySchema = exports.JsonSchema = exports.StringTransformToJson = void 0;
|
4
|
+
const lodash_1 = require("lodash");
|
5
|
+
const zod_1 = require("zod");
|
6
|
+
exports.StringTransformToJson = zod_1.z
|
7
|
+
.string()
|
8
|
+
.transform((str, ctx) => {
|
9
|
+
if ((0, lodash_1.isNil)(str) || (0, lodash_1.isEmpty)(str))
|
10
|
+
return {};
|
11
|
+
try {
|
12
|
+
return JSON.parse(str);
|
13
|
+
}
|
14
|
+
catch (e) {
|
15
|
+
ctx.addIssue({ code: 'custom', message: 'Invalid JSON' });
|
16
|
+
return zod_1.z.NEVER;
|
17
|
+
}
|
18
|
+
});
|
19
|
+
exports.JsonSchema = exports.StringTransformToJson.transform((jsonObject, ctx) => {
|
20
|
+
if ((0, lodash_1.isNil)(jsonObject) || (0, lodash_1.isEmpty)(jsonObject)) {
|
21
|
+
ctx.addIssue({
|
22
|
+
code: 'custom',
|
23
|
+
message: 'The object should not be empty',
|
24
|
+
});
|
25
|
+
return zod_1.z.NEVER;
|
26
|
+
}
|
27
|
+
return jsonObject;
|
28
|
+
});
|
29
|
+
exports.JsonArraySchema = exports.StringTransformToJson.transform((jsonObject, ctx) => {
|
30
|
+
if (!Array.isArray(jsonObject)) {
|
31
|
+
ctx.addIssue({ code: 'custom', message: 'Invalid JSON' });
|
32
|
+
return zod_1.z.NEVER;
|
33
|
+
}
|
34
|
+
return jsonObject;
|
35
|
+
});
|
36
|
+
//# sourceMappingURL=validation.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"validation.js","sourceRoot":"","sources":["../../../../../extensions/canvasMedical/v1/validation/validation.ts"],"names":[],"mappings":";;;AAAA,mCAAuC;AACvC,6BAAuB;AAEV,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action added.\nSearch patients by patient code action was added.\n\"Is patient enrolled in care flow\" action added.\n"
|
9
9
|
},
|
10
10
|
"calDotCom": {
|
11
|
-
"readme": "---\ntitle: Cal.com\ndescription: Cal.com is a modern and open source scheduling platform. With HIPAA, GDPR and SOC2 compliance, you can ensure that data is well-protected and that makes Cal.com a great fit for healthcare use cases.\n---\n# Cal.com\n\n[Cal.com](https://cal.com/) is a modern and **open source** scheduling platform. With HIPAA, GDPR and SOC2 compliance, you can ensure that data is well-protected and that makes Cal.com a great fit for healthcare use cases.\n\n## Cal.com x Awell\n\nThis extension allows you to let a stakeholder (eg: a patient) book an appointment as part of a care flow and to retrieve the booking details of an appointment.\n\n## Extension settings\n\nIn order to set up this extension, **you will need to provide a Cal.com API key**. You can obtain an API key via the Cal.com portal (`Settings > Developer > API keys`).\n\n## Custom Actions\n\n### Book appointment action\n\nYou can add this action to your care flow to enable a stakeholder (eg: a patient) to book an appointment in a predefined calendar. This is a **stakeholder-actionable action** which means it requires an actual user to book an appointment. Also note that this is a blocking action and that the care flow will not progress - unless there are parallel tracks or transitions - until the action/activity is completed (i.e. an appointment was booked).\n\n**The actual booking of the appointment can happen in two ways:**\n\n1. With Awell Hosted Pages: when the \"Book appointment\" action is activated, we serve the booking widget to the stakeholder so they can book an appointment directly from within Awell Hosted Pages.\n2. If you are not leveraging Awell Hosted Pages but have built a custom integration then we expose you all the details via our API so you can either create a Cal.com booking widget yourself or redirect the user to the Cal.com platform. Additionally, we expose a mutation that allows you to complete the activity and pass in the required data.\n\nBelow you can find an overview of all Awell Apps and whether they support rendering of the booking widget.\n\n| App | Supported |\n| ----------------------------- | --------- |\n| Awell Hosted Pages | Yes |\n| Your app (custom integration) | Yes |\n| Awell Care | No |\n| Awell MyCare | No |\n\n#### Data points\n\nAdding this action to your care flow will expose a new data point you can use in your care flow, the `bookingId`. When the care flow is orchestrated and the book appointment activity is completed, the id of the actual booking will be ingested as the value of that `bookingId` data point.\n\n### Get booking action\n\nThis action allows you to fetch the details of a booking based on the provided `bookingId`. This action will make the following data points available for you to use in your care flow:\n\n1. Event type ID\n2. Title\n3. Description\n4. Start time\n5. End time\n6. Status\n7. Cancel URL\n8. Reschedule URL\n\n## Pricing\n\n**This extension is free** but keep in mind that you might need a paid plan for Cal.com depending on your needs.\n\n## Limitations\n\n### Rescheduling\n\nWhen a previously made booking is rescheduled, there is no way yet to get the new/updated booking details into the care flow or have the care flow react on the updated booking.\n\nAlso note that when a booking is rescheduled, Cal.com doesn't update the original booking resource but creates a new one instead. As far as we know, there is no reference from the old booking to the new (rescheduled) booking.\n\n#### Example\n\nAn appointment has been booked with Cal.com and we have the below booking resource:\n\n```json\n{\n ...,\n \"bookingId\": \"1\",\n \"date\": \"Jan 1, 2023\"\n}\n```\n\nHowever, the patient reschedules the booking to Jan 10, 2023. When querying Cal.com's API (`GET v1/bookings/{bookingId}`), it will still return the old booking date instead of the new/rescheduled date.\n\n```json\n{\n ...,\n \"bookingId\": \"1\",\n \"date\": \"Jan 1, 2023\"\n}\n```\n\n## Webhooks\n\nWebhooks offer a great way to automate the flow with Awell when invitees schedule, cancel, or reschedule events, or when the meeting ends.\n\n**Important notes:**\n\n1. An Awell webhook endpoint can only listen to one event type. So make sure that when you create a webhook in Cal.com, the subscriber URL and the event trigger match the Awell webhook endpoint. This also means there can only be one event type per subscriber URL.\n2. Using a secret to verify the authenticity of the received payload is not yet supported.\n3. Custom payload templates are not supported, please use the default ones.\n",
|
12
|
-
"changelog": "# Cal.com changelog\n\n## July 4, 2023\n\n- Get booking action: add validation that bookingId and apiKey are not empty\n- Get booking action: add validation of response data to make sure we have data points\n\n## April 27, 2023\n\n- Get booking action: `startTime` and `endTime` data points are now of value type `date` instead of `string`.\n"
|
11
|
+
"readme": "---\ntitle: Cal.com\ndescription: Cal.com is a modern and open source scheduling platform. With HIPAA, GDPR and SOC2 compliance, you can ensure that data is well-protected and that makes Cal.com a great fit for healthcare use cases.\n---\n\n# Cal.com\n\n[Cal.com](https://cal.com/) is a modern and **open source** scheduling platform. With HIPAA, GDPR and SOC2 compliance, you can ensure that data is well-protected and that makes Cal.com a great fit for healthcare use cases.\n\n## Cal.com x Awell\n\nThis extension allows you to let a stakeholder (eg: a patient) book an appointment as part of a care flow and to retrieve the booking details of an appointment.\n\n## Extension settings\n\nIn order to set up this extension, **you will need to provide a Cal.com API key**. You can obtain an API key via the Cal.com portal (`Settings > Developer > API keys`).\n\n## Custom Actions\n\n### Book appointment action\n\nYou can add this action to your care flow to enable a stakeholder (eg: a patient) to book an appointment in a predefined calendar. This is a **stakeholder-actionable action** which means it requires an actual user to book an appointment. Also note that this is a blocking action and that the care flow will not progress - unless there are parallel tracks or transitions - until the action/activity is completed (i.e. an appointment was booked).\n\n**The actual booking of the appointment can happen in two ways:**\n\n1. With Awell Hosted Pages: when the \"Book appointment\" action is activated, we serve the booking widget to the stakeholder so they can book an appointment directly from within Awell Hosted Pages.\n2. If you are not leveraging Awell Hosted Pages but have built a custom integration then we expose you all the details via our API so you can either create a Cal.com booking widget yourself or redirect the user to the Cal.com platform. Additionally, we expose a mutation that allows you to complete the activity and pass in the required data.\n\nBelow you can find an overview of all Awell Apps and whether they support rendering of the booking widget.\n\n| App | Supported |\n| ----------------------------- | --------- |\n| Awell Hosted Pages | Yes |\n| Your app (custom integration) | Yes |\n| Awell Care | No |\n| Awell MyCare | No |\n\n#### Data points\n\nAdding this action to your care flow will expose a new data point you can use in your care flow, the `bookingId`. When the care flow is orchestrated and the book appointment activity is completed, the id of the actual booking will be ingested as the value of that `bookingId` data point.\n\n### Get booking action\n\nThis action allows you to fetch the details of a booking based on the provided `bookingId`. This action will make the following data points available for you to use in your care flow:\n\n1. Event type ID\n2. Title\n3. Description\n4. Start time\n5. End time\n6. Status\n7. Cancel URL\n8. Reschedule URL\n\n### Update booking\n\nUpdates a booking and saves new `bookingId` and `bookingUid` as Data Points. Values possible to update:\n\n- Title - Title of Booking event\n- Description - Description of the meeting\n- Status - Status of the meeting to be set. Possible values: \"ACCEPTED\", \"PENDING\", \"CANCELLED\", \"REJECTED\".\n- Start - Start time of the Event in ISO 8601 format, e.g. 2023-05-24T13:00:00.000Z\n- End - End time of the Event in ISO 8601 format, e.g. 2023-05-24T13:00:00.000Z\n\n### Delete Boooking\n\nDeletes a Booking with a given ID.\n\n## Pricing\n\n**This extension is free** but keep in mind that you might need a paid plan for Cal.com depending on your needs.\n\n## Limitations\n\n### Rescheduling\n\nWhen a previously made booking is rescheduled, there is no way yet to get the new/updated booking details into the care flow or have the care flow react on the updated booking.\n\nAlso note that when a booking is rescheduled, Cal.com doesn't update the original booking resource but creates a new one instead. As far as we know, there is no reference from the old booking to the new (rescheduled) booking.\n\n#### Example\n\nAn appointment has been booked with Cal.com and we have the below booking resource:\n\n```json\n{\n ...,\n \"bookingId\": \"1\",\n \"date\": \"Jan 1, 2023\"\n}\n```\n\nHowever, the patient reschedules the booking to Jan 10, 2023. When querying Cal.com's API (`GET v1/bookings/{bookingId}`), it will still return the old booking date instead of the new/rescheduled date.\n\n```json\n{\n ...,\n \"bookingId\": \"1\",\n \"date\": \"Jan 1, 2023\"\n}\n```\n\n## Webhooks\n\nWebhooks offer a great way to automate the flow with Awell when invitees schedule, cancel, or reschedule events, or when the meeting ends.\n\n**Important notes:**\n\n1. An Awell webhook endpoint can only listen to one event type. So make sure that when you create a webhook in Cal.com, the subscriber URL and the event trigger match the Awell webhook endpoint. This also means there can only be one event type per subscriber URL.\n2. Using a secret to verify the authenticity of the received payload is not yet supported.\n3. Custom payload templates are not supported, please use the default ones.\n",
|
12
|
+
"changelog": "# Cal.com changelog\n\n## September 4, 2023\n\n- add updateBooking and deleteBooking actions\n- update and refactor structure of getBooking and bookAppointment actions\n\n## July 4, 2023\n\n- Get booking action: add validation that bookingId and apiKey are not empty\n- Get booking action: add validation of response data to make sure we have data points\n\n## April 27, 2023\n\n- Get booking action: `startTime` and `endTime` data points are now of value type `date` instead of `string`.\n"
|
13
13
|
},
|
14
14
|
"canvasMedical": {
|
15
|
-
"readme": "---\ntitle: Canvas Medical\ndescription: Canvas Medical is a healthcare platform that empowers care delivery companies to revolutionize digital health experiences for their patients and users.\n---\n\n# Canvas Medical\n\nCanvas Medical is a healthcare platform that empowers care delivery companies to revolutionize digital health experiences for their patients and users. Leveraging certified EHR as a foundation, Canvas Medical offers a comprehensive suite of APIs, enabling customers to swiftly launch innovative patient experiences and cost-effective business models.\n\nCanvas Medical provides appointment management, patient data creation and updates, task management, questionnaire creation, and much more.\n\n## Extension settings\n\nFor the extension to function correctly, you must include the following elements in your settings:\n\n`client_id` and `client_secret`: These values are generated on the Canvas Medical platform.\n`base_url`: This determines the base URL for your FHIR endpoint.\n`auth_url`: This determines the base URL for your authorization endpoint.\n\n### Create appointment\n\nEasily schedule appointments with providers using the Canvas API. This action allows you to reserve a meeting with a healthcare provider by submitting `appointmentData` in JSON format. Upon successful execution, the data points returns the unique `appointmentId`, serving as the key within the Canvas API object.\n\n### Create patient\n\nEffortlessly create patients using the Canvas API. This action allows you to generate a new patient record by submitting `patientData` in JSON format. Upon successful execution, the data points returns the unique `patientId`, serving as the key within the Canvas API object.\n\n### Create task\n\nEfficiently create tasks associated with a specific patient using the Canvas API. This action allows you to generate a new task linked to a designated patient by submitting `taskData` in JSON format. Upon successful execution, the data points returns the unique `taskId`, serving as the key within the Canvas API object.\n\n### Create questionnaire responses\n\nCreate questionnaire responses using the Canvas API to effortlessly record answers within an existing questionnaire. This action requires several parameters:\n\n- `questionnaireId`: Reference to the Canvas Questionnaire using the questionnaire id.\n- `subjectId`: Reference to the Canvas Patient using the patient id.\n- `authored`: Timestamp when the Questionnaire response was filled out (If omitted, the current timestamp at data ingestion will be used).\n- `authorId`: Reference to the patient or practitioner filling out the questionnaire. If omitted, it defaults to Canvas Bot.\n- `item`: List of answers to questions in the questionnaire.\n\nUpon successful execution, the data points returns `questionnaireResponseId`, which serves as the key within the Canvas API object.\n\n### Update appointment\n\nEffortlessly cancel or modify a reserved appointment using the Canvas API. This action allows you to update appointment details by submitting `appointmentData` in JSON format. Upon successful execution, the data points returns the `appointmentId`, serving as the key within the Canvas API object.\n\n### Update patient\n\nEfficiently update existing patient information within the system using the Canvas API. This action allows you to modify data by submitting `patientData` in JSON format. Upon successful execution, the data points returns the `patientId`, which serves as the key within the Canvas API object\n\n### Update task\n\nEfficiently update existing task information within the system using the Canvas API. This action allows you to modify data by submitting `taskData` in JSON format. Upon successful execution, the action returns the `taskId`, which serves as the key within the Canvas API object.\n",
|
15
|
+
"readme": "---\ntitle: Canvas Medical\ndescription: Canvas Medical is a healthcare platform that empowers care delivery companies to revolutionize digital health experiences for their patients and users.\n---\n\n# Canvas Medical\n\nCanvas Medical is a healthcare platform that empowers care delivery companies to revolutionize digital health experiences for their patients and users. Leveraging certified EHR as a foundation, Canvas Medical offers a comprehensive suite of APIs, enabling customers to swiftly launch innovative patient experiences and cost-effective business models.\n\nCanvas Medical provides appointment management, patient data creation and updates, task management, questionnaire creation, and much more.\n\n## Extension settings\n\nFor the extension to function correctly, you must include the following elements in your settings:\n\n`client_id` and `client_secret`: These values are generated on the Canvas Medical platform.\n`base_url`: This determines the base URL for your FHIR endpoint.\n`auth_url`: This determines the base URL for your authorization endpoint.\n\n### Create appointment\n\nEasily schedule appointments with providers using the Canvas API. This action allows you to reserve a meeting with a healthcare provider by submitting `appointmentData` in JSON format. Upon successful execution, the data points returns the unique `appointmentId`, serving as the key within the Canvas API object.\n\n### Create patient\n\nEffortlessly create patients using the Canvas API. This action allows you to generate a new patient record by submitting `patientData` in JSON format. Upon successful execution, the data points returns the unique `patientId`, serving as the key within the Canvas API object.\n\n### Create task\n\nEfficiently create tasks associated with a specific patient using the Canvas API. This action allows you to generate a new task linked to a designated patient by submitting `taskData` in JSON format. Upon successful execution, the data points returns the unique `taskId`, serving as the key within the Canvas API object.\n\n### Create questionnaire responses\n\nCreate questionnaire responses using the Canvas API to effortlessly record answers within an existing questionnaire. This action requires several parameters:\n\n- `questionnaireId`: Reference to the Canvas Questionnaire using the questionnaire id.\n- `subjectId`: Reference to the Canvas Patient using the patient id.\n- `authored`: Timestamp when the Questionnaire response was filled out (If omitted, the current timestamp at data ingestion will be used).\n- `authorId`: Reference to the patient or practitioner filling out the questionnaire. If omitted, it defaults to Canvas Bot.\n- `item`: List of answers to questions in the questionnaire.\n\nUpon successful execution, the data points returns `questionnaireResponseId`, which serves as the key within the Canvas API object.\n\n### Update appointment\n\nEffortlessly cancel or modify a reserved appointment using the Canvas API. This action allows you to update appointment details by submitting `appointmentData` in JSON format. Upon successful execution, the data points returns the `appointmentId`, serving as the key within the Canvas API object.\n\n### Update patient\n\nEfficiently update existing patient information within the system using the Canvas API. This action allows you to modify data by submitting `patientData` in JSON format. Upon successful execution, the data points returns the `patientId`, which serves as the key within the Canvas API object\n\n### Update task\n\nEfficiently update existing task information within the system using the Canvas API. This action allows you to modify data by submitting `taskData` in JSON format. Upon successful execution, the action returns the `taskId`, which serves as the key within the Canvas API object.\n\n### Create claim\n\nCreate claim using the Canvas API. This action requires several parameters:\n\n- `status`: Status compliant with Canvas Medical.\n- `type`: Type compliant with Canvas Medical.\n- `patientId`: Reference to the Canvas Patient using the patient id.\n- `created`: The field indicating when this claim resource was created\n- `provider`: The field related to determining personnel resources for services in the statement\n- `supportingInfo`: Supporting info compliant with Canvas Medical.\n- `diagnosis`: The field represents the list will create the Assessments in Canvas for this claim.\n- `insurance`: The field represents the list of elements that defines what coverages are to be used when adjudicating the claim.\n- `item`: The field represents the list of service charges to be used in the claim.\n\nUpon successful execution, the data points returns `claimId`, which serves as the key within the Canvas API object.\n",
|
16
16
|
"changelog": "# Canvas Medical changelog\n\n## 2023-09-01\n\n- Add new actions: `createAppointment`, `createPatient`, `createQuestionnaireResponses`, `createTask`, `updateAppointment`, `updatePatient`, and `updateTask` for enhanced functionality.\n"
|
17
17
|
},
|
18
18
|
"cloudinary": {
|
package/package.json
CHANGED
@@ -1,13 +0,0 @@
|
|
1
|
-
import { FieldType, type Action } from '@awell-health/extensions-core';
|
2
|
-
import { type settings } from '../settings';
|
3
|
-
declare const fields: {
|
4
|
-
calLink: {
|
5
|
-
id: string;
|
6
|
-
label: string;
|
7
|
-
description: string;
|
8
|
-
type: FieldType.STRING;
|
9
|
-
required: true;
|
10
|
-
};
|
11
|
-
};
|
12
|
-
export declare const bookAppointment: Action<typeof fields, typeof settings>;
|
13
|
-
export {};
|
@@ -1,49 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.bookAppointment = void 0;
|
4
|
-
const extensions_core_1 = require("@awell-health/extensions-core");
|
5
|
-
const extensions_core_2 = require("@awell-health/extensions-core");
|
6
|
-
const fields = {
|
7
|
-
calLink: {
|
8
|
-
id: 'calLink',
|
9
|
-
label: 'Cal Link',
|
10
|
-
description: 'The Cal Link that you want to embed e.g. "john". Just give the username. No need to give the full URL https://cal.com/john.',
|
11
|
-
type: extensions_core_1.FieldType.STRING,
|
12
|
-
required: true,
|
13
|
-
},
|
14
|
-
};
|
15
|
-
const dataPoints = {
|
16
|
-
bookingId: {
|
17
|
-
key: 'bookingId',
|
18
|
-
valueType: 'string',
|
19
|
-
},
|
20
|
-
};
|
21
|
-
exports.bookAppointment = {
|
22
|
-
key: 'bookAppointment',
|
23
|
-
title: 'Book appointment',
|
24
|
-
description: 'Enable a stakeholder to book an appointment via Cal.com.',
|
25
|
-
category: extensions_core_2.Category.SCHEDULING,
|
26
|
-
fields,
|
27
|
-
dataPoints,
|
28
|
-
options: {
|
29
|
-
stakeholders: {
|
30
|
-
label: 'Stakeholder',
|
31
|
-
mode: 'single',
|
32
|
-
},
|
33
|
-
},
|
34
|
-
previewable: false,
|
35
|
-
onActivityCreated: async (payload, onComplete, onError) => {
|
36
|
-
const { fields: { calLink }, } = payload;
|
37
|
-
if (calLink === undefined) {
|
38
|
-
await onError({
|
39
|
-
events: [
|
40
|
-
{
|
41
|
-
date: new Date().toISOString(),
|
42
|
-
text: { en: 'Missing required fields (e.g. calLink)' },
|
43
|
-
},
|
44
|
-
],
|
45
|
-
});
|
46
|
-
}
|
47
|
-
},
|
48
|
-
};
|
49
|
-
//# sourceMappingURL=bookAppointment.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"bookAppointment.js","sourceRoot":"","sources":["../../../../extensions/calDotCom/actions/bookAppointment.ts"],"names":[],"mappings":";;;AAAA,mEAKsC;AACtC,mEAAwD;AAGxD,MAAM,MAAM,GAAG;IACb,OAAO,EAAE;QACP,EAAE,EAAE,SAAS;QACb,KAAK,EAAE,UAAU;QACjB,WAAW,EACT,6HAA6H;QAC/H,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;CAC8B,CAAA;AAEjC,MAAM,UAAU,GAAG;IACjB,SAAS,EAAE;QACT,GAAG,EAAE,WAAW;QAChB,SAAS,EAAE,QAAQ;KACpB;CAC4C,CAAA;AAElC,QAAA,eAAe,GAA2C;IACrE,GAAG,EAAE,iBAAiB;IACtB,KAAK,EAAE,kBAAkB;IACzB,WAAW,EAAE,0DAA0D;IACvE,QAAQ,EAAE,0BAAQ,CAAC,UAAU;IAC7B,MAAM;IACN,UAAU;IACV,OAAO,EAAE;QACP,YAAY,EAAE;YACZ,KAAK,EAAE,aAAa;YACpB,IAAI,EAAE,QAAQ;SACf;KACF;IACD,WAAW,EAAE,KAAK;IAClB,iBAAiB,EAAE,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE;QACxD,MAAM,EACJ,MAAM,EAAE,EAAE,OAAO,EAAE,GACpB,GAAG,OAAO,CAAA;QACX,IAAI,OAAO,KAAK,SAAS,EAAE;YACzB,MAAM,OAAO,CAAC;gBACZ,MAAM,EAAE;oBACN;wBACE,IAAI,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;wBAC9B,IAAI,EAAE,EAAE,EAAE,EAAE,wCAAwC,EAAE;qBACvD;iBACF;aACF,CAAC,CAAA;SACH;IACH,CAAC;CACF,CAAA"}
|
@@ -1,12 +0,0 @@
|
|
1
|
-
import { type Action, FieldType } from '@awell-health/extensions-core';
|
2
|
-
import { type settings } from '../settings';
|
3
|
-
declare const fields: {
|
4
|
-
bookingId: {
|
5
|
-
id: string;
|
6
|
-
label: string;
|
7
|
-
type: FieldType.STRING;
|
8
|
-
required: true;
|
9
|
-
};
|
10
|
-
};
|
11
|
-
export declare const getBooking: Action<typeof fields, typeof settings>;
|
12
|
-
export {};
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"getBooking.js","sourceRoot":"","sources":["../../../../extensions/calDotCom/actions/getBooking.ts"],"names":[],"mappings":";;;;;;AAAA,mEAOsC;AACtC,6BAA8B;AAC9B,+DAAmD;AACnD,6DAAoC;AACpC,sCAAmD;AAGnD,MAAM,MAAM,GAAG;IACb,SAAS,EAAE;QACT,EAAE,EAAE,WAAW;QACf,KAAK,EAAE,YAAY;QACnB,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;CAC8B,CAAA;AAEjC,MAAM,UAAU,GAAG;IACjB,WAAW,EAAE;QACX,GAAG,EAAE,aAAa;QAClB,SAAS,EAAE,QAAQ;KACpB;IACD,KAAK,EAAE;QACL,GAAG,EAAE,OAAO;QACZ,SAAS,EAAE,QAAQ;KACpB;IACD,WAAW,EAAE;QACX,GAAG,EAAE,aAAa;QAClB,SAAS,EAAE,QAAQ;KACpB;IACD,SAAS,EAAE;QACT,GAAG,EAAE,WAAW;QAChB,SAAS,EAAE,MAAM;KAClB;IACD,OAAO,EAAE;QACP,GAAG,EAAE,SAAS;QACd,SAAS,EAAE,MAAM;KAClB;IACD,MAAM,EAAE;QACN,GAAG,EAAE,QAAQ;QACb,SAAS,EAAE,QAAQ;KACpB;IACD,SAAS,EAAE;QACT,GAAG,EAAE,WAAW;QAChB,SAAS,EAAE,QAAQ;KACpB;IACD,aAAa,EAAE;QACb,GAAG,EAAE,eAAe;QACpB,SAAS,EAAE,QAAQ;KACpB;IACD,kBAAkB,EA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