Add report stats to the `wc-api` spec.

This commit is contained in:
Jeff Stieler 2018-12-03 20:01:49 -07:00
parent cfd4462941
commit 0d6cd1a776
1 changed files with 3 additions and 0 deletions

View File

@ -5,18 +5,21 @@
*/ */
import notes from './notes'; import notes from './notes';
import orders from './orders'; import orders from './orders';
import reportStats from './reports/stats';
function createWcApiSpec() { function createWcApiSpec() {
return { return {
selectors: { selectors: {
...notes.selectors, ...notes.selectors,
...orders.selectors, ...orders.selectors,
...reportStats.selectors,
}, },
operations: { operations: {
read( resourceNames ) { read( resourceNames ) {
return [ return [
...notes.operations.read( resourceNames ), ...notes.operations.read( resourceNames ),
...orders.operations.read( resourceNames ), ...orders.operations.read( resourceNames ),
...reportStats.operations.read( resourceNames ),
]; ];
}, },
}, },