12 lines
378 B
JavaScript
12 lines
378 B
JavaScript
|
import { getAllIdsIterator } from '../indexing/allIds';
|
||
|
import { getAllowedRecordTypes } from './getAllowedRecordTypes';
|
||
|
import { deleteCollection } from './delete';
|
||
|
|
||
|
export const getCollectionApi = app => ({
|
||
|
getAllowedRecordTypes: getAllowedRecordTypes(app),
|
||
|
getAllIdsIterator: getAllIdsIterator(app),
|
||
|
delete: deleteCollection(app),
|
||
|
});
|
||
|
|
||
|
export default getCollectionApi;
|