@awell-health/awell-extensions 1.1.64 → 1.1.65
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 +2 -2
- package/dist/extensions/athenahealth/api/schema/appointment.d.ts +2 -2
- package/dist/extensions/athenahealth/api/schema/clinicalDocument.d.ts +2 -2
- package/dist/extensions/athenahealth/settings.d.ts +4 -4
- package/dist/extensions/awell/v1/actions/updatePatient/config/fields.d.ts +4 -4
- package/dist/extensions/calDotCom/schema.d.ts +6 -6
- package/dist/extensions/calendly/webhooks/index.d.ts +1 -1
- package/dist/extensions/canvasMedical/v1/validation/patient.zod.d.ts +8 -8
- package/dist/extensions/canvasMedical/v1/validation/settings.zod.d.ts +4 -4
- package/dist/extensions/canvasMedical/v1/validation/task.zod.d.ts +8 -8
- package/dist/extensions/dockHealth/api/schema/patient.schema.d.ts +14 -14
- package/dist/extensions/dockHealth/api/schema/task.schema.d.ts +8 -8
- package/dist/extensions/dockHealth/lib/dock.types.d.ts +4 -4
- package/dist/extensions/dropboxSign/v1/actions/createEmbeddedSignatureRequestWithTemplate/config/fields.d.ts +1 -1
- package/dist/extensions/dropboxSign/v1/actions/sendRequestReminder/config/fields.d.ts +2 -2
- package/dist/extensions/elation/actions/index.d.ts +3 -3
- package/dist/extensions/elation/validation/appointment.zod.d.ts +24 -24
- package/dist/extensions/elation/validation/nonVisitNote.zod.d.ts +3 -3
- package/dist/extensions/elation/validation/patient.zod.d.ts +4 -4
- package/dist/extensions/elation/validation/physician.zod.d.ts +4 -4
- package/dist/extensions/elation/validation/settings.zod.d.ts +4 -4
- package/dist/extensions/healthie/actions/createAppointment/config/fields.d.ts +2 -2
- package/dist/extensions/healthie/actions/getMetricEntry/config/fields.d.ts +2 -2
- package/dist/extensions/healthie/actions/index.d.ts +3 -3
- package/dist/extensions/healthie/lib/validation/createTask.zod.d.ts +22 -22
- package/dist/extensions/index.js +22 -20
- package/dist/extensions/index.js.map +1 -1
- package/dist/extensions/infobip/settings.d.ts +4 -4
- package/dist/extensions/infobip/v1/actions/sendEmail/config/fields.d.ts +2 -2
- package/dist/extensions/infobip/v1/actions/sendEmailWithTemplate/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/markdown.json +4 -0
- package/dist/extensions/medplum/actions/createPatient/config/fields.d.ts +4 -4
- package/dist/extensions/medplum/actions/createTask/config/fields.d.ts +2 -2
- package/dist/extensions/medplum/fhir/schemas/resources/patient.schema.d.ts +4 -4
- package/dist/extensions/medplum/fhir/schemas/resources/task.schema.d.ts +2 -2
- package/dist/extensions/metriport/actions/index.d.ts +1 -1
- package/dist/extensions/metriport/actions/patient/validation.d.ts +6 -6
- package/dist/extensions/sendgrid-extension/v1/actions/addOrUpdateContact/config/fields.d.ts +2 -2
- package/dist/extensions/sendgrid-extension/v1/actions/sendEmailWithTemplate/config/fields.d.ts +2 -2
- package/dist/extensions/talkDesk/settings.d.ts +2 -2
- package/dist/extensions/twilio/v2/actions/createFlowExecution/config/actionSchema.d.ts +31 -31
- package/dist/extensions/twilio/v2/actions/getMessages/config/fields.d.ts +2 -2
- package/dist/extensions/workramp/config.d.ts +1 -0
- package/dist/extensions/workramp/config.js +5 -0
- package/dist/extensions/workramp/config.js.map +1 -0
- package/dist/extensions/workramp/index.d.ts +2 -0
- package/dist/extensions/workramp/index.js +19 -0
- package/dist/extensions/workramp/index.js.map +1 -0
- package/dist/extensions/workramp/settings.d.ts +1 -0
- package/dist/extensions/workramp/settings.js +5 -0
- package/dist/extensions/workramp/settings.js.map +1 -0
- package/dist/extensions/workramp/types/EventPayload.d.ts +49 -0
- package/dist/extensions/workramp/types/EventPayload.js +22 -0
- package/dist/extensions/workramp/types/EventPayload.js.map +1 -0
- package/dist/extensions/workramp/types/EventType.d.ts +13 -0
- package/dist/extensions/workramp/types/EventType.js +18 -0
- package/dist/extensions/workramp/types/EventType.js.map +1 -0
- package/dist/extensions/workramp/types/index.d.ts +2 -0
- package/dist/extensions/workramp/types/index.js +8 -0
- package/dist/extensions/workramp/types/index.js.map +1 -0
- package/dist/extensions/workramp/webhooks/EventWebhook.d.ts +12 -0
- package/dist/extensions/workramp/webhooks/EventWebhook.js +28 -0
- package/dist/extensions/workramp/webhooks/EventWebhook.js.map +1 -0
- package/dist/extensions/workramp/webhooks/index.d.ts +1 -0
- package/dist/extensions/workramp/webhooks/index.js +6 -0
- package/dist/extensions/workramp/webhooks/index.js.map +1 -0
- package/dist/extensions/zusHealth/validation/settings.zod.d.ts +5 -5
- package/package.json +1 -1
@@ -53,8 +53,8 @@ export declare const SettingsValidationSchema: z.ZodObject<{
|
|
53
53
|
testMode: z.ZodEffects<z.ZodOptional<z.ZodEnum<["Yes", "yes", "No", "no"]>>, boolean, "Yes" | "No" | "yes" | "no" | undefined>;
|
54
54
|
}, "strip", z.ZodTypeAny, {
|
55
55
|
apiKey: string;
|
56
|
-
testMode: boolean;
|
57
56
|
fromName: string;
|
57
|
+
testMode: boolean;
|
58
58
|
fromEmail: string;
|
59
59
|
domain: string;
|
60
60
|
region?: "US" | "EU" | "eu" | "us" | undefined;
|
@@ -43,11 +43,11 @@ export declare const FieldsValidationSchema: z.ZodObject<{
|
|
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
45
|
subject: string;
|
46
|
-
to: string;
|
47
|
-
template: string;
|
48
46
|
variables: string | number | boolean | {
|
49
47
|
[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
48
|
} | (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;
|
49
|
+
to: string;
|
50
|
+
template: string;
|
51
51
|
}, {
|
52
52
|
subject: string;
|
53
53
|
to: string;
|
@@ -147,6 +147,10 @@
|
|
147
147
|
"readme": "---\ntitle: WestFax\ndescription: WestFax is a leading provider of HIPAA Compliant Cloud Fax / Fax to Email, Print to Fax\n---\n\n# WestFax\n\n[WestFax](https://westfax.com/) is a cloud-based faxing service that offers a variety of features, including:\n- Secure faxing: WestFax uses end-to-end encryption to protect your documents from unauthorized access.\n- HIPAA compliance: WestFax is HIPAA compliant, so you can be sure that your medical records are safe.\n- Integration with other applications: WestFax can be integrated with your existing email, CRM, and other applications.\n- Mobile app: You can send and receive faxes from your mobile device with the WestFax mobile app.\n- Paperless faxing: WestFax can store your faxes in the cloud, so you can access them from anywhere.\n\n## WestFax x Awell\n\nThis extension allows you to let a stakeholder (eg: a patient) send a fax as part of a care flow.\n\n## Extension settings\n\nIn order to set up this extension, **you will need to provide a WestFax Username and Password**. You will need as well to provide the ProductId when setting up the action - check how [here](https://westfax.com/how-to-get-productid/).\n\n\n",
|
148
148
|
"changelog": "# WestFax changelog\n\n## February 2024\n\n- Initial action to send an fax to an email\n"
|
149
149
|
},
|
150
|
+
"workramp": {
|
151
|
+
"readme": "---\ntitle: Workramp\ndescription: WorkRamp is the all-in-one LMS platform for employees, customers, and partners. \n---\n# Workramp\n\nWorkramp is a learning management platform helping to upskill employees and educate partners and customers.\n\n## Extension settings\n\nThere are no extension settings (e.g. API keys) to set. Simply enable the extension and then utilize the EventPayload webhook to subscribe to events.\n\n## Webhooks\n\n### EventPayload\nListens to an event and starts a care flow, using the `user.id` field as a unique patient identifier.\n\nTo learn more about webhooks, visit [their developer site](https://developers.workramp.com/reference/introduction-to-webhooks).",
|
152
|
+
"changelog": "# Workramp changelog\n\n## 2024-08-28\n\nCreated the extension."
|
153
|
+
},
|
150
154
|
"zendesk": {
|
151
155
|
"readme": "---\ntitle: Zendesk\ndescription: Zendesk is a customer service and support platform that provides a suite of tools and software for businesses to manage their customer interactions.\n---\n\n# Zendesk\n\nZendesk is a customer service and support platform that provides a suite of tools and software for businesses to manage their customer interactions. It offers a range of customer service solutions, including help desk ticketing systems, customer support and engagement, and self-service options. Zendesk is designed to help companies streamline their customer support processes, improve communication with their customers, and resolve issues more efficiently.\n\n## Extension settings\n\nIn order to set up this extension, you will to authenticate with the Sell API and need an API token. You can visit Zendesk Sales CRM dashboard and go to **Settings > Integration > OAuth** to enable and create an API token. Read more about how to get an access token for the Sell API [here](https://developer.zendesk.com/documentation/sales-crm/first-call/).\n\n## Custom Actions\n\n### Create task\n\nCreates a new task. You can create either a floating task or create a related task and associate it with one of the resource types: Leads, Contacts, Deals.\n\n### Complete task\n\nMarks a task as completed.\n",
|
152
156
|
"changelog": "# Zendesk changelog\n"
|
@@ -93,10 +93,10 @@ 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
|
-
address?: string | undefined;
|
97
|
-
email?: string | undefined;
|
98
96
|
firstName?: string | undefined;
|
99
97
|
lastName?: string | undefined;
|
98
|
+
email?: string | undefined;
|
99
|
+
address?: string | undefined;
|
100
100
|
birthDate?: string | undefined;
|
101
101
|
mobilePhone?: import("libphonenumber-js").E164Number | undefined;
|
102
102
|
city?: string | undefined;
|
@@ -105,10 +105,10 @@ export declare const FieldsValidationSchema: ZodObject<{
|
|
105
105
|
postalCode?: string | undefined;
|
106
106
|
gender?: "unknown" | "male" | "female" | "other" | undefined;
|
107
107
|
}, {
|
108
|
-
address?: string | undefined;
|
109
|
-
email?: string | undefined;
|
110
108
|
firstName?: string | undefined;
|
111
109
|
lastName?: string | undefined;
|
110
|
+
email?: string | undefined;
|
111
|
+
address?: string | undefined;
|
112
112
|
birthDate?: "" | Date | undefined;
|
113
113
|
mobilePhone?: string | undefined;
|
114
114
|
city?: string | undefined;
|
@@ -72,8 +72,8 @@ export declare const FieldsValidationSchema: ZodObject<{
|
|
72
72
|
patientId: string;
|
73
73
|
intent: "unknown" | "order" | "plan" | "proposal" | "original-order" | "reflex-order" | "filler-order" | "instance-order" | "option";
|
74
74
|
taskTitle: string;
|
75
|
-
description?: string | undefined;
|
76
75
|
priority?: "routine" | "urgent" | "asap" | "stat" | undefined;
|
76
|
+
description?: string | undefined;
|
77
77
|
dueDate?: string | undefined;
|
78
78
|
performerType?: string | undefined;
|
79
79
|
}, {
|
@@ -81,8 +81,8 @@ export declare const FieldsValidationSchema: ZodObject<{
|
|
81
81
|
patientId: string;
|
82
82
|
intent: "unknown" | "order" | "plan" | "proposal" | "original-order" | "reflex-order" | "filler-order" | "instance-order" | "option";
|
83
83
|
taskTitle: string;
|
84
|
-
description?: string | undefined;
|
85
84
|
priority?: "routine" | "urgent" | "asap" | "stat" | undefined;
|
85
|
+
description?: string | undefined;
|
86
86
|
dueDate?: "" | Date | undefined;
|
87
87
|
performerType?: string | undefined;
|
88
88
|
}>;
|
@@ -12,10 +12,10 @@ 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
|
-
address?: string | undefined;
|
16
|
-
email?: string | undefined;
|
17
15
|
firstName?: string | undefined;
|
18
16
|
lastName?: string | undefined;
|
17
|
+
email?: string | undefined;
|
18
|
+
address?: string | undefined;
|
19
19
|
birthDate?: string | undefined;
|
20
20
|
mobilePhone?: import("libphonenumber-js").E164Number | undefined;
|
21
21
|
city?: string | undefined;
|
@@ -24,10 +24,10 @@ export declare const PatientSchema: z.ZodObject<{
|
|
24
24
|
postalCode?: string | undefined;
|
25
25
|
gender?: "unknown" | "male" | "female" | "other" | undefined;
|
26
26
|
}, {
|
27
|
-
address?: string | undefined;
|
28
|
-
email?: string | undefined;
|
29
27
|
firstName?: string | undefined;
|
30
28
|
lastName?: string | undefined;
|
29
|
+
email?: string | undefined;
|
30
|
+
address?: string | undefined;
|
31
31
|
birthDate?: "" | Date | undefined;
|
32
32
|
mobilePhone?: string | undefined;
|
33
33
|
city?: string | undefined;
|
@@ -13,8 +13,8 @@ export declare const CreateTaskSchema: z.ZodObject<{
|
|
13
13
|
patientId: string;
|
14
14
|
intent: "unknown" | "order" | "plan" | "proposal" | "original-order" | "reflex-order" | "filler-order" | "instance-order" | "option";
|
15
15
|
taskTitle: string;
|
16
|
-
description?: string | undefined;
|
17
16
|
priority?: "routine" | "urgent" | "asap" | "stat" | undefined;
|
17
|
+
description?: string | undefined;
|
18
18
|
dueDate?: string | undefined;
|
19
19
|
performerType?: string | undefined;
|
20
20
|
}, {
|
@@ -22,8 +22,8 @@ export declare const CreateTaskSchema: z.ZodObject<{
|
|
22
22
|
patientId: string;
|
23
23
|
intent: "unknown" | "order" | "plan" | "proposal" | "original-order" | "reflex-order" | "filler-order" | "instance-order" | "option";
|
24
24
|
taskTitle: string;
|
25
|
-
description?: string | undefined;
|
26
25
|
priority?: "routine" | "urgent" | "asap" | "stat" | undefined;
|
26
|
+
description?: string | undefined;
|
27
27
|
dueDate?: "" | Date | undefined;
|
28
28
|
performerType?: string | undefined;
|
29
29
|
}>;
|
@@ -22,7 +22,7 @@ export declare const actions: {
|
|
22
22
|
description: string;
|
23
23
|
required: false;
|
24
24
|
};
|
25
|
-
}, "
|
25
|
+
}, "firstName" | "lastName" | "email" | "dob" | "phone" | "city" | "country" | "state" | "zip" | "addressLine1" | "addressLine2" | "genderAtBirth" | "driversLicenseValue" | "driversLicenseState">;
|
26
26
|
createPatient: import("@awell-health/extensions-core").Action<{
|
27
27
|
phone: {
|
28
28
|
id: string;
|
@@ -18,9 +18,9 @@ export declare const patientCreateSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
18
18
|
}>, "strip", z.ZodTypeAny, {
|
19
19
|
firstName: string;
|
20
20
|
lastName: string;
|
21
|
+
dob: string;
|
21
22
|
country: string;
|
22
23
|
zip: string;
|
23
|
-
dob: string;
|
24
24
|
genderAtBirth: "M" | "F";
|
25
25
|
email?: string | undefined;
|
26
26
|
phone?: string | undefined;
|
@@ -33,8 +33,8 @@ export declare const patientCreateSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
33
33
|
}, {
|
34
34
|
firstName: string;
|
35
35
|
lastName: string;
|
36
|
-
zip: string;
|
37
36
|
dob: string;
|
37
|
+
zip: string;
|
38
38
|
genderAtBirth: "M" | "F";
|
39
39
|
email?: string | undefined;
|
40
40
|
phone?: string | undefined;
|
@@ -66,12 +66,12 @@ export declare const patientUpdateSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
66
66
|
zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
67
67
|
country: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>, string | undefined, string | undefined>>;
|
68
68
|
}>>, "strip", z.ZodTypeAny, {
|
69
|
-
id: string;
|
70
69
|
firstName: string;
|
71
70
|
lastName: string;
|
71
|
+
dob: string;
|
72
|
+
id: string;
|
72
73
|
country: string;
|
73
74
|
zip: string;
|
74
|
-
dob: string;
|
75
75
|
genderAtBirth: "M" | "F";
|
76
76
|
email?: string | undefined;
|
77
77
|
phone?: string | undefined;
|
@@ -82,11 +82,11 @@ export declare const patientUpdateSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
82
82
|
driversLicenseValue?: string | undefined;
|
83
83
|
driversLicenseState?: string | undefined;
|
84
84
|
}, {
|
85
|
-
id: string;
|
86
85
|
firstName: string;
|
87
86
|
lastName: string;
|
88
|
-
zip: string;
|
89
87
|
dob: string;
|
88
|
+
id: string;
|
89
|
+
zip: string;
|
90
90
|
genderAtBirth: "M" | "F";
|
91
91
|
email?: string | undefined;
|
92
92
|
phone?: string | undefined;
|
@@ -47,15 +47,15 @@ export declare const FieldsValidationSchema: z.ZodObject<{
|
|
47
47
|
lastName: z.ZodString;
|
48
48
|
customFields: z.ZodEffects<z.ZodOptional<z.ZodString>, CustomFields, string | undefined>;
|
49
49
|
}, "strip", z.ZodTypeAny, {
|
50
|
-
email: string;
|
51
50
|
firstName: string;
|
52
51
|
lastName: string;
|
52
|
+
email: string;
|
53
53
|
customFields: CustomFields;
|
54
54
|
listIds: string[];
|
55
55
|
}, {
|
56
|
-
email: string;
|
57
56
|
firstName: string;
|
58
57
|
lastName: string;
|
58
|
+
email: string;
|
59
59
|
listIds: string;
|
60
60
|
customFields?: string | undefined;
|
61
61
|
}>;
|
package/dist/extensions/sendgrid-extension/v1/actions/sendEmailWithTemplate/config/fields.d.ts
CHANGED
@@ -56,15 +56,15 @@ export declare const FieldsValidationSchema: z.ZodObject<{
|
|
56
56
|
fromName: z.ZodOptional<z.ZodString>;
|
57
57
|
fromEmail: z.ZodOptional<z.ZodString>;
|
58
58
|
}, "strip", z.ZodTypeAny, {
|
59
|
-
templateId: string;
|
60
59
|
to: string;
|
60
|
+
templateId: string;
|
61
61
|
dynamicTemplateData: TemplateData;
|
62
62
|
subject?: string | undefined;
|
63
63
|
fromName?: string | undefined;
|
64
64
|
fromEmail?: string | undefined;
|
65
65
|
}, {
|
66
|
-
templateId: string;
|
67
66
|
to: string;
|
67
|
+
templateId: string;
|
68
68
|
subject?: string | undefined;
|
69
69
|
fromName?: string | undefined;
|
70
70
|
fromEmail?: string | undefined;
|
@@ -36,12 +36,12 @@ export declare const SettingsValidationSchema: z.ZodObject<{
|
|
36
36
|
clientSecret: z.ZodString;
|
37
37
|
}, "strip", z.ZodTypeAny, {
|
38
38
|
clientId: string;
|
39
|
+
clientSecret: string;
|
39
40
|
region: "US" | "EU" | "Canada";
|
40
41
|
talkDeskAccountName: string;
|
41
|
-
clientSecret: string;
|
42
42
|
}, {
|
43
43
|
clientId: string;
|
44
|
-
talkDeskAccountName: string;
|
45
44
|
clientSecret: string;
|
45
|
+
talkDeskAccountName: string;
|
46
46
|
region?: "US" | "EU" | "Canada" | undefined;
|
47
47
|
}>;
|
@@ -44,6 +44,14 @@ export declare const CreateFlowExecutionSchema: z.ZodEffects<z.ZodEffects<z.ZodE
|
|
44
44
|
from?: string | undefined;
|
45
45
|
}>;
|
46
46
|
}, "strip", z.ZodTypeAny, {
|
47
|
+
fields: {
|
48
|
+
recipient: string & {
|
49
|
+
__tag?: "E164Number" | undefined;
|
50
|
+
};
|
51
|
+
flow_id: string;
|
52
|
+
parameters: string;
|
53
|
+
from?: import("libphonenumber-js").E164Number | undefined;
|
54
|
+
};
|
47
55
|
settings: {
|
48
56
|
language: "en" | "fr" | "nl";
|
49
57
|
accountSid: string;
|
@@ -53,15 +61,13 @@ export declare const CreateFlowExecutionSchema: z.ZodEffects<z.ZodEffects<z.ZodE
|
|
53
61
|
messagingServiceSid?: string | undefined;
|
54
62
|
optOutLanguage?: string | undefined;
|
55
63
|
};
|
64
|
+
}, {
|
56
65
|
fields: {
|
57
|
-
recipient: string
|
58
|
-
__tag?: "E164Number" | undefined;
|
59
|
-
};
|
66
|
+
recipient: string;
|
60
67
|
flow_id: string;
|
61
68
|
parameters: string;
|
62
|
-
from?:
|
69
|
+
from?: string | undefined;
|
63
70
|
};
|
64
|
-
}, {
|
65
71
|
settings: {
|
66
72
|
accountSid: string;
|
67
73
|
authToken: string;
|
@@ -71,13 +77,15 @@ export declare const CreateFlowExecutionSchema: z.ZodEffects<z.ZodEffects<z.ZodE
|
|
71
77
|
addOptOutLanguage?: string | undefined;
|
72
78
|
optOutLanguage?: string | undefined;
|
73
79
|
};
|
80
|
+
}>, {
|
74
81
|
fields: {
|
75
|
-
recipient: string
|
82
|
+
recipient: string & {
|
83
|
+
__tag?: "E164Number" | undefined;
|
84
|
+
};
|
76
85
|
flow_id: string;
|
77
86
|
parameters: string;
|
78
|
-
from?:
|
87
|
+
from?: import("libphonenumber-js").E164Number | undefined;
|
79
88
|
};
|
80
|
-
}>, {
|
81
89
|
settings: {
|
82
90
|
language: "en" | "fr" | "nl";
|
83
91
|
accountSid: string;
|
@@ -87,15 +95,13 @@ export declare const CreateFlowExecutionSchema: z.ZodEffects<z.ZodEffects<z.ZodE
|
|
87
95
|
messagingServiceSid?: string | undefined;
|
88
96
|
optOutLanguage?: string | undefined;
|
89
97
|
};
|
98
|
+
}, {
|
90
99
|
fields: {
|
91
|
-
recipient: string
|
92
|
-
__tag?: "E164Number" | undefined;
|
93
|
-
};
|
100
|
+
recipient: string;
|
94
101
|
flow_id: string;
|
95
102
|
parameters: string;
|
96
|
-
from?:
|
103
|
+
from?: string | undefined;
|
97
104
|
};
|
98
|
-
}, {
|
99
105
|
settings: {
|
100
106
|
accountSid: string;
|
101
107
|
authToken: string;
|
@@ -105,12 +111,6 @@ export declare const CreateFlowExecutionSchema: z.ZodEffects<z.ZodEffects<z.ZodE
|
|
105
111
|
addOptOutLanguage?: string | undefined;
|
106
112
|
optOutLanguage?: string | undefined;
|
107
113
|
};
|
108
|
-
fields: {
|
109
|
-
recipient: string;
|
110
|
-
flow_id: string;
|
111
|
-
parameters: string;
|
112
|
-
from?: string | undefined;
|
113
|
-
};
|
114
114
|
}>, {
|
115
115
|
settings: {
|
116
116
|
language: "en" | "fr" | "nl";
|
@@ -130,6 +130,12 @@ export declare const CreateFlowExecutionSchema: z.ZodEffects<z.ZodEffects<z.ZodE
|
|
130
130
|
flow_id: string;
|
131
131
|
};
|
132
132
|
}, {
|
133
|
+
fields: {
|
134
|
+
recipient: string;
|
135
|
+
flow_id: string;
|
136
|
+
parameters: string;
|
137
|
+
from?: string | undefined;
|
138
|
+
};
|
133
139
|
settings: {
|
134
140
|
accountSid: string;
|
135
141
|
authToken: string;
|
@@ -139,12 +145,6 @@ export declare const CreateFlowExecutionSchema: z.ZodEffects<z.ZodEffects<z.ZodE
|
|
139
145
|
addOptOutLanguage?: string | undefined;
|
140
146
|
optOutLanguage?: string | undefined;
|
141
147
|
};
|
142
|
-
fields: {
|
143
|
-
recipient: string;
|
144
|
-
flow_id: string;
|
145
|
-
parameters: string;
|
146
|
-
from?: string | undefined;
|
147
|
-
};
|
148
148
|
}>, {
|
149
149
|
settings: {
|
150
150
|
language: "en" | "fr" | "nl";
|
@@ -164,6 +164,12 @@ export declare const CreateFlowExecutionSchema: z.ZodEffects<z.ZodEffects<z.ZodE
|
|
164
164
|
flow_id: string;
|
165
165
|
};
|
166
166
|
}, {
|
167
|
+
fields: {
|
168
|
+
recipient: string;
|
169
|
+
flow_id: string;
|
170
|
+
parameters: string;
|
171
|
+
from?: string | undefined;
|
172
|
+
};
|
167
173
|
settings: {
|
168
174
|
accountSid: string;
|
169
175
|
authToken: string;
|
@@ -173,10 +179,4 @@ export declare const CreateFlowExecutionSchema: z.ZodEffects<z.ZodEffects<z.ZodE
|
|
173
179
|
addOptOutLanguage?: string | undefined;
|
174
180
|
optOutLanguage?: string | undefined;
|
175
181
|
};
|
176
|
-
fields: {
|
177
|
-
recipient: string;
|
178
|
-
flow_id: string;
|
179
|
-
parameters: string;
|
180
|
-
from?: string | undefined;
|
181
|
-
};
|
182
182
|
}>;
|
@@ -55,14 +55,14 @@ export declare const FieldsValidationSchema: z.ZodObject<{
|
|
55
55
|
date_sent_before: z.ZodEffects<z.ZodUnion<[z.ZodOptional<z.ZodEffects<z.ZodDate, string, Date>>, z.ZodEffects<z.ZodLiteral<"">, undefined, "">]>, Date | undefined, "" | Date | undefined>;
|
56
56
|
}, "strip", z.ZodTypeAny, {
|
57
57
|
page_size: number;
|
58
|
-
from?: import("libphonenumber-js").E164Number | undefined;
|
59
58
|
recipient?: import("libphonenumber-js").E164Number | undefined;
|
59
|
+
from?: import("libphonenumber-js").E164Number | undefined;
|
60
60
|
date_sent_after?: Date | undefined;
|
61
61
|
date_sent_before?: Date | undefined;
|
62
62
|
date_sent?: Date | undefined;
|
63
63
|
}, {
|
64
|
-
from?: string | undefined;
|
65
64
|
recipient?: string | undefined;
|
65
|
+
from?: string | undefined;
|
66
66
|
page_size?: number | undefined;
|
67
67
|
date_sent_after?: "" | Date | undefined;
|
68
68
|
date_sent_before?: "" | Date | undefined;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const WORKRAMP_IDENTIFIER = "https://www.workramp.com/";
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../extensions/workramp/config.ts"],"names":[],"mappings":";;;AAAa,QAAA,mBAAmB,GAAG,2BAA2B,CAAA"}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.Workramp = void 0;
|
4
|
+
const extensions_core_1 = require("@awell-health/extensions-core");
|
5
|
+
const webhooks_1 = require("./webhooks");
|
6
|
+
exports.Workramp = {
|
7
|
+
key: 'workramp',
|
8
|
+
title: 'Workramp',
|
9
|
+
icon_url: 'https://res.cloudinary.com/da7x4rzl4/image/upload/v1724917358/Awell%20Extensions/workramp_logo.jpg',
|
10
|
+
description: 'An LMS platform. The system identifier used is https://www.workramp.com/',
|
11
|
+
category: extensions_core_1.Category.CONTENT_AND_FILES,
|
12
|
+
author: {
|
13
|
+
authorType: extensions_core_1.AuthorType.AWELL,
|
14
|
+
},
|
15
|
+
actions: {},
|
16
|
+
settings: {},
|
17
|
+
webhooks: [webhooks_1.eventWebhook],
|
18
|
+
};
|
19
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../extensions/workramp/index.ts"],"names":[],"mappings":";;;AAAA,mEAIsC;AACtC,yCAAyC;AAE5B,QAAA,QAAQ,GAAc;IACjC,GAAG,EAAE,UAAU;IACf,KAAK,EAAE,UAAU;IACjB,QAAQ,EACN,oGAAoG;IACtG,WAAW,EACT,0EAA0E;IAC5E,QAAQ,EAAE,0BAAQ,CAAC,iBAAiB;IACpC,MAAM,EAAE;QACN,UAAU,EAAE,4BAAU,CAAC,KAAK;KAC7B;IACD,OAAO,EAAE,EAAE;IACX,QAAQ,EAAE,EAAE;IACZ,QAAQ,EAAE,CAAC,uBAAY,CAAC;CACzB,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const settings: {};
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"settings.js","sourceRoot":"","sources":["../../../extensions/workramp/settings.ts"],"names":[],"mappings":";;;AAEa,QAAA,QAAQ,GAAG,EAAqB,CAAA"}
|
@@ -0,0 +1,49 @@
|
|
1
|
+
import z from 'zod';
|
2
|
+
import { EventType } from './EventType';
|
3
|
+
export declare const EventPayloadSchema: z.ZodObject<{
|
4
|
+
eventType: z.ZodNativeEnum<typeof EventType>;
|
5
|
+
id: z.ZodOptional<z.ZodString>;
|
6
|
+
timestamp: z.ZodNumber;
|
7
|
+
user: z.ZodObject<{
|
8
|
+
id: z.ZodString;
|
9
|
+
email: z.ZodString;
|
10
|
+
firstName: z.ZodString;
|
11
|
+
lastName: z.ZodString;
|
12
|
+
customAttributes: z.ZodRecord<z.ZodString, z.ZodAny>;
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
14
|
+
firstName: string;
|
15
|
+
lastName: string;
|
16
|
+
email: string;
|
17
|
+
id: string;
|
18
|
+
customAttributes: Record<string, any>;
|
19
|
+
}, {
|
20
|
+
firstName: string;
|
21
|
+
lastName: string;
|
22
|
+
email: string;
|
23
|
+
id: string;
|
24
|
+
customAttributes: Record<string, any>;
|
25
|
+
}>;
|
26
|
+
}, "strip", z.ZodTypeAny, {
|
27
|
+
user: {
|
28
|
+
firstName: string;
|
29
|
+
lastName: string;
|
30
|
+
email: string;
|
31
|
+
id: string;
|
32
|
+
customAttributes: Record<string, any>;
|
33
|
+
};
|
34
|
+
eventType: EventType;
|
35
|
+
timestamp: number;
|
36
|
+
id?: string | undefined;
|
37
|
+
}, {
|
38
|
+
user: {
|
39
|
+
firstName: string;
|
40
|
+
lastName: string;
|
41
|
+
email: string;
|
42
|
+
id: string;
|
43
|
+
customAttributes: Record<string, any>;
|
44
|
+
};
|
45
|
+
eventType: EventType;
|
46
|
+
timestamp: number;
|
47
|
+
id?: string | undefined;
|
48
|
+
}>;
|
49
|
+
export type EventPayload = z.infer<typeof EventPayloadSchema>;
|
@@ -0,0 +1,22 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.EventPayloadSchema = void 0;
|
7
|
+
const zod_1 = __importDefault(require("zod"));
|
8
|
+
const EventType_1 = require("./EventType");
|
9
|
+
const UserSchema = zod_1.default.object({
|
10
|
+
id: zod_1.default.string(),
|
11
|
+
email: zod_1.default.string().email(),
|
12
|
+
firstName: zod_1.default.string(),
|
13
|
+
lastName: zod_1.default.string(),
|
14
|
+
customAttributes: zod_1.default.record(zod_1.default.string(), zod_1.default.any()),
|
15
|
+
});
|
16
|
+
exports.EventPayloadSchema = zod_1.default.object({
|
17
|
+
eventType: zod_1.default.nativeEnum(EventType_1.EventType),
|
18
|
+
id: zod_1.default.string().optional(),
|
19
|
+
timestamp: zod_1.default.number().int().positive(),
|
20
|
+
user: UserSchema,
|
21
|
+
});
|
22
|
+
//# sourceMappingURL=EventPayload.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"EventPayload.js","sourceRoot":"","sources":["../../../../extensions/workramp/types/EventPayload.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAmB;AACnB,2CAAuC;AAEvC,MAAM,UAAU,GAAG,aAAC,CAAC,MAAM,CAAC;IAC1B,EAAE,EAAE,aAAC,CAAC,MAAM,EAAE;IACd,KAAK,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE;IACzB,SAAS,EAAE,aAAC,CAAC,MAAM,EAAE;IACrB,QAAQ,EAAE,aAAC,CAAC,MAAM,EAAE;IACpB,gBAAgB,EAAE,aAAC,CAAC,MAAM,CAAC,aAAC,CAAC,MAAM,EAAE,EAAE,aAAC,CAAC,GAAG,EAAE,CAAC;CAChD,CAAC,CAAA;AAEW,QAAA,kBAAkB,GAAG,aAAC,CAAC,MAAM,CAAC;IACzC,SAAS,EAAE,aAAC,CAAC,UAAU,CAAC,qBAAS,CAAC;IAClC,EAAE,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzB,SAAS,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACtC,IAAI,EAAE,UAAU;CACjB,CAAC,CAAA"}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
export declare enum EventType {
|
2
|
+
UserRegistration = "userRegistration",
|
3
|
+
ContentEnrollmentCertification = "contentEnrollment.certification",
|
4
|
+
ContentCompletionCertification = "contentCompletion.certification",
|
5
|
+
ContentEnrollmentGuide = "contentEnrollment.guide",
|
6
|
+
ContentCompletionGuide = "contentCompletion.guide",
|
7
|
+
ContentEnrollmentPath = "contentEnrollment.path",
|
8
|
+
ContentCompletionPath = "contentCompletion.path",
|
9
|
+
ContentEnrollmentResource = "contentEnrolmment.resource",
|
10
|
+
ContentCompletionResource = "contentCompletion.resource",
|
11
|
+
ContentEnrollmentScorm = "contentEnrollment.scorm",
|
12
|
+
ContentCompletionScorm = "contentCompletion.scorm"
|
13
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.EventType = void 0;
|
4
|
+
var EventType;
|
5
|
+
(function (EventType) {
|
6
|
+
EventType["UserRegistration"] = "userRegistration";
|
7
|
+
EventType["ContentEnrollmentCertification"] = "contentEnrollment.certification";
|
8
|
+
EventType["ContentCompletionCertification"] = "contentCompletion.certification";
|
9
|
+
EventType["ContentEnrollmentGuide"] = "contentEnrollment.guide";
|
10
|
+
EventType["ContentCompletionGuide"] = "contentCompletion.guide";
|
11
|
+
EventType["ContentEnrollmentPath"] = "contentEnrollment.path";
|
12
|
+
EventType["ContentCompletionPath"] = "contentCompletion.path";
|
13
|
+
EventType["ContentEnrollmentResource"] = "contentEnrolmment.resource";
|
14
|
+
EventType["ContentCompletionResource"] = "contentCompletion.resource";
|
15
|
+
EventType["ContentEnrollmentScorm"] = "contentEnrollment.scorm";
|
16
|
+
EventType["ContentCompletionScorm"] = "contentCompletion.scorm";
|
17
|
+
})(EventType = exports.EventType || (exports.EventType = {}));
|
18
|
+
//# sourceMappingURL=EventType.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"EventType.js","sourceRoot":"","sources":["../../../../extensions/workramp/types/EventType.ts"],"names":[],"mappings":";;;AAAA,IAAY,SAYX;AAZD,WAAY,SAAS;IACnB,kDAAqC,CAAA;IACrC,+EAAkE,CAAA;IAClE,+EAAkE,CAAA;IAClE,+DAAkD,CAAA;IAClD,+DAAkD,CAAA;IAClD,6DAAgD,CAAA;IAChD,6DAAgD,CAAA;IAChD,qEAAwD,CAAA;IACxD,qEAAwD,CAAA;IACxD,+DAAkD,CAAA;IAClD,+DAAkD,CAAA;AACpD,CAAC,EAZW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAYpB"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.EventType = exports.EventPayloadSchema = void 0;
|
4
|
+
var EventPayload_1 = require("./EventPayload");
|
5
|
+
Object.defineProperty(exports, "EventPayloadSchema", { enumerable: true, get: function () { return EventPayload_1.EventPayloadSchema; } });
|
6
|
+
var EventType_1 = require("./EventType");
|
7
|
+
Object.defineProperty(exports, "EventType", { enumerable: true, get: function () { return EventType_1.EventType; } });
|
8
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../extensions/workramp/types/index.ts"],"names":[],"mappings":";;;AAAA,+CAAsE;AAA7D,kHAAA,kBAAkB,OAAA;AAC3B,yCAAuC;AAA9B,sGAAA,SAAS,OAAA"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { type Webhook } from '@awell-health/extensions-core';
|
2
|
+
import { settings } from '../settings';
|
3
|
+
import { EventPayload } from '../types';
|
4
|
+
declare const dataPoints: {
|
5
|
+
eventType: {
|
6
|
+
key: string;
|
7
|
+
valueType: "string";
|
8
|
+
};
|
9
|
+
};
|
10
|
+
export declare const eventWebhook: Webhook<keyof typeof dataPoints, EventPayload, typeof settings>;
|
11
|
+
export type EventWebhook = typeof eventWebhook;
|
12
|
+
export {};
|
@@ -0,0 +1,28 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.eventWebhook = void 0;
|
4
|
+
const config_1 = require("../config");
|
5
|
+
const types_1 = require("../types");
|
6
|
+
const dataPoints = {
|
7
|
+
eventType: {
|
8
|
+
key: 'eventType',
|
9
|
+
valueType: 'string',
|
10
|
+
},
|
11
|
+
};
|
12
|
+
exports.eventWebhook = {
|
13
|
+
key: 'eventWebhook',
|
14
|
+
dataPoints,
|
15
|
+
onWebhookReceived: async ({ payload }, onSuccess, onError) => {
|
16
|
+
const { user: { id: value }, eventType, } = types_1.EventPayloadSchema.parse(payload);
|
17
|
+
await onSuccess({
|
18
|
+
data_points: {
|
19
|
+
eventType: eventType.toString(),
|
20
|
+
},
|
21
|
+
patient_identifier: {
|
22
|
+
system: config_1.WORKRAMP_IDENTIFIER,
|
23
|
+
value,
|
24
|
+
},
|
25
|
+
});
|
26
|
+
},
|
27
|
+
};
|
28
|
+
//# sourceMappingURL=EventWebhook.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"EventWebhook.js","sourceRoot":"","sources":["../../../../extensions/workramp/webhooks/EventWebhook.ts"],"names":[],"mappings":";;;AAIA,sCAA+C;AAE/C,oCAA2D;AAE3D,MAAM,UAAU,GAAG;IACjB,SAAS,EAAE;QACT,GAAG,EAAE,WAAW;QAChB,SAAS,EAAE,QAAQ;KACpB;CAC4C,CAAA;AAElC,QAAA,YAAY,GAIrB;IACF,GAAG,EAAE,cAAc;IACnB,UAAU;IACV,iBAAiB,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE;QAC3D,MAAM,EACJ,IAAI,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,EACnB,SAAS,GACV,GAAG,0BAAkB,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA;QACrC,MAAM,SAAS,CAAC;YACd,WAAW,EAAE;gBACX,SAAS,EAAE,SAAS,CAAC,QAAQ,EAAE;aAChC;YACD,kBAAkB,EAAE;gBAClB,MAAM,EAAE,4BAAmB;gBAC3B,KAAK;aACN;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export { eventWebhook } from './EventWebhook';
|