@iblai/data-layer 1.12.7 → 1.12.106
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 +258 -67
- package/dist/index.esm.js +26 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +26 -3
- package/dist/index.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/src/features/core/api-slice.d.ts +66 -52
- package/dist/src/features/memory/api-slice.d.ts +162 -1
- package/dist/src/features/memory/constants.d.ts +4 -0
- package/dist/src/features/memory/types.d.ts +11 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -41446,11 +41446,20 @@ const coreApiSlice = react.createApi({
|
|
|
41446
41446
|
providesTags: ['LtiMentors'],
|
|
41447
41447
|
}),
|
|
41448
41448
|
getLtiMentorDetail: builder.query({
|
|
41449
|
-
|
|
41449
|
+
// Cast to LtiAgentLink: the response carries the async-create `status`
|
|
41450
|
+
// fields the pinned generated client doesn't know about, and consumers
|
|
41451
|
+
// poll this endpoint to track link creation.
|
|
41452
|
+
...buildEndpointFromDmService((args) => CoreService.coreLti1P3ProviderLtiMentorsRetrieve(args)),
|
|
41450
41453
|
providesTags: ['LtiMentors'],
|
|
41451
41454
|
}),
|
|
41452
41455
|
createLtiMentor: builder.mutation({
|
|
41453
|
-
|
|
41456
|
+
// Synchronous creation builds an edX course and regularly outlives the
|
|
41457
|
+
// 20s DM→edX proxy timeout. `async_create: true` makes the backend
|
|
41458
|
+
// return 202 immediately with `{ id, status: 'pending' }`; poll
|
|
41459
|
+
// getLtiMentorDetail with that id until status is 'ready' or 'failed'.
|
|
41460
|
+
...buildEndpointFromDmService((args) => CoreService.coreLti1P3ProviderLtiMentorsCreate({
|
|
41461
|
+
requestBody: { ...args.requestBody, async_create: true },
|
|
41462
|
+
})),
|
|
41454
41463
|
invalidatesTags: ['LtiMentors'],
|
|
41455
41464
|
}),
|
|
41456
41465
|
updateLtiMentor: builder.mutation({
|
|
@@ -44557,6 +44566,10 @@ const MEMSEARCH_ENDPOINTS = {
|
|
|
44557
44566
|
service: exports.SERVICES.AXD,
|
|
44558
44567
|
path: (org, userId) => `/api/ai-mentor/orgs/${org}/users/${userId}/global-memories/`,
|
|
44559
44568
|
},
|
|
44569
|
+
UPDATE_GLOBAL_MEMORY: {
|
|
44570
|
+
service: exports.SERVICES.AXD,
|
|
44571
|
+
path: (org, userId, memoryId) => `/api/ai-mentor/orgs/${org}/users/${userId}/global-memories/${memoryId}/`,
|
|
44572
|
+
},
|
|
44560
44573
|
DELETE_GLOBAL_MEMORY: {
|
|
44561
44574
|
service: exports.SERVICES.AXD,
|
|
44562
44575
|
path: (org, userId, memoryId) => `/api/ai-mentor/orgs/${org}/users/${userId}/global-memories/${memoryId}/`,
|
|
@@ -44667,6 +44680,15 @@ const memoryApiSlice = react.createApi({
|
|
|
44667
44680
|
}),
|
|
44668
44681
|
invalidatesTags: MEMORY_QUERY_KEYS.MEMSEARCH_GLOBAL_MEMORIES(),
|
|
44669
44682
|
}),
|
|
44683
|
+
updateGlobalMemory: builder.mutation({
|
|
44684
|
+
query: (args) => ({
|
|
44685
|
+
url: MEMSEARCH_ENDPOINTS.UPDATE_GLOBAL_MEMORY.path(args.org, args.userId, args.memoryId),
|
|
44686
|
+
service: MEMSEARCH_ENDPOINTS.UPDATE_GLOBAL_MEMORY.service,
|
|
44687
|
+
method: 'PATCH',
|
|
44688
|
+
body: { content: args.content },
|
|
44689
|
+
}),
|
|
44690
|
+
invalidatesTags: MEMORY_QUERY_KEYS.MEMSEARCH_GLOBAL_MEMORIES(),
|
|
44691
|
+
}),
|
|
44670
44692
|
deleteGlobalMemory: builder.mutation({
|
|
44671
44693
|
query: (args) => ({
|
|
44672
44694
|
url: MEMSEARCH_ENDPOINTS.DELETE_GLOBAL_MEMORY.path(args.org, args.userId, args.memoryId),
|
|
@@ -44787,7 +44809,7 @@ const memoryApiSlice = react.createApi({
|
|
|
44787
44809
|
}),
|
|
44788
44810
|
}),
|
|
44789
44811
|
});
|
|
44790
|
-
const { useGetUserMemorySettingsQuery, useLazyGetUserMemorySettingsQuery, useUpdateUserMemorySettingsMutation, useGetGlobalMemoriesQuery, useLazyGetGlobalMemoriesQuery, useCreateGlobalMemoryMutation, useDeleteGlobalMemoryMutation, useGetMentorMemoriesQuery, useLazyGetMentorMemoriesQuery, useGetMentorMemoriesListQuery, useLazyGetMentorMemoriesListQuery, useGetAllMentorMemoriesQuery, useLazyGetAllMentorMemoriesQuery, useCreateMentorMemoryMutation, useUpdateMentorMemoryMutation, useDeleteMentorMemoryMutation, useGetMemoryCategoriesAdminQuery, useLazyGetMemoryCategoriesAdminQuery, useCreateMemoryCategoryMutation, useUpdateMemoryCategoryMutation, useDeleteMemoryCategoryMutation, useGetMemsearchConfigQuery, useLazyGetMemsearchConfigQuery, useUpdateMemsearchConfigMutation, useGetMemsearchStatusQuery, useLazyGetMemsearchStatusQuery, } = memoryApiSlice;
|
|
44812
|
+
const { useGetUserMemorySettingsQuery, useLazyGetUserMemorySettingsQuery, useUpdateUserMemorySettingsMutation, useGetGlobalMemoriesQuery, useLazyGetGlobalMemoriesQuery, useCreateGlobalMemoryMutation, useUpdateGlobalMemoryMutation, useDeleteGlobalMemoryMutation, useGetMentorMemoriesQuery, useLazyGetMentorMemoriesQuery, useGetMentorMemoriesListQuery, useLazyGetMentorMemoriesListQuery, useGetAllMentorMemoriesQuery, useLazyGetAllMentorMemoriesQuery, useCreateMentorMemoryMutation, useUpdateMentorMemoryMutation, useDeleteMentorMemoryMutation, useGetMemoryCategoriesAdminQuery, useLazyGetMemoryCategoriesAdminQuery, useCreateMemoryCategoryMutation, useUpdateMemoryCategoryMutation, useDeleteMemoryCategoryMutation, useGetMemsearchConfigQuery, useLazyGetMemsearchConfigQuery, useUpdateMemsearchConfigMutation, useGetMemsearchStatusQuery, useLazyGetMemsearchStatusQuery, } = memoryApiSlice;
|
|
44791
44813
|
|
|
44792
44814
|
const MCP_REDUCER_PATH = 'mcpApiSlice';
|
|
44793
44815
|
const MCP_ENDPOINTS = {
|
|
@@ -48929,6 +48951,7 @@ exports.useUpdateCredentialMutation = useUpdateCredentialMutation;
|
|
|
48929
48951
|
exports.useUpdateDisclaimerMutation = useUpdateDisclaimerMutation;
|
|
48930
48952
|
exports.useUpdateEvalDatasetItemMutation = useUpdateEvalDatasetItemMutation;
|
|
48931
48953
|
exports.useUpdateExamAttemptMutation = useUpdateExamAttemptMutation;
|
|
48954
|
+
exports.useUpdateGlobalMemoryMutation = useUpdateGlobalMemoryMutation;
|
|
48932
48955
|
exports.useUpdateGraderCriterionMutation = useUpdateGraderCriterionMutation;
|
|
48933
48956
|
exports.useUpdateIntegrationCredentialMutation = useUpdateIntegrationCredentialMutation;
|
|
48934
48957
|
exports.useUpdateLtiKeyMutation = useUpdateLtiKeyMutation;
|