case-editor-tools 1.0.0-beta.4 → 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.
Files changed (133) hide show
  1. package/{build/constants → constants}/key-definitions.d.ts +3 -0
  2. package/{build/constants → constants}/key-definitions.js +7 -1
  3. package/{build/constants → constants}/key-definitions.js.map +1 -1
  4. package/exporter/index.d.ts +2 -0
  5. package/exporter/index.js +99 -0
  6. package/exporter/index.js.map +1 -0
  7. package/{build/expression-utils → expression-utils}/expressionGen.d.ts +1 -1
  8. package/{build/expression-utils → expression-utils}/expressionGen.js +0 -0
  9. package/{build/expression-utils → expression-utils}/expressionGen.js.map +0 -0
  10. package/expression-utils/studyEngineExpressions.d.ts +193 -0
  11. package/{build/expression-utils → expression-utils}/studyEngineExpressions.js +205 -19
  12. package/{build/expression-utils → expression-utils}/studyEngineExpressions.js.map +1 -1
  13. package/{build/index.d.ts → index.d.ts} +0 -0
  14. package/{build/index.js → index.js} +0 -0
  15. package/{build/index.js.map → index.js.map} +0 -0
  16. package/{build/item-editor-8fd24b61.js → item-editor-59f51ecc.js} +72 -51
  17. package/item-editor-59f51ecc.js.map +1 -0
  18. package/logger/index.d.ts +1 -0
  19. package/logger/index.js +10 -0
  20. package/logger/index.js.map +1 -0
  21. package/{build/logger → logger}/logger.d.ts +0 -0
  22. package/{build/logger → logger}/logger.js +0 -0
  23. package/{build/logger → logger}/logger.js.map +0 -0
  24. package/package.json +7 -8
  25. package/surveys/index.d.ts +3 -0
  26. package/surveys/index.js +29 -0
  27. package/surveys/index.js.map +1 -0
  28. package/surveys/responseTypeGenerators/likertGroupComponents.d.ts +27 -0
  29. package/surveys/responseTypeGenerators/likertGroupComponents.js +350 -0
  30. package/surveys/responseTypeGenerators/likertGroupComponents.js.map +1 -0
  31. package/surveys/responseTypeGenerators/matrixGroupComponent.d.ts +49 -0
  32. package/surveys/responseTypeGenerators/matrixGroupComponent.js +100 -0
  33. package/surveys/responseTypeGenerators/matrixGroupComponent.js.map +1 -0
  34. package/surveys/responseTypeGenerators/optionGroupComponents.d.ts +7 -0
  35. package/surveys/responseTypeGenerators/optionGroupComponents.js +129 -0
  36. package/surveys/responseTypeGenerators/optionGroupComponents.js.map +1 -0
  37. package/{build → surveys}/survey-editor/component-editor.d.ts +1 -1
  38. package/{build → surveys}/survey-editor/component-editor.js +0 -0
  39. package/{build → surveys}/survey-editor/component-editor.js.map +0 -0
  40. package/{build → surveys}/survey-editor/data-types.d.ts +1 -1
  41. package/{build → surveys}/survey-editor/data-types.js +0 -0
  42. package/{build → surveys}/survey-editor/data-types.js.map +0 -0
  43. package/{build → surveys}/survey-editor/item-editor.d.ts +2 -1
  44. package/{build → surveys}/survey-editor/item-editor.js +3 -2
  45. package/{build → surveys}/survey-editor/item-editor.js.map +1 -1
  46. package/{build → surveys}/survey-editor/survey-editor.d.ts +6 -1
  47. package/{build → surveys}/survey-editor/survey-editor.js +15 -8
  48. package/{build → surveys}/survey-editor/survey-editor.js.map +1 -1
  49. package/{build/expression-utils/surveyEngineExpressions.d.ts → surveys/survey-engine-expressions.d.ts} +12 -2
  50. package/{build/expression-utils/surveyEngineExpressions.js → surveys/survey-engine-expressions.js} +45 -4
  51. package/{build/expression-utils/surveyEngineExpressions.js.map → surveys/survey-engine-expressions.js.map} +1 -1
  52. package/surveys/survey-items.d.ts +72 -0
  53. package/surveys/survey-items.js +384 -0
  54. package/surveys/survey-items.js.map +1 -0
  55. package/{build → surveys}/types/group.d.ts +1 -1
  56. package/{build → surveys}/types/group.js +6 -5
  57. package/{build → surveys}/types/group.js.map +1 -1
  58. package/surveys/types/index.d.ts +4 -0
  59. package/surveys/types/index.js +22 -0
  60. package/surveys/types/index.js.map +1 -0
  61. package/surveys/types/item-properties.d.ts +223 -0
  62. package/surveys/types/item-properties.js +10 -0
  63. package/surveys/types/item-properties.js.map +1 -0
  64. package/{build → surveys}/types/item.d.ts +1 -1
  65. package/{build → surveys}/types/item.js +0 -0
  66. package/{build → surveys}/types/item.js.map +0 -0
  67. package/{build/types/surveyDefinition.d.ts → surveys/types/survey-definition.d.ts} +7 -3
  68. package/{build/types/surveyDefinition.js → surveys/types/survey-definition.js} +20 -11
  69. package/surveys/types/survey-definition.js.map +1 -0
  70. package/{build → surveys}/utils/componentGenerators.d.ts +2 -13
  71. package/surveys/utils/componentGenerators.js +59 -0
  72. package/{build → surveys}/utils/componentGenerators.js.map +1 -1
  73. package/surveys/utils/optionDefGenerators.d.ts +84 -0
  74. package/surveys/utils/optionDefGenerators.js +211 -0
  75. package/surveys/utils/optionDefGenerators.js.map +1 -0
  76. package/{build → surveys}/utils/randomKeyGenerator.d.ts +0 -0
  77. package/{build → surveys}/utils/randomKeyGenerator.js +0 -0
  78. package/{build → surveys}/utils/randomKeyGenerator.js.map +0 -0
  79. package/{build → surveys}/utils/simple-generators.d.ts +4 -3
  80. package/{build → surveys}/utils/simple-generators.js +34 -5
  81. package/{build → surveys}/utils/simple-generators.js.map +1 -1
  82. package/surveys/utils/simple-question-editor.d.ts +14 -0
  83. package/{build → surveys}/utils/simple-question-editor.js +10 -7
  84. package/{build → surveys}/utils/simple-question-editor.js.map +1 -1
  85. package/{build/types → types}/duration.d.ts +0 -0
  86. package/{build/types → types}/duration.js +0 -0
  87. package/{build/types → types}/duration.js.map +0 -0
  88. package/{build/types → types}/expression.d.ts +1 -1
  89. package/{build/types → types}/expression.js +0 -0
  90. package/{build/types → types}/expression.js.map +0 -0
  91. package/{build/types → types}/study.d.ts +2 -2
  92. package/{build/types → types}/study.js +0 -0
  93. package/{build/types → types}/study.js.map +0 -0
  94. package/{build/types → types}/studyRules.d.ts +3 -2
  95. package/{build/types → types}/studyRules.js +5 -1
  96. package/types/studyRules.js.map +1 -0
  97. package/.babelrc.js +0 -7
  98. package/.editorconfig +0 -13
  99. package/LICENSE +0 -202
  100. package/build/expression-utils/studyEngineExpressions.d.ts +0 -114
  101. package/build/item-editor-8fd24b61.js.map +0 -1
  102. package/build/package.json +0 -26
  103. package/build/types/studyRules.js.map +0 -1
  104. package/build/types/surveyDefinition.js.map +0 -1
  105. package/build/utils/componentGenerators.js +0 -92
  106. package/build/utils/question-type-generator.d.ts +0 -283
  107. package/build/utils/question-type-generator.js +0 -949
  108. package/build/utils/question-type-generator.js.map +0 -1
  109. package/build/utils/simple-question-editor.d.ts +0 -14
  110. package/rollup.config.js +0 -53
  111. package/src/constants/key-definitions.ts +0 -13
  112. package/src/expression-utils/expressionGen.ts +0 -28
  113. package/src/expression-utils/studyEngineExpressions.ts +0 -359
  114. package/src/expression-utils/surveyEngineExpressions.ts +0 -483
  115. package/src/index.ts +0 -1
  116. package/src/logger/logger.ts +0 -31
  117. package/src/survey-editor/component-editor.ts +0 -133
  118. package/src/survey-editor/data-types.ts +0 -18
  119. package/src/survey-editor/item-editor.ts +0 -528
  120. package/src/survey-editor/survey-editor.ts +0 -260
  121. package/src/types/duration.ts +0 -32
  122. package/src/types/expression.ts +0 -22
  123. package/src/types/group.ts +0 -73
  124. package/src/types/item.ts +0 -42
  125. package/src/types/study.ts +0 -17
  126. package/src/types/studyRules.ts +0 -39
  127. package/src/types/surveyDefinition.ts +0 -83
  128. package/src/utils/componentGenerators.ts +0 -122
  129. package/src/utils/question-type-generator.ts +0 -1516
  130. package/src/utils/randomKeyGenerator.ts +0 -11
  131. package/src/utils/simple-generators.ts +0 -106
  132. package/src/utils/simple-question-editor.ts +0 -52
  133. package/tsconfig.json +0 -100
@@ -11,7 +11,7 @@ const and = (...args) => expressionUtils_expressionGen.generateExpression('and',
11
11
  const not = (arg) => expressionUtils_expressionGen.generateExpression('not', undefined, arg);
12
12
  /**
13
13
  * Check if the current event has the given type
14
- * @param equalsType string with the possible values: 'ENTER', 'SUBMIT', 'TIMER
14
+ * @param equalsType string with the possible values: 'ENTER', 'SUBMIT', 'TIMER', 'MERGE'
15
15
  * @returns if event type matches the argument, return true otherwise false
16
16
  */
17
17
  const checkEventType = (equalsType) => expressionUtils_expressionGen.generateExpression('checkEventType', undefined, equalsType);
@@ -37,6 +37,25 @@ const responseHasKeysAny = (itemKey, responseSlotKey, ...optionKeys) => expressi
37
37
  * @returns true if a response key is present, but is not in the list defined by optionKeys. If item or the response group is not found, returns false.
38
38
  */
39
39
  const responseHasOnlyKeysOtherThan = (itemKey, responseSlotKey, ...optionKeys) => expressionUtils_expressionGen.generateExpression('responseHasOnlyKeysOtherThan', undefined, itemKey, responseSlotKey, ...optionKeys);
40
+ /**
41
+ *
42
+ * @param itemKey full key to the survey item, in the form, e.g., <surveyKey>.<groupKey>.<itemKey>
43
+ * @param responseKey full key to the response that should exists
44
+ * @returns if item contains responseKey return true
45
+ */
46
+ const hasResponseKey = (itemKey, responseKey) => {
47
+ return expressionUtils_expressionGen.generateExpression('hasResponseKey', undefined, itemKey, responseKey);
48
+ };
49
+ /**
50
+ *
51
+ * @param itemKey full key to the survey item, in the form, e.g., <surveyKey>.<groupKey>.<itemKey>
52
+ * @param responseKey full key to the response that should exists
53
+ * @param value the response object with the above key should have this value
54
+ * @returns if the response object exists and has the value return true
55
+ */
56
+ const hasResponseKeyWithValue = (itemKey, responseKey, value) => {
57
+ return expressionUtils_expressionGen.generateExpression('hasResponseKeyWithValue', undefined, itemKey, responseKey, value);
58
+ };
40
59
  const getResponseValueAsNum = (itemKey, responseKey) => {
41
60
  return expressionUtils_expressionGen.generateExpression('getResponseValueAsNum', 'float', itemKey, responseKey);
42
61
  };
@@ -61,37 +80,71 @@ const checkConditionForOldResponses = (condition, checkType, surveyKey, querySin
61
80
  * @returns timestamp
62
81
  */
63
82
  const getStudyEntryTime = () => expressionUtils_expressionGen.generateExpression('getStudyEntryTime');
83
+ const getStudyEntryTimeForIncoming = () => expressionUtils_expressionGen.generateExpression('incomingState:getStudyEntryTime');
64
84
  /**
65
85
  * Determines if a specific survey key is currently assigned to the participant.
66
86
  * @param surveyKey - string - key of the survey to check for.
67
87
  * @returns true if the participant has a survey with this surveyKey assigned, otherwise false.
68
88
  */
69
89
  const hasSurveyKeyAssigned = (surveyKey) => expressionUtils_expressionGen.generateExpression('hasSurveyKeyAssigned', undefined, surveyKey);
90
+ const hasSurveyKeyAssignedForIncoming = (surveyKey) => expressionUtils_expressionGen.generateExpression('incomingState:hasSurveyKeyAssigned', undefined, surveyKey);
70
91
  /**
71
92
  * Method to access the timestamp for a surveyKey is assigned from
72
93
  * @param surveyKey - string - key of the survey to check for.
73
94
  * @returns timestamp
74
95
  */
75
96
  const getSurveyKeyAssignedFrom = (surveyKey) => expressionUtils_expressionGen.generateExpression('getSurveyKeyAssignedFrom', undefined, surveyKey);
97
+ const getSurveyKeyAssignedFromForIncoming = (surveyKey) => expressionUtils_expressionGen.generateExpression('incomingState:getSurveyKeyAssignedFrom', undefined, surveyKey);
76
98
  /**
77
99
  * Method to access the timestamp for a surveyKey is assigned until
78
100
  * @param surveyKey - string - key of the survey to check for.
79
101
  * @returns timestamp
80
102
  */
81
103
  const getSurveyKeyAssignedUntil = (surveyKey) => expressionUtils_expressionGen.generateExpression('getSurveyKeyAssignedUntil', undefined, surveyKey);
104
+ const getSurveyKeyAssignedUntilForIncoming = (surveyKey) => expressionUtils_expressionGen.generateExpression('incomingState:getSurveyKeyAssignedUntil', undefined, surveyKey);
82
105
  /**
83
106
  * Check if a participant has a specific study status
84
107
  * @param status - string
85
108
  * @returns true/false
86
109
  */
87
110
  const hasStudyStatus = (status) => expressionUtils_expressionGen.generateExpression('getSurveyKeyAssignedUntil', undefined, status);
111
+ const hasStudyStatusForIncoming = (status) => expressionUtils_expressionGen.generateExpression('incomingState:getSurveyKeyAssignedUntil', undefined, status);
88
112
  /**
89
- * Check if a participant flag is present
113
+ * Check if a participant flag with specific value is present
90
114
  * @param key look up this flag
91
115
  * @param value and for this value
92
116
  * @returns return true if key - value pair (with case sensitive matching for both key and value) is present. If any of the two is different, or participant flags is empty, it returns false.
93
117
  */
94
- const hasParticipantFlag = (key, value) => expressionUtils_expressionGen.generateExpression('hasParticipantFlag', undefined, key, value);
118
+ const hasParticipantFlagKeyAndValue = (key, value) => expressionUtils_expressionGen.generateExpression('hasParticipantFlag', undefined, key, value);
119
+ const hasParticipantFlagKeyAndValueForIncoming = (key, value) => expressionUtils_expressionGen.generateExpression('incomingState:hasParticipantFlag', undefined, key, value);
120
+ /**
121
+ * Check if a participant flag is present
122
+ * @param key look up this flag
123
+ * @returns return true if key is present. If any of the two is different, or participant flags is empty, it returns false.
124
+ */
125
+ const hasParticipantFlagKey = (key) => expressionUtils_expressionGen.generateExpression('hasParticipantFlagKey', undefined, key);
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);
134
+ /**
135
+ * Checks if the participant has a message type assigned (at least one)
136
+ * @param messageType
137
+ * @returns return true if a message with the given message type is assigned
138
+ */
139
+ const hasMessageTypeAssigned = (messageType) => expressionUtils_expressionGen.generateExpression('hasMessageTypeAssigned', undefined, messageType);
140
+ const hasMessageTypeAssignedForIncoming = (messageType) => expressionUtils_expressionGen.generateExpression('incomingState:hasMessageTypeAssigned', undefined, messageType);
141
+ /**
142
+ * Retrieve the timestamp (scheduledFor) for a particular message type. Return 0 if not assigned.
143
+ * @param messageType
144
+ * @returns timestamp value or zero
145
+ */
146
+ const getMessageNextTime = (messageType) => expressionUtils_expressionGen.generateExpression('getMessageNextTime', undefined, messageType);
147
+ const getMessageNextTimeForIncoming = (messageType) => expressionUtils_expressionGen.generateExpression('incomingState:getMessageNextTime', undefined, messageType);
95
148
  /**
96
149
  * Check if the last submission is older than the reference timestamp
97
150
  * @param reference look up this flag
@@ -99,6 +152,7 @@ const hasParticipantFlag = (key, value) => expressionUtils_expressionGen.generat
99
152
  * @returns boolean
100
153
  */
101
154
  const lastSubmissionDateOlderThan = (reference, surveyKey) => expressionUtils_expressionGen.generateExpression('lastSubmissionDateOlderThan', undefined, reference, surveyKey);
155
+ const lastSubmissionDateOlderThanForIncoming = (reference, surveyKey) => expressionUtils_expressionGen.generateExpression('incomingState:lastSubmissionDateOlderThan', undefined, reference, surveyKey);
102
156
  const eq = (val1, val2) => expressionUtils_expressionGen.generateExpression('eq', undefined, val1, val2);
103
157
  const lt = (val1, val2) => expressionUtils_expressionGen.generateExpression('lt', undefined, val1, val2);
104
158
  const lte = (val1, val2) => expressionUtils_expressionGen.generateExpression('lte', undefined, val1, val2);
@@ -138,10 +192,16 @@ const IFTHEN = (condition, ...args) => expressionUtils_expressionGen.generateExp
138
192
  * @returns
139
193
  */
140
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);
141
201
  /**
142
202
  * Add or update a participant flag
143
203
  * @param key
144
- * @param newValue
204
+ * @param newValue: string, number or expression where result should be written in the flag's value
145
205
  * @returns
146
206
  */
147
207
  const UPDATE_FLAG = (key, newValue) => expressionUtils_expressionGen.generateExpression('UPDATE_FLAG', undefined, key, newValue);
@@ -149,11 +209,23 @@ const REMOVE_FLAG = (key) => expressionUtils_expressionGen.generateExpression('R
149
209
  const ADD_NEW_SURVEY = (surveyKey, category, activeFrom, activeUntil) => expressionUtils_expressionGen.generateExpression('ADD_NEW_SURVEY', undefined, surveyKey, activeFrom !== undefined ? activeFrom : 0, activeUntil !== undefined ? activeUntil : 0, category);
150
210
  const REMOVE_ALL_SURVEYS = () => expressionUtils_expressionGen.generateExpression('REMOVE_ALL_SURVEYS');
151
211
  /**
152
- * When submitting the response, item response with the given key would be added to the report array
153
- * @param itemKey find and add this item to the report array
212
+ * Add participant message
213
+ * @param messageType message type
214
+ * @param scheduledFor timestamp or expression returning a timestamp
154
215
  * @returns
155
216
  */
156
- const ADD_REPORT = (itemKey) => expressionUtils_expressionGen.generateExpression('ADD_REPORT', undefined, itemKey);
217
+ const ADD_MESSAGE = (messageType, scheduledFor) => expressionUtils_expressionGen.generateExpression('ADD_MESSAGE', undefined, messageType, scheduledFor);
218
+ /**
219
+ * Remove all messages scheduled for the participant
220
+ * @returns
221
+ */
222
+ const REMOVE_ALL_MESSAGES = () => expressionUtils_expressionGen.generateExpression('REMOVE_ALL_MESSAGES', undefined);
223
+ /**
224
+ * Remove all messages with this message type
225
+ * @param messageType message type
226
+ * @returns
227
+ */
228
+ const REMOVE_MESSAGES_BY_TYPE = (messageType) => expressionUtils_expressionGen.generateExpression('REMOVE_MESSAGES_BY_TYPE', undefined, messageType);
157
229
  const REMOVE_SURVEY_BY_KEY = (surveyKey, selector) => {
158
230
  if (selector === 'all') {
159
231
  return expressionUtils_expressionGen.generateExpression('REMOVE_SURVEYS_BY_KEY', undefined, surveyKey);
@@ -162,14 +234,80 @@ const REMOVE_SURVEY_BY_KEY = (surveyKey, selector) => {
162
234
  return expressionUtils_expressionGen.generateExpression('REMOVE_SURVEY_BY_KEY', undefined, surveyKey, selector);
163
235
  }
164
236
  };
165
- const REMOVE_ALL_REPORTS = () => expressionUtils_expressionGen.generateExpression('REMOVE_ALL_REPORTS');
166
- const REMOVE_REPORT_BY_KEY = (surveyKey, selector) => {
167
- if (selector === 'all') {
168
- return expressionUtils_expressionGen.generateExpression('REMOVE_REPORTS_BY_KEY', undefined, surveyKey);
169
- }
170
- else {
171
- return expressionUtils_expressionGen.generateExpression('REMOVE_REPORT_BY_KEY', undefined, surveyKey, selector);
172
- }
237
+ /**
238
+ * Initialises or resets a report for the current event
239
+ * @param reportKey key to be used for the report
240
+ */
241
+ const INIT_REPORT = (reportKey) => {
242
+ return expressionUtils_expressionGen.generateExpression('INIT_REPORT', undefined, reportKey);
243
+ };
244
+ /**
245
+ * Remove the report from the list of reports to be added at the end of the event
246
+ * @param reportKey key of the report that should be removed
247
+ * @returns
248
+ */
249
+ const CANCEL_REPORT = (reportKey) => {
250
+ return expressionUtils_expressionGen.generateExpression('CANCEL_REPORT', undefined, reportKey);
251
+ };
252
+ /**
253
+ * Remove the confidential responses with this key for the participant
254
+ * @param key key of the confidential responses that should be removed
255
+ * @returns
256
+ */
257
+ const REMOVE_CONFIDENTIAL_RESPONSE_BY_KEY = (key) => {
258
+ return expressionUtils_expressionGen.generateExpression('REMOVE_CONFIDENTIAL_RESPONSE_BY_KEY', undefined, key);
259
+ };
260
+ /**
261
+ * Remove all confidential responses for the participant
262
+ * @returns
263
+ */
264
+ const REMOVE_ALL_CONFIDENTIAL_RESPONSES = () => {
265
+ return expressionUtils_expressionGen.generateExpression('REMOVE_ALL_CONFIDENTIAL_RESPONSES', undefined);
266
+ };
267
+ /**
268
+ * Update one value attribute in a report. If report was not initialized, one will be added to the list.
269
+ * @param reportKey
270
+ * @param attributeKey update / create this attribute in the report
271
+ * @param value this should be the value for the given attribute
272
+ * @param dtype optional dtype to set info for the app how to render this data.
273
+ * @returns
274
+ */
275
+ const UPDATE_REPORT_DATA = (reportKey, attributeKey, value, dtype) => {
276
+ return expressionUtils_expressionGen.generateExpression('UPDATE_REPORT_DATA', undefined, reportKey, attributeKey, value, dtype);
277
+ };
278
+ /**
279
+ * Method to remove one attribute (key and value) from the report
280
+ * @param reportKey
281
+ * @param attributeKey
282
+ * @returns
283
+ */
284
+ const REMOVE_REPORT_DATA = (reportKey, attributeKey) => {
285
+ return expressionUtils_expressionGen.generateExpression('REMOVE_REPORT_DATA', undefined, reportKey, attributeKey);
286
+ };
287
+ const setReportIcon = (reportKey, icon) => {
288
+ return UPDATE_REPORT_DATA(reportKey, 'icon', icon);
289
+ };
290
+ const setReportMessage = (reportKey, content, asTranslationKey) => {
291
+ return UPDATE_REPORT_DATA(reportKey, 'message', content, asTranslationKey ? undefined : 'rawMessage');
292
+ };
293
+ const setReportSummary = (reportKey, content, asTranslationKey) => {
294
+ return UPDATE_REPORT_DATA(reportKey, 'summary', content, asTranslationKey ? undefined : 'rawMessage');
295
+ };
296
+ // ##################
297
+ // Prefill rule methods:
298
+ const GET_LAST_SURVEY_ITEM = (surveyKey, itemKey, submittedLaterThan) => {
299
+ return expressionUtils_expressionGen.generateExpression('GET_LAST_SURVEY_ITEM', undefined, surveyKey, itemKey, submittedLaterThan ? types_duration.durationObjectToSeconds(submittedLaterThan) : undefined);
300
+ };
301
+ // ##################
302
+ // Context previous responses methods:
303
+ const LAST_RESPONSES_BY_KEY = (surveyKey, limit) => {
304
+ return expressionUtils_expressionGen.generateExpression('LAST_RESPONSES_BY_KEY', undefined, surveyKey, limit);
305
+ };
306
+ const ALL_RESPONSES_SINCE = (sinceTimestamp) => {
307
+ return expressionUtils_expressionGen.generateExpression('ALL_RESPONSES_SINCE', undefined, sinceTimestamp);
308
+ };
309
+ const RESPONSES_SINCE_BY_KEY = (sinceTimestamp, surveyKey) => {
310
+ return expressionUtils_expressionGen.generateExpression('RESPONSES_SINCE_BY_KEY', undefined, sinceTimestamp, surveyKey);
173
311
  };
174
312
  // ##################
175
313
  // Extra methods:
@@ -178,6 +316,9 @@ const multipleChoiceOptionsSelected = (itemKey, ...optionKeys) => expressionUtil
178
316
  const multipleChoiceAllOfTheseSelected = (itemKey, ...optionKeys) => and(...optionKeys.map(option => expressionUtils_expressionGen.generateExpression('responseHasKeysAny', undefined, itemKey, [constants_keyDefinitions.responseGroupKey, constants_keyDefinitions.multipleChoiceKey].join('.'), option)));
179
317
  const multipleChoiceOnlyOtherKeysSelected = (itemKey, ...optionKeys) => expressionUtils_expressionGen.generateExpression('responseHasOnlyKeysOtherThan', undefined, itemKey, [constants_keyDefinitions.responseGroupKey, constants_keyDefinitions.multipleChoiceKey].join('.'), ...optionKeys);
180
318
  const singleChoiceOnlyOtherOptionSelected = (itemKey, ...optionKeys) => expressionUtils_expressionGen.generateExpression('responseHasOnlyKeysOtherThan', undefined, itemKey, [constants_keyDefinitions.responseGroupKey, constants_keyDefinitions.singleChoiceKey].join('.'), ...optionKeys);
319
+ const consentAcceptedCondition = (itemKey) => {
320
+ return hasResponseKey(itemKey, [constants_keyDefinitions.responseGroupKey, constants_keyDefinitions.consentKey].join('.'));
321
+ };
181
322
  const stopParticipation = () => UPDATE_STUDY_STATUS('inactive');
182
323
  const finishParticipation = () => UPDATE_STUDY_STATUS('finished');
183
324
  /**
@@ -216,6 +357,8 @@ const NativeStudyEngineExpressions = {
216
357
  responseHasOnlyKeysOtherThan,
217
358
  getResponseValueAsNum,
218
359
  getResponseValueAsStr,
360
+ hasResponseKey,
361
+ hasResponseKeyWithValue,
219
362
  countResponseItems,
220
363
  // Old responses
221
364
  checkConditionForOldResponses,
@@ -226,8 +369,26 @@ const NativeStudyEngineExpressions = {
226
369
  getSurveyKeyAssignedFrom,
227
370
  getSurveyKeyAssignedUntil,
228
371
  hasStudyStatus,
229
- hasParticipantFlag,
372
+ hasParticipantFlagKeyAndValue,
373
+ hasParticipantFlagKey,
374
+ getParticipantFlagValue,
230
375
  lastSubmissionDateOlderThan,
376
+ hasMessageTypeAssigned,
377
+ getMessageNextTime,
378
+ incomingParticipantState: {
379
+ // for merge event
380
+ getStudyEntryTime: getStudyEntryTimeForIncoming,
381
+ hasSurveyKeyAssigned: hasSurveyKeyAssignedForIncoming,
382
+ getSurveyKeyAssignedFrom: getSurveyKeyAssignedFromForIncoming,
383
+ getSurveyKeyAssignedUntil: getSurveyKeyAssignedUntilForIncoming,
384
+ hasStudyStatus: hasStudyStatusForIncoming,
385
+ hasParticipantFlagKeyAndValue: hasParticipantFlagKeyAndValueForIncoming,
386
+ hasParticipantFlagKey: hasParticipantFlagKeyForIncoming,
387
+ getParticipantFlagValue: getParticipantFlagValueForIncoming,
388
+ lastSubmissionDateOlderThan: lastSubmissionDateOlderThanForIncoming,
389
+ hasMessageTypeAssigned: hasMessageTypeAssignedForIncoming,
390
+ getMessageNextTime: getMessageNextTimeForIncoming,
391
+ }
231
392
  },
232
393
  // logical and comparision
233
394
  eq,
@@ -247,6 +408,7 @@ const StudyEngineActions = {
247
408
  ifThen: IFTHEN,
248
409
  participantActions: {
249
410
  updateStudyStatus: UPDATE_STUDY_STATUS,
411
+ startNewStudySession: START_NEW_STUDY_SESSION,
250
412
  updateFlag: UPDATE_FLAG,
251
413
  removeFlag: REMOVE_FLAG,
252
414
  assignedSurveys: {
@@ -255,9 +417,23 @@ const StudyEngineActions = {
255
417
  remove: REMOVE_SURVEY_BY_KEY,
256
418
  },
257
419
  reports: {
258
- add: ADD_REPORT,
259
- removeAll: REMOVE_ALL_REPORTS,
260
- remove: REMOVE_REPORT_BY_KEY,
420
+ init: INIT_REPORT,
421
+ cancel: CANCEL_REPORT,
422
+ updateData: UPDATE_REPORT_DATA,
423
+ removeData: REMOVE_REPORT_DATA,
424
+ // Extra methods:
425
+ setReportIcon,
426
+ setReportMessage,
427
+ setReportSummary,
428
+ },
429
+ messages: {
430
+ add: ADD_MESSAGE,
431
+ removeAll: REMOVE_ALL_MESSAGES,
432
+ remove: REMOVE_MESSAGES_BY_TYPE,
433
+ },
434
+ confidentialResponses: {
435
+ removeByKey: REMOVE_CONFIDENTIAL_RESPONSE_BY_KEY,
436
+ removeAll: REMOVE_ALL_CONFIDENTIAL_RESPONSES,
261
437
  },
262
438
  // Extra methods:
263
439
  stopParticipation,
@@ -271,10 +447,20 @@ const StudyEngine = Object.assign(Object.assign(Object.assign({}, NativeStudyEng
271
447
  any: multipleChoiceOptionsSelected,
272
448
  none: multipleChoiceOnlyOtherKeysSelected,
273
449
  all: multipleChoiceAllOfTheseSelected,
450
+ }, consent: {
451
+ accepted: consentAcceptedCondition,
274
452
  }, survey: {
275
453
  isActive: hasSurveyKeyActive,
276
454
  validFromOlderThan: hasSurveyKeyValidFromOlderThan,
277
455
  validUntilSoonerThan: hasSurveyKeyValidUntilSoonerThan,
456
+ }, prefillRules: {
457
+ GET_LAST_SURVEY_ITEM,
458
+ }, contextRules: {
459
+ previousResponses: {
460
+ LAST_RESPONSES_BY_KEY,
461
+ ALL_RESPONSES_SINCE,
462
+ RESPONSES_SINCE_BY_KEY,
463
+ }
278
464
  } });
279
465
 
280
466
  exports.NativeStudyEngineExpressions = NativeStudyEngineExpressions;
@@ -1 +1 @@
1
- {"version":3,"file":"studyEngineExpressions.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"studyEngineExpressions.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
File without changes
File without changes
File without changes
@@ -1,63 +1,81 @@
1
1
  'use strict';
2
2
 
3
- var surveyEditor_componentEditor = require('./survey-editor/component-editor.js');
4
- var utils_randomKeyGenerator = require('./utils/randomKeyGenerator.js');
3
+ var surveys_surveyEditor_componentEditor = require('./surveys/survey-editor/component-editor.js');
4
+ var surveys_utils_randomKeyGenerator = require('./surveys/utils/randomKeyGenerator.js');
5
+ var logger_logger = require('./logger/logger.js');
5
6
 
6
7
  var data_types = {};
7
8
 
8
9
  var expression = {};
9
10
 
10
- Object.defineProperty(expression, "__esModule", { value: true });
11
- expression.isExpression = (value) => {
12
- return typeof (value) === 'object' && value.name !== undefined && value.name.length > 0;
13
- };
14
- expression.expressionArgParser = (arg) => {
15
- switch (arg.dtype) {
16
- case 'num':
17
- return arg.num;
18
- case 'str':
19
- return arg.str;
20
- case 'exp':
21
- return arg.exp;
22
- default:
23
- return arg.str;
24
- }
11
+ Object.defineProperty(expression, '__esModule', { value: true });
12
+
13
+ const isExpression = (value) => {
14
+ return typeof (value) === 'object' && value.name !== undefined && value.name.length > 0;
15
+ };
16
+ const expressionArgParser = (arg) => {
17
+ switch (arg.dtype) {
18
+ case 'num':
19
+ return arg.num;
20
+ case 'str':
21
+ return arg.str;
22
+ case 'exp':
23
+ return arg.exp;
24
+ default:
25
+ return arg.str;
26
+ }
25
27
  };
26
28
 
29
+ expression.expressionArgParser = expressionArgParser;
30
+ expression.isExpression = isExpression;
31
+
27
32
  var surveyItem = {};
28
33
 
29
- Object.defineProperty(surveyItem, "__esModule", { value: true });
30
- surveyItem.isSurveyGroupItem = (item) => {
31
- const items = item.items;
32
- return items !== undefined && items.length > 0;
34
+ Object.defineProperty(surveyItem, '__esModule', { value: true });
35
+
36
+ const isSurveyGroupItem$1 = (item) => {
37
+ const items = item.items;
38
+ return items !== undefined && items.length > 0;
33
39
  };
34
40
 
41
+ surveyItem.isSurveyGroupItem = isSurveyGroupItem$1;
42
+
35
43
  var surveyItemComponent = {};
36
44
 
37
- Object.defineProperty(surveyItemComponent, "__esModule", { value: true });
38
- surveyItemComponent.isItemGroupComponent = (item) => {
39
- const items = item.items;
40
- return items !== undefined && items.length > 0;
45
+ Object.defineProperty(surveyItemComponent, '__esModule', { value: true });
46
+
47
+ const isItemGroupComponent$1 = (item) => {
48
+ const items = item.items;
49
+ return items !== undefined && items.length > 0;
41
50
  };
42
51
 
52
+ surveyItemComponent.isItemGroupComponent = isItemGroupComponent$1;
53
+
43
54
  var response = {};
44
55
 
45
- Object.defineProperty(response, "__esModule", { value: true });
46
- response.isSurveyGroupItemResponse = (item) => {
47
- const items = item.items;
48
- return items !== undefined && items.length > 0;
56
+ Object.defineProperty(response, '__esModule', { value: true });
57
+
58
+ const isSurveyGroupItemResponse = (item) => {
59
+ const items = item.items;
60
+ return items !== undefined && items.length > 0;
49
61
  };
50
62
 
51
- (function (exports) {
52
- function __export(m) {
53
- for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
54
- }
55
- Object.defineProperty(exports, "__esModule", { value: true });
56
- __export(expression);
57
- __export(surveyItem);
58
- __export(surveyItemComponent);
59
- __export(response);
60
- }(data_types));
63
+ response.isSurveyGroupItemResponse = isSurveyGroupItemResponse;
64
+
65
+ Object.defineProperty(data_types, '__esModule', { value: true });
66
+
67
+ var data_types_expression = expression;
68
+ var data_types_surveyItem = surveyItem;
69
+ var data_types_surveyItemComponent = surveyItemComponent;
70
+ var data_types_response = response;
71
+
72
+
73
+
74
+ data_types.expressionArgParser = data_types_expression.expressionArgParser;
75
+ data_types.isExpression = data_types_expression.isExpression;
76
+ var isSurveyGroupItem = data_types.isSurveyGroupItem = data_types_surveyItem.isSurveyGroupItem;
77
+ var isItemGroupComponent = data_types.isItemGroupComponent = data_types_surveyItemComponent.isItemGroupComponent;
78
+ data_types.isSurveyGroupItemResponse = data_types_response.isSurveyGroupItemResponse;
61
79
 
62
80
  const initialRootComp = () => {
63
81
  return {
@@ -104,6 +122,9 @@ class ItemEditor {
104
122
  setKey(newKey) {
105
123
  this.surveyItem.key = newKey;
106
124
  }
125
+ setConfidentialMode(confidentialMode) {
126
+ this.surveyItem.confidentialMode = confidentialMode;
127
+ }
107
128
  addToFollows(key) {
108
129
  if (!this.surveyItem.follows) {
109
130
  this.surveyItem.follows = [];
@@ -260,7 +281,7 @@ class ItemEditor {
260
281
  props.key = 'rg';
261
282
  }
262
283
  props.isGroup = true;
263
- const newComponent = (new surveyEditor_componentEditor.ComponentEditor(undefined, props)).getComponent();
284
+ const newComponent = (new surveys_surveyEditor_componentEditor.ComponentEditor(undefined, props)).getComponent();
264
285
  const ind = currentItem.components.items.findIndex(comp => comp.role === 'responseGroup');
265
286
  if (ind < 0) {
266
287
  currentItem.components.items.push(newComponent);
@@ -281,7 +302,7 @@ class ItemEditor {
281
302
  obj = currentItem.components.items[ind];
282
303
  continue;
283
304
  }
284
- if (!data_types.isItemGroupComponent(obj)) {
305
+ if (!isItemGroupComponent(obj)) {
285
306
  obj.items = [];
286
307
  // leaf found
287
308
  break;
@@ -298,10 +319,10 @@ class ItemEditor {
298
319
  return;
299
320
  }
300
321
  if (obj.items.find(it => props.key === it.key)) {
301
- console.error('item already exists with key: ', props.key);
322
+ logger_logger.Logger.criticalError('Duplicate key: ' + props.key);
302
323
  return undefined;
303
324
  }
304
- const newComponent = (new surveyEditor_componentEditor.ComponentEditor(undefined, props)).getComponent();
325
+ const newComponent = (new surveys_surveyEditor_componentEditor.ComponentEditor(undefined, props)).getComponent();
305
326
  if (atPosition !== undefined) {
306
327
  obj.items.splice(atPosition, 0, newComponent);
307
328
  }
@@ -317,7 +338,7 @@ class ItemEditor {
317
338
  currentItem.components = Object.assign({}, initialRootComp());
318
339
  }
319
340
  if (newComp.key === undefined) {
320
- newComp.key = utils_randomKeyGenerator.generateRandomKey(4);
341
+ newComp.key = surveys_utils_randomKeyGenerator.generateRandomKey(4);
321
342
  }
322
343
  if (!parentKey) {
323
344
  const ind = currentItem.components.items.findIndex(comp => comp.role === 'responseGroup');
@@ -340,7 +361,7 @@ class ItemEditor {
340
361
  obj = currentItem.components.items[ind];
341
362
  continue;
342
363
  }
343
- if (!data_types.isItemGroupComponent(obj)) {
364
+ if (!isItemGroupComponent(obj)) {
344
365
  obj.items = [];
345
366
  // leaf found
346
367
  break;
@@ -357,7 +378,7 @@ class ItemEditor {
357
378
  return;
358
379
  }
359
380
  if (obj.items.find(it => newComp.key === it.key)) {
360
- console.error('item already exists with key: ', newComp.key);
381
+ logger_logger.Logger.criticalError('Duplicate key: ' + newComp.key);
361
382
  return undefined;
362
383
  }
363
384
  if (atPosition !== undefined) {
@@ -392,7 +413,7 @@ class ItemEditor {
392
413
  const parentIds = ids.slice(1, ids.length - 1);
393
414
  let obj = responseGroup;
394
415
  for (const currentKey of parentIds) {
395
- if (!data_types.isItemGroupComponent(obj)) {
416
+ if (!isItemGroupComponent(obj)) {
396
417
  // leaf found
397
418
  break;
398
419
  }
@@ -433,7 +454,7 @@ class ItemEditor {
433
454
  const parentIds = ids.slice(1, ids.length - 1);
434
455
  let obj = responseGroup;
435
456
  for (const currentKey of parentIds) {
436
- if (!data_types.isItemGroupComponent(obj)) {
457
+ if (!isItemGroupComponent(obj)) {
437
458
  // leaf found
438
459
  break;
439
460
  }
@@ -468,7 +489,7 @@ class ItemEditor {
468
489
  obj = currentItem.components.items[ind];
469
490
  continue;
470
491
  }
471
- if (!data_types.isItemGroupComponent(obj)) {
492
+ if (!isItemGroupComponent(obj)) {
472
493
  obj.items = [];
473
494
  // leaf found
474
495
  break;
@@ -517,5 +538,5 @@ class ItemEditor {
517
538
  }
518
539
 
519
540
  exports.ItemEditor = ItemEditor;
520
- exports.data_types = data_types;
521
- //# sourceMappingURL=item-editor-8fd24b61.js.map
541
+ exports.isSurveyGroupItem = isSurveyGroupItem;
542
+ //# sourceMappingURL=item-editor-59f51ecc.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"item-editor-59f51ecc.js","sources":["../node_modules/survey-engine/data_types/expression.js","../node_modules/survey-engine/data_types/survey-item.js","../node_modules/survey-engine/data_types/survey-item-component.js","../node_modules/survey-engine/data_types/response.js","../node_modules/survey-engine/data_types/index.js"],"sourcesContent":["'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nconst isExpression = (value) => {\r\n return typeof (value) === 'object' && value.name !== undefined && value.name.length > 0;\r\n};\r\nconst expressionArgParser = (arg) => {\r\n switch (arg.dtype) {\r\n case 'num':\r\n return arg.num;\r\n case 'str':\r\n return arg.str;\r\n case 'exp':\r\n return arg.exp;\r\n default:\r\n return arg.str;\r\n }\r\n};\n\nexports.expressionArgParser = expressionArgParser;\nexports.isExpression = isExpression;\n//# sourceMappingURL=expression.js.map\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nconst isSurveyGroupItem = (item) => {\r\n const items = item.items;\r\n return items !== undefined && items.length > 0;\r\n};\n\nexports.isSurveyGroupItem = isSurveyGroupItem;\n//# sourceMappingURL=survey-item.js.map\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nconst isItemGroupComponent = (item) => {\r\n const items = item.items;\r\n return items !== undefined && items.length > 0;\r\n};\n\nexports.isItemGroupComponent = isItemGroupComponent;\n//# sourceMappingURL=survey-item-component.js.map\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nconst isSurveyGroupItemResponse = (item) => {\r\n const items = item.items;\r\n return items !== undefined && items.length > 0;\r\n};\n\nexports.isSurveyGroupItemResponse = isSurveyGroupItemResponse;\n//# sourceMappingURL=response.js.map\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar data_types_expression = require('./expression.js');\nvar data_types_surveyItem = require('./survey-item.js');\nvar data_types_surveyItemComponent = require('./survey-item-component.js');\nvar data_types_response = require('./response.js');\n\n\n\nexports.expressionArgParser = data_types_expression.expressionArgParser;\nexports.isExpression = data_types_expression.isExpression;\nexports.isSurveyGroupItem = data_types_surveyItem.isSurveyGroupItem;\nexports.isItemGroupComponent = data_types_surveyItemComponent.isItemGroupComponent;\nexports.isSurveyGroupItemResponse = data_types_response.isSurveyGroupItemResponse;\n//# sourceMappingURL=index.js.map\n"],"names":["isSurveyGroupItem","isItemGroupComponent","require$$0","require$$1","require$$2","require$$3"],"mappings":"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"}
@@ -0,0 +1 @@
1
+ export { Logger } from './logger';
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var logger_logger = require('./logger.js');
6
+
7
+
8
+
9
+ exports.Logger = logger_logger.Logger;
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
File without changes
File without changes
File without changes