@iblai/data-layer 0.0.5 → 0.2.0
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.d.ts +39165 -23
- package/dist/index.esm.js +23976 -16565
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +24135 -16565
- package/dist/index.js.map +1 -1
- package/dist/package.json +82 -0
- package/dist/src/config.d.ts +2 -0
- package/dist/src/constants.d.ts +2 -3
- package/dist/src/features/analytics/api-slice.d.ts +1600 -0
- package/dist/src/features/analytics/constants.d.ts +66 -0
- package/dist/src/features/analytics/types.d.ts +100 -0
- package/dist/src/features/api-keys/api-slice.d.ts +104 -33
- package/dist/src/features/apps/api-slice.d.ts +683 -0
- package/dist/src/features/auth/api-slice.d.ts +137 -0
- package/dist/src/features/auth/constants.d.ts +8 -0
- package/dist/src/features/auth/types.d.ts +13 -0
- package/dist/src/features/billing/api-slice.d.ts +349 -0
- package/dist/{features/api-keys → src/features/career}/api-slice.d.ts +392 -299
- package/dist/src/features/catalog/api-slice.d.ts +6602 -1
- package/dist/src/features/chat/api-slice.d.ts +1566 -31
- package/dist/src/features/chat/chat-slice.d.ts +4 -7
- package/dist/src/features/chat-history/api-slice.d.ts +517 -243
- package/dist/src/features/core/api-slice.d.ts +493 -4
- package/dist/src/features/core/constants.d.ts +4 -0
- package/dist/src/features/credentials/api-slice.d.ts +1661 -63
- package/dist/src/features/credentials/constants.d.ts +28 -0
- package/dist/src/features/credentials/custom-api-slice.d.ts +1284 -0
- package/dist/src/features/credentials/types.d.ts +16 -0
- package/dist/src/features/datasets/api-slice.d.ts +351 -42
- package/dist/src/features/llms/api-slice.d.ts +88 -22
- package/dist/src/features/memory/api-slice.d.ts +1222 -0
- package/dist/src/features/mentor/api-slice.d.ts +2628 -146
- package/dist/src/features/mentor/constants.d.ts +31 -0
- package/dist/src/features/mentor/custom-api-slice.d.ts +268 -0
- package/dist/src/features/mentor/types.d.ts +38 -0
- package/dist/src/features/mentor-categories/api-slice.d.ts +66 -22
- package/dist/src/features/notifications/api-slice.d.ts +946 -0
- package/dist/src/features/per-learner/api-slice.d.ts +1213 -0
- package/dist/src/features/platform/api-slice.d.ts +769 -49
- package/dist/src/features/prompts/api-slice.d.ts +1334 -72
- package/dist/src/features/search/api-slice.d.ts +1939 -0
- package/dist/src/features/sessions/api-slice.d.ts +705 -0
- package/dist/src/features/skills/api-slice.d.ts +504 -64
- package/dist/src/features/stripe/api-slice.d.ts +620 -0
- package/dist/src/features/stripe/constants.d.ts +15 -0
- package/dist/src/features/stripe/types.d.ts +9 -0
- package/dist/src/features/tenant/api-slice.d.ts +268 -45
- package/dist/src/features/tenant/constants.d.ts +1 -1
- package/dist/src/features/tenant-logo/api-slice.d.ts +349 -0
- package/dist/src/features/tenant-logo/constants.d.ts +24 -0
- package/dist/src/features/tools/api-slice.d.ts +88 -22
- package/dist/src/features/training-documents/api-slice.d.ts +223 -51
- package/dist/src/features/user/api-slice.d.ts +1457 -22
- package/dist/src/features/user/constants.d.ts +30 -1
- package/dist/src/features/user/types.d.ts +65 -2
- package/dist/src/features/user-invitations/api-slice.d.ts +345 -55
- package/dist/src/features/utils.d.ts +25 -5
- package/dist/src/index.d.ts +24 -0
- package/dist/src/reducers/index.d.ts +1 -0
- package/dist/src/reducers/mentor.d.ts +2 -120
- package/dist/src/reducers/skills.d.ts +1128 -0
- package/dist/src/utils/index.d.ts +2 -2
- package/dist/tests/features/analytics/constants.test.d.ts +1 -0
- package/dist/tests/features/user/api-slice.test.d.ts +1 -0
- package/dist/tests/features/user/constants.test.d.ts +1 -0
- package/dist/tests/setupTests.d.ts +1 -0
- package/package.json +31 -25
- package/dist/config.d.ts +0 -5
- package/dist/constants.d.ts +0 -31
- package/dist/core/index.d.ts +0 -4
- package/dist/features/chat/api-slice.d.ts +0 -1278
- package/dist/features/chat/chat-slice.d.ts +0 -15
- package/dist/features/chat-history/api-slice.d.ts +0 -956
- package/dist/features/chat-history/constants.d.ts +0 -3
- package/dist/features/core/api-slice.d.ts +0 -164
- package/dist/features/credentials/api-slice.d.ts +0 -531
- package/dist/features/datasets/api-slice.d.ts +0 -267
- package/dist/features/index.d.ts +0 -1
- package/dist/features/llms/api-slice.d.ts +0 -267
- package/dist/features/mentor/api-slice.d.ts +0 -1816
- package/dist/features/mentor-categories/api-slice.d.ts +0 -267
- package/dist/features/platform/api-slice.d.ts +0 -735
- package/dist/features/prompts/api-slice.d.ts +0 -1014
- package/dist/features/skills/api-slice.d.ts +0 -795
- package/dist/features/tenant/api-slice.d.ts +0 -536
- package/dist/features/tenant/constants.d.ts +0 -11
- package/dist/features/tenant/types.d.ts +0 -18
- package/dist/features/tools/api-slice.d.ts +0 -267
- package/dist/features/training-documents/api-slice.d.ts +0 -750
- package/dist/features/user/api-slice.d.ts +0 -751
- package/dist/features/user/constants.d.ts +0 -19
- package/dist/features/user/types.d.ts +0 -64
- package/dist/features/user-invitations/api-slice.d.ts +0 -428
- package/dist/features/utils.d.ts +0 -46
- package/dist/node_modules/@iblai/iblai-api/src/core/ApiError.d.ts +0 -10
- package/dist/node_modules/@iblai/iblai-api/src/core/ApiRequestOptions.d.ts +0 -13
- package/dist/node_modules/@iblai/iblai-api/src/core/ApiResult.d.ts +0 -7
- package/dist/node_modules/@iblai/iblai-api/src/core/CancelablePromise.d.ts +0 -20
- package/dist/node_modules/@iblai/iblai-api/src/core/OpenAPI.d.ts +0 -16
- package/dist/node_modules/@iblai/iblai-api/src/core/request.d.ts +0 -30
- package/dist/reducers/index.d.ts +0 -1
- package/dist/reducers/mentor.d.ts +0 -135
- package/dist/services/StorageService.d.ts +0 -5
- package/dist/src/features/chat-history/constants.d.ts +0 -8
- package/dist/utils/index.d.ts +0 -2
- /package/dist/{features → src/features}/constants.d.ts +0 -0
- /package/dist/{features/catalog/api-slice.d.ts → tests/features/analytics/api-slice.test.d.ts} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { StorageService } from "
|
|
2
|
-
export declare const initializeDataLayer: (dmUrl: string,
|
|
1
|
+
import { StorageService } from "@data-layer/services/StorageService";
|
|
2
|
+
export declare const initializeDataLayer: (dmUrl: string, lmsUrl: string, storageService: StorageService, httpErrorHandler?: Record<number, () => void>) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "@testing-library/jest-dom";
|
package/package.json
CHANGED
|
@@ -1,34 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iblai/data-layer",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "ibl.ai data layer",
|
|
5
|
-
"main": "dist/index.js",
|
|
5
|
+
"main": "dist/index.esm.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"module": "dist/index.esm.js",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"exports": {
|
|
10
10
|
".": {
|
|
11
11
|
"import": "./dist/index.esm.js",
|
|
12
|
-
"require": "./dist/index.js"
|
|
13
|
-
"types": "./dist/index.d.ts"
|
|
12
|
+
"require": "./dist/index.js"
|
|
14
13
|
}
|
|
15
14
|
},
|
|
16
15
|
"files": [
|
|
17
16
|
"dist",
|
|
18
|
-
"package.json",
|
|
19
17
|
"README.md"
|
|
20
18
|
],
|
|
21
|
-
"scripts": {
|
|
22
|
-
"build": "rollup -c",
|
|
23
|
-
"test": "jest",
|
|
24
|
-
"test:watch": "jest --watch",
|
|
25
|
-
"test:coverage": "jest --coverage",
|
|
26
|
-
"prepare": "husky",
|
|
27
|
-
"format": "prettier --write .",
|
|
28
|
-
"format:check": "prettier --check .",
|
|
29
|
-
"lint": "eslint --fix",
|
|
30
|
-
"lint:check": "eslint"
|
|
31
|
-
},
|
|
32
19
|
"keywords": [
|
|
33
20
|
"web",
|
|
34
21
|
"mobile",
|
|
@@ -41,10 +28,12 @@
|
|
|
41
28
|
"@rollup/plugin-commonjs": "25.0.8",
|
|
42
29
|
"@rollup/plugin-node-resolve": "15.3.1",
|
|
43
30
|
"@rollup/plugin-typescript": "11.1.6",
|
|
44
|
-
"@testing-library/jest-dom": "6.6.3",
|
|
45
|
-
"@testing-library/react": "16.3.0",
|
|
46
|
-
"@types/jest": "29.5.14",
|
|
47
|
-
"@types/
|
|
31
|
+
"@testing-library/jest-dom": "^6.6.3",
|
|
32
|
+
"@testing-library/react": "^16.3.0",
|
|
33
|
+
"@types/jest": "^29.5.14",
|
|
34
|
+
"@types/node": "^22.15.20",
|
|
35
|
+
"@types/react": "19.0.10",
|
|
36
|
+
"@types/testing-library__jest-dom": "^5.14.9",
|
|
48
37
|
"@typescript-eslint/eslint-plugin": "8.29.1",
|
|
49
38
|
"@typescript-eslint/parser": "8.29.1",
|
|
50
39
|
"eslint": "9.24.0",
|
|
@@ -54,20 +43,37 @@
|
|
|
54
43
|
"jest-environment-jsdom": "29.7.0",
|
|
55
44
|
"prettier": "3.5.3",
|
|
56
45
|
"rollup": "4.40.0",
|
|
46
|
+
"rollup-plugin-dts": "^6.2.1",
|
|
57
47
|
"rollup-plugin-peer-deps-external": "2.2.4",
|
|
58
48
|
"rollup-plugin-typescript2": "0.36.0",
|
|
59
|
-
"ts-jest": "29.3.2",
|
|
49
|
+
"ts-jest": "^29.3.2",
|
|
60
50
|
"tslib": "2.8.1",
|
|
61
51
|
"typescript": "5.8.3"
|
|
62
52
|
},
|
|
63
53
|
"dependencies": {
|
|
64
|
-
"@iblai/iblai-api": "
|
|
54
|
+
"@iblai/iblai-api": "4.11.1-ai",
|
|
55
|
+
"rollup-plugin-copy": "^3.5.0",
|
|
65
56
|
"zod": "3.24.2"
|
|
66
57
|
},
|
|
67
58
|
"peerDependencies": {
|
|
68
59
|
"@reduxjs/toolkit": "2.7.0",
|
|
69
|
-
"react": "19.
|
|
70
|
-
"react-dom": "19.
|
|
60
|
+
"react": "19.0.0",
|
|
61
|
+
"react-dom": "19.0.0",
|
|
71
62
|
"react-redux": "9.2.0"
|
|
63
|
+
},
|
|
64
|
+
"publishConfig": {
|
|
65
|
+
"access": "public",
|
|
66
|
+
"registry": "https://registry.npmjs.org/"
|
|
67
|
+
},
|
|
68
|
+
"scripts": {
|
|
69
|
+
"build": "rollup -c",
|
|
70
|
+
"watch": "rollup -c -w",
|
|
71
|
+
"test": "jest",
|
|
72
|
+
"test:watch": "jest --watch",
|
|
73
|
+
"test:coverage": "jest --coverage",
|
|
74
|
+
"format": "prettier --write .",
|
|
75
|
+
"format:check": "prettier --check .",
|
|
76
|
+
"lint": "eslint --fix",
|
|
77
|
+
"lint:check": "eslint"
|
|
72
78
|
}
|
|
73
|
-
}
|
|
79
|
+
}
|
package/dist/config.d.ts
DELETED
package/dist/constants.d.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export declare const STORAGE_KEYS: {
|
|
2
|
-
CURRENT_TENANT: string;
|
|
3
|
-
TENANT: string;
|
|
4
|
-
TENANTS: string;
|
|
5
|
-
REDIRECT_TO: string;
|
|
6
|
-
AUTH_TOKEN: string;
|
|
7
|
-
TOKEN_EXPIRY: string;
|
|
8
|
-
EDX_TOKEN_KEY: string;
|
|
9
|
-
DM_TOKEN_KEY: string;
|
|
10
|
-
AXD_TOKEN_KEY: string;
|
|
11
|
-
USER_DATA: string;
|
|
12
|
-
};
|
|
13
|
-
export declare const URL_PATTERNS: {
|
|
14
|
-
PLATFORM_KEY: RegExp;
|
|
15
|
-
};
|
|
16
|
-
export declare const APP_IDENTIFIERS: {
|
|
17
|
-
APP_NAME: string;
|
|
18
|
-
};
|
|
19
|
-
export declare const QUERY_PARAMS: {
|
|
20
|
-
APP: string;
|
|
21
|
-
REDIRECT_TO: string;
|
|
22
|
-
TENANT: string;
|
|
23
|
-
};
|
|
24
|
-
export declare const TENANT_IDENTIFIERS: {
|
|
25
|
-
MAIN: string;
|
|
26
|
-
};
|
|
27
|
-
export declare enum SERVICES {
|
|
28
|
-
LMS = "LMS",
|
|
29
|
-
AXD = "AXD",
|
|
30
|
-
DM = "DM"
|
|
31
|
-
}
|
package/dist/core/index.d.ts
DELETED