@iblai/data-layer 0.0.3 → 0.0.5
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/features/chat/api-slice.d.ts +905 -56
- package/dist/features/chat-history/constants.d.ts +3 -0
- package/dist/features/mentor/api-slice.d.ts +70 -70
- package/dist/features/user-invitations/api-slice.d.ts +54 -54
- package/dist/index.esm.js +16 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +21 -3
- package/dist/index.js.map +1 -1
- package/dist/node_modules/@iblai/iblai-api/src/core/ApiError.d.ts +10 -0
- package/dist/node_modules/@iblai/iblai-api/src/core/ApiRequestOptions.d.ts +13 -0
- package/dist/node_modules/@iblai/iblai-api/src/core/ApiResult.d.ts +7 -0
- package/dist/node_modules/@iblai/iblai-api/src/core/CancelablePromise.d.ts +20 -0
- package/dist/node_modules/@iblai/iblai-api/src/core/OpenAPI.d.ts +16 -0
- package/dist/node_modules/@iblai/iblai-api/src/core/request.d.ts +30 -0
- package/dist/reducers/mentor.d.ts +28 -17
- package/dist/src/constants.d.ts +1 -0
- package/dist/src/features/api-keys/api-slice.d.ts +28 -28
- package/dist/src/features/chat/api-slice.d.ts +297 -0
- package/dist/src/features/chat-history/api-slice.d.ts +1112 -0
- package/dist/src/features/chat-history/constants.d.ts +8 -0
- package/dist/src/features/core/api-slice.d.ts +164 -0
- package/dist/src/features/credentials/api-slice.d.ts +531 -0
- package/dist/src/features/datasets/api-slice.d.ts +19 -19
- package/dist/src/features/llms/api-slice.d.ts +19 -19
- package/dist/src/features/mentor/api-slice.d.ts +272 -375
- package/dist/src/features/mentor-categories/api-slice.d.ts +19 -19
- package/dist/src/features/platform/api-slice.d.ts +287 -22
- package/dist/src/features/prompts/api-slice.d.ts +1014 -0
- package/dist/src/features/skills/api-slice.d.ts +795 -0
- package/dist/src/features/tenant/api-slice.d.ts +40 -40
- package/dist/src/features/tools/api-slice.d.ts +19 -19
- package/dist/src/features/training-documents/api-slice.d.ts +750 -0
- package/dist/src/features/user/api-slice.d.ts +19 -19
- package/dist/src/features/user-invitations/api-slice.d.ts +428 -0
- package/dist/src/index.d.ts +12 -1
- package/dist/src/reducers/mentor.d.ts +96 -39
- package/dist/src/utils/index.d.ts +2 -0
- package/package.json +2 -2
- package/dist/features/mentor/constants.d.ts +0 -15
- package/dist/features/mentor/types.d.ts +0 -43
- package/dist/hooks/index.d.ts +0 -2
- package/dist/node_modules/@reduxjs/toolkit/dist/uncheckedindexed.d.ts +0 -5
- package/dist/src/hooks/index.d.ts +0 -2
- package/dist/tests/features/user/api-slice.test.d.ts +0 -1
- package/dist/tests/features/user/constants.test.d.ts +0 -1
- package/dist/tests/setupTests.d.ts +0 -1
package/dist/index.js
CHANGED
|
@@ -27055,21 +27055,31 @@ const { useGetChatHistoryFilterQuery, useLazyGetChatHistoryFilterQuery, useGetCh
|
|
|
27055
27055
|
const chatApiSlice = react.createApi({
|
|
27056
27056
|
reducerPath: "chatApiSlice",
|
|
27057
27057
|
baseQuery: react.fakeBaseQuery(),
|
|
27058
|
-
tagTypes: ["
|
|
27058
|
+
tagTypes: ["pinnedMessages", "recentMessages"],
|
|
27059
27059
|
endpoints: (builder) => ({
|
|
27060
27060
|
getPinnedMessages: builder.query({
|
|
27061
27061
|
...buildEndpointFromAxdService(AiMentorService.aiMentorOrgsUsersPinMessageList),
|
|
27062
|
-
providesTags: ["
|
|
27062
|
+
providesTags: ["pinnedMessages"],
|
|
27063
|
+
}),
|
|
27064
|
+
unPinMessage: builder.mutation({
|
|
27065
|
+
...buildEndpointFromAxdService(AiMentorService.aiMentorOrgsUsersPinMessageDestroy),
|
|
27063
27066
|
}),
|
|
27064
27067
|
addPinnedMessage: builder.mutation({
|
|
27065
27068
|
...buildEndpointFromAxdService(AiMentorService.aiMentorOrgsUsersPinMessageCreate),
|
|
27069
|
+
invalidatesTags: ["pinnedMessages"],
|
|
27066
27070
|
}),
|
|
27067
27071
|
getVectorDocuments: builder.query({
|
|
27068
27072
|
...buildEndpointFromAxdService(AiMentorService.aiMentorOrgsUsersCleanVectorResultsList),
|
|
27069
27073
|
}),
|
|
27074
|
+
getRecentMessage: builder.query({
|
|
27075
|
+
...buildEndpointFromAxdService(AiMentorService.aiMentorOrgsUsersRecentMessagesRetrieve),
|
|
27076
|
+
}),
|
|
27077
|
+
deleteMessage: builder.mutation({
|
|
27078
|
+
...buildEndpointFromAxdService(AiMentorService.aiMentorOrgsUsersSessionsDestroy),
|
|
27079
|
+
}),
|
|
27070
27080
|
}),
|
|
27071
27081
|
});
|
|
27072
|
-
const { useGetPinnedMessagesQuery, useAddPinnedMessageMutation, useLazyGetVectorDocumentsQuery, } = chatApiSlice;
|
|
27082
|
+
const { useLazyGetPinnedMessagesQuery, useUnPinMessageMutation, useDeleteMessageMutation, useGetPinnedMessagesQuery, useAddPinnedMessageMutation, useGetVectorDocumentsQuery, useLazyGetVectorDocumentsQuery, useGetRecentMessageQuery, useLazyGetRecentMessageQuery, } = chatApiSlice;
|
|
27073
27083
|
|
|
27074
27084
|
const llmsApiSlice = react.createApi({
|
|
27075
27085
|
reducerPath: "llmsApiSlice",
|
|
@@ -27379,6 +27389,7 @@ const mentorReducer = {
|
|
|
27379
27389
|
[tenantApiSlice.reducerPath]: tenantApiSlice.reducer,
|
|
27380
27390
|
[userApiSlice.reducerPath]: userApiSlice.reducer,
|
|
27381
27391
|
[platformApiSlice.reducerPath]: platformApiSlice.reducer,
|
|
27392
|
+
[chatApiSlice.reducerPath]: chatApiSlice.reducer,
|
|
27382
27393
|
[apiKeysApiSlice.reducerPath]: apiKeysApiSlice.reducer,
|
|
27383
27394
|
[llmsApiSlice.reducerPath]: llmsApiSlice.reducer,
|
|
27384
27395
|
[toolsApiSlice.reducerPath]: toolsApiSlice.reducer,
|
|
@@ -27403,6 +27414,7 @@ const mentorMiddleware = [
|
|
|
27403
27414
|
promptsApiSlice.middleware,
|
|
27404
27415
|
credentialsApiSlice.middleware,
|
|
27405
27416
|
userInvitationsApiSlice.middleware,
|
|
27417
|
+
chatApiSlice.middleware,
|
|
27406
27418
|
];
|
|
27407
27419
|
|
|
27408
27420
|
const initializeDataLayer = (dmUrl, axdUrl, lmsUrl, storageService) => {
|
|
@@ -27446,6 +27458,7 @@ exports.useCreatePromptMutation = useCreatePromptMutation;
|
|
|
27446
27458
|
exports.useCreateRedirectTokenMutation = useCreateRedirectTokenMutation;
|
|
27447
27459
|
exports.useCreateUserInvitationMutation = useCreateUserInvitationMutation;
|
|
27448
27460
|
exports.useDeleteApiKeyMutation = useDeleteApiKeyMutation;
|
|
27461
|
+
exports.useDeleteMessageMutation = useDeleteMessageMutation;
|
|
27449
27462
|
exports.useDeletePromptMutation = useDeletePromptMutation;
|
|
27450
27463
|
exports.useDeleteTrainingDocumentMutation = useDeleteTrainingDocumentMutation;
|
|
27451
27464
|
exports.useEditMentorMutation = useEditMentorMutation;
|
|
@@ -27466,6 +27479,7 @@ exports.useGetMentorsQuery = useGetMentorsQuery;
|
|
|
27466
27479
|
exports.useGetPinnedMessagesQuery = useGetPinnedMessagesQuery;
|
|
27467
27480
|
exports.useGetPromptCategoriesQuery = useGetPromptCategoriesQuery;
|
|
27468
27481
|
exports.useGetPromptsQuery = useGetPromptsQuery;
|
|
27482
|
+
exports.useGetRecentMessageQuery = useGetRecentMessageQuery;
|
|
27469
27483
|
exports.useGetReportedSkillsQuery = useGetReportedSkillsQuery;
|
|
27470
27484
|
exports.useGetSkillsPointsPercentileQuery = useGetSkillsPointsPercentileQuery;
|
|
27471
27485
|
exports.useGetTenantMetadataQuery = useGetTenantMetadataQuery;
|
|
@@ -27474,6 +27488,7 @@ exports.useGetUserCredentialsQuery = useGetUserCredentialsQuery;
|
|
|
27474
27488
|
exports.useGetUserInvitationsQuery = useGetUserInvitationsQuery;
|
|
27475
27489
|
exports.useGetUserMetadataQuery = useGetUserMetadataQuery;
|
|
27476
27490
|
exports.useGetUserTenantsQuery = useGetUserTenantsQuery;
|
|
27491
|
+
exports.useGetVectorDocumentsQuery = useGetVectorDocumentsQuery;
|
|
27477
27492
|
exports.useInviteUserMutation = useInviteUserMutation;
|
|
27478
27493
|
exports.useLazyGetApiKeysQuery = useLazyGetApiKeysQuery;
|
|
27479
27494
|
exports.useLazyGetChatHistoryExportStatusQuery = useLazyGetChatHistoryExportStatusQuery;
|
|
@@ -27487,8 +27502,10 @@ exports.useLazyGetMentorDetailsQuery = useLazyGetMentorDetailsQuery;
|
|
|
27487
27502
|
exports.useLazyGetMentorPublicSettingsQuery = useLazyGetMentorPublicSettingsQuery;
|
|
27488
27503
|
exports.useLazyGetMentorSettingsQuery = useLazyGetMentorSettingsQuery;
|
|
27489
27504
|
exports.useLazyGetMentorsQuery = useLazyGetMentorsQuery;
|
|
27505
|
+
exports.useLazyGetPinnedMessagesQuery = useLazyGetPinnedMessagesQuery;
|
|
27490
27506
|
exports.useLazyGetPromptCategoriesQuery = useLazyGetPromptCategoriesQuery;
|
|
27491
27507
|
exports.useLazyGetPromptsQuery = useLazyGetPromptsQuery;
|
|
27508
|
+
exports.useLazyGetRecentMessageQuery = useLazyGetRecentMessageQuery;
|
|
27492
27509
|
exports.useLazyGetReportedSkillsQuery = useLazyGetReportedSkillsQuery;
|
|
27493
27510
|
exports.useLazyGetSkillsPointsPercentileQuery = useLazyGetSkillsPointsPercentileQuery;
|
|
27494
27511
|
exports.useLazyGetTenantMetadataQuery = useLazyGetTenantMetadataQuery;
|
|
@@ -27504,6 +27521,7 @@ exports.usePlatformInvitationsQuery = usePlatformInvitationsQuery;
|
|
|
27504
27521
|
exports.usePlatformUsersQuery = usePlatformUsersQuery;
|
|
27505
27522
|
exports.useResetPasswordMutation = useResetPasswordMutation;
|
|
27506
27523
|
exports.useSeedMentorsQuery = useSeedMentorsQuery;
|
|
27524
|
+
exports.useUnPinMessageMutation = useUnPinMessageMutation;
|
|
27507
27525
|
exports.useUpdateMentorSettingsMutation = useUpdateMentorSettingsMutation;
|
|
27508
27526
|
exports.useUpdatePromptMutation = useUpdatePromptMutation;
|
|
27509
27527
|
exports.useUpdateUserMetadataMutation = useUpdateUserMetadataMutation;
|