autotel-subscribers 19.0.1 → 20.0.1
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/dist/factories.cjs +12 -8
- package/dist/factories.cjs.map +1 -1
- package/dist/factories.js +12 -8
- package/dist/factories.js.map +1 -1
- package/dist/index.cjs +12 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +12 -8
- package/dist/index.js.map +1 -1
- package/dist/webhook.cjs +12 -8
- package/dist/webhook.cjs.map +1 -1
- package/dist/webhook.d.cts +5 -5
- package/dist/webhook.d.ts +5 -5
- package/dist/webhook.js +12 -8
- package/dist/webhook.js.map +1 -1
- package/index.js +1 -1
- package/package.json +3 -3
- package/src/webhook.ts +18 -2
package/dist/factories.cjs
CHANGED
|
@@ -17187,45 +17187,49 @@ var WebhookSubscriber = class {
|
|
|
17187
17187
|
}
|
|
17188
17188
|
console.error(`Webhook subscriber failed after ${maxRetries} attempts:`, lastError);
|
|
17189
17189
|
}
|
|
17190
|
-
async trackEvent(name, attributes) {
|
|
17190
|
+
async trackEvent(name, attributes, options) {
|
|
17191
17191
|
const request = this.send({
|
|
17192
17192
|
type: "event",
|
|
17193
17193
|
name,
|
|
17194
17194
|
attributes,
|
|
17195
|
-
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
17195
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
17196
|
+
autotel: options?.autotel
|
|
17196
17197
|
});
|
|
17197
17198
|
this.trackRequest(request);
|
|
17198
17199
|
await request;
|
|
17199
17200
|
}
|
|
17200
|
-
async trackFunnelStep(funnelName, step, attributes) {
|
|
17201
|
+
async trackFunnelStep(funnelName, step, attributes, options) {
|
|
17201
17202
|
const request = this.send({
|
|
17202
17203
|
type: "funnel",
|
|
17203
17204
|
funnel: funnelName,
|
|
17204
17205
|
step,
|
|
17205
17206
|
attributes,
|
|
17206
|
-
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
17207
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
17208
|
+
autotel: options?.autotel
|
|
17207
17209
|
});
|
|
17208
17210
|
this.trackRequest(request);
|
|
17209
17211
|
await request;
|
|
17210
17212
|
}
|
|
17211
|
-
async trackOutcome(operationName, outcome, attributes) {
|
|
17213
|
+
async trackOutcome(operationName, outcome, attributes, options) {
|
|
17212
17214
|
const request = this.send({
|
|
17213
17215
|
type: "outcome",
|
|
17214
17216
|
operation: operationName,
|
|
17215
17217
|
outcome,
|
|
17216
17218
|
attributes,
|
|
17217
|
-
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
17219
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
17220
|
+
autotel: options?.autotel
|
|
17218
17221
|
});
|
|
17219
17222
|
this.trackRequest(request);
|
|
17220
17223
|
await request;
|
|
17221
17224
|
}
|
|
17222
|
-
async trackValue(name, value, attributes) {
|
|
17225
|
+
async trackValue(name, value, attributes, options) {
|
|
17223
17226
|
const request = this.send({
|
|
17224
17227
|
type: "value",
|
|
17225
17228
|
name,
|
|
17226
17229
|
value,
|
|
17227
17230
|
attributes,
|
|
17228
|
-
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
17231
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
17232
|
+
autotel: options?.autotel
|
|
17229
17233
|
});
|
|
17230
17234
|
this.trackRequest(request);
|
|
17231
17235
|
await request;
|