Locally built some buttons + actions for each method and confirmed that when I triggered the actions the client db communites table was correctly being modified
For reference, here is the local code with the callbacks that dispatch the actions to my community reducer (The community reducer will be introduced in subsequent diff)
```
const TEST_COMMUNITY_1: CommunityInfo = {
enabledApps: {
calendar: false,
wiki: false,
tasks: true,
files: true,
},
};
const TEST_COMMUNITY_2: CommunityInfo = {
enabledApps: {
calendar: true,
wiki: false,
tasks: false,
files: false,
},
};
await commCoreModule.processCommunityStoreOperations([
{
type: 'replace_community',
payload: {
id: '1',
communityInfo: TEST_COMMUNITY_1,
},
},
{
type: 'replace_community',
payload: {
id: '2',
communityInfo: TEST_COMMUNITY_2,
},
},
]);
const community2Updated: CommunityInfo = {
enabledApps: {
calendar: true,
wiki: true,
tasks: true,
files: true,
},
};
await commCoreModule.processCommunityStoreOperations([
{
type: 'replace_community',
payload: {
id: '2',
communityInfo: community2Updated,
},
},
]);
await commCoreModule.processCommunityStoreOperations([
{
type: 'remove_communities',
payload: {
ids: ['1'],
},
},
]);
await commCoreModule.processCommunityStoreOperations([
{
type: 'remove_all_communities',
},
]);
```