case-editor-tools 1.0.6 → 1.0.9

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.
@@ -76,7 +76,6 @@ export declare const StudyEngineActions: {
76
76
  add: (messageType: string, scheduledFor: number | Expression) => Expression;
77
77
  removeAll: () => Expression;
78
78
  remove: (messageType: string) => Expression;
79
- notifyResearcher: (messageType: string, ...payload: Expression[] | string[]) => Expression;
80
79
  };
81
80
  confidentialResponses: {
82
81
  removeByKey: (key: string) => Expression;
@@ -86,6 +85,7 @@ export declare const StudyEngineActions: {
86
85
  stopParticipation: () => Expression;
87
86
  finishParticipation: () => Expression;
88
87
  };
88
+ notifyResearcher: (messageType: string, ...payload: Expression[] | string[]) => Expression;
89
89
  };
90
90
  export declare const StudyEngine: {
91
91
  singleChoice: {
@@ -142,7 +142,6 @@ export declare const StudyEngine: {
142
142
  add: (messageType: string, scheduledFor: number | Expression) => Expression;
143
143
  removeAll: () => Expression;
144
144
  remove: (messageType: string) => Expression;
145
- notifyResearcher: (messageType: string, ...payload: Expression[] | string[]) => Expression;
146
145
  };
147
146
  confidentialResponses: {
148
147
  removeByKey: (key: string) => Expression;
@@ -152,6 +151,7 @@ export declare const StudyEngine: {
152
151
  stopParticipation: () => Expression;
153
152
  finishParticipation: () => Expression;
154
153
  };
154
+ notifyResearcher: (messageType: string, ...payload: Expression[] | string[]) => Expression;
155
155
  checkEventType: (equalsType: 'ENTER' | 'SUBMIT' | 'TIMER' | 'MERGE') => Expression;
156
156
  checkSurveyResponseKey: (surveyKey: string) => Expression;
157
157
  responseHasKeysAny: (itemKey: string, responseSlotKey: string, ...optionKeys: string[]) => Expression;
@@ -465,7 +465,6 @@ const StudyEngineActions = {
465
465
  add: ADD_MESSAGE,
466
466
  removeAll: REMOVE_ALL_MESSAGES,
467
467
  remove: REMOVE_MESSAGES_BY_TYPE,
468
- notifyResearcher: NOTIFY_RESEARCHER,
469
468
  },
470
469
  confidentialResponses: {
471
470
  removeByKey: REMOVE_CONFIDENTIAL_RESPONSE_BY_KEY,
@@ -475,7 +474,8 @@ const StudyEngineActions = {
475
474
  // Extra methods:
476
475
  stopParticipation,
477
476
  finishParticipation,
478
- }
477
+ },
478
+ notifyResearcher: NOTIFY_RESEARCHER,
479
479
  };
480
480
  const StudyEngine = Object.assign(Object.assign(Object.assign({}, NativeStudyEngineExpressions), StudyEngineActions), { singleChoice: {
481
481
  any: singleChoiceOptionsSelected,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "case-editor-tools",
3
3
  "description": "Javascript tools to simplify survey and study coding for CASE.",
4
- "version": "1.0.6",
4
+ "version": "1.0.9",
5
5
  "main": "index.js",
6
6
  "license": "Apache-2.0",
7
7
  "repository": "github:case-framework/case-editor-tools",
@@ -20,6 +20,6 @@
20
20
  "build": "rollup -c"
21
21
  },
22
22
  "dependencies": {
23
- "survey-engine": "^1.1.3"
23
+ "survey-engine": "^1.1.7"
24
24
  }
25
25
  }
@@ -1,8 +1,8 @@
1
1
  import { Expression } from "survey-engine/data_types";
2
2
  import { Duration } from "./duration";
3
- export declare type MessageType = 'registration' | 'invitation' | 'verify-email' | 'verification-code' | 'password-reset' | 'password-changed' | 'account-id-changed' | 'weekly' | 'study-reminder' | 'newsletter' | 'account-deleted';
3
+ export declare type MessageType = 'registration' | 'invitation' | 'verify-email' | 'verification-code' | 'password-reset' | 'password-changed' | 'account-id-changed' | 'weekly' | 'study-reminder' | 'researcher-notifications' | 'newsletter' | 'account-deleted';
4
4
  export interface MessageConfig {
5
- sendTo: 'study-participants' | 'all-users' | 'scheduled-participant-messages';
5
+ sendTo: 'study-participants' | 'all-users' | 'scheduled-participant-messages' | 'researcher-notifications';
6
6
  label: string;
7
7
  headerOverrides?: {
8
8
  from: string;
@@ -23,7 +23,7 @@ export interface MessageConfig {
23
23
  }>;
24
24
  }
25
25
  export declare const buildMessageConfig: (props: MessageConfig, studyKey: string) => {
26
- sendTo: "study-participants" | "all-users" | "scheduled-participant-messages";
26
+ sendTo: "researcher-notifications" | "study-participants" | "all-users" | "scheduled-participant-messages";
27
27
  studyKey: string;
28
28
  label: string;
29
29
  headerOverrides: {