@iblai/web-containers 0.0.6 → 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/components/hooks/use-toast.d.ts +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/loader.d.ts +1 -0
- package/dist/components/modals/user-profile-modal.d.ts +14 -0
- package/dist/components/profile/index.d.ts +5 -1
- package/dist/components/profile/security.d.ts +1 -1
- package/dist/components/profile/use-profile.d.ts +1 -1
- package/dist/components/ui/card.d.ts +8 -0
- package/dist/components/ui/pagination.d.ts +1 -1
- package/dist/components/ui/separator.d.ts +4 -0
- package/dist/components/ui/sonner.d.ts +4 -0
- package/dist/components/version.d.ts +6 -0
- 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/index.esm.js +23491 -2086
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +23569 -2157
- package/dist/index.js.map +1 -1
- package/dist/package.json +98 -0
- package/dist/web-containers/src/components/advance-pagination.d.ts +8 -0
- package/dist/web-containers/src/components/error/client-error-page.d.ts +10 -0
- package/dist/web-containers/src/components/error/error-page.d.ts +18 -0
- package/dist/web-containers/src/components/hooks/use-copy-to-clipboard.d.ts +8 -0
- package/dist/web-containers/src/components/hooks/use-toast.d.ts +44 -0
- package/dist/web-containers/src/components/index.d.ts +13 -0
- package/dist/web-containers/src/components/loader.d.ts +1 -0
- package/dist/web-containers/src/components/modals/user-profile-modal.d.ts +23 -0
- package/dist/web-containers/src/components/notifications/index.d.ts +1 -0
- package/dist/web-containers/src/components/notifications/notification-dropdown.d.ts +6 -0
- package/dist/web-containers/src/components/profile/account.d.ts +19 -0
- package/dist/web-containers/src/components/profile/admin.d.ts +4 -0
- package/dist/web-containers/src/components/profile/advanced.d.ts +5 -0
- package/dist/web-containers/src/components/profile/billing.d.ts +5 -0
- package/dist/web-containers/src/components/profile/index.d.ts +16 -0
- package/dist/web-containers/src/components/profile/integration/api-tab/api-key-modal.d.ts +7 -0
- package/dist/web-containers/src/components/profile/integration/api-tab/constants.d.ts +2 -0
- package/dist/web-containers/src/components/profile/integration/api-tab/create-api-modal.d.ts +8 -0
- package/dist/web-containers/src/components/profile/integration/api-tab/delete-api-modal.d.ts +11 -0
- package/dist/web-containers/src/components/profile/integration/api-tab/integration-autogenerated-table.d.ts +3 -0
- package/dist/web-containers/src/components/profile/integration/data-sources-tab/create-data-source-modal.d.ts +8 -0
- package/dist/web-containers/src/components/profile/integration/data-sources-tab/integration-data-sources-tab.d.ts +3 -0
- package/dist/web-containers/src/components/profile/integration/index.d.ts +4 -0
- package/dist/web-containers/src/components/profile/integration/llms-tab/create-llm-modal.d.ts +8 -0
- package/dist/web-containers/src/components/profile/integration/llms-tab/integration-llms-tab.d.ts +3 -0
- package/dist/web-containers/src/components/profile/invite-user.d.ts +5 -0
- package/dist/web-containers/src/components/profile/invited-users.d.ts +4 -0
- package/dist/web-containers/src/components/profile/organization.d.ts +4 -0
- package/dist/web-containers/src/components/profile/security.d.ts +3 -0
- package/dist/web-containers/src/components/profile/use-profile.d.ts +44 -0
- package/dist/web-containers/src/components/spinner/index.d.ts +6 -0
- package/dist/web-containers/src/components/tenant-switch/index.d.ts +11 -0
- package/dist/web-containers/src/components/tenant-switch/types.d.ts +6 -0
- package/dist/web-containers/src/components/top-banner/index.d.ts +3 -0
- package/dist/web-containers/src/components/top-banner/types.d.ts +10 -0
- package/dist/web-containers/src/components/top-banner/use-top-banner.d.ts +11 -0
- package/dist/web-containers/src/components/ui/avatar.d.ts +13 -0
- package/dist/web-containers/src/components/ui/badge.d.ts +9 -0
- package/dist/web-containers/src/components/ui/button.d.ts +11 -0
- package/dist/web-containers/src/components/ui/calendar.d.ts +8 -0
- package/dist/web-containers/src/components/ui/card.d.ts +8 -0
- package/dist/web-containers/src/components/ui/checkbox.d.ts +4 -0
- package/dist/web-containers/src/components/ui/dialog.d.ts +19 -0
- package/dist/web-containers/src/components/ui/dropdown-menu.d.ts +25 -0
- package/dist/web-containers/src/components/ui/input.d.ts +3 -0
- package/dist/web-containers/src/components/ui/label.d.ts +5 -0
- package/dist/web-containers/src/components/ui/pagination.d.ts +28 -0
- package/dist/web-containers/src/components/ui/popover.d.ts +6 -0
- package/dist/web-containers/src/components/ui/select.d.ts +13 -0
- package/dist/web-containers/src/components/ui/separator.d.ts +4 -0
- package/dist/web-containers/src/components/ui/skeleton.d.ts +2 -0
- package/dist/web-containers/src/components/ui/sonner.d.ts +4 -0
- package/dist/web-containers/src/components/ui/switch.d.ts +4 -0
- package/dist/web-containers/src/components/ui/table.d.ts +10 -0
- package/dist/web-containers/src/components/ui/tabs.d.ts +7 -0
- package/dist/web-containers/src/components/ui/textarea.d.ts +3 -0
- package/dist/web-containers/src/components/ui/toast.d.ts +15 -0
- package/dist/web-containers/src/components/ui/toaster.d.ts +15 -0
- package/dist/web-containers/src/components/ui/tooltip.d.ts +7 -0
- package/dist/web-containers/src/components/ui/use-toast.d.ts +15 -0
- package/dist/web-containers/src/components/user-profile-dropdown/index.d.ts +52 -0
- package/dist/web-containers/src/components/version.d.ts +6 -0
- package/dist/web-containers/src/hooks/index.d.ts +1 -0
- package/dist/web-containers/src/hooks/use-iframe-message-handler.d.ts +8 -0
- package/dist/web-containers/src/index.d.ts +2 -0
- package/dist/web-containers/src/lib/error-utils.d.ts +15 -0
- package/dist/web-containers/src/lib/utils.d.ts +2 -0
- package/dist/web-containers/src/utils.d.ts +1 -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-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/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 +38 -21
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { SERVICES } from "@data-layer/constants";
|
|
2
|
+
export declare const ANALYTICS_ENDPOINTS: {
|
|
3
|
+
GET_OVERVIEW_SUMMARY: {
|
|
4
|
+
service: SERVICES;
|
|
5
|
+
path: (org: string, userId: string) => string;
|
|
6
|
+
};
|
|
7
|
+
GET_CONVERSATION: {
|
|
8
|
+
service: SERVICES;
|
|
9
|
+
path: (org: string, userId: string) => string;
|
|
10
|
+
};
|
|
11
|
+
GET_MOST_DISCUSSED_TOPICS: {
|
|
12
|
+
service: SERVICES;
|
|
13
|
+
path: (org: string, userId: string) => string;
|
|
14
|
+
};
|
|
15
|
+
GET_AVERAGE_MESSAGES_PER_SESSION: {
|
|
16
|
+
service: SERVICES;
|
|
17
|
+
path: (org: string, userId: string) => string;
|
|
18
|
+
};
|
|
19
|
+
GET_REGISTERED_USERS_TREND: {
|
|
20
|
+
service: SERVICES;
|
|
21
|
+
path: (org: string, userId: string) => string;
|
|
22
|
+
};
|
|
23
|
+
GET_USER_METRICS: {
|
|
24
|
+
service: SERVICES;
|
|
25
|
+
path: (org: string, userId: string) => string;
|
|
26
|
+
};
|
|
27
|
+
GET_USER_METRICS_PIE_CHART: {
|
|
28
|
+
service: SERVICES;
|
|
29
|
+
path: (org: string, userId: string) => string;
|
|
30
|
+
};
|
|
31
|
+
GET_USER_COHORTS_OVER_TIME: {
|
|
32
|
+
service: SERVICES;
|
|
33
|
+
path: (org: string, userId: string) => string;
|
|
34
|
+
};
|
|
35
|
+
GET_TOP_STUDENTS_BY_CHAT_MESSAGES: {
|
|
36
|
+
service: SERVICES;
|
|
37
|
+
path: (org: string, userId: string) => string;
|
|
38
|
+
};
|
|
39
|
+
GET_TOPIC_OVERVIEW: {
|
|
40
|
+
service: SERVICES;
|
|
41
|
+
path: (org: string, userId: string) => string;
|
|
42
|
+
};
|
|
43
|
+
GET_TOPICS_SUMMARY: {
|
|
44
|
+
service: SERVICES;
|
|
45
|
+
path: (org: string, userId: string) => string;
|
|
46
|
+
};
|
|
47
|
+
GET_TOPIC_STATISTICS: {
|
|
48
|
+
service: SERVICES;
|
|
49
|
+
path: (org: string, userId: string) => string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
export declare const ANALYTICS_QUERY_KEYS: {
|
|
53
|
+
GET_OVERVIEW_SUMMARY: () => string[];
|
|
54
|
+
GET_CONVERSATION: () => string[];
|
|
55
|
+
GET_MOST_DISCUSSED_TOPICS: () => string[];
|
|
56
|
+
GET_AVERAGE_MESSAGES_PER_SESSION: () => string[];
|
|
57
|
+
GET_REGISTERED_USERS_TREND: () => string[];
|
|
58
|
+
GET_USER_METRICS: () => string[];
|
|
59
|
+
GET_USER_METRICS_PIE_CHART: () => string[];
|
|
60
|
+
GET_USER_COHORTS_OVER_TIME: () => string[];
|
|
61
|
+
GET_TOP_STUDENTS_BY_CHAT_MESSAGES: () => string[];
|
|
62
|
+
GET_TOPIC_OVERVIEW: () => string[];
|
|
63
|
+
GET_TOPICS_SUMMARY: () => string[];
|
|
64
|
+
GET_TOPIC_STATISTICS: () => string[];
|
|
65
|
+
};
|
|
66
|
+
export declare const ANALYTICS_REDUCER_PATH = "analyticsApiSlice";
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
export type AggregationType = "daily" | "hourly" | "weekly" | "monthly";
|
|
2
|
+
export interface AnalyticsBaseParams {
|
|
3
|
+
org: string;
|
|
4
|
+
userId: string;
|
|
5
|
+
mentorId: string;
|
|
6
|
+
}
|
|
7
|
+
export interface AnalyticsDateParams extends AnalyticsBaseParams {
|
|
8
|
+
startDate: string;
|
|
9
|
+
endDate: string;
|
|
10
|
+
aggregation: AggregationType;
|
|
11
|
+
}
|
|
12
|
+
export interface AnalyticsPaginationParams extends AnalyticsDateParams {
|
|
13
|
+
page: number;
|
|
14
|
+
pageSize: number;
|
|
15
|
+
}
|
|
16
|
+
export interface OverviewSummaryResponse {
|
|
17
|
+
conversation_volume: {
|
|
18
|
+
total: number;
|
|
19
|
+
change: number;
|
|
20
|
+
};
|
|
21
|
+
users: {
|
|
22
|
+
total: number;
|
|
23
|
+
change: number;
|
|
24
|
+
};
|
|
25
|
+
topics: {
|
|
26
|
+
total: number;
|
|
27
|
+
change: number;
|
|
28
|
+
};
|
|
29
|
+
user_rating: {
|
|
30
|
+
total: number;
|
|
31
|
+
change: number;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export interface ConversationSummaryResponse {
|
|
35
|
+
date: string;
|
|
36
|
+
conversation_count: number;
|
|
37
|
+
}
|
|
38
|
+
export interface TopicStatisticsResponse {
|
|
39
|
+
count: number;
|
|
40
|
+
next: string | null;
|
|
41
|
+
previous: string | null;
|
|
42
|
+
results: Array<{
|
|
43
|
+
name: string;
|
|
44
|
+
conversations: number;
|
|
45
|
+
messages: number;
|
|
46
|
+
avg_rating: string;
|
|
47
|
+
}>;
|
|
48
|
+
}
|
|
49
|
+
export interface TopicOverviewResponse {
|
|
50
|
+
total_topics: number;
|
|
51
|
+
total_topics_change_percentage: number;
|
|
52
|
+
new_topics: number;
|
|
53
|
+
new_topics_change_percentage: number;
|
|
54
|
+
}
|
|
55
|
+
export interface UserMetricsResponse {
|
|
56
|
+
registered_users: {
|
|
57
|
+
total: number;
|
|
58
|
+
change_percentage: number;
|
|
59
|
+
};
|
|
60
|
+
new_users: {
|
|
61
|
+
total: number;
|
|
62
|
+
change_percentage: number;
|
|
63
|
+
};
|
|
64
|
+
unique_users: {
|
|
65
|
+
total: number;
|
|
66
|
+
change_percentage: number;
|
|
67
|
+
};
|
|
68
|
+
veteran_users: {
|
|
69
|
+
total: number;
|
|
70
|
+
change_percentage: number;
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
export interface UserMetricsPieChartResponse {
|
|
74
|
+
new_users: {
|
|
75
|
+
count: number;
|
|
76
|
+
percentage: number;
|
|
77
|
+
};
|
|
78
|
+
returning_users: {
|
|
79
|
+
count: number;
|
|
80
|
+
percentage: number;
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
export interface UserCohortsOverTimeResponse {
|
|
84
|
+
periods: string[];
|
|
85
|
+
new_users: number[];
|
|
86
|
+
veteran_users: number[];
|
|
87
|
+
}
|
|
88
|
+
export interface TopStudentsResponse {
|
|
89
|
+
username: string;
|
|
90
|
+
chat_message_count: number;
|
|
91
|
+
}
|
|
92
|
+
export interface TopicsSummaryResponse {
|
|
93
|
+
name: string;
|
|
94
|
+
conversation_count: number;
|
|
95
|
+
}
|
|
96
|
+
export interface AverageMessagesPerSessionResponse {
|
|
97
|
+
time: string;
|
|
98
|
+
avg_messages: number;
|
|
99
|
+
total_sessions: number;
|
|
100
|
+
}
|