case-editor-tools 1.5.0 → 1.5.1
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.
|
@@ -21,7 +21,7 @@ export declare const NativeStudyEngineExpressions: {
|
|
|
21
21
|
hasParticipantFlagKeyAndValue: (key: string, value: string) => Expression;
|
|
22
22
|
hasParticipantFlagKey: (key: string) => Expression;
|
|
23
23
|
getParticipantFlagValue: (key: string) => Expression;
|
|
24
|
-
|
|
24
|
+
getParticipantFlagValueAsNum: (key: string) => Expression;
|
|
25
25
|
lastSubmissionDateOlderThan: (reference: number | Expression, surveyKey?: string) => Expression;
|
|
26
26
|
hasMessageTypeAssigned: (messageType: string) => Expression;
|
|
27
27
|
getMessageNextTime: (messageType: string) => Expression;
|
|
@@ -174,7 +174,7 @@ export declare const StudyEngine: {
|
|
|
174
174
|
hasParticipantFlagKeyAndValue: (key: string, value: string) => Expression;
|
|
175
175
|
hasParticipantFlagKey: (key: string) => Expression;
|
|
176
176
|
getParticipantFlagValue: (key: string) => Expression;
|
|
177
|
-
|
|
177
|
+
getParticipantFlagValueAsNum: (key: string) => Expression;
|
|
178
178
|
lastSubmissionDateOlderThan: (reference: number | Expression, surveyKey?: string) => Expression;
|
|
179
179
|
hasMessageTypeAssigned: (messageType: string) => Expression;
|
|
180
180
|
getMessageNextTime: (messageType: string) => Expression;
|
|
@@ -143,7 +143,7 @@ const hasParticipantFlagKeyForIncoming = (key) => expressionUtils_expressionGen.
|
|
|
143
143
|
const getParticipantFlagValue = (key) => expressionUtils_expressionGen.generateExpression('getParticipantFlagValue', undefined, key);
|
|
144
144
|
const getParticipantFlagValueForIncoming = (key) => expressionUtils_expressionGen.generateExpression('incomingState:getParticipantFlagValue', undefined, key);
|
|
145
145
|
// Convinience method to parse participant flag's value as a number
|
|
146
|
-
const
|
|
146
|
+
const getParticipantFlagValueAsNum = (key) => parseValueAsNum(getParticipantFlagValue(key));
|
|
147
147
|
/**
|
|
148
148
|
* Checks if the participant has a message type assigned (at least one)
|
|
149
149
|
* @param messageType
|
|
@@ -418,7 +418,7 @@ const NativeStudyEngineExpressions = {
|
|
|
418
418
|
hasParticipantFlagKeyAndValue,
|
|
419
419
|
hasParticipantFlagKey,
|
|
420
420
|
getParticipantFlagValue,
|
|
421
|
-
|
|
421
|
+
getParticipantFlagValueAsNum,
|
|
422
422
|
lastSubmissionDateOlderThan,
|
|
423
423
|
hasMessageTypeAssigned,
|
|
424
424
|
getMessageNextTime,
|
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.5.
|
|
4
|
+
"version": "1.5.1",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"repository": "github:case-framework/case-editor-tools",
|