/** @format */ /** * Internal dependencies */ import notes from './notes'; import orders from './orders'; import reportStats from './reports/stats'; function createWcApiSpec() { return { selectors: { ...notes.selectors, ...orders.selectors, ...reportStats.selectors, }, operations: { read( resourceNames ) { return [ ...notes.operations.read( resourceNames ), ...orders.operations.read( resourceNames ), ...reportStats.operations.read( resourceNames ), ]; }, }, }; } export default createWcApiSpec();