case-editor-tools 1.0.0-beta.41 → 1.0.0-beta.42
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.
|
@@ -19,6 +19,7 @@ export declare const NativeStudyEngineExpressions: {
|
|
|
19
19
|
hasStudyStatus: (status: string) => Expression;
|
|
20
20
|
hasParticipantFlagKeyAndValue: (key: string, value: string) => Expression;
|
|
21
21
|
hasParticipantFlagKey: (key: string) => Expression;
|
|
22
|
+
getParticipantFlagValue: (key: string) => Expression;
|
|
22
23
|
lastSubmissionDateOlderThan: (reference: number | Expression, surveyKey?: string | undefined) => Expression;
|
|
23
24
|
hasMessageTypeAssigned: (messageType: string) => Expression;
|
|
24
25
|
getMessageNextTime: (messageType: string) => Expression;
|
|
@@ -30,6 +31,7 @@ export declare const NativeStudyEngineExpressions: {
|
|
|
30
31
|
hasStudyStatus: (status: string) => Expression;
|
|
31
32
|
hasParticipantFlagKeyAndValue: (key: string, value: string) => Expression;
|
|
32
33
|
hasParticipantFlagKey: (key: string) => Expression;
|
|
34
|
+
getParticipantFlagValue: (key: string) => Expression;
|
|
33
35
|
lastSubmissionDateOlderThan: (reference: number | Expression, surveyKey?: string | undefined) => Expression;
|
|
34
36
|
hasMessageTypeAssigned: (messageType: string) => Expression;
|
|
35
37
|
getMessageNextTime: (messageType: string) => Expression;
|
|
@@ -159,6 +161,7 @@ export declare const StudyEngine: {
|
|
|
159
161
|
hasStudyStatus: (status: string) => Expression;
|
|
160
162
|
hasParticipantFlagKeyAndValue: (key: string, value: string) => Expression;
|
|
161
163
|
hasParticipantFlagKey: (key: string) => Expression;
|
|
164
|
+
getParticipantFlagValue: (key: string) => Expression;
|
|
162
165
|
lastSubmissionDateOlderThan: (reference: number | Expression, surveyKey?: string | undefined) => Expression;
|
|
163
166
|
hasMessageTypeAssigned: (messageType: string) => Expression;
|
|
164
167
|
getMessageNextTime: (messageType: string) => Expression;
|
|
@@ -170,6 +173,7 @@ export declare const StudyEngine: {
|
|
|
170
173
|
hasStudyStatus: (status: string) => Expression;
|
|
171
174
|
hasParticipantFlagKeyAndValue: (key: string, value: string) => Expression;
|
|
172
175
|
hasParticipantFlagKey: (key: string) => Expression;
|
|
176
|
+
getParticipantFlagValue: (key: string) => Expression;
|
|
173
177
|
lastSubmissionDateOlderThan: (reference: number | Expression, surveyKey?: string | undefined) => Expression;
|
|
174
178
|
hasMessageTypeAssigned: (messageType: string) => Expression;
|
|
175
179
|
getMessageNextTime: (messageType: string) => Expression;
|
|
@@ -124,6 +124,13 @@ const hasParticipantFlagKeyAndValueForIncoming = (key, value) => expressionUtils
|
|
|
124
124
|
*/
|
|
125
125
|
const hasParticipantFlagKey = (key) => expressionUtils_expressionGen.generateExpression('hasParticipantFlagKey', undefined, key);
|
|
126
126
|
const hasParticipantFlagKeyForIncoming = (key) => expressionUtils_expressionGen.generateExpression('incomingState:hasParticipantFlagKey', undefined, key);
|
|
127
|
+
/**
|
|
128
|
+
* Retrieve the value of a participant flag
|
|
129
|
+
* @param key look up this flag
|
|
130
|
+
* @returns return the value or an empty string if not present
|
|
131
|
+
*/
|
|
132
|
+
const getParticipantFlagValue = (key) => expressionUtils_expressionGen.generateExpression('getParticipantFlagValue', undefined, key);
|
|
133
|
+
const getParticipantFlagValueForIncoming = (key) => expressionUtils_expressionGen.generateExpression('incomingState:getParticipantFlagValue', undefined, key);
|
|
127
134
|
/**
|
|
128
135
|
* Checks if the participant has a message type assigned (at least one)
|
|
129
136
|
* @param messageType
|
|
@@ -358,6 +365,7 @@ const NativeStudyEngineExpressions = {
|
|
|
358
365
|
hasStudyStatus,
|
|
359
366
|
hasParticipantFlagKeyAndValue,
|
|
360
367
|
hasParticipantFlagKey,
|
|
368
|
+
getParticipantFlagValue,
|
|
361
369
|
lastSubmissionDateOlderThan,
|
|
362
370
|
hasMessageTypeAssigned,
|
|
363
371
|
getMessageNextTime,
|
|
@@ -370,6 +378,7 @@ const NativeStudyEngineExpressions = {
|
|
|
370
378
|
hasStudyStatus: hasStudyStatusForIncoming,
|
|
371
379
|
hasParticipantFlagKeyAndValue: hasParticipantFlagKeyAndValueForIncoming,
|
|
372
380
|
hasParticipantFlagKey: hasParticipantFlagKeyForIncoming,
|
|
381
|
+
getParticipantFlagValue: getParticipantFlagValueForIncoming,
|
|
373
382
|
lastSubmissionDateOlderThan: lastSubmissionDateOlderThanForIncoming,
|
|
374
383
|
hasMessageTypeAssigned: hasMessageTypeAssignedForIncoming,
|
|
375
384
|
getMessageNextTime: getMessageNextTimeForIncoming,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"studyEngineExpressions.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"studyEngineExpressions.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
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.0-beta.
|
|
4
|
+
"version": "1.0.0-beta.42",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"repository": "github:case-framework/case-editor-tools",
|