🔥 Common store: Clean up

This commit is contained in:
Philipp Stracker 2025-02-06 14:22:09 +01:00
parent 4f5b254452
commit 657eb9e772
No known key found for this signature in database
2 changed files with 2 additions and 13 deletions

View file

@ -17,16 +17,4 @@ export default {
// Activity management (advanced solution that replaces the isBusy state).
START_ACTIVITY: 'ppcp/common/START_ACTIVITY',
STOP_ACTIVITY: 'ppcp/common/STOP_ACTIVITY',
// Controls - always start with "DO_".
DO_PERSIST_DATA: 'ppcp/common/DO_PERSIST_DATA',
DO_DIRECT_API_AUTHENTICATION: 'ppcp/common/DO_DIRECT_API_AUTHENTICATION',
DO_OAUTH_AUTHENTICATION: 'ppcp/common/DO_OAUTH_AUTHENTICATION',
DO_DISCONNECT_MERCHANT: 'ppcp/common/DO_DISCONNECT_MERCHANT',
DO_GENERATE_ONBOARDING_URL: 'ppcp/common/DO_GENERATE_ONBOARDING_URL',
DO_REFRESH_MERCHANT: 'ppcp/common/DO_REFRESH_MERCHANT',
DO_REFRESH_FEATURES: 'ppcp/common/DO_REFRESH_FEATURES',
DO_RESUBSCRIBE_WEBHOOKS: 'ppcp/common/DO_RESUBSCRIBE_WEBHOOKS',
DO_START_WEBHOOK_SIMULATION: 'ppcp/common/DO_START_WEBHOOK_SIMULATION',
DO_CHECK_WEBHOOK_SIMULATION: 'ppcp/common/DO_CHECK_WEBHOOK_SIMULATION',
};

View file

@ -1,3 +1,5 @@
import apiFetch from '@wordpress/api-fetch';
import {
REST_CONNECTION_URL_PATH,
REST_DIRECT_AUTHENTICATION_PATH,
@ -9,7 +11,6 @@ import {
REST_WEBHOOKS,
REST_WEBHOOKS_SIMULATE,
} from './constants';
import apiFetch from '@wordpress/api-fetch';
/**
* Side effect. Saves the persistent details to the WP database.