@awell-health/awell-extensions 1.0.102 → 1.0.104

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.
Files changed (73) hide show
  1. package/dist/extensions/index.js +2 -0
  2. package/dist/extensions/index.js.map +1 -1
  3. package/dist/extensions/markdown.json +5 -1
  4. package/dist/extensions/wellinks/actions/createFlourishCustomer/config/fields.d.ts +58 -0
  5. package/dist/extensions/wellinks/actions/createFlourishCustomer/config/fields.js +56 -0
  6. package/dist/extensions/wellinks/actions/createFlourishCustomer/config/fields.js.map +1 -0
  7. package/dist/extensions/wellinks/actions/createFlourishCustomer/config/index.d.ts +2 -0
  8. package/dist/extensions/wellinks/actions/createFlourishCustomer/config/index.js +9 -0
  9. package/dist/extensions/wellinks/actions/createFlourishCustomer/config/index.js.map +1 -0
  10. package/dist/extensions/wellinks/actions/createFlourishCustomer/config/settings.d.ts +35 -0
  11. package/dist/extensions/wellinks/actions/createFlourishCustomer/config/settings.js +17 -0
  12. package/dist/extensions/wellinks/actions/createFlourishCustomer/config/settings.js.map +1 -0
  13. package/dist/extensions/wellinks/actions/createFlourishCustomer/createFlourishCustomer.d.ts +11 -0
  14. package/dist/extensions/wellinks/actions/createFlourishCustomer/createFlourishCustomer.js +56 -0
  15. package/dist/extensions/wellinks/actions/createFlourishCustomer/createFlourishCustomer.js.map +1 -0
  16. package/dist/extensions/wellinks/actions/createFlourishCustomer/createFlourishCustomer.test.d.ts +1 -0
  17. package/dist/extensions/wellinks/actions/createFlourishCustomer/createFlourishCustomer.test.js +53 -0
  18. package/dist/extensions/wellinks/actions/createFlourishCustomer/createFlourishCustomer.test.js.map +1 -0
  19. package/dist/extensions/wellinks/actions/index.d.ts +108 -0
  20. package/dist/extensions/wellinks/actions/index.js +3 -1
  21. package/dist/extensions/wellinks/actions/index.js.map +1 -1
  22. package/dist/extensions/wellinks/actions/submitPamSurvey/config/fields.js +2 -2
  23. package/dist/extensions/wellinks/actions/submitPamSurvey/config/fields.js.map +1 -1
  24. package/dist/extensions/wellinks/actions/submitPamSurvey/submitPamSurvey.test.js +2 -2
  25. package/dist/extensions/wellinks/actions/submitPamSurvey/submitPamSurvey.test.js.map +1 -1
  26. package/dist/extensions/wellinks/api/clients/wellinksFlourishClient.d.ts +1 -0
  27. package/dist/extensions/wellinks/api/clients/wellinksFlourishClient.js +44 -0
  28. package/dist/extensions/wellinks/api/clients/wellinksFlourishClient.js.map +1 -1
  29. package/dist/extensions/wellinks/api/test/wellinksFlourishClient.test.js +161 -105
  30. package/dist/extensions/wellinks/api/test/wellinksFlourishClient.test.js.map +1 -1
  31. package/dist/extensions/zusHealth/client/client.d.ts +12 -0
  32. package/dist/extensions/zusHealth/client/client.js +42 -0
  33. package/dist/extensions/zusHealth/client/client.js.map +1 -0
  34. package/dist/extensions/zusHealth/client/index.d.ts +1 -0
  35. package/dist/extensions/zusHealth/client/index.js +6 -0
  36. package/dist/extensions/zusHealth/client/index.js.map +1 -0
  37. package/dist/extensions/zusHealth/client/type.d.ts +6 -0
  38. package/dist/extensions/zusHealth/client/type.js +3 -0
  39. package/dist/extensions/zusHealth/client/type.js.map +1 -0
  40. package/dist/extensions/zusHealth/index.d.ts +2 -0
  41. package/dist/extensions/zusHealth/index.js +20 -0
  42. package/dist/extensions/zusHealth/index.js.map +1 -0
  43. package/dist/extensions/zusHealth/settings.d.ts +37 -0
  44. package/dist/extensions/zusHealth/settings.js +41 -0
  45. package/dist/extensions/zusHealth/settings.js.map +1 -0
  46. package/dist/extensions/zusHealth/utils/error.d.ts +6 -0
  47. package/dist/extensions/zusHealth/utils/error.js +53 -0
  48. package/dist/extensions/zusHealth/utils/error.js.map +1 -0
  49. package/dist/extensions/zusHealth/utils/index.d.ts +1 -0
  50. package/dist/extensions/zusHealth/utils/index.js +18 -0
  51. package/dist/extensions/zusHealth/utils/index.js.map +1 -0
  52. package/dist/extensions/zusHealth/validation/encounter.zod.d.ts +2 -0
  53. package/dist/extensions/zusHealth/validation/encounter.zod.js +9 -0
  54. package/dist/extensions/zusHealth/validation/encounter.zod.js.map +1 -0
  55. package/dist/extensions/zusHealth/validation/index.d.ts +2 -0
  56. package/dist/extensions/zusHealth/validation/index.js +19 -0
  57. package/dist/extensions/zusHealth/validation/index.js.map +1 -0
  58. package/dist/extensions/zusHealth/validation/settings.zod.d.ts +20 -0
  59. package/dist/extensions/zusHealth/validation/settings.zod.js +22 -0
  60. package/dist/extensions/zusHealth/validation/settings.zod.js.map +1 -0
  61. package/dist/extensions/zusHealth/webhooks/index.d.ts +3 -0
  62. package/dist/extensions/zusHealth/webhooks/index.js +7 -0
  63. package/dist/extensions/zusHealth/webhooks/index.js.map +1 -0
  64. package/dist/extensions/zusHealth/webhooks/patientAdmitted.d.ts +43 -0
  65. package/dist/extensions/zusHealth/webhooks/patientAdmitted.js +93 -0
  66. package/dist/extensions/zusHealth/webhooks/patientAdmitted.js.map +1 -0
  67. package/dist/extensions/zusHealth/webhooks/patientDischarged.d.ts +47 -0
  68. package/dist/extensions/zusHealth/webhooks/patientDischarged.js +98 -0
  69. package/dist/extensions/zusHealth/webhooks/patientDischarged.js.map +1 -0
  70. package/dist/extensions/zusHealth/webhooks/types.d.ts +28 -0
  71. package/dist/extensions/zusHealth/webhooks/types.js +22 -0
  72. package/dist/extensions/zusHealth/webhooks/types.js.map +1 -0
  73. package/package.json +1 -1
@@ -45,6 +45,7 @@ const sendgrid_extension_1 = require("./sendgrid-extension");
45
45
  const cmDotCom_1 = require("./cmDotCom");
46
46
  const docuSign_1 = require("./docuSign");
47
47
  const sendbird_1 = require("./sendbird");
48
+ const zusHealth_1 = require("./zusHealth");
48
49
  const json = __importStar(require("./markdown.json"));
49
50
  exports.markdown = json;
50
51
  exports.extensions = [
@@ -69,5 +70,6 @@ exports.extensions = [
69
70
  cmDotCom_1.CmDotCom,
70
71
  docuSign_1.DocuSign,
71
72
  sendbird_1.Sendbird,
73
+ zusHealth_1.ZusHealth,
72
74
  ];
73
75
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../extensions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kCAAkC;AAClC,mCAA+B;AAC/B,2CAAuC;AACvC,mDAA+C;AAC/C,6CAAyC;AACzC,+CAA2C;AAC3C,uCAAmC;AACnC,yCAAqC;AACrC,yCAAqC;AACrC,+CAA0C;AAC1C,2CAAuC;AACvC,uCAAmC;AACnC,iCAAsC;AACtC,+CAA2C;AAC3C,2CAAuC;AACvC,qCAAiC;AACjC,yCAAqC;AACrC,6DAA+C;AAC/C,yCAAqC;AACrC,yCAAqC;AACrC,yCAAqC;AACrC,sDAAuC;AAG1B,QAAA,QAAQ,GAAa,IAAI,CAAA;AAEzB,QAAA,UAAU,GAAG;IACxB,oFAAoF;IACpF,aAAK;IACL,qBAAS;IACT,6BAAa;IACb,uBAAU;IACV,yBAAW;IACX,iBAAO;IACP,mBAAQ;IACR,mBAAQ;IACR,wBAAU;IACV,qBAAS;IACT,iBAAO;IACP,oBAAa;IACb,yBAAW;IACX,qBAAS;IACT,eAAM;IACN,mBAAQ;IACR,6BAAQ;IACR,mBAAQ;IACR,mBAAQ;IACR,mBAAQ;CACT,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../extensions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kCAAkC;AAClC,mCAA+B;AAC/B,2CAAuC;AACvC,mDAA+C;AAC/C,6CAAyC;AACzC,+CAA2C;AAC3C,uCAAmC;AACnC,yCAAqC;AACrC,yCAAqC;AACrC,+CAA0C;AAC1C,2CAAuC;AACvC,uCAAmC;AACnC,iCAAsC;AACtC,+CAA2C;AAC3C,2CAAuC;AACvC,qCAAiC;AACjC,yCAAqC;AACrC,6DAA+C;AAC/C,yCAAqC;AACrC,yCAAqC;AACrC,yCAAqC;AACrC,2CAAuC;AAEvC,sDAAuC;AAG1B,QAAA,QAAQ,GAAa,IAAI,CAAA;AAEzB,QAAA,UAAU,GAAG;IACxB,oFAAoF;IACpF,aAAK;IACL,qBAAS;IACT,6BAAa;IACb,uBAAU;IACV,yBAAW;IACX,iBAAO;IACP,mBAAQ;IACR,mBAAQ;IACR,wBAAU;IACV,qBAAS;IACT,iBAAO;IACP,oBAAa;IACb,yBAAW;IACX,qBAAS;IACT,eAAM;IACN,mBAAQ;IACR,6BAAQ;IACR,mBAAQ;IACR,mBAAQ;IACR,mBAAQ;IACR,qBAAS;CACV,CAAA"}
@@ -81,6 +81,10 @@
81
81
  },
82
82
  "wellinks": {
83
83
  "readme": "---\ntitle: Wellinks\ndescription: The purpose of this extension is to keep application logic out of the Pathways and Tracks. Some actions require interactions with the Healthie API, hence the need for the API URL and Key in the settings.\n---\n# Wellinks Extension\n\nThe purpose of this extension is to keep application logic out of the Pathways and Tracks. Some actions require interactions with the Healthie API, hence the need for the API URL and Key in the settings.\n\n## Extension Settings\n\nYou will need to provide the API URL and Key for the Wellinks Healthie instance.\n\n# Custom Actions\n\n## Check for Override\n\nChecks to see if the patient in Healthie has an active Override form.\n\n## Check for Scheduled Appointments\n\nChecks to see if the patient in Healthie has an appointment of a specific type scheduled in the future.\n\n## Check for Chat\n\nChecks that a Chat message (either to or from a patient and coach) has happened at least 24 hours after an appointment\n\n## Insert Member List Event\n\nAdds an Insert Member List Event to the Platform Database.\n\n## Check for Flourish Customer\n\nQueries Flourish to see if there is a record that has a matching ThirdPartyIdentifier. Returns True/False.\n\n## Submit a PAM Survey\n\nSubmits a PAM 13 Survey (completed in the Careflow) to Flourish and returns the PAM Score and Levl.",
84
- "changelog": "# Wellinks Changelog\n\n## May 18th, 2023\n\nAdded the checkForOverride action.\n\n## May 19th, 2023\n\nAdded the checkForScheduledAppointment action.\n\n## May 25th, 2023\n\nAdded datapoints for actions\n\n\n## July 6th, 2023\n\nAdded new action to unenroll user from Sendgrid.\n\n## July 16th, 2023\n\nAdded a new action to insert a Member Event List to the Platform DB. This requires setting the platform API URL and API Key values for the extension.\n\n## September 12th, 2023\n\nAdds a new action to check Flourish for a customer with a matching ThirdPartyIdentifier.\n\n## September 18th, 2023\n\nAdds a new action to submit a PAM13 survey to Flourish"
84
+ "changelog": "# Wellinks Changelog\n\n## May 18th, 2023\n\nAdded the checkForOverride action.\n\n## May 19th, 2023\n\nAdded the checkForScheduledAppointment action.\n\n## May 25th, 2023\n\nAdded datapoints for actions\n\n\n## July 6th, 2023\n\nAdded new action to unenroll user from Sendgrid.\n\n## July 16th, 2023\n\nAdded a new action to insert a Member Event List to the Platform DB. This requires setting the platform API URL and API Key values for the extension.\n\n## September 12th, 2023\n\nAdds a new action to check Flourish for a customer with a matching ThirdPartyIdentifier.\n\n## September 18th, 2023\n\nAdds a new action to submit a PAM13 survey to Flourish, returning a PAM Score, level, and whether or not the submission was a success.\n\n## September 19th, 2023\n\nAdds a new action to create a customer in Flourish, returning true or false based on whether or not the creation was a success."
85
+ },
86
+ "zusHealth": {
87
+ "readme": "---\ntitle: Zus Health\ndescription: Zus is the only shared health data platform designed to accelerate healthcare data interoperability by providing easy-to-use patient data at the point of care via API, embedded components, and direct EHR integrations.\n---\n\n# Zus Health\n\n[Zus Health](https://zushealth.com/) is the only shared health data platform designed to accelerate healthcare data interoperability by providing easy-to-use patient data at the point of care via API, embedded components, and direct EHR integrations.\n\n## Zus Health x Awell\n\nThis extension allows you to fetch resource via webhooks\n\n## Extension settings\n\nFor the extension to function correctly, you must include the following elements in your settings:\n\n`client_id` and `client_secret`: These values are generated on the Zus Health platform.\n`base_url`: This determines the base URL for your FHIR endpoint, for example, https://api.sandbox.zusapi.com/fhir.\n`auth_url`: This determines the base URL for your authorization endpoint, for example, https://zus-sandbox.us.auth0.com/oauth/token.\n`audience`: This determines the API hostname, for example, https://api.sandbox.zusapi.com.\n\n## Webhooks\n\nWebhooks offer a great way to listen to updates to resources in Zus and trigger Awell care flows. These updates include ADT feed events for your patient population, and the relevant Encounter data can then be incorporated in the new flow.\n",
88
+ "changelog": "# Zus Health changelog\n"
85
89
  }
86
90
  }
@@ -0,0 +1,58 @@
1
+ import { z } from 'zod';
2
+ import { FieldType } from '@awell-health/extensions-core';
3
+ export declare const fields: {
4
+ firstName: {
5
+ id: string;
6
+ label: string;
7
+ description: string;
8
+ type: FieldType.STRING;
9
+ required: true;
10
+ };
11
+ lastName: {
12
+ id: string;
13
+ label: string;
14
+ description: string;
15
+ type: FieldType.STRING;
16
+ required: true;
17
+ };
18
+ dateOfBirth: {
19
+ id: string;
20
+ label: string;
21
+ description: string;
22
+ type: FieldType.DATE;
23
+ required: true;
24
+ };
25
+ subgroupId: {
26
+ id: string;
27
+ label: string;
28
+ description: string;
29
+ type: FieldType.STRING;
30
+ required: true;
31
+ };
32
+ thirdPartyIdentifier: {
33
+ id: string;
34
+ label: string;
35
+ description: string;
36
+ type: FieldType.STRING;
37
+ required: true;
38
+ };
39
+ };
40
+ export declare const FieldsValidationSchema: z.ZodObject<{
41
+ firstName: z.ZodString;
42
+ lastName: z.ZodString;
43
+ dateOfBirth: z.ZodString;
44
+ subgroupId: z.ZodString;
45
+ thirdPartyIdentifier: z.ZodString;
46
+ }, "strip", z.ZodTypeAny, {
47
+ firstName: string;
48
+ lastName: string;
49
+ thirdPartyIdentifier: string;
50
+ dateOfBirth: string;
51
+ subgroupId: string;
52
+ }, {
53
+ firstName: string;
54
+ lastName: string;
55
+ thirdPartyIdentifier: string;
56
+ dateOfBirth: string;
57
+ subgroupId: string;
58
+ }>;
@@ -0,0 +1,56 @@
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
+ firstName: {
8
+ id: 'firstName',
9
+ label: 'First Name',
10
+ description: 'The first name of the user to create in Flourish.',
11
+ type: extensions_core_1.FieldType.STRING,
12
+ required: true,
13
+ },
14
+ lastName: {
15
+ id: 'lastName',
16
+ label: 'Last Name',
17
+ description: 'The last name of the user to create in Flourish.',
18
+ type: extensions_core_1.FieldType.STRING,
19
+ required: true,
20
+ },
21
+ dateOfBirth: {
22
+ id: 'dateOfBirth',
23
+ label: 'Date of Birth',
24
+ description: 'The date of birth of the user to create in Flourish in YYYY-MM-DD format.',
25
+ type: extensions_core_1.FieldType.DATE,
26
+ required: true,
27
+ },
28
+ subgroupId: {
29
+ id: 'subgroupId',
30
+ label: 'Subgroup ID',
31
+ description: 'The subgroup ID of the user to create in Flourish.',
32
+ type: extensions_core_1.FieldType.STRING,
33
+ required: true,
34
+ },
35
+ thirdPartyIdentifier: {
36
+ id: 'thirdPartyIdentifier',
37
+ label: 'Third Party Identifier',
38
+ description: 'The third party identifier of the user to create in Flourish.',
39
+ type: extensions_core_1.FieldType.STRING,
40
+ required: true,
41
+ },
42
+ };
43
+ exports.FieldsValidationSchema = zod_1.z.object({
44
+ firstName: zod_1.z.string(),
45
+ lastName: zod_1.z.string(),
46
+ dateOfBirth: zod_1.z
47
+ .string({
48
+ errorMap: () => ({
49
+ message: 'Admin date is required and must be of format YYYY-MM-DD',
50
+ }),
51
+ })
52
+ .datetime(),
53
+ subgroupId: zod_1.z.string(),
54
+ thirdPartyIdentifier: zod_1.z.string(),
55
+ });
56
+ //# sourceMappingURL=fields.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../../../extensions/wellinks/actions/createFlourishCustomer/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,mDAAmD;QAChE,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;IACD,QAAQ,EAAE;QACR,EAAE,EAAE,UAAU;QACd,KAAK,EAAE,WAAW;QAClB,WAAW,EAAE,kDAAkD;QAC/D,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;IACD,WAAW,EAAE;QACX,EAAE,EAAE,aAAa;QACjB,KAAK,EAAE,eAAe;QACtB,WAAW,EACT,2EAA2E;QAC7E,IAAI,EAAE,2BAAS,CAAC,IAAI;QACpB,QAAQ,EAAE,IAAI;KACf;IACD,UAAU,EAAE;QACV,EAAE,EAAE,YAAY;QAChB,KAAK,EAAE,aAAa;QACpB,WAAW,EAAE,oDAAoD;QACjE,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;IACD,oBAAoB,EAAE;QACpB,EAAE,EAAE,sBAAsB;QAC1B,KAAK,EAAE,wBAAwB;QAC/B,WAAW,EACT,+DAA+D;QACjE,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;CAC8B,CAAA;AAEpB,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;IACrB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,WAAW,EAAE,OAAC;SACX,MAAM,CAAC;QACN,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC;YACf,OAAO,EAAE,yDAAyD;SACnE,CAAC;KACH,CAAC;SACD,QAAQ,EAAE;IACb,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE;IACtB,oBAAoB,EAAE,OAAC,CAAC,MAAM,EAAE;CACiB,CAAC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export { fields, FieldsValidationSchema } from './fields';
2
+ export { SettingsValidationSchema } from './settings';
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SettingsValidationSchema = 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 settings_1 = require("./settings");
8
+ Object.defineProperty(exports, "SettingsValidationSchema", { enumerable: true, get: function () { return settings_1.SettingsValidationSchema; } });
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../extensions/wellinks/actions/createFlourishCustomer/config/index.ts"],"names":[],"mappings":";;;AAAA,mCAAyD;AAAhD,gGAAA,MAAM,OAAA;AAAE,gHAAA,sBAAsB,OAAA;AACvC,uCAAqD;AAA5C,oHAAA,wBAAwB,OAAA"}
@@ -0,0 +1,35 @@
1
+ import { z } from 'zod';
2
+ export declare const SettingsValidationSchema: z.ZodObject<{
3
+ platformApiKey: z.ZodOptional<z.ZodString>;
4
+ platformApiUrl: z.ZodOptional<z.ZodString>;
5
+ apiUrl: z.ZodOptional<z.ZodString>;
6
+ apiKey: z.ZodOptional<z.ZodString>;
7
+ selectEventTypeQuestion: z.ZodOptional<z.ZodString>;
8
+ startSendingRemindersQuestions: z.ZodOptional<z.ZodString>;
9
+ memberEventFormId: z.ZodOptional<z.ZodString>;
10
+ flourishApiKey: z.ZodString;
11
+ flourishApiUrl: z.ZodString;
12
+ flourishClientExtId: z.ZodString;
13
+ }, "strip", z.ZodTypeAny, {
14
+ flourishApiUrl: string;
15
+ flourishApiKey: string;
16
+ flourishClientExtId: string;
17
+ platformApiKey?: string | undefined;
18
+ platformApiUrl?: string | undefined;
19
+ apiUrl?: string | undefined;
20
+ apiKey?: string | undefined;
21
+ selectEventTypeQuestion?: string | undefined;
22
+ startSendingRemindersQuestions?: string | undefined;
23
+ memberEventFormId?: string | undefined;
24
+ }, {
25
+ flourishApiUrl: string;
26
+ flourishApiKey: string;
27
+ flourishClientExtId: string;
28
+ platformApiKey?: string | undefined;
29
+ platformApiUrl?: string | undefined;
30
+ apiUrl?: string | undefined;
31
+ apiKey?: string | undefined;
32
+ selectEventTypeQuestion?: string | undefined;
33
+ startSendingRemindersQuestions?: string | undefined;
34
+ memberEventFormId?: string | undefined;
35
+ }>;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SettingsValidationSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.SettingsValidationSchema = zod_1.z.object({
6
+ platformApiKey: zod_1.z.string().optional(),
7
+ platformApiUrl: zod_1.z.string().optional(),
8
+ apiUrl: zod_1.z.string().optional(),
9
+ apiKey: zod_1.z.string().optional(),
10
+ selectEventTypeQuestion: zod_1.z.string().optional(),
11
+ startSendingRemindersQuestions: zod_1.z.string().optional(),
12
+ memberEventFormId: zod_1.z.string().optional(),
13
+ flourishApiKey: zod_1.z.string(),
14
+ flourishApiUrl: zod_1.z.string(),
15
+ flourishClientExtId: zod_1.z.string(),
16
+ });
17
+ //# sourceMappingURL=settings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings.js","sourceRoot":"","sources":["../../../../../../extensions/wellinks/actions/createFlourishCustomer/config/settings.ts"],"names":[],"mappings":";;;AAAA,6BAAwC;AAE3B,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,uBAAuB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9C,8BAA8B,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrD,iBAAiB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACxC,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE;IAC1B,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE;IAC1B,mBAAmB,EAAE,OAAC,CAAC,MAAM,EAAE;CACoB,CAAC,CAAA"}
@@ -0,0 +1,11 @@
1
+ import { type Action } from '@awell-health/extensions-core';
2
+ import { type settings } from '../../config/settings';
3
+ import { fields } from './config';
4
+ declare const dataPoints: {
5
+ createSuccessful: {
6
+ key: string;
7
+ valueType: "boolean";
8
+ };
9
+ };
10
+ export declare const createFlourishCustomer: Action<typeof fields, typeof settings, keyof typeof dataPoints>;
11
+ export {};
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createFlourishCustomer = void 0;
4
+ const extensions_core_1 = require("@awell-health/extensions-core");
5
+ const wellinksFlourishClient_1 = require("../../api/clients/wellinksFlourishClient");
6
+ const config_1 = require("./config");
7
+ const zod_1 = require("zod");
8
+ const dataPoints = {
9
+ createSuccessful: {
10
+ key: 'createSuccessful',
11
+ valueType: 'boolean',
12
+ },
13
+ };
14
+ exports.createFlourishCustomer = {
15
+ key: 'createFlourishCustomer',
16
+ category: extensions_core_1.Category.EHR_INTEGRATIONS,
17
+ title: 'Create a Flourish Customer',
18
+ description: 'Creates a customer in Flourish using supplied information.',
19
+ fields: config_1.fields,
20
+ dataPoints,
21
+ previewable: true,
22
+ onActivityCreated: async (payload, onComplete, onError) => {
23
+ const { fields: { firstName, lastName, dateOfBirth, subgroupId, thirdPartyIdentifier, }, settings: { flourishApiKey, flourishApiUrl, flourishClientExtId }, } = (0, extensions_core_1.validate)({
24
+ schema: zod_1.z.object({
25
+ fields: config_1.FieldsValidationSchema,
26
+ settings: config_1.SettingsValidationSchema,
27
+ }),
28
+ payload,
29
+ });
30
+ const client = new wellinksFlourishClient_1.WellinksFlourishClient(flourishApiUrl, flourishApiKey, flourishClientExtId);
31
+ try {
32
+ const result = await client.user.create(firstName, lastName, dateOfBirth, subgroupId, thirdPartyIdentifier);
33
+ await onComplete({
34
+ data_points: {
35
+ createSuccessful: result.toString(),
36
+ },
37
+ });
38
+ }
39
+ catch (err) {
40
+ const error = err;
41
+ await onError({
42
+ events: [
43
+ {
44
+ date: new Date().toISOString(),
45
+ text: { en: 'Something went wrong while orchestration the action' },
46
+ error: {
47
+ category: 'SERVER_ERROR',
48
+ message: error.message,
49
+ },
50
+ },
51
+ ],
52
+ });
53
+ }
54
+ },
55
+ };
56
+ //# sourceMappingURL=createFlourishCustomer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createFlourishCustomer.js","sourceRoot":"","sources":["../../../../../extensions/wellinks/actions/createFlourishCustomer/createFlourishCustomer.ts"],"names":[],"mappings":";;;AAAA,mEAKsC;AAEtC,qFAAiF;AACjF,qCAIiB;AACjB,6BAAuB;AAEvB,MAAM,UAAU,GAAG;IACjB,gBAAgB,EAAE;QAChB,GAAG,EAAE,kBAAkB;QACvB,SAAS,EAAE,SAAS;KACrB;CAC4C,CAAA;AAElC,QAAA,sBAAsB,GAI/B;IACF,GAAG,EAAE,wBAAwB;IAC7B,QAAQ,EAAE,0BAAQ,CAAC,gBAAgB;IACnC,KAAK,EAAE,4BAA4B;IACnC,WAAW,EAAE,4DAA4D;IACzE,MAAM,EAAN,eAAM;IACN,UAAU;IACV,WAAW,EAAE,IAAI;IACjB,iBAAiB,EAAE,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAiB,EAAE;QACvE,MAAM,EACJ,MAAM,EAAE,EACN,SAAS,EACT,QAAQ,EACR,WAAW,EACX,UAAU,EACV,oBAAoB,GACrB,EACD,QAAQ,EAAE,EAAE,cAAc,EAAE,cAAc,EAAE,mBAAmB,EAAE,GAClE,GAAG,IAAA,0BAAQ,EAAC;YACX,MAAM,EAAE,OAAC,CAAC,MAAM,CAAC;gBACf,MAAM,EAAE,+BAAsB;gBAC9B,QAAQ,EAAE,iCAAwB;aACnC,CAAC;YACF,OAAO;SACR,CAAC,CAAA;QACF,MAAM,MAAM,GAAG,IAAI,+CAAsB,CACvC,cAAc,EACd,cAAc,EACd,mBAAmB,CACpB,CAAA;QACD,IAAI;YACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,MAAM,CACrC,SAAS,EACT,QAAQ,EACR,WAAW,EACX,UAAU,EACV,oBAAoB,CACrB,CAAA;YACD,MAAM,UAAU,CAAC;gBACf,WAAW,EAAE;oBACX,gBAAgB,EAAE,MAAM,CAAC,QAAQ,EAAE;iBACpC;aACF,CAAC,CAAA;SACH;QAAC,OAAO,GAAG,EAAE;YACZ,MAAM,KAAK,GAAG,GAAY,CAAA;YAC1B,MAAM,OAAO,CAAC;gBACZ,MAAM,EAAE;oBACN;wBACE,IAAI,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;wBAC9B,IAAI,EAAE,EAAE,EAAE,EAAE,qDAAqD,EAAE;wBACnE,KAAK,EAAE;4BACL,QAAQ,EAAE,cAAc;4BACxB,OAAO,EAAE,KAAK,CAAC,OAAO;yBACvB;qBACF;iBACF;aACF,CAAC,CAAA;SACH;IACH,CAAC;CACF,CAAA"}
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tests_1 = require("../../../../src/tests");
4
+ const wellinksFlourishClient_1 = require("../../api/clients/__mocks__/wellinksFlourishClient");
5
+ const settings_1 = require("../../__mocks__/config/settings");
6
+ const createFlourishCustomer_1 = require("./createFlourishCustomer");
7
+ const zod_1 = require("zod");
8
+ jest.mock('../../api/clients/wellinksFlourishClient', () => ({
9
+ WellinksFlourishClient: wellinksFlourishClient_1.WellinksFlourishClient,
10
+ }));
11
+ describe('Create Flourish User', () => {
12
+ const onComplete = jest.fn();
13
+ const onError = jest.fn();
14
+ beforeEach(() => {
15
+ jest.clearAllMocks();
16
+ });
17
+ test('should throw a ZodError when the payload is invalid', async () => {
18
+ const invalidPayload = (0, tests_1.generateTestPayload)({
19
+ fields: {
20
+ firstName: undefined,
21
+ lastName: undefined,
22
+ dateOfBirth: undefined,
23
+ subgroupId: undefined,
24
+ thirdPartyIdentifier: undefined,
25
+ },
26
+ settings: settings_1.mockSettings,
27
+ });
28
+ await expect(createFlourishCustomer_1.createFlourishCustomer.onActivityCreated(invalidPayload, onComplete, onError)).rejects.toThrowError(zod_1.ZodError);
29
+ });
30
+ test('should call onComplete with a dataPoint boolean value equal to the return from the client', async () => {
31
+ const validPayload = (0, tests_1.generateTestPayload)({
32
+ fields: {
33
+ firstName: 'firstName',
34
+ lastName: 'lastName',
35
+ dateOfBirth: '2020-01-01T00:00:00Z',
36
+ subgroupId: '1234',
37
+ thirdPartyIdentifier: '1234',
38
+ },
39
+ settings: settings_1.mockSettings,
40
+ });
41
+ wellinksFlourishClient_1.WellinksFlourishClientMockImplementation.user.create.mockImplementationOnce(() => {
42
+ return true;
43
+ });
44
+ await createFlourishCustomer_1.createFlourishCustomer.onActivityCreated(validPayload, onComplete, onError);
45
+ expect(onError).not.toBeCalled();
46
+ expect(onComplete).toHaveBeenNthCalledWith(1, {
47
+ data_points: {
48
+ createSuccessful: 'true',
49
+ },
50
+ });
51
+ });
52
+ });
53
+ //# sourceMappingURL=createFlourishCustomer.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createFlourishCustomer.test.js","sourceRoot":"","sources":["../../../../../extensions/wellinks/actions/createFlourishCustomer/createFlourishCustomer.test.ts"],"names":[],"mappings":";;AAAA,iDAA2D;AAC3D,+FAG2D;AAC3D,8DAA8D;AAC9D,qEAAiE;AACjE,6BAA8B;AAE9B,IAAI,CAAC,IAAI,CAAC,0CAA0C,EAAE,GAAG,EAAE,CAAC,CAAC;IAC3D,sBAAsB,EAAtB,+CAAsB;CACvB,CAAC,CAAC,CAAA;AAEH,QAAQ,CAAC,sBAAsB,EAAE,GAAG,EAAE;IACpC,MAAM,UAAU,GAAG,IAAI,CAAC,EAAE,EAAE,CAAA;IAC5B,MAAM,OAAO,GAAG,IAAI,CAAC,EAAE,EAAE,CAAA;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,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
@@ -748,4 +748,112 @@ export declare const actions: {
748
748
  description: string;
749
749
  };
750
750
  }, "success" | "pamLevel" | "pamScore", never>;
751
+ createFlourishCustomer: import("@awell-health/extensions-core").Action<{
752
+ firstName: {
753
+ id: string;
754
+ label: string;
755
+ description: string;
756
+ type: import("@awell-health/extensions-core").FieldType.STRING;
757
+ required: true;
758
+ };
759
+ lastName: {
760
+ id: string;
761
+ label: string;
762
+ description: string;
763
+ type: import("@awell-health/extensions-core").FieldType.STRING;
764
+ required: true;
765
+ };
766
+ dateOfBirth: {
767
+ id: string;
768
+ label: string;
769
+ description: string;
770
+ type: import("@awell-health/extensions-core").FieldType.DATE;
771
+ required: true;
772
+ };
773
+ subgroupId: {
774
+ id: string;
775
+ label: string;
776
+ description: string;
777
+ type: import("@awell-health/extensions-core").FieldType.STRING;
778
+ required: true;
779
+ };
780
+ thirdPartyIdentifier: {
781
+ id: string;
782
+ label: string;
783
+ description: string;
784
+ type: import("@awell-health/extensions-core").FieldType.STRING;
785
+ required: true;
786
+ };
787
+ }, {
788
+ platformApiUrl: {
789
+ key: string;
790
+ label: string;
791
+ obfuscated: false;
792
+ required: false;
793
+ description: string;
794
+ };
795
+ platformApiKey: {
796
+ key: string;
797
+ label: string;
798
+ obfuscated: true;
799
+ required: false;
800
+ description: string;
801
+ };
802
+ apiUrl: {
803
+ key: string;
804
+ label: string;
805
+ obfuscated: false;
806
+ required: true;
807
+ description: string;
808
+ };
809
+ apiKey: {
810
+ key: string;
811
+ label: string;
812
+ obfuscated: true;
813
+ required: true;
814
+ description: string;
815
+ };
816
+ selectEventTypeQuestion: {
817
+ key: string;
818
+ label: string;
819
+ obfuscated: false;
820
+ required: false;
821
+ description: string;
822
+ };
823
+ startSendingRemindersQuestions: {
824
+ key: string;
825
+ label: string;
826
+ obfuscated: false;
827
+ required: false;
828
+ description: string;
829
+ };
830
+ memberEventFormId: {
831
+ key: string;
832
+ label: string;
833
+ obfuscated: false;
834
+ required: false;
835
+ description: string;
836
+ };
837
+ flourishApiUrl: {
838
+ key: string;
839
+ label: string;
840
+ obfuscated: false;
841
+ required: false;
842
+ description: string;
843
+ };
844
+ flourishApiKey: {
845
+ key: string;
846
+ label: string;
847
+ obfuscated: true;
848
+ required: false;
849
+ description: string;
850
+ };
851
+ flourishClientExtId: {
852
+ key: string;
853
+ label: string;
854
+ obfuscated: false;
855
+ required: false;
856
+ description: string;
857
+ };
858
+ }, "createSuccessful", never>;
751
859
  };
@@ -8,6 +8,7 @@ const checkForCheckInOverride_1 = require("./checkForCheckInOverride/checkForChe
8
8
  const insertMemberListEvent_1 = require("./insertMemberListEvent/insertMemberListEvent");
9
9
  const checkFlourishCustomer_1 = require("./checkFlourishCustomer/checkFlourishCustomer");
10
10
  const submitPamSurvey_1 = require("./submitPamSurvey/submitPamSurvey");
11
+ const createFlourishCustomer_1 = require("./createFlourishCustomer/createFlourishCustomer");
11
12
  exports.actions = {
12
13
  checkForOverride: checkForOverride_1.checkForOverride,
13
14
  checkForScheduledAppointment: checkForScheduledAppointment_1.checkForScheduledAppointment,
@@ -15,6 +16,7 @@ exports.actions = {
15
16
  checkForCheckInOverride: checkForCheckInOverride_1.checkForCheckInOverride,
16
17
  insertMemberListEvent: insertMemberListEvent_1.insertMemberListEvent,
17
18
  checkFlourishCustomer: checkFlourishCustomer_1.checkFlourishCustomer,
18
- submitPamSurvey: submitPamSurvey_1.submitPamSurvey
19
+ submitPamSurvey: submitPamSurvey_1.submitPamSurvey,
20
+ createFlourishCustomer: createFlourishCustomer_1.createFlourishCustomer,
19
21
  };
20
22
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../extensions/wellinks/actions/index.ts"],"names":[],"mappings":";;;AAAA,0EAAsE;AACtE,8GAA0G;AAC1G,8DAA0D;AAC1D,+FAA2F;AAC3F,yFAAqF;AACrF,yFAAqF;AACrF,uEAAmE;AACtD,QAAA,OAAO,GAAG;IACrB,gBAAgB,EAAhB,mCAAgB;IAChB,4BAA4B,EAA5B,2DAA4B;IAC5B,YAAY,EAAZ,2BAAY;IACZ,uBAAuB,EAAvB,iDAAuB;IACvB,qBAAqB,EAArB,6CAAqB;IACrB,qBAAqB,EAArB,6CAAqB;IACrB,eAAe,EAAf,iCAAe;CAChB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../extensions/wellinks/actions/index.ts"],"names":[],"mappings":";;;AAAA,0EAAsE;AACtE,8GAA0G;AAC1G,8DAA0D;AAC1D,+FAA2F;AAC3F,yFAAqF;AACrF,yFAAqF;AACrF,uEAAmE;AACnE,4FAAwF;AAC3E,QAAA,OAAO,GAAG;IACrB,gBAAgB,EAAhB,mCAAgB;IAChB,4BAA4B,EAA5B,2DAA4B;IAC5B,YAAY,EAAZ,2BAAY;IACZ,uBAAuB,EAAvB,iDAAuB;IACvB,qBAAqB,EAArB,6CAAqB;IACrB,qBAAqB,EAArB,6CAAqB;IACrB,eAAe,EAAf,iCAAe;IACf,sBAAsB,EAAtB,+CAAsB;CACvB,CAAA"}
@@ -14,7 +14,7 @@ exports.fields = {
14
14
  adminDate: {
15
15
  id: 'adminDate',
16
16
  label: 'Administration Date',
17
- description: 'The date the survey was completed.',
17
+ description: 'The date the survey was completed in YYYY-MM-DD format.',
18
18
  type: extensions_core_1.FieldType.DATE,
19
19
  required: true,
20
20
  },
@@ -139,7 +139,7 @@ exports.FieldsValidationSchema = zod_1.z.object({
139
139
  message: 'Admin date is required and must be of format YYYY-MM-DD',
140
140
  }),
141
141
  })
142
- .regex(/^\d{4}-\d{2}-\d{2}$/),
142
+ .datetime(),
143
143
  thirdPartyIdentifier: zod_1.z.string(),
144
144
  gender: zod_1.z.string(),
145
145
  age: zod_1.z.number(),
@@ -1 +1 @@
1
- {"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../../../extensions/wellinks/actions/submitPamSurvey/config/fields.ts"],"names":[],"mappings":";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,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;CACiC,CAAC,CAAA"}
1
+ {"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../../../extensions/wellinks/actions/submitPamSurvey/config/fields.ts"],"names":[],"mappings":";;;AAAA,6BAAwC;AACxC,mEAAqE;AAExD,QAAA,MAAM,GAAG;IACpB,QAAQ,EAAE;QACR,EAAE,EAAE,UAAU;QACd,KAAK,EAAE,UAAU;QACjB,WAAW,EAAE,2CAA2C;QACxD,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;IACD,SAAS,EAAE;QACT,EAAE,EAAE,WAAW;QACf,KAAK,EAAE,qBAAqB;QAC5B,WAAW,EAAE,yDAAyD;QACtE,IAAI,EAAE,2BAAS,CAAC,IAAI;QACpB,QAAQ,EAAE,IAAI;KACf;IACD,oBAAoB,EAAE;QACpB,EAAE,EAAE,sBAAsB;QAC1B,KAAK,EAAE,wBAAwB;QAC/B,WAAW,EACT,2EAA2E;QAC7E,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;IACD,MAAM,EAAE;QACN,EAAE,EAAE,QAAQ;QACZ,KAAK,EAAE,QAAQ;QACf,WAAW,EAAE,2DAA2D;QACxE,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;IACD,GAAG,EAAE;QACH,EAAE,EAAE,KAAK;QACT,KAAK,EAAE,KAAK;QACZ,WAAW,EAAE,wDAAwD;QACrE,IAAI,EAAE,2BAAS,CAAC,OAAO;QACvB,QAAQ,EAAE,IAAI;KACf;IACD,GAAG,EAAE;QACH,EAAE,EAAE,KAAK;QACT,KAAK,EAAE,MAAM;QACb,WAAW,EAAE,qBAAqB;QAClC,IAAI,EAAE,2BAAS,CAAC,OAAO;QACvB,QAAQ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MAAM,EAAE;IACf,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;CACiC,CAAC,CAAA"}
@@ -44,7 +44,7 @@ describe('Submit PAM Survey', () => {
44
44
  const validPayload = (0, tests_1.generateTestPayload)({
45
45
  fields: {
46
46
  language: 'en',
47
- adminDate: '2023-09-18',
47
+ adminDate: '2020-01-01T00:00:00Z',
48
48
  thirdPartyIdentifier: 'identifier',
49
49
  gender: 'male',
50
50
  age: 25,
@@ -85,7 +85,7 @@ describe('Submit PAM Survey', () => {
85
85
  const validPayload = (0, tests_1.generateTestPayload)({
86
86
  fields: {
87
87
  language: 'en',
88
- adminDate: '2023-09-18',
88
+ adminDate: '2020-01-01T00:00:00Z',
89
89
  thirdPartyIdentifier: 'identifier',
90
90
  gender: 'male',
91
91
  age: 25,
@@ -1 +1 @@
1
- {"version":3,"file":"submitPamSurvey.test.js","sourceRoot":"","sources":["../../../../../extensions/wellinks/actions/submitPamSurvey/submitPamSurvey.test.ts"],"names":[],"mappings":";;AAAA,iDAA2D;AAC3D,+FAG2D;AAE3D,8DAA8D;AAC9D,uDAAmD;AACnD,6BAA8B;AAE9B,IAAI,CAAC,IAAI,CAAC,0CAA0C,EAAE,GAAG,EAAE,CAAC,CAAC;IAC3D,sBAAsB,EAAtB,+CAAsB;CACvB,CAAC,CAAC,CAAA;AAEH,QAAQ,CAAC,mBAAmB,EAAE,GAAG,EAAE;IACjC,MAAM,UAAU,GAAG,IAAI,CAAC,EAAE,EAAE,CAAA;IAC5B,MAAM,OAAO,GA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CAAC;gBACN,GAAG,EAAE,CAAC;gBACN,IAAI,EAAE,EAAE;gBACR,IAAI,EAAE,EAAE;gBACR,IAAI,EAAE,EAAE;gBACR,IAAI,EAAE,EAAE;aACT;YACD,QAAQ,EAAE,uBAAY;SACvB,CAAC,CAAA;QAEF,iEAAwC,CAAC,MAAM,CAAC,MAAM,CAAC,sBAAsB,CAC3E,GAAG,EAAE;YACH,MAAM,IAAI,KAAK,CAAC,YAAY,CAAC,CAAA;QAC/B,CAAC,CACF,CAAA;QACD,MAAM,iCAAe,CAAC,iBAAiB,CAAC,YAAY,EAAE,UAAU,EAAE,OAAO,CAAC,CAAA;QAC1E,MAAM,CAAC,OAAO,CAAC,CAAC,uBAAuB,CAAC,CAAC,EAAE;YACzC,MAAM,EAAE,MAAM,CAAC,eAAe,CAAC;gBAC7B,MAAM,CAAC,gBAAgB,CAAC;oBACtB,KAAK,EAAE;wBACL,QAAQ,EAAE,cAAc;wBACxB,OAAO,EAAE,YAAY;qBACtB;iBACF,CAAC;aACH,CAAC;SACH,CAAC,CAAA;QACF,MAAM,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,UAAU,EAAE,CAAA;IACrC,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
1
+ {"version":3,"file":"submitPamSurvey.test.js","sourceRoot":"","sources":["../../../../../extensions/wellinks/actions/submitPamSurvey/submitPamSurvey.test.ts"],"names":[],"mappings":";;AAAA,iDAA2D;AAC3D,+FAG2D;AAE3D,8DAA8D;AAC9D,uDAAmD;AACnD,6BAA8B;AAE9B,IAAI,CAAC,IAAI,CAAC,0CAA0C,EAAE,GAAG,EAAE,CAAC,CAAC;IAC3D,sBAAsB,EAAtB,+CAAsB;CACvB,CAAC,CAAC,CAAA;AAEH,QAAQ,CAAC,mBAAmB,EAAE,GAAG,EAAE;IACjC,MAAM,UAAU,GAAG,IAAI,CAAC,EAAE,EAAE,CAAA;IAC5B,MAAM,OAAO,GAAG,IAAI,CAAC,EAAE,EAAE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E,CAAC;gBACN,IAAI,EAAE,EAAE;gBACR,IAAI,EAAE,EAAE;gBACR,IAAI,EAAE,EAAE;gBACR,IAAI,EAAE,EAAE;aACT;YACD,QAAQ,EAAE,uBAAY;SACvB,CAAC,CAAA;QAEF,iEAAwC,CAAC,MAAM,CAAC,MAAM,CAAC,sBAAsB,CAC3E,GAAG,EAAE;YACH,MAAM,IAAI,KAAK,CAAC,YAAY,CAAC,CAAA;QAC/B,CAAC,CACF,CAAA;QACD,MAAM,iCAAe,CAAC,iBAAiB,CAAC,YAAY,EAAE,UAAU,EAAE,OAAO,CAAC,CAAA;QAC1E,MAAM,CAAC,OAAO,CAAC,CAAC,uBAAuB,CAAC,CAAC,EAAE;YACzC,MAAM,EAAE,MAAM,CAAC,eAAe,CAAC;gBAC7B,MAAM,CAAC,gBAAgB,CAAC;oBACtB,KAAK,EAAE;wBACL,QAAQ,EAAE,cAAc;wBACxB,OAAO,EAAE,YAAY;qBACtB;iBACF,CAAC;aACH,CAAC;SACH,CAAC,CAAA;QACF,MAAM,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,UAAU,EAAE,CAAA;IACrC,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
@@ -5,6 +5,7 @@ export declare class WellinksFlourishClient {
5
5
  private readonly _clientextid;
6
6
  constructor(apiUrl: string, apiKey: string, clientextid: string);
7
7
  readonly user: {
8
+ create: (firstName: string, lastName: string, dateOfBirth: string, subgroupId: string, thirdPartyIdentifier: string) => Promise<boolean>;
8
9
  exists: (identifier: string) => Promise<boolean>;
9
10
  };
10
11
  readonly survey: {