@imtbl/sdk 0.41.2 → 0.42.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/index.d.ts CHANGED
@@ -15561,10 +15561,6 @@ type UserProfile = {
15561
15561
  nickname?: string;
15562
15562
  sub: string;
15563
15563
  };
15564
- declare enum Networks {
15565
- PRODUCTION = "mainnet",
15566
- SANDBOX = "sepolia"
15567
- }
15568
15564
  interface OidcConfiguration {
15569
15565
  clientId: string;
15570
15566
  logoutRedirectUri?: string;
@@ -15574,7 +15570,6 @@ interface OidcConfiguration {
15574
15570
  audience?: string;
15575
15571
  }
15576
15572
  interface PassportOverrides {
15577
- network: Networks;
15578
15573
  authenticationDomain: string;
15579
15574
  magicPublishableApiKey: string;
15580
15575
  magicProviderId: string;
@@ -15745,8 +15740,6 @@ declare const passport_d_JsonRpcError: typeof JsonRpcError;
15745
15740
  type passport_d_JsonRpcRequestCallback = JsonRpcRequestCallback;
15746
15741
  type passport_d_JsonRpcRequestPayload = JsonRpcRequestPayload;
15747
15742
  type passport_d_JsonRpcResponsePayload = JsonRpcResponsePayload;
15748
- type passport_d_Networks = Networks;
15749
- declare const passport_d_Networks: typeof Networks;
15750
15743
  type passport_d_Passport = Passport;
15751
15744
  declare const passport_d_Passport: typeof Passport;
15752
15745
  type passport_d_PassportError = PassportError;
@@ -15770,7 +15763,6 @@ declare namespace passport_d {
15770
15763
  passport_d_JsonRpcRequestCallback as JsonRpcRequestCallback,
15771
15764
  passport_d_JsonRpcRequestPayload as JsonRpcRequestPayload,
15772
15765
  passport_d_JsonRpcResponsePayload as JsonRpcResponsePayload,
15773
- passport_d_Networks as Networks,
15774
15766
  passport_d_Passport as Passport,
15775
15767
  passport_d_PassportError as PassportError,
15776
15768
  passport_d_PassportModuleConfiguration as PassportModuleConfiguration,
@@ -18632,13 +18624,16 @@ declare enum SaleEventType {
18632
18624
  FAILURE = "failure",
18633
18625
  REJECTED = "rejected",
18634
18626
  TRANSACTION_SUCCESS = "transaction-success",
18635
- LANGUAGE_CHANGED = "language-changed"
18627
+ LANGUAGE_CHANGED = "language-changed",
18628
+ PAYMENT_METHOD = "payment-method"
18636
18629
  }
18637
18630
  /**
18638
18631
  * Represents a successful Sale transaction.
18639
18632
  * @property {Array} transactions -
18640
18633
  */
18641
18634
  type SaleSuccess = {
18635
+ /** Chosen payment method */
18636
+ paymentMethod: string | undefined;
18642
18637
  /** The executed transactions */
18643
18638
  transactions: {
18644
18639
  method: string;
@@ -18657,6 +18652,8 @@ type SaleFailed = {
18657
18652
  reason: string;
18658
18653
  /** The timestamp of the failed swap. */
18659
18654
  timestamp: number;
18655
+ /** Chosen payment method */
18656
+ paymentMethod: string | undefined;
18660
18657
  /** The executed transactions */
18661
18658
  transactions: {
18662
18659
  method: string;
@@ -18668,12 +18665,21 @@ type SaleFailed = {
18668
18665
  * @property {Object} transactions
18669
18666
  */
18670
18667
  type SaleTransactionSuccess = {
18668
+ paymentMethod: string | undefined;
18671
18669
  /** The executed transactions */
18672
18670
  transactions: {
18673
18671
  method: string;
18674
18672
  hash: string | undefined;
18675
18673
  }[];
18676
18674
  };
18675
+ /**
18676
+ * Type representing a Sale Widget with type PAYMENT_METHOD.
18677
+ * @property {Object} transactions
18678
+ */
18679
+ type SalePaymentMethod = {
18680
+ /** Chosen payment method */
18681
+ paymentMethod: string | undefined;
18682
+ };
18677
18683
 
18678
18684
  /**
18679
18685
  * Enum of possible Bridge Widget event types.
@@ -19005,6 +19011,7 @@ type WidgetEventData = {
19005
19011
  [SaleEventType.REJECTED]: any;
19006
19012
  [SaleEventType.CLOSE_WIDGET]: {};
19007
19013
  [SaleEventType.TRANSACTION_SUCCESS]: SaleTransactionSuccess;
19014
+ [SaleEventType.PAYMENT_METHOD]: SalePaymentMethod;
19008
19015
  } & OrchestrationMapping & ProviderEventMapping;
19009
19016
  };
19010
19017
  /**
@@ -19569,6 +19576,7 @@ type checkout_d_SaleEventType = SaleEventType;
19569
19576
  declare const checkout_d_SaleEventType: typeof SaleEventType;
19570
19577
  type checkout_d_SaleFailed = SaleFailed;
19571
19578
  type checkout_d_SaleItem = SaleItem;
19579
+ type checkout_d_SalePaymentMethod = SalePaymentMethod;
19572
19580
  type checkout_d_SaleSuccess = SaleSuccess;
19573
19581
  type checkout_d_SaleTransactionSuccess = SaleTransactionSuccess;
19574
19582
  type checkout_d_SaleWidgetConfiguration = SaleWidgetConfiguration;
@@ -19752,6 +19760,7 @@ declare namespace checkout_d {
19752
19760
  checkout_d_SaleEventType as SaleEventType,
19753
19761
  checkout_d_SaleFailed as SaleFailed,
19754
19762
  checkout_d_SaleItem as SaleItem,
19763
+ checkout_d_SalePaymentMethod as SalePaymentMethod,
19755
19764
  checkout_d_SaleSuccess as SaleSuccess,
19756
19765
  checkout_d_SaleTransactionSuccess as SaleTransactionSuccess,
19757
19766
  checkout_d_SaleWidgetConfiguration as SaleWidgetConfiguration,