@awell-health/awell-extensions 1.1.42-beta14 → 1.1.42-beta16

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,18 +13,14 @@ export type { LabOrderUpdated } from './labOrderUpdated';
13
13
  export type { MessageCreated } from './messageCreated';
14
14
  export type { MessageDeleted } from './messageDeleted';
15
15
  export type { MetricEntryCreated } from './metricEntryCreated';
16
- export type { MetricEntryDeleted } from './metricEntryDeleted';
17
16
  export type { MetricEntryUpdated } from './metricEntryUpdated';
18
17
  export type { PatientUpdated } from './patientUpdated';
19
18
  export type { RequestFormCompletionCreated } from './requestedFormCompletionCreated';
20
- export type { RequestFormCompletionDeleted } from './requestedFormCompletionDeleted';
21
19
  export type { RequestFormCompletionUpdated } from './requestedFormCompletionUpdated';
22
20
  export type { TaskCreated } from './taskCreated';
23
- export type { TaskDeleted } from './taskDeleted';
24
21
  export type { TaskUpdated } from './taskUpdated';
25
22
  export type { GoalCreated } from './goalCreated';
26
23
  export type { GoalUpdated } from './goalUpdated';
27
- export type { GoalDeleted } from './goalDeleted';
28
24
  export declare const webhooks: (import("@awell-health/extensions-core").Webhook<"appointmentId" | "appointment", import("../lib/types").HealthieWebhookPayload, {
29
25
  apiUrl: {
30
26
  key: string;
@@ -235,7 +231,7 @@ export declare const webhooks: (import("@awell-health/extensions-core").Webhook<
235
231
  required: true;
236
232
  description: string;
237
233
  };
238
- }> | import("@awell-health/extensions-core").Webhook<"deletedMetricId", import("../lib/types").HealthieWebhookPayload, Record<string, import("@awell-health/extensions-core").Setting>> | import("@awell-health/extensions-core").Webhook<"updatedMetricId", import("../lib/types").HealthieWebhookPayload, {
234
+ }> | import("@awell-health/extensions-core").Webhook<"updatedMetricId", import("../lib/types").HealthieWebhookPayload, {
239
235
  apiUrl: {
240
236
  key: string;
241
237
  label: string;
@@ -265,7 +261,7 @@ export declare const webhooks: (import("@awell-health/extensions-core").Webhook<
265
261
  required: true;
266
262
  description: string;
267
263
  };
268
- }> | import("@awell-health/extensions-core").Webhook<"deletedFormCompletionId", import("../lib/types").HealthieWebhookPayload, Record<string, import("@awell-health/extensions-core").Setting>> | import("@awell-health/extensions-core").Webhook<"updatedFormCompletionId", import("../lib/types").HealthieWebhookPayload, {
264
+ }> | import("@awell-health/extensions-core").Webhook<"updatedFormCompletionId", import("../lib/types").HealthieWebhookPayload, {
269
265
  apiUrl: {
270
266
  key: string;
271
267
  label: string;
@@ -295,7 +291,7 @@ export declare const webhooks: (import("@awell-health/extensions-core").Webhook<
295
291
  required: true;
296
292
  description: string;
297
293
  };
298
- }> | import("@awell-health/extensions-core").Webhook<"deletedTaskId", import("../lib/types").HealthieWebhookPayload, Record<string, import("@awell-health/extensions-core").Setting>> | import("@awell-health/extensions-core").Webhook<"updatedTaskId", import("../lib/types").HealthieWebhookPayload, {
294
+ }> | import("@awell-health/extensions-core").Webhook<"updatedTaskId", import("../lib/types").HealthieWebhookPayload, {
299
295
  apiUrl: {
300
296
  key: string;
301
297
  label: string;
@@ -340,4 +336,4 @@ export declare const webhooks: (import("@awell-health/extensions-core").Webhook<
340
336
  required: true;
341
337
  description: string;
342
338
  };
343
- }> | import("@awell-health/extensions-core").Webhook<"deletedGoalId", import("../lib/types").HealthieWebhookPayload, Record<string, import("@awell-health/extensions-core").Setting>>)[];
339
+ }>)[];
@@ -16,18 +16,14 @@ const labOrderUpdated_1 = require("./labOrderUpdated");
16
16
  const messageCreated_1 = require("./messageCreated");
17
17
  const messageDeleted_1 = require("./messageDeleted");
18
18
  const metricEntryCreated_1 = require("./metricEntryCreated");
19
- const metricEntryDeleted_1 = require("./metricEntryDeleted");
20
19
  const metricEntryUpdated_1 = require("./metricEntryUpdated");
21
20
  const patientUpdated_1 = require("./patientUpdated");
22
21
  const requestedFormCompletionCreated_1 = require("./requestedFormCompletionCreated");
23
- const requestedFormCompletionDeleted_1 = require("./requestedFormCompletionDeleted");
24
22
  const requestedFormCompletionUpdated_1 = require("./requestedFormCompletionUpdated");
25
23
  const taskCreated_1 = require("./taskCreated");
26
- const taskDeleted_1 = require("./taskDeleted");
27
24
  const taskUpdated_1 = require("./taskUpdated");
28
25
  const goalCreated_1 = require("./goalCreated");
29
26
  const goalUpdated_1 = require("./goalUpdated");
30
- const goalDeleted_1 = require("./goalDeleted");
31
27
  exports.webhooks = [
32
28
  appointmentCreated_1.appointmentCreated,
33
29
  patientCreated_1.patientCreated,
@@ -44,17 +40,13 @@ exports.webhooks = [
44
40
  messageCreated_1.messageCreated,
45
41
  messageDeleted_1.messageDeleted,
46
42
  metricEntryCreated_1.metricEntryCreated,
47
- metricEntryDeleted_1.metricEntryDeleted,
48
43
  metricEntryUpdated_1.metricEntryUpdated,
49
44
  patientUpdated_1.patientUpdated,
50
45
  requestedFormCompletionCreated_1.requestFormCompletionCreated,
51
- requestedFormCompletionDeleted_1.requestFormCompletionDeleted,
52
46
  requestedFormCompletionUpdated_1.requestFormCompletionUpdated,
53
47
  taskCreated_1.taskCreated,
54
- taskDeleted_1.taskDeleted,
55
48
  taskUpdated_1.taskUpdated,
56
49
  goalCreated_1.goalCreated,
57
50
  goalUpdated_1.goalUpdated,
58
- goalDeleted_1.goalDeleted,
59
51
  ];
60
52
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../extensions/healthie/webhooks/index.ts"],"names":[],"mappings":";;;AAAA,6DAAyD;AACzD,qDAAiD;AACjD,2DAAuD;AACvD,2DAAuD;AACvD,6DAAyD;AACzD,6DAAyD;AACzD,qEAAiE;AACjE,qEAAiE;AACjE,mEAA+D;AAC/D,mEAA+D;AAC/D,uDAAmD;AACnD,uDAAmD;AACnD,qDAAiD;AACjD,qDAAiD;AACjD,6DAAyD;AACzD,6DAAyD;AACzD,6DAAyD;AACzD,qDAAiD;AACjD,qFAA+E;AAC/E,qFAA+E;AAC/E,qFAA+E;AAC/E,+CAA2C;AAC3C,+CAA2C;AAC3C,+CAA2C;AAC3C,+CAA2C;AAC3C,+CAA2C;AAC3C,+CAA2C;AA8B9B,QAAA,QAAQ,GAAG;IACtB,uCAAkB;IAClB,+BAAc;IACd,qCAAiB;IACjB,qCAAiB;IACjB,uCAAkB;IAClB,uCAAkB;IAClB,+CAAsB;IACtB,+CAAsB;IACtB,6CAAqB;IACrB,6CAAqB;IACrB,iCAAe;IACf,iCAAe;IACf,+BAAc;IACd,+BAAc;IACd,uCAAkB;IAClB,uCAAkB;IAClB,uCAAkB;IAClB,+BAAc;IACd,6DAA4B;IAC5B,6DAA4B;IAC5B,6DAA4B;IAC5B,yBAAW;IACX,yBAAW;IACX,yBAAW;IACX,yBAAW;IACX,yBAAW;IACX,yBAAW;CACZ,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../extensions/healthie/webhooks/index.ts"],"names":[],"mappings":";;;AAAA,6DAAyD;AACzD,qDAAiD;AACjD,2DAAuD;AACvD,2DAAuD;AACvD,6DAAyD;AACzD,6DAAyD;AACzD,qEAAiE;AACjE,qEAAiE;AACjE,mEAA+D;AAC/D,mEAA+D;AAC/D,uDAAmD;AACnD,uDAAmD;AACnD,qDAAiD;AACjD,qDAAiD;AACjD,6DAAyD;AACzD,6DAAyD;AACzD,qDAAiD;AACjD,qFAA+E;AAC/E,qFAA+E;AAC/E,+CAA2C;AAC3C,+CAA2C;AAC3C,+CAA2C;AAC3C,+CAA2C;AA0B9B,QAAA,QAAQ,GAAG;IACtB,uCAAkB;IAClB,+BAAc;IACd,qCAAiB;IACjB,qCAAiB;IACjB,uCAAkB;IAClB,uCAAkB;IAClB,+CAAsB;IACtB,+CAAsB;IACtB,6CAAqB;IACrB,6CAAqB;IACrB,iCAAe;IACf,iCAAe;IACf,+BAAc;IACd,+BAAc;IACd,uCAAkB;IAClB,uCAAkB;IAClB,+BAAc;IACd,6DAA4B;IAC5B,6DAA4B;IAC5B,yBAAW;IACX,yBAAW;IACX,yBAAW;IACX,yBAAW;CACZ,CAAA"}
@@ -3,4 +3,4 @@ export type Markdown = Record<string, {
3
3
  changelog: string;
4
4
  }>;
5
5
  export declare const markdown: Markdown;
6
- export declare const extensions: import("@awell-health/extensions-core").Extension<import("@awell-health/extensions-core").Settings>[];
6
+ export declare const extensions: import("@awell-health/extensions-core").Extension[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awell-health/awell-extensions",
3
- "version": "1.1.42-beta14",
3
+ "version": "1.1.42-beta16",
4
4
  "packageManager": "yarn@3.4.1",
5
5
  "main": "dist/src/index.js",
6
6
  "repository": {
@@ -68,7 +68,7 @@
68
68
  },
69
69
  "dependencies": {
70
70
  "@awell-health/awell-sdk": "^0.1.7",
71
- "@awell-health/extensions-core": "0.2.13",
71
+ "@awell-health/extensions-core": "0.2.15",
72
72
  "@dropbox/sign": "^1.1.3",
73
73
  "@mailchimp/mailchimp_transactional": "^1.0.50",
74
74
  "@medplum/core": "^3.1.4",
@@ -1,11 +0,0 @@
1
- import { type Webhook } from '@awell-health/extensions-core';
2
- import { type HealthieWebhookPayload } from '../lib/types';
3
- declare const dataPoints: {
4
- deletedGoalId: {
5
- key: string;
6
- valueType: "string";
7
- };
8
- };
9
- export declare const goalDeleted: Webhook<keyof typeof dataPoints, HealthieWebhookPayload>;
10
- export type GoalDeleted = typeof goalDeleted;
11
- export {};
@@ -1,30 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.goalDeleted = void 0;
4
- const lodash_1 = require("lodash");
5
- const dataPoints = {
6
- deletedGoalId: {
7
- key: 'deletedGoalId',
8
- valueType: 'string',
9
- },
10
- };
11
- exports.goalDeleted = {
12
- key: 'goalDeleted',
13
- dataPoints,
14
- onWebhookReceived: async ({ payload, settings }, onSuccess, onError) => {
15
- const { resource_id: deletedGoalId } = payload;
16
- if ((0, lodash_1.isNil)(deletedGoalId)) {
17
- await onError({
18
- // We should automatically send a 400 here, so no need to provide info
19
- });
20
- }
21
- else {
22
- await onSuccess({
23
- data_points: {
24
- deletedGoalId,
25
- },
26
- });
27
- }
28
- },
29
- };
30
- //# sourceMappingURL=goalDeleted.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"goalDeleted.js","sourceRoot":"","sources":["../../../../extensions/healthie/webhooks/goalDeleted.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;AAO9B,MAAM,UAAU,GAAG;IACjB,aAAa,EAAE;QACb,GAAG,EAAE,eAAe;QACpB,SAAS,EAAE,QAAQ;KACpB;CAC4C,CAAA;AAElC,QAAA,WAAW,GAGpB;IACF,GAAG,EAAE,aAAa;IAClB,UAAU;IACV,iBAAiB,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE;QACrE,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE,GAAG,OAAO,CAAA;QAE9C,IAAI,IAAA,cAAK,EAAC,aAAa,CAAC,EAAE;YACxB,MAAM,OAAO,CAAC;YACZ,sEAAsE;aACvE,CAAC,CAAA;SACH;aAAM;YACL,MAAM,SAAS,CAAC;gBACd,WAAW,EAAE;oBACX,aAAa;iBACd;aACF,CAAC,CAAA;SACH;IACH,CAAC;CACF,CAAA"}
@@ -1,11 +0,0 @@
1
- import { type Webhook } from '@awell-health/extensions-core';
2
- import { type HealthieWebhookPayload } from '../lib/types';
3
- declare const dataPoints: {
4
- deletedMetricId: {
5
- key: string;
6
- valueType: "string";
7
- };
8
- };
9
- export declare const metricEntryDeleted: Webhook<keyof typeof dataPoints, HealthieWebhookPayload>;
10
- export type MetricEntryDeleted = typeof metricEntryDeleted;
11
- export {};
@@ -1,30 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.metricEntryDeleted = void 0;
4
- const lodash_1 = require("lodash");
5
- const dataPoints = {
6
- deletedMetricId: {
7
- key: 'deletedMetricId',
8
- valueType: 'string',
9
- },
10
- };
11
- exports.metricEntryDeleted = {
12
- key: 'metricEntryDeleted',
13
- dataPoints,
14
- onWebhookReceived: async ({ payload, settings }, onSuccess, onError) => {
15
- const { resource_id: deletedMetricId } = payload;
16
- if ((0, lodash_1.isNil)(deletedMetricId)) {
17
- await onError({
18
- // We should automatically send a 400 here, so no need to provide info
19
- });
20
- }
21
- else {
22
- await onSuccess({
23
- data_points: {
24
- deletedMetricId,
25
- },
26
- });
27
- }
28
- },
29
- };
30
- //# sourceMappingURL=metricEntryDeleted.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"metricEntryDeleted.js","sourceRoot":"","sources":["../../../../extensions/healthie/webhooks/metricEntryDeleted.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;AAO9B,MAAM,UAAU,GAAG;IACjB,eAAe,EAAE;QACf,GAAG,EAAE,iBAAiB;QACtB,SAAS,EAAE,QAAQ;KACpB;CAC4C,CAAA;AAElC,QAAA,kBAAkB,GAG3B;IACF,GAAG,EAAE,oBAAoB;IACzB,UAAU;IACV,iBAAiB,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE;QACrE,MAAM,EAAE,WAAW,EAAE,eAAe,EAAE,GAAG,OAAO,CAAA;QAEhD,IAAI,IAAA,cAAK,EAAC,eAAe,CAAC,EAAE;YAC1B,MAAM,OAAO,CAAC;YACZ,sEAAsE;aACvE,CAAC,CAAA;SACH;aAAM;YACL,MAAM,SAAS,CAAC;gBACd,WAAW,EAAE;oBACX,eAAe;iBAChB;aACF,CAAC,CAAA;SACH;IACH,CAAC;CACF,CAAA"}
@@ -1,11 +0,0 @@
1
- import { type Webhook } from '@awell-health/extensions-core';
2
- import { type HealthieWebhookPayload } from '../lib/types';
3
- declare const dataPoints: {
4
- deletedFormCompletionId: {
5
- key: string;
6
- valueType: "string";
7
- };
8
- };
9
- export declare const requestFormCompletionDeleted: Webhook<keyof typeof dataPoints, HealthieWebhookPayload>;
10
- export type RequestFormCompletionDeleted = typeof requestFormCompletionDeleted;
11
- export {};
@@ -1,30 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.requestFormCompletionDeleted = void 0;
4
- const lodash_1 = require("lodash");
5
- const dataPoints = {
6
- deletedFormCompletionId: {
7
- key: 'deletedFormCompletionId',
8
- valueType: 'string',
9
- },
10
- };
11
- exports.requestFormCompletionDeleted = {
12
- key: 'requestFormCompletionDeleted',
13
- dataPoints,
14
- onWebhookReceived: async ({ payload, settings }, onSuccess, onError) => {
15
- const { resource_id: deletedFormCompletionId } = payload;
16
- if ((0, lodash_1.isNil)(deletedFormCompletionId)) {
17
- await onError({
18
- // We should automatically send a 400 here, so no need to provide info
19
- });
20
- }
21
- else {
22
- await onSuccess({
23
- data_points: {
24
- deletedFormCompletionId,
25
- },
26
- });
27
- }
28
- },
29
- };
30
- //# sourceMappingURL=requestedFormCompletionDeleted.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"requestedFormCompletionDeleted.js","sourceRoot":"","sources":["../../../../extensions/healthie/webhooks/requestedFormCompletionDeleted.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;AAO9B,MAAM,UAAU,GAAG;IACjB,uBAAuB,EAAE;QACvB,GAAG,EAAE,yBAAyB;QAC9B,SAAS,EAAE,QAAQ;KACpB;CAC4C,CAAA;AAElC,QAAA,4BAA4B,GAGrC;IACF,GAAG,EAAE,8BAA8B;IACnC,UAAU;IACV,iBAAiB,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE;QACrE,MAAM,EAAE,WAAW,EAAE,uBAAuB,EAAE,GAAG,OAAO,CAAA;QAExD,IAAI,IAAA,cAAK,EAAC,uBAAuB,CAAC,EAAE;YAClC,MAAM,OAAO,CAAC;YACZ,sEAAsE;aACvE,CAAC,CAAA;SACH;aAAM;YACL,MAAM,SAAS,CAAC;gBACd,WAAW,EAAE;oBACX,uBAAuB;iBACxB;aACF,CAAC,CAAA;SACH;IACH,CAAC;CACF,CAAA"}
@@ -1,11 +0,0 @@
1
- import { type Webhook } from '@awell-health/extensions-core';
2
- import { type HealthieWebhookPayload } from '../lib/types';
3
- declare const dataPoints: {
4
- deletedTaskId: {
5
- key: string;
6
- valueType: "string";
7
- };
8
- };
9
- export declare const taskDeleted: Webhook<keyof typeof dataPoints, HealthieWebhookPayload>;
10
- export type TaskDeleted = typeof taskDeleted;
11
- export {};
@@ -1,30 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.taskDeleted = void 0;
4
- const lodash_1 = require("lodash");
5
- const dataPoints = {
6
- deletedTaskId: {
7
- key: 'deletedTaskId',
8
- valueType: 'string',
9
- },
10
- };
11
- exports.taskDeleted = {
12
- key: 'taskDeleted',
13
- dataPoints,
14
- onWebhookReceived: async ({ payload, settings }, onSuccess, onError) => {
15
- const { resource_id: deletedTaskId } = payload;
16
- if ((0, lodash_1.isNil)(deletedTaskId)) {
17
- await onError({
18
- // We should automatically send a 400 here, so no need to provide info
19
- });
20
- }
21
- else {
22
- await onSuccess({
23
- data_points: {
24
- deletedTaskId,
25
- },
26
- });
27
- }
28
- },
29
- };
30
- //# sourceMappingURL=taskDeleted.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"taskDeleted.js","sourceRoot":"","sources":["../../../../extensions/healthie/webhooks/taskDeleted.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;AAO9B,MAAM,UAAU,GAAG;IACjB,aAAa,EAAE;QACb,GAAG,EAAE,eAAe;QACpB,SAAS,EAAE,QAAQ;KACpB;CAC4C,CAAA;AAElC,QAAA,WAAW,GAGpB;IACF,GAAG,EAAE,aAAa;IAClB,UAAU;IACV,iBAAiB,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE;QACrE,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE,GAAG,OAAO,CAAA;QAE9C,IAAI,IAAA,cAAK,EAAC,aAAa,CAAC,EAAE;YACxB,MAAM,OAAO,CAAC;YACZ,sEAAsE;aACvE,CAAC,CAAA;SACH;aAAM;YACL,MAAM,SAAS,CAAC;gBACd,WAAW,EAAE;oBACX,aAAa;iBACd;aACF,CAAC,CAAA;SACH;IACH,CAAC;CACF,CAAA"}