@awell-health/awell-extensions 2.0.33 → 2.0.35
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/extensions/healthie/actions/dataExchange/index.d.ts +2 -0
- package/dist/extensions/healthie/actions/dataExchange/index.js +19 -0
- package/dist/extensions/healthie/actions/dataExchange/index.js.map +1 -0
- package/dist/extensions/healthie/actions/dataExchange/pushFormResponseToHealthie/config/datapoints.js.map +1 -0
- package/dist/extensions/healthie/actions/dataExchange/pushFormResponseToHealthie/config/fields.js.map +1 -0
- package/dist/extensions/healthie/actions/dataExchange/pushFormResponseToHealthie/config/index.js.map +1 -0
- package/dist/extensions/healthie/actions/dataExchange/pushFormResponseToHealthie/index.js.map +1 -0
- package/dist/extensions/healthie/actions/dataExchange/pushFormResponseToHealthie/logs/getSubActivityLogs/getSubActivityLogs.js.map +1 -0
- package/dist/extensions/healthie/actions/dataExchange/pushFormResponseToHealthie/logs/getSubActivityLogs/getSubActivityLogs.test.js.map +1 -0
- package/dist/extensions/healthie/actions/dataExchange/pushFormResponseToHealthie/logs/getSubActivityLogs/index.js.map +1 -0
- package/dist/extensions/healthie/actions/dataExchange/pushFormResponseToHealthie/logs/index.js.map +1 -0
- package/dist/extensions/healthie/actions/{pushFormResponseToHealthie → dataExchange/pushFormResponseToHealthie}/pushFormResponseToHealthie.d.ts +1 -1
- package/dist/extensions/healthie/actions/{pushFormResponseToHealthie → dataExchange/pushFormResponseToHealthie}/pushFormResponseToHealthie.js +5 -5
- package/dist/extensions/healthie/actions/dataExchange/pushFormResponseToHealthie/pushFormResponseToHealthie.js.map +1 -0
- package/dist/extensions/healthie/actions/dataExchange/pushFormResponseToHealthie/pushFormResponseToHealthie.test.js.map +1 -0
- package/dist/extensions/healthie/actions/dataExchange/pushFormResponsesToHealthie/config/datapoints.d.ts +6 -0
- package/dist/extensions/healthie/actions/dataExchange/pushFormResponsesToHealthie/config/datapoints.js +10 -0
- package/dist/extensions/healthie/actions/dataExchange/pushFormResponsesToHealthie/config/datapoints.js.map +1 -0
- package/dist/extensions/healthie/actions/dataExchange/pushFormResponsesToHealthie/config/fields.d.ts +28 -0
- package/dist/extensions/healthie/actions/dataExchange/pushFormResponsesToHealthie/config/fields.js +29 -0
- package/dist/extensions/healthie/actions/dataExchange/pushFormResponsesToHealthie/config/fields.js.map +1 -0
- package/dist/extensions/healthie/actions/dataExchange/pushFormResponsesToHealthie/config/index.d.ts +2 -0
- package/dist/extensions/healthie/actions/dataExchange/pushFormResponsesToHealthie/config/index.js +9 -0
- package/dist/extensions/healthie/actions/dataExchange/pushFormResponsesToHealthie/config/index.js.map +1 -0
- package/dist/extensions/healthie/actions/dataExchange/pushFormResponsesToHealthie/index.d.ts +1 -0
- package/dist/extensions/healthie/actions/dataExchange/pushFormResponsesToHealthie/index.js +6 -0
- package/dist/extensions/healthie/actions/dataExchange/pushFormResponsesToHealthie/index.js.map +1 -0
- package/dist/extensions/healthie/actions/dataExchange/pushFormResponsesToHealthie/logs/getSubActivityLogs/getSubActivityLogs.d.ts +13 -0
- package/dist/extensions/healthie/actions/dataExchange/pushFormResponsesToHealthie/logs/getSubActivityLogs/getSubActivityLogs.js +94 -0
- package/dist/extensions/healthie/actions/dataExchange/pushFormResponsesToHealthie/logs/getSubActivityLogs/getSubActivityLogs.js.map +1 -0
- package/dist/extensions/healthie/actions/dataExchange/pushFormResponsesToHealthie/logs/getSubActivityLogs/getSubActivityLogs.test.d.ts +1 -0
- package/dist/extensions/healthie/actions/dataExchange/pushFormResponsesToHealthie/logs/getSubActivityLogs/getSubActivityLogs.test.js +70 -0
- package/dist/extensions/healthie/actions/dataExchange/pushFormResponsesToHealthie/logs/getSubActivityLogs/getSubActivityLogs.test.js.map +1 -0
- package/dist/extensions/healthie/actions/dataExchange/pushFormResponsesToHealthie/logs/getSubActivityLogs/index.d.ts +1 -0
- package/dist/extensions/healthie/actions/dataExchange/pushFormResponsesToHealthie/logs/getSubActivityLogs/index.js +18 -0
- package/dist/extensions/healthie/actions/dataExchange/pushFormResponsesToHealthie/logs/getSubActivityLogs/index.js.map +1 -0
- package/dist/extensions/healthie/actions/dataExchange/pushFormResponsesToHealthie/logs/index.d.ts +1 -0
- package/dist/extensions/healthie/actions/dataExchange/pushFormResponsesToHealthie/logs/index.js +18 -0
- package/dist/extensions/healthie/actions/dataExchange/pushFormResponsesToHealthie/logs/index.js.map +1 -0
- package/dist/extensions/healthie/actions/dataExchange/pushFormResponsesToHealthie/pushFormResponsesToHealthie.d.ts +4 -0
- package/dist/extensions/healthie/actions/dataExchange/pushFormResponsesToHealthie/pushFormResponsesToHealthie.js +98 -0
- package/dist/extensions/healthie/actions/dataExchange/pushFormResponsesToHealthie/pushFormResponsesToHealthie.js.map +1 -0
- package/dist/extensions/healthie/actions/dataExchange/pushFormResponsesToHealthie/pushFormResponsesToHealthie.test.d.ts +1 -0
- package/dist/extensions/healthie/actions/dataExchange/pushFormResponsesToHealthie/pushFormResponsesToHealthie.test.js +100 -0
- package/dist/extensions/healthie/actions/dataExchange/pushFormResponsesToHealthie/pushFormResponsesToHealthie.test.js.map +1 -0
- package/dist/extensions/healthie/actions/dataExchange/shared/errors.js.map +1 -0
- package/dist/extensions/healthie/actions/dataExchange/shared/index.d.ts +1 -0
- package/dist/extensions/healthie/actions/dataExchange/shared/index.js +18 -0
- package/dist/extensions/healthie/actions/dataExchange/shared/index.js.map +1 -0
- package/dist/extensions/healthie/actions/index.d.ts +31 -0
- package/dist/extensions/healthie/actions/index.js +3 -2
- package/dist/extensions/healthie/actions/index.js.map +1 -1
- package/dist/extensions/healthie/lib/sdk/genql/generated/schema.d.ts +498 -30
- package/dist/extensions/healthie/lib/sdk/genql/generated/schema.js +86 -13
- package/dist/extensions/healthie/lib/sdk/genql/generated/schema.js.map +1 -1
- package/dist/extensions/healthie/lib/sdk/genql/generated/types.d.ts +140 -8
- package/dist/extensions/healthie/lib/sdk/genql/generated/types.js +12282 -11948
- package/dist/extensions/healthie/lib/sdk/genql/generated/types.js.map +1 -1
- package/dist/extensions/sfdc/actions/createLead/config/fields.d.ts +10 -0
- package/dist/extensions/sfdc/actions/createLead/config/fields.js +8 -0
- package/dist/extensions/sfdc/actions/createLead/config/fields.js.map +1 -1
- package/dist/extensions/sfdc/actions/createLead/createLead.js +9 -1
- package/dist/extensions/sfdc/actions/createLead/createLead.js.map +1 -1
- package/dist/extensions/sfdc/actions/createLead/createLead.test.js.map +1 -1
- package/dist/extensions/sfdc/actions/index.d.ts +7 -0
- package/dist/extensions/twilio/v2/actions/sendSmsDuringBusinessHours/sendSmsDuringBusinessHours.test.js +3 -0
- package/dist/extensions/twilio/v2/actions/sendSmsDuringBusinessHours/sendSmsDuringBusinessHours.test.js.map +1 -1
- package/dist/src/lib/awell/getAllFormsInCurrentStep/__testdata__/formDefinitionResponse.d.ts +36 -0
- package/dist/src/lib/awell/getAllFormsInCurrentStep/__testdata__/formDefinitionResponse.js +44 -0
- package/dist/src/lib/awell/getAllFormsInCurrentStep/__testdata__/formDefinitionResponse.js.map +1 -0
- package/dist/src/lib/awell/getAllFormsInCurrentStep/__testdata__/formResponseResponse.d.ts +22 -0
- package/dist/src/lib/awell/getAllFormsInCurrentStep/__testdata__/formResponseResponse.js +30 -0
- package/dist/src/lib/awell/getAllFormsInCurrentStep/__testdata__/formResponseResponse.js.map +1 -0
- package/dist/src/lib/awell/getAllFormsInCurrentStep/__testdata__/index.d.ts +3 -0
- package/dist/src/lib/awell/getAllFormsInCurrentStep/__testdata__/index.js +20 -0
- package/dist/src/lib/awell/getAllFormsInCurrentStep/__testdata__/index.js.map +1 -0
- package/dist/src/lib/awell/getAllFormsInCurrentStep/__testdata__/pathwayActivitiesResponse.d.ts +26 -0
- package/dist/src/lib/awell/getAllFormsInCurrentStep/__testdata__/pathwayActivitiesResponse.js +93 -0
- package/dist/src/lib/awell/getAllFormsInCurrentStep/__testdata__/pathwayActivitiesResponse.js.map +1 -0
- package/dist/src/lib/awell/getAllFormsInCurrentStep/getAllFormsInCurrentStep.d.ts +13 -0
- package/dist/src/lib/awell/getAllFormsInCurrentStep/getAllFormsInCurrentStep.js +88 -0
- package/dist/src/lib/awell/getAllFormsInCurrentStep/getAllFormsInCurrentStep.js.map +1 -0
- package/dist/src/lib/awell/getAllFormsInCurrentStep/getAllFormsInCurrentStep.test.d.ts +1 -0
- package/dist/src/lib/awell/getAllFormsInCurrentStep/getAllFormsInCurrentStep.test.js +113 -0
- package/dist/src/lib/awell/getAllFormsInCurrentStep/getAllFormsInCurrentStep.test.js.map +1 -0
- package/dist/src/lib/awell/getAllFormsInCurrentStep/index.d.ts +1 -0
- package/dist/src/lib/awell/getAllFormsInCurrentStep/index.js +18 -0
- package/dist/src/lib/awell/getAllFormsInCurrentStep/index.js.map +1 -0
- package/dist/src/lib/awell/index.d.ts +1 -0
- package/dist/src/lib/awell/index.js +1 -0
- package/dist/src/lib/awell/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/extensions/healthie/actions/pushFormResponseToHealthie/config/datapoints.js.map +0 -1
- package/dist/extensions/healthie/actions/pushFormResponseToHealthie/config/fields.js.map +0 -1
- package/dist/extensions/healthie/actions/pushFormResponseToHealthie/config/index.js.map +0 -1
- package/dist/extensions/healthie/actions/pushFormResponseToHealthie/errors.js.map +0 -1
- package/dist/extensions/healthie/actions/pushFormResponseToHealthie/index.js.map +0 -1
- package/dist/extensions/healthie/actions/pushFormResponseToHealthie/logs/getSubActivityLogs/getSubActivityLogs.js.map +0 -1
- package/dist/extensions/healthie/actions/pushFormResponseToHealthie/logs/getSubActivityLogs/getSubActivityLogs.test.js.map +0 -1
- package/dist/extensions/healthie/actions/pushFormResponseToHealthie/logs/getSubActivityLogs/index.js.map +0 -1
- package/dist/extensions/healthie/actions/pushFormResponseToHealthie/logs/index.js.map +0 -1
- package/dist/extensions/healthie/actions/pushFormResponseToHealthie/pushFormResponseToHealthie.js.map +0 -1
- package/dist/extensions/healthie/actions/pushFormResponseToHealthie/pushFormResponseToHealthie.test.js.map +0 -1
- /package/dist/extensions/healthie/actions/{pushFormResponseToHealthie → dataExchange/pushFormResponseToHealthie}/config/datapoints.d.ts +0 -0
- /package/dist/extensions/healthie/actions/{pushFormResponseToHealthie → dataExchange/pushFormResponseToHealthie}/config/datapoints.js +0 -0
- /package/dist/extensions/healthie/actions/{pushFormResponseToHealthie → dataExchange/pushFormResponseToHealthie}/config/fields.d.ts +0 -0
- /package/dist/extensions/healthie/actions/{pushFormResponseToHealthie → dataExchange/pushFormResponseToHealthie}/config/fields.js +0 -0
- /package/dist/extensions/healthie/actions/{pushFormResponseToHealthie → dataExchange/pushFormResponseToHealthie}/config/index.d.ts +0 -0
- /package/dist/extensions/healthie/actions/{pushFormResponseToHealthie → dataExchange/pushFormResponseToHealthie}/config/index.js +0 -0
- /package/dist/extensions/healthie/actions/{pushFormResponseToHealthie → dataExchange/pushFormResponseToHealthie}/index.d.ts +0 -0
- /package/dist/extensions/healthie/actions/{pushFormResponseToHealthie → dataExchange/pushFormResponseToHealthie}/index.js +0 -0
- /package/dist/extensions/healthie/actions/{pushFormResponseToHealthie → dataExchange/pushFormResponseToHealthie}/logs/getSubActivityLogs/getSubActivityLogs.d.ts +0 -0
- /package/dist/extensions/healthie/actions/{pushFormResponseToHealthie → dataExchange/pushFormResponseToHealthie}/logs/getSubActivityLogs/getSubActivityLogs.js +0 -0
- /package/dist/extensions/healthie/actions/{pushFormResponseToHealthie → dataExchange/pushFormResponseToHealthie}/logs/getSubActivityLogs/getSubActivityLogs.test.d.ts +0 -0
- /package/dist/extensions/healthie/actions/{pushFormResponseToHealthie → dataExchange/pushFormResponseToHealthie}/logs/getSubActivityLogs/getSubActivityLogs.test.js +0 -0
- /package/dist/extensions/healthie/actions/{pushFormResponseToHealthie → dataExchange/pushFormResponseToHealthie}/logs/getSubActivityLogs/index.d.ts +0 -0
- /package/dist/extensions/healthie/actions/{pushFormResponseToHealthie → dataExchange/pushFormResponseToHealthie}/logs/getSubActivityLogs/index.js +0 -0
- /package/dist/extensions/healthie/actions/{pushFormResponseToHealthie → dataExchange/pushFormResponseToHealthie}/logs/index.d.ts +0 -0
- /package/dist/extensions/healthie/actions/{pushFormResponseToHealthie → dataExchange/pushFormResponseToHealthie}/logs/index.js +0 -0
- /package/dist/extensions/healthie/actions/{pushFormResponseToHealthie → dataExchange/pushFormResponseToHealthie}/pushFormResponseToHealthie.test.d.ts +0 -0
- /package/dist/extensions/healthie/actions/{pushFormResponseToHealthie → dataExchange/pushFormResponseToHealthie}/pushFormResponseToHealthie.test.js +0 -0
- /package/dist/extensions/healthie/actions/{pushFormResponseToHealthie → dataExchange/shared}/errors.d.ts +0 -0
- /package/dist/extensions/healthie/actions/{pushFormResponseToHealthie → dataExchange/shared}/errors.js +0 -0
@@ -0,0 +1,100 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
const awell_sdk_1 = require("@awell-health/awell-sdk");
|
4
|
+
const extensions_core_1 = require("@awell-health/extensions-core");
|
5
|
+
const _1 = require(".");
|
6
|
+
const genql_1 = require("@extensions/healthie/lib/sdk/genql");
|
7
|
+
const __mocks__1 = require("./__mocks__");
|
8
|
+
jest.mock('@extensions/healthie/lib/sdk/genql', () => ({
|
9
|
+
HealthieSdk: jest.fn().mockImplementation(() => ({
|
10
|
+
client: {
|
11
|
+
mutation: jest.fn().mockResolvedValue({
|
12
|
+
createFormAnswerGroup: { form_answer_group: { id: '99999' } },
|
13
|
+
}),
|
14
|
+
},
|
15
|
+
})),
|
16
|
+
}));
|
17
|
+
const mockedHealthieSdk = jest.mocked(genql_1.HealthieSdk);
|
18
|
+
describe('pushFormResponseToHealthie', () => {
|
19
|
+
const { extensionAction: action, onComplete, onError, helpers, clearMocks, } = extensions_core_1.TestHelpers.fromAction(_1.pushFormResponsesToHealthie);
|
20
|
+
const awellSdkMock = {
|
21
|
+
orchestration: {
|
22
|
+
mutation: jest.fn().mockResolvedValue({}),
|
23
|
+
query: jest
|
24
|
+
.fn()
|
25
|
+
.mockResolvedValueOnce({
|
26
|
+
pathwayActivities: __mocks__1.mockPathwayActivitiesResponse,
|
27
|
+
})
|
28
|
+
.mockResolvedValueOnce({
|
29
|
+
form: __mocks__1.mockFormDefinitionOneResponse,
|
30
|
+
})
|
31
|
+
.mockResolvedValueOnce({
|
32
|
+
form: __mocks__1.mockFormDefinitionTwoResponse,
|
33
|
+
})
|
34
|
+
.mockResolvedValueOnce({
|
35
|
+
formResponse: __mocks__1.mockFormResponseOneResponse,
|
36
|
+
})
|
37
|
+
.mockResolvedValueOnce({
|
38
|
+
formResponse: __mocks__1.mockFormResponseTwoResponse,
|
39
|
+
}),
|
40
|
+
},
|
41
|
+
/**
|
42
|
+
* Utilities don't need to be mocked so we'll just add them back in here
|
43
|
+
*/
|
44
|
+
utils: new awell_sdk_1.AwellSdk({
|
45
|
+
environment: 'sandbox',
|
46
|
+
apiKey: 'sth',
|
47
|
+
}).utils,
|
48
|
+
};
|
49
|
+
helpers.awellSdk = jest.fn().mockResolvedValue(awellSdkMock);
|
50
|
+
beforeEach(() => {
|
51
|
+
clearMocks();
|
52
|
+
});
|
53
|
+
test('Should call onComplete', async () => {
|
54
|
+
const formResponseToHealthieSpy = jest.spyOn(awellSdkMock.utils.healthie, 'awellFormResponseToHealthieFormAnswers');
|
55
|
+
await action.onEvent({
|
56
|
+
payload: {
|
57
|
+
pathway: {
|
58
|
+
id: '5eN4qWbxZGSA',
|
59
|
+
definition_id: 'whatever',
|
60
|
+
},
|
61
|
+
activity: { id: 'X74HeDQ4N0gtdaSEuzF8s' },
|
62
|
+
patient: { id: 'whatever' },
|
63
|
+
fields: {
|
64
|
+
healthiePatientId: '357883',
|
65
|
+
healthieFormId: '1686361',
|
66
|
+
},
|
67
|
+
settings: {
|
68
|
+
apiUrl: 'https://staging-api.gethealthie.com/graphql',
|
69
|
+
apiKey: 'apiKey',
|
70
|
+
},
|
71
|
+
},
|
72
|
+
onComplete,
|
73
|
+
onError,
|
74
|
+
helpers,
|
75
|
+
});
|
76
|
+
expect(mockedHealthieSdk).toHaveBeenCalled();
|
77
|
+
expect(helpers.awellSdk).toHaveBeenCalledTimes(1);
|
78
|
+
/**
|
79
|
+
* one call to GetPathwayActivities
|
80
|
+
* two calls to GetFormResponse because the step of interest has 2 form definitions
|
81
|
+
* two calls to GetFormResponse each form has a response
|
82
|
+
*/
|
83
|
+
expect(awellSdkMock.orchestration.query).toHaveBeenCalledTimes(5);
|
84
|
+
expect(formResponseToHealthieSpy).toHaveNthReturnedWith(1, {
|
85
|
+
formAnswers: [{ answer: 'Nick', custom_module_id: '14460375' }],
|
86
|
+
omittedFormAnswers: [],
|
87
|
+
});
|
88
|
+
expect(formResponseToHealthieSpy).toHaveNthReturnedWith(2, {
|
89
|
+
formAnswers: [{ answer: 'Hellemans', custom_module_id: '14460376' }],
|
90
|
+
omittedFormAnswers: [],
|
91
|
+
});
|
92
|
+
expect(onComplete).toHaveBeenCalledWith({
|
93
|
+
data_points: {
|
94
|
+
formAnswerGroupId: '99999',
|
95
|
+
},
|
96
|
+
events: [],
|
97
|
+
});
|
98
|
+
});
|
99
|
+
});
|
100
|
+
//# sourceMappingURL=pushFormResponsesToHealthie.test.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"pushFormResponsesToHealthie.test.js","sourceRoot":"","sources":["../../../../../../extensions/healthie/actions/dataExchange/pushFormResponsesToHealthie/pushFormResponsesToHealthie.test.ts"],"names":[],"mappings":";;AAAA,uDAAkD;AAClD,mEAA2D;AAC3D,wBAAkE;AAClE,8DAAgE;AAChE,0CAMoB;AAEpB,IAAI,CAAC,IAAI,CAAC,oCAAoC,EAAE,GAAG,EAAE,CAAC,CAAC;IACrD,WAAW,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,kBAAkB,CAAC,GAAG,EAAE,CAAC,CAAC;QAC/C,MAAM,EAAE;YACN,QAAQ,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,iBAAiB,CAAC;gBACpC,qBAAqB,EAAE,EAAE,iBAAiB,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE;aAC9D,CA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AAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../../../../extensions/healthie/actions/dataExchange/shared/errors.ts"],"names":[],"mappings":";;;AAEA,MAAa,8BAA+B,SAAQ,KAAK;IAGvD,YAAY,MAA+B;QACzC,KAAK,CAAC,0CAA0C,CAAC,CAAA;QACjD,IAAI,CAAC,IAAI,GAAG,gCAAgC,CAAA;QAC5C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;CACF;AARD,wEAQC;AAEM,MAAM,wCAAwC,GAAG,CACtD,KAA8B,EACf,EAAE;IACjB,MAAM,QAAQ,GAAG,aAAa,CAAA;IAC9B,MAAM,OAAO,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC,CAAA;IAE9C,OAAO;QACL,IAAI,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;QAC9B,IAAI,EAAE;YACJ,EAAE,EAAE,OAAO;SACZ;QACD,KAAK,EAAE;YACL,QAAQ;YACR,OAAO;SACR;KACF,CAAA;AACH,CAAC,CAAA;AAhBY,QAAA,wCAAwC,4CAgBpD"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './errors';
|
@@ -0,0 +1,18 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./errors"), exports);
|
18
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../extensions/healthie/actions/dataExchange/shared/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAwB"}
|
@@ -1102,4 +1102,35 @@ export declare const actions: {
|
|
1102
1102
|
description: string;
|
1103
1103
|
};
|
1104
1104
|
}, "formAnswerGroupId">;
|
1105
|
+
pushFormResponsesToHealthie: import("@awell-health/extensions-core").Action<{
|
1106
|
+
healthiePatientId: {
|
1107
|
+
id: string;
|
1108
|
+
label: string;
|
1109
|
+
description: string;
|
1110
|
+
type: import("@awell-health/extensions-core").FieldType.STRING;
|
1111
|
+
required: true;
|
1112
|
+
};
|
1113
|
+
healthieFormId: {
|
1114
|
+
id: string;
|
1115
|
+
label: string;
|
1116
|
+
description: string;
|
1117
|
+
type: import("@awell-health/extensions-core").FieldType.STRING;
|
1118
|
+
required: true;
|
1119
|
+
};
|
1120
|
+
}, {
|
1121
|
+
apiUrl: {
|
1122
|
+
key: string;
|
1123
|
+
label: string;
|
1124
|
+
obfuscated: false;
|
1125
|
+
required: true;
|
1126
|
+
description: string;
|
1127
|
+
};
|
1128
|
+
apiKey: {
|
1129
|
+
key: string;
|
1130
|
+
label: string;
|
1131
|
+
obfuscated: true;
|
1132
|
+
required: true;
|
1133
|
+
description: string;
|
1134
|
+
};
|
1135
|
+
}, "formAnswerGroupId">;
|
1105
1136
|
};
|
@@ -29,7 +29,7 @@ const getFormAnswers_1 = require("./getFormAnswers");
|
|
29
29
|
const createGoal_1 = require("./createGoal");
|
30
30
|
const deleteGoal_1 = require("./deleteGoal");
|
31
31
|
const getSetPasswordLink_1 = require("./getSetPasswordLink");
|
32
|
-
const
|
32
|
+
const dataExchange_1 = require("./dataExchange");
|
33
33
|
exports.actions = {
|
34
34
|
deleteGoal: deleteGoal_1.deleteGoal,
|
35
35
|
getSetPasswordLink: getSetPasswordLink_1.getSetPasswordLink,
|
@@ -68,6 +68,7 @@ exports.actions = {
|
|
68
68
|
checkPatientTag: checkPatientTag_1.checkPatientTag,
|
69
69
|
checkScheduledAppointments: checkScheduledAppointments_1.checkScheduledAppointments,
|
70
70
|
getFormAnswers: getFormAnswers_1.getFormAnswers,
|
71
|
-
pushFormResponseToHealthie:
|
71
|
+
pushFormResponseToHealthie: dataExchange_1.pushFormResponseToHealthie,
|
72
|
+
pushFormResponsesToHealthie: dataExchange_1.pushFormResponsesToHealthie,
|
72
73
|
};
|
73
74
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../extensions/healthie/actions/index.ts"],"names":[],"mappings":";;;AAAA,2DAAuD;AACvD,wDAAoD;AACpD,qDAAiD;AACjD,uDAAmD;AACnD,mDAA+C;AAC/C,iEAA6D;AAC7D,6DAAyD;AACzD,2EAAuE;AACvE,qDAAiD;AACjD,oDAAoD;AACpD,mEAA+D;AAC/D,2DAAuD;AACvD,2DAAuD;AACvD,6CAAyC;AACzC,iDAA6C;AAC7C,iEAA6D;AAC7D,mDAA+C;AAC/C,6CAAyC;AACzC,2DAAuD;AACvD,qDAAiD;AACjD,qEAAiE;AACjE,2DAAuD;AACvD,uDAAmD;AACnD,6EAAyE;AACzE,qDAAiD;AACjD,6CAAyC;AACzC,6CAAyC;AACzC,6DAAyD;AACzD,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../extensions/healthie/actions/index.ts"],"names":[],"mappings":";;;AAAA,2DAAuD;AACvD,wDAAoD;AACpD,qDAAiD;AACjD,uDAAmD;AACnD,mDAA+C;AA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