2018-11-29 15:57:49 +00:00
|
|
|
/** @format */
|
|
|
|
/**
|
|
|
|
* External dependencies
|
|
|
|
*/
|
2019-01-22 16:29:46 +00:00
|
|
|
import { MINUTE } from '@fresh-data/framework';
|
2018-11-29 15:57:49 +00:00
|
|
|
|
2019-09-02 03:45:56 +00:00
|
|
|
export const JETPACK_NAMESPACE = '/jetpack/v4';
|
2019-01-18 02:52:58 +00:00
|
|
|
export const NAMESPACE = '/wc/v4';
|
2019-09-02 03:45:56 +00:00
|
|
|
export const WC_ADMIN_NAMESPACE = '/wc-admin/v1';
|
2018-11-29 15:57:49 +00:00
|
|
|
|
|
|
|
export const DEFAULT_REQUIREMENT = {
|
2019-01-22 16:29:46 +00:00
|
|
|
timeout: 1 * MINUTE,
|
2019-02-14 17:23:36 +00:00
|
|
|
freshness: 30 * MINUTE,
|
2018-11-29 15:57:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
// WordPress & WooCommerce both set a hard limit of 100 for the per_page parameter
|
|
|
|
export const MAX_PER_PAGE = 100;
|
|
|
|
|
2019-03-22 08:48:20 +00:00
|
|
|
export const DEFAULT_ACTIONABLE_STATUSES = [ 'processing', 'on-hold' ];
|
|
|
|
|
2018-11-29 15:57:49 +00:00
|
|
|
export const QUERY_DEFAULTS = {
|
|
|
|
pageSize: 25,
|
|
|
|
period: 'month',
|
|
|
|
compare: 'previous_year',
|
|
|
|
};
|