@iblai/web-utils 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/data-layer/src/config.d.ts +7 -0
- package/dist/data-layer/src/constants.d.ts +30 -0
- package/dist/data-layer/src/core/index.d.ts +4 -0
- package/dist/data-layer/src/features/analytics/api-slice.d.ts +1600 -0
- package/dist/data-layer/src/features/analytics/constants.d.ts +66 -0
- package/dist/data-layer/src/features/analytics/types.d.ts +100 -0
- package/dist/data-layer/src/features/api-keys/api-slice.d.ts +665 -0
- package/dist/data-layer/src/features/apps/api-slice.d.ts +683 -0
- package/dist/data-layer/src/features/auth/api-slice.d.ts +137 -0
- package/dist/data-layer/src/features/auth/constants.d.ts +8 -0
- package/dist/data-layer/src/features/auth/types.d.ts +13 -0
- package/dist/data-layer/src/features/billing/api-slice.d.ts +349 -0
- package/dist/data-layer/src/features/career/api-slice.d.ts +687 -0
- package/dist/data-layer/src/features/catalog/api-slice.d.ts +6602 -0
- package/dist/data-layer/src/features/chat/api-slice.d.ts +1832 -0
- package/dist/data-layer/src/features/chat-history/api-slice.d.ts +1386 -0
- package/dist/data-layer/src/features/constants.d.ts +3 -0
- package/dist/data-layer/src/features/core/api-slice.d.ts +653 -0
- package/dist/data-layer/src/features/core/constants.d.ts +4 -0
- package/dist/data-layer/src/features/credentials/api-slice.d.ts +2129 -0
- package/dist/data-layer/src/features/credentials/constants.d.ts +28 -0
- package/dist/data-layer/src/features/credentials/custom-api-slice.d.ts +1284 -0
- package/dist/data-layer/src/features/credentials/types.d.ts +16 -0
- package/dist/data-layer/src/features/datasets/api-slice.d.ts +576 -0
- package/dist/data-layer/src/features/llms/api-slice.d.ts +333 -0
- package/dist/data-layer/src/features/mentor/api-slice.d.ts +4298 -0
- package/dist/data-layer/src/features/mentor/constants.d.ts +31 -0
- package/dist/data-layer/src/features/mentor/custom-api-slice.d.ts +268 -0
- package/dist/data-layer/src/features/mentor/types.d.ts +38 -0
- package/dist/data-layer/src/features/mentor-categories/api-slice.d.ts +311 -0
- package/dist/data-layer/src/features/notifications/api-slice.d.ts +946 -0
- package/dist/data-layer/src/features/per-learner/api-slice.d.ts +1213 -0
- package/dist/data-layer/src/features/platform/api-slice.d.ts +1124 -0
- package/dist/data-layer/src/features/prompts/api-slice.d.ts +2276 -0
- package/dist/data-layer/src/features/search/api-slice.d.ts +1939 -0
- package/dist/data-layer/src/features/sessions/api-slice.d.ts +705 -0
- package/dist/data-layer/src/features/skills/api-slice.d.ts +1235 -0
- package/dist/data-layer/src/features/stripe/api-slice.d.ts +620 -0
- package/dist/data-layer/src/features/stripe/constants.d.ts +15 -0
- package/dist/data-layer/src/features/stripe/types.d.ts +9 -0
- package/dist/data-layer/src/features/tenant/api-slice.d.ts +759 -0
- package/dist/data-layer/src/features/tenant/constants.d.ts +11 -0
- package/dist/data-layer/src/features/tenant/types.d.ts +18 -0
- package/dist/data-layer/src/features/tenant-logo/api-slice.d.ts +349 -0
- package/dist/data-layer/src/features/tenant-logo/constants.d.ts +24 -0
- package/dist/data-layer/src/features/tools/api-slice.d.ts +333 -0
- package/dist/data-layer/src/features/training-documents/api-slice.d.ts +922 -0
- package/dist/data-layer/src/features/user/api-slice.d.ts +1703 -0
- package/dist/data-layer/src/features/user/constants.d.ts +40 -0
- package/dist/data-layer/src/features/user/types.d.ts +107 -0
- package/dist/data-layer/src/features/user-invitations/api-slice.d.ts +718 -0
- package/dist/data-layer/src/features/utils.d.ts +66 -0
- package/dist/data-layer/src/index.d.ts +47 -0
- package/dist/data-layer/src/reducers/index.d.ts +2 -0
- package/dist/data-layer/src/reducers/mentor.d.ts +2 -0
- package/dist/data-layer/src/reducers/skills.d.ts +1148 -0
- package/dist/data-layer/src/services/StorageService.d.ts +5 -0
- package/dist/data-layer/src/utils/index.d.ts +2 -0
- package/dist/features/chat/slice.d.ts +59 -0
- package/dist/features/index.d.ts +1 -0
- package/dist/hooks/chat/use-advanced-chat.d.ts +41 -0
- package/dist/hooks/chat/use-chat-v2.d.ts +53 -0
- package/dist/hooks/chat/use-chat.d.ts +52 -0
- package/dist/hooks/chat/use-get-chat-details.d.ts +13 -0
- package/dist/hooks/index.d.ts +10 -0
- package/dist/hooks/subscription/class-subscription-flow.d.ts +70 -0
- package/dist/hooks/subscription/constants.d.ts +4 -0
- package/dist/hooks/subscription/use-subscription-handler.d.ts +11 -0
- package/dist/hooks/subscription-v2/class-subscription-flow.d.ts +62 -0
- package/dist/hooks/subscription-v2/constants.d.ts +5 -0
- package/dist/hooks/subscription-v2/use-external-pricing-plan.d.ts +7 -0
- package/dist/hooks/subscription-v2/use-subscription-handler.d.ts +12 -0
- package/dist/hooks/use-day-js.d.ts +7 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.esm.js +15076 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/index.js +15160 -0
- package/dist/index.js.map +1 -0
- package/dist/package.json +53 -0
- package/dist/providers/auth-provider.d.ts +63 -0
- package/dist/providers/index.d.ts +3 -0
- package/dist/providers/mentor-provider.d.ts +40 -0
- package/dist/providers/tenant-provider.d.ts +60 -0
- package/dist/types/chat.d.ts +1 -0
- package/dist/types/index.d.ts +55 -0
- package/dist/types/subscription.d.ts +18 -0
- package/dist/utils/constants.d.ts +13 -0
- package/dist/utils/data/advanced-tab.d.ts +62 -0
- package/dist/utils/helpers.d.ts +1 -0
- package/dist/utils/index.d.ts +3 -0
- package/dist/web-utils/src/features/chat/slice.d.ts +91 -0
- package/dist/web-utils/src/features/index.d.ts +1 -0
- package/dist/web-utils/src/hooks/chat/use-advanced-chat.d.ts +48 -0
- package/dist/web-utils/src/hooks/chat/use-chat-v2.d.ts +56 -0
- package/dist/web-utils/src/hooks/chat/use-chat.d.ts +52 -0
- package/dist/web-utils/src/hooks/chat/use-get-chat-details.d.ts +13 -0
- package/dist/web-utils/src/hooks/chat/use-mentor-tools.d.ts +18 -0
- package/dist/web-utils/src/hooks/index.d.ts +15 -0
- package/dist/web-utils/src/hooks/profile/use-profile-image-upload.d.ts +13 -0
- package/dist/web-utils/src/hooks/profile/use-user-profile-update.d.ts +28 -0
- package/dist/web-utils/src/hooks/subscription/class-subscription-flow.d.ts +70 -0
- package/dist/web-utils/src/hooks/subscription/constants.d.ts +4 -0
- package/dist/web-utils/src/hooks/subscription/use-subscription-handler.d.ts +11 -0
- package/dist/web-utils/src/hooks/subscription-v2/class-subscription-flow.d.ts +77 -0
- package/dist/web-utils/src/hooks/subscription-v2/constants.d.ts +51 -0
- package/dist/web-utils/src/hooks/subscription-v2/use-external-pricing-plan.d.ts +7 -0
- package/dist/web-utils/src/hooks/subscription-v2/use-subscription-handler.d.ts +16 -0
- package/dist/web-utils/src/hooks/tenant-metadata/config-loader.d.ts +41 -0
- package/dist/web-utils/src/hooks/tenant-metadata/constants.d.ts +9 -0
- package/dist/web-utils/src/hooks/tenant-metadata/index.d.ts +5 -0
- package/dist/web-utils/src/hooks/tenant-metadata/types.d.ts +9 -0
- package/dist/web-utils/src/hooks/tenant-metadata/use-tenant-metadata.d.ts +24 -0
- package/dist/web-utils/src/hooks/use-day-js.d.ts +7 -0
- package/dist/web-utils/src/hooks/use-mentor-settings.d.ts +21 -0
- package/dist/web-utils/src/index.d.ts +5 -0
- package/dist/web-utils/src/providers/auth-provider.d.ts +64 -0
- package/dist/web-utils/src/providers/index.d.ts +3 -0
- package/dist/web-utils/src/providers/mentor-provider.d.ts +40 -0
- package/dist/web-utils/src/providers/tenant-provider.d.ts +63 -0
- package/dist/web-utils/src/types/chat.d.ts +1 -0
- package/dist/web-utils/src/types/index.d.ts +55 -0
- package/dist/web-utils/src/types/subscription.d.ts +18 -0
- package/dist/web-utils/src/utils/constants.d.ts +37 -0
- package/dist/web-utils/src/utils/data/advanced-tab.d.ts +62 -0
- package/dist/web-utils/src/utils/helpers.d.ts +6 -0
- package/dist/web-utils/src/utils/index.d.ts +3 -0
- package/package.json +56 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { SERVICES } from "@data-layer/constants";
|
|
2
|
+
export declare const USERS_ENDPOINTS: {
|
|
3
|
+
GET_USER_METADATA: {
|
|
4
|
+
service: SERVICES;
|
|
5
|
+
path: () => string;
|
|
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
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export declare const USERS_QUERY_KEYS: {
|
|
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[];
|
|
39
|
+
};
|
|
40
|
+
export declare const USERS_REDUCER_PATH = "userApiSlice";
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
export interface ProfileImage {
|
|
2
|
+
has_image: boolean;
|
|
3
|
+
image_url_full: string;
|
|
4
|
+
image_url_large: string;
|
|
5
|
+
image_url_medium: string;
|
|
6
|
+
image_url_small: string;
|
|
7
|
+
}
|
|
8
|
+
export interface UserProfile {
|
|
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
|
+
};
|
|
24
|
+
profile_image: ProfileImage;
|
|
25
|
+
profile_image_url?: string;
|
|
26
|
+
username: string;
|
|
27
|
+
bio: string | null;
|
|
28
|
+
course_certificates: string | null;
|
|
29
|
+
country: string | null;
|
|
30
|
+
date_joined: string;
|
|
31
|
+
language_proficiencies: string[];
|
|
32
|
+
level_of_education: string | null;
|
|
33
|
+
enable_sidebar_ai_mentor_display: boolean;
|
|
34
|
+
enable_skills_leaderboard_display: boolean;
|
|
35
|
+
social_links: {
|
|
36
|
+
platform: string;
|
|
37
|
+
social_link: string;
|
|
38
|
+
}[];
|
|
39
|
+
time_zone: string | null;
|
|
40
|
+
accomplishments_shared: boolean;
|
|
41
|
+
name: string;
|
|
42
|
+
email: string;
|
|
43
|
+
id: number;
|
|
44
|
+
verified_name: string | null;
|
|
45
|
+
extended_profile: unknown[];
|
|
46
|
+
gender: string | null;
|
|
47
|
+
state: string | null;
|
|
48
|
+
goals: string | null;
|
|
49
|
+
is_active: boolean;
|
|
50
|
+
last_login: string;
|
|
51
|
+
mailing_address: string | null;
|
|
52
|
+
requires_parental_consent: boolean;
|
|
53
|
+
secondary_email: string | null;
|
|
54
|
+
secondary_email_enabled: boolean | null;
|
|
55
|
+
year_of_birth: number | null;
|
|
56
|
+
phone_number: string | null;
|
|
57
|
+
activation_key: string | null;
|
|
58
|
+
pending_name_change: boolean | null;
|
|
59
|
+
}
|
|
60
|
+
export interface GetUserMetadataArgs {
|
|
61
|
+
params: {
|
|
62
|
+
username: string;
|
|
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;
|
|
101
|
+
};
|
|
102
|
+
export interface UploadProfileImageResponse {
|
|
103
|
+
profile_image_url: string;
|
|
104
|
+
}
|
|
105
|
+
export interface RemoveProfileImageResponse {
|
|
106
|
+
success: boolean;
|
|
107
|
+
}
|