@iblai/data-layer 1.5.7 → 1.5.10

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.js CHANGED
@@ -44345,6 +44345,53 @@ exports.recommendationPromptTypeEnum = void 0;
44345
44345
  recommendationPromptTypeEnum["catalog"] = "catalog";
44346
44346
  })(exports.recommendationPromptTypeEnum || (exports.recommendationPromptTypeEnum = {}));
44347
44347
 
44348
+ const periodicAgentsApiSlice = react.createApi({
44349
+ reducerPath: 'periodicAgentsApiSlice',
44350
+ baseQuery: iblFakeBaseQuery,
44351
+ tagTypes: ['periodicAgents', 'periodicAgent', 'periodicAgentLogs'],
44352
+ endpoints: (builder) => ({
44353
+ getPeriodicAgents: builder.query({
44354
+ ...buildEndpointFromDmService(AiMentorService.aiMentorOrgsUsersPeriodicAgentsList),
44355
+ providesTags: ['periodicAgents'],
44356
+ }),
44357
+ getPeriodicAgent: builder.query({
44358
+ ...buildEndpointFromDmService(AiMentorService.aiMentorOrgsUsersPeriodicAgentsRetrieve),
44359
+ providesTags: (_result, _error, arg) => [{ type: 'periodicAgent', id: arg.id }],
44360
+ }),
44361
+ createPeriodicAgent: builder.mutation({
44362
+ ...buildEndpointFromDmService(AiMentorService.aiMentorOrgsUsersPeriodicAgentsCreate),
44363
+ invalidatesTags: ['periodicAgents'],
44364
+ }),
44365
+ updatePeriodicAgent: builder.mutation({
44366
+ ...buildEndpointFromDmService(AiMentorService.aiMentorOrgsUsersPeriodicAgentsUpdate),
44367
+ invalidatesTags: (_result, _error, arg) => [
44368
+ 'periodicAgents',
44369
+ { type: 'periodicAgent', id: arg.id },
44370
+ ],
44371
+ }),
44372
+ partialUpdatePeriodicAgent: builder.mutation({
44373
+ ...buildEndpointFromDmService(AiMentorService.aiMentorOrgsUsersPeriodicAgentsPartialUpdate),
44374
+ invalidatesTags: (_result, _error, arg) => [
44375
+ 'periodicAgents',
44376
+ { type: 'periodicAgent', id: arg.id },
44377
+ ],
44378
+ }),
44379
+ deletePeriodicAgent: builder.mutation({
44380
+ ...buildEndpointFromDmService(AiMentorService.aiMentorOrgsUsersPeriodicAgentsDestroy),
44381
+ invalidatesTags: ['periodicAgents'],
44382
+ }),
44383
+ getPeriodicAgentLogs: builder.query({
44384
+ ...buildEndpointFromDmService(AiMentorService.aiMentorOrgsUsersPeriodicAgentLogsRetrieve),
44385
+ providesTags: (_result, _error, arg) => [{ type: 'periodicAgentLogs', id: arg.id }],
44386
+ }),
44387
+ getPeriodicAgentLogsList: builder.query({
44388
+ ...buildEndpointFromDmService(AiMentorService.aiMentorOrgsUsersPeriodicAgentLogsList),
44389
+ providesTags: ['periodicAgentLogs'],
44390
+ }),
44391
+ }),
44392
+ });
44393
+ const { useGetPeriodicAgentsQuery, useLazyGetPeriodicAgentsQuery, useGetPeriodicAgentQuery, useLazyGetPeriodicAgentQuery, useCreatePeriodicAgentMutation, useUpdatePeriodicAgentMutation, usePartialUpdatePeriodicAgentMutation, useDeletePeriodicAgentMutation, useGetPeriodicAgentLogsQuery, useLazyGetPeriodicAgentLogsQuery, useGetPeriodicAgentLogsListQuery, useLazyGetPeriodicAgentLogsListQuery, } = periodicAgentsApiSlice;
44394
+
44348
44395
  const PROJECTS_CUSTOM_REDUCER_PATH = "projectsCustomApiSlice";
44349
44396
  const PROJECTS_CUSTOM_ENDPOINTS = {
44350
44397
  // User routes
@@ -45019,6 +45066,7 @@ const mentorReducer = {
45019
45066
  [customDomainApiSlice.reducerPath]: customDomainApiSlice.reducer,
45020
45067
  [careerApiSlice.reducerPath]: careerApiSlice.reducer,
45021
45068
  [customAiSearchApiSlice.reducerPath]: customAiSearchApiSlice.reducer,
45069
+ [periodicAgentsApiSlice.reducerPath]: periodicAgentsApiSlice.reducer,
45022
45070
  [artifactsApiSlice.reducerPath]: artifactsApiSlice.reducer,
45023
45071
  [coreFakeCustomPublicImageAssetApiSlice.reducerPath]: coreFakeCustomPublicImageAssetApiSlice.reducer,
45024
45072
  [billingCustomSlice.reducerPath]: billingCustomSlice.reducer,
@@ -45071,6 +45119,7 @@ const mentorMiddleware = [
45071
45119
  customDomainApiSlice.middleware,
45072
45120
  careerApiSlice.middleware,
45073
45121
  customAiSearchApiSlice.middleware,
45122
+ periodicAgentsApiSlice.middleware,
45074
45123
  artifactsApiSlice.middleware,
45075
45124
  coreFakeCustomPublicImageAssetApiSlice.middleware,
45076
45125
  billingCustomSlice.middleware,
@@ -45294,6 +45343,7 @@ exports.monetizationApiSlice = monetizationApiSlice;
45294
45343
  exports.notificationsApiSlice = notificationsApiSlice;
45295
45344
  exports.notificationsCustomApiSlice = notificationsCustomApiSlice;
45296
45345
  exports.perLearnerApiSlice = perLearnerApiSlice;
45346
+ exports.periodicAgentsApiSlice = periodicAgentsApiSlice;
45297
45347
  exports.platformApiReducer = platformApiReducer;
45298
45348
  exports.platformApiSlice = platformApiSlice;
45299
45349
  exports.platformCustomApiSlice = platformCustomApiSlice;
@@ -45362,6 +45412,7 @@ exports.useCreateMentorSkillAssignmentMutation = useCreateMentorSkillAssignmentM
45362
45412
  exports.useCreateNotificationPreviewMutation = useCreateNotificationPreviewMutation;
45363
45413
  exports.useCreateOrUpdateUserDesiredSkillMutation = useCreateOrUpdateUserDesiredSkillMutation;
45364
45414
  exports.useCreateOrUpdateUserReportedSkillMutation = useCreateOrUpdateUserReportedSkillMutation;
45415
+ exports.useCreatePeriodicAgentMutation = useCreatePeriodicAgentMutation;
45365
45416
  exports.useCreatePlatformImageAssetMutation = useCreatePlatformImageAssetMutation;
45366
45417
  exports.useCreatePlatformUserGroupMutation = useCreatePlatformUserGroupMutation;
45367
45418
  exports.useCreatePriceMutation = useCreatePriceMutation;
@@ -45409,6 +45460,7 @@ exports.useDeleteMentorMutation = useDeleteMentorMutation;
45409
45460
  exports.useDeleteMentorSkillAssignmentMutation = useDeleteMentorSkillAssignmentMutation;
45410
45461
  exports.useDeleteMessageMutation = useDeleteMessageMutation;
45411
45462
  exports.useDeleteModerationLogMutation = useDeleteModerationLogMutation;
45463
+ exports.useDeletePeriodicAgentMutation = useDeletePeriodicAgentMutation;
45412
45464
  exports.useDeletePlatformConfigurationMutation = useDeletePlatformConfigurationMutation;
45413
45465
  exports.useDeletePlatformImageAssetMutation = useDeletePlatformImageAssetMutation;
45414
45466
  exports.useDeletePlatformUserGroupMutation = useDeletePlatformUserGroupMutation;
@@ -45537,6 +45589,10 @@ exports.useGetPathwayListQuery = useGetPathwayListQuery;
45537
45589
  exports.useGetPaywallConfigQuery = useGetPaywallConfigQuery;
45538
45590
  exports.useGetPerLearnerActivityQuery = useGetPerLearnerActivityQuery;
45539
45591
  exports.useGetPerLearnerInfoQuery = useGetPerLearnerInfoQuery;
45592
+ exports.useGetPeriodicAgentLogsListQuery = useGetPeriodicAgentLogsListQuery;
45593
+ exports.useGetPeriodicAgentLogsQuery = useGetPeriodicAgentLogsQuery;
45594
+ exports.useGetPeriodicAgentQuery = useGetPeriodicAgentQuery;
45595
+ exports.useGetPeriodicAgentsQuery = useGetPeriodicAgentsQuery;
45540
45596
  exports.useGetPersonnalizedMentorsQuery = useGetPersonnalizedMentorsQuery;
45541
45597
  exports.useGetPersonnalizedSearchQuery = useGetPersonnalizedSearchQuery;
45542
45598
  exports.useGetPinnedMessagesQuery = useGetPinnedMessagesQuery;
@@ -45724,6 +45780,10 @@ exports.useLazyGetPathwayListQuery = useLazyGetPathwayListQuery;
45724
45780
  exports.useLazyGetPaywallConfigQuery = useLazyGetPaywallConfigQuery;
45725
45781
  exports.useLazyGetPerLearnerActivityQuery = useLazyGetPerLearnerActivityQuery;
45726
45782
  exports.useLazyGetPerLearnerInfoQuery = useLazyGetPerLearnerInfoQuery;
45783
+ exports.useLazyGetPeriodicAgentLogsListQuery = useLazyGetPeriodicAgentLogsListQuery;
45784
+ exports.useLazyGetPeriodicAgentLogsQuery = useLazyGetPeriodicAgentLogsQuery;
45785
+ exports.useLazyGetPeriodicAgentQuery = useLazyGetPeriodicAgentQuery;
45786
+ exports.useLazyGetPeriodicAgentsQuery = useLazyGetPeriodicAgentsQuery;
45727
45787
  exports.useLazyGetPersonnalizedMentorsQuery = useLazyGetPersonnalizedMentorsQuery;
45728
45788
  exports.useLazyGetPersonnalizedSearchQuery = useLazyGetPersonnalizedSearchQuery;
45729
45789
  exports.useLazyGetPinnedMessagesQuery = useLazyGetPinnedMessagesQuery;
@@ -45817,6 +45877,7 @@ exports.useListSubscribersQuery = useListSubscribersQuery;
45817
45877
  exports.useMarkAllAsReadMutation = useMarkAllAsReadMutation;
45818
45878
  exports.useOauthFindMutation = useOauthFindMutation;
45819
45879
  exports.usePartialUpdateMCPServerMutation = usePartialUpdateMCPServerMutation;
45880
+ exports.usePartialUpdatePeriodicAgentMutation = usePartialUpdatePeriodicAgentMutation;
45820
45881
  exports.usePartialUpdateRbacRoleMutation = usePartialUpdateRbacRoleMutation;
45821
45882
  exports.usePatchMCPServerConnectionMutation = usePatchMCPServerConnectionMutation;
45822
45883
  exports.usePatchWorkflowMutation = usePatchWorkflowMutation;
@@ -45869,6 +45930,7 @@ exports.useUpdateMentorMemoryMutation = useUpdateMentorMemoryMutation;
45869
45930
  exports.useUpdateMentorSkillAssignmentMutation = useUpdateMentorSkillAssignmentMutation;
45870
45931
  exports.useUpdateMessageFeedbackMutation = useUpdateMessageFeedbackMutation;
45871
45932
  exports.useUpdatePaywallMutation = useUpdatePaywallMutation;
45933
+ exports.useUpdatePeriodicAgentMutation = useUpdatePeriodicAgentMutation;
45872
45934
  exports.useUpdatePlatformImageAssetMutation = useUpdatePlatformImageAssetMutation;
45873
45935
  exports.useUpdatePlatformInfoMutation = useUpdatePlatformInfoMutation;
45874
45936
  exports.useUpdatePlatformMembershipMutation = useUpdatePlatformMembershipMutation;