|
1 | 1 | /* eslint-disable eslint-comments/no-unlimited-disable */ |
2 | | -import { |
3 | | - Linking, |
4 | | - NativeEventEmitter, |
5 | | - Platform, |
6 | | -} from 'react-native'; |
| 2 | +import { Linking, NativeEventEmitter, Platform } from 'react-native'; |
7 | 3 |
|
8 | 4 | import { buildInfo } from '../../itblBuildInfo'; |
9 | 5 |
|
@@ -361,7 +357,13 @@ export class Iterable { |
361 | 357 | Iterable?.logger?.log('getAttributionInfo'); |
362 | 358 |
|
363 | 359 | return RNIterableAPI.getAttributionInfo().then( |
364 | | - (dict: { campaignId: number; templateId: number; messageId: string } | null) => { |
| 360 | + ( |
| 361 | + dict: { |
| 362 | + campaignId: number; |
| 363 | + templateId: number; |
| 364 | + messageId: string; |
| 365 | + } | null |
| 366 | + ) => { |
365 | 367 | if (dict) { |
366 | 368 | return new IterableAttributionInfo( |
367 | 369 | dict.campaignId as number, |
@@ -402,7 +404,11 @@ export class Iterable { |
402 | 404 | static setAttributionInfo(attributionInfo?: IterableAttributionInfo) { |
403 | 405 | Iterable?.logger?.log('setAttributionInfo'); |
404 | 406 |
|
405 | | - RNIterableAPI.setAttributionInfo(attributionInfo as unknown as { [key: string]: string | number | boolean; } | null); |
| 407 | + RNIterableAPI.setAttributionInfo( |
| 408 | + attributionInfo as unknown as { |
| 409 | + [key: string]: string | number | boolean; |
| 410 | + } | null |
| 411 | + ); |
406 | 412 | } |
407 | 413 |
|
408 | 414 | /** |
@@ -481,7 +487,9 @@ export class Iterable { |
481 | 487 | static updateCart(items: IterableCommerceItem[]) { |
482 | 488 | Iterable?.logger?.log('updateCart'); |
483 | 489 |
|
484 | | - RNIterableAPI.updateCart(items as unknown as { [key: string]: string | number | boolean }[]); |
| 490 | + RNIterableAPI.updateCart( |
| 491 | + items as unknown as { [key: string]: string | number | boolean }[] |
| 492 | + ); |
485 | 493 | } |
486 | 494 |
|
487 | 495 | /** |
@@ -533,7 +541,11 @@ export class Iterable { |
533 | 541 | ) { |
534 | 542 | Iterable?.logger?.log('trackPurchase'); |
535 | 543 |
|
536 | | - RNIterableAPI.trackPurchase(total, items as unknown as { [key: string]: string | number | boolean }[], dataFields as { [key: string]: string | number | boolean } | undefined); |
| 544 | + RNIterableAPI.trackPurchase( |
| 545 | + total, |
| 546 | + items as unknown as { [key: string]: string | number | boolean }[], |
| 547 | + dataFields as { [key: string]: string | number | boolean } | undefined |
| 548 | + ); |
537 | 549 | } |
538 | 550 |
|
539 | 551 | /** |
@@ -702,7 +714,10 @@ export class Iterable { |
702 | 714 | static trackEvent(name: string, dataFields?: unknown) { |
703 | 715 | Iterable?.logger?.log('trackEvent'); |
704 | 716 |
|
705 | | - RNIterableAPI.trackEvent(name, dataFields as { [key: string]: string | number | boolean } | undefined); |
| 717 | + RNIterableAPI.trackEvent( |
| 718 | + name, |
| 719 | + dataFields as { [key: string]: string | number | boolean } | undefined |
| 720 | + ); |
706 | 721 | } |
707 | 722 |
|
708 | 723 | /** |
@@ -750,7 +765,10 @@ export class Iterable { |
750 | 765 | ) { |
751 | 766 | Iterable?.logger?.log('updateUser'); |
752 | 767 |
|
753 | | - RNIterableAPI.updateUser(dataFields as { [key: string]: string | number | boolean }, mergeNestedObjects); |
| 768 | + RNIterableAPI.updateUser( |
| 769 | + dataFields as { [key: string]: string | number | boolean }, |
| 770 | + mergeNestedObjects |
| 771 | + ); |
754 | 772 | } |
755 | 773 |
|
756 | 774 | /** |
|
0 commit comments