@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.
Files changed (107) hide show
  1. package/dist/index.d.ts +39165 -23
  2. package/dist/index.esm.js +23976 -16565
  3. package/dist/index.esm.js.map +1 -1
  4. package/dist/index.js +24135 -16565
  5. package/dist/index.js.map +1 -1
  6. package/dist/package.json +82 -0
  7. package/dist/src/config.d.ts +2 -0
  8. package/dist/src/constants.d.ts +2 -3
  9. package/dist/src/features/analytics/api-slice.d.ts +1600 -0
  10. package/dist/src/features/analytics/constants.d.ts +66 -0
  11. package/dist/src/features/analytics/types.d.ts +100 -0
  12. package/dist/src/features/api-keys/api-slice.d.ts +104 -33
  13. package/dist/src/features/apps/api-slice.d.ts +683 -0
  14. package/dist/src/features/auth/api-slice.d.ts +137 -0
  15. package/dist/src/features/auth/constants.d.ts +8 -0
  16. package/dist/src/features/auth/types.d.ts +13 -0
  17. package/dist/src/features/billing/api-slice.d.ts +349 -0
  18. package/dist/{features/api-keys → src/features/career}/api-slice.d.ts +392 -299
  19. package/dist/src/features/catalog/api-slice.d.ts +6602 -1
  20. package/dist/src/features/chat/api-slice.d.ts +1566 -31
  21. package/dist/src/features/chat/chat-slice.d.ts +4 -7
  22. package/dist/src/features/chat-history/api-slice.d.ts +517 -243
  23. package/dist/src/features/core/api-slice.d.ts +493 -4
  24. package/dist/src/features/core/constants.d.ts +4 -0
  25. package/dist/src/features/credentials/api-slice.d.ts +1661 -63
  26. package/dist/src/features/credentials/constants.d.ts +28 -0
  27. package/dist/src/features/credentials/custom-api-slice.d.ts +1284 -0
  28. package/dist/src/features/credentials/types.d.ts +16 -0
  29. package/dist/src/features/datasets/api-slice.d.ts +351 -42
  30. package/dist/src/features/llms/api-slice.d.ts +88 -22
  31. package/dist/src/features/memory/api-slice.d.ts +1222 -0
  32. package/dist/src/features/mentor/api-slice.d.ts +2628 -146
  33. package/dist/src/features/mentor/constants.d.ts +31 -0
  34. package/dist/src/features/mentor/custom-api-slice.d.ts +268 -0
  35. package/dist/src/features/mentor/types.d.ts +38 -0
  36. package/dist/src/features/mentor-categories/api-slice.d.ts +66 -22
  37. package/dist/src/features/notifications/api-slice.d.ts +946 -0
  38. package/dist/src/features/per-learner/api-slice.d.ts +1213 -0
  39. package/dist/src/features/platform/api-slice.d.ts +769 -49
  40. package/dist/src/features/prompts/api-slice.d.ts +1334 -72
  41. package/dist/src/features/search/api-slice.d.ts +1939 -0
  42. package/dist/src/features/sessions/api-slice.d.ts +705 -0
  43. package/dist/src/features/skills/api-slice.d.ts +504 -64
  44. package/dist/src/features/stripe/api-slice.d.ts +620 -0
  45. package/dist/src/features/stripe/constants.d.ts +15 -0
  46. package/dist/src/features/stripe/types.d.ts +9 -0
  47. package/dist/src/features/tenant/api-slice.d.ts +268 -45
  48. package/dist/src/features/tenant/constants.d.ts +1 -1
  49. package/dist/src/features/tenant-logo/api-slice.d.ts +349 -0
  50. package/dist/src/features/tenant-logo/constants.d.ts +24 -0
  51. package/dist/src/features/tools/api-slice.d.ts +88 -22
  52. package/dist/src/features/training-documents/api-slice.d.ts +223 -51
  53. package/dist/src/features/user/api-slice.d.ts +1457 -22
  54. package/dist/src/features/user/constants.d.ts +30 -1
  55. package/dist/src/features/user/types.d.ts +65 -2
  56. package/dist/src/features/user-invitations/api-slice.d.ts +345 -55
  57. package/dist/src/features/utils.d.ts +25 -5
  58. package/dist/src/index.d.ts +24 -0
  59. package/dist/src/reducers/index.d.ts +1 -0
  60. package/dist/src/reducers/mentor.d.ts +2 -120
  61. package/dist/src/reducers/skills.d.ts +1128 -0
  62. package/dist/src/utils/index.d.ts +2 -2
  63. package/dist/tests/features/analytics/constants.test.d.ts +1 -0
  64. package/dist/tests/features/user/api-slice.test.d.ts +1 -0
  65. package/dist/tests/features/user/constants.test.d.ts +1 -0
  66. package/dist/tests/setupTests.d.ts +1 -0
  67. package/package.json +31 -25
  68. package/dist/config.d.ts +0 -5
  69. package/dist/constants.d.ts +0 -31
  70. package/dist/core/index.d.ts +0 -4
  71. package/dist/features/chat/api-slice.d.ts +0 -1278
  72. package/dist/features/chat/chat-slice.d.ts +0 -15
  73. package/dist/features/chat-history/api-slice.d.ts +0 -956
  74. package/dist/features/chat-history/constants.d.ts +0 -3
  75. package/dist/features/core/api-slice.d.ts +0 -164
  76. package/dist/features/credentials/api-slice.d.ts +0 -531
  77. package/dist/features/datasets/api-slice.d.ts +0 -267
  78. package/dist/features/index.d.ts +0 -1
  79. package/dist/features/llms/api-slice.d.ts +0 -267
  80. package/dist/features/mentor/api-slice.d.ts +0 -1816
  81. package/dist/features/mentor-categories/api-slice.d.ts +0 -267
  82. package/dist/features/platform/api-slice.d.ts +0 -735
  83. package/dist/features/prompts/api-slice.d.ts +0 -1014
  84. package/dist/features/skills/api-slice.d.ts +0 -795
  85. package/dist/features/tenant/api-slice.d.ts +0 -536
  86. package/dist/features/tenant/constants.d.ts +0 -11
  87. package/dist/features/tenant/types.d.ts +0 -18
  88. package/dist/features/tools/api-slice.d.ts +0 -267
  89. package/dist/features/training-documents/api-slice.d.ts +0 -750
  90. package/dist/features/user/api-slice.d.ts +0 -751
  91. package/dist/features/user/constants.d.ts +0 -19
  92. package/dist/features/user/types.d.ts +0 -64
  93. package/dist/features/user-invitations/api-slice.d.ts +0 -428
  94. package/dist/features/utils.d.ts +0 -46
  95. package/dist/node_modules/@iblai/iblai-api/src/core/ApiError.d.ts +0 -10
  96. package/dist/node_modules/@iblai/iblai-api/src/core/ApiRequestOptions.d.ts +0 -13
  97. package/dist/node_modules/@iblai/iblai-api/src/core/ApiResult.d.ts +0 -7
  98. package/dist/node_modules/@iblai/iblai-api/src/core/CancelablePromise.d.ts +0 -20
  99. package/dist/node_modules/@iblai/iblai-api/src/core/OpenAPI.d.ts +0 -16
  100. package/dist/node_modules/@iblai/iblai-api/src/core/request.d.ts +0 -30
  101. package/dist/reducers/index.d.ts +0 -1
  102. package/dist/reducers/mentor.d.ts +0 -135
  103. package/dist/services/StorageService.d.ts +0 -5
  104. package/dist/src/features/chat-history/constants.d.ts +0 -8
  105. package/dist/utils/index.d.ts +0 -2
  106. /package/dist/{features → src/features}/constants.d.ts +0 -0
  107. /package/dist/{features/catalog/api-slice.d.ts → tests/features/analytics/api-slice.test.d.ts} +0 -0
@@ -1,11 +1,40 @@
1
- import { SERVICES } from "@/constants";
1
+ import { SERVICES } from "@data-layer/constants";
2
2
  export declare const USERS_ENDPOINTS: {
3
3
  GET_USER_METADATA: {
4
4
  service: SERVICES;
5
5
  path: () => string;
6
6
  };
7
+ RESET_PASSWORD: {
8
+ service: SERVICES;
9
+ path: () => string;
10
+ };
11
+ UPDATE_USER_ROLES: {
12
+ service: SERVICES;
13
+ path: () => string;
14
+ };
15
+ UPLOAD_PROFILE_IMAGE: {
16
+ service: SERVICES;
17
+ path: (username: string) => string;
18
+ };
19
+ EDX_UPDATE_USER_METADATA: {
20
+ service: SERVICES;
21
+ path: (username: string) => string;
22
+ };
23
+ EDX_GET_USER_METADATA: {
24
+ service: SERVICES;
25
+ path: (username: string) => string;
26
+ };
27
+ REMOVE_PROFILE_IMAGE: {
28
+ service: SERVICES;
29
+ path: (username: string) => string;
30
+ };
7
31
  };
8
32
  export declare const USERS_QUERY_KEYS: {
9
33
  GET_USER_METADATA: () => string[];
34
+ GET_USER_METADATA_EDX: () => string[];
35
+ RESET_PASSWORD: () => string[];
36
+ UPDATE_USER_ROLES: () => string[];
37
+ UPLOAD_PROFILE_IMAGE: () => string[];
38
+ REMOVE_PROFILE_IMAGE: () => string[];
10
39
  };
11
40
  export declare const USERS_REDUCER_PATH = "userApiSlice";
@@ -7,7 +7,22 @@ export interface ProfileImage {
7
7
  }
8
8
  export interface UserProfile {
9
9
  account_privacy: "private" | "public";
10
+ about: string;
11
+ title: string;
12
+ public_metadata: {
13
+ about: string;
14
+ bio: string;
15
+ language: string;
16
+ name: string;
17
+ profile_image: ProfileImage;
18
+ social_links?: {
19
+ platform: string;
20
+ social_link: string;
21
+ }[];
22
+ [key: string]: any;
23
+ };
10
24
  profile_image: ProfileImage;
25
+ profile_image_url?: string;
11
26
  username: string;
12
27
  bio: string | null;
13
28
  course_certificates: string | null;
@@ -15,7 +30,12 @@ export interface UserProfile {
15
30
  date_joined: string;
16
31
  language_proficiencies: string[];
17
32
  level_of_education: string | null;
18
- social_links: string[];
33
+ enable_sidebar_ai_mentor_display: boolean;
34
+ enable_skills_leaderboard_display: boolean;
35
+ social_links: {
36
+ platform: string;
37
+ social_link: string;
38
+ }[];
19
39
  time_zone: string | null;
20
40
  accomplishments_shared: boolean;
21
41
  name: string;
@@ -37,8 +57,51 @@ export interface UserProfile {
37
57
  activation_key: string | null;
38
58
  pending_name_change: boolean | null;
39
59
  }
40
- export type GetUserMetadataArgs = {
60
+ export interface GetUserMetadataArgs {
41
61
  params: {
42
62
  username: string;
43
63
  };
64
+ }
65
+ export interface UpdateUserAccountRequest {
66
+ username: string;
67
+ name?: string;
68
+ email?: string;
69
+ title?: string;
70
+ about?: string;
71
+ social_links?: {
72
+ platform: string;
73
+ social_link: string;
74
+ }[];
75
+ public_metadata?: {
76
+ bio?: string;
77
+ name?: string;
78
+ about?: string;
79
+ language?: string;
80
+ social_links?: {
81
+ platform: string;
82
+ social_link: string;
83
+ }[];
84
+ profile_image?: {
85
+ has_image: boolean;
86
+ image_url_full: string;
87
+ image_url_large: string;
88
+ image_url_small: string;
89
+ image_url_medium: string;
90
+ };
91
+ [key: string]: any;
92
+ };
93
+ enable_sidebar_ai_mentor_display?: boolean;
94
+ enable_skills_leaderboard_display?: boolean;
95
+ }
96
+ export type UpdateUserRoleRequest = {
97
+ active: boolean;
98
+ org: string;
99
+ role: string;
100
+ username: string;
44
101
  };
102
+ export interface UploadProfileImageResponse {
103
+ profile_image_url: string;
104
+ }
105
+ export interface RemoveProfileImageResponse {
106
+ success: boolean;
107
+ }