@aircall/tracker
Advanced tools
Comparing version 3.1.3 to 3.2.1
@@ -0,1 +1,21 @@ | ||
declare enum TRACKER { | ||
INIT = "TRACKER_INIT", | ||
TRACK = "TRACKER_TRACK", | ||
PAGE = "TRACKER_PAGE" | ||
} | ||
interface TrackerAction { | ||
type: TRACKER.TRACK; | ||
message: string; | ||
properties: object; | ||
} | ||
interface PageAction { | ||
type: TRACKER.PAGE; | ||
properties: object; | ||
} | ||
declare const initTracker: () => { | ||
type: TRACKER.INIT; | ||
}; | ||
declare const track: (message: string, properties?: object) => TrackerAction; | ||
declare const page: (properties?: object) => PageAction; | ||
declare enum TRACKER_ENVIRONMENT { | ||
@@ -83,22 +103,2 @@ DEVELOPMENT = "development", | ||
declare enum TRACKER { | ||
INIT = "TRACKER_INIT", | ||
TRACK = "TRACKER_TRACK", | ||
PAGE = "TRACKER_PAGE" | ||
} | ||
interface TrackerAction { | ||
type: TRACKER.TRACK; | ||
message: string; | ||
properties: object; | ||
} | ||
interface PageAction { | ||
type: TRACKER.PAGE; | ||
properties: object; | ||
} | ||
declare const initTracker: () => { | ||
type: TRACKER.INIT; | ||
}; | ||
declare const track: (message: string, properties?: object) => TrackerAction; | ||
declare const page: (properties?: object) => PageAction; | ||
export { CompanyTrackerIdentification, ICompanyBillingPeriod, ICompanyPlan, ICompanyTierLevel, IUserOS, PageAction, TRACKER, TRACKER_ENVIRONMENT, Tracker, TrackerAction, TrackerContext, TrackerIdentification, TrackerOptions, defaultIdentification, initTracker, page, track }; |
@@ -25,3 +25,21 @@ 'use strict'; | ||
// src/Tracker.ts | ||
// src/actions.ts | ||
var TRACKER = /* @__PURE__ */ ((TRACKER2) => { | ||
TRACKER2["INIT"] = "TRACKER_INIT"; | ||
TRACKER2["TRACK"] = "TRACKER_TRACK"; | ||
TRACKER2["PAGE"] = "TRACKER_PAGE"; | ||
return TRACKER2; | ||
})(TRACKER || {}); | ||
var initTracker = () => ({ | ||
type: "TRACKER_INIT" /* INIT */ | ||
}); | ||
var track = (message, properties = {}) => ({ | ||
type: "TRACKER_TRACK" /* TRACK */, | ||
message, | ||
properties | ||
}); | ||
var page = (properties = {}) => ({ | ||
type: "TRACKER_PAGE" /* PAGE */, | ||
properties | ||
}); | ||
var RUDDERSTACK_DATA_PLANE_URL = "https://aircall-dataplane.rudderstack.com"; | ||
@@ -121,22 +139,2 @@ var TRACKER_ENVIRONMENT = /* @__PURE__ */ ((TRACKER_ENVIRONMENT2) => { | ||
// src/actions.ts | ||
var TRACKER = /* @__PURE__ */ ((TRACKER2) => { | ||
TRACKER2["INIT"] = "TRACKER_INIT"; | ||
TRACKER2["TRACK"] = "TRACKER_TRACK"; | ||
TRACKER2["PAGE"] = "TRACKER_PAGE"; | ||
return TRACKER2; | ||
})(TRACKER || {}); | ||
var initTracker = () => ({ | ||
type: "TRACKER_INIT" /* INIT */ | ||
}); | ||
var track = (message, properties = {}) => ({ | ||
type: "TRACKER_TRACK" /* TRACK */, | ||
message, | ||
properties | ||
}); | ||
var page = (properties = {}) => ({ | ||
type: "TRACKER_PAGE" /* PAGE */, | ||
properties | ||
}); | ||
exports.TRACKER = TRACKER; | ||
@@ -143,0 +141,0 @@ exports.TRACKER_ENVIRONMENT = TRACKER_ENVIRONMENT; |
{ | ||
"name": "@aircall/tracker", | ||
"version": "3.1.3", | ||
"version": "3.2.1", | ||
"main": "dist/index.js", | ||
@@ -35,6 +35,6 @@ "module": "dist/index.mjs", | ||
"eslint": "8.30.0", | ||
"@aircall/eslint-config": "1.2.5", | ||
"@aircall/eslint-config": "1.3.1", | ||
"size-limit": "8.1.0", | ||
"@aircall/tsconfig": "1.3.1", | ||
"tsup": "6.7.0", | ||
"@aircall/tsconfig": "1.4.0", | ||
"tsup": "7.1.0", | ||
"tslib": "2.4.0", | ||
@@ -49,4 +49,5 @@ "jest-environment-jsdom": "29.5.0" | ||
"lint": "eslint --ext ts src", | ||
"size": "size-limit" | ||
"size": "size-limit", | ||
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
19718
6
354