@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,5 +1,6 @@
|
|
|
1
|
-
import { SERVICES } from
|
|
2
|
-
|
|
1
|
+
import { SERVICES } from '../constants';
|
|
2
|
+
export { SERVICES };
|
|
3
|
+
import { type BaseQueryFn, type FetchArgs, type FetchBaseQueryError, type FetchBaseQueryMeta } from '@reduxjs/toolkit/query';
|
|
3
4
|
type CustomError = {
|
|
4
5
|
status: number;
|
|
5
6
|
error: string | object;
|
|
@@ -13,34 +14,56 @@ export declare const getServiceUrl: (service: SERVICES) => string;
|
|
|
13
14
|
*/
|
|
14
15
|
export declare const getHeaders: (service: SERVICES) => Promise<{
|
|
15
16
|
Authorization: string;
|
|
16
|
-
}>;
|
|
17
|
+
} | undefined>;
|
|
17
18
|
/**
|
|
18
19
|
* Build a generic RTK Query endpoint from a service function.
|
|
19
20
|
*/
|
|
20
|
-
export declare const buildEndpointFromService: <Args extends
|
|
21
|
+
export declare const buildEndpointFromService: <Args extends Record<string, unknown>, Result>(service: SERVICES, serviceFn: (args: Args) => Promise<Result>) => {
|
|
21
22
|
queryFn: BaseQueryFn<Args, Result, FetchBaseQueryError | CustomError>;
|
|
22
23
|
};
|
|
23
24
|
/**
|
|
24
25
|
* Shortcut for building an endpoint using the DM service.
|
|
25
26
|
*/
|
|
26
|
-
export declare const buildEndpointFromDmService: <Args extends
|
|
27
|
+
export declare const buildEndpointFromDmService: <Args extends Record<string, unknown>, Result>(serviceFn: (args: Args) => Promise<Result>) => {
|
|
27
28
|
queryFn: BaseQueryFn<Args, Result, FetchBaseQueryError | CustomError>;
|
|
28
29
|
};
|
|
29
30
|
/**
|
|
30
31
|
* Shortcut for building an endpoint using the AXD service.
|
|
31
32
|
*/
|
|
32
|
-
export declare const buildEndpointFromAxdService: <Args extends
|
|
33
|
+
export declare const buildEndpointFromAxdService: <Args extends Record<string, unknown>, Result>(serviceFn: (args: Args) => Promise<Result>) => {
|
|
33
34
|
queryFn: BaseQueryFn<Args, Result, FetchBaseQueryError | CustomError>;
|
|
34
35
|
};
|
|
35
|
-
export interface CustomQueryArgs extends Omit<FetchArgs,
|
|
36
|
+
export interface CustomQueryArgs extends Omit<FetchArgs, 'url'> {
|
|
36
37
|
url: string;
|
|
37
38
|
service: SERVICES;
|
|
39
|
+
isJson?: boolean;
|
|
40
|
+
contentType?: string;
|
|
41
|
+
skipAuth?: boolean;
|
|
38
42
|
}
|
|
39
43
|
export type ExtendedFetchBaseQueryError = FetchBaseQueryError & {
|
|
40
44
|
data?: {
|
|
41
45
|
detail?: string;
|
|
42
46
|
message?: string;
|
|
47
|
+
error?: string;
|
|
48
|
+
error_description?: string;
|
|
43
49
|
} | string;
|
|
44
50
|
};
|
|
45
51
|
export declare const iblFetchBaseQuery: BaseQueryFn<CustomQueryArgs, unknown, ExtendedFetchBaseQueryError, Record<string, unknown>, FetchBaseQueryMeta>;
|
|
46
|
-
|
|
52
|
+
/**
|
|
53
|
+
* Build a generic RTK Query endpoint from a service function.
|
|
54
|
+
*/
|
|
55
|
+
export declare const buildEndpointFromServiceLegacy: <Args extends any[], Result>(service: SERVICES, serviceFn: (...args: Args) => Promise<Result>) => {
|
|
56
|
+
queryFn: BaseQueryFn<Args, Result, FetchBaseQueryError | CustomError>;
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* Shortcut for building an endpoint using the DM service.
|
|
60
|
+
*/
|
|
61
|
+
export declare const buildEndpointFromDmServiceLegacy: <Args extends any[], Result>(serviceFn: (...args: Args) => Promise<Result>) => {
|
|
62
|
+
queryFn: BaseQueryFn<Args, Result, FetchBaseQueryError | CustomError>;
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* Shortcut for building an endpoint using the AXD service.
|
|
66
|
+
*/
|
|
67
|
+
export declare const buildEndpointFromAxdServiceLegacy: <Args extends any[], Result>(serviceFn: (...args: Args) => Promise<Result>) => {
|
|
68
|
+
queryFn: BaseQueryFn<Args, Result, FetchBaseQueryError | CustomError>;
|
|
69
|
+
};
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,23 +1,78 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
12
|
-
export * from
|
|
13
|
-
export * from
|
|
14
|
-
export * from
|
|
15
|
-
export * from
|
|
16
|
-
export * from
|
|
17
|
-
export * from
|
|
18
|
-
export * from
|
|
19
|
-
export * from
|
|
20
|
-
export * from
|
|
21
|
-
export * from
|
|
22
|
-
export * from
|
|
23
|
-
export * from
|
|
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/chat-files/api-slice';
|
|
5
|
+
export * from './features/chat-files/types';
|
|
6
|
+
export * from './features/llms/api-slice';
|
|
7
|
+
export * from './features/mentor/api-slice';
|
|
8
|
+
export * from './features/mentor-categories/api-slice';
|
|
9
|
+
export * from './features/prompts/api-slice';
|
|
10
|
+
export * from './features/auth/api-slice';
|
|
11
|
+
export * from './features/auth/types';
|
|
12
|
+
export * from './features/tenant/api-slice';
|
|
13
|
+
export * from './features/training-documents/api-slice';
|
|
14
|
+
export * from './features/platform/api-slice';
|
|
15
|
+
export * from './features/user/api-slice';
|
|
16
|
+
export * from './features/user/types';
|
|
17
|
+
export * from './features/user/api-slice';
|
|
18
|
+
export * from './features/core/api-slice';
|
|
19
|
+
export * from './features/core/constants';
|
|
20
|
+
export * from './features/skills/api-slice';
|
|
21
|
+
export * from './features/credentials/api-slice';
|
|
22
|
+
export * from './features/credentials/types';
|
|
23
|
+
export * from './features/user-invitations/api-slice';
|
|
24
|
+
export * from './features/apps/api-slice';
|
|
25
|
+
export * from './features/billing/api-slice';
|
|
26
|
+
export * from './features/stripe/types';
|
|
27
|
+
export * from './features/stripe/api-slice';
|
|
28
|
+
export * from './features/sessions/api-slice';
|
|
29
|
+
export * from './features/datasets/api-slice';
|
|
30
|
+
export * from './features/tools/api-slice';
|
|
31
|
+
export * from './features/analytics/api-slice';
|
|
32
|
+
export * from './features/analytics/types';
|
|
33
|
+
export * from './features/reports/api-slice';
|
|
34
|
+
export * from './features/catalog/api-slice';
|
|
35
|
+
export * from './features/per-learner/api-slice';
|
|
36
|
+
export * from './features/search/api-slice';
|
|
37
|
+
export * from './features/career/api-slice';
|
|
38
|
+
export * from './constants';
|
|
39
|
+
export * from './config';
|
|
40
|
+
export * from './services/StorageService';
|
|
41
|
+
export * from './core';
|
|
42
|
+
export * from './features/tenant-logo/api-slice';
|
|
43
|
+
export * from './features/tenant-logo/constants';
|
|
44
|
+
export * from './features/credentials/custom-api-slice';
|
|
45
|
+
export * from './features/credentials/constants';
|
|
46
|
+
export * from './features/notifications/api-slice';
|
|
47
|
+
export * from './features/notifications/custom-api-slice';
|
|
48
|
+
export * from './features/notifications/types';
|
|
49
|
+
export * from './features/notifications/constants';
|
|
50
|
+
export * from './features/mentor/custom-api-slice';
|
|
51
|
+
export * from './features/mentor/constants';
|
|
52
|
+
export * from './features/mentor/types';
|
|
53
|
+
export * from './features/memory/api-slice';
|
|
54
|
+
export * from './features/memory/constants';
|
|
55
|
+
export * from './features/memory/types';
|
|
56
|
+
export * from './features/constants';
|
|
57
|
+
export * from './features/custom-domain/api-slice';
|
|
58
|
+
export * from './features/custom-domain/types';
|
|
59
|
+
export * from './features/custom-domain/constants';
|
|
60
|
+
export * from './features/platform/custom-api-slice';
|
|
61
|
+
export * from './features/platform/constants';
|
|
62
|
+
export * from './features/platform/types';
|
|
63
|
+
export * from './features/core/custom-api-slice';
|
|
64
|
+
export * from './features/core/constants';
|
|
65
|
+
export * from './features/core/types';
|
|
66
|
+
export * from './features/core/custom-public-image-asset-api-slice';
|
|
67
|
+
export * from './features/edx-proctoring/api-slice';
|
|
68
|
+
export * from './features/edx-proctoring/constants';
|
|
69
|
+
export * from './features/edx-proctoring/types';
|
|
70
|
+
export * from './features/disclaimers/api-slice';
|
|
71
|
+
export * from './features/disclaimers/constants';
|
|
72
|
+
export * from './features/disclaimers/types';
|
|
73
|
+
export * from './features/search/ai-search-api-slice';
|
|
74
|
+
export * from './features/search/types';
|
|
75
|
+
export * from './features/search/constants';
|
|
76
|
+
export * from './reducers';
|
|
77
|
+
export * from './utils';
|
|
78
|
+
export type { LLMResponse, MentorSettings } from '@iblai/iblai-api';
|
|
@@ -1,120 +1,2 @@
|
|
|
1
|
-
export declare const mentorReducer:
|
|
2
|
-
|
|
3
|
-
createMentor: import("@reduxjs/toolkit/query").MutationDefinition<[org: string, userId: string, formData: import("@iblai/iblai-api").MentorFromTemplateWithSettingRequest], import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, "mentor" | "mentors", import("@iblai/iblai-api").Mentor, "mentorApiSlice", any>;
|
|
4
|
-
getMentors: import("@reduxjs/toolkit/query").QueryDefinition<[org: string, username: string, audience?: string[] | undefined, category?: string[] | undefined, createdBy?: string | undefined, id?: number | undefined, limit?: number | undefined, llm?: string[] | undefined, offset?: number | undefined, orderBy?: string | undefined, orderDirection?: string | undefined, query?: string | undefined, tags?: string[] | undefined, tenant?: string | undefined, uniqueId?: string | undefined], import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, "mentor" | "mentors", Record<string, any>, "mentorApiSlice", any>;
|
|
5
|
-
editMentor: import("@reduxjs/toolkit/query").MutationDefinition<[mentor: string, org: string, userId: string, formData?: import("@iblai/iblai-api").MentorSettingsRequest | undefined], import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, "mentor" | "mentors", import("@iblai/iblai-api").MentorSettings, "mentorApiSlice", any>;
|
|
6
|
-
seedMentors: import("@reduxjs/toolkit/query").QueryDefinition<[org: string, userId: string], import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, "mentor" | "mentors", import("@iblai/iblai-api").SeedMentorsView, "mentorApiSlice", any>;
|
|
7
|
-
getMentorDetails: import("@reduxjs/toolkit/query").QueryDefinition<[mentor: string, org: string, userId: string], import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, "mentor" | "mentors", import("@iblai/iblai-api").Mentor, "mentorApiSlice", any>;
|
|
8
|
-
getMentorSettings: import("@reduxjs/toolkit/query").QueryDefinition<[mentor: string, org: string, userId: string], import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, "mentor" | "mentors", import("@iblai/iblai-api").MentorSettingsPublic, "mentorApiSlice", any>;
|
|
9
|
-
getMentorPublicSettings: import("@reduxjs/toolkit/query").QueryDefinition<[mentor: string, org: string, userId: string], import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, "mentor" | "mentors", import("@iblai/iblai-api").MentorSettingsPublic, "mentorApiSlice", any>;
|
|
10
|
-
updateMentorSettings: import("@reduxjs/toolkit/query").MutationDefinition<[mentor: string, org: string, userId: string, formData?: import("@iblai/iblai-api").MentorSettingsRequest | undefined], import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, "mentor" | "mentors", import("@iblai/iblai-api").MentorSettings, "mentorApiSlice", any>;
|
|
11
|
-
}, "mentor" | "mentors", "mentorApiSlice">, import("redux").UnknownAction>;
|
|
12
|
-
tenantApiSlice: import("redux").Reducer<import("@reduxjs/toolkit/query").CombinedState<{
|
|
13
|
-
getTenantMetadata: import("@reduxjs/toolkit/query").QueryDefinition<[org: string], import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, never, import("@iblai/iblai-api").PlatformPublicMetadata, "tenantApiSlice", any>;
|
|
14
|
-
getUserTenants: import("@reduxjs/toolkit/query").QueryDefinition<void, import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, never, import("../features/tenant/types").Tenant[], "tenantApiSlice", unknown>;
|
|
15
|
-
}, never, "tenantApiSlice">, import("redux").UnknownAction>;
|
|
16
|
-
userApiSlice: import("redux").Reducer<import("@reduxjs/toolkit/query").CombinedState<{
|
|
17
|
-
getUserMetadata: import("@reduxjs/toolkit/query").QueryDefinition<import("../features/user/types").GetUserMetadataArgs, import("@reduxjs/toolkit/query").BaseQueryFn<import("../features/utils").CustomQueryArgs, unknown, import("../features/utils").ExtendedFetchBaseQueryError, Record<string, unknown>, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, string, import("../features/user/types").UserProfile, "userApiSlice", unknown>;
|
|
18
|
-
}, string, "userApiSlice">, import("redux").UnknownAction>;
|
|
19
|
-
"platform-api": import("redux").Reducer<import("@reduxjs/toolkit/query").CombinedState<{
|
|
20
|
-
usersGradesPassed: import("@reduxjs/toolkit/query").QueryDefinition<[courseId: string, org: string, userId: string], import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, never, any, "platform-api", any>;
|
|
21
|
-
}, never, "platform-api">, import("redux").UnknownAction>;
|
|
22
|
-
apiKeysApiSlice: import("redux").Reducer<import("@reduxjs/toolkit/query").CombinedState<{
|
|
23
|
-
getApiKeys: import("@reduxjs/toolkit/query").QueryDefinition<[platformKey: string], import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, "apiKeys", import("@iblai/iblai-api").PlatformApiKey[], "apiKeysApiSlice", any>;
|
|
24
|
-
createApiKey: import("@reduxjs/toolkit/query").MutationDefinition<[requestBody: import("@iblai/iblai-api").PlatformApiKey], import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, "apiKeys", import("@iblai/iblai-api").PlatformApiKey, "apiKeysApiSlice", any>;
|
|
25
|
-
deleteApiKey: import("@reduxjs/toolkit/query").MutationDefinition<[name: string, platformKey: string], import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, "apiKeys", void, "apiKeysApiSlice", any>;
|
|
26
|
-
}, "apiKeys", "apiKeysApiSlice">, import("redux").UnknownAction>;
|
|
27
|
-
llmsApiSlice: import("redux").Reducer<import("@reduxjs/toolkit/query").CombinedState<{
|
|
28
|
-
getLlms: import("@reduxjs/toolkit/query").QueryDefinition<[org: string, userId: string], import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, never, import("@iblai/iblai-api").LLMResponse[], "llmsApiSlice", any>;
|
|
29
|
-
}, never, "llmsApiSlice">, import("redux").UnknownAction>;
|
|
30
|
-
toolsApiSlice: import("redux").Reducer<import("@reduxjs/toolkit/query").CombinedState<{
|
|
31
|
-
getTools: import("@reduxjs/toolkit/query").QueryDefinition<[mentor: string, org: string, userId: string], import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, never, import("@iblai/iblai-api").ToolResponse[], "toolsApiSlice", any>;
|
|
32
|
-
}, never, "toolsApiSlice">, import("redux").UnknownAction>;
|
|
33
|
-
mentorCategoriesApiSlice: import("redux").Reducer<import("@reduxjs/toolkit/query").CombinedState<{
|
|
34
|
-
getMentorCategories: import("@reduxjs/toolkit/query").QueryDefinition<[org: string, userId: string], import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, never, import("@iblai/iblai-api").MentorCategory[], "mentorCategoriesApiSlice", any>;
|
|
35
|
-
}, never, "mentorCategoriesApiSlice">, import("redux").UnknownAction>;
|
|
36
|
-
trainingDocumentsApiSlice: import("redux").Reducer<import("@reduxjs/toolkit/query").CombinedState<{
|
|
37
|
-
getTrainingDocuments: import("@reduxjs/toolkit/query").QueryDefinition<[org: string, pathway: string, userId: string], import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, "trainingDocuments", import("@iblai/iblai-api").RetrieverDocumentEmbedding[], "trainingDocumentsApiSlice", any>;
|
|
38
|
-
addTrainingDocument: import("@reduxjs/toolkit/query").MutationDefinition<[org: string, userId: string, formData: import("@iblai/iblai-api").TrainDocumentViewRequest], import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, "trainingDocuments", import("@iblai/iblai-api").TrainDocumentViewResponse, "trainingDocumentsApiSlice", any>;
|
|
39
|
-
editTrainingDocument: import("@reduxjs/toolkit/query").MutationDefinition<[documentId: string, org: string, userId: string, formData: import("@iblai/iblai-api").RetrieverDocumentEmbeddingRequest], import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, "trainingDocuments", import("@iblai/iblai-api").RetrieverDocumentEmbedding, "trainingDocumentsApiSlice", any>;
|
|
40
|
-
deleteTrainingDocument: import("@reduxjs/toolkit/query").MutationDefinition<[documentId: string, org: string, userId: string], import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, "trainingDocuments", void, "trainingDocumentsApiSlice", any>;
|
|
41
|
-
}, "trainingDocuments", "trainingDocumentsApiSlice">, import("redux").UnknownAction>;
|
|
42
|
-
chatHistoryApiSlice: import("redux").Reducer<import("@reduxjs/toolkit/query").CombinedState<{
|
|
43
|
-
getChatHistoryFilter: import("@reduxjs/toolkit/query").QueryDefinition<[org: string, userId: string, endDate?: string | undefined, mentorId?: string | undefined, monthlyRange?: boolean | undefined, startDate?: string | undefined], import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, "chatHistory" | "chatHistoryFilter" | "chatHistoryExportStatus", import("@iblai/iblai-api").ChatHistoryFilterData, "chatHistoryApiSlice", any>;
|
|
44
|
-
getChatHistory: import("@reduxjs/toolkit/query").QueryDefinition<[org: string, userId: string, endDate?: string | undefined, mentor?: string | undefined, page?: number | undefined, pageSize?: number | undefined, sentiment?: string | undefined, startDate?: string | undefined, topics?: string | undefined], import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, "chatHistory" | "chatHistoryFilter" | "chatHistoryExportStatus", import("@iblai/iblai-api").PaginatedConversationsList, "chatHistoryApiSlice", any>;
|
|
45
|
-
exportChatHistory: import("@reduxjs/toolkit/query").MutationDefinition<[org: string, requestBody?: import("@iblai/iblai-api").ReportRequest | undefined], import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, "chatHistory" | "chatHistoryFilter" | "chatHistoryExportStatus", import("@iblai/iblai-api").ReportCreate, "chatHistoryApiSlice", any>;
|
|
46
|
-
getChatHistoryExportStatus: import("@reduxjs/toolkit/query").QueryDefinition<[tenantKey: string], import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, "chatHistory" | "chatHistoryFilter" | "chatHistoryExportStatus", {
|
|
47
|
-
data: {
|
|
48
|
-
state: string;
|
|
49
|
-
};
|
|
50
|
-
}, "chatHistoryApiSlice", any>;
|
|
51
|
-
}, "chatHistory" | "chatHistoryFilter" | "chatHistoryExportStatus", "chatHistoryApiSlice">, import("redux").UnknownAction>;
|
|
52
|
-
promptsApiSlice: import("redux").Reducer<import("@reduxjs/toolkit/query").CombinedState<{
|
|
53
|
-
getPromptCategories: import("@reduxjs/toolkit/query").QueryDefinition<[org: string, userId: string, filterBy?: string | undefined], import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, "prompts" | "promptCategories", import("@iblai/iblai-api").PromptCategory, "promptsApiSlice", any>;
|
|
54
|
-
getPrompts: import("@reduxjs/toolkit/query").QueryDefinition<[org: string, userId: string, category?: number | undefined, createdBy?: string | undefined, filterBy?: string | undefined, mentorUniqueId?: string | undefined, tag?: number | undefined, visibility?: string | undefined], import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, "prompts" | "promptCategories", import("@iblai/iblai-api").Prompt[], "promptsApiSlice", any>;
|
|
55
|
-
createPrompt: import("@reduxjs/toolkit/query").MutationDefinition<[org: string, userId: string, requestBody: import("@iblai/iblai-api").Prompt, category?: number | undefined, createdBy?: string | undefined, filterBy?: string | undefined, mentorUniqueId?: string | undefined, tag?: number | undefined, visibility?: string | undefined], import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, "prompts" | "promptCategories", import("@iblai/iblai-api").Prompt, "promptsApiSlice", any>;
|
|
56
|
-
updatePrompt: import("@reduxjs/toolkit/query").MutationDefinition<[id: number, org: string, userId: string, requestBody: import("@iblai/iblai-api").Prompt, category?: number | undefined, createdBy?: string | undefined, filterBy?: string | undefined, mentorUniqueId?: string | undefined, tag?: number | undefined, visibility?: string | undefined], import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, "prompts" | "promptCategories", import("@iblai/iblai-api").Prompt, "promptsApiSlice", any>;
|
|
57
|
-
deletePrompt: import("@reduxjs/toolkit/query").MutationDefinition<[id: number, org: string, userId: string, category?: number | undefined, createdBy?: string | undefined, filterBy?: string | undefined, mentorUniqueId?: string | undefined, tag?: number | undefined, visibility?: string | undefined], import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, "prompts" | "promptCategories", void, "promptsApiSlice", any>;
|
|
58
|
-
}, "prompts" | "promptCategories", "promptsApiSlice">, import("redux").UnknownAction>;
|
|
59
|
-
credentialsApiSlice: import("redux").Reducer<import("@reduxjs/toolkit/query").CombinedState<{
|
|
60
|
-
getCredentials: import("@reduxjs/toolkit/query").QueryDefinition<[org: string, name?: string | undefined], import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, never, import("@iblai/iblai-api").IntegrationCredential, "credentialsApiSlice", any>;
|
|
61
|
-
getUserCredentials: import("@reduxjs/toolkit/query").QueryDefinition<[org: string, userId: string, course?: string | undefined, excludeMainTenantAssertions?: boolean | undefined, includeExpired?: boolean | undefined, includeRevoked?: boolean | undefined], import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, never, import("@iblai/iblai-api").Assertion, "credentialsApiSlice", any>;
|
|
62
|
-
}, never, "credentialsApiSlice">, import("redux").UnknownAction>;
|
|
63
|
-
userInvitationsApiSlice: import("redux").Reducer<import("@reduxjs/toolkit/query").CombinedState<{
|
|
64
|
-
getUserInvitations: import("@reduxjs/toolkit/query").QueryDefinition<[], import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, never, any, "userInvitationsApiSlice", any>;
|
|
65
|
-
createUserInvitation: import("@reduxjs/toolkit/query").MutationDefinition<[], import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, never, any, "userInvitationsApiSlice", any>;
|
|
66
|
-
}, never, "userInvitationsApiSlice">, import("redux").UnknownAction>;
|
|
67
|
-
};
|
|
68
|
-
export declare const mentorMiddleware: (import("redux").Middleware<{}, import("@reduxjs/toolkit/query").RootState<{
|
|
69
|
-
createMentor: import("@reduxjs/toolkit/query").MutationDefinition<[org: string, userId: string, formData: import("@iblai/iblai-api").MentorFromTemplateWithSettingRequest], import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, "mentor" | "mentors", import("@iblai/iblai-api").Mentor, "mentorApiSlice", any>;
|
|
70
|
-
getMentors: import("@reduxjs/toolkit/query").QueryDefinition<[org: string, username: string, audience?: string[] | undefined, category?: string[] | undefined, createdBy?: string | undefined, id?: number | undefined, limit?: number | undefined, llm?: string[] | undefined, offset?: number | undefined, orderBy?: string | undefined, orderDirection?: string | undefined, query?: string | undefined, tags?: string[] | undefined, tenant?: string | undefined, uniqueId?: string | undefined], import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, "mentor" | "mentors", Record<string, any>, "mentorApiSlice", any>;
|
|
71
|
-
editMentor: import("@reduxjs/toolkit/query").MutationDefinition<[mentor: string, org: string, userId: string, formData?: import("@iblai/iblai-api").MentorSettingsRequest | undefined], import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, "mentor" | "mentors", import("@iblai/iblai-api").MentorSettings, "mentorApiSlice", any>;
|
|
72
|
-
seedMentors: import("@reduxjs/toolkit/query").QueryDefinition<[org: string, userId: string], import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, "mentor" | "mentors", import("@iblai/iblai-api").SeedMentorsView, "mentorApiSlice", any>;
|
|
73
|
-
getMentorDetails: import("@reduxjs/toolkit/query").QueryDefinition<[mentor: string, org: string, userId: string], import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, "mentor" | "mentors", import("@iblai/iblai-api").Mentor, "mentorApiSlice", any>;
|
|
74
|
-
getMentorSettings: import("@reduxjs/toolkit/query").QueryDefinition<[mentor: string, org: string, userId: string], import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, "mentor" | "mentors", import("@iblai/iblai-api").MentorSettingsPublic, "mentorApiSlice", any>;
|
|
75
|
-
getMentorPublicSettings: import("@reduxjs/toolkit/query").QueryDefinition<[mentor: string, org: string, userId: string], import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, "mentor" | "mentors", import("@iblai/iblai-api").MentorSettingsPublic, "mentorApiSlice", any>;
|
|
76
|
-
updateMentorSettings: import("@reduxjs/toolkit/query").MutationDefinition<[mentor: string, org: string, userId: string, formData?: import("@iblai/iblai-api").MentorSettingsRequest | undefined], import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, "mentor" | "mentors", import("@iblai/iblai-api").MentorSettings, "mentorApiSlice", any>;
|
|
77
|
-
}, string, "mentorApiSlice">, import("redux-thunk").ThunkDispatch<any, any, import("redux").UnknownAction>> | import("redux").Middleware<{}, import("@reduxjs/toolkit/query").RootState<{
|
|
78
|
-
getTenantMetadata: import("@reduxjs/toolkit/query").QueryDefinition<[org: string], import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, never, import("@iblai/iblai-api").PlatformPublicMetadata, "tenantApiSlice", any>;
|
|
79
|
-
getUserTenants: import("@reduxjs/toolkit/query").QueryDefinition<void, import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, never, import("../features/tenant/types").Tenant[], "tenantApiSlice", unknown>;
|
|
80
|
-
}, string, "tenantApiSlice">, import("redux-thunk").ThunkDispatch<any, any, import("redux").UnknownAction>> | import("redux").Middleware<{}, import("@reduxjs/toolkit/query").RootState<{
|
|
81
|
-
getUserMetadata: import("@reduxjs/toolkit/query").QueryDefinition<import("../features/user/types").GetUserMetadataArgs, import("@reduxjs/toolkit/query").BaseQueryFn<import("../features/utils").CustomQueryArgs, unknown, import("../features/utils").ExtendedFetchBaseQueryError, Record<string, unknown>, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, string, import("../features/user/types").UserProfile, "userApiSlice", unknown>;
|
|
82
|
-
}, string, "userApiSlice">, import("redux-thunk").ThunkDispatch<any, any, import("redux").UnknownAction>> | import("redux").Middleware<{}, import("@reduxjs/toolkit/query").RootState<{
|
|
83
|
-
usersGradesPassed: import("@reduxjs/toolkit/query").QueryDefinition<[courseId: string, org: string, userId: string], import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, never, any, "platform-api", any>;
|
|
84
|
-
}, string, "platform-api">, import("redux-thunk").ThunkDispatch<any, any, import("redux").UnknownAction>> | import("redux").Middleware<{}, import("@reduxjs/toolkit/query").RootState<{
|
|
85
|
-
getApiKeys: import("@reduxjs/toolkit/query").QueryDefinition<[platformKey: string], import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, "apiKeys", import("@iblai/iblai-api").PlatformApiKey[], "apiKeysApiSlice", any>;
|
|
86
|
-
createApiKey: import("@reduxjs/toolkit/query").MutationDefinition<[requestBody: import("@iblai/iblai-api").PlatformApiKey], import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, "apiKeys", import("@iblai/iblai-api").PlatformApiKey, "apiKeysApiSlice", any>;
|
|
87
|
-
deleteApiKey: import("@reduxjs/toolkit/query").MutationDefinition<[name: string, platformKey: string], import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, "apiKeys", void, "apiKeysApiSlice", any>;
|
|
88
|
-
}, string, "apiKeysApiSlice">, import("redux-thunk").ThunkDispatch<any, any, import("redux").UnknownAction>> | import("redux").Middleware<{}, import("@reduxjs/toolkit/query").RootState<{
|
|
89
|
-
getLlms: import("@reduxjs/toolkit/query").QueryDefinition<[org: string, userId: string], import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, never, import("@iblai/iblai-api").LLMResponse[], "llmsApiSlice", any>;
|
|
90
|
-
}, string, "llmsApiSlice">, import("redux-thunk").ThunkDispatch<any, any, import("redux").UnknownAction>> | import("redux").Middleware<{}, import("@reduxjs/toolkit/query").RootState<{
|
|
91
|
-
getTools: import("@reduxjs/toolkit/query").QueryDefinition<[mentor: string, org: string, userId: string], import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, never, import("@iblai/iblai-api").ToolResponse[], "toolsApiSlice", any>;
|
|
92
|
-
}, string, "toolsApiSlice">, import("redux-thunk").ThunkDispatch<any, any, import("redux").UnknownAction>> | import("redux").Middleware<{}, import("@reduxjs/toolkit/query").RootState<{
|
|
93
|
-
getMentorCategories: import("@reduxjs/toolkit/query").QueryDefinition<[org: string, userId: string], import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, never, import("@iblai/iblai-api").MentorCategory[], "mentorCategoriesApiSlice", any>;
|
|
94
|
-
}, string, "mentorCategoriesApiSlice">, import("redux-thunk").ThunkDispatch<any, any, import("redux").UnknownAction>> | import("redux").Middleware<{}, import("@reduxjs/toolkit/query").RootState<{
|
|
95
|
-
getTrainingDocuments: import("@reduxjs/toolkit/query").QueryDefinition<[org: string, pathway: string, userId: string], import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, "trainingDocuments", import("@iblai/iblai-api").RetrieverDocumentEmbedding[], "trainingDocumentsApiSlice", any>;
|
|
96
|
-
addTrainingDocument: import("@reduxjs/toolkit/query").MutationDefinition<[org: string, userId: string, formData: import("@iblai/iblai-api").TrainDocumentViewRequest], import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, "trainingDocuments", import("@iblai/iblai-api").TrainDocumentViewResponse, "trainingDocumentsApiSlice", any>;
|
|
97
|
-
editTrainingDocument: import("@reduxjs/toolkit/query").MutationDefinition<[documentId: string, org: string, userId: string, formData: import("@iblai/iblai-api").RetrieverDocumentEmbeddingRequest], import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, "trainingDocuments", import("@iblai/iblai-api").RetrieverDocumentEmbedding, "trainingDocumentsApiSlice", any>;
|
|
98
|
-
deleteTrainingDocument: import("@reduxjs/toolkit/query").MutationDefinition<[documentId: string, org: string, userId: string], import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, "trainingDocuments", void, "trainingDocumentsApiSlice", any>;
|
|
99
|
-
}, string, "trainingDocumentsApiSlice">, import("redux-thunk").ThunkDispatch<any, any, import("redux").UnknownAction>> | import("redux").Middleware<{}, import("@reduxjs/toolkit/query").RootState<{
|
|
100
|
-
getChatHistoryFilter: import("@reduxjs/toolkit/query").QueryDefinition<[org: string, userId: string, endDate?: string | undefined, mentorId?: string | undefined, monthlyRange?: boolean | undefined, startDate?: string | undefined], import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, "chatHistory" | "chatHistoryFilter" | "chatHistoryExportStatus", import("@iblai/iblai-api").ChatHistoryFilterData, "chatHistoryApiSlice", any>;
|
|
101
|
-
getChatHistory: import("@reduxjs/toolkit/query").QueryDefinition<[org: string, userId: string, endDate?: string | undefined, mentor?: string | undefined, page?: number | undefined, pageSize?: number | undefined, sentiment?: string | undefined, startDate?: string | undefined, topics?: string | undefined], import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, "chatHistory" | "chatHistoryFilter" | "chatHistoryExportStatus", import("@iblai/iblai-api").PaginatedConversationsList, "chatHistoryApiSlice", any>;
|
|
102
|
-
exportChatHistory: import("@reduxjs/toolkit/query").MutationDefinition<[org: string, requestBody?: import("@iblai/iblai-api").ReportRequest | undefined], import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, "chatHistory" | "chatHistoryFilter" | "chatHistoryExportStatus", import("@iblai/iblai-api").ReportCreate, "chatHistoryApiSlice", any>;
|
|
103
|
-
getChatHistoryExportStatus: import("@reduxjs/toolkit/query").QueryDefinition<[tenantKey: string], import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, "chatHistory" | "chatHistoryFilter" | "chatHistoryExportStatus", {
|
|
104
|
-
data: {
|
|
105
|
-
state: string;
|
|
106
|
-
};
|
|
107
|
-
}, "chatHistoryApiSlice", any>;
|
|
108
|
-
}, string, "chatHistoryApiSlice">, import("redux-thunk").ThunkDispatch<any, any, import("redux").UnknownAction>> | import("redux").Middleware<{}, import("@reduxjs/toolkit/query").RootState<{
|
|
109
|
-
getPromptCategories: import("@reduxjs/toolkit/query").QueryDefinition<[org: string, userId: string, filterBy?: string | undefined], import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, "prompts" | "promptCategories", import("@iblai/iblai-api").PromptCategory, "promptsApiSlice", any>;
|
|
110
|
-
getPrompts: import("@reduxjs/toolkit/query").QueryDefinition<[org: string, userId: string, category?: number | undefined, createdBy?: string | undefined, filterBy?: string | undefined, mentorUniqueId?: string | undefined, tag?: number | undefined, visibility?: string | undefined], import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, "prompts" | "promptCategories", import("@iblai/iblai-api").Prompt[], "promptsApiSlice", any>;
|
|
111
|
-
createPrompt: import("@reduxjs/toolkit/query").MutationDefinition<[org: string, userId: string, requestBody: import("@iblai/iblai-api").Prompt, category?: number | undefined, createdBy?: string | undefined, filterBy?: string | undefined, mentorUniqueId?: string | undefined, tag?: number | undefined, visibility?: string | undefined], import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, "prompts" | "promptCategories", import("@iblai/iblai-api").Prompt, "promptsApiSlice", any>;
|
|
112
|
-
updatePrompt: import("@reduxjs/toolkit/query").MutationDefinition<[id: number, org: string, userId: string, requestBody: import("@iblai/iblai-api").Prompt, category?: number | undefined, createdBy?: string | undefined, filterBy?: string | undefined, mentorUniqueId?: string | undefined, tag?: number | undefined, visibility?: string | undefined], import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, "prompts" | "promptCategories", import("@iblai/iblai-api").Prompt, "promptsApiSlice", any>;
|
|
113
|
-
deletePrompt: import("@reduxjs/toolkit/query").MutationDefinition<[id: number, org: string, userId: string, category?: number | undefined, createdBy?: string | undefined, filterBy?: string | undefined, mentorUniqueId?: string | undefined, tag?: number | undefined, visibility?: string | undefined], import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, "prompts" | "promptCategories", void, "promptsApiSlice", any>;
|
|
114
|
-
}, string, "promptsApiSlice">, import("redux-thunk").ThunkDispatch<any, any, import("redux").UnknownAction>> | import("redux").Middleware<{}, import("@reduxjs/toolkit/query").RootState<{
|
|
115
|
-
getCredentials: import("@reduxjs/toolkit/query").QueryDefinition<[org: string, name?: string | undefined], import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, never, import("@iblai/iblai-api").IntegrationCredential, "credentialsApiSlice", any>;
|
|
116
|
-
getUserCredentials: import("@reduxjs/toolkit/query").QueryDefinition<[org: string, userId: string, course?: string | undefined, excludeMainTenantAssertions?: boolean | undefined, includeExpired?: boolean | undefined, includeRevoked?: boolean | undefined], import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, never, import("@iblai/iblai-api").Assertion, "credentialsApiSlice", any>;
|
|
117
|
-
}, string, "credentialsApiSlice">, import("redux-thunk").ThunkDispatch<any, any, import("redux").UnknownAction>> | import("redux").Middleware<{}, import("@reduxjs/toolkit/query").RootState<{
|
|
118
|
-
getUserInvitations: import("@reduxjs/toolkit/query").QueryDefinition<[], import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, never, any, "userInvitationsApiSlice", any>;
|
|
119
|
-
createUserInvitation: import("@reduxjs/toolkit/query").MutationDefinition<[], import("@reduxjs/toolkit/query").BaseQueryFn<any, unknown, unknown, {}, {}>, never, any, "userInvitationsApiSlice", any>;
|
|
120
|
-
}, string, "userInvitationsApiSlice">, import("redux-thunk").ThunkDispatch<any, any, import("redux").UnknownAction>>)[];
|
|
1
|
+
export declare const mentorReducer: Record<string, any>;
|
|
2
|
+
export declare const mentorMiddleware: any[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { StorageService } from "
|
|
2
|
-
export declare const initializeDataLayer: (dmUrl: string,
|
|
1
|
+
import { StorageService } from "@data-layer/services/StorageService";
|
|
2
|
+
export declare const initializeDataLayer: (dmUrl: string, lmsUrl: string, storageService: StorageService, httpErrorHandler?: Record<number, () => void>) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iblai/data-layer",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "ibl.ai data layer",
|
|
5
|
-
"main": "dist/index.js",
|
|
5
|
+
"main": "dist/index.esm.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"module": "dist/index.esm.js",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"exports": {
|
|
10
10
|
".": {
|
|
11
11
|
"import": "./dist/index.esm.js",
|
|
12
|
-
"require": "./dist/index.js"
|
|
13
|
-
"types": "./dist/index.d.ts"
|
|
12
|
+
"require": "./dist/index.js"
|
|
14
13
|
}
|
|
15
14
|
},
|
|
16
15
|
"files": [
|
|
17
16
|
"dist",
|
|
18
|
-
"package.json",
|
|
19
17
|
"README.md"
|
|
20
18
|
],
|
|
21
19
|
"scripts": {
|
|
22
20
|
"build": "rollup -c",
|
|
23
|
-
"
|
|
24
|
-
"test
|
|
25
|
-
"test:
|
|
21
|
+
"watch": "rollup -c -w",
|
|
22
|
+
"test": "vitest run",
|
|
23
|
+
"test:watch": "vitest",
|
|
24
|
+
"test:coverage": "vitest run --coverage",
|
|
26
25
|
"prepare": "husky",
|
|
27
26
|
"format": "prettier --write .",
|
|
28
27
|
"format:check": "prettier --check .",
|
|
29
28
|
"lint": "eslint --fix",
|
|
30
|
-
"lint:check": "eslint"
|
|
29
|
+
"lint:check": "eslint",
|
|
30
|
+
"typecheck": "tsc --noEmit"
|
|
31
31
|
},
|
|
32
32
|
"keywords": [
|
|
33
33
|
"web",
|
|
@@ -38,30 +38,36 @@
|
|
|
38
38
|
"author": "iblai",
|
|
39
39
|
"license": "ISC",
|
|
40
40
|
"devDependencies": {
|
|
41
|
+
"@eslint/js": "^9.39.1",
|
|
41
42
|
"@rollup/plugin-commonjs": "25.0.8",
|
|
42
43
|
"@rollup/plugin-node-resolve": "15.3.1",
|
|
43
44
|
"@rollup/plugin-typescript": "11.1.6",
|
|
44
|
-
"@testing-library/jest-dom": "6.
|
|
45
|
-
"@testing-library/react": "16.3.0",
|
|
46
|
-
"@types/jest": "29.5.14",
|
|
47
|
-
"@types/
|
|
45
|
+
"@testing-library/jest-dom": "^6.9.1",
|
|
46
|
+
"@testing-library/react": "^16.3.0",
|
|
47
|
+
"@types/jest": "^29.5.14",
|
|
48
|
+
"@types/node": "^22.19.0",
|
|
49
|
+
"@types/react": "19.1.17",
|
|
50
|
+
"@types/testing-library__jest-dom": "^5.14.9",
|
|
48
51
|
"@typescript-eslint/eslint-plugin": "8.29.1",
|
|
49
52
|
"@typescript-eslint/parser": "8.29.1",
|
|
50
53
|
"eslint": "9.24.0",
|
|
51
54
|
"eslint-config-prettier": "10.1.2",
|
|
55
|
+
"globals": "^16.5.0",
|
|
52
56
|
"husky": "9.1.7",
|
|
53
57
|
"jest": "29.7.0",
|
|
54
58
|
"jest-environment-jsdom": "29.7.0",
|
|
55
59
|
"prettier": "3.5.3",
|
|
56
60
|
"rollup": "4.40.0",
|
|
61
|
+
"rollup-plugin-dts": "^6.2.3",
|
|
57
62
|
"rollup-plugin-peer-deps-external": "2.2.4",
|
|
58
63
|
"rollup-plugin-typescript2": "0.36.0",
|
|
59
|
-
"ts-jest": "29.
|
|
64
|
+
"ts-jest": "^29.4.5",
|
|
60
65
|
"tslib": "2.8.1",
|
|
61
66
|
"typescript": "5.8.3"
|
|
62
67
|
},
|
|
63
68
|
"dependencies": {
|
|
64
|
-
"@iblai/iblai-api": "
|
|
69
|
+
"@iblai/iblai-api": "4.90.4-ai",
|
|
70
|
+
"rollup-plugin-copy": "^3.5.0",
|
|
65
71
|
"zod": "3.24.2"
|
|
66
72
|
},
|
|
67
73
|
"peerDependencies": {
|
|
@@ -69,5 +75,10 @@
|
|
|
69
75
|
"react": "19.1.0",
|
|
70
76
|
"react-dom": "19.1.0",
|
|
71
77
|
"react-redux": "9.2.0"
|
|
78
|
+
},
|
|
79
|
+
"packageManager": "pnpm@10.11.0",
|
|
80
|
+
"publishConfig": {
|
|
81
|
+
"access": "public",
|
|
82
|
+
"registry": "https://registry.npmjs.org/"
|
|
72
83
|
}
|
|
73
84
|
}
|
package/dist/config.d.ts
DELETED
package/dist/constants.d.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export declare const STORAGE_KEYS: {
|
|
2
|
-
CURRENT_TENANT: string;
|
|
3
|
-
TENANT: string;
|
|
4
|
-
TENANTS: string;
|
|
5
|
-
REDIRECT_TO: string;
|
|
6
|
-
AUTH_TOKEN: string;
|
|
7
|
-
TOKEN_EXPIRY: string;
|
|
8
|
-
EDX_TOKEN_KEY: string;
|
|
9
|
-
DM_TOKEN_KEY: string;
|
|
10
|
-
AXD_TOKEN_KEY: string;
|
|
11
|
-
USER_DATA: string;
|
|
12
|
-
};
|
|
13
|
-
export declare const URL_PATTERNS: {
|
|
14
|
-
PLATFORM_KEY: RegExp;
|
|
15
|
-
};
|
|
16
|
-
export declare const APP_IDENTIFIERS: {
|
|
17
|
-
APP_NAME: string;
|
|
18
|
-
};
|
|
19
|
-
export declare const QUERY_PARAMS: {
|
|
20
|
-
APP: string;
|
|
21
|
-
REDIRECT_TO: string;
|
|
22
|
-
TENANT: string;
|
|
23
|
-
};
|
|
24
|
-
export declare const TENANT_IDENTIFIERS: {
|
|
25
|
-
MAIN: string;
|
|
26
|
-
};
|
|
27
|
-
export declare enum SERVICES {
|
|
28
|
-
LMS = "LMS",
|
|
29
|
-
AXD = "AXD",
|
|
30
|
-
DM = "DM"
|
|
31
|
-
}
|
package/dist/core/index.d.ts
DELETED