@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.
- package/dist/index.d.ts +65009 -23
- package/dist/index.esm.js +29131 -16819
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +29475 -16817
- package/dist/index.js.map +1 -1
- package/dist/package.json +84 -0
- package/dist/src/config.d.ts +2 -0
- package/dist/src/constants.d.ts +2 -3
- package/dist/src/core/index.d.ts +2 -1
- package/dist/src/features/analytics/api-slice.d.ts +3357 -0
- package/dist/src/features/analytics/constants.d.ts +121 -0
- package/dist/src/features/analytics/types.d.ts +426 -0
- package/dist/src/features/api-keys/api-slice.d.ts +94 -34
- package/dist/{features/api-keys → src/features/apps}/api-slice.d.ts +156 -78
- package/dist/src/features/auth/api-slice.d.ts +639 -0
- package/dist/src/features/auth/constants.d.ts +20 -0
- package/dist/src/features/auth/types.d.ts +33 -0
- package/dist/src/features/billing/api-slice.d.ts +349 -0
- package/dist/src/features/career/api-slice.d.ts +2852 -0
- package/dist/src/features/catalog/api-slice.d.ts +8618 -1
- package/dist/src/features/chat/api-slice.d.ts +1567 -32
- package/dist/src/features/chat/chat-slice.d.ts +4 -7
- package/dist/{features/core → src/features/chat-files}/api-slice.d.ts +47 -26
- package/dist/src/features/chat-files/types.d.ts +32 -0
- package/dist/src/features/chat-history/api-slice.d.ts +518 -244
- package/dist/src/features/core/api-slice.d.ts +4261 -5
- package/dist/src/features/core/constants.d.ts +47 -0
- package/dist/src/features/core/custom-api-slice.d.ts +1458 -0
- package/dist/src/features/core/custom-public-image-asset-api-slice.d.ts +333 -0
- package/dist/src/features/core/types.d.ts +60 -0
- package/dist/src/features/credentials/api-slice.d.ts +2343 -84
- 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/custom-domain/api-slice.d.ts +602 -0
- package/dist/src/features/custom-domain/constants.d.ts +20 -0
- package/dist/src/features/custom-domain/types.d.ts +46 -0
- package/dist/src/features/datasets/api-slice.d.ts +352 -43
- package/dist/src/features/disclaimers/api-slice.d.ts +912 -0
- package/dist/src/features/disclaimers/constants.d.ts +27 -0
- package/dist/src/features/disclaimers/index.d.ts +3 -0
- package/dist/src/features/disclaimers/types.d.ts +67 -0
- package/dist/src/features/edx-proctoring/api-slice.d.ts +590 -0
- package/dist/src/features/edx-proctoring/constants.d.ts +15 -0
- package/dist/src/features/edx-proctoring/types.d.ts +61 -0
- package/dist/src/features/llms/api-slice.d.ts +89 -23
- package/dist/src/features/memory/api-slice.d.ts +2129 -0
- package/dist/src/features/memory/constants.d.ts +50 -0
- package/dist/src/features/memory/index.d.ts +3 -0
- package/dist/src/features/memory/types.d.ts +122 -0
- package/dist/src/features/mentor/api-slice.d.ts +4126 -146
- package/dist/src/features/mentor/constants.d.ts +39 -0
- package/dist/src/features/mentor/custom-api-slice.d.ts +796 -0
- package/dist/src/features/mentor/types.d.ts +77 -0
- package/dist/src/features/mentor-categories/api-slice.d.ts +463 -23
- package/dist/src/features/notifications/api-slice.d.ts +1600 -0
- package/dist/src/features/notifications/constants.d.ts +26 -0
- package/dist/src/features/notifications/custom-api-slice.d.ts +996 -0
- package/dist/src/features/notifications/types.d.ts +69 -0
- package/dist/src/features/per-learner/api-slice.d.ts +1213 -0
- package/dist/src/features/platform/api-slice.d.ts +944 -70
- package/dist/src/features/platform/constants.d.ts +17 -0
- package/dist/src/features/platform/custom-api-slice.d.ts +493 -0
- package/dist/src/features/platform/types.d.ts +48 -0
- package/dist/src/features/projects/api-slice.d.ts +2026 -0
- package/dist/src/features/projects/constants.d.ts +51 -0
- package/dist/src/features/projects/types.d.ts +79 -0
- package/dist/src/features/prompts/api-slice.d.ts +1357 -73
- package/dist/src/features/reports/api-slice.d.ts +814 -0
- package/dist/{features/prompts/api-slice.d.ts → src/features/search/ai-search-api-slice.d.ts} +161 -160
- package/dist/src/features/search/api-slice.d.ts +1939 -0
- package/dist/src/features/search/constants.d.ts +31 -0
- package/dist/src/features/search/types.d.ts +89 -0
- package/dist/src/features/sessions/api-slice.d.ts +705 -0
- package/dist/src/features/skills/api-slice.d.ts +505 -65
- package/dist/src/features/stripe/api-slice.d.ts +781 -0
- package/dist/src/features/stripe/constants.d.ts +19 -0
- package/dist/src/features/stripe/types.d.ts +19 -0
- package/dist/src/features/tenant/api-slice.d.ts +261 -47
- package/dist/src/features/tenant/constants.d.ts +1 -1
- package/dist/src/features/tenant/types.d.ts +1 -0
- 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 +133 -23
- package/dist/src/features/training-documents/api-slice.d.ts +731 -52
- package/dist/src/features/user/api-slice.d.ts +1457 -22
- package/dist/src/features/user/constants.d.ts +32 -1
- package/dist/src/features/user/types.d.ts +65 -2
- package/dist/src/features/user-invitations/api-slice.d.ts +346 -56
- package/dist/src/features/utils.d.ts +31 -8
- package/dist/src/index.d.ts +78 -23
- 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 +2 -0
- package/dist/src/services/StorageService.d.ts +1 -1
- package/dist/src/utils/index.d.ts +2 -2
- package/dist/tests/features/analytics/api-slice.test.d.ts +1 -0
- 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 +26 -15
- 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/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/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/catalog/api-slice.d.ts → src/__tests__/constants.test.d.ts} +0 -0
- /package/dist/{features → src/features}/constants.d.ts +0 -0
|
@@ -1,11 +1,42 @@
|
|
|
1
|
-
import { SERVICES } from
|
|
1
|
+
import { SERVICES } from '../../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
|
+
EDX_UPDATE_USER_METADATA: () => string[];
|
|
39
|
+
EDX_GET_USER_METADATA: () => string[];
|
|
40
|
+
REMOVE_PROFILE_IMAGE: () => string[];
|
|
10
41
|
};
|
|
11
42
|
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
|
+
}
|