@ramp-network/ramp-instant-sdk
Advanced tools
Comparing version 3.1.0 to 3.1.1
@@ -40,4 +40,2 @@ "use strict"; | ||
WidgetEventTypes["PURCHASE_CREATED"] = "PURCHASE_CREATED"; | ||
WidgetEventTypes["PURCHASE_SUCCESSFUL"] = "PURCHASE_SUCCESSFUL"; | ||
WidgetEventTypes["PURCHASE_FAILED"] = "PURCHASE_FAILED"; | ||
})(WidgetEventTypes = exports.WidgetEventTypes || (exports.WidgetEventTypes = {})); | ||
@@ -44,0 +42,0 @@ var InternalEventTypes; |
@@ -313,4 +313,2 @@ /*! ***************************************************************************** | ||
WidgetEventTypes["PURCHASE_CREATED"] = "PURCHASE_CREATED"; | ||
WidgetEventTypes["PURCHASE_SUCCESSFUL"] = "PURCHASE_SUCCESSFUL"; | ||
WidgetEventTypes["PURCHASE_FAILED"] = "PURCHASE_FAILED"; | ||
})(WidgetEventTypes || (WidgetEventTypes = {})); | ||
@@ -317,0 +315,0 @@ var InternalEventTypes; |
@@ -319,4 +319,2 @@ (function (global, factory) { | ||
WidgetEventTypes["PURCHASE_CREATED"] = "PURCHASE_CREATED"; | ||
WidgetEventTypes["PURCHASE_SUCCESSFUL"] = "PURCHASE_SUCCESSFUL"; | ||
WidgetEventTypes["PURCHASE_FAILED"] = "PURCHASE_FAILED"; | ||
})(exports.RampInstantEventTypes || (exports.RampInstantEventTypes = {})); | ||
@@ -323,0 +321,0 @@ var InternalEventTypes; |
@@ -119,5 +119,3 @@ declare type TAsset = string; | ||
WIDGET_CONFIG_FAILED = "WIDGET_CONFIG_FAILED", | ||
PURCHASE_CREATED = "PURCHASE_CREATED", | ||
PURCHASE_SUCCESSFUL = "PURCHASE_SUCCESSFUL", | ||
PURCHASE_FAILED = "PURCHASE_FAILED" | ||
PURCHASE_CREATED = "PURCHASE_CREATED" | ||
} | ||
@@ -147,16 +145,2 @@ export declare enum InternalEventTypes { | ||
} | ||
export interface IPurchaseSuccessfulEvent extends IWidgetEvent { | ||
type: WidgetEventTypes.PURCHASE_SUCCESSFUL; | ||
payload: { | ||
purchase: IPurchase; | ||
}; | ||
widgetInstanceId: string; | ||
internal?: false; | ||
} | ||
export interface IPurchaseFailedEvent extends IWidgetEvent { | ||
type: WidgetEventTypes.PURCHASE_FAILED; | ||
payload: null; | ||
widgetInstanceId: string; | ||
internal?: false; | ||
} | ||
export interface IWidgetConfigDoneEvent extends IWidgetEvent { | ||
@@ -198,3 +182,3 @@ type: WidgetEventTypes.WIDGET_CONFIG_DONE; | ||
} | ||
export declare type TWidgetEvents = IWidgetCloseEvent | IWidgetConfigDoneEvent | IWidgetConfigFailedEvent | IPurchaseCreatedEvent | IPurchaseFailedEvent | IPurchaseSuccessfulEvent; | ||
export declare type TWidgetEvents = IWidgetCloseEvent | IWidgetConfigDoneEvent | IWidgetConfigFailedEvent | IPurchaseCreatedEvent; | ||
export declare type TInternalEvents = IWidgetCloseRequestEvent | IWidgetCloseRequestCancelledEvent | IWidgetCloseRequestConfirmedEvent | IRequestCryptoAccountEvent; | ||
@@ -201,0 +185,0 @@ export declare enum InternalSdkEventTypes { |
{ | ||
"name": "@ramp-network/ramp-instant-sdk", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"description": "SDK for Ramp Instant", | ||
@@ -84,2 +84,2 @@ "keywords": [], | ||
} | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
320117
2806