@croct/sdk 0.18.2 → 0.19.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.
package/constants.cjs CHANGED
@@ -25,7 +25,7 @@ __export(constants_exports, {
25
25
  module.exports = __toCommonJS(constants_exports);
26
26
  const BASE_ENDPOINT_URL = "https://api.croct.io";
27
27
  const MAX_QUERY_LENGTH = parseInt("<@maxQueryLength@>", 10);
28
- const VERSION = "0.18.2";
28
+ const VERSION = "0.19.0";
29
29
  const CLIENT_LIBRARY = `Croct SDK JS v${VERSION}`;
30
30
  // Annotate the CommonJS export names for ESM import in node:
31
31
  0 && (module.exports = {
package/constants.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  declare const BASE_ENDPOINT_URL = "https://api.croct.io";
2
2
  declare const MAX_QUERY_LENGTH: number;
3
- declare const VERSION = "0.18.2";
4
- declare const CLIENT_LIBRARY = "Croct SDK JS v0.18.2";
3
+ declare const VERSION = "0.19.0";
4
+ declare const CLIENT_LIBRARY = "Croct SDK JS v0.19.0";
5
5
 
6
6
  export { BASE_ENDPOINT_URL, CLIENT_LIBRARY, MAX_QUERY_LENGTH, VERSION };
package/constants.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  declare const BASE_ENDPOINT_URL = "https://api.croct.io";
2
2
  declare const MAX_QUERY_LENGTH: number;
3
- declare const VERSION = "0.18.2";
4
- declare const CLIENT_LIBRARY = "Croct SDK JS v0.18.2";
3
+ declare const VERSION = "0.19.0";
4
+ declare const CLIENT_LIBRARY = "Croct SDK JS v0.19.0";
5
5
 
6
6
  export { BASE_ENDPOINT_URL, CLIENT_LIBRARY, MAX_QUERY_LENGTH, VERSION };
package/constants.js CHANGED
@@ -1,6 +1,6 @@
1
1
  const BASE_ENDPOINT_URL = "https://api.croct.io";
2
2
  const MAX_QUERY_LENGTH = parseInt("<@maxQueryLength@>", 10);
3
- const VERSION = "0.18.2";
3
+ const VERSION = "0.19.0";
4
4
  const CLIENT_LIBRARY = `Croct SDK JS v${VERSION}`;
5
5
  export {
6
6
  BASE_ENDPOINT_URL,
@@ -33,7 +33,8 @@ const eventSchemas = {
33
33
  interestShown: import_schema.interestShown,
34
34
  postViewed: import_schema.postViewed,
35
35
  goalCompleted: import_schema.goalCompleted,
36
- linkOpened: import_schema.linkOpened
36
+ linkOpened: import_schema.linkOpened,
37
+ leadGenerated: import_schema.leadGenerated
37
38
  };
38
39
  function validateEvent(event) {
39
40
  const { type, ...payload } = event;
@@ -10,7 +10,8 @@ import {
10
10
  orderPlaced,
11
11
  productViewed,
12
12
  userSignedUp,
13
- linkOpened
13
+ linkOpened,
14
+ leadGenerated
14
15
  } from "../schema/index.js";
15
16
  const eventSchemas = {
16
17
  cartViewed,
@@ -23,7 +24,8 @@ const eventSchemas = {
23
24
  interestShown,
24
25
  postViewed,
25
26
  goalCompleted,
26
- linkOpened
27
+ linkOpened,
28
+ leadGenerated
27
29
  };
28
30
  function validateEvent(event) {
29
31
  const { type, ...payload } = event;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@croct/sdk",
3
- "version": "0.18.2",
3
+ "version": "0.19.0",
4
4
  "description": "Croct SDK for JavaScript.",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -23,6 +23,7 @@ __export(eventSchemas_exports, {
23
23
  eventOccurred: () => eventOccurred,
24
24
  goalCompleted: () => goalCompleted,
25
25
  interestShown: () => interestShown,
26
+ leadGenerated: () => leadGenerated,
26
27
  linkOpened: () => linkOpened,
27
28
  orderPlaced: () => orderPlaced,
28
29
  postViewed: () => postViewed,
@@ -145,6 +146,22 @@ const eventOccurred = new import_validation.ObjectType({
145
146
  })
146
147
  }
147
148
  });
149
+ const leadGenerated = new import_validation.ObjectType({
150
+ properties: {
151
+ leadId: new import_validation.StringType({
152
+ minLength: 1,
153
+ maxLength: 100
154
+ }),
155
+ currency: new import_validation.StringType({
156
+ maxLength: 10,
157
+ minLength: 1
158
+ }),
159
+ value: new import_validation.NumberType({
160
+ minimum: 0
161
+ }),
162
+ lead: import_userSchema.userProfileSchema
163
+ }
164
+ });
148
165
  // Annotate the CommonJS export names for ESM import in node:
149
166
  0 && (module.exports = {
150
167
  cartModified,
@@ -153,6 +170,7 @@ const eventOccurred = new import_validation.ObjectType({
153
170
  eventOccurred,
154
171
  goalCompleted,
155
172
  interestShown,
173
+ leadGenerated,
156
174
  linkOpened,
157
175
  orderPlaced,
158
176
  postViewed,
@@ -12,5 +12,6 @@ declare const interestShown: ObjectType;
12
12
  declare const postViewed: ObjectType;
13
13
  declare const linkOpened: ObjectType;
14
14
  declare const eventOccurred: ObjectType;
15
+ declare const leadGenerated: ObjectType;
15
16
 
16
- export { cartModified, cartViewed, checkoutStarted, eventOccurred, goalCompleted, interestShown, linkOpened, orderPlaced, postViewed, productViewed, userSignedUp };
17
+ export { cartModified, cartViewed, checkoutStarted, eventOccurred, goalCompleted, interestShown, leadGenerated, linkOpened, orderPlaced, postViewed, productViewed, userSignedUp };
@@ -12,5 +12,6 @@ declare const interestShown: ObjectType;
12
12
  declare const postViewed: ObjectType;
13
13
  declare const linkOpened: ObjectType;
14
14
  declare const eventOccurred: ObjectType;
15
+ declare const leadGenerated: ObjectType;
15
16
 
16
- export { cartModified, cartViewed, checkoutStarted, eventOccurred, goalCompleted, interestShown, linkOpened, orderPlaced, postViewed, productViewed, userSignedUp };
17
+ export { cartModified, cartViewed, checkoutStarted, eventOccurred, goalCompleted, interestShown, leadGenerated, linkOpened, orderPlaced, postViewed, productViewed, userSignedUp };
@@ -121,6 +121,22 @@ const eventOccurred = new ObjectType({
121
121
  })
122
122
  }
123
123
  });
124
+ const leadGenerated = new ObjectType({
125
+ properties: {
126
+ leadId: new StringType({
127
+ minLength: 1,
128
+ maxLength: 100
129
+ }),
130
+ currency: new StringType({
131
+ maxLength: 10,
132
+ minLength: 1
133
+ }),
134
+ value: new NumberType({
135
+ minimum: 0
136
+ }),
137
+ lead: userProfileSchema
138
+ }
139
+ });
124
140
  export {
125
141
  cartModified,
126
142
  cartViewed,
@@ -128,6 +144,7 @@ export {
128
144
  eventOccurred,
129
145
  goalCompleted,
130
146
  interestShown,
147
+ leadGenerated,
131
148
  linkOpened,
132
149
  orderPlaced,
133
150
  postViewed,
@@ -2,7 +2,7 @@ export { tokenScopeSchema } from './contextSchemas.cjs';
2
2
  export { cart, cartItem, order, orderItem, productDetails } from './ecommerceSchemas.cjs';
3
3
  export { evaluationOptionsSchema } from './evaluatorSchemas.cjs';
4
4
  export { fetchOptionsSchema } from './contentFetcherSchemas.cjs';
5
- export { cartModified, cartViewed, checkoutStarted, eventOccurred, goalCompleted, interestShown, linkOpened, orderPlaced, postViewed, productViewed, userSignedUp } from './eventSchemas.cjs';
5
+ export { cartModified, cartViewed, checkoutStarted, eventOccurred, goalCompleted, interestShown, leadGenerated, linkOpened, orderPlaced, postViewed, productViewed, userSignedUp } from './eventSchemas.cjs';
6
6
  export { loggerSchema } from './loggerSchema.cjs';
7
7
  export { addOperation, clearOperation, combineOperation, decrementOperation, incrementOperation, mergeOperation, removeOperation, setOperation, unsetOperation } from './operationSchemas.cjs';
8
8
  export { sdkFacadeConfigurationSchema } from './sdkFacadeSchemas.cjs';
package/schema/index.d.ts CHANGED
@@ -2,7 +2,7 @@ export { tokenScopeSchema } from './contextSchemas.js';
2
2
  export { cart, cartItem, order, orderItem, productDetails } from './ecommerceSchemas.js';
3
3
  export { evaluationOptionsSchema } from './evaluatorSchemas.js';
4
4
  export { fetchOptionsSchema } from './contentFetcherSchemas.js';
5
- export { cartModified, cartViewed, checkoutStarted, eventOccurred, goalCompleted, interestShown, linkOpened, orderPlaced, postViewed, productViewed, userSignedUp } from './eventSchemas.js';
5
+ export { cartModified, cartViewed, checkoutStarted, eventOccurred, goalCompleted, interestShown, leadGenerated, linkOpened, orderPlaced, postViewed, productViewed, userSignedUp } from './eventSchemas.js';
6
6
  export { loggerSchema } from './loggerSchema.js';
7
7
  export { addOperation, clearOperation, combineOperation, decrementOperation, incrementOperation, mergeOperation, removeOperation, setOperation, unsetOperation } from './operationSchemas.js';
8
8
  export { sdkFacadeConfigurationSchema } from './sdkFacadeSchemas.js';
package/tracker.cjs CHANGED
@@ -314,6 +314,21 @@ class Tracker {
314
314
  };
315
315
  }
316
316
  createBeaconPayload(event) {
317
+ if (event.type === "leadGenerated" && event.lead !== void 0) {
318
+ const { lead, ...payload2 } = event;
319
+ return {
320
+ ...payload2,
321
+ patch: {
322
+ operations: [
323
+ {
324
+ type: "merge",
325
+ path: ".",
326
+ value: lead
327
+ }
328
+ ]
329
+ }
330
+ };
331
+ }
317
332
  if (!(0, import_trackingEvents.isIdentifiedUserEvent)(event)) {
318
333
  return event;
319
334
  }
package/tracker.js CHANGED
@@ -295,6 +295,21 @@ class Tracker {
295
295
  };
296
296
  }
297
297
  createBeaconPayload(event) {
298
+ if (event.type === "leadGenerated" && event.lead !== void 0) {
299
+ const { lead, ...payload2 } = event;
300
+ return {
301
+ ...payload2,
302
+ patch: {
303
+ operations: [
304
+ {
305
+ type: "merge",
306
+ path: ".",
307
+ value: lead
308
+ }
309
+ ]
310
+ }
311
+ };
312
+ }
298
313
  if (!isIdentifiedUserEvent(event)) {
299
314
  return event;
300
315
  }
@@ -64,7 +64,8 @@ const miscEventTypes = [
64
64
  "interestShown",
65
65
  "postViewed",
66
66
  "eventOccurred",
67
- "linkOpened"
67
+ "linkOpened",
68
+ "leadGenerated"
68
69
  ];
69
70
  const eventTypes = [
70
71
  ...pageEventTypes,
@@ -73,8 +73,8 @@ declare const cartEventTypes: readonly ["cartModified", "cartViewed", "checkoutS
73
73
  declare const ecommerceEventTypes: readonly ["cartModified", "cartViewed", "checkoutStarted", "orderPlaced", "productViewed"];
74
74
  declare const identifiedUserEventTypes: string[];
75
75
  declare const userEventTypes: readonly [...string[], "userProfileChanged"];
76
- declare const miscEventTypes: readonly ["nothingChanged", "sessionAttributesChanged", "goalCompleted", "interestShown", "postViewed", "eventOccurred", "linkOpened"];
77
- declare const eventTypes: readonly ["pageLoaded", "pageOpened", "cartModified", "cartViewed", "checkoutStarted", "orderPlaced", "productViewed", ...string[], "userProfileChanged", "nothingChanged", "sessionAttributesChanged", "goalCompleted", "interestShown", "postViewed", "eventOccurred", "linkOpened"];
76
+ declare const miscEventTypes: readonly ["nothingChanged", "sessionAttributesChanged", "goalCompleted", "interestShown", "postViewed", "eventOccurred", "linkOpened", "leadGenerated"];
77
+ declare const eventTypes: readonly ["pageLoaded", "pageOpened", "cartModified", "cartViewed", "checkoutStarted", "orderPlaced", "productViewed", ...string[], "userProfileChanged", "nothingChanged", "sessionAttributesChanged", "goalCompleted", "interestShown", "postViewed", "eventOccurred", "linkOpened", "leadGenerated"];
78
78
  interface BaseEvent {
79
79
  type: string;
80
80
  }
@@ -237,7 +237,14 @@ interface LinkOpened extends BaseEvent {
237
237
  type: 'linkOpened';
238
238
  link: string;
239
239
  }
240
- type MiscEvent = NothingChanged | SessionAttributesChanged | EventOccurred | GoalCompleted | InterestShown | PostViewed | LinkOpened;
240
+ interface LeadGenerated extends BaseEvent {
241
+ type: 'leadGenerated';
242
+ leadId?: string;
243
+ currency?: string;
244
+ value?: number;
245
+ lead?: UserProfile;
246
+ }
247
+ type MiscEvent = NothingChanged | SessionAttributesChanged | EventOccurred | GoalCompleted | InterestShown | PostViewed | LinkOpened | LeadGenerated;
241
248
  type EventMap = {
242
249
  tabVisibilityChanged: TabVisibilityChanged;
243
250
  tabUrlChanged: TabUrlChanged;
@@ -260,6 +267,7 @@ type EventMap = {
260
267
  postViewed: PostViewed;
261
268
  eventOccurred: EventOccurred;
262
269
  linkOpened: LinkOpened;
270
+ leadGenerated: LeadGenerated;
263
271
  };
264
272
  type TrackingEventType = keyof EventMap;
265
273
  type TrackingEvent<T extends TrackingEventType = TrackingEventType> = T extends TrackingEventType ? EventMap[T] : EventMap[TrackingEventType];
@@ -283,6 +291,7 @@ type ExternalEventMap = {
283
291
  postViewed: PostViewed;
284
292
  linkOpened: LinkOpened;
285
293
  eventOccurred: EventOccurred;
294
+ leadGenerated: LeadGenerated;
286
295
  };
287
296
  type ExternalTrackingEventType = keyof ExternalEventMap;
288
297
  type ExternalTrackingEvent<T extends ExternalTrackingEventType = ExternalTrackingEventType> = T extends ExternalTrackingEventType ? ExternalEventMap[T] : ExternalEventMap[ExternalTrackingEventType];
@@ -296,7 +305,9 @@ type TrackingEventContext = {
296
305
  [key: string]: string;
297
306
  };
298
307
  };
299
- type BeaconPayload = Exclude<TrackingEvent, IdentifiedUserEvent> | DistributiveOmit<Exclude<IdentifiedUserEvent, UserSignedUp>, 'userId'> & Record<'externalUserId', IdentifiedUserEvent['userId']> | Omit<UserSignedUp, 'userId' | 'profile'> & Record<'externalUserId', IdentifiedUserEvent['userId']> & {
308
+ type BeaconPayload = Exclude<TrackingEvent, IdentifiedUserEvent | LeadGenerated> | DistributiveOmit<Exclude<IdentifiedUserEvent, UserSignedUp>, 'userId'> & Record<'externalUserId', IdentifiedUserEvent['userId']> | Omit<UserSignedUp, 'userId' | 'profile'> & Record<'externalUserId', IdentifiedUserEvent['userId']> & {
309
+ patch?: Patch;
310
+ } | Omit<LeadGenerated, 'lead'> & {
300
311
  patch?: Patch;
301
312
  };
302
313
  type Beacon = {
@@ -306,4 +317,4 @@ type Beacon = {
306
317
  payload: BeaconPayload;
307
318
  };
308
319
 
309
- export { type Beacon, type BeaconPayload, type Cart, type CartEvent, type CartEventType, type CartItem, type CartModified, type CartViewed, type CheckoutStarted, type EcommerceEvent, type EventOccurred, type ExternalTrackingEvent, type ExternalTrackingEventPayload, type ExternalTrackingEventType, type Gender, type GoalCompleted, type IdentifiedUserEvent, type InterestShown, type LinkOpened, type MiscEvent, type NothingChanged, type Order, type OrderItem, type OrderPlaced, type OrderStatus, type PageEvent, type PageEventType, type PageLoaded, type PageOpened, type PartialTrackingEvent, type PostDetails, type PostViewed, type ProductDetails, type ProductViewed, type SessionAttributesChanged, type TabEvent, type TabEventType, type TabOpened, type TabUrlChanged, type TabVisibilityChanged, type TrackingEvent, type TrackingEventContext, type TrackingEventType, type UserEvent, type UserProfile, type UserProfileChanged, type UserSignedIn, type UserSignedOut, type UserSignedUp, cartEventTypes, ecommerceEventTypes, eventTypes, identifiedUserEventTypes, isCartPartialEvent, isIdentifiedUserEvent, miscEventTypes, pageEventTypes, tabEventTypes, userEventTypes };
320
+ export { type Beacon, type BeaconPayload, type Cart, type CartEvent, type CartEventType, type CartItem, type CartModified, type CartViewed, type CheckoutStarted, type EcommerceEvent, type EventOccurred, type ExternalTrackingEvent, type ExternalTrackingEventPayload, type ExternalTrackingEventType, type Gender, type GoalCompleted, type IdentifiedUserEvent, type InterestShown, type LeadGenerated, type LinkOpened, type MiscEvent, type NothingChanged, type Order, type OrderItem, type OrderPlaced, type OrderStatus, type PageEvent, type PageEventType, type PageLoaded, type PageOpened, type PartialTrackingEvent, type PostDetails, type PostViewed, type ProductDetails, type ProductViewed, type SessionAttributesChanged, type TabEvent, type TabEventType, type TabOpened, type TabUrlChanged, type TabVisibilityChanged, type TrackingEvent, type TrackingEventContext, type TrackingEventType, type UserEvent, type UserProfile, type UserProfileChanged, type UserSignedIn, type UserSignedOut, type UserSignedUp, cartEventTypes, ecommerceEventTypes, eventTypes, identifiedUserEventTypes, isCartPartialEvent, isIdentifiedUserEvent, miscEventTypes, pageEventTypes, tabEventTypes, userEventTypes };
@@ -73,8 +73,8 @@ declare const cartEventTypes: readonly ["cartModified", "cartViewed", "checkoutS
73
73
  declare const ecommerceEventTypes: readonly ["cartModified", "cartViewed", "checkoutStarted", "orderPlaced", "productViewed"];
74
74
  declare const identifiedUserEventTypes: string[];
75
75
  declare const userEventTypes: readonly [...string[], "userProfileChanged"];
76
- declare const miscEventTypes: readonly ["nothingChanged", "sessionAttributesChanged", "goalCompleted", "interestShown", "postViewed", "eventOccurred", "linkOpened"];
77
- declare const eventTypes: readonly ["pageLoaded", "pageOpened", "cartModified", "cartViewed", "checkoutStarted", "orderPlaced", "productViewed", ...string[], "userProfileChanged", "nothingChanged", "sessionAttributesChanged", "goalCompleted", "interestShown", "postViewed", "eventOccurred", "linkOpened"];
76
+ declare const miscEventTypes: readonly ["nothingChanged", "sessionAttributesChanged", "goalCompleted", "interestShown", "postViewed", "eventOccurred", "linkOpened", "leadGenerated"];
77
+ declare const eventTypes: readonly ["pageLoaded", "pageOpened", "cartModified", "cartViewed", "checkoutStarted", "orderPlaced", "productViewed", ...string[], "userProfileChanged", "nothingChanged", "sessionAttributesChanged", "goalCompleted", "interestShown", "postViewed", "eventOccurred", "linkOpened", "leadGenerated"];
78
78
  interface BaseEvent {
79
79
  type: string;
80
80
  }
@@ -237,7 +237,14 @@ interface LinkOpened extends BaseEvent {
237
237
  type: 'linkOpened';
238
238
  link: string;
239
239
  }
240
- type MiscEvent = NothingChanged | SessionAttributesChanged | EventOccurred | GoalCompleted | InterestShown | PostViewed | LinkOpened;
240
+ interface LeadGenerated extends BaseEvent {
241
+ type: 'leadGenerated';
242
+ leadId?: string;
243
+ currency?: string;
244
+ value?: number;
245
+ lead?: UserProfile;
246
+ }
247
+ type MiscEvent = NothingChanged | SessionAttributesChanged | EventOccurred | GoalCompleted | InterestShown | PostViewed | LinkOpened | LeadGenerated;
241
248
  type EventMap = {
242
249
  tabVisibilityChanged: TabVisibilityChanged;
243
250
  tabUrlChanged: TabUrlChanged;
@@ -260,6 +267,7 @@ type EventMap = {
260
267
  postViewed: PostViewed;
261
268
  eventOccurred: EventOccurred;
262
269
  linkOpened: LinkOpened;
270
+ leadGenerated: LeadGenerated;
263
271
  };
264
272
  type TrackingEventType = keyof EventMap;
265
273
  type TrackingEvent<T extends TrackingEventType = TrackingEventType> = T extends TrackingEventType ? EventMap[T] : EventMap[TrackingEventType];
@@ -283,6 +291,7 @@ type ExternalEventMap = {
283
291
  postViewed: PostViewed;
284
292
  linkOpened: LinkOpened;
285
293
  eventOccurred: EventOccurred;
294
+ leadGenerated: LeadGenerated;
286
295
  };
287
296
  type ExternalTrackingEventType = keyof ExternalEventMap;
288
297
  type ExternalTrackingEvent<T extends ExternalTrackingEventType = ExternalTrackingEventType> = T extends ExternalTrackingEventType ? ExternalEventMap[T] : ExternalEventMap[ExternalTrackingEventType];
@@ -296,7 +305,9 @@ type TrackingEventContext = {
296
305
  [key: string]: string;
297
306
  };
298
307
  };
299
- type BeaconPayload = Exclude<TrackingEvent, IdentifiedUserEvent> | DistributiveOmit<Exclude<IdentifiedUserEvent, UserSignedUp>, 'userId'> & Record<'externalUserId', IdentifiedUserEvent['userId']> | Omit<UserSignedUp, 'userId' | 'profile'> & Record<'externalUserId', IdentifiedUserEvent['userId']> & {
308
+ type BeaconPayload = Exclude<TrackingEvent, IdentifiedUserEvent | LeadGenerated> | DistributiveOmit<Exclude<IdentifiedUserEvent, UserSignedUp>, 'userId'> & Record<'externalUserId', IdentifiedUserEvent['userId']> | Omit<UserSignedUp, 'userId' | 'profile'> & Record<'externalUserId', IdentifiedUserEvent['userId']> & {
309
+ patch?: Patch;
310
+ } | Omit<LeadGenerated, 'lead'> & {
300
311
  patch?: Patch;
301
312
  };
302
313
  type Beacon = {
@@ -306,4 +317,4 @@ type Beacon = {
306
317
  payload: BeaconPayload;
307
318
  };
308
319
 
309
- export { type Beacon, type BeaconPayload, type Cart, type CartEvent, type CartEventType, type CartItem, type CartModified, type CartViewed, type CheckoutStarted, type EcommerceEvent, type EventOccurred, type ExternalTrackingEvent, type ExternalTrackingEventPayload, type ExternalTrackingEventType, type Gender, type GoalCompleted, type IdentifiedUserEvent, type InterestShown, type LinkOpened, type MiscEvent, type NothingChanged, type Order, type OrderItem, type OrderPlaced, type OrderStatus, type PageEvent, type PageEventType, type PageLoaded, type PageOpened, type PartialTrackingEvent, type PostDetails, type PostViewed, type ProductDetails, type ProductViewed, type SessionAttributesChanged, type TabEvent, type TabEventType, type TabOpened, type TabUrlChanged, type TabVisibilityChanged, type TrackingEvent, type TrackingEventContext, type TrackingEventType, type UserEvent, type UserProfile, type UserProfileChanged, type UserSignedIn, type UserSignedOut, type UserSignedUp, cartEventTypes, ecommerceEventTypes, eventTypes, identifiedUserEventTypes, isCartPartialEvent, isIdentifiedUserEvent, miscEventTypes, pageEventTypes, tabEventTypes, userEventTypes };
320
+ export { type Beacon, type BeaconPayload, type Cart, type CartEvent, type CartEventType, type CartItem, type CartModified, type CartViewed, type CheckoutStarted, type EcommerceEvent, type EventOccurred, type ExternalTrackingEvent, type ExternalTrackingEventPayload, type ExternalTrackingEventType, type Gender, type GoalCompleted, type IdentifiedUserEvent, type InterestShown, type LeadGenerated, type LinkOpened, type MiscEvent, type NothingChanged, type Order, type OrderItem, type OrderPlaced, type OrderStatus, type PageEvent, type PageEventType, type PageLoaded, type PageOpened, type PartialTrackingEvent, type PostDetails, type PostViewed, type ProductDetails, type ProductViewed, type SessionAttributesChanged, type TabEvent, type TabEventType, type TabOpened, type TabUrlChanged, type TabVisibilityChanged, type TrackingEvent, type TrackingEventContext, type TrackingEventType, type UserEvent, type UserProfile, type UserProfileChanged, type UserSignedIn, type UserSignedOut, type UserSignedUp, cartEventTypes, ecommerceEventTypes, eventTypes, identifiedUserEventTypes, isCartPartialEvent, isIdentifiedUserEvent, miscEventTypes, pageEventTypes, tabEventTypes, userEventTypes };
package/trackingEvents.js CHANGED
@@ -33,7 +33,8 @@ const miscEventTypes = [
33
33
  "interestShown",
34
34
  "postViewed",
35
35
  "eventOccurred",
36
- "linkOpened"
36
+ "linkOpened",
37
+ "leadGenerated"
37
38
  ];
38
39
  const eventTypes = [
39
40
  ...pageEventTypes,