@liquidcommercedev/rmn-sdk 1.5.0-beta.31 → 1.5.0-beta.32
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.cjs +1884 -1366
- package/dist/index.esm.js +1884 -1366
- package/dist/types/common/helpers/extract-deep.helper.d.ts +0 -14
- package/dist/types/common/helpers/index.d.ts +1 -0
- package/dist/types/common/helpers/normalize-string.helper.d.ts +14 -0
- package/dist/types/constants/index.d.ts +1 -1
- package/dist/types/constants/special-chars-map.constant.d.ts +1 -0
- package/dist/types/modules/monitor/monitor.service.d.ts +3 -2
- package/package.json +1 -1
- package/umd/liquidcommerce-rmn-sdk.min.js +1 -1
- package/dist/types/constants/special-char.constant.d.ts +0 -1
@@ -11,18 +11,4 @@ export declare function extractDeepValues(data: unknown, target: ExtractorTarget
|
|
11
11
|
onlyFirst?: boolean;
|
12
12
|
shouldIncludeZero?: boolean;
|
13
13
|
}): ExtractedValue[] | ExtractedValue | undefined;
|
14
|
-
/**
|
15
|
-
* Cleans and normalizes an array of product IDs by:
|
16
|
-
* 1. Converting all IDs to strings
|
17
|
-
* 2. Trimming whitespace
|
18
|
-
* 3. Removing leading zeros while preserving single "0"
|
19
|
-
* 4. Filtering out empty/invalid values
|
20
|
-
*
|
21
|
-
* @param ids - Array of product IDs that can be either strings or numbers
|
22
|
-
* @returns Array of cleaned string IDs
|
23
|
-
*
|
24
|
-
* @example
|
25
|
-
* cleanProductIds(["001", " 123 ", 456, "0"]) // ["1", "123", "456", "0"]
|
26
|
-
*/
|
27
|
-
export declare function cleanProductIds(ids: Array<string | number>): string[];
|
28
14
|
export {};
|
@@ -0,0 +1,14 @@
|
|
1
|
+
export declare class NormalizeStringHelper {
|
2
|
+
private static instance;
|
3
|
+
private readonly characterMaps;
|
4
|
+
private readonly regex;
|
5
|
+
constructor();
|
6
|
+
static getInstance(): NormalizeStringHelper;
|
7
|
+
normalize(text: string): string;
|
8
|
+
/**
|
9
|
+
* Removes leading zeros from a string number unless the string is just "0"
|
10
|
+
* @param text - The string to process
|
11
|
+
* @returns The string without leading zeros
|
12
|
+
*/
|
13
|
+
private removeLeadingZerosIfNumber;
|
14
|
+
}
|
@@ -1,2 +1,2 @@
|
|
1
1
|
export * from './example.constant';
|
2
|
-
export * from './special-
|
2
|
+
export * from './special-chars-map.constant';
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const SPECIAL_CHARS_MAP: Record<string, string>;
|
@@ -1,8 +1,9 @@
|
|
1
1
|
export declare class MonitorService {
|
2
2
|
private static instance;
|
3
3
|
private readonly implementedMonitor?;
|
4
|
-
private readonly pubSubService
|
5
|
-
private readonly localStorageService
|
4
|
+
private readonly pubSubService;
|
5
|
+
private readonly localStorageService;
|
6
|
+
private readonly normalizeStringHelper;
|
6
7
|
private constructor();
|
7
8
|
static getInstance(): MonitorService;
|
8
9
|
start(): void;
|
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.32",
|
6
6
|
"homepage": "https://docs.liquidcommerce.co/rmn-sdk",
|
7
7
|
"main": "./dist/index.cjs",
|
8
8
|
"module": "./dist/index.esm.js",
|