Skip to content

Commit 03ee074

Browse files
committed
fix: update Iterable class to use IterableAuthManager directly
1 parent bdae893 commit 03ee074

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

src/core/classes/Iterable.ts

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ export class Iterable {
194194
}
195195

196196
/**
197-
* @deprecated Use {@link Iterable.user.setEmail} instead.
197+
* @deprecated Use {@link IterableUserManager.setEmail | Iterable.user.setEmail} instead.
198198
* Associate the current user with the passed in email parameter.
199199
*
200200
* Note: specify a user by calling `Iterable.setEmail` or
@@ -248,7 +248,7 @@ export class Iterable {
248248
}
249249

250250
/**
251-
* @deprecated Use {@link Iterable.user.getEmail} instead.
251+
* @deprecated Use {@link IterableUserManager.getEmail | Iterable.user.getEmail} instead.
252252
* Get the email associated with the current user.
253253
*
254254
* @example
@@ -263,7 +263,7 @@ export class Iterable {
263263
}
264264

265265
/**
266-
* @deprecated Use {@link Iterable.user.setUserId} instead.
266+
* @deprecated Use {@link IterableUserManager.setUserId | Iterable.user.setUserId} instead.
267267
* Associate the current user with the passed in `userId` parameter.
268268
*
269269
* Note: specify a user by calling `Iterable.setEmail` or
@@ -311,7 +311,7 @@ export class Iterable {
311311
}
312312

313313
/**
314-
* @deprecated Use {@link Iterable.user.getUserId} instead.
314+
* @deprecated Use {@link IterableUserManager.getUserId | Iterable.user.getUserId} instead.
315315
* Get the `userId` associated with the current user.
316316
*
317317
* @example
@@ -326,7 +326,7 @@ export class Iterable {
326326
}
327327

328328
/**
329-
* @deprecated Use {@link Iterable.user.disableDevice} instead.
329+
* @deprecated Use {@link IterableUserManager.disableDevice | Iterable.user.disableDevice} instead.
330330
* Disable the device's token for the current user. This will disable push notifications for the current user.
331331
*
332332
* @example
@@ -354,7 +354,7 @@ export class Iterable {
354354
}
355355

356356
/**
357-
* @deprecated Use {@link Iterable.track.getAttributionInfo} instead.
357+
* @deprecated Use {@link IterableTrackingManager.getAttributionInfo | Iterable.track.getAttributionInfo} instead.
358358
* Get the stored attribution information -- possibly based on a recent deep link click.
359359
*
360360
* The attribution information contains the campaign ID, template ID, and message ID of the message
@@ -399,7 +399,7 @@ export class Iterable {
399399
}
400400

401401
/**
402-
* @deprecated Use {@link Iterable.track.setAttributionInfo} instead.
402+
* @deprecated Use {@link IterableTrackingManager.setAttributionInfo | Iterable.track.setAttributionInfo} instead.
403403
* Manually set the current stored attribution information so that it can later be used when tracking events.
404404
*
405405
* The attribution information contains the campaign ID, template ID, and message ID of the message
@@ -428,7 +428,7 @@ export class Iterable {
428428
}
429429

430430
/**
431-
* @deprecated Use {@link Iterable.track.trackPushOpenWithCampaignId} instead.
431+
* @deprecated Use {@link IterableTrackingManager.trackPushOpenWithCampaignId | Iterable.track.trackPushOpenWithCampaignId} instead.
432432
* Create a `pushOpen` event on the current user's Iterable profile, populating
433433
* it with data provided to the method call.
434434
*
@@ -522,7 +522,7 @@ export class Iterable {
522522
}
523523

524524
/**
525-
* @deprecated Use {@link Iterable.track.trackPurchase} instead.
525+
* @deprecated Use {@link IterableTrackingManager.trackPurchase | Iterable.track.trackPurchase} instead.
526526
* Create a purchase event on the current user's Iterable profile.
527527
*
528528
* Represent each item in the purchase event with an {@link IterableCommerceItem} object.
@@ -557,7 +557,7 @@ export class Iterable {
557557
}
558558

559559
/**
560-
* @deprecated Use {@link Iterable.track.trackInAppOpen} instead.
560+
* @deprecated Use {@link IterableTrackingManager.trackInAppOpen | Iterable.track.trackInAppOpen} instead.
561561
* Create an `inAppOpen` event for the specified message on the current user's profile
562562
* for manual tracking purposes. Iterable's SDK automatically tracks in-app message opens when you use the
563563
* SDK's default rendering.
@@ -590,7 +590,7 @@ export class Iterable {
590590
}
591591

592592
/**
593-
* @deprecated Use {@link Iterable.track.trackInAppClick} instead.
593+
* @deprecated Use {@link IterableTrackingManager.trackInAppClick | Iterable.track.trackInAppClick} instead.
594594
* Create an `inAppClick` event for the specified message on the current user's profile
595595
* for manual tracking purposes. Iterable's SDK automatically tracks in-app message clicks when you use the
596596
* SDK's default rendering. Click events refer to click events within the in-app message to distinguish
@@ -620,7 +620,7 @@ export class Iterable {
620620
}
621621

622622
/**
623-
* @deprecated Use {@link Iterable.track.trackInAppClose} instead.
623+
* @deprecated Use {@link IterableTrackingManager.trackInAppClose | Iterable.track.trackInAppClose} instead.
624624
* Create an `inAppClose` event for the specified message on the current
625625
* user's profile for manual tracking purposes. Iterable's SDK automatically
626626
* tracks in-app message close events when you use the SDK's default
@@ -698,7 +698,7 @@ export class Iterable {
698698
}
699699

700700
/**
701-
* @deprecated Use {@link Iterable.track.trackEvent} instead.
701+
* @deprecated Use {@link IterableTrackingManager.trackEvent | Iterable.track.trackEvent} instead.
702702
* Create a custom event to the current user's Iterable profile.
703703
*
704704
* Pass in the name of the event stored in eventName key and the data associated with the event.
@@ -723,7 +723,7 @@ export class Iterable {
723723
}
724724

725725
/**
726-
* @deprecated Use {@link Iterable.user.updateUser} instead.
726+
* @deprecated Use {@link IterableUserManager.updateUser | Iterable.user.updateUser} instead.
727727
* Save data to the current user's Iterable profile.
728728
*
729729
* If `mergeNestedObjects` is set to `true`, top-level objects in the passed in dataFields parameter
@@ -770,7 +770,7 @@ export class Iterable {
770770
}
771771

772772
/**
773-
* @deprecated Use {@link Iterable.user.updateEmail} instead.
773+
* @deprecated Use {@link IterableUserManager.updateEmail | Iterable.user.updateEmail} instead.
774774
* Change the value of the email field on the current user's Iterable profile.
775775
*
776776
* If `Iterable.setUserId` was used to identify the current user, `Iterable.updateEmail` can be called to

src/core/classes/IterableAuthManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export class IterableAuthManager {
7373
* });
7474
* ```
7575
*/
76-
static generateJwtToken(opts: {
76+
generateJwtToken(opts: {
7777
/** The JWT secret generated when you created the **JWT enabled [API key](https://app.iterable.com/settings/apiKeys)** */
7878
secret: string;
7979
/** The duration of the JWT token in milliseconds. */

0 commit comments

Comments
 (0)