mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-02 12:08:01 +00:00
This PR introduces support for an assistant filter on the documents page. - Moved the existing assistant filter functionality to a standalone, reusable component. - Updated the documents page and responses page to use the component
21 lines
410 B
JavaScript
21 lines
410 B
JavaScript
/* global axios */
|
|
import ApiClient from '../ApiClient';
|
|
|
|
class CaptainDocument extends ApiClient {
|
|
constructor() {
|
|
super('captain/documents', { accountScoped: true });
|
|
}
|
|
|
|
get({ page = 1, searchKey, assistantId } = {}) {
|
|
return axios.get(this.url, {
|
|
params: {
|
|
page,
|
|
searchKey,
|
|
assistant_id: assistantId,
|
|
},
|
|
});
|
|
}
|
|
}
|
|
|
|
export default new CaptainDocument();
|