Add customers endpoint to wc-api operations (https://github.com/woocommerce/woocommerce-admin/pull/1061)
This commit is contained in:
parent
62c9a952a1
commit
8ad6ce9f06
|
@ -17,7 +17,7 @@ import { NAMESPACE } from '../../constants';
|
||||||
import { SWAGGERNAMESPACE } from 'store/constants';
|
import { SWAGGERNAMESPACE } from 'store/constants';
|
||||||
|
|
||||||
// TODO: Remove once swagger endpoints are phased out.
|
// TODO: Remove once swagger endpoints are phased out.
|
||||||
const swaggerEndpoints = [ 'categories', 'coupons', 'taxes' ];
|
const swaggerEndpoints = [ 'categories', 'coupons', 'customers', 'taxes' ];
|
||||||
|
|
||||||
const typeEndpointMap = {
|
const typeEndpointMap = {
|
||||||
'report-items-query-orders': 'orders',
|
'report-items-query-orders': 'orders',
|
||||||
|
@ -27,6 +27,7 @@ const typeEndpointMap = {
|
||||||
'report-items-query-coupons': 'coupons',
|
'report-items-query-coupons': 'coupons',
|
||||||
'report-items-query-taxes': 'taxes',
|
'report-items-query-taxes': 'taxes',
|
||||||
'report-items-query-variations': 'variations',
|
'report-items-query-variations': 'variations',
|
||||||
|
'report-items-query-customers': 'customers',
|
||||||
};
|
};
|
||||||
|
|
||||||
function read( resourceNames, fetch = apiFetch ) {
|
function read( resourceNames, fetch = apiFetch ) {
|
||||||
|
|
Loading…
Reference in New Issue