@liquidcommercedev/rmn-sdk 1.5.0-beta.22 → 1.5.0-beta.23
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.cjs +376 -242
- package/dist/index.esm.js +376 -242
- package/dist/types/common/http/api.constant.d.ts +1 -1
- package/dist/types/common/http/api.interface.d.ts +1 -1
- package/dist/types/common/http/base.api.d.ts +1 -1
- package/dist/types/modules/monitor/monitor.enums.d.ts +1 -0
- package/dist/types/modules/selection/selection.type.d.ts +5 -9
- package/dist/types/rmn-client.d.ts +1 -0
- package/package.json +30 -30
- package/umd/liquidcommerce-rmn-sdk.min.js +1 -1
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { IAuthConfigs } from '
|
1
|
+
import type { IAuthConfigs } from 'modules/auth';
|
2
2
|
export declare const REQUEST_CLOUD_PARTNER_SITE = "X-Liquid-Partner-Site";
|
3
3
|
export declare const REQUEST_CLOUD_PROTECTED_KEY = "X-Liquid-Protected";
|
4
4
|
export declare const REQUEST_CLOUD_PROTECTED_TIMESTAMP = "X-Liquid-Timestamp";
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import type { AxiosRequestConfig, AxiosResponse } from 'axios';
|
2
2
|
import type { JWTVerifyResult } from 'jose';
|
3
|
-
import type { IAuthCredentials } from '
|
3
|
+
import type { IAuthCredentials } from 'modules/auth';
|
4
4
|
import type { ApiError } from './error.api';
|
5
5
|
export type Result<T, E = Error> = {
|
6
6
|
isOk: true;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { AxiosRequestConfig, AxiosResponse, RawAxiosRequestHeaders } from 'axios';
|
2
|
-
import type { IAuthCredentials } from '
|
2
|
+
import type { IAuthCredentials } from 'modules/auth';
|
3
3
|
import type { Result } from './api.interface';
|
4
4
|
import { BaseApiAbstract } from './api.interface';
|
5
5
|
import { ApiError } from './error.api';
|
@@ -1,7 +1,5 @@
|
|
1
1
|
import type { RMN_FILTER_PROPERTIES, RMN_SPOT_TYPE } from 'enums';
|
2
|
-
export type RmnFilterType =
|
3
|
-
[key in RMN_FILTER_PROPERTIES]?: string[];
|
4
|
-
};
|
2
|
+
export type RmnFilterType = Partial<Record<RMN_FILTER_PROPERTIES, string[]>>;
|
5
3
|
export type PlacementIdType = RMN_SPOT_TYPE | `${RMN_SPOT_TYPE}${number}` | string;
|
6
4
|
export type SpotFilterType = {
|
7
5
|
placementId?: PlacementIdType;
|
@@ -19,10 +17,8 @@ type IABSpotTypeKeys = keyof {
|
|
19
17
|
type RBSpotTypeValues = (typeof RMN_SPOT_TYPE)[RBSpotTypeKeys];
|
20
18
|
type IABSpotTypeValues = (typeof RMN_SPOT_TYPE)[IABSpotTypeKeys];
|
21
19
|
export type SpotVariantType = RBSpotTypeValues | `${IABSpotTypeValues}V${number}`;
|
22
|
-
export type SpotDimensionsType = {
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
};
|
27
|
-
};
|
20
|
+
export type SpotDimensionsType = Record<RMN_SPOT_TYPE, {
|
21
|
+
width: number;
|
22
|
+
height: number;
|
23
|
+
}>;
|
28
24
|
export {};
|
@@ -64,6 +64,7 @@ export declare class LiquidCommerceRmnClient implements IRmnClient {
|
|
64
64
|
}
|
65
65
|
/**
|
66
66
|
* Creates a new instance of the RmnClient.
|
67
|
+
* Ensures the page is fully loaded before initializing.
|
67
68
|
*
|
68
69
|
* @param {string} apiKey - The api key.
|
69
70
|
* @param {IRmnConfig} config - The configuration object.
|
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.23",
|
6
6
|
"homepage": "https://docs.liquidcommerce.co/rmn-sdk",
|
7
7
|
"main": "./dist/index.cjs",
|
8
8
|
"module": "./dist/index.esm.js",
|
@@ -62,60 +62,60 @@
|
|
62
62
|
"dependencies": {
|
63
63
|
"axios": "^1.7.7",
|
64
64
|
"buffer": "^6.0.3",
|
65
|
-
"jose": "^5.9.
|
65
|
+
"jose": "^5.9.6"
|
66
66
|
},
|
67
67
|
"devDependencies": {
|
68
|
-
"@commitlint/cli": "^
|
69
|
-
"@commitlint/config-conventional": "^
|
70
|
-
"@eslint/eslintrc": "^3.
|
71
|
-
"@eslint/js": "^9.
|
72
|
-
"@rollup/plugin-commonjs": "^
|
68
|
+
"@commitlint/cli": "^19.5.0",
|
69
|
+
"@commitlint/config-conventional": "^19.5.0",
|
70
|
+
"@eslint/eslintrc": "^3.2.0",
|
71
|
+
"@eslint/js": "^9.15.0",
|
72
|
+
"@rollup/plugin-commonjs": "^28.0.1",
|
73
73
|
"@rollup/plugin-json": "^6.1.0",
|
74
|
-
"@rollup/plugin-node-resolve": "^15.
|
75
|
-
"@rollup/plugin-replace": "^
|
74
|
+
"@rollup/plugin-node-resolve": "^15.3.0",
|
75
|
+
"@rollup/plugin-replace": "^6.0.1",
|
76
76
|
"@rollup/plugin-terser": "^0.4.4",
|
77
77
|
"@semantic-release/changelog": "^6.0.3",
|
78
78
|
"@semantic-release/git": "^10.0.1",
|
79
|
-
"@semantic-release/github": "^
|
79
|
+
"@semantic-release/github": "^11.0.1",
|
80
80
|
"@semantic-release/npm": "^12.0.1",
|
81
81
|
"@types/core-js": "^2.5.8",
|
82
82
|
"@types/crypto-js": "^4.2.2",
|
83
83
|
"@types/eslint__js": "^8.42.3",
|
84
|
-
"@types/jest": "^29.
|
85
|
-
"@types/node": "^
|
86
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
87
|
-
"@typescript-eslint/parser": "^8.
|
88
|
-
"@vitest/coverage-v8": "^1.
|
84
|
+
"@types/jest": "^29.5.14",
|
85
|
+
"@types/node": "^22.9.0",
|
86
|
+
"@typescript-eslint/eslint-plugin": "^8.15.0",
|
87
|
+
"@typescript-eslint/parser": "^8.15.0",
|
88
|
+
"@vitest/coverage-v8": "^2.1.5",
|
89
89
|
"conventional-changelog-cli": "^5.0.0",
|
90
90
|
"crypto-js": "^4.2.0",
|
91
91
|
"dotenv": "^16.4.5",
|
92
|
-
"eslint": "^9.
|
92
|
+
"eslint": "^9.15.0",
|
93
93
|
"eslint-config-prettier": "^9.1.0",
|
94
|
-
"eslint-import-resolver-typescript": "^3.6.
|
95
|
-
"eslint-plugin-import": "^2.
|
96
|
-
"eslint-plugin-import-helpers": "^
|
97
|
-
"eslint-plugin-prettier": "^5.1
|
94
|
+
"eslint-import-resolver-typescript": "^3.6.3",
|
95
|
+
"eslint-plugin-import": "^2.31.0",
|
96
|
+
"eslint-plugin-import-helpers": "^2.0.1",
|
97
|
+
"eslint-plugin-prettier": "^5.2.1",
|
98
98
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
99
|
-
"eslint-plugin-sonarjs": "^2.0.
|
100
|
-
"eslint-plugin-unicorn": "^
|
99
|
+
"eslint-plugin-sonarjs": "^2.0.4",
|
100
|
+
"eslint-plugin-unicorn": "^56.0.0",
|
101
101
|
"events": "^3.3.0",
|
102
102
|
"jest": "^29.7.0",
|
103
|
-
"jest-environment-jsdom": "^29.
|
103
|
+
"jest-environment-jsdom": "^29.7.0",
|
104
104
|
"prettier": "^3.3.3",
|
105
105
|
"process": "^0.11.10",
|
106
|
-
"rollup": "^4.
|
106
|
+
"rollup": "^4.27.3",
|
107
107
|
"rollup-plugin-livereload": "^2.0.5",
|
108
108
|
"rollup-plugin-polyfill-node": "^0.13.0",
|
109
109
|
"rollup-plugin-serve": "^1.1.1",
|
110
110
|
"rollup-plugin-typescript2": "^0.36.0",
|
111
|
-
"semantic-release": "^24.
|
111
|
+
"semantic-release": "^24.2.0",
|
112
112
|
"ts-jest": "^29.2.5",
|
113
113
|
"ts-node": "^10.9.2",
|
114
|
-
"typedoc": "^0.26.
|
115
|
-
"typescript": "^5.
|
116
|
-
"typescript-eslint": "^8.
|
117
|
-
"vite": "^5.
|
118
|
-
"vitest": "^1.
|
114
|
+
"typedoc": "^0.26.11",
|
115
|
+
"typescript": "^5.6.3",
|
116
|
+
"typescript-eslint": "^8.15.0",
|
117
|
+
"vite": "^5.4.11",
|
118
|
+
"vitest": "^2.1.5"
|
119
119
|
},
|
120
120
|
"engines": {
|
121
121
|
"node": ">=20"
|