feat: expand idb cache to agents, canned responses, and custom attributes

This commit is contained in:
Shivam Mishra
2026-06-10 13:16:37 +05:30
parent dec5468cd5
commit 8218880424
22 changed files with 143 additions and 27 deletions
+7 -5
View File
@@ -1,13 +1,15 @@
/* global axios */
import ApiClient from './ApiClient';
import CacheEnabledApiClient from './CacheEnabledApiClient';
class AttributeAPI extends ApiClient {
class AttributeAPI extends CacheEnabledApiClient {
constructor() {
super('custom_attribute_definitions', { accountScoped: true });
super('custom_attribute_definitions', {
accountScoped: true,
cacheModel: 'custom_attribute_definition',
});
}
getAttributesByModel() {
return axios.get(this.url);
return super.get(true);
}
}