case-editor-tools 1.6.6 → 1.6.7
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.
|
@@ -13,6 +13,13 @@ export declare const NativeStudyEngineExpressions: {
|
|
|
13
13
|
hasResponseKeyWithValue: (itemKey: string, responseKey: string, value: string) => Expression;
|
|
14
14
|
countResponseItems: (itemKey: string, responseKey: string) => Expression;
|
|
15
15
|
checkConditionForOldResponses: (condition: Expression, checkType?: number | 'all' | 'any', surveyKey?: string, querySince?: number | Expression, queryUntil?: number | Expression) => Expression;
|
|
16
|
+
eventPayload: {
|
|
17
|
+
hasEventPayload: () => Expression;
|
|
18
|
+
hasEventPayloadKey: (key: string) => Expression;
|
|
19
|
+
hasEventPayloadKeyWithValue: (key: string, value: string) => Expression;
|
|
20
|
+
getEventPayloadValueAsStr: (key: string) => Expression;
|
|
21
|
+
getEventPayloadValueAsNum: (key: string) => Expression;
|
|
22
|
+
};
|
|
16
23
|
participantState: {
|
|
17
24
|
getStudyEntryTime: () => Expression;
|
|
18
25
|
hasSurveyKeyAssigned: (surveyKey: string) => Expression;
|
|
@@ -170,6 +177,13 @@ export declare const StudyEngine: {
|
|
|
170
177
|
hasResponseKeyWithValue: (itemKey: string, responseKey: string, value: string) => Expression;
|
|
171
178
|
countResponseItems: (itemKey: string, responseKey: string) => Expression;
|
|
172
179
|
checkConditionForOldResponses: (condition: Expression, checkType?: number | 'all' | 'any', surveyKey?: string, querySince?: number | Expression, queryUntil?: number | Expression) => Expression;
|
|
180
|
+
eventPayload: {
|
|
181
|
+
hasEventPayload: () => Expression;
|
|
182
|
+
hasEventPayloadKey: (key: string) => Expression;
|
|
183
|
+
hasEventPayloadKeyWithValue: (key: string, value: string) => Expression;
|
|
184
|
+
getEventPayloadValueAsStr: (key: string) => Expression;
|
|
185
|
+
getEventPayloadValueAsNum: (key: string) => Expression;
|
|
186
|
+
};
|
|
173
187
|
participantState: {
|
|
174
188
|
getStudyEntryTime: () => Expression;
|
|
175
189
|
hasSurveyKeyAssigned: (surveyKey: string) => Expression;
|
|
@@ -92,6 +92,11 @@ const countResponseItems = (itemKey, responseKey) => {
|
|
|
92
92
|
* @returns true/false
|
|
93
93
|
*/
|
|
94
94
|
const checkConditionForOldResponses = (condition, checkType, surveyKey, querySince, queryUntil) => expressionUtils_expressionGen.generateExpression('checkConditionForOldResponses', undefined, condition, checkType, surveyKey, querySince, queryUntil);
|
|
95
|
+
const hasEventPayload = () => expressionUtils_expressionGen.generateExpression('hasEventPayload', undefined);
|
|
96
|
+
const hasEventPayloadKey = (key) => expressionUtils_expressionGen.generateExpression('hasEventPayloadKey', undefined, key);
|
|
97
|
+
const hasEventPayloadKeyWithValue = (key, value) => expressionUtils_expressionGen.generateExpression('hasEventPayloadKeyWithValue', undefined, key, value);
|
|
98
|
+
const getEventPayloadValueAsStr = (key) => expressionUtils_expressionGen.generateExpression('getEventPayloadValueAsStr', 'string', key);
|
|
99
|
+
const getEventPayloadValueAsNum = (key) => expressionUtils_expressionGen.generateExpression('getEventPayloadValueAsNum', 'float', key);
|
|
95
100
|
/**
|
|
96
101
|
* Method to access the timestamp for when the participant entered the study
|
|
97
102
|
* @returns timestamp
|
|
@@ -430,6 +435,14 @@ const NativeStudyEngineExpressions = {
|
|
|
430
435
|
countResponseItems,
|
|
431
436
|
// Old responses
|
|
432
437
|
checkConditionForOldResponses,
|
|
438
|
+
// Event payload methods:
|
|
439
|
+
eventPayload: {
|
|
440
|
+
hasEventPayload,
|
|
441
|
+
hasEventPayloadKey,
|
|
442
|
+
hasEventPayloadKeyWithValue,
|
|
443
|
+
getEventPayloadValueAsStr,
|
|
444
|
+
getEventPayloadValueAsNum,
|
|
445
|
+
},
|
|
433
446
|
// Participant state:
|
|
434
447
|
participantState: {
|
|
435
448
|
getStudyEntryTime,
|
|
@@ -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.6.
|
|
4
|
+
"version": "1.6.7",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"repository": "github:case-framework/case-editor-tools",
|