@liquidcommercedev/rmn-sdk 1.5.0-beta.10 → 1.5.0-beta.11
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.cjs +496 -469
- package/dist/index.esm.js +496 -469
- package/dist/types/common/helpers/event-type.helper.d.ts +8 -0
- package/dist/types/common/helpers/index.d.ts +4 -0
- package/dist/types/common/helpers/utils.helper.d.ts +0 -13
- package/dist/types/enums.d.ts +2 -0
- package/package.json +1 -1
- package/umd/liquidcommerce-rmn-sdk.min.js +1 -1
@@ -0,0 +1,8 @@
|
|
1
|
+
import { RMN_SPOT_EVENT } from 'enums';
|
2
|
+
/**
|
3
|
+
* Determines the event type from a raw event string by checking for keyword patterns.
|
4
|
+
*
|
5
|
+
* @param {string} [event] - The raw event string to evaluate
|
6
|
+
* @returns {RMN_SPOT_EVENT | null} - The corresponding RMN_SPOT_EVENT or null if no match
|
7
|
+
*/
|
8
|
+
export declare function getEventTypeFromRawEvent(event?: string): RMN_SPOT_EVENT | null;
|
@@ -1,17 +1,4 @@
|
|
1
|
-
import { RMN_SPOT_EVENT } from 'enums';
|
2
1
|
import type { IFireEventParams } from 'modules/event';
|
3
|
-
export interface IExtractIdsProps {
|
4
|
-
id?: string | number;
|
5
|
-
upc?: string | number;
|
6
|
-
[key: string]: string | number | undefined;
|
7
|
-
}
|
8
|
-
/**
|
9
|
-
* Determines the event type from a raw event string.
|
10
|
-
*
|
11
|
-
* @param {string} [event] - The raw event string to evaluate.
|
12
|
-
* @returns {RMN_SPOT_EVENT | null} - The corresponding RMN_SPOT_EVENT or null if no match is found.
|
13
|
-
*/
|
14
|
-
export declare function getEventTypeFromRawEvent(event?: string): RMN_SPOT_EVENT | null;
|
15
2
|
/**
|
16
3
|
* Recursively extracts ID values from a nested data structure.
|
17
4
|
* Searches for specified property names and collects their primitive values (strings/numbers).
|
package/dist/types/enums.d.ts
CHANGED
@@ -59,7 +59,9 @@ export declare enum RMN_SPOT_EVENT {
|
|
59
59
|
PURCHASE = "PURCHASE",
|
60
60
|
ADD_TO_CART = "ADD_TO_CART",
|
61
61
|
REMOVE_FROM_CART = "REMOVE_FROM_CART",
|
62
|
+
ADD_TO_CART_FROM_DETAILS = "ADD_TO_CART_FROM_DETAILS",
|
62
63
|
ADD_TO_WISHLIST = "ADD_TO_WISHLIST",
|
64
|
+
EXPAND_PRODUCT = "EXPAND_PRODUCT",
|
63
65
|
BUY_NOW = "BUY_NOW"
|
64
66
|
}
|
65
67
|
export declare enum RMN_ENV {
|
package/package.json
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
"name": "@liquidcommercedev/rmn-sdk",
|
3
3
|
"description": "LiquidCommerce RMN SDK",
|
4
4
|
"author": "LiquidCommerce Tech",
|
5
|
-
"version": "1.5.0-beta.
|
5
|
+
"version": "1.5.0-beta.11",
|
6
6
|
"homepage": "https://docs.liquidcommerce.co/rmn-sdk",
|
7
7
|
"main": "./dist/index.cjs",
|
8
8
|
"module": "./dist/index.esm.js",
|