2020-02-03 10:24:25 +01:00
|
|
|
import { getAllIdsIterator } from "../indexing/allIds"
|
|
|
|
import { getAllowedRecordTypes } from "./getAllowedRecordTypes"
|
|
|
|
import { deleteCollection } from "./delete"
|
2019-07-15 08:12:52 +02:00
|
|
|
|
|
|
|
export const getCollectionApi = app => ({
|
|
|
|
getAllowedRecordTypes: getAllowedRecordTypes(app),
|
|
|
|
getAllIdsIterator: getAllIdsIterator(app),
|
|
|
|
delete: deleteCollection(app),
|
2020-02-03 10:24:25 +01:00
|
|
|
})
|
2019-07-15 08:12:52 +02:00
|
|
|
|
2020-02-03 10:24:25 +01:00
|
|
|
export default getCollectionApi
|