woocommerce/plugins/woocommerce-admin/client/wc-api/wc-api-spec.js

27 lines
428 B
JavaScript

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