@iblai/data-layer 0.0.5 → 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 (140) hide show
  1. package/dist/index.d.ts +65009 -23
  2. package/dist/index.esm.js +29131 -16819
  3. package/dist/index.esm.js.map +1 -1
  4. package/dist/index.js +29475 -16817
  5. package/dist/index.js.map +1 -1
  6. package/dist/package.json +84 -0
  7. package/dist/src/config.d.ts +2 -0
  8. package/dist/src/constants.d.ts +2 -3
  9. package/dist/src/core/index.d.ts +2 -1
  10. package/dist/src/features/analytics/api-slice.d.ts +3357 -0
  11. package/dist/src/features/analytics/constants.d.ts +121 -0
  12. package/dist/src/features/analytics/types.d.ts +426 -0
  13. package/dist/src/features/api-keys/api-slice.d.ts +94 -34
  14. package/dist/{features/api-keys → src/features/apps}/api-slice.d.ts +156 -78
  15. package/dist/src/features/auth/api-slice.d.ts +639 -0
  16. package/dist/src/features/auth/constants.d.ts +20 -0
  17. package/dist/src/features/auth/types.d.ts +33 -0
  18. package/dist/src/features/billing/api-slice.d.ts +349 -0
  19. package/dist/src/features/career/api-slice.d.ts +2852 -0
  20. package/dist/src/features/catalog/api-slice.d.ts +8618 -1
  21. package/dist/src/features/chat/api-slice.d.ts +1567 -32
  22. package/dist/src/features/chat/chat-slice.d.ts +4 -7
  23. package/dist/{features/core → src/features/chat-files}/api-slice.d.ts +47 -26
  24. package/dist/src/features/chat-files/types.d.ts +32 -0
  25. package/dist/src/features/chat-history/api-slice.d.ts +518 -244
  26. package/dist/src/features/core/api-slice.d.ts +4261 -5
  27. package/dist/src/features/core/constants.d.ts +47 -0
  28. package/dist/src/features/core/custom-api-slice.d.ts +1458 -0
  29. package/dist/src/features/core/custom-public-image-asset-api-slice.d.ts +333 -0
  30. package/dist/src/features/core/types.d.ts +60 -0
  31. package/dist/src/features/credentials/api-slice.d.ts +2343 -84
  32. package/dist/src/features/credentials/constants.d.ts +28 -0
  33. package/dist/src/features/credentials/custom-api-slice.d.ts +1284 -0
  34. package/dist/src/features/credentials/types.d.ts +16 -0
  35. package/dist/src/features/custom-domain/api-slice.d.ts +602 -0
  36. package/dist/src/features/custom-domain/constants.d.ts +20 -0
  37. package/dist/src/features/custom-domain/types.d.ts +46 -0
  38. package/dist/src/features/datasets/api-slice.d.ts +352 -43
  39. package/dist/src/features/disclaimers/api-slice.d.ts +912 -0
  40. package/dist/src/features/disclaimers/constants.d.ts +27 -0
  41. package/dist/src/features/disclaimers/index.d.ts +3 -0
  42. package/dist/src/features/disclaimers/types.d.ts +67 -0
  43. package/dist/src/features/edx-proctoring/api-slice.d.ts +590 -0
  44. package/dist/src/features/edx-proctoring/constants.d.ts +15 -0
  45. package/dist/src/features/edx-proctoring/types.d.ts +61 -0
  46. package/dist/src/features/llms/api-slice.d.ts +89 -23
  47. package/dist/src/features/memory/api-slice.d.ts +2129 -0
  48. package/dist/src/features/memory/constants.d.ts +50 -0
  49. package/dist/src/features/memory/index.d.ts +3 -0
  50. package/dist/src/features/memory/types.d.ts +122 -0
  51. package/dist/src/features/mentor/api-slice.d.ts +4126 -146
  52. package/dist/src/features/mentor/constants.d.ts +39 -0
  53. package/dist/src/features/mentor/custom-api-slice.d.ts +796 -0
  54. package/dist/src/features/mentor/types.d.ts +77 -0
  55. package/dist/src/features/mentor-categories/api-slice.d.ts +463 -23
  56. package/dist/src/features/notifications/api-slice.d.ts +1600 -0
  57. package/dist/src/features/notifications/constants.d.ts +26 -0
  58. package/dist/src/features/notifications/custom-api-slice.d.ts +996 -0
  59. package/dist/src/features/notifications/types.d.ts +69 -0
  60. package/dist/src/features/per-learner/api-slice.d.ts +1213 -0
  61. package/dist/src/features/platform/api-slice.d.ts +944 -70
  62. package/dist/src/features/platform/constants.d.ts +17 -0
  63. package/dist/src/features/platform/custom-api-slice.d.ts +493 -0
  64. package/dist/src/features/platform/types.d.ts +48 -0
  65. package/dist/src/features/projects/api-slice.d.ts +2026 -0
  66. package/dist/src/features/projects/constants.d.ts +51 -0
  67. package/dist/src/features/projects/types.d.ts +79 -0
  68. package/dist/src/features/prompts/api-slice.d.ts +1357 -73
  69. package/dist/src/features/reports/api-slice.d.ts +814 -0
  70. package/dist/{features/prompts/api-slice.d.ts → src/features/search/ai-search-api-slice.d.ts} +161 -160
  71. package/dist/src/features/search/api-slice.d.ts +1939 -0
  72. package/dist/src/features/search/constants.d.ts +31 -0
  73. package/dist/src/features/search/types.d.ts +89 -0
  74. package/dist/src/features/sessions/api-slice.d.ts +705 -0
  75. package/dist/src/features/skills/api-slice.d.ts +505 -65
  76. package/dist/src/features/stripe/api-slice.d.ts +781 -0
  77. package/dist/src/features/stripe/constants.d.ts +19 -0
  78. package/dist/src/features/stripe/types.d.ts +19 -0
  79. package/dist/src/features/tenant/api-slice.d.ts +261 -47
  80. package/dist/src/features/tenant/constants.d.ts +1 -1
  81. package/dist/src/features/tenant/types.d.ts +1 -0
  82. package/dist/src/features/tenant-logo/api-slice.d.ts +349 -0
  83. package/dist/src/features/tenant-logo/constants.d.ts +24 -0
  84. package/dist/src/features/tools/api-slice.d.ts +133 -23
  85. package/dist/src/features/training-documents/api-slice.d.ts +731 -52
  86. package/dist/src/features/user/api-slice.d.ts +1457 -22
  87. package/dist/src/features/user/constants.d.ts +32 -1
  88. package/dist/src/features/user/types.d.ts +65 -2
  89. package/dist/src/features/user-invitations/api-slice.d.ts +346 -56
  90. package/dist/src/features/utils.d.ts +31 -8
  91. package/dist/src/index.d.ts +78 -23
  92. package/dist/src/reducers/index.d.ts +1 -0
  93. package/dist/src/reducers/mentor.d.ts +2 -120
  94. package/dist/src/reducers/skills.d.ts +2 -0
  95. package/dist/src/services/StorageService.d.ts +1 -1
  96. package/dist/src/utils/index.d.ts +2 -2
  97. package/dist/tests/features/analytics/api-slice.test.d.ts +1 -0
  98. package/dist/tests/features/analytics/constants.test.d.ts +1 -0
  99. package/dist/tests/features/user/api-slice.test.d.ts +1 -0
  100. package/dist/tests/features/user/constants.test.d.ts +1 -0
  101. package/dist/tests/setupTests.d.ts +1 -0
  102. package/package.json +26 -15
  103. package/dist/config.d.ts +0 -5
  104. package/dist/constants.d.ts +0 -31
  105. package/dist/core/index.d.ts +0 -4
  106. package/dist/features/chat/api-slice.d.ts +0 -1278
  107. package/dist/features/chat/chat-slice.d.ts +0 -15
  108. package/dist/features/chat-history/api-slice.d.ts +0 -956
  109. package/dist/features/chat-history/constants.d.ts +0 -3
  110. package/dist/features/credentials/api-slice.d.ts +0 -531
  111. package/dist/features/datasets/api-slice.d.ts +0 -267
  112. package/dist/features/index.d.ts +0 -1
  113. package/dist/features/llms/api-slice.d.ts +0 -267
  114. package/dist/features/mentor/api-slice.d.ts +0 -1816
  115. package/dist/features/mentor-categories/api-slice.d.ts +0 -267
  116. package/dist/features/platform/api-slice.d.ts +0 -735
  117. package/dist/features/skills/api-slice.d.ts +0 -795
  118. package/dist/features/tenant/api-slice.d.ts +0 -536
  119. package/dist/features/tenant/constants.d.ts +0 -11
  120. package/dist/features/tenant/types.d.ts +0 -18
  121. package/dist/features/tools/api-slice.d.ts +0 -267
  122. package/dist/features/training-documents/api-slice.d.ts +0 -750
  123. package/dist/features/user/api-slice.d.ts +0 -751
  124. package/dist/features/user/constants.d.ts +0 -19
  125. package/dist/features/user/types.d.ts +0 -64
  126. package/dist/features/user-invitations/api-slice.d.ts +0 -428
  127. package/dist/features/utils.d.ts +0 -46
  128. package/dist/node_modules/@iblai/iblai-api/src/core/ApiError.d.ts +0 -10
  129. package/dist/node_modules/@iblai/iblai-api/src/core/ApiRequestOptions.d.ts +0 -13
  130. package/dist/node_modules/@iblai/iblai-api/src/core/ApiResult.d.ts +0 -7
  131. package/dist/node_modules/@iblai/iblai-api/src/core/CancelablePromise.d.ts +0 -20
  132. package/dist/node_modules/@iblai/iblai-api/src/core/OpenAPI.d.ts +0 -16
  133. package/dist/node_modules/@iblai/iblai-api/src/core/request.d.ts +0 -30
  134. package/dist/reducers/index.d.ts +0 -1
  135. package/dist/reducers/mentor.d.ts +0 -135
  136. package/dist/services/StorageService.d.ts +0 -5
  137. package/dist/src/features/chat-history/constants.d.ts +0 -8
  138. package/dist/utils/index.d.ts +0 -2
  139. /package/dist/{features/catalog/api-slice.d.ts → src/__tests__/constants.test.d.ts} +0 -0
  140. /package/dist/{features → src/features}/constants.d.ts +0 -0
@@ -0,0 +1,84 @@
1
+ {
2
+ "name": "@iblai/data-layer",
3
+ "version": "0.3.0",
4
+ "description": "ibl.ai data layer",
5
+ "main": "dist/index.esm.js",
6
+ "types": "dist/index.d.ts",
7
+ "module": "dist/index.esm.js",
8
+ "type": "module",
9
+ "exports": {
10
+ ".": {
11
+ "import": "./dist/index.esm.js",
12
+ "require": "./dist/index.js"
13
+ }
14
+ },
15
+ "files": [
16
+ "dist",
17
+ "README.md"
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
+ },
32
+ "keywords": [
33
+ "web",
34
+ "mobile",
35
+ "data",
36
+ "layer"
37
+ ],
38
+ "author": "iblai",
39
+ "license": "ISC",
40
+ "devDependencies": {
41
+ "@eslint/js": "^9.39.1",
42
+ "@rollup/plugin-commonjs": "25.0.8",
43
+ "@rollup/plugin-node-resolve": "15.3.1",
44
+ "@rollup/plugin-typescript": "11.1.6",
45
+ "@testing-library/jest-dom": "^6.9.1",
46
+ "@testing-library/react": "^16.3.0",
47
+ "@types/jest": "^29.5.14",
48
+ "@types/node": "^22.19.0",
49
+ "@types/react": "19.1.17",
50
+ "@types/testing-library__jest-dom": "^5.14.9",
51
+ "@typescript-eslint/eslint-plugin": "8.29.1",
52
+ "@typescript-eslint/parser": "8.29.1",
53
+ "eslint": "9.24.0",
54
+ "eslint-config-prettier": "10.1.2",
55
+ "globals": "^16.5.0",
56
+ "husky": "9.1.7",
57
+ "jest": "29.7.0",
58
+ "jest-environment-jsdom": "29.7.0",
59
+ "prettier": "3.5.3",
60
+ "rollup": "4.40.0",
61
+ "rollup-plugin-dts": "^6.2.3",
62
+ "rollup-plugin-peer-deps-external": "2.2.4",
63
+ "rollup-plugin-typescript2": "0.36.0",
64
+ "ts-jest": "^29.4.5",
65
+ "tslib": "2.8.1",
66
+ "typescript": "5.8.3"
67
+ },
68
+ "dependencies": {
69
+ "@iblai/iblai-api": "4.90.4-ai",
70
+ "rollup-plugin-copy": "^3.5.0",
71
+ "zod": "3.24.2"
72
+ },
73
+ "peerDependencies": {
74
+ "@reduxjs/toolkit": "2.7.0",
75
+ "react": "19.1.0",
76
+ "react-dom": "19.1.0",
77
+ "react-redux": "9.2.0"
78
+ },
79
+ "packageManager": "pnpm@10.11.0",
80
+ "publishConfig": {
81
+ "access": "public",
82
+ "registry": "https://registry.npmjs.org/"
83
+ }
84
+ }
@@ -2,4 +2,6 @@ export default class Config {
2
2
  static lmsUrl: string;
3
3
  static dmUrl: string;
4
4
  static axdUrl: string;
5
+ static mentorIframeUrl: string;
6
+ static httpErrorHandlers: {};
5
7
  }
@@ -3,7 +3,6 @@ export declare const STORAGE_KEYS: {
3
3
  TENANT: string;
4
4
  TENANTS: string;
5
5
  REDIRECT_TO: string;
6
- AUTH_TOKEN: string;
7
6
  TOKEN_EXPIRY: string;
8
7
  EDX_TOKEN_KEY: string;
9
8
  DM_TOKEN_KEY: string;
@@ -26,6 +25,6 @@ export declare const TENANT_IDENTIFIERS: {
26
25
  };
27
26
  export declare enum SERVICES {
28
27
  LMS = "LMS",
29
- AXD = "AXD",
30
- DM = "DM"
28
+ DM = "DM",
29
+ AXD = "AXD"
31
30
  }
@@ -1,4 +1,5 @@
1
- import { StorageService } from "../services/StorageService";
1
+ import { StorageService } from '../services/StorageService';
2
2
  export declare class IblDataLayer {
3
3
  static storage: StorageService;
4
4
  }
5
+ export declare const iblFakeBaseQuery: import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("@reduxjs/toolkit/query")._NEVER, unknown, {} & import("@reduxjs/toolkit/query").RetryOptions, {}>;