refactor: configure cache api clients via constructor options

This commit is contained in:
Shivam Mishra
2026-06-10 12:46:10 +05:30
parent ac5b3a38c5
commit 880c5e8bf4
7 changed files with 30 additions and 86 deletions
+5 -6
View File
@@ -3,12 +3,11 @@ import CacheEnabledApiClient from './CacheEnabledApiClient';
class Inboxes extends CacheEnabledApiClient {
constructor() {
super('inboxes', { accountScoped: true });
}
// eslint-disable-next-line class-methods-use-this
get cacheModelName() {
return 'inbox';
super('inboxes', {
accountScoped: true,
cacheModel: 'inbox',
payloadEnvelope: true,
});
}
getCampaigns(inboxId) {