@iblai/data-layer 1.7.0 → 1.7.2
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 +1208 -1200
- package/dist/index.esm.js +13 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +13 -1
- package/dist/index.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/src/features/chat/api-slice.d.ts +25 -16
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -39468,7 +39468,19 @@ const chatApiSlice = createApi({
|
|
|
39468
39468
|
providesTags: ['pinnedMessages'],
|
|
39469
39469
|
}),
|
|
39470
39470
|
unPinMessage: builder.mutation({
|
|
39471
|
-
|
|
39471
|
+
// The generated `aiMentorOrgsUsersPinMessageDestroy` only sends org/user
|
|
39472
|
+
// path params and omits the body, but the DELETE pin-message endpoint
|
|
39473
|
+
// needs `{ session_id }` to know which pinned message to remove.
|
|
39474
|
+
queryFn: async (args, api, extraOptions) => {
|
|
39475
|
+
const url = `/api/ai-mentor/orgs/${args.org}/users/${args.userId}/pin-message/`;
|
|
39476
|
+
return iblFetchBaseQuery({
|
|
39477
|
+
url,
|
|
39478
|
+
method: 'DELETE',
|
|
39479
|
+
body: args.requestBody,
|
|
39480
|
+
service: SERVICES.DM,
|
|
39481
|
+
}, api, extraOptions);
|
|
39482
|
+
},
|
|
39483
|
+
invalidatesTags: ['pinnedMessages'],
|
|
39472
39484
|
}),
|
|
39473
39485
|
addPinnedMessage: builder.mutation({
|
|
39474
39486
|
...buildEndpointFromDmService(AiMentorService.aiMentorOrgsUsersPinMessageCreate),
|