@awell-health/awell-extensions 1.0.100 → 1.0.102
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/markdown.json +2 -2
- package/dist/extensions/wellinks/actions/checkFlourishCustomer/checkFlourishCustomer.d.ts +1 -1
- package/dist/extensions/wellinks/actions/checkFlourishCustomer/checkFlourishCustomer.js +1 -2
- package/dist/extensions/wellinks/actions/checkFlourishCustomer/checkFlourishCustomer.js.map +1 -1
- package/dist/extensions/wellinks/actions/checkFlourishCustomer/checkFlourishCustomer.test.js +5 -3
- package/dist/extensions/wellinks/actions/checkFlourishCustomer/checkFlourishCustomer.test.js.map +1 -1
- package/dist/extensions/wellinks/actions/checkForChat/checkForChat.d.ts +1 -1
- package/dist/extensions/wellinks/actions/checkForChat/checkForChat.js +9 -7
- package/dist/extensions/wellinks/actions/checkForChat/checkForChat.js.map +1 -1
- package/dist/extensions/wellinks/actions/checkForChat/checkForChat.test.js +2 -2
- package/dist/extensions/wellinks/actions/checkForChat/checkForChat.test.js.map +1 -1
- package/dist/extensions/wellinks/actions/checkForCheckInOverride/checkForCheckInOverride.d.ts +1 -1
- package/dist/extensions/wellinks/actions/checkForCheckInOverride/checkForCheckInOverride.js +12 -6
- package/dist/extensions/wellinks/actions/checkForCheckInOverride/checkForCheckInOverride.js.map +1 -1
- package/dist/extensions/wellinks/actions/checkForCheckInOverride/checkForCheckInOverride.test.js +2 -2
- package/dist/extensions/wellinks/actions/checkForCheckInOverride/checkForCheckInOverride.test.js.map +1 -1
- package/dist/extensions/wellinks/actions/checkForOverride/checkForOverride.d.ts +1 -1
- package/dist/extensions/wellinks/actions/checkForOverride/checkForOverride.js +16 -7
- package/dist/extensions/wellinks/actions/checkForOverride/checkForOverride.js.map +1 -1
- package/dist/extensions/wellinks/actions/checkForOverride/checkForOverride.test.js +2 -2
- package/dist/extensions/wellinks/actions/checkForOverride/checkForOverride.test.js.map +1 -1
- package/dist/extensions/wellinks/actions/checkForScheduledAppointment/checkForScheduledAppointment.d.ts +1 -1
- package/dist/extensions/wellinks/actions/checkForScheduledAppointment/checkForScheduledAppointment.js +1 -1
- package/dist/extensions/wellinks/actions/checkForScheduledAppointment/checkForScheduledAppointment.js.map +1 -1
- package/dist/extensions/wellinks/actions/checkForScheduledAppointment/checkForScheduledAppointment.test.js +2 -2
- package/dist/extensions/wellinks/actions/checkForScheduledAppointment/checkForScheduledAppointment.test.js.map +1 -1
- package/dist/extensions/wellinks/actions/index.d.ts +199 -0
- package/dist/extensions/wellinks/actions/index.js +2 -0
- package/dist/extensions/wellinks/actions/index.js.map +1 -1
- package/dist/extensions/wellinks/actions/insertMemberListEvent/insertMemberListEvent.d.ts +1 -1
- package/dist/extensions/wellinks/actions/insertMemberListEvent/insertMemberListEvent.js +1 -1
- package/dist/extensions/wellinks/actions/insertMemberListEvent/insertMemberListEvent.js.map +1 -1
- package/dist/extensions/wellinks/actions/insertMemberListEvent/insertMemberListEvent.test.js +3 -3
- package/dist/extensions/wellinks/actions/insertMemberListEvent/insertMemberListEvent.test.js.map +1 -1
- package/dist/extensions/wellinks/actions/submitPamSurvey/config/fields.d.ts +188 -0
- package/dist/extensions/wellinks/actions/submitPamSurvey/config/fields.js +160 -0
- package/dist/extensions/wellinks/actions/submitPamSurvey/config/fields.js.map +1 -0
- package/dist/extensions/wellinks/actions/submitPamSurvey/config/index.d.ts +2 -0
- package/dist/extensions/wellinks/actions/submitPamSurvey/config/index.js +9 -0
- package/dist/extensions/wellinks/actions/submitPamSurvey/config/index.js.map +1 -0
- package/dist/extensions/wellinks/actions/submitPamSurvey/config/settings.d.ts +35 -0
- package/dist/extensions/wellinks/actions/submitPamSurvey/config/settings.js +17 -0
- package/dist/extensions/wellinks/actions/submitPamSurvey/config/settings.js.map +1 -0
- package/dist/extensions/wellinks/actions/submitPamSurvey/submitPamSurvey.d.ts +19 -0
- package/dist/extensions/wellinks/actions/submitPamSurvey/submitPamSurvey.js +66 -0
- package/dist/extensions/wellinks/actions/submitPamSurvey/submitPamSurvey.js.map +1 -0
- package/dist/extensions/wellinks/actions/submitPamSurvey/submitPamSurvey.test.d.ts +1 -0
- package/dist/extensions/wellinks/actions/submitPamSurvey/submitPamSurvey.test.js +125 -0
- package/dist/extensions/wellinks/actions/submitPamSurvey/submitPamSurvey.test.js.map +1 -0
- package/dist/extensions/wellinks/api/clients/wellinksClient.js.map +1 -0
- package/dist/extensions/wellinks/api/clients/wellinksFlourishClient.d.ts +13 -0
- package/dist/extensions/wellinks/api/clients/wellinksFlourishClient.js +154 -0
- package/dist/extensions/wellinks/api/clients/wellinksFlourishClient.js.map +1 -0
- package/dist/extensions/wellinks/{wellinksGraphqlClient.d.ts → api/clients/wellinksGraphqlClient.d.ts} +1 -1
- package/dist/extensions/wellinks/api/clients/wellinksGraphqlClient.js.map +1 -0
- package/dist/extensions/wellinks/api/test/wellinksFlourishClient.test.d.ts +1 -0
- package/dist/extensions/wellinks/api/test/wellinksFlourishClient.test.js +136 -0
- package/dist/extensions/wellinks/api/test/wellinksFlourishClient.test.js.map +1 -0
- package/dist/extensions/wellinks/config/settings.js.map +1 -0
- package/dist/extensions/wellinks/config/types.d.ts +5 -0
- package/dist/extensions/wellinks/config/types.js +3 -0
- package/dist/extensions/wellinks/config/types.js.map +1 -0
- package/dist/extensions/wellinks/index.js +1 -1
- package/dist/extensions/wellinks/index.js.map +1 -1
- package/package.json +3 -3
- package/dist/extensions/wellinks/settings.js.map +0 -1
- package/dist/extensions/wellinks/wellinksClient.js.map +0 -1
- package/dist/extensions/wellinks/wellinksFlourishClient.d.ts +0 -9
- package/dist/extensions/wellinks/wellinksFlourishClient.js +0 -79
- package/dist/extensions/wellinks/wellinksFlourishClient.js.map +0 -1
- package/dist/extensions/wellinks/wellinksGraphqlClient.js.map +0 -1
- package/dist/extensions/wellinks/wellinksSendgridClient.d.ts +0 -7
- package/dist/extensions/wellinks/wellinksSendgridClient.js +0 -28
- package/dist/extensions/wellinks/wellinksSendgridClient.js.map +0 -1
- /package/dist/extensions/wellinks/{wellinksClient.d.ts → api/clients/wellinksClient.d.ts} +0 -0
- /package/dist/extensions/wellinks/{wellinksClient.js → api/clients/wellinksClient.js} +0 -0
- /package/dist/extensions/wellinks/{wellinksGraphqlClient.js → api/clients/wellinksGraphqlClient.js} +0 -0
- /package/dist/extensions/wellinks/{settings.d.ts → config/settings.d.ts} +0 -0
- /package/dist/extensions/wellinks/{settings.js → config/settings.js} +0 -0
@@ -549,4 +549,203 @@ export declare const actions: {
|
|
549
549
|
description: string;
|
550
550
|
};
|
551
551
|
}, "userExists", never>;
|
552
|
+
submitPamSurvey: import("@awell-health/extensions-core").Action<{
|
553
|
+
language: {
|
554
|
+
id: string;
|
555
|
+
label: string;
|
556
|
+
description: string;
|
557
|
+
type: import("@awell-health/extensions-core").FieldType.STRING;
|
558
|
+
required: true;
|
559
|
+
};
|
560
|
+
adminDate: {
|
561
|
+
id: string;
|
562
|
+
label: string;
|
563
|
+
description: string;
|
564
|
+
type: import("@awell-health/extensions-core").FieldType.DATE;
|
565
|
+
required: true;
|
566
|
+
};
|
567
|
+
thirdPartyIdentifier: {
|
568
|
+
id: string;
|
569
|
+
label: string;
|
570
|
+
description: string;
|
571
|
+
type: import("@awell-health/extensions-core").FieldType.STRING;
|
572
|
+
required: true;
|
573
|
+
};
|
574
|
+
gender: {
|
575
|
+
id: string;
|
576
|
+
label: string;
|
577
|
+
description: string;
|
578
|
+
type: import("@awell-health/extensions-core").FieldType.STRING;
|
579
|
+
required: true;
|
580
|
+
};
|
581
|
+
age: {
|
582
|
+
id: string;
|
583
|
+
label: string;
|
584
|
+
description: string;
|
585
|
+
type: import("@awell-health/extensions-core").FieldType.NUMERIC;
|
586
|
+
required: true;
|
587
|
+
};
|
588
|
+
pa1: {
|
589
|
+
id: string;
|
590
|
+
label: string;
|
591
|
+
description: string;
|
592
|
+
type: import("@awell-health/extensions-core").FieldType.NUMERIC;
|
593
|
+
required: true;
|
594
|
+
};
|
595
|
+
pa2: {
|
596
|
+
id: string;
|
597
|
+
label: string;
|
598
|
+
description: string;
|
599
|
+
type: import("@awell-health/extensions-core").FieldType.NUMERIC;
|
600
|
+
required: true;
|
601
|
+
};
|
602
|
+
pa3: {
|
603
|
+
id: string;
|
604
|
+
label: string;
|
605
|
+
description: string;
|
606
|
+
type: import("@awell-health/extensions-core").FieldType.NUMERIC;
|
607
|
+
required: true;
|
608
|
+
};
|
609
|
+
pa4: {
|
610
|
+
id: string;
|
611
|
+
label: string;
|
612
|
+
description: string;
|
613
|
+
type: import("@awell-health/extensions-core").FieldType.NUMERIC;
|
614
|
+
required: true;
|
615
|
+
};
|
616
|
+
pa5: {
|
617
|
+
id: string;
|
618
|
+
label: string;
|
619
|
+
description: string;
|
620
|
+
type: import("@awell-health/extensions-core").FieldType.NUMERIC;
|
621
|
+
required: true;
|
622
|
+
};
|
623
|
+
pa6: {
|
624
|
+
id: string;
|
625
|
+
label: string;
|
626
|
+
description: string;
|
627
|
+
type: import("@awell-health/extensions-core").FieldType.NUMERIC;
|
628
|
+
required: true;
|
629
|
+
};
|
630
|
+
pa7: {
|
631
|
+
id: string;
|
632
|
+
label: string;
|
633
|
+
description: string;
|
634
|
+
type: import("@awell-health/extensions-core").FieldType.NUMERIC;
|
635
|
+
required: true;
|
636
|
+
};
|
637
|
+
pa8: {
|
638
|
+
id: string;
|
639
|
+
label: string;
|
640
|
+
description: string;
|
641
|
+
type: import("@awell-health/extensions-core").FieldType.NUMERIC;
|
642
|
+
required: true;
|
643
|
+
};
|
644
|
+
pa9: {
|
645
|
+
id: string;
|
646
|
+
label: string;
|
647
|
+
description: string;
|
648
|
+
type: import("@awell-health/extensions-core").FieldType.NUMERIC;
|
649
|
+
required: true;
|
650
|
+
};
|
651
|
+
pa10: {
|
652
|
+
id: string;
|
653
|
+
label: string;
|
654
|
+
description: string;
|
655
|
+
type: import("@awell-health/extensions-core").FieldType.NUMERIC;
|
656
|
+
required: true;
|
657
|
+
};
|
658
|
+
pa11: {
|
659
|
+
id: string;
|
660
|
+
label: string;
|
661
|
+
description: string;
|
662
|
+
type: import("@awell-health/extensions-core").FieldType.NUMERIC;
|
663
|
+
required: true;
|
664
|
+
};
|
665
|
+
pa12: {
|
666
|
+
id: string;
|
667
|
+
label: string;
|
668
|
+
description: string;
|
669
|
+
type: import("@awell-health/extensions-core").FieldType.NUMERIC;
|
670
|
+
required: true;
|
671
|
+
};
|
672
|
+
pa13: {
|
673
|
+
id: string;
|
674
|
+
label: string;
|
675
|
+
description: string;
|
676
|
+
type: import("@awell-health/extensions-core").FieldType.NUMERIC;
|
677
|
+
required: true;
|
678
|
+
};
|
679
|
+
}, {
|
680
|
+
platformApiUrl: {
|
681
|
+
key: string;
|
682
|
+
label: string;
|
683
|
+
obfuscated: false;
|
684
|
+
required: false;
|
685
|
+
description: string;
|
686
|
+
};
|
687
|
+
platformApiKey: {
|
688
|
+
key: string;
|
689
|
+
label: string;
|
690
|
+
obfuscated: true;
|
691
|
+
required: false;
|
692
|
+
description: string;
|
693
|
+
};
|
694
|
+
apiUrl: {
|
695
|
+
key: string;
|
696
|
+
label: string;
|
697
|
+
obfuscated: false;
|
698
|
+
required: true;
|
699
|
+
description: string;
|
700
|
+
};
|
701
|
+
apiKey: {
|
702
|
+
key: string;
|
703
|
+
label: string;
|
704
|
+
obfuscated: true;
|
705
|
+
required: true;
|
706
|
+
description: string;
|
707
|
+
};
|
708
|
+
selectEventTypeQuestion: {
|
709
|
+
key: string;
|
710
|
+
label: string;
|
711
|
+
obfuscated: false;
|
712
|
+
required: false;
|
713
|
+
description: string;
|
714
|
+
};
|
715
|
+
startSendingRemindersQuestions: {
|
716
|
+
key: string;
|
717
|
+
label: string;
|
718
|
+
obfuscated: false;
|
719
|
+
required: false;
|
720
|
+
description: string;
|
721
|
+
};
|
722
|
+
memberEventFormId: {
|
723
|
+
key: string;
|
724
|
+
label: string;
|
725
|
+
obfuscated: false;
|
726
|
+
required: false;
|
727
|
+
description: string;
|
728
|
+
};
|
729
|
+
flourishApiUrl: {
|
730
|
+
key: string;
|
731
|
+
label: string;
|
732
|
+
obfuscated: false;
|
733
|
+
required: false;
|
734
|
+
description: string;
|
735
|
+
};
|
736
|
+
flourishApiKey: {
|
737
|
+
key: string;
|
738
|
+
label: string;
|
739
|
+
obfuscated: true;
|
740
|
+
required: false;
|
741
|
+
description: string;
|
742
|
+
};
|
743
|
+
flourishClientExtId: {
|
744
|
+
key: string;
|
745
|
+
label: string;
|
746
|
+
obfuscated: false;
|
747
|
+
required: false;
|
748
|
+
description: string;
|
749
|
+
};
|
750
|
+
}, "success" | "pamLevel" | "pamScore", never>;
|
552
751
|
};
|
@@ -7,6 +7,7 @@ const checkForChat_1 = require("./checkForChat/checkForChat");
|
|
7
7
|
const checkForCheckInOverride_1 = require("./checkForCheckInOverride/checkForCheckInOverride");
|
8
8
|
const insertMemberListEvent_1 = require("./insertMemberListEvent/insertMemberListEvent");
|
9
9
|
const checkFlourishCustomer_1 = require("./checkFlourishCustomer/checkFlourishCustomer");
|
10
|
+
const submitPamSurvey_1 = require("./submitPamSurvey/submitPamSurvey");
|
10
11
|
exports.actions = {
|
11
12
|
checkForOverride: checkForOverride_1.checkForOverride,
|
12
13
|
checkForScheduledAppointment: checkForScheduledAppointment_1.checkForScheduledAppointment,
|
@@ -14,5 +15,6 @@ exports.actions = {
|
|
14
15
|
checkForCheckInOverride: checkForCheckInOverride_1.checkForCheckInOverride,
|
15
16
|
insertMemberListEvent: insertMemberListEvent_1.insertMemberListEvent,
|
16
17
|
checkFlourishCustomer: checkFlourishCustomer_1.checkFlourishCustomer,
|
18
|
+
submitPamSurvey: submitPamSurvey_1.submitPamSurvey
|
17
19
|
};
|
18
20
|
//# 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;
|
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"}
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.insertMemberListEvent = void 0;
|
4
4
|
const extensions_core_1 = require("@awell-health/extensions-core");
|
5
5
|
const extensions_core_2 = require("@awell-health/extensions-core");
|
6
|
-
const wellinksClient_1 = require("../../wellinksClient");
|
6
|
+
const wellinksClient_1 = require("../../api/clients/wellinksClient");
|
7
7
|
const lodash_1 = require("lodash");
|
8
8
|
const fields = {
|
9
9
|
eventName: {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"insertMemberListEvent.js","sourceRoot":"","sources":["../../../../../extensions/wellinks/actions/insertMemberListEvent/insertMemberListEvent.ts"],"names":[],"mappings":";;;AAAA,mEAMsC;AACtC,mEAAwD;AAExD,
|
1
|
+
{"version":3,"file":"insertMemberListEvent.js","sourceRoot":"","sources":["../../../../../extensions/wellinks/actions/insertMemberListEvent/insertMemberListEvent.ts"],"names":[],"mappings":";;;AAAA,mEAMsC;AACtC,mEAAwD;AAExD,qEAAiE;AACjE,mCAA8B;AAE9B,MAAM,MAAM,GAAG;IACb,SAAS,EAAE;QACT,EAAE,EAAE,WAAW;QACf,KAAK,EAAE,YAAY;QACnB,WAAW,EACT,0EAA0E;QAC5E,IAAI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insertMemberListEvent/insertMemberListEvent.test.js
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const tests_1 = require("../../../../src/tests");
|
4
|
-
const wellinksClient_1 = require("../../__mocks__/wellinksClient");
|
5
|
-
const settings_1 = require("../../__mocks__/settings");
|
4
|
+
const wellinksClient_1 = require("../../api/clients/__mocks__/wellinksClient");
|
5
|
+
const settings_1 = require("../../__mocks__/config/settings");
|
6
6
|
const insertMemberListEvent_1 = require("./insertMemberListEvent");
|
7
|
-
jest.mock('../../wellinksClient', () => ({ WellinksClient: wellinksClient_1.WellinksClient }));
|
7
|
+
jest.mock('../../api/clients/wellinksClient', () => ({ WellinksClient: wellinksClient_1.WellinksClient }));
|
8
8
|
describe('Insert Member List Event', () => {
|
9
9
|
const onComplete = jest.fn();
|
10
10
|
const onError = jest.fn();
|
package/dist/extensions/wellinks/actions/insertMemberListEvent/insertMemberListEvent.test.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"insertMemberListEvent.test.js","sourceRoot":"","sources":["../../../../../extensions/wellinks/actions/insertMemberListEvent/insertMemberListEvent.test.ts"],"names":[],"mappings":";;AAAA,iDAA2D;AAC3D
|
1
|
+
{"version":3,"file":"insertMemberListEvent.test.js","sourceRoot":"","sources":["../../../../../extensions/wellinks/actions/insertMemberListEvent/insertMemberListEvent.test.ts"],"names":[],"mappings":";;AAAA,iDAA2D;AAC3D,+EAGmD;AACnD,8DAA8D;AAC9D,mEAA+D;AAE/D,IAAI,CAAC,IAAI,CAAC,kCAAkC,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,cAAc,EAAd,+BAAc,EAAE,CAAC,CAAC,CAAA;AAEzE,QAAQ,CAAC,0BAA0B,EAAE,GAAG,EAAE;IACxC,MAAM,UAAU,GAAG,IAAI,CAAC,EAAE,EAAE,CAAA;IAC5B,MAAM,OAAO,GAAG,IAAI,CAAC,EAAE,E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C,cAAc,EACd,UAAU,EACV,OAAO,CACR,CAAA;QACD,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,EACL,4DAA4D;qBAC/D;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"}
|
@@ -0,0 +1,188 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
import { FieldType } from '@awell-health/extensions-core';
|
3
|
+
export declare const fields: {
|
4
|
+
language: {
|
5
|
+
id: string;
|
6
|
+
label: string;
|
7
|
+
description: string;
|
8
|
+
type: FieldType.STRING;
|
9
|
+
required: true;
|
10
|
+
};
|
11
|
+
adminDate: {
|
12
|
+
id: string;
|
13
|
+
label: string;
|
14
|
+
description: string;
|
15
|
+
type: FieldType.DATE;
|
16
|
+
required: true;
|
17
|
+
};
|
18
|
+
thirdPartyIdentifier: {
|
19
|
+
id: string;
|
20
|
+
label: string;
|
21
|
+
description: string;
|
22
|
+
type: FieldType.STRING;
|
23
|
+
required: true;
|
24
|
+
};
|
25
|
+
gender: {
|
26
|
+
id: string;
|
27
|
+
label: string;
|
28
|
+
description: string;
|
29
|
+
type: FieldType.STRING;
|
30
|
+
required: true;
|
31
|
+
};
|
32
|
+
age: {
|
33
|
+
id: string;
|
34
|
+
label: string;
|
35
|
+
description: string;
|
36
|
+
type: FieldType.NUMERIC;
|
37
|
+
required: true;
|
38
|
+
};
|
39
|
+
pa1: {
|
40
|
+
id: string;
|
41
|
+
label: string;
|
42
|
+
description: string;
|
43
|
+
type: FieldType.NUMERIC;
|
44
|
+
required: true;
|
45
|
+
};
|
46
|
+
pa2: {
|
47
|
+
id: string;
|
48
|
+
label: string;
|
49
|
+
description: string;
|
50
|
+
type: FieldType.NUMERIC;
|
51
|
+
required: true;
|
52
|
+
};
|
53
|
+
pa3: {
|
54
|
+
id: string;
|
55
|
+
label: string;
|
56
|
+
description: string;
|
57
|
+
type: FieldType.NUMERIC;
|
58
|
+
required: true;
|
59
|
+
};
|
60
|
+
pa4: {
|
61
|
+
id: string;
|
62
|
+
label: string;
|
63
|
+
description: string;
|
64
|
+
type: FieldType.NUMERIC;
|
65
|
+
required: true;
|
66
|
+
};
|
67
|
+
pa5: {
|
68
|
+
id: string;
|
69
|
+
label: string;
|
70
|
+
description: string;
|
71
|
+
type: FieldType.NUMERIC;
|
72
|
+
required: true;
|
73
|
+
};
|
74
|
+
pa6: {
|
75
|
+
id: string;
|
76
|
+
label: string;
|
77
|
+
description: string;
|
78
|
+
type: FieldType.NUMERIC;
|
79
|
+
required: true;
|
80
|
+
};
|
81
|
+
pa7: {
|
82
|
+
id: string;
|
83
|
+
label: string;
|
84
|
+
description: string;
|
85
|
+
type: FieldType.NUMERIC;
|
86
|
+
required: true;
|
87
|
+
};
|
88
|
+
pa8: {
|
89
|
+
id: string;
|
90
|
+
label: string;
|
91
|
+
description: string;
|
92
|
+
type: FieldType.NUMERIC;
|
93
|
+
required: true;
|
94
|
+
};
|
95
|
+
pa9: {
|
96
|
+
id: string;
|
97
|
+
label: string;
|
98
|
+
description: string;
|
99
|
+
type: FieldType.NUMERIC;
|
100
|
+
required: true;
|
101
|
+
};
|
102
|
+
pa10: {
|
103
|
+
id: string;
|
104
|
+
label: string;
|
105
|
+
description: string;
|
106
|
+
type: FieldType.NUMERIC;
|
107
|
+
required: true;
|
108
|
+
};
|
109
|
+
pa11: {
|
110
|
+
id: string;
|
111
|
+
label: string;
|
112
|
+
description: string;
|
113
|
+
type: FieldType.NUMERIC;
|
114
|
+
required: true;
|
115
|
+
};
|
116
|
+
pa12: {
|
117
|
+
id: string;
|
118
|
+
label: string;
|
119
|
+
description: string;
|
120
|
+
type: FieldType.NUMERIC;
|
121
|
+
required: true;
|
122
|
+
};
|
123
|
+
pa13: {
|
124
|
+
id: string;
|
125
|
+
label: string;
|
126
|
+
description: string;
|
127
|
+
type: FieldType.NUMERIC;
|
128
|
+
required: true;
|
129
|
+
};
|
130
|
+
};
|
131
|
+
export declare const FieldsValidationSchema: z.ZodObject<{
|
132
|
+
language: z.ZodString;
|
133
|
+
adminDate: z.ZodString;
|
134
|
+
thirdPartyIdentifier: z.ZodString;
|
135
|
+
gender: z.ZodString;
|
136
|
+
age: z.ZodNumber;
|
137
|
+
pa1: z.ZodNumber;
|
138
|
+
pa2: z.ZodNumber;
|
139
|
+
pa3: z.ZodNumber;
|
140
|
+
pa4: z.ZodNumber;
|
141
|
+
pa5: z.ZodNumber;
|
142
|
+
pa6: z.ZodNumber;
|
143
|
+
pa7: z.ZodNumber;
|
144
|
+
pa8: z.ZodNumber;
|
145
|
+
pa9: z.ZodNumber;
|
146
|
+
pa10: z.ZodNumber;
|
147
|
+
pa11: z.ZodNumber;
|
148
|
+
pa12: z.ZodNumber;
|
149
|
+
pa13: z.ZodNumber;
|
150
|
+
}, "strip", z.ZodTypeAny, {
|
151
|
+
language: string;
|
152
|
+
age: number;
|
153
|
+
gender: string;
|
154
|
+
adminDate: string;
|
155
|
+
thirdPartyIdentifier: string;
|
156
|
+
pa1: number;
|
157
|
+
pa2: number;
|
158
|
+
pa3: number;
|
159
|
+
pa4: number;
|
160
|
+
pa5: number;
|
161
|
+
pa6: number;
|
162
|
+
pa7: number;
|
163
|
+
pa8: number;
|
164
|
+
pa9: number;
|
165
|
+
pa10: number;
|
166
|
+
pa11: number;
|
167
|
+
pa12: number;
|
168
|
+
pa13: number;
|
169
|
+
}, {
|
170
|
+
language: string;
|
171
|
+
age: number;
|
172
|
+
gender: string;
|
173
|
+
adminDate: string;
|
174
|
+
thirdPartyIdentifier: string;
|
175
|
+
pa1: number;
|
176
|
+
pa2: number;
|
177
|
+
pa3: number;
|
178
|
+
pa4: number;
|
179
|
+
pa5: number;
|
180
|
+
pa6: number;
|
181
|
+
pa7: number;
|
182
|
+
pa8: number;
|
183
|
+
pa9: number;
|
184
|
+
pa10: number;
|
185
|
+
pa11: number;
|
186
|
+
pa12: number;
|
187
|
+
pa13: number;
|
188
|
+
}>;
|
@@ -0,0 +1,160 @@
|
|
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
|
+
language: {
|
8
|
+
id: 'language',
|
9
|
+
label: 'language',
|
10
|
+
description: 'The language the survey was completed in.',
|
11
|
+
type: extensions_core_1.FieldType.STRING,
|
12
|
+
required: true,
|
13
|
+
},
|
14
|
+
adminDate: {
|
15
|
+
id: 'adminDate',
|
16
|
+
label: 'Administration Date',
|
17
|
+
description: 'The date the survey was completed.',
|
18
|
+
type: extensions_core_1.FieldType.DATE,
|
19
|
+
required: true,
|
20
|
+
},
|
21
|
+
thirdPartyIdentifier: {
|
22
|
+
id: 'thirdPartyIdentifier',
|
23
|
+
label: 'Third Party Identifier',
|
24
|
+
description: 'The (external) identifier for the user for whom the survey was completed.',
|
25
|
+
type: extensions_core_1.FieldType.STRING,
|
26
|
+
required: true,
|
27
|
+
},
|
28
|
+
gender: {
|
29
|
+
id: 'gender',
|
30
|
+
label: 'Gender',
|
31
|
+
description: 'The gender of the user for whom the survey was completed.',
|
32
|
+
type: extensions_core_1.FieldType.STRING,
|
33
|
+
required: true,
|
34
|
+
},
|
35
|
+
age: {
|
36
|
+
id: 'age',
|
37
|
+
label: 'Age',
|
38
|
+
description: 'The age of the user for whom the survey was completed.',
|
39
|
+
type: extensions_core_1.FieldType.NUMERIC,
|
40
|
+
required: true,
|
41
|
+
},
|
42
|
+
pa1: {
|
43
|
+
id: 'pa1',
|
44
|
+
label: 'PA 1',
|
45
|
+
description: 'The answer to PA 1.',
|
46
|
+
type: extensions_core_1.FieldType.NUMERIC,
|
47
|
+
required: true,
|
48
|
+
},
|
49
|
+
pa2: {
|
50
|
+
id: 'pa2',
|
51
|
+
label: 'PA 2',
|
52
|
+
description: 'The answer to PA 2.',
|
53
|
+
type: extensions_core_1.FieldType.NUMERIC,
|
54
|
+
required: true,
|
55
|
+
},
|
56
|
+
pa3: {
|
57
|
+
id: 'pa3',
|
58
|
+
label: 'PA 3',
|
59
|
+
description: 'The answer to PA 3.',
|
60
|
+
type: extensions_core_1.FieldType.NUMERIC,
|
61
|
+
required: true,
|
62
|
+
},
|
63
|
+
pa4: {
|
64
|
+
id: 'pa4',
|
65
|
+
label: 'PA 4',
|
66
|
+
description: 'The answer to PA 4.',
|
67
|
+
type: extensions_core_1.FieldType.NUMERIC,
|
68
|
+
required: true,
|
69
|
+
},
|
70
|
+
pa5: {
|
71
|
+
id: 'pa5',
|
72
|
+
label: 'PA 5',
|
73
|
+
description: 'The answer to PA 5.',
|
74
|
+
type: extensions_core_1.FieldType.NUMERIC,
|
75
|
+
required: true,
|
76
|
+
},
|
77
|
+
pa6: {
|
78
|
+
id: 'pa6',
|
79
|
+
label: 'PA 6',
|
80
|
+
description: 'The answer to PA 6.',
|
81
|
+
type: extensions_core_1.FieldType.NUMERIC,
|
82
|
+
required: true,
|
83
|
+
},
|
84
|
+
pa7: {
|
85
|
+
id: 'pa7',
|
86
|
+
label: 'PA 7',
|
87
|
+
description: 'The answer to PA 7.',
|
88
|
+
type: extensions_core_1.FieldType.NUMERIC,
|
89
|
+
required: true,
|
90
|
+
},
|
91
|
+
pa8: {
|
92
|
+
id: 'pa8',
|
93
|
+
label: 'PA 8',
|
94
|
+
description: 'The answer to PA 8.',
|
95
|
+
type: extensions_core_1.FieldType.NUMERIC,
|
96
|
+
required: true,
|
97
|
+
},
|
98
|
+
pa9: {
|
99
|
+
id: 'pa9',
|
100
|
+
label: 'PA 9',
|
101
|
+
description: 'The answer to PA 9.',
|
102
|
+
type: extensions_core_1.FieldType.NUMERIC,
|
103
|
+
required: true,
|
104
|
+
},
|
105
|
+
pa10: {
|
106
|
+
id: 'pa10',
|
107
|
+
label: 'PA 10',
|
108
|
+
description: 'The answer to PA 10.',
|
109
|
+
type: extensions_core_1.FieldType.NUMERIC,
|
110
|
+
required: true,
|
111
|
+
},
|
112
|
+
pa11: {
|
113
|
+
id: 'pa11',
|
114
|
+
label: 'PA 11',
|
115
|
+
description: 'The answer to PA 11.',
|
116
|
+
type: extensions_core_1.FieldType.NUMERIC,
|
117
|
+
required: true,
|
118
|
+
},
|
119
|
+
pa12: {
|
120
|
+
id: 'pa12',
|
121
|
+
label: 'PA 12',
|
122
|
+
description: 'The answer to PA 12.',
|
123
|
+
type: extensions_core_1.FieldType.NUMERIC,
|
124
|
+
required: true,
|
125
|
+
},
|
126
|
+
pa13: {
|
127
|
+
id: 'pa13',
|
128
|
+
label: 'PA 13',
|
129
|
+
description: 'The answer to PA 13.',
|
130
|
+
type: extensions_core_1.FieldType.NUMERIC,
|
131
|
+
required: true,
|
132
|
+
},
|
133
|
+
};
|
134
|
+
exports.FieldsValidationSchema = zod_1.z.object({
|
135
|
+
language: zod_1.z.string(),
|
136
|
+
adminDate: zod_1.z
|
137
|
+
.string({
|
138
|
+
errorMap: () => ({
|
139
|
+
message: 'Admin date is required and must be of format YYYY-MM-DD',
|
140
|
+
}),
|
141
|
+
})
|
142
|
+
.regex(/^\d{4}-\d{2}-\d{2}$/),
|
143
|
+
thirdPartyIdentifier: zod_1.z.string(),
|
144
|
+
gender: zod_1.z.string(),
|
145
|
+
age: zod_1.z.number(),
|
146
|
+
pa1: zod_1.z.number(),
|
147
|
+
pa2: zod_1.z.number(),
|
148
|
+
pa3: zod_1.z.number(),
|
149
|
+
pa4: zod_1.z.number(),
|
150
|
+
pa5: zod_1.z.number(),
|
151
|
+
pa6: zod_1.z.number(),
|
152
|
+
pa7: zod_1.z.number(),
|
153
|
+
pa8: zod_1.z.number(),
|
154
|
+
pa9: zod_1.z.number(),
|
155
|
+
pa10: zod_1.z.number(),
|
156
|
+
pa11: zod_1.z.number(),
|
157
|
+
pa12: zod_1.z.number(),
|
158
|
+
pa13: zod_1.z.number(),
|
159
|
+
});
|
160
|
+
//# sourceMappingURL=fields.js.map
|
@@ -0,0 +1 @@
|
|
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,oCAAoC;QACjD,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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AE,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,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"}
|
@@ -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/submitPamSurvey/config/index.ts"],"names":[],"mappings":";;;AAAA,mCAAyD;AAAhD,gGAAA,MAAM,OAAA;AAAE,gHAAA,sBAAsB,OAAA;AACvC,uCAAqD;AAA5C,oHAAA,wBAAwB,OAAA"}
|