@iblai/data-layer 0.2.0 → 0.3.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.
Files changed (86) hide show
  1. package/dist/index.d.ts +41476 -15632
  2. package/dist/index.esm.js +6764 -1863
  3. package/dist/index.esm.js.map +1 -1
  4. package/dist/index.js +6947 -1859
  5. package/dist/index.js.map +1 -1
  6. package/dist/package.json +19 -17
  7. package/dist/src/__tests__/constants.test.d.ts +1 -0
  8. package/dist/src/core/index.d.ts +2 -1
  9. package/dist/src/features/analytics/api-slice.d.ts +1879 -122
  10. package/dist/src/features/analytics/constants.d.ts +56 -1
  11. package/dist/src/features/analytics/types.d.ts +327 -1
  12. package/dist/src/features/api-keys/api-slice.d.ts +25 -36
  13. package/dist/src/features/apps/api-slice.d.ts +25 -36
  14. package/dist/src/features/auth/api-slice.d.ts +504 -2
  15. package/dist/src/features/auth/constants.d.ts +13 -1
  16. package/dist/src/features/auth/types.d.ts +20 -0
  17. package/dist/src/features/billing/api-slice.d.ts +5 -5
  18. package/dist/src/features/career/api-slice.d.ts +2345 -180
  19. package/dist/src/features/catalog/api-slice.d.ts +2260 -244
  20. package/dist/src/features/chat/api-slice.d.ts +68 -68
  21. package/dist/src/features/chat-files/api-slice.d.ts +185 -0
  22. package/dist/src/features/chat-files/types.d.ts +32 -0
  23. package/dist/src/features/chat-history/api-slice.d.ts +60 -60
  24. package/dist/src/features/core/api-slice.d.ts +3793 -26
  25. package/dist/src/features/core/constants.d.ts +43 -0
  26. package/dist/src/features/core/custom-api-slice.d.ts +1458 -0
  27. package/dist/src/features/core/custom-public-image-asset-api-slice.d.ts +333 -0
  28. package/dist/src/features/core/types.d.ts +60 -0
  29. package/dist/src/features/credentials/api-slice.d.ts +766 -105
  30. package/dist/src/features/custom-domain/api-slice.d.ts +602 -0
  31. package/dist/src/features/custom-domain/constants.d.ts +20 -0
  32. package/dist/src/features/custom-domain/types.d.ts +46 -0
  33. package/dist/src/features/datasets/api-slice.d.ts +22 -22
  34. package/dist/src/features/disclaimers/api-slice.d.ts +912 -0
  35. package/dist/src/features/disclaimers/constants.d.ts +27 -0
  36. package/dist/src/features/disclaimers/index.d.ts +3 -0
  37. package/dist/src/features/disclaimers/types.d.ts +67 -0
  38. package/dist/src/features/edx-proctoring/api-slice.d.ts +590 -0
  39. package/dist/src/features/edx-proctoring/constants.d.ts +15 -0
  40. package/dist/src/features/edx-proctoring/types.d.ts +61 -0
  41. package/dist/src/features/llms/api-slice.d.ts +20 -20
  42. package/dist/src/features/memory/api-slice.d.ts +1437 -530
  43. package/dist/src/features/memory/constants.d.ts +50 -0
  44. package/dist/src/features/memory/index.d.ts +3 -0
  45. package/dist/src/features/memory/types.d.ts +122 -0
  46. package/dist/src/features/mentor/api-slice.d.ts +1738 -240
  47. package/dist/src/features/mentor/constants.d.ts +8 -0
  48. package/dist/src/features/mentor/custom-api-slice.d.ts +529 -1
  49. package/dist/src/features/mentor/types.d.ts +39 -0
  50. package/dist/src/features/mentor-categories/api-slice.d.ts +416 -20
  51. package/dist/src/features/notifications/api-slice.d.ts +696 -42
  52. package/dist/src/features/notifications/constants.d.ts +26 -0
  53. package/dist/src/features/notifications/custom-api-slice.d.ts +996 -0
  54. package/dist/src/features/notifications/types.d.ts +69 -0
  55. package/dist/src/features/per-learner/api-slice.d.ts +58 -58
  56. package/dist/src/features/platform/api-slice.d.ts +321 -167
  57. package/dist/src/features/platform/constants.d.ts +17 -0
  58. package/dist/src/features/platform/custom-api-slice.d.ts +493 -0
  59. package/dist/src/features/platform/types.d.ts +48 -0
  60. package/dist/src/features/projects/api-slice.d.ts +2026 -0
  61. package/dist/src/features/projects/constants.d.ts +51 -0
  62. package/dist/src/features/projects/types.d.ts +79 -0
  63. package/dist/src/features/prompts/api-slice.d.ts +105 -83
  64. package/dist/src/features/reports/api-slice.d.ts +814 -0
  65. package/dist/src/features/search/ai-search-api-slice.d.ts +1015 -0
  66. package/dist/src/features/search/api-slice.d.ts +39 -39
  67. package/dist/src/features/search/constants.d.ts +31 -0
  68. package/dist/src/features/search/types.d.ts +89 -0
  69. package/dist/src/features/sessions/api-slice.d.ts +24 -24
  70. package/dist/src/features/skills/api-slice.d.ts +77 -77
  71. package/dist/src/features/stripe/api-slice.d.ts +201 -40
  72. package/dist/src/features/stripe/constants.d.ts +5 -1
  73. package/dist/src/features/stripe/types.d.ts +10 -0
  74. package/dist/src/features/tenant/api-slice.d.ts +43 -52
  75. package/dist/src/features/tenant/types.d.ts +1 -0
  76. package/dist/src/features/tools/api-slice.d.ts +64 -20
  77. package/dist/src/features/training-documents/api-slice.d.ts +534 -27
  78. package/dist/src/features/user/api-slice.d.ts +124 -124
  79. package/dist/src/features/user/constants.d.ts +3 -1
  80. package/dist/src/features/user-invitations/api-slice.d.ts +22 -22
  81. package/dist/src/features/utils.d.ts +8 -5
  82. package/dist/src/index.d.ts +78 -47
  83. package/dist/src/reducers/skills.d.ts +2 -1128
  84. package/dist/src/services/StorageService.d.ts +1 -1
  85. package/dist/tests/setupTests.d.ts +1 -1
  86. package/package.json +26 -21
@@ -1,5 +1,5 @@
1
1
  export interface StorageService {
2
2
  getItem<T>(key: string): Promise<T | null>;
3
3
  setItem<T>(key: string, item: T): Promise<void>;
4
- removeItem<T>(key: string): Promise<void>;
4
+ removeItem(key: string): Promise<void>;
5
5
  }
@@ -1 +1 @@
1
- import "@testing-library/jest-dom";
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iblai/data-layer",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "ibl.ai data layer",
5
5
  "main": "dist/index.esm.js",
6
6
  "types": "dist/index.d.ts",
@@ -16,6 +16,19 @@
16
16
  "dist",
17
17
  "README.md"
18
18
  ],
19
+ "scripts": {
20
+ "build": "rollup -c",
21
+ "watch": "rollup -c -w",
22
+ "test": "vitest run",
23
+ "test:watch": "vitest",
24
+ "test:coverage": "vitest run --coverage",
25
+ "prepare": "husky",
26
+ "format": "prettier --write .",
27
+ "format:check": "prettier --check .",
28
+ "lint": "eslint --fix",
29
+ "lint:check": "eslint",
30
+ "typecheck": "tsc --noEmit"
31
+ },
19
32
  "keywords": [
20
33
  "web",
21
34
  "mobile",
@@ -25,55 +38,47 @@
25
38
  "author": "iblai",
26
39
  "license": "ISC",
27
40
  "devDependencies": {
41
+ "@eslint/js": "^9.39.1",
28
42
  "@rollup/plugin-commonjs": "25.0.8",
29
43
  "@rollup/plugin-node-resolve": "15.3.1",
30
44
  "@rollup/plugin-typescript": "11.1.6",
31
- "@testing-library/jest-dom": "^6.6.3",
45
+ "@testing-library/jest-dom": "^6.9.1",
32
46
  "@testing-library/react": "^16.3.0",
33
47
  "@types/jest": "^29.5.14",
34
- "@types/node": "^22.15.20",
35
- "@types/react": "19.0.10",
48
+ "@types/node": "^22.19.0",
49
+ "@types/react": "19.1.17",
36
50
  "@types/testing-library__jest-dom": "^5.14.9",
37
51
  "@typescript-eslint/eslint-plugin": "8.29.1",
38
52
  "@typescript-eslint/parser": "8.29.1",
39
53
  "eslint": "9.24.0",
40
54
  "eslint-config-prettier": "10.1.2",
55
+ "globals": "^16.5.0",
41
56
  "husky": "9.1.7",
42
57
  "jest": "29.7.0",
43
58
  "jest-environment-jsdom": "29.7.0",
44
59
  "prettier": "3.5.3",
45
60
  "rollup": "4.40.0",
46
- "rollup-plugin-dts": "^6.2.1",
61
+ "rollup-plugin-dts": "^6.2.3",
47
62
  "rollup-plugin-peer-deps-external": "2.2.4",
48
63
  "rollup-plugin-typescript2": "0.36.0",
49
- "ts-jest": "^29.3.2",
64
+ "ts-jest": "^29.4.5",
50
65
  "tslib": "2.8.1",
51
66
  "typescript": "5.8.3"
52
67
  },
53
68
  "dependencies": {
54
- "@iblai/iblai-api": "4.11.1-ai",
69
+ "@iblai/iblai-api": "4.90.4-ai",
55
70
  "rollup-plugin-copy": "^3.5.0",
56
71
  "zod": "3.24.2"
57
72
  },
58
73
  "peerDependencies": {
59
74
  "@reduxjs/toolkit": "2.7.0",
60
- "react": "19.0.0",
61
- "react-dom": "19.0.0",
75
+ "react": "19.1.0",
76
+ "react-dom": "19.1.0",
62
77
  "react-redux": "9.2.0"
63
78
  },
79
+ "packageManager": "pnpm@10.11.0",
64
80
  "publishConfig": {
65
81
  "access": "public",
66
82
  "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"
78
83
  }
79
- }
84
+ }