@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.js
CHANGED
|
@@ -39470,7 +39470,19 @@ const chatApiSlice = react.createApi({
|
|
|
39470
39470
|
providesTags: ['pinnedMessages'],
|
|
39471
39471
|
}),
|
|
39472
39472
|
unPinMessage: builder.mutation({
|
|
39473
|
-
|
|
39473
|
+
// The generated `aiMentorOrgsUsersPinMessageDestroy` only sends org/user
|
|
39474
|
+
// path params and omits the body, but the DELETE pin-message endpoint
|
|
39475
|
+
// needs `{ session_id }` to know which pinned message to remove.
|
|
39476
|
+
queryFn: async (args, api, extraOptions) => {
|
|
39477
|
+
const url = `/api/ai-mentor/orgs/${args.org}/users/${args.userId}/pin-message/`;
|
|
39478
|
+
return iblFetchBaseQuery({
|
|
39479
|
+
url,
|
|
39480
|
+
method: 'DELETE',
|
|
39481
|
+
body: args.requestBody,
|
|
39482
|
+
service: exports.SERVICES.DM,
|
|
39483
|
+
}, api, extraOptions);
|
|
39484
|
+
},
|
|
39485
|
+
invalidatesTags: ['pinnedMessages'],
|
|
39474
39486
|
}),
|
|
39475
39487
|
addPinnedMessage: builder.mutation({
|
|
39476
39488
|
...buildEndpointFromDmService(AiMentorService.aiMentorOrgsUsersPinMessageCreate),
|