@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.
@@ -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,2 +1,6 @@
1
+ export * from './event-type.helper';
2
+ export * from './helpers.interface';
1
3
  export * from './object.helper';
2
4
  export * from './string.helper';
5
+ export * from './utils.helper';
6
+ export * from './uuid.helper';
@@ -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).
@@ -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.10",
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",