@iblai/data-layer 1.5.8 → 1.5.11
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 +2360 -3
- package/dist/index.esm.js +84 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +96 -0
- package/dist/index.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/src/features/periodic-agents/api-slice.d.ts +2347 -0
- package/dist/src/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -44345,6 +44345,87 @@ exports.recommendationPromptTypeEnum = void 0;
|
|
|
44345
44345
|
recommendationPromptTypeEnum["catalog"] = "catalog";
|
|
44346
44346
|
})(exports.recommendationPromptTypeEnum || (exports.recommendationPromptTypeEnum = {}));
|
|
44347
44347
|
|
|
44348
|
+
const encodePathSegment = (value) => encodeURIComponent(value);
|
|
44349
|
+
const periodicAgentsListPath = ({ org, userId }) => `/api/ai-mentor/orgs/${encodePathSegment(org)}/users/${encodePathSegment(userId)}/periodic-agents/`;
|
|
44350
|
+
const periodicAgentsListParams = ({ enabled, mentorId, ordering, page, pageSize, parentMentorId, parentSessionId, previousAgent, previousAgentStatus, search, status, title, username, startDate, endDate, }) => ({
|
|
44351
|
+
enabled,
|
|
44352
|
+
mentor_id: mentorId,
|
|
44353
|
+
ordering,
|
|
44354
|
+
page,
|
|
44355
|
+
page_size: pageSize,
|
|
44356
|
+
parent_mentor_id: parentMentorId,
|
|
44357
|
+
parent_session_id: parentSessionId,
|
|
44358
|
+
previous_agent: previousAgent,
|
|
44359
|
+
previous_agent_status: previousAgentStatus,
|
|
44360
|
+
search,
|
|
44361
|
+
status,
|
|
44362
|
+
title,
|
|
44363
|
+
username,
|
|
44364
|
+
start_date: startDate,
|
|
44365
|
+
end_date: endDate,
|
|
44366
|
+
});
|
|
44367
|
+
const periodicAgentsApiSlice = react.createApi({
|
|
44368
|
+
reducerPath: 'periodicAgentsApiSlice',
|
|
44369
|
+
baseQuery: iblFakeBaseQuery,
|
|
44370
|
+
tagTypes: ['periodicAgents', 'periodicAgent', 'periodicAgentLogs'],
|
|
44371
|
+
endpoints: (builder) => ({
|
|
44372
|
+
getPeriodicAgents: builder.query({
|
|
44373
|
+
async queryFn(args, api, extraOptions) {
|
|
44374
|
+
try {
|
|
44375
|
+
const result = await iblFetchBaseQuery({
|
|
44376
|
+
url: periodicAgentsListPath(args),
|
|
44377
|
+
service: exports.SERVICES.DM,
|
|
44378
|
+
params: periodicAgentsListParams(args),
|
|
44379
|
+
}, api, extraOptions);
|
|
44380
|
+
if ('error' in result) {
|
|
44381
|
+
return { error: result.error };
|
|
44382
|
+
}
|
|
44383
|
+
return { data: result.data };
|
|
44384
|
+
}
|
|
44385
|
+
catch (error) {
|
|
44386
|
+
return { error: error };
|
|
44387
|
+
}
|
|
44388
|
+
},
|
|
44389
|
+
providesTags: ['periodicAgents'],
|
|
44390
|
+
}),
|
|
44391
|
+
getPeriodicAgent: builder.query({
|
|
44392
|
+
...buildEndpointFromDmService(AiMentorService.aiMentorOrgsUsersPeriodicAgentsRetrieve),
|
|
44393
|
+
providesTags: (_result, _error, arg) => [{ type: 'periodicAgent', id: arg.id }],
|
|
44394
|
+
}),
|
|
44395
|
+
createPeriodicAgent: builder.mutation({
|
|
44396
|
+
...buildEndpointFromDmService(AiMentorService.aiMentorOrgsUsersPeriodicAgentsCreate),
|
|
44397
|
+
invalidatesTags: ['periodicAgents'],
|
|
44398
|
+
}),
|
|
44399
|
+
updatePeriodicAgent: builder.mutation({
|
|
44400
|
+
...buildEndpointFromDmService(AiMentorService.aiMentorOrgsUsersPeriodicAgentsUpdate),
|
|
44401
|
+
invalidatesTags: (_result, _error, arg) => [
|
|
44402
|
+
'periodicAgents',
|
|
44403
|
+
{ type: 'periodicAgent', id: arg.id },
|
|
44404
|
+
],
|
|
44405
|
+
}),
|
|
44406
|
+
partialUpdatePeriodicAgent: builder.mutation({
|
|
44407
|
+
...buildEndpointFromDmService(AiMentorService.aiMentorOrgsUsersPeriodicAgentsPartialUpdate),
|
|
44408
|
+
invalidatesTags: (_result, _error, arg) => [
|
|
44409
|
+
'periodicAgents',
|
|
44410
|
+
{ type: 'periodicAgent', id: arg.id },
|
|
44411
|
+
],
|
|
44412
|
+
}),
|
|
44413
|
+
deletePeriodicAgent: builder.mutation({
|
|
44414
|
+
...buildEndpointFromDmService(AiMentorService.aiMentorOrgsUsersPeriodicAgentsDestroy),
|
|
44415
|
+
invalidatesTags: ['periodicAgents'],
|
|
44416
|
+
}),
|
|
44417
|
+
getPeriodicAgentLogs: builder.query({
|
|
44418
|
+
...buildEndpointFromDmService(AiMentorService.aiMentorOrgsUsersPeriodicAgentLogsRetrieve),
|
|
44419
|
+
providesTags: (_result, _error, arg) => [{ type: 'periodicAgentLogs', id: arg.id }],
|
|
44420
|
+
}),
|
|
44421
|
+
getPeriodicAgentLogsList: builder.query({
|
|
44422
|
+
...buildEndpointFromDmService(AiMentorService.aiMentorOrgsUsersPeriodicAgentLogsList),
|
|
44423
|
+
providesTags: ['periodicAgentLogs'],
|
|
44424
|
+
}),
|
|
44425
|
+
}),
|
|
44426
|
+
});
|
|
44427
|
+
const { useGetPeriodicAgentsQuery, useLazyGetPeriodicAgentsQuery, useGetPeriodicAgentQuery, useLazyGetPeriodicAgentQuery, useCreatePeriodicAgentMutation, useUpdatePeriodicAgentMutation, usePartialUpdatePeriodicAgentMutation, useDeletePeriodicAgentMutation, useGetPeriodicAgentLogsQuery, useLazyGetPeriodicAgentLogsQuery, useGetPeriodicAgentLogsListQuery, useLazyGetPeriodicAgentLogsListQuery, } = periodicAgentsApiSlice;
|
|
44428
|
+
|
|
44348
44429
|
const PROJECTS_CUSTOM_REDUCER_PATH = "projectsCustomApiSlice";
|
|
44349
44430
|
const PROJECTS_CUSTOM_ENDPOINTS = {
|
|
44350
44431
|
// User routes
|
|
@@ -45019,6 +45100,7 @@ const mentorReducer = {
|
|
|
45019
45100
|
[customDomainApiSlice.reducerPath]: customDomainApiSlice.reducer,
|
|
45020
45101
|
[careerApiSlice.reducerPath]: careerApiSlice.reducer,
|
|
45021
45102
|
[customAiSearchApiSlice.reducerPath]: customAiSearchApiSlice.reducer,
|
|
45103
|
+
[periodicAgentsApiSlice.reducerPath]: periodicAgentsApiSlice.reducer,
|
|
45022
45104
|
[artifactsApiSlice.reducerPath]: artifactsApiSlice.reducer,
|
|
45023
45105
|
[coreFakeCustomPublicImageAssetApiSlice.reducerPath]: coreFakeCustomPublicImageAssetApiSlice.reducer,
|
|
45024
45106
|
[billingCustomSlice.reducerPath]: billingCustomSlice.reducer,
|
|
@@ -45071,6 +45153,7 @@ const mentorMiddleware = [
|
|
|
45071
45153
|
customDomainApiSlice.middleware,
|
|
45072
45154
|
careerApiSlice.middleware,
|
|
45073
45155
|
customAiSearchApiSlice.middleware,
|
|
45156
|
+
periodicAgentsApiSlice.middleware,
|
|
45074
45157
|
artifactsApiSlice.middleware,
|
|
45075
45158
|
coreFakeCustomPublicImageAssetApiSlice.middleware,
|
|
45076
45159
|
billingCustomSlice.middleware,
|
|
@@ -45294,6 +45377,7 @@ exports.monetizationApiSlice = monetizationApiSlice;
|
|
|
45294
45377
|
exports.notificationsApiSlice = notificationsApiSlice;
|
|
45295
45378
|
exports.notificationsCustomApiSlice = notificationsCustomApiSlice;
|
|
45296
45379
|
exports.perLearnerApiSlice = perLearnerApiSlice;
|
|
45380
|
+
exports.periodicAgentsApiSlice = periodicAgentsApiSlice;
|
|
45297
45381
|
exports.platformApiReducer = platformApiReducer;
|
|
45298
45382
|
exports.platformApiSlice = platformApiSlice;
|
|
45299
45383
|
exports.platformCustomApiSlice = platformCustomApiSlice;
|
|
@@ -45362,6 +45446,7 @@ exports.useCreateMentorSkillAssignmentMutation = useCreateMentorSkillAssignmentM
|
|
|
45362
45446
|
exports.useCreateNotificationPreviewMutation = useCreateNotificationPreviewMutation;
|
|
45363
45447
|
exports.useCreateOrUpdateUserDesiredSkillMutation = useCreateOrUpdateUserDesiredSkillMutation;
|
|
45364
45448
|
exports.useCreateOrUpdateUserReportedSkillMutation = useCreateOrUpdateUserReportedSkillMutation;
|
|
45449
|
+
exports.useCreatePeriodicAgentMutation = useCreatePeriodicAgentMutation;
|
|
45365
45450
|
exports.useCreatePlatformImageAssetMutation = useCreatePlatformImageAssetMutation;
|
|
45366
45451
|
exports.useCreatePlatformUserGroupMutation = useCreatePlatformUserGroupMutation;
|
|
45367
45452
|
exports.useCreatePriceMutation = useCreatePriceMutation;
|
|
@@ -45409,6 +45494,7 @@ exports.useDeleteMentorMutation = useDeleteMentorMutation;
|
|
|
45409
45494
|
exports.useDeleteMentorSkillAssignmentMutation = useDeleteMentorSkillAssignmentMutation;
|
|
45410
45495
|
exports.useDeleteMessageMutation = useDeleteMessageMutation;
|
|
45411
45496
|
exports.useDeleteModerationLogMutation = useDeleteModerationLogMutation;
|
|
45497
|
+
exports.useDeletePeriodicAgentMutation = useDeletePeriodicAgentMutation;
|
|
45412
45498
|
exports.useDeletePlatformConfigurationMutation = useDeletePlatformConfigurationMutation;
|
|
45413
45499
|
exports.useDeletePlatformImageAssetMutation = useDeletePlatformImageAssetMutation;
|
|
45414
45500
|
exports.useDeletePlatformUserGroupMutation = useDeletePlatformUserGroupMutation;
|
|
@@ -45537,6 +45623,10 @@ exports.useGetPathwayListQuery = useGetPathwayListQuery;
|
|
|
45537
45623
|
exports.useGetPaywallConfigQuery = useGetPaywallConfigQuery;
|
|
45538
45624
|
exports.useGetPerLearnerActivityQuery = useGetPerLearnerActivityQuery;
|
|
45539
45625
|
exports.useGetPerLearnerInfoQuery = useGetPerLearnerInfoQuery;
|
|
45626
|
+
exports.useGetPeriodicAgentLogsListQuery = useGetPeriodicAgentLogsListQuery;
|
|
45627
|
+
exports.useGetPeriodicAgentLogsQuery = useGetPeriodicAgentLogsQuery;
|
|
45628
|
+
exports.useGetPeriodicAgentQuery = useGetPeriodicAgentQuery;
|
|
45629
|
+
exports.useGetPeriodicAgentsQuery = useGetPeriodicAgentsQuery;
|
|
45540
45630
|
exports.useGetPersonnalizedMentorsQuery = useGetPersonnalizedMentorsQuery;
|
|
45541
45631
|
exports.useGetPersonnalizedSearchQuery = useGetPersonnalizedSearchQuery;
|
|
45542
45632
|
exports.useGetPinnedMessagesQuery = useGetPinnedMessagesQuery;
|
|
@@ -45724,6 +45814,10 @@ exports.useLazyGetPathwayListQuery = useLazyGetPathwayListQuery;
|
|
|
45724
45814
|
exports.useLazyGetPaywallConfigQuery = useLazyGetPaywallConfigQuery;
|
|
45725
45815
|
exports.useLazyGetPerLearnerActivityQuery = useLazyGetPerLearnerActivityQuery;
|
|
45726
45816
|
exports.useLazyGetPerLearnerInfoQuery = useLazyGetPerLearnerInfoQuery;
|
|
45817
|
+
exports.useLazyGetPeriodicAgentLogsListQuery = useLazyGetPeriodicAgentLogsListQuery;
|
|
45818
|
+
exports.useLazyGetPeriodicAgentLogsQuery = useLazyGetPeriodicAgentLogsQuery;
|
|
45819
|
+
exports.useLazyGetPeriodicAgentQuery = useLazyGetPeriodicAgentQuery;
|
|
45820
|
+
exports.useLazyGetPeriodicAgentsQuery = useLazyGetPeriodicAgentsQuery;
|
|
45727
45821
|
exports.useLazyGetPersonnalizedMentorsQuery = useLazyGetPersonnalizedMentorsQuery;
|
|
45728
45822
|
exports.useLazyGetPersonnalizedSearchQuery = useLazyGetPersonnalizedSearchQuery;
|
|
45729
45823
|
exports.useLazyGetPinnedMessagesQuery = useLazyGetPinnedMessagesQuery;
|
|
@@ -45817,6 +45911,7 @@ exports.useListSubscribersQuery = useListSubscribersQuery;
|
|
|
45817
45911
|
exports.useMarkAllAsReadMutation = useMarkAllAsReadMutation;
|
|
45818
45912
|
exports.useOauthFindMutation = useOauthFindMutation;
|
|
45819
45913
|
exports.usePartialUpdateMCPServerMutation = usePartialUpdateMCPServerMutation;
|
|
45914
|
+
exports.usePartialUpdatePeriodicAgentMutation = usePartialUpdatePeriodicAgentMutation;
|
|
45820
45915
|
exports.usePartialUpdateRbacRoleMutation = usePartialUpdateRbacRoleMutation;
|
|
45821
45916
|
exports.usePatchMCPServerConnectionMutation = usePatchMCPServerConnectionMutation;
|
|
45822
45917
|
exports.usePatchWorkflowMutation = usePatchWorkflowMutation;
|
|
@@ -45869,6 +45964,7 @@ exports.useUpdateMentorMemoryMutation = useUpdateMentorMemoryMutation;
|
|
|
45869
45964
|
exports.useUpdateMentorSkillAssignmentMutation = useUpdateMentorSkillAssignmentMutation;
|
|
45870
45965
|
exports.useUpdateMessageFeedbackMutation = useUpdateMessageFeedbackMutation;
|
|
45871
45966
|
exports.useUpdatePaywallMutation = useUpdatePaywallMutation;
|
|
45967
|
+
exports.useUpdatePeriodicAgentMutation = useUpdatePeriodicAgentMutation;
|
|
45872
45968
|
exports.useUpdatePlatformImageAssetMutation = useUpdatePlatformImageAssetMutation;
|
|
45873
45969
|
exports.useUpdatePlatformInfoMutation = useUpdatePlatformInfoMutation;
|
|
45874
45970
|
exports.useUpdatePlatformMembershipMutation = useUpdatePlatformMembershipMutation;
|