case-editor-tools 1.0.0-beta.42 → 1.0.0-beta.43

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.
@@ -53,6 +53,7 @@ export declare const StudyEngineActions: {
53
53
  ifThen: (condition: Expression, ...args: Expression[]) => Expression;
54
54
  participantActions: {
55
55
  updateStudyStatus: (status: string) => Expression;
56
+ startNewStudySession: () => Expression;
56
57
  updateFlag: (key: string, newValue: string | number | Expression) => Expression;
57
58
  removeFlag: (key: string) => Expression;
58
59
  assignedSurveys: {
@@ -115,6 +116,7 @@ export declare const StudyEngine: {
115
116
  ifThen: (condition: Expression, ...args: Expression[]) => Expression;
116
117
  participantActions: {
117
118
  updateStudyStatus: (status: string) => Expression;
119
+ startNewStudySession: () => Expression;
118
120
  updateFlag: (key: string, newValue: string | number | Expression) => Expression;
119
121
  removeFlag: (key: string) => Expression;
120
122
  assignedSurveys: {
@@ -192,6 +192,12 @@ const IFTHEN = (condition, ...args) => expressionUtils_expressionGen.generateExp
192
192
  * @returns
193
193
  */
194
194
  const UPDATE_STUDY_STATUS = (status) => expressionUtils_expressionGen.generateExpression('UPDATE_STUDY_STATUS', undefined, status);
195
+ /**
196
+ * Generate and store a new session id to the participant's state
197
+ * @param status new status value
198
+ * @returns
199
+ */
200
+ const START_NEW_STUDY_SESSION = () => expressionUtils_expressionGen.generateExpression('START_NEW_STUDY_SESSION', undefined);
195
201
  /**
196
202
  * Add or update a participant flag
197
203
  * @param key
@@ -402,6 +408,7 @@ const StudyEngineActions = {
402
408
  ifThen: IFTHEN,
403
409
  participantActions: {
404
410
  updateStudyStatus: UPDATE_STUDY_STATUS,
411
+ startNewStudySession: START_NEW_STUDY_SESSION,
405
412
  updateFlag: UPDATE_FLAG,
406
413
  removeFlag: REMOVE_FLAG,
407
414
  assignedSurveys: {
@@ -1 +1 @@
1
- {"version":3,"file":"studyEngineExpressions.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;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tools",
3
3
  "description": "Javascript tools to simplify survey and study coding for CASE.",
4
- "version": "1.0.0-beta.42",
4
+ "version": "1.0.0-beta.43",
5
5
  "main": "index.js",
6
6
  "license": "Apache-2.0",
7
7
  "repository": "github:case-framework/case-editor-tools",