@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,11 +1,40 @@
|
|
|
1
|
-
import { SERVICES } from "
|
|
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
|
-
|
|
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
|
|
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
|
+
}
|