2018-11-29 15:57:49 +00:00
|
|
|
/**
|
|
|
|
* 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-11-12 18:15:55 +00:00
|
|
|
export const NAMESPACE = '/wc-analytics';
|
|
|
|
export const WC_ADMIN_NAMESPACE = '/wc-admin';
|
2019-10-03 16:03:29 +00:00
|
|
|
export const WCS_NAMESPACE = '/wc/v1'; // WCS endpoints like Stripe are not avaiable on later /wc versions
|
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',
|
2020-05-28 08:52:25 +00:00
|
|
|
noteTypes: 'info,warning,marketing',
|
2018-11-29 15:57:49 +00:00
|
|
|
};
|