@liquidcommercedev/rmn-sdk 1.5.0-beta.8 → 1.5.0-beta.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +0,0 @@
1
- export declare function calculateScaleFactor(elementScale: number): number;
@@ -1,24 +0,0 @@
1
- import { RMN_SPOT_EVENT } from 'enums';
2
- export interface IExtractIdsProps {
3
- id?: string | number;
4
- upc?: string | number;
5
- [key: string]: string | number | undefined;
6
- }
7
- export declare function getEventTypeFromRawEvent(event?: string): RMN_SPOT_EVENT | null;
8
- /**
9
- * Recursively extracts ID values from a nested data structure.
10
- * Searches for specified property names and collects their primitive values (strings/numbers).
11
- *
12
- * @param data - The data structure to search through (can be nested objects/arrays)
13
- * @param propertyNames - Array of property names to look for (defaults to ['id', 'upc', 'groupingId', 'sku', 'productId'])
14
- * @returns Array of extracted ID values (strings/numbers only)
15
- *
16
- * @example
17
- * const data = {
18
- * id: [1, 2, 3],
19
- * nested: { id: 'abc' },
20
- * items: [{ id: 456 }]
21
- * };
22
- * extractDeepIds(data); // Returns [1, 2, 3, 'abc', 456]
23
- */
24
- export declare function extractDeepIds(data: any, propertyNames?: readonly string[]): Array<string | number>;
@@ -1,14 +0,0 @@
1
- export declare enum AnalyticsTool {
2
- GoogleAnalytics = "google-analytics",
3
- Other = "Other"
4
- }
5
- export declare class UserMonitor {
6
- private static instance;
7
- private readonly implementedMonitor?;
8
- private readonly localStorage?;
9
- private constructor();
10
- static getInstance(): UserMonitor;
11
- start(): void;
12
- private matchAndFireEvent;
13
- private detectAnalyticsTool;
14
- }