@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
|
+
import { type BaseQueryFn, type FetchArgs, type FetchBaseQueryError, type FetchBaseQueryMeta } from "@reduxjs/toolkit/query";
|
|
3
|
+
type CustomError = {
|
|
4
|
+
status: number;
|
|
5
|
+
error: string | object;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Get the service URL based on the provided service type.
|
|
9
|
+
*/
|
|
10
|
+
export declare const getServiceUrl: (service: SERVICES) => string;
|
|
11
|
+
/**
|
|
12
|
+
* Get the headers required for API requests based on the provided service type.
|
|
13
|
+
*/
|
|
14
|
+
export declare const getHeaders: (service: SERVICES) => Promise<{
|
|
15
|
+
Authorization: string;
|
|
16
|
+
} | {}>;
|
|
17
|
+
/**
|
|
18
|
+
* Build a generic RTK Query endpoint from a service function.
|
|
19
|
+
*/
|
|
20
|
+
export declare const buildEndpointFromService: <Args extends Record<string, unknown>, Result>(service: SERVICES, serviceFn: (args: Args) => Promise<Result>) => {
|
|
21
|
+
queryFn: BaseQueryFn<Args, Result, FetchBaseQueryError | CustomError>;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Shortcut for building an endpoint using the DM service.
|
|
25
|
+
*/
|
|
26
|
+
export declare const buildEndpointFromDmService: <Args extends Record<string, unknown>, Result>(serviceFn: (args: Args) => Promise<Result>) => {
|
|
27
|
+
queryFn: BaseQueryFn<Args, Result, FetchBaseQueryError | CustomError>;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Shortcut for building an endpoint using the AXD service.
|
|
31
|
+
*/
|
|
32
|
+
export declare const buildEndpointFromAxdService: <Args extends Record<string, unknown>, Result>(serviceFn: (args: Args) => Promise<Result>) => {
|
|
33
|
+
queryFn: BaseQueryFn<Args, Result, FetchBaseQueryError | CustomError>;
|
|
34
|
+
};
|
|
35
|
+
export interface CustomQueryArgs extends Omit<FetchArgs, "url"> {
|
|
36
|
+
url: string;
|
|
37
|
+
service: SERVICES;
|
|
38
|
+
isJson?: boolean;
|
|
39
|
+
contentType?: string;
|
|
40
|
+
}
|
|
41
|
+
export type ExtendedFetchBaseQueryError = FetchBaseQueryError & {
|
|
42
|
+
data?: {
|
|
43
|
+
detail?: string;
|
|
44
|
+
message?: string;
|
|
45
|
+
} | string;
|
|
46
|
+
};
|
|
47
|
+
export declare const iblFetchBaseQuery: BaseQueryFn<CustomQueryArgs, unknown, ExtendedFetchBaseQueryError, Record<string, unknown>, FetchBaseQueryMeta>;
|
|
48
|
+
/**
|
|
49
|
+
* Build a generic RTK Query endpoint from a service function.
|
|
50
|
+
*/
|
|
51
|
+
export declare const buildEndpointFromServiceLegacy: <Args extends any[], Result>(service: SERVICES, serviceFn: (...args: Args) => Promise<Result>) => {
|
|
52
|
+
queryFn: BaseQueryFn<Args, Result, FetchBaseQueryError | CustomError>;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* Shortcut for building an endpoint using the DM service.
|
|
56
|
+
*/
|
|
57
|
+
export declare const buildEndpointFromDmServiceLegacy: <Args extends any[], Result>(serviceFn: (...args: Args) => Promise<Result>) => {
|
|
58
|
+
queryFn: BaseQueryFn<Args, Result, FetchBaseQueryError | CustomError>;
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* Shortcut for building an endpoint using the AXD service.
|
|
62
|
+
*/
|
|
63
|
+
export declare const buildEndpointFromAxdServiceLegacy: <Args extends any[], Result>(serviceFn: (...args: Args) => Promise<Result>) => {
|
|
64
|
+
queryFn: BaseQueryFn<Args, Result, FetchBaseQueryError | CustomError>;
|
|
65
|
+
};
|
|
66
|
+
export {};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export * from "./features/api-keys/api-slice";
|
|
2
|
+
export * from "./features/chat-history/api-slice";
|
|
3
|
+
export * from "./features/chat/api-slice";
|
|
4
|
+
export * from "./features/llms/api-slice";
|
|
5
|
+
export * from "./features/mentor/api-slice";
|
|
6
|
+
export * from "./features/mentor-categories/api-slice";
|
|
7
|
+
export * from "./features/prompts/api-slice";
|
|
8
|
+
export * from "./features/auth/api-slice";
|
|
9
|
+
export * from "./features/auth/types";
|
|
10
|
+
export * from "./features/tenant/api-slice";
|
|
11
|
+
export * from "./features/training-documents/api-slice";
|
|
12
|
+
export * from "./features/platform/api-slice";
|
|
13
|
+
export * from "./features/user/api-slice";
|
|
14
|
+
export * from "./features/user/types";
|
|
15
|
+
export * from "./features/user/api-slice";
|
|
16
|
+
export * from "./features/core/api-slice";
|
|
17
|
+
export * from "./features/core/constants";
|
|
18
|
+
export * from "./features/skills/api-slice";
|
|
19
|
+
export * from "./features/credentials/api-slice";
|
|
20
|
+
export * from "./features/credentials/types";
|
|
21
|
+
export * from "./features/user-invitations/api-slice";
|
|
22
|
+
export * from "./features/apps/api-slice";
|
|
23
|
+
export * from "./features/billing/api-slice";
|
|
24
|
+
export * from "./features/stripe/types";
|
|
25
|
+
export * from "./features/stripe/api-slice";
|
|
26
|
+
export * from "./features/sessions/api-slice";
|
|
27
|
+
export * from "./features/datasets/api-slice";
|
|
28
|
+
export * from "./features/tools/api-slice";
|
|
29
|
+
export * from "./features/analytics/api-slice";
|
|
30
|
+
export * from "./features/catalog/api-slice";
|
|
31
|
+
export * from "./features/per-learner/api-slice";
|
|
32
|
+
export * from "./features/search/api-slice";
|
|
33
|
+
export * from "./features/career/api-slice";
|
|
34
|
+
export * from "./constants";
|
|
35
|
+
export * from "./config";
|
|
36
|
+
export * from "./services/StorageService";
|
|
37
|
+
export * from "./core";
|
|
38
|
+
export * from "./features/tenant-logo/api-slice";
|
|
39
|
+
export * from "./features/tenant-logo/constants";
|
|
40
|
+
export * from "./features/credentials/custom-api-slice";
|
|
41
|
+
export * from "./features/credentials/constants";
|
|
42
|
+
export * from "./features/notifications/api-slice";
|
|
43
|
+
export * from "./features/mentor/custom-api-slice";
|
|
44
|
+
export * from "./features/mentor/constants";
|
|
45
|
+
export * from "./features/mentor/types";
|
|
46
|
+
export * from "./reducers";
|
|
47
|
+
export * from "./utils";
|