@sprig-technologies/sprig-browser 2.17.5 → 2.18.0

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 (3) hide show
  1. package/index.d.ts +4 -3
  2. package/index.js +2 -2
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -115,11 +115,12 @@ export class SprigAPI {
115
115
  setPartnerAnonymousId(partnerAnonymousId: any): void;
116
116
  /**
117
117
  * track an event to show survey if eligible
118
- * @param {String} eventName
119
- * @param {Object} metadata
118
+ * @param {String} eventName name of event to track
119
+ * @param {Object} properties event properties (optional)
120
+ * @param {Object} metadata event metadata (optional)
120
121
  * @returns
121
122
  */
122
- track(eventName: string, metadata?: any): void;
123
+ track(eventName: string, properties: any, metadata?: any): void;
123
124
  /**
124
125
  * optionally set userId and/or anonymousId, track an event to show survey if eligible
125
126
  * @param {Object} payload