@awell-health/awell-extensions 2.1.134 → 2.1.136
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/index.js +0 -2
- package/dist/extensions/index.js.map +1 -1
- package/dist/extensions/markdown.json +0 -4
- package/dist/extensions/shelly/actions/summarizeForm/summarizeForm.js +4 -0
- package/dist/extensions/shelly/actions/summarizeForm/summarizeForm.js.map +1 -1
- package/dist/extensions/shelly/lib/summarizeFormWithLLM/summarizeFormWithLLM.d.ts +1 -1
- package/dist/extensions/shelly/lib/summarizeFormWithLLM/summarizeFormWithLLM.js +11 -5
- package/dist/extensions/shelly/lib/summarizeFormWithLLM/summarizeFormWithLLM.js.map +1 -1
- package/dist/src/lib/llm/openai/constants.js +5 -2
- package/dist/src/lib/llm/openai/constants.js.map +1 -1
- package/dist/src/lib/llm/openai/createOpenAIModel.d.ts +1 -1
- package/dist/src/lib/llm/openai/createOpenAIModel.js +4 -2
- package/dist/src/lib/llm/openai/createOpenAIModel.js.map +1 -1
- package/dist/src/lib/llm/openai/types.d.ts +13 -3
- package/package.json +1 -1
- package/dist/extensions/hix/actions/createTask/config/dataPoints.d.ts +0 -10
- package/dist/extensions/hix/actions/createTask/config/dataPoints.js +0 -14
- package/dist/extensions/hix/actions/createTask/config/dataPoints.js.map +0 -1
- package/dist/extensions/hix/actions/createTask/config/fields.d.ts +0 -68
- package/dist/extensions/hix/actions/createTask/config/fields.js +0 -58
- package/dist/extensions/hix/actions/createTask/config/fields.js.map +0 -1
- package/dist/extensions/hix/actions/createTask/config/index.d.ts +0 -2
- package/dist/extensions/hix/actions/createTask/config/index.js +0 -9
- package/dist/extensions/hix/actions/createTask/config/index.js.map +0 -1
- package/dist/extensions/hix/actions/createTask/createTask.d.ts +0 -4
- package/dist/extensions/hix/actions/createTask/createTask.js +0 -72
- package/dist/extensions/hix/actions/createTask/createTask.js.map +0 -1
- package/dist/extensions/hix/actions/createTask/index.d.ts +0 -1
- package/dist/extensions/hix/actions/createTask/index.js +0 -6
- package/dist/extensions/hix/actions/createTask/index.js.map +0 -1
- package/dist/extensions/hix/actions/index.d.ts +0 -62
- package/dist/extensions/hix/actions/index.js +0 -8
- package/dist/extensions/hix/actions/index.js.map +0 -1
- package/dist/extensions/hix/index.d.ts +0 -2
- package/dist/extensions/hix/index.js +0 -22
- package/dist/extensions/hix/index.js.map +0 -1
- package/dist/extensions/hix/settings.d.ts +0 -27
- package/dist/extensions/hix/settings.js +0 -25
- package/dist/extensions/hix/settings.js.map +0 -1
package/dist/extensions/index.js
CHANGED
|
@@ -63,7 +63,6 @@ const freshdesk_1 = require("./freshdesk");
|
|
|
63
63
|
const freshsales_1 = require("./freshsales");
|
|
64
64
|
const gridspace_1 = require("./gridspace");
|
|
65
65
|
const healthie_1 = require("./healthie");
|
|
66
|
-
const hix_1 = require("./hix");
|
|
67
66
|
const hello_world_1 = require("./hello-world");
|
|
68
67
|
const hubspot_1 = require("./hubspot");
|
|
69
68
|
const identityVerification_1 = require("./identityVerification");
|
|
@@ -128,7 +127,6 @@ exports.extensions = [
|
|
|
128
127
|
freshsales_1.freshsales,
|
|
129
128
|
gridspace_1.Gridspace,
|
|
130
129
|
healthie_1.Healthie,
|
|
131
|
-
hix_1.hix,
|
|
132
130
|
hello_world_1.HelloWorld,
|
|
133
131
|
hubspot_1.hubspot,
|
|
134
132
|
identityVerification_1.identityVerification,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../extensions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iDAA6C;AAC7C,yCAAqC;AACrC,qCAAiC;AACjC,mCAA+B;AAC/B,6CAAyC;AACzC,mCAA+B;AAC/B,mCAA+B;AAC/B,2CAAuC;AACvC,yCAAqC;AACrC,mDAA+C;AAC/C,qCAAiC;AACjC,6CAAyC;AACzC,yCAAqC;AACrC,+CAA2C;AAC3C,6CAAyC;AACzC,+CAA2C;AAC3C,6CAAyC;AACzC,qCAAiC;AACjC,yCAAqC;AACrC,+CAA2C;AAC3C,uCAAmC;AACnC,iCAA6B;AAC7B,iDAA6C;AAC7C,uDAAkD;AAClD,yCAAqC;AACrC,2CAAuC;AACvC,6CAAyC;AACzC,2CAAuC;AACvC,yCAAqC;AACrC,+
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../extensions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iDAA6C;AAC7C,yCAAqC;AACrC,qCAAiC;AACjC,mCAA+B;AAC/B,6CAAyC;AACzC,mCAA+B;AAC/B,mCAA+B;AAC/B,2CAAuC;AACvC,yCAAqC;AACrC,mDAA+C;AAC/C,qCAAiC;AACjC,6CAAyC;AACzC,yCAAqC;AACrC,+CAA2C;AAC3C,6CAAyC;AACzC,+CAA2C;AAC3C,6CAAyC;AACzC,qCAAiC;AACjC,yCAAqC;AACrC,+CAA2C;AAC3C,uCAAmC;AACnC,iCAA6B;AAC7B,iDAA6C;AAC7C,uDAAkD;AAClD,yCAAqC;AACrC,2CAAuC;AACvC,6CAAyC;AACzC,2CAAuC;AACvC,yCAAqC;AACrC,+CAA0C;AAC1C,uCAAmC;AACnC,iEAA6D;AAC7D,uCAAmC;AACnC,yCAAqC;AACrC,2CAAuC;AACvC,2CAAuC;AACvC,uCAAmC;AACnC,iCAAsC;AACtC,uCAAmC;AACnC,+CAA2C;AAC3C,2CAAuC;AACvC,+CAA2C;AAC3C,iCAA6B;AAC7B,yCAAqC;AACrC,6DAA+C;AAC/C,iCAA6B;AAC7B,qCAAiC;AACjC,mCAA+B;AAC/B,mCAA+B;AAC/B,qCAAiC;AACjC,yCAAqC;AACrC,yCAAqC;AACrC,+CAAyC;AACzC,2CAAuC;AACvC,qCAAiC;AACjC,uCAAmC;AACnC,yCAAqC;AACrC,+CAA2C;AAC3C,uCAAmC;AACnC,iCAA6B;AAC7B,mCAA+B;AAE/B,sDAAuC;AAG1B,QAAA,QAAQ,GAAa,IAAI,CAAA;AAEzB,QAAA,UAAU,GAAG;IACxB,aAAK;IACL,aAAK;IACL,2BAAY;IACZ,mBAAQ;IACR,eAAM;IACN,aAAK;IACL,uBAAU;IACV,qBAAS;IACT,mBAAQ;IACR,6BAAa;IACb,eAAM;IACN,uBAAU;IACV,mBAAQ;IACR,yBAAW;IACX,uBAAU;IACV,yBAAW;IACX,uBAAU;IACV,mBAAQ;IACR,eAAM;IACN,yBAAW;IACX,iBAAO;IACP,WAAI;IACJ,2BAAY;IACZ,gCAAc;IACd,mBAAQ;IACR,qBAAS;IACT,uBAAU;IACV,qBAAS;IACT,mBAAQ;IACR,wBAAU;IACV,iBAAO;IACP,2CAAoB;IACpB,iBAAO;IACP,mBAAQ;IACR,qBAAS;IACT,qBAAS;IACT,iBAAO;IACP,oBAAa;IACb,yBAAW;IACX,iBAAO;IACP,qBAAS;IACT,yBAAW;IACX,WAAI;IACJ,mBAAQ;IACR,6BAAQ;IACR,WAAI;IACJ,eAAM;IACN,aAAK;IACL,aAAK;IACL,eAAM;IACN,mBAAQ;IACR,mBAAQ;IACR,uBAAS;IACT,qBAAS;IACT,eAAM;IACN,iBAAO;IACP,mBAAQ;IACR,yBAAW;IACX,iBAAO;IACP,WAAI;IACJ,aAAK;CACN,CAAA"}
|
|
@@ -119,10 +119,6 @@
|
|
|
119
119
|
"readme": "---\ntitle: Hello world\ndescription: This is an example extension.\n---\n# Hello world extension",
|
|
120
120
|
"changelog": "# Hello world changelog"
|
|
121
121
|
},
|
|
122
|
-
"hix": {
|
|
123
|
-
"readme": "---\ntitle: Hix\ndescription: Integration with ChipSoft HiX — create tasks on the care provider's worklist.\n---\n\n# ChipSoft HiX\n\nIntegration with ChipSoft HiX. Allows Awell care flows to push tasks directly to the HiX worklist.\n\n## Extension settings\n\n| Setting | Required | Description |\n|---|---|---|\n| API URL | Yes | Full URL of the HiX task endpoint (e.g. the `incoming-task` endpoint) |\n| API key | No | Optional shared secret, sent as the `x-demo-key` header |\n\n## Actions\n\n### Create task\n\nPosts a task to the HiX worklist. The task appears on \"Mijn werklijst\" and can be launched directly from HiX.\n\n**Fields:** Patient ID, Patient name, Task title, Task description, Requester (defaults to `ZTOP`), Launch URL\n\n**Data points returned:** `taskId`, `statusCode`\n",
|
|
124
|
-
"changelog": "# CHANGELOG\n"
|
|
125
|
-
},
|
|
126
122
|
"hubspot": {
|
|
127
123
|
"readme": "---\ntitle: Hubspot\ndescription: HubSpot is a customer relationship management (CRM) platform that provides a suite of tools for marketing, sales, customer service, and content management.\n---\n\n## Hubspot\n\nHubSpot is a customer relationship management (CRM) platform that offers a comprehensive suite of tools for marketing, sales, customer service, and content management. It is widely recognized for its user-friendly interface and inbound marketing methodology, which focuses on attracting customers through valuable content and experiences instead of traditional advertising.\n\nHubSpot provides features like email marketing, social media management, lead generation, analytics, and automation to help businesses attract, engage, and delight customers.\n\n## Settings and Setup\n\nTo use the HubSpot extension, you need an access token to authenticate with the HubSpot API. We recommend creating a [private app](https://developers.hubspot.com/docs/api/private-apps) in your HubSpot account for Awell and using the provided access token. You should only provide the minimum scopes necessary for the actions you intend to use. The required scopes for each action are listed in the documentation below.\n\n### SMTP Authentication\n\nIf you plan to use the \"Send email with SMTP\" action, you will need to provide your username and password to authenticate requests to HubSpot's SMTP server.\n\n### Add-ons\n\nSending transactional emails via HubSpot requires you to add the [corresponding add-ons](https://knowledge.hubspot.com/marketing-email/how-to-use-transactional-email-in-hubspot) to your HubSpot account.\n\n## Actions\n\n### Create or update contact\n\nCreates or updates a contact in HubSpot using the provided information. The patient is matched based on their email address—if a match is found, the existing contact is updated (PATCH); otherwise, a new contact is created.\n\nScope: `crm.objects.contacts.write`\n\n### Get contact\n\nRetrieve the details of a contact based on the provided contact ID.\n\nScope: `crm.objects.contacts.read`\n\n### Send email with SMTP\n\nSend an email using HubSpot's SMTP server.\n\nSending emails via SMTP has some limitations. The most significant drawback is that you cannot use templates or apply styling when sending emails through SMTP. SMTP is generally more manual and less integrated with HubSpot's smart content and template features.\n\nScope: N/A\n\n### Send email with Single Send API\n\nThe Single Send API is the recommended method for sending transactional emails with HubSpot. You can create email templates in your HubSpot account and use this action to send emails to recipients. This method allows you to take advantage of features like smart content and personalization.\n\nScope: `transactional-email`\n",
|
|
128
124
|
"changelog": "# Hubspot changelog"
|
|
@@ -42,6 +42,10 @@ exports.summarizeForm = {
|
|
|
42
42
|
payload,
|
|
43
43
|
modelType: constants_1.OPENAI_MODELS.GPT5Mini,
|
|
44
44
|
hideDataForTracing: true, // Hide input and output data when tracing
|
|
45
|
+
// Summarizing a form is a low-complexity task, so we cap reasoning effort
|
|
46
|
+
// to keep gpt-5-mini latency well under the request timeout. Scoped to this
|
|
47
|
+
// action so other extensions keep the model's default reasoning quality.
|
|
48
|
+
modelConfigOverrides: { reasoning: { effort: 'low' } },
|
|
45
49
|
});
|
|
46
50
|
const awellSdk = await helpers.awellSdk();
|
|
47
51
|
// Get care flow details for the disclaimer
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"summarizeForm.js","sourceRoot":"","sources":["../../../../../extensions/shelly/actions/summarizeForm/summarizeForm.ts"],"names":[],"mappings":";;;AAAA,mEAAqE;AACrE,yEAAqE;AACrE,2EAAuE;AACvE,wFAAoF;AACpF,wEAAwE;AACxE,qCAAqE;AACrE,uEAGsC;AACtC,qDAIkC;AAClC,iDAAsD;AACtD,qEAAiE;AACjE,mCAA8B;AAE9B;;;;;;;;;;;GAWG;AACU,QAAA,aAAa,GAItB;IACF,GAAG,EAAE,eAAe;IACpB,QAAQ,EAAE,0BAAQ,CAAC,QAAQ;IAC3B,KAAK,EAAE,gBAAgB;IACvB,WAAW,EACT,iJAAiJ;IACnJ,MAAM,EAAN,eAAM;IACN,WAAW,EAAE,KAAK;IAClB,UAAU,EAAV,mBAAU;IAEV,OAAO,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,EAAiB,EAAE;QAC1E,2BAA2B;QAC3B,MAAM,EACJ,KAAK,EACL,aAAa,EACb,aAAa,EACb,QAAQ,EACR,sBAAsB,GACvB,GAAG,+BAAsB,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAA;QAEhD,2CAA2C;QAC3C,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,MAAM,IAAA,qCAAiB,EAAC;YAC7D,QAAQ,EAAE,EAAE,EAAE,qCAAqC;YACnD,OAAO;YACP,OAAO;YACP,SAAS,EAAE,yBAAa,CAAC,QAAQ;YACjC,kBAAkB,EAAE,IAAI,EAAE,0CAA0C;
|
|
1
|
+
{"version":3,"file":"summarizeForm.js","sourceRoot":"","sources":["../../../../../extensions/shelly/actions/summarizeForm/summarizeForm.ts"],"names":[],"mappings":";;;AAAA,mEAAqE;AACrE,yEAAqE;AACrE,2EAAuE;AACvE,wFAAoF;AACpF,wEAAwE;AACxE,qCAAqE;AACrE,uEAGsC;AACtC,qDAIkC;AAClC,iDAAsD;AACtD,qEAAiE;AACjE,mCAA8B;AAE9B;;;;;;;;;;;GAWG;AACU,QAAA,aAAa,GAItB;IACF,GAAG,EAAE,eAAe;IACpB,QAAQ,EAAE,0BAAQ,CAAC,QAAQ;IAC3B,KAAK,EAAE,gBAAgB;IACvB,WAAW,EACT,iJAAiJ;IACnJ,MAAM,EAAN,eAAM;IACN,WAAW,EAAE,KAAK;IAClB,UAAU,EAAV,mBAAU;IAEV,OAAO,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,EAAiB,EAAE;QAC1E,2BAA2B;QAC3B,MAAM,EACJ,KAAK,EACL,aAAa,EACb,aAAa,EACb,QAAQ,EACR,sBAAsB,GACvB,GAAG,+BAAsB,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAA;QAEhD,2CAA2C;QAC3C,MAAM,EAAE,KAAK,EAAE,QAAQ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;IACJ,CAAC;CACF,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ChatOpenAI } from '@langchain/openai';
|
|
2
2
|
import { type AIActionMetadata } from '../../../../src/lib/llm/openai/types';
|
|
3
|
-
import type { BaseCallbackHandler } from
|
|
3
|
+
import type { BaseCallbackHandler } from '@langchain/core/callbacks/base';
|
|
4
4
|
/**
|
|
5
5
|
* Uses LLM to summarize form data in a specified format and language.
|
|
6
6
|
* The function follows these steps:
|
|
@@ -21,9 +21,11 @@ const prompt_1 = require("./prompt");
|
|
|
21
21
|
* })
|
|
22
22
|
*/
|
|
23
23
|
const summarizeFormWithLLM = async ({ model, formData, summaryFormat, language, disclaimerMessage, additionalInstructions, metadata, callbacks, }) => {
|
|
24
|
-
const systemPrompt = summaryFormat === 'Bullet-points'
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
const systemPrompt = summaryFormat === 'Bullet-points'
|
|
25
|
+
? prompt_1.systemPromptBulletPoints
|
|
26
|
+
: summaryFormat === 'Text paragraph'
|
|
27
|
+
? prompt_1.systemPromptTextParagraph
|
|
28
|
+
: prompt_1.systemPromptBulletPoints; // Default to bullet points if unknown format
|
|
27
29
|
const prompt = await systemPrompt.format({
|
|
28
30
|
language,
|
|
29
31
|
input: formData,
|
|
@@ -34,12 +36,16 @@ const summarizeFormWithLLM = async ({ model, formData, summaryFormat, language,
|
|
|
34
36
|
const result = await model.invoke(prompt, {
|
|
35
37
|
metadata,
|
|
36
38
|
runName: 'ShellySummarizeForm',
|
|
37
|
-
callbacks
|
|
39
|
+
callbacks,
|
|
38
40
|
});
|
|
39
41
|
return result.content;
|
|
40
42
|
}
|
|
41
43
|
catch (error) {
|
|
42
|
-
|
|
44
|
+
// Preserve the underlying error (e.g. OpenAI TimeoutError) as the cause so it
|
|
45
|
+
// surfaces in logs/traces instead of being masked by the generic message.
|
|
46
|
+
const wrappedError = new Error('Failed to generate form summary');
|
|
47
|
+
wrappedError.cause = error;
|
|
48
|
+
throw wrappedError;
|
|
43
49
|
}
|
|
44
50
|
};
|
|
45
51
|
exports.summarizeFormWithLLM = summarizeFormWithLLM;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"summarizeFormWithLLM.js","sourceRoot":"","sources":["../../../../../extensions/shelly/lib/summarizeFormWithLLM/summarizeFormWithLLM.ts"],"names":[],"mappings":";;;AAAA,qCAA8E;AAK9E;;;;;;;;;;;;;;;;;GAiBG;AACI,MAAM,oBAAoB,GAAG,KAAK,EAAE,EACzC,KAAK,EACL,QAAQ,EACR,aAAa,EACb,QAAQ,EACR,iBAAiB,EACjB,sBAAsB,EACtB,QAAQ,EACR,SAAS,GAUV,EAAmB,EAAE;IACpB,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"summarizeFormWithLLM.js","sourceRoot":"","sources":["../../../../../extensions/shelly/lib/summarizeFormWithLLM/summarizeFormWithLLM.ts"],"names":[],"mappings":";;;AAAA,qCAA8E;AAK9E;;;;;;;;;;;;;;;;;GAiBG;AACI,MAAM,oBAAoB,GAAG,KAAK,EAAE,EACzC,KAAK,EACL,QAAQ,EACR,aAAa,EACb,QAAQ,EACR,iBAAiB,EACjB,sBAAsB,EACtB,QAAQ,EACR,SAAS,GAUV,EAAmB,EAAE;IACpB,MAAM,YAAY,GAChB,aAAa,KAAK,eAAe;QAC/B,CAAC,CAAC,iCAAwB;QAC1B,CAAC,CAAC,aAAa,KAAK,gBAAgB;YAClC,CAAC,CAAC,kCAAyB;YAC3B,CAAC,CAAC,iCAAwB,CAAA,CAAC,6CAA6C;IAE9E,MAAM,MAAM,GAAG,MAAM,YAAY,CAAC,MAAM,CAAC;QACvC,QAAQ;QACR,KAAK,EAAE,QAAQ;QACf,iBAAiB;QACjB,sBAAsB,EACpB,sBAAsB,aAAtB,sBAAsB,cAAtB,sBAAsB,GAAI,4BAA4B;KACzD,CAAC,CAAA;IAEF,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE;YACxC,QAAQ;YACR,OAAO,EAAE,qBAAqB;YAC9B,SAAS;SACV,CAAC,CAAA;QAEF,OAAO,MAAM,CAAC,OAAiB,CAAA;IACjC,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,8EAA8E;QAC9E,0EAA0E;QAC1E,MAAM,YAAY,GAAG,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAChE;QAAC,YAA4C,CAAC,KAAK,GAAG,KAAK,CAAA;QAC5D,MAAM,YAAY,CAAA;IACpB,CAAC;AACH,CAAC,CAAA;AAjDY,QAAA,oBAAoB,wBAiDhC"}
|
|
@@ -7,13 +7,16 @@ const getDefaultConfig = (modelType) => {
|
|
|
7
7
|
return {
|
|
8
8
|
temperature: 1,
|
|
9
9
|
maxRetries: 3,
|
|
10
|
-
|
|
10
|
+
// 60s per-request ceiling. gpt-5-mini is a reasoning model and a single
|
|
11
|
+
// generation can exceed the previous 30s limit, causing every retry to
|
|
12
|
+
// time out and the action to fail after ~2min. See summarizeForm.
|
|
13
|
+
timeout: 60000,
|
|
11
14
|
};
|
|
12
15
|
default:
|
|
13
16
|
return {
|
|
14
17
|
temperature: 0,
|
|
15
18
|
maxRetries: 3,
|
|
16
|
-
timeout:
|
|
19
|
+
timeout: 60000,
|
|
17
20
|
};
|
|
18
21
|
}
|
|
19
22
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../src/lib/llm/openai/constants.ts"],"names":[],"mappings":";;;AAGO,MAAM,gBAAgB,GAAG,CAC9B,SAA0B,EACC,EAAE;IAC7B,QAAQ,SAAS,EAAE,CAAC;QAClB,KAAK,qBAAa,CAAC,QAAQ;YACzB,OAAO;gBACL,WAAW,EAAE,CAAC;gBACd,UAAU,EAAE,CAAC;gBACb,OAAO,EAAE,KAAK;aACf,CAAA;QACH;YACE,OAAO;gBACL,WAAW,EAAE,CAAC;gBACd,UAAU,EAAE,CAAC;gBACb,OAAO,EAAE,KAAK;aACf,CAAA;IACL,CAAC;AACH,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../src/lib/llm/openai/constants.ts"],"names":[],"mappings":";;;AAGO,MAAM,gBAAgB,GAAG,CAC9B,SAA0B,EACC,EAAE;IAC7B,QAAQ,SAAS,EAAE,CAAC;QAClB,KAAK,qBAAa,CAAC,QAAQ;YACzB,OAAO;gBACL,WAAW,EAAE,CAAC;gBACd,UAAU,EAAE,CAAC;gBACb,wEAAwE;gBACxE,uEAAuE;gBACvE,kEAAkE;gBAClE,OAAO,EAAE,KAAK;aACf,CAAA;QACH;YACE,OAAO;gBACL,WAAW,EAAE,CAAC;gBACd,UAAU,EAAE,CAAC;gBACb,OAAO,EAAE,KAAK;aACf,CAAA;IACL,CAAC;AACH,CAAC,CAAA;AApBY,QAAA,gBAAgB,oBAoB5B;AAED;;;GAGG;AACU,QAAA,aAAa,GAAG;IAC3B,QAAQ,EAAE,YAAY;CACd,CAAA;AAEV;;;;GAIG;AACU,QAAA,cAAc,GAAG;IAC5B,CAAC,qBAAa,CAAC,QAAQ,CAAC,EAAE,uBAAuB;CACzC,CAAA"}
|
|
@@ -18,6 +18,6 @@ import { type CreateOpenAIModelConfig, type OpenAIModelConfig } from './types';
|
|
|
18
18
|
* })
|
|
19
19
|
* ```
|
|
20
20
|
*/
|
|
21
|
-
export declare const createOpenAIModel: ({ settings, helpers, payload, modelType, hideDataForTracing, }: CreateOpenAIModelConfig & {
|
|
21
|
+
export declare const createOpenAIModel: ({ settings, helpers, payload, modelType, modelConfigOverrides, hideDataForTracing, }: CreateOpenAIModelConfig & {
|
|
22
22
|
hideDataForTracing?: boolean;
|
|
23
23
|
}) => Promise<OpenAIModelConfig>;
|
|
@@ -25,16 +25,18 @@ const constants_1 = require("./constants");
|
|
|
25
25
|
* })
|
|
26
26
|
* ```
|
|
27
27
|
*/
|
|
28
|
-
const createOpenAIModel = async ({ settings = {}, helpers, payload, modelType = constants_1.OPENAI_MODELS.GPT5Mini, hideDataForTracing = false, }) => {
|
|
28
|
+
const createOpenAIModel = async ({ settings = {}, helpers, payload, modelType = constants_1.OPENAI_MODELS.GPT5Mini, modelConfigOverrides, hideDataForTracing = false, }) => {
|
|
29
29
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
30
30
|
const apiKey = (_a = settings.openAiApiKey) !== null && _a !== void 0 ? _a : helpers.getOpenAIConfig().apiKey;
|
|
31
31
|
if ((0, lodash_1.isNil)(apiKey)) {
|
|
32
32
|
throw new Error('No OpenAI API key available in settings or environment configuration');
|
|
33
33
|
}
|
|
34
34
|
const model = new openai_1.ChatOpenAI({
|
|
35
|
+
...(0, constants_1.getDefaultConfig)(modelType),
|
|
36
|
+
...modelConfigOverrides,
|
|
37
|
+
// model and apiKey are enforced last so per-action overrides cannot change them
|
|
35
38
|
model: constants_1.MODEL_VERSIONS[modelType],
|
|
36
39
|
apiKey,
|
|
37
|
-
...(0, constants_1.getDefaultConfig)(modelType),
|
|
38
40
|
});
|
|
39
41
|
let callbacks;
|
|
40
42
|
if (hideDataForTracing) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createOpenAIModel.js","sourceRoot":"","sources":["../../../../../src/lib/llm/openai/createOpenAIModel.ts"],"names":[],"mappings":";;;AAAA,+EAA0E;AAC1E,8CAA8C;AAC9C,yCAAkC;AAClC,mCAA8B;AAC9B,2CAA6E;AAG7E;;;;;;;;;;;;;;;;;;GAkBG;AACI,MAAM,iBAAiB,GAAG,KAAK,EAAE,EACtC,QAAQ,GAAG,EAAE,EACb,OAAO,EACP,OAAO,EACP,SAAS,GAAG,yBAAa,CAAC,QAAQ,EAClC,kBAAkB,GAAG,KAAK,GAG3B,EAA8B,EAAE;;IAC/B,MAAM,MAAM,GAAG,MAAA,QAAQ,CAAC,YAAY,mCAAI,OAAO,CAAC,eAAe,EAAE,CAAC,MAAM,CAAA;IAExE,IAAI,IAAA,cAAK,EAAC,MAAM,CAAC,EAAE,CAAC;QAClB,MAAM,IAAI,KAAK,CACb,sEAAsE,CACvE,CAAA;IACH,CAAC;IAED,MAAM,KAAK,GAAG,IAAI,mBAAU,CAAC;QAC3B,
|
|
1
|
+
{"version":3,"file":"createOpenAIModel.js","sourceRoot":"","sources":["../../../../../src/lib/llm/openai/createOpenAIModel.ts"],"names":[],"mappings":";;;AAAA,+EAA0E;AAC1E,8CAA8C;AAC9C,yCAAkC;AAClC,mCAA8B;AAC9B,2CAA6E;AAG7E;;;;;;;;;;;;;;;;;;GAkBG;AACI,MAAM,iBAAiB,GAAG,KAAK,EAAE,EACtC,QAAQ,GAAG,EAAE,EACb,OAAO,EACP,OAAO,EACP,SAAS,GAAG,yBAAa,CAAC,QAAQ,EAClC,oBAAoB,EACpB,kBAAkB,GAAG,KAAK,GAG3B,EAA8B,EAAE;;IAC/B,MAAM,MAAM,GAAG,MAAA,QAAQ,CAAC,YAAY,mCAAI,OAAO,CAAC,eAAe,EAAE,CAAC,MAAM,CAAA;IAExE,IAAI,IAAA,cAAK,EAAC,MAAM,CAAC,EAAE,CAAC;QAClB,MAAM,IAAI,KAAK,CACb,sEAAsE,CACvE,CAAA;IACH,CAAC;IAED,MAAM,KAAK,GAAG,IAAI,mBAAU,CAAC;QAC3B,GAAG,IAAA,4BAAgB,EAAC,SAAS,CAAC;QAC9B,GAAG,oBAAoB;QACvB,gFAAgF;QAChF,KAAK,EAAE,0BAAc,CAAC,SAAS,CAAC;QAChC,MAAM;KACP,CAAC,CAAA;IAEF,IAAI,SAAS,CAAA;IACb,IAAI,kBAAkB,EAAE,CAAC;QACvB,gEAAgE;QAChE,MAAM,WAAW,GAAG,CAClB,OAA4B,EAI5B,EAAE;;YACF,MAAM,iBAAiB,GAAG,OAAO,CAAC,WAAW,CAAC,GAAG,CAC/C,CAAC,eAAsB,EAAE,EAAE,CACzB,eAAe,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE;;gBAAC,OAAA,CAAC;oBACnC,IAAI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,MAAM,EAAE,MAAA,OAAO,CAAC,OAAO,CAAC,MAAM,mCAAI,EAAE;SACrC;QACD,SAAS,EAAE,gFAAgF;KAC5F,CAAA;AACH,CAAC,CAAA;AApFY,QAAA,iBAAiB,qBAoF7B"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { ChatOpenAI } from '@langchain/openai';
|
|
1
|
+
import type { ChatOpenAI, ChatOpenAIFields } from '@langchain/openai';
|
|
2
2
|
import type { OPENAI_MODELS } from './constants';
|
|
3
|
-
import type { BaseCallbackHandler } from
|
|
4
|
-
export type OpenAIModelType = typeof OPENAI_MODELS[keyof typeof OPENAI_MODELS];
|
|
3
|
+
import type { BaseCallbackHandler } from '@langchain/core/callbacks/base';
|
|
4
|
+
export type OpenAIModelType = (typeof OPENAI_MODELS)[keyof typeof OPENAI_MODELS];
|
|
5
5
|
interface MinimalPathway {
|
|
6
6
|
id?: string;
|
|
7
7
|
definition_id?: string;
|
|
@@ -32,6 +32,16 @@ export interface CreateOpenAIModelConfig {
|
|
|
32
32
|
payload: RequiredPayloadProperties & Record<string, any>;
|
|
33
33
|
/** Which OpenAI model to use */
|
|
34
34
|
modelType?: OpenAIModelType;
|
|
35
|
+
/**
|
|
36
|
+
* Optional per-action overrides merged into the ChatOpenAI constructor on top
|
|
37
|
+
* of the model defaults from `getDefaultConfig`. Use this to tune behaviour for
|
|
38
|
+
* a single action (e.g. `{ reasoning: { effort: 'low' } }` to reduce latency)
|
|
39
|
+
* without affecting the shared defaults used by other extensions.
|
|
40
|
+
*
|
|
41
|
+
* Note: `model` and `apiKey` are always enforced by the factory and cannot be
|
|
42
|
+
* overridden here.
|
|
43
|
+
*/
|
|
44
|
+
modelConfigOverrides?: Partial<ChatOpenAIFields>;
|
|
35
45
|
}
|
|
36
46
|
/**
|
|
37
47
|
* Standard metadata structure for AI actions tracking
|
package/package.json
CHANGED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.dataPoints = void 0;
|
|
4
|
-
exports.dataPoints = {
|
|
5
|
-
taskId: {
|
|
6
|
-
key: 'taskId',
|
|
7
|
-
valueType: 'string',
|
|
8
|
-
},
|
|
9
|
-
statusCode: {
|
|
10
|
-
key: 'statusCode',
|
|
11
|
-
valueType: 'number',
|
|
12
|
-
},
|
|
13
|
-
};
|
|
14
|
-
//# sourceMappingURL=dataPoints.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dataPoints.js","sourceRoot":"","sources":["../../../../../../extensions/hix/actions/createTask/config/dataPoints.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG;IACxB,MAAM,EAAE;QACN,GAAG,EAAE,QAAQ;QACb,SAAS,EAAE,QAAQ;KACpB;IACD,UAAU,EAAE;QACV,GAAG,EAAE,YAAY;QACjB,SAAS,EAAE,QAAQ;KACpB;CAC4C,CAAA"}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { FieldType } from '@awell-health/extensions-core';
|
|
3
|
-
export declare const fields: {
|
|
4
|
-
patientId: {
|
|
5
|
-
id: string;
|
|
6
|
-
label: string;
|
|
7
|
-
description: string;
|
|
8
|
-
type: FieldType.STRING;
|
|
9
|
-
required: true;
|
|
10
|
-
};
|
|
11
|
-
patientName: {
|
|
12
|
-
id: string;
|
|
13
|
-
label: string;
|
|
14
|
-
description: string;
|
|
15
|
-
type: FieldType.STRING;
|
|
16
|
-
required: true;
|
|
17
|
-
};
|
|
18
|
-
title: {
|
|
19
|
-
id: string;
|
|
20
|
-
label: string;
|
|
21
|
-
description: string;
|
|
22
|
-
type: FieldType.STRING;
|
|
23
|
-
required: true;
|
|
24
|
-
};
|
|
25
|
-
description: {
|
|
26
|
-
id: string;
|
|
27
|
-
label: string;
|
|
28
|
-
description: string;
|
|
29
|
-
type: FieldType.TEXT;
|
|
30
|
-
required: false;
|
|
31
|
-
};
|
|
32
|
-
requester: {
|
|
33
|
-
id: string;
|
|
34
|
-
label: string;
|
|
35
|
-
description: string;
|
|
36
|
-
type: FieldType.STRING;
|
|
37
|
-
required: false;
|
|
38
|
-
};
|
|
39
|
-
launchUrl: {
|
|
40
|
-
id: string;
|
|
41
|
-
label: string;
|
|
42
|
-
description: string;
|
|
43
|
-
type: FieldType.STRING;
|
|
44
|
-
required: false;
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
export declare const FieldsValidationSchema: z.ZodObject<{
|
|
48
|
-
patientId: z.ZodString;
|
|
49
|
-
patientName: z.ZodString;
|
|
50
|
-
title: z.ZodString;
|
|
51
|
-
description: z.ZodOptional<z.ZodString>;
|
|
52
|
-
requester: z.ZodOptional<z.ZodString>;
|
|
53
|
-
launchUrl: z.ZodOptional<z.ZodString>;
|
|
54
|
-
}, "strip", z.ZodTypeAny, {
|
|
55
|
-
patientId: string;
|
|
56
|
-
title: string;
|
|
57
|
-
patientName: string;
|
|
58
|
-
description?: string | undefined;
|
|
59
|
-
requester?: string | undefined;
|
|
60
|
-
launchUrl?: string | undefined;
|
|
61
|
-
}, {
|
|
62
|
-
patientId: string;
|
|
63
|
-
title: string;
|
|
64
|
-
patientName: string;
|
|
65
|
-
description?: string | undefined;
|
|
66
|
-
requester?: string | undefined;
|
|
67
|
-
launchUrl?: string | undefined;
|
|
68
|
-
}>;
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FieldsValidationSchema = exports.fields = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const extensions_core_1 = require("@awell-health/extensions-core");
|
|
6
|
-
exports.fields = {
|
|
7
|
-
patientId: {
|
|
8
|
-
id: 'patientId',
|
|
9
|
-
label: 'Patient ID',
|
|
10
|
-
description: 'The HiX patient number of the patient the task is for.',
|
|
11
|
-
type: extensions_core_1.FieldType.STRING,
|
|
12
|
-
required: true,
|
|
13
|
-
},
|
|
14
|
-
patientName: {
|
|
15
|
-
id: 'patientName',
|
|
16
|
-
label: 'Patient name',
|
|
17
|
-
description: 'The full name of the patient (e.g. "DE BACKER, Marc").',
|
|
18
|
-
type: extensions_core_1.FieldType.STRING,
|
|
19
|
-
required: true,
|
|
20
|
-
},
|
|
21
|
-
title: {
|
|
22
|
-
id: 'title',
|
|
23
|
-
label: 'Task title',
|
|
24
|
-
description: 'The title of the task as it appears on the worklist.',
|
|
25
|
-
type: extensions_core_1.FieldType.STRING,
|
|
26
|
-
required: true,
|
|
27
|
-
},
|
|
28
|
-
description: {
|
|
29
|
-
id: 'description',
|
|
30
|
-
label: 'Task description',
|
|
31
|
-
description: 'Optional description, shown in the detail pane of the worklist.',
|
|
32
|
-
type: extensions_core_1.FieldType.TEXT,
|
|
33
|
-
required: false,
|
|
34
|
-
},
|
|
35
|
-
requester: {
|
|
36
|
-
id: 'requester',
|
|
37
|
-
label: 'Requester',
|
|
38
|
-
description: 'The system or person requesting the task. Defaults to ZTOP.',
|
|
39
|
-
type: extensions_core_1.FieldType.STRING,
|
|
40
|
-
required: false,
|
|
41
|
-
},
|
|
42
|
-
launchUrl: {
|
|
43
|
-
id: 'launchUrl',
|
|
44
|
-
label: 'Launch URL',
|
|
45
|
-
description: 'Optional URL to launch when the task is opened in HiX (e.g. a panel URL with launch context). Supports {patientId} and {taskId} template variables.',
|
|
46
|
-
type: extensions_core_1.FieldType.STRING,
|
|
47
|
-
required: false,
|
|
48
|
-
},
|
|
49
|
-
};
|
|
50
|
-
exports.FieldsValidationSchema = zod_1.z.object({
|
|
51
|
-
patientId: zod_1.z.string().min(1),
|
|
52
|
-
patientName: zod_1.z.string().min(1),
|
|
53
|
-
title: zod_1.z.string().min(1),
|
|
54
|
-
description: zod_1.z.string().optional(),
|
|
55
|
-
requester: zod_1.z.string().optional(),
|
|
56
|
-
launchUrl: zod_1.z.string().optional(),
|
|
57
|
-
});
|
|
58
|
-
//# sourceMappingURL=fields.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../../../extensions/hix/actions/createTask/config/fields.ts"],"names":[],"mappings":";;;AAAA,6BAAwC;AACxC,mEAAqE;AAExD,QAAA,MAAM,GAAG;IACpB,SAAS,EAAE;QACT,EAAE,EAAE,WAAW;QACf,KAAK,EAAE,YAAY;QACnB,WAAW,EAAE,wDAAwD;QACrE,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;IACD,WAAW,EAAE;QACX,EAAE,EAAE,aAAa;QACjB,KAAK,EAAE,cAAc;QACrB,WAAW,EAAE,wDAAwD;QACrE,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;IACD,KAAK,EAAE;QACL,EAAE,EAAE,OAAO;QACX,KAAK,EAAE,YAAY;QACnB,WAAW,EAAE,sDAAsD;QACnE,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;IACD,WAAW,EAAE;QACX,EAAE,EAAE,aAAa;QACjB,KAAK,EAAE,kBAAkB;QACzB,WAAW,EACT,iEAAiE;QACnE,IAAI,EAAE,2BAAS,CAAC,IAAI;QACpB,QAAQ,EAAE,KAAK;KAChB;IACD,SAAS,EAAE;QACT,EAAE,EAAE,WAAW;QACf,KAAK,EAAE,WAAW;QAClB,WAAW,EAAE,6DAA6D;QAC1E,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,KAAK;KAChB;IACD,SAAS,EAAE;QACT,EAAE,EAAE,WAAW;QACf,KAAK,EAAE,YAAY;QACnB,WAAW,EACT,qJAAqJ;QACvJ,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,KAAK;KAChB;CAC8B,CAAA;AAEpB,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5B,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC9B,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACxB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACiB,CAAC,CAAA"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.dataPoints = exports.FieldsValidationSchema = exports.fields = void 0;
|
|
4
|
-
var fields_1 = require("./fields");
|
|
5
|
-
Object.defineProperty(exports, "fields", { enumerable: true, get: function () { return fields_1.fields; } });
|
|
6
|
-
Object.defineProperty(exports, "FieldsValidationSchema", { enumerable: true, get: function () { return fields_1.FieldsValidationSchema; } });
|
|
7
|
-
var dataPoints_1 = require("./dataPoints");
|
|
8
|
-
Object.defineProperty(exports, "dataPoints", { enumerable: true, get: function () { return dataPoints_1.dataPoints; } });
|
|
9
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../extensions/hix/actions/createTask/config/index.ts"],"names":[],"mappings":";;;AAAA,mCAAyD;AAAhD,gGAAA,MAAM,OAAA;AAAE,gHAAA,sBAAsB,OAAA;AACvC,2CAAyC;AAAhC,wGAAA,UAAU,OAAA"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { type Action } from '@awell-health/extensions-core';
|
|
2
|
-
import { settings as settingsDefinition } from '../../settings';
|
|
3
|
-
import { dataPoints, fields } from './config';
|
|
4
|
-
export declare const createTask: Action<typeof fields, typeof settingsDefinition, keyof typeof dataPoints>;
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createTask = void 0;
|
|
4
|
-
const extensions_core_1 = require("@awell-health/extensions-core");
|
|
5
|
-
const zod_1 = require("zod");
|
|
6
|
-
const settings_1 = require("../../settings");
|
|
7
|
-
const config_1 = require("./config");
|
|
8
|
-
exports.createTask = {
|
|
9
|
-
key: 'createTask',
|
|
10
|
-
title: 'Creëer taak in HiX',
|
|
11
|
-
description: 'Creëert een taak op de werklijst van de zorgverlener in HiX. De taak verschijnt op "Mijn werklijst" en kan vanuit HiX gelanceerd worden.',
|
|
12
|
-
category: extensions_core_1.Category.EHR_INTEGRATIONS,
|
|
13
|
-
fields: config_1.fields,
|
|
14
|
-
dataPoints: config_1.dataPoints,
|
|
15
|
-
previewable: true,
|
|
16
|
-
onActivityCreated: async (payload, onComplete, onError) => {
|
|
17
|
-
var _a, _b, _c;
|
|
18
|
-
try {
|
|
19
|
-
const { fields: { patientId, patientName, title, description, requester, launchUrl, }, settings: { apiUrl, tasksIngestToken }, } = (0, extensions_core_1.validate)({
|
|
20
|
-
schema: zod_1.z.object({
|
|
21
|
-
fields: config_1.FieldsValidationSchema,
|
|
22
|
-
settings: settings_1.SettingsValidationSchema,
|
|
23
|
-
}),
|
|
24
|
-
payload,
|
|
25
|
-
});
|
|
26
|
-
const response = await fetch(apiUrl, {
|
|
27
|
-
method: 'POST',
|
|
28
|
-
headers: {
|
|
29
|
-
'Content-Type': 'application/json',
|
|
30
|
-
Authorization: `Bearer ${tasksIngestToken}`,
|
|
31
|
-
},
|
|
32
|
-
body: JSON.stringify({
|
|
33
|
-
patient_id: patientId,
|
|
34
|
-
patient_name: patientName,
|
|
35
|
-
title,
|
|
36
|
-
description,
|
|
37
|
-
requester: requester !== null && requester !== void 0 ? requester : 'ZTOP',
|
|
38
|
-
launch_url: launchUrl,
|
|
39
|
-
}),
|
|
40
|
-
});
|
|
41
|
-
if (!response.ok) {
|
|
42
|
-
const responseText = await response.text();
|
|
43
|
-
throw new Error(`HiX task endpoint returned ${response.status} ${response.statusText}: ${responseText}`);
|
|
44
|
-
}
|
|
45
|
-
const responseBody = (await response.json().catch(() => ({})));
|
|
46
|
-
await onComplete({
|
|
47
|
-
data_points: {
|
|
48
|
-
taskId: (_a = responseBody.id) !== null && _a !== void 0 ? _a : '',
|
|
49
|
-
statusCode: String(response.status),
|
|
50
|
-
},
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
catch (error) {
|
|
54
|
-
const parsedError = error;
|
|
55
|
-
await onError({
|
|
56
|
-
events: [
|
|
57
|
-
{
|
|
58
|
-
date: new Date().toISOString(),
|
|
59
|
-
text: {
|
|
60
|
-
en: (_b = parsedError.message) !== null && _b !== void 0 ? _b : 'Unexpected error',
|
|
61
|
-
},
|
|
62
|
-
error: {
|
|
63
|
-
category: 'SERVER_ERROR',
|
|
64
|
-
message: (_c = parsedError.message) !== null && _c !== void 0 ? _c : 'Unexpected error',
|
|
65
|
-
},
|
|
66
|
-
},
|
|
67
|
-
],
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
};
|
|
72
|
-
//# sourceMappingURL=createTask.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createTask.js","sourceRoot":"","sources":["../../../../../extensions/hix/actions/createTask/createTask.ts"],"names":[],"mappings":";;;AACA,mEAAkE;AAClE,6BAAuB;AACvB,6CAAyF;AACzF,qCAAqE;AAExD,QAAA,UAAU,GAInB;IACF,GAAG,EAAE,YAAY;IACjB,KAAK,EAAE,oBAAoB;IAC3B,WAAW,EACT,0IAA0I;IAC5I,QAAQ,EAAE,0BAAQ,CAAC,gBAAgB;IACnC,MAAM,EAAN,eAAM;IACN,UAAU,EAAV,mBAAU;IACV,WAAW,EAAE,IAAI;IACjB,iBAAiB,EAAE,KAAK,EAAE,OAAO,E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EAAE,mCAAI,EAAE;oBAC7B,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC;iBACpC;aACF,CAAC,CAAA;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,WAAW,GAAG,KAAc,CAAA;YAClC,MAAM,OAAO,CAAC;gBACZ,MAAM,EAAE;oBACN;wBACE,IAAI,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;wBAC9B,IAAI,EAAE;4BACJ,EAAE,EAAE,MAAA,WAAW,CAAC,OAAO,mCAAI,kBAAkB;yBAC9C;wBACD,KAAK,EAAE;4BACL,QAAQ,EAAE,cAAc;4BACxB,OAAO,EAAE,MAAA,WAAW,CAAC,OAAO,mCAAI,kBAAkB;yBACnD;qBACF;iBACF;aACF,CAAC,CAAA;QACJ,CAAC;IACH,CAAC;CACF,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { createTask } from './createTask';
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createTask = void 0;
|
|
4
|
-
var createTask_1 = require("./createTask");
|
|
5
|
-
Object.defineProperty(exports, "createTask", { enumerable: true, get: function () { return createTask_1.createTask; } });
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../extensions/hix/actions/createTask/index.ts"],"names":[],"mappings":";;;AAAA,2CAAyC;AAAhC,wGAAA,UAAU,OAAA"}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
declare const actions: {
|
|
2
|
-
createTask: import("@awell-health/extensions-core").Action<{
|
|
3
|
-
patientId: {
|
|
4
|
-
id: string;
|
|
5
|
-
label: string;
|
|
6
|
-
description: string;
|
|
7
|
-
type: import("@awell-health/extensions-core").FieldType.STRING;
|
|
8
|
-
required: true;
|
|
9
|
-
};
|
|
10
|
-
patientName: {
|
|
11
|
-
id: string;
|
|
12
|
-
label: string;
|
|
13
|
-
description: string;
|
|
14
|
-
type: import("@awell-health/extensions-core").FieldType.STRING;
|
|
15
|
-
required: true;
|
|
16
|
-
};
|
|
17
|
-
title: {
|
|
18
|
-
id: string;
|
|
19
|
-
label: string;
|
|
20
|
-
description: string;
|
|
21
|
-
type: import("@awell-health/extensions-core").FieldType.STRING;
|
|
22
|
-
required: true;
|
|
23
|
-
};
|
|
24
|
-
description: {
|
|
25
|
-
id: string;
|
|
26
|
-
label: string;
|
|
27
|
-
description: string;
|
|
28
|
-
type: import("@awell-health/extensions-core").FieldType.TEXT;
|
|
29
|
-
required: false;
|
|
30
|
-
};
|
|
31
|
-
requester: {
|
|
32
|
-
id: string;
|
|
33
|
-
label: string;
|
|
34
|
-
description: string;
|
|
35
|
-
type: import("@awell-health/extensions-core").FieldType.STRING;
|
|
36
|
-
required: false;
|
|
37
|
-
};
|
|
38
|
-
launchUrl: {
|
|
39
|
-
id: string;
|
|
40
|
-
label: string;
|
|
41
|
-
description: string;
|
|
42
|
-
type: import("@awell-health/extensions-core").FieldType.STRING;
|
|
43
|
-
required: false;
|
|
44
|
-
};
|
|
45
|
-
}, {
|
|
46
|
-
apiUrl: {
|
|
47
|
-
label: string;
|
|
48
|
-
key: string;
|
|
49
|
-
obfuscated: false;
|
|
50
|
-
required: true;
|
|
51
|
-
description: string;
|
|
52
|
-
};
|
|
53
|
-
tasksIngestToken: {
|
|
54
|
-
label: string;
|
|
55
|
-
key: string;
|
|
56
|
-
obfuscated: true;
|
|
57
|
-
required: true;
|
|
58
|
-
description: string;
|
|
59
|
-
};
|
|
60
|
-
}, "statusCode" | "taskId">;
|
|
61
|
-
};
|
|
62
|
-
export default actions;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../extensions/hix/actions/index.ts"],"names":[],"mappings":";;AAAA,6CAAyC;AAEzC,MAAM,OAAO,GAAG;IACd,UAAU,EAAV,uBAAU;CACX,CAAA;AAED,kBAAe,OAAO,CAAA"}
|
|
@@ -1,22 +0,0 @@
|
|
|
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.hix = void 0;
|
|
7
|
-
const extensions_core_1 = require("@awell-health/extensions-core");
|
|
8
|
-
const actions_1 = __importDefault(require("./actions"));
|
|
9
|
-
const settings_1 = require("./settings");
|
|
10
|
-
exports.hix = {
|
|
11
|
-
key: 'hix',
|
|
12
|
-
title: 'ChipSoft HiX',
|
|
13
|
-
icon_url: 'https://res.cloudinary.com/da7x4rzl4/image/upload/v1678870116/Awell%20Extensions/Awell_Logo.png',
|
|
14
|
-
description: 'Integratie met ChipSoft HiX: creëer taken op de werklijst van de zorgverlener.',
|
|
15
|
-
category: extensions_core_1.Category.EHR_INTEGRATIONS,
|
|
16
|
-
author: {
|
|
17
|
-
authorType: extensions_core_1.AuthorType.AWELL,
|
|
18
|
-
},
|
|
19
|
-
actions: actions_1.default,
|
|
20
|
-
settings: settings_1.settings,
|
|
21
|
-
};
|
|
22
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../extensions/hix/index.ts"],"names":[],"mappings":";;;;;;AACA,mEAAoE;AACpE,wDAA+B;AAC/B,yCAAqC;AAExB,QAAA,GAAG,GAAc;IAC5B,GAAG,EAAE,KAAK;IACV,KAAK,EAAE,cAAc;IACrB,QAAQ,EACN,iGAAiG;IACnG,WAAW,EACT,gFAAgF;IAClF,QAAQ,EAAE,0BAAQ,CAAC,gBAAgB;IACnC,MAAM,EAAE;QACN,UAAU,EAAE,4BAAU,CAAC,KAAK;KAC7B;IACD,OAAO,EAAP,iBAAO;IACP,QAAQ,EAAR,mBAAQ;CACT,CAAA"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const settings: {
|
|
3
|
-
apiUrl: {
|
|
4
|
-
label: string;
|
|
5
|
-
key: string;
|
|
6
|
-
obfuscated: false;
|
|
7
|
-
required: true;
|
|
8
|
-
description: string;
|
|
9
|
-
};
|
|
10
|
-
tasksIngestToken: {
|
|
11
|
-
label: string;
|
|
12
|
-
key: string;
|
|
13
|
-
obfuscated: true;
|
|
14
|
-
required: true;
|
|
15
|
-
description: string;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
export declare const SettingsValidationSchema: z.ZodObject<{
|
|
19
|
-
apiUrl: z.ZodString;
|
|
20
|
-
tasksIngestToken: z.ZodString;
|
|
21
|
-
}, "strip", z.ZodTypeAny, {
|
|
22
|
-
apiUrl: string;
|
|
23
|
-
tasksIngestToken: string;
|
|
24
|
-
}, {
|
|
25
|
-
apiUrl: string;
|
|
26
|
-
tasksIngestToken: string;
|
|
27
|
-
}>;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SettingsValidationSchema = exports.settings = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
exports.settings = {
|
|
6
|
-
apiUrl: {
|
|
7
|
-
label: 'API URL',
|
|
8
|
-
key: 'apiUrl',
|
|
9
|
-
obfuscated: false,
|
|
10
|
-
required: true,
|
|
11
|
-
description: 'The full URL of the HiX task endpoint (e.g. the "incoming-task" endpoint of the demo environment).',
|
|
12
|
-
},
|
|
13
|
-
tasksIngestToken: {
|
|
14
|
-
label: 'Tasks ingest token',
|
|
15
|
-
key: 'tasksIngestToken',
|
|
16
|
-
obfuscated: true,
|
|
17
|
-
required: true,
|
|
18
|
-
description: 'Bearer token sent as the "Authorization" header on every request. Must match the TASKS_INGEST_TOKEN secret configured on the endpoint.',
|
|
19
|
-
},
|
|
20
|
-
};
|
|
21
|
-
exports.SettingsValidationSchema = zod_1.z.object({
|
|
22
|
-
apiUrl: zod_1.z.string().url({ message: 'API URL must be a valid URL' }),
|
|
23
|
-
tasksIngestToken: zod_1.z.string().min(1),
|
|
24
|
-
});
|
|
25
|
-
//# sourceMappingURL=settings.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"settings.js","sourceRoot":"","sources":["../../../extensions/hix/settings.ts"],"names":[],"mappings":";;;AACA,6BAAwC;AAE3B,QAAA,QAAQ,GAAG;IACtB,MAAM,EAAE;QACN,KAAK,EAAE,SAAS;QAChB,GAAG,EAAE,QAAQ;QACb,UAAU,EAAE,KAAK;QACjB,QAAQ,EAAE,IAAI;QACd,WAAW,EACT,oGAAoG;KACvG;IACD,gBAAgB,EAAE;QAChB,KAAK,EAAE,oBAAoB;QAC3B,GAAG,EAAE,kBAAkB;QACvB,UAAU,EAAE,IAAI;QAChB,QAAQ,EAAE,IAAI;QACd,WAAW,EACT,wIAAwI;KAC3I;CACgC,CAAA;AAEtB,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,OAAO,EAAE,6BAA6B,EAAE,CAAC;IAClE,gBAAgB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CACgB,CAAC,CAAA"}
|