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.
- package/{build/constants → constants}/key-definitions.d.ts +3 -0
- package/{build/constants → constants}/key-definitions.js +7 -1
- package/{build/constants → constants}/key-definitions.js.map +1 -1
- package/exporter/index.d.ts +2 -0
- package/exporter/index.js +99 -0
- package/exporter/index.js.map +1 -0
- package/{build/expression-utils → expression-utils}/expressionGen.d.ts +1 -1
- package/{build/expression-utils → expression-utils}/expressionGen.js +0 -0
- package/{build/expression-utils → expression-utils}/expressionGen.js.map +0 -0
- package/expression-utils/studyEngineExpressions.d.ts +193 -0
- package/{build/expression-utils → expression-utils}/studyEngineExpressions.js +205 -19
- package/{build/expression-utils → expression-utils}/studyEngineExpressions.js.map +1 -1
- package/{build/index.d.ts → index.d.ts} +0 -0
- package/{build/index.js → index.js} +0 -0
- package/{build/index.js.map → index.js.map} +0 -0
- package/{build/item-editor-8fd24b61.js → item-editor-59f51ecc.js} +72 -51
- package/item-editor-59f51ecc.js.map +1 -0
- package/logger/index.d.ts +1 -0
- package/logger/index.js +10 -0
- package/logger/index.js.map +1 -0
- package/{build/logger → logger}/logger.d.ts +0 -0
- package/{build/logger → logger}/logger.js +0 -0
- package/{build/logger → logger}/logger.js.map +0 -0
- package/package.json +7 -8
- package/surveys/index.d.ts +3 -0
- package/surveys/index.js +29 -0
- package/surveys/index.js.map +1 -0
- package/surveys/responseTypeGenerators/likertGroupComponents.d.ts +27 -0
- package/surveys/responseTypeGenerators/likertGroupComponents.js +350 -0
- package/surveys/responseTypeGenerators/likertGroupComponents.js.map +1 -0
- package/surveys/responseTypeGenerators/matrixGroupComponent.d.ts +49 -0
- package/surveys/responseTypeGenerators/matrixGroupComponent.js +100 -0
- package/surveys/responseTypeGenerators/matrixGroupComponent.js.map +1 -0
- package/surveys/responseTypeGenerators/optionGroupComponents.d.ts +7 -0
- package/surveys/responseTypeGenerators/optionGroupComponents.js +129 -0
- package/surveys/responseTypeGenerators/optionGroupComponents.js.map +1 -0
- package/{build → surveys}/survey-editor/component-editor.d.ts +1 -1
- package/{build → surveys}/survey-editor/component-editor.js +0 -0
- package/{build → surveys}/survey-editor/component-editor.js.map +0 -0
- package/{build → surveys}/survey-editor/data-types.d.ts +1 -1
- package/{build → surveys}/survey-editor/data-types.js +0 -0
- package/{build → surveys}/survey-editor/data-types.js.map +0 -0
- package/{build → surveys}/survey-editor/item-editor.d.ts +2 -1
- package/{build → surveys}/survey-editor/item-editor.js +3 -2
- package/{build → surveys}/survey-editor/item-editor.js.map +1 -1
- package/{build → surveys}/survey-editor/survey-editor.d.ts +6 -1
- package/{build → surveys}/survey-editor/survey-editor.js +15 -8
- package/{build → surveys}/survey-editor/survey-editor.js.map +1 -1
- package/{build/expression-utils/surveyEngineExpressions.d.ts → surveys/survey-engine-expressions.d.ts} +12 -2
- package/{build/expression-utils/surveyEngineExpressions.js → surveys/survey-engine-expressions.js} +45 -4
- package/{build/expression-utils/surveyEngineExpressions.js.map → surveys/survey-engine-expressions.js.map} +1 -1
- package/surveys/survey-items.d.ts +72 -0
- package/surveys/survey-items.js +384 -0
- package/surveys/survey-items.js.map +1 -0
- package/{build → surveys}/types/group.d.ts +1 -1
- package/{build → surveys}/types/group.js +6 -5
- package/{build → surveys}/types/group.js.map +1 -1
- package/surveys/types/index.d.ts +4 -0
- package/surveys/types/index.js +22 -0
- package/surveys/types/index.js.map +1 -0
- package/surveys/types/item-properties.d.ts +223 -0
- package/surveys/types/item-properties.js +10 -0
- package/surveys/types/item-properties.js.map +1 -0
- package/{build → surveys}/types/item.d.ts +1 -1
- package/{build → surveys}/types/item.js +0 -0
- package/{build → surveys}/types/item.js.map +0 -0
- package/{build/types/surveyDefinition.d.ts → surveys/types/survey-definition.d.ts} +7 -3
- package/{build/types/surveyDefinition.js → surveys/types/survey-definition.js} +20 -11
- package/surveys/types/survey-definition.js.map +1 -0
- package/{build → surveys}/utils/componentGenerators.d.ts +2 -13
- package/surveys/utils/componentGenerators.js +59 -0
- package/{build → surveys}/utils/componentGenerators.js.map +1 -1
- package/surveys/utils/optionDefGenerators.d.ts +84 -0
- package/surveys/utils/optionDefGenerators.js +211 -0
- package/surveys/utils/optionDefGenerators.js.map +1 -0
- package/{build → surveys}/utils/randomKeyGenerator.d.ts +0 -0
- package/{build → surveys}/utils/randomKeyGenerator.js +0 -0
- package/{build → surveys}/utils/randomKeyGenerator.js.map +0 -0
- package/{build → surveys}/utils/simple-generators.d.ts +4 -3
- package/{build → surveys}/utils/simple-generators.js +34 -5
- package/{build → surveys}/utils/simple-generators.js.map +1 -1
- package/surveys/utils/simple-question-editor.d.ts +14 -0
- package/{build → surveys}/utils/simple-question-editor.js +10 -7
- package/{build → surveys}/utils/simple-question-editor.js.map +1 -1
- package/{build/types → types}/duration.d.ts +0 -0
- package/{build/types → types}/duration.js +0 -0
- package/{build/types → types}/duration.js.map +0 -0
- package/{build/types → types}/expression.d.ts +1 -1
- package/{build/types → types}/expression.js +0 -0
- package/{build/types → types}/expression.js.map +0 -0
- package/{build/types → types}/study.d.ts +2 -2
- package/{build/types → types}/study.js +0 -0
- package/{build/types → types}/study.js.map +0 -0
- package/{build/types → types}/studyRules.d.ts +3 -2
- package/{build/types → types}/studyRules.js +5 -1
- package/types/studyRules.js.map +1 -0
- package/.babelrc.js +0 -7
- package/.editorconfig +0 -13
- package/LICENSE +0 -202
- package/build/expression-utils/studyEngineExpressions.d.ts +0 -114
- package/build/item-editor-8fd24b61.js.map +0 -1
- package/build/package.json +0 -26
- package/build/types/studyRules.js.map +0 -1
- package/build/types/surveyDefinition.js.map +0 -1
- package/build/utils/componentGenerators.js +0 -92
- package/build/utils/question-type-generator.d.ts +0 -283
- package/build/utils/question-type-generator.js +0 -949
- package/build/utils/question-type-generator.js.map +0 -1
- package/build/utils/simple-question-editor.d.ts +0 -14
- package/rollup.config.js +0 -53
- package/src/constants/key-definitions.ts +0 -13
- package/src/expression-utils/expressionGen.ts +0 -28
- package/src/expression-utils/studyEngineExpressions.ts +0 -359
- package/src/expression-utils/surveyEngineExpressions.ts +0 -483
- package/src/index.ts +0 -1
- package/src/logger/logger.ts +0 -31
- package/src/survey-editor/component-editor.ts +0 -133
- package/src/survey-editor/data-types.ts +0 -18
- package/src/survey-editor/item-editor.ts +0 -528
- package/src/survey-editor/survey-editor.ts +0 -260
- package/src/types/duration.ts +0 -32
- package/src/types/expression.ts +0 -22
- package/src/types/group.ts +0 -73
- package/src/types/item.ts +0 -42
- package/src/types/study.ts +0 -17
- package/src/types/studyRules.ts +0 -39
- package/src/types/surveyDefinition.ts +0 -83
- package/src/utils/componentGenerators.ts +0 -122
- package/src/utils/question-type-generator.ts +0 -1516
- package/src/utils/randomKeyGenerator.ts +0 -11
- package/src/utils/simple-generators.ts +0 -106
- package/src/utils/simple-question-editor.ts +0 -52
- 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
|
|
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
|
-
*
|
|
153
|
-
* @param
|
|
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
|
|
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
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
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
|
-
|
|
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
|
-
|
|
259
|
-
|
|
260
|
-
|
|
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
|
|
4
|
-
var
|
|
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,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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,
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
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,
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
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
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
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
|
|
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 (!
|
|
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
|
-
|
|
322
|
+
logger_logger.Logger.criticalError('Duplicate key: ' + props.key);
|
|
302
323
|
return undefined;
|
|
303
324
|
}
|
|
304
|
-
const newComponent = (new
|
|
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 =
|
|
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 (!
|
|
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
|
-
|
|
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 (!
|
|
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 (!
|
|
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 (!
|
|
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.
|
|
521
|
-
//# sourceMappingURL=item-editor-
|
|
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';
|
package/logger/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|