@@ -90,13 +90,14 @@ function getCommonEventParams(options) {
90
90
91
91
/**
92
92
* Creates object of params specific to impression events
93
- * @param {Object } configObj Object representing project configuration
94
- * @param {string } experimentId ID of experiment for which impression needs to be recorded
95
- * @param {string } variationId ID for variation which would be presented to user
96
- * @param {string } ruleKey Key of experiment for which impression needs to be recorded
97
- * @param {string } ruleType Type for the decision source
98
- * @param {string } flagKey Key for a feature flag
99
- * @return {Object } Impression event params
93
+ * @param {Object } configObj Object representing project configuration
94
+ * @param {string } experimentId ID of experiment for which impression needs to be recorded
95
+ * @param {string } variationId ID for variation which would be presented to user
96
+ * @param {string } ruleKey Key of experiment for which impression needs to be recorded
97
+ * @param {string } ruleType Type for the decision source
98
+ * @param {string } flagKey Key for a feature flag
99
+ * @param {boolean } enabled Boolean representing if feature is enabled
100
+ * @return {Object } Impression event params
100
101
*/
101
102
function getImpressionEventParams ( configObj , experimentId , variationId , ruleKey , ruleType , flagKey , enabled ) {
102
103
let campaignId = null ;
@@ -177,19 +178,19 @@ function getVisitorSnapshot(configObj, eventKey, eventTags, logger) {
177
178
178
179
/**
179
180
* Create impression event params to be sent to the logging endpoint
180
- * @param {Object } options Object containing values needed to build impression event
181
- * @param {Object } options.attributes Object representing user attributes and values which need to be recorded
182
- * @param {string } options.clientEngine The client we are using: node or javascript
183
- * @param {string } options.clientVersion The version of the client
184
- * @param {Object } options.configObj Object representing project configuration, including datafile information and mappings for quick lookup
185
- * @param {string } options.experimentId Experiment for which impression needs to be recorded
186
- * @param {string } options.userId ID for user
187
- * @param {string } options.variationId ID for variation which would be presented to user
188
- * @param {string } options.ruleKey Key of an experiment for which impression needs to be recorded
189
- * @param {string } options.ruleType Type for the decision source
190
- * @param {string } options.flagKey Key for a feature flag
191
- * @param {string } options.enabled Boolean enabled for a feature
192
- * @return {Object } Params to be used in impression event logging endpoint call
181
+ * @param {Object } options Object containing values needed to build impression event
182
+ * @param {Object } options.attributes Object representing user attributes and values which need to be recorded
183
+ * @param {string } options.clientEngine The client we are using: node or javascript
184
+ * @param {string } options.clientVersion The version of the client
185
+ * @param {Object } options.configObj Object representing project configuration, including datafile information and mappings for quick lookup
186
+ * @param {string } options.experimentId Experiment for which impression needs to be recorded
187
+ * @param {string } options.userId ID for user
188
+ * @param {string } options.variationId ID for variation which would be presented to user
189
+ * @param {string } options.ruleKey Key of an experiment for which impression needs to be recorded
190
+ * @param {string } options.ruleType Type for the decision source
191
+ * @param {string } options.flagKey Key for a feature flag
192
+ * @param {boolean } options.enabled Boolean representing if feature is enabled
193
+ * @return {Object } Params to be used in impression event logging endpoint call
193
194
*/
194
195
export var getImpressionEvent = function ( options ) {
195
196
var impressionEvent = {
0 commit comments