Add report stats to the `wc-api` spec.
This commit is contained in:
parent
cfd4462941
commit
0d6cd1a776
|
@ -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 ),
|
||||||
];
|
];
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue