@iblai/data-layer 0.0.3 → 0.0.4

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.
Files changed (46) hide show
  1. package/dist/features/chat/api-slice.d.ts +552 -25
  2. package/dist/features/chat-history/constants.d.ts +3 -0
  3. package/dist/features/mentor/api-slice.d.ts +70 -70
  4. package/dist/features/user-invitations/api-slice.d.ts +54 -54
  5. package/dist/index.esm.js +10 -4
  6. package/dist/index.esm.js.map +1 -1
  7. package/dist/index.js +13 -3
  8. package/dist/index.js.map +1 -1
  9. package/dist/node_modules/@iblai/iblai-api/src/core/ApiError.d.ts +10 -0
  10. package/dist/node_modules/@iblai/iblai-api/src/core/ApiRequestOptions.d.ts +13 -0
  11. package/dist/node_modules/@iblai/iblai-api/src/core/ApiResult.d.ts +7 -0
  12. package/dist/node_modules/@iblai/iblai-api/src/core/CancelablePromise.d.ts +20 -0
  13. package/dist/node_modules/@iblai/iblai-api/src/core/OpenAPI.d.ts +16 -0
  14. package/dist/node_modules/@iblai/iblai-api/src/core/request.d.ts +30 -0
  15. package/dist/reducers/mentor.d.ts +28 -17
  16. package/dist/src/constants.d.ts +1 -0
  17. package/dist/src/features/api-keys/api-slice.d.ts +28 -28
  18. package/dist/src/features/chat/api-slice.d.ts +297 -0
  19. package/dist/src/features/chat-history/api-slice.d.ts +1112 -0
  20. package/dist/src/features/chat-history/constants.d.ts +8 -0
  21. package/dist/src/features/core/api-slice.d.ts +164 -0
  22. package/dist/src/features/credentials/api-slice.d.ts +531 -0
  23. package/dist/src/features/datasets/api-slice.d.ts +19 -19
  24. package/dist/src/features/llms/api-slice.d.ts +19 -19
  25. package/dist/src/features/mentor/api-slice.d.ts +272 -375
  26. package/dist/src/features/mentor-categories/api-slice.d.ts +19 -19
  27. package/dist/src/features/platform/api-slice.d.ts +287 -22
  28. package/dist/src/features/prompts/api-slice.d.ts +1014 -0
  29. package/dist/src/features/skills/api-slice.d.ts +795 -0
  30. package/dist/src/features/tenant/api-slice.d.ts +40 -40
  31. package/dist/src/features/tools/api-slice.d.ts +19 -19
  32. package/dist/src/features/training-documents/api-slice.d.ts +750 -0
  33. package/dist/src/features/user/api-slice.d.ts +19 -19
  34. package/dist/src/features/user-invitations/api-slice.d.ts +428 -0
  35. package/dist/src/index.d.ts +12 -1
  36. package/dist/src/reducers/mentor.d.ts +96 -39
  37. package/dist/src/utils/index.d.ts +2 -0
  38. package/package.json +1 -1
  39. package/dist/features/mentor/constants.d.ts +0 -15
  40. package/dist/features/mentor/types.d.ts +0 -43
  41. package/dist/hooks/index.d.ts +0 -2
  42. package/dist/node_modules/@reduxjs/toolkit/dist/uncheckedindexed.d.ts +0 -5
  43. package/dist/src/hooks/index.d.ts +0 -2
  44. package/dist/tests/features/user/api-slice.test.d.ts +0 -1
  45. package/dist/tests/features/user/constants.test.d.ts +0 -1
  46. package/dist/tests/setupTests.d.ts +0 -1
package/dist/index.js CHANGED
@@ -27055,21 +27055,25 @@ const { useGetChatHistoryFilterQuery, useLazyGetChatHistoryFilterQuery, useGetCh
27055
27055
  const chatApiSlice = react.createApi({
27056
27056
  reducerPath: "chatApiSlice",
27057
27057
  baseQuery: react.fakeBaseQuery(),
27058
- tagTypes: ["pinnedMessage", "recentMessage"],
27058
+ tagTypes: ["pinnedMessages", "recentMessages"],
27059
27059
  endpoints: (builder) => ({
27060
27060
  getPinnedMessages: builder.query({
27061
27061
  ...buildEndpointFromAxdService(AiMentorService.aiMentorOrgsUsersPinMessageList),
27062
- providesTags: ["pinnedMessage"],
27062
+ providesTags: ["pinnedMessages"],
27063
27063
  }),
27064
27064
  addPinnedMessage: builder.mutation({
27065
27065
  ...buildEndpointFromAxdService(AiMentorService.aiMentorOrgsUsersPinMessageCreate),
27066
+ invalidatesTags: ["pinnedMessages"],
27066
27067
  }),
27067
27068
  getVectorDocuments: builder.query({
27068
27069
  ...buildEndpointFromAxdService(AiMentorService.aiMentorOrgsUsersCleanVectorResultsList),
27069
27070
  }),
27071
+ getRecentMessage: builder.query({
27072
+ ...buildEndpointFromAxdService(AiMentorService.aiMentorOrgsUsersRecentMessagesRetrieve),
27073
+ }),
27070
27074
  }),
27071
27075
  });
27072
- const { useGetPinnedMessagesQuery, useAddPinnedMessageMutation, useLazyGetVectorDocumentsQuery, } = chatApiSlice;
27076
+ const { useLazyGetPinnedMessagesQuery, useGetPinnedMessagesQuery, useAddPinnedMessageMutation, useGetVectorDocumentsQuery, useLazyGetVectorDocumentsQuery, useGetRecentMessageQuery, useLazyGetRecentMessageQuery, } = chatApiSlice;
27073
27077
 
27074
27078
  const llmsApiSlice = react.createApi({
27075
27079
  reducerPath: "llmsApiSlice",
@@ -27379,6 +27383,7 @@ const mentorReducer = {
27379
27383
  [tenantApiSlice.reducerPath]: tenantApiSlice.reducer,
27380
27384
  [userApiSlice.reducerPath]: userApiSlice.reducer,
27381
27385
  [platformApiSlice.reducerPath]: platformApiSlice.reducer,
27386
+ [chatApiSlice.reducerPath]: chatApiSlice.reducer,
27382
27387
  [apiKeysApiSlice.reducerPath]: apiKeysApiSlice.reducer,
27383
27388
  [llmsApiSlice.reducerPath]: llmsApiSlice.reducer,
27384
27389
  [toolsApiSlice.reducerPath]: toolsApiSlice.reducer,
@@ -27403,6 +27408,7 @@ const mentorMiddleware = [
27403
27408
  promptsApiSlice.middleware,
27404
27409
  credentialsApiSlice.middleware,
27405
27410
  userInvitationsApiSlice.middleware,
27411
+ chatApiSlice.middleware,
27406
27412
  ];
27407
27413
 
27408
27414
  const initializeDataLayer = (dmUrl, axdUrl, lmsUrl, storageService) => {
@@ -27466,6 +27472,7 @@ exports.useGetMentorsQuery = useGetMentorsQuery;
27466
27472
  exports.useGetPinnedMessagesQuery = useGetPinnedMessagesQuery;
27467
27473
  exports.useGetPromptCategoriesQuery = useGetPromptCategoriesQuery;
27468
27474
  exports.useGetPromptsQuery = useGetPromptsQuery;
27475
+ exports.useGetRecentMessageQuery = useGetRecentMessageQuery;
27469
27476
  exports.useGetReportedSkillsQuery = useGetReportedSkillsQuery;
27470
27477
  exports.useGetSkillsPointsPercentileQuery = useGetSkillsPointsPercentileQuery;
27471
27478
  exports.useGetTenantMetadataQuery = useGetTenantMetadataQuery;
@@ -27474,6 +27481,7 @@ exports.useGetUserCredentialsQuery = useGetUserCredentialsQuery;
27474
27481
  exports.useGetUserInvitationsQuery = useGetUserInvitationsQuery;
27475
27482
  exports.useGetUserMetadataQuery = useGetUserMetadataQuery;
27476
27483
  exports.useGetUserTenantsQuery = useGetUserTenantsQuery;
27484
+ exports.useGetVectorDocumentsQuery = useGetVectorDocumentsQuery;
27477
27485
  exports.useInviteUserMutation = useInviteUserMutation;
27478
27486
  exports.useLazyGetApiKeysQuery = useLazyGetApiKeysQuery;
27479
27487
  exports.useLazyGetChatHistoryExportStatusQuery = useLazyGetChatHistoryExportStatusQuery;
@@ -27487,8 +27495,10 @@ exports.useLazyGetMentorDetailsQuery = useLazyGetMentorDetailsQuery;
27487
27495
  exports.useLazyGetMentorPublicSettingsQuery = useLazyGetMentorPublicSettingsQuery;
27488
27496
  exports.useLazyGetMentorSettingsQuery = useLazyGetMentorSettingsQuery;
27489
27497
  exports.useLazyGetMentorsQuery = useLazyGetMentorsQuery;
27498
+ exports.useLazyGetPinnedMessagesQuery = useLazyGetPinnedMessagesQuery;
27490
27499
  exports.useLazyGetPromptCategoriesQuery = useLazyGetPromptCategoriesQuery;
27491
27500
  exports.useLazyGetPromptsQuery = useLazyGetPromptsQuery;
27501
+ exports.useLazyGetRecentMessageQuery = useLazyGetRecentMessageQuery;
27492
27502
  exports.useLazyGetReportedSkillsQuery = useLazyGetReportedSkillsQuery;
27493
27503
  exports.useLazyGetSkillsPointsPercentileQuery = useLazyGetSkillsPointsPercentileQuery;
27494
27504
  exports.useLazyGetTenantMetadataQuery = useLazyGetTenantMetadataQuery;