@automattic/data-stores 3.1.1 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -1
- package/README.md +10 -9
- package/dist/cjs/add-ons/hooks/use-add-on-prices.js +3 -3
- package/dist/cjs/add-ons/hooks/use-add-on-prices.js.map +1 -1
- package/dist/cjs/add-ons/icons/custom-design.js +1 -1
- package/dist/cjs/add-ons/icons/custom-design.js.map +1 -1
- package/dist/cjs/add-ons/icons/unlimited-themes.js +1 -1
- package/dist/cjs/add-ons/icons/unlimited-themes.js.map +1 -1
- package/dist/cjs/contextual-help/admin-sections.js +2 -2
- package/dist/cjs/contextual-help/admin-sections.js.map +1 -1
- package/dist/cjs/help-center/actions.js +89 -62
- package/dist/cjs/help-center/actions.js.map +1 -1
- package/dist/cjs/help-center/index.js +13 -12
- package/dist/cjs/help-center/index.js.map +1 -1
- package/dist/cjs/help-center/reducer.js +32 -16
- package/dist/cjs/help-center/reducer.js.map +1 -1
- package/dist/cjs/help-center/resolvers.js +6 -1
- package/dist/cjs/help-center/resolvers.js.map +1 -1
- package/dist/cjs/help-center/selectors.js +11 -7
- package/dist/cjs/help-center/selectors.js.map +1 -1
- package/dist/cjs/index.js +3 -6
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/onboard/actions.js +10 -10
- package/dist/cjs/onboard/actions.js.map +1 -1
- package/dist/cjs/onboard/index.js +0 -1
- package/dist/cjs/onboard/index.js.map +1 -1
- package/dist/cjs/onboard/reducer.js +18 -16
- package/dist/cjs/onboard/reducer.js.map +1 -1
- package/dist/cjs/onboard/selectors.js +5 -5
- package/dist/cjs/onboard/selectors.js.map +1 -1
- package/dist/cjs/plans/queries/use-plans.js +20 -1
- package/dist/cjs/plans/queries/use-plans.js.map +1 -1
- package/dist/cjs/plans/resolvers.js +4 -4
- package/dist/cjs/plans/resolvers.js.map +1 -1
- package/dist/cjs/purchases/lib/assembler.js +7 -13
- package/dist/cjs/purchases/lib/assembler.js.map +1 -1
- package/dist/cjs/purchases/queries/lib/use-query-keys-factory.js +1 -0
- package/dist/cjs/purchases/queries/lib/use-query-keys-factory.js.map +1 -1
- package/dist/cjs/purchases/queries/use-get-jetpack-transferred-license-purchases.js +33 -0
- package/dist/cjs/purchases/queries/use-get-jetpack-transferred-license-purchases.js.map +1 -0
- package/dist/cjs/queries/use-launchpad.js +3 -2
- package/dist/cjs/queries/use-launchpad.js.map +1 -1
- package/dist/cjs/queries/use-site-domains-query.js.map +1 -1
- package/dist/cjs/queries/use-site-intent.js.map +1 -1
- package/dist/cjs/reader/mutations/use-site-subscribe-mutation.js +1 -1
- package/dist/cjs/reader/mutations/use-site-subscribe-mutation.js.map +1 -1
- package/dist/cjs/reader/mutations/use-site-unsubscribe-mutation.js +4 -0
- package/dist/cjs/reader/mutations/use-site-unsubscribe-mutation.js.map +1 -1
- package/dist/cjs/site/actions.js +1 -1
- package/dist/cjs/site/actions.js.map +1 -1
- package/dist/cjs/site/constants.js +2 -1
- package/dist/cjs/site/constants.js.map +1 -1
- package/dist/cjs/site/types.js.map +1 -1
- package/dist/esm/add-ons/hooks/use-add-on-prices.js +1 -1
- package/dist/esm/add-ons/hooks/use-add-on-prices.js.map +1 -1
- package/dist/esm/add-ons/icons/custom-design.js +2 -2
- package/dist/esm/add-ons/icons/custom-design.js.map +1 -1
- package/dist/esm/add-ons/icons/unlimited-themes.js +2 -2
- package/dist/esm/add-ons/icons/unlimited-themes.js.map +1 -1
- package/dist/esm/contextual-help/admin-sections.js +2 -2
- package/dist/esm/contextual-help/admin-sections.js.map +1 -1
- package/dist/esm/help-center/actions.js +81 -57
- package/dist/esm/help-center/actions.js.map +1 -1
- package/dist/esm/help-center/index.js +11 -10
- package/dist/esm/help-center/index.js.map +1 -1
- package/dist/esm/help-center/reducer.js +32 -16
- package/dist/esm/help-center/reducer.js.map +1 -1
- package/dist/esm/help-center/resolvers.js +6 -1
- package/dist/esm/help-center/resolvers.js.map +1 -1
- package/dist/esm/help-center/selectors.js +5 -3
- package/dist/esm/help-center/selectors.js.map +1 -1
- package/dist/esm/index.js +2 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/onboard/actions.js +7 -7
- package/dist/esm/onboard/actions.js.map +1 -1
- package/dist/esm/onboard/index.js +0 -1
- package/dist/esm/onboard/index.js.map +1 -1
- package/dist/esm/onboard/reducer.js +15 -15
- package/dist/esm/onboard/reducer.js.map +1 -1
- package/dist/esm/onboard/selectors.js +2 -2
- package/dist/esm/onboard/selectors.js.map +1 -1
- package/dist/esm/plans/queries/use-plans.js +20 -1
- package/dist/esm/plans/queries/use-plans.js.map +1 -1
- package/dist/esm/plans/resolvers.js +1 -1
- package/dist/esm/plans/resolvers.js.map +1 -1
- package/dist/esm/purchases/lib/assembler.js +7 -13
- package/dist/esm/purchases/lib/assembler.js.map +1 -1
- package/dist/esm/purchases/queries/lib/use-query-keys-factory.js +1 -0
- package/dist/esm/purchases/queries/lib/use-query-keys-factory.js.map +1 -1
- package/dist/esm/purchases/queries/use-get-jetpack-transferred-license-purchases.js +29 -0
- package/dist/esm/purchases/queries/use-get-jetpack-transferred-license-purchases.js.map +1 -0
- package/dist/esm/queries/use-launchpad.js +2 -2
- package/dist/esm/queries/use-launchpad.js.map +1 -1
- package/dist/esm/queries/use-site-domains-query.js.map +1 -1
- package/dist/esm/queries/use-site-intent.js.map +1 -1
- package/dist/esm/reader/mutations/use-site-subscribe-mutation.js +1 -1
- package/dist/esm/reader/mutations/use-site-subscribe-mutation.js.map +1 -1
- package/dist/esm/reader/mutations/use-site-unsubscribe-mutation.js +4 -0
- package/dist/esm/reader/mutations/use-site-unsubscribe-mutation.js.map +1 -1
- package/dist/esm/site/actions.js +1 -1
- package/dist/esm/site/actions.js.map +1 -1
- package/dist/esm/site/constants.js +1 -0
- package/dist/esm/site/constants.js.map +1 -1
- package/dist/esm/site/types.js.map +1 -1
- package/dist/tsconfig-cjs.tsbuildinfo +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/add-ons/icons/custom-design.d.ts.map +1 -1
- package/dist/types/add-ons/icons/unlimited-themes.d.ts.map +1 -1
- package/dist/types/help-center/actions.d.ts +53 -30
- package/dist/types/help-center/actions.d.ts.map +1 -1
- package/dist/types/help-center/index.d.ts +1 -1
- package/dist/types/help-center/index.d.ts.map +1 -1
- package/dist/types/help-center/reducer.d.ts +14 -7
- package/dist/types/help-center/reducer.d.ts.map +1 -1
- package/dist/types/help-center/resolvers.d.ts +22 -3
- package/dist/types/help-center/resolvers.d.ts.map +1 -1
- package/dist/types/help-center/selectors.d.ts +8 -3
- package/dist/types/help-center/selectors.d.ts.map +1 -1
- package/dist/types/help-center/types.d.ts +3 -1
- package/dist/types/help-center/types.d.ts.map +1 -1
- package/dist/types/index.d.ts +478 -46
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/onboard/actions.d.ts +13 -24
- package/dist/types/onboard/actions.d.ts.map +1 -1
- package/dist/types/onboard/index.d.ts.map +1 -1
- package/dist/types/onboard/reducer.d.ts +7 -5
- package/dist/types/onboard/reducer.d.ts.map +1 -1
- package/dist/types/onboard/selectors.d.ts +6 -6
- package/dist/types/onboard/selectors.d.ts.map +1 -1
- package/dist/types/onboard/types.d.ts +1 -1
- package/dist/types/onboard/types.d.ts.map +1 -1
- package/dist/types/plans/queries/use-plans.d.ts.map +1 -1
- package/dist/types/purchases/lib/assembler.d.ts +3 -3
- package/dist/types/purchases/lib/assembler.d.ts.map +1 -1
- package/dist/types/purchases/queries/lib/use-query-keys-factory.d.ts +1 -0
- package/dist/types/purchases/queries/lib/use-query-keys-factory.d.ts.map +1 -1
- package/dist/types/purchases/queries/use-get-jetpack-transferred-license-purchases.d.ts +18 -0
- package/dist/types/purchases/queries/use-get-jetpack-transferred-license-purchases.d.ts.map +1 -0
- package/dist/types/purchases/types.d.ts +16 -106
- package/dist/types/purchases/types.d.ts.map +1 -1
- package/dist/types/queries/use-all-domains-query.d.ts +1 -1
- package/dist/types/queries/use-all-domains-query.d.ts.map +1 -1
- package/dist/types/queries/use-launchpad.d.ts +1 -0
- package/dist/types/queries/use-launchpad.d.ts.map +1 -1
- package/dist/types/queries/use-site-domains-query.d.ts +2 -1
- package/dist/types/queries/use-site-domains-query.d.ts.map +1 -1
- package/dist/types/queries/use-site-intent.d.ts +2 -1
- package/dist/types/queries/use-site-intent.d.ts.map +1 -1
- package/dist/types/queries/use-site-query.d.ts +1 -1
- package/dist/types/queries/use-site-query.d.ts.map +1 -1
- package/dist/types/reader/index.d.ts +475 -41
- package/dist/types/reader/index.d.ts.map +1 -1
- package/dist/types/reader/mutations/use-site-subscribe-mutation.d.ts +1 -1
- package/dist/types/reader/mutations/use-site-subscribe-mutation.d.ts.map +1 -1
- package/dist/types/reader/mutations/use-site-unsubscribe-mutation.d.ts +2 -0
- package/dist/types/reader/mutations/use-site-unsubscribe-mutation.d.ts.map +1 -1
- package/dist/types/reader/queries/use-pending-post-subscriptions-query.d.ts +75 -7
- package/dist/types/reader/queries/use-pending-post-subscriptions-query.d.ts.map +1 -1
- package/dist/types/reader/queries/use-pending-site-subscriptions-query.d.ts +75 -7
- package/dist/types/reader/queries/use-pending-site-subscriptions-query.d.ts.map +1 -1
- package/dist/types/reader/queries/use-post-subscriptions-query.d.ts +143 -13
- package/dist/types/reader/queries/use-post-subscriptions-query.d.ts.map +1 -1
- package/dist/types/reader/queries/use-site-subscriptions-query.d.ts +103 -13
- package/dist/types/reader/queries/use-site-subscriptions-query.d.ts.map +1 -1
- package/dist/types/site/actions.d.ts.map +1 -1
- package/dist/types/site/constants.d.ts +1 -0
- package/dist/types/site/constants.d.ts.map +1 -1
- package/dist/types/site/types.d.ts +12 -2
- package/dist/types/site/types.d.ts.map +1 -1
- package/dist/types/user/actions.d.ts +1 -1
- package/dist/types/user/reducer.d.ts +1 -1
- package/dist/types/user/resolvers.d.ts +2 -2
- package/dist/types/user/selectors.d.ts +2 -2
- package/dist/types/user/selectors.d.ts.map +1 -1
- package/dist/types/user/types.d.ts +2 -31
- package/dist/types/user/types.d.ts.map +1 -1
- package/package.json +28 -21
- package/src/add-ons/hooks/use-add-on-prices.ts +1 -1
- package/src/add-ons/icons/custom-design.tsx +3 -11
- package/src/add-ons/icons/unlimited-themes.tsx +3 -12
- package/src/contextual-help/admin-sections.ts +2 -2
- package/src/help-center/actions.ts +101 -65
- package/src/help-center/index.ts +10 -8
- package/src/help-center/reducer.ts +45 -24
- package/src/help-center/resolvers.ts +20 -3
- package/src/help-center/selectors.ts +6 -3
- package/src/help-center/types.ts +3 -1
- package/src/index.ts +6 -6
- package/src/newsletter-categories/test/index.tsx +5 -7
- package/src/onboard/actions.ts +11 -24
- package/src/onboard/index.ts +0 -1
- package/src/onboard/reducer.ts +18 -19
- package/src/onboard/selectors.ts +2 -2
- package/src/onboard/types.ts +1 -1
- package/src/plans/queries/use-plans.ts +29 -1
- package/src/plans/resolvers.ts +1 -1
- package/src/purchases/lib/assembler.ts +11 -21
- package/src/purchases/queries/lib/use-query-keys-factory.ts +1 -0
- package/src/purchases/queries/use-get-jetpack-transferred-license-purchases.tsx +43 -0
- package/src/purchases/types.ts +21 -113
- package/src/queries/use-launchpad.ts +2 -2
- package/src/queries/use-site-domains-query.ts +1 -0
- package/src/queries/use-site-intent.ts +2 -1
- package/src/reader/mutations/use-site-subscribe-mutation.ts +2 -2
- package/src/reader/mutations/use-site-unsubscribe-mutation.ts +7 -0
- package/src/reader/queries/test/use-read-feed-search-query.tsx +1 -1
- package/src/site/actions.ts +1 -1
- package/src/site/constants.ts +1 -0
- package/src/site/test/selectors.ts +0 -1
- package/src/site/types.ts +12 -2
- package/src/user/types.ts +2 -36
- package/dist/cjs/analyzer/actions.js +0 -38
- package/dist/cjs/analyzer/actions.js.map +0 -1
- package/dist/cjs/analyzer/constants.js +0 -5
- package/dist/cjs/analyzer/constants.js.map +0 -1
- package/dist/cjs/analyzer/index.js +0 -19
- package/dist/cjs/analyzer/index.js.map +0 -1
- package/dist/cjs/analyzer/reducers.js +0 -27
- package/dist/cjs/analyzer/reducers.js.map +0 -1
- package/dist/cjs/analyzer/selectors.js +0 -15
- package/dist/cjs/analyzer/selectors.js.map +0 -1
- package/dist/cjs/analyzer/types.js +0 -3
- package/dist/cjs/analyzer/types.js.map +0 -1
- package/dist/cjs/domain-suggestions/actions.js +0 -33
- package/dist/cjs/domain-suggestions/actions.js.map +0 -1
- package/dist/cjs/domain-suggestions/constants.js +0 -12
- package/dist/cjs/domain-suggestions/constants.js.map +0 -1
- package/dist/cjs/domain-suggestions/index.js +0 -25
- package/dist/cjs/domain-suggestions/index.js.map +0 -1
- package/dist/cjs/domain-suggestions/queries.js +0 -78
- package/dist/cjs/domain-suggestions/queries.js.map +0 -1
- package/dist/cjs/domain-suggestions/reducer.js +0 -65
- package/dist/cjs/domain-suggestions/reducer.js.map +0 -1
- package/dist/cjs/domain-suggestions/resolvers.js +0 -91
- package/dist/cjs/domain-suggestions/resolvers.js.map +0 -1
- package/dist/cjs/domain-suggestions/selectors.js +0 -58
- package/dist/cjs/domain-suggestions/selectors.js.map +0 -1
- package/dist/cjs/domain-suggestions/types.js +0 -3
- package/dist/cjs/domain-suggestions/types.js.map +0 -1
- package/dist/cjs/domain-suggestions/utils.js +0 -47
- package/dist/cjs/domain-suggestions/utils.js.map +0 -1
- package/dist/esm/analyzer/actions.js +0 -35
- package/dist/esm/analyzer/actions.js.map +0 -1
- package/dist/esm/analyzer/constants.js +0 -2
- package/dist/esm/analyzer/constants.js.map +0 -1
- package/dist/esm/analyzer/index.js +0 -15
- package/dist/esm/analyzer/index.js.map +0 -1
- package/dist/esm/analyzer/reducers.js +0 -25
- package/dist/esm/analyzer/reducers.js.map +0 -1
- package/dist/esm/analyzer/selectors.js +0 -9
- package/dist/esm/analyzer/selectors.js.map +0 -1
- package/dist/esm/analyzer/types.js +0 -2
- package/dist/esm/analyzer/types.js.map +0 -1
- package/dist/esm/domain-suggestions/actions.js +0 -25
- package/dist/esm/domain-suggestions/actions.js.map +0 -1
- package/dist/esm/domain-suggestions/constants.js +0 -9
- package/dist/esm/domain-suggestions/constants.js.map +0 -1
- package/dist/esm/domain-suggestions/index.js +0 -20
- package/dist/esm/domain-suggestions/index.js.map +0 -1
- package/dist/esm/domain-suggestions/queries.js +0 -72
- package/dist/esm/domain-suggestions/queries.js.map +0 -1
- package/dist/esm/domain-suggestions/reducer.js +0 -61
- package/dist/esm/domain-suggestions/reducer.js.map +0 -1
- package/dist/esm/domain-suggestions/resolvers.js +0 -84
- package/dist/esm/domain-suggestions/resolvers.js.map +0 -1
- package/dist/esm/domain-suggestions/selectors.js +0 -47
- package/dist/esm/domain-suggestions/selectors.js.map +0 -1
- package/dist/esm/domain-suggestions/types.js +0 -2
- package/dist/esm/domain-suggestions/types.js.map +0 -1
- package/dist/esm/domain-suggestions/utils.js +0 -41
- package/dist/esm/domain-suggestions/utils.js.map +0 -1
- package/dist/types/analyzer/actions.d.ts +0 -37
- package/dist/types/analyzer/actions.d.ts.map +0 -1
- package/dist/types/analyzer/constants.d.ts +0 -2
- package/dist/types/analyzer/constants.d.ts.map +0 -1
- package/dist/types/analyzer/index.d.ts +0 -38
- package/dist/types/analyzer/index.d.ts.map +0 -1
- package/dist/types/analyzer/reducers.d.ts +0 -11
- package/dist/types/analyzer/reducers.d.ts.map +0 -1
- package/dist/types/analyzer/selectors.d.ts +0 -7
- package/dist/types/analyzer/selectors.d.ts.map +0 -1
- package/dist/types/analyzer/types.d.ts +0 -35
- package/dist/types/analyzer/types.d.ts.map +0 -1
- package/dist/types/domain-suggestions/actions.d.ts +0 -27
- package/dist/types/domain-suggestions/actions.d.ts.map +0 -1
- package/dist/types/domain-suggestions/constants.d.ts +0 -8
- package/dist/types/domain-suggestions/constants.d.ts.map +0 -1
- package/dist/types/domain-suggestions/index.d.ts +0 -10
- package/dist/types/domain-suggestions/index.d.ts.map +0 -1
- package/dist/types/domain-suggestions/queries.d.ts +0 -323
- package/dist/types/domain-suggestions/queries.d.ts.map +0 -1
- package/dist/types/domain-suggestions/reducer.d.ts +0 -16
- package/dist/types/domain-suggestions/reducer.d.ts.map +0 -1
- package/dist/types/domain-suggestions/resolvers.d.ts +0 -39
- package/dist/types/domain-suggestions/resolvers.d.ts.map +0 -1
- package/dist/types/domain-suggestions/selectors.d.ts +0 -18
- package/dist/types/domain-suggestions/selectors.d.ts.map +0 -1
- package/dist/types/domain-suggestions/types.d.ts +0 -206
- package/dist/types/domain-suggestions/types.d.ts.map +0 -1
- package/dist/types/domain-suggestions/utils.d.ts +0 -23
- package/dist/types/domain-suggestions/utils.d.ts.map +0 -1
- package/src/analyzer/actions.ts +0 -49
- package/src/analyzer/constants.ts +0 -1
- package/src/analyzer/index.ts +0 -17
- package/src/analyzer/reducers.ts +0 -36
- package/src/analyzer/selectors.ts +0 -11
- package/src/analyzer/types.ts +0 -37
- package/src/domain-suggestions/actions.ts +0 -51
- package/src/domain-suggestions/constants.ts +0 -8
- package/src/domain-suggestions/index.ts +0 -22
- package/src/domain-suggestions/queries.ts +0 -85
- package/src/domain-suggestions/reducer.ts +0 -77
- package/src/domain-suggestions/resolvers.ts +0 -110
- package/src/domain-suggestions/selectors.ts +0 -86
- package/src/domain-suggestions/test/reducer.ts +0 -105
- package/src/domain-suggestions/test/selectors.ts +0 -127
- package/src/domain-suggestions/types.ts +0 -254
- package/src/domain-suggestions/utils.ts +0 -50
package/dist/types/index.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import * as AddOns from './add-ons';
|
|
2
|
-
import * as Analyzer from './analyzer';
|
|
3
|
-
import * as DomainSuggestions from './domain-suggestions';
|
|
4
2
|
import * as HelpCenter from './help-center';
|
|
5
3
|
import * as Onboard from './onboard';
|
|
6
4
|
import * as Plans from './plans';
|
|
@@ -20,7 +18,6 @@ export * from './starter-designs-queries';
|
|
|
20
18
|
export * from './site/types';
|
|
21
19
|
export * from './templates';
|
|
22
20
|
export * from './onboard/types';
|
|
23
|
-
export * from './domain-suggestions/types';
|
|
24
21
|
export * from './plans/types';
|
|
25
22
|
export * from './theme';
|
|
26
23
|
export * from './user/types';
|
|
@@ -64,9 +61,11 @@ declare const SubscriptionManager: {
|
|
|
64
61
|
error: Error;
|
|
65
62
|
isError: true;
|
|
66
63
|
isPending: false;
|
|
64
|
+
isLoading: false;
|
|
67
65
|
isLoadingError: false;
|
|
68
66
|
isRefetchError: true;
|
|
69
67
|
isSuccess: false;
|
|
68
|
+
isPlaceholderData: false;
|
|
70
69
|
status: "error";
|
|
71
70
|
dataUpdatedAt: number;
|
|
72
71
|
errorUpdatedAt: number;
|
|
@@ -76,14 +75,14 @@ declare const SubscriptionManager: {
|
|
|
76
75
|
isFetched: boolean;
|
|
77
76
|
isFetchedAfterMount: boolean;
|
|
78
77
|
isFetching: boolean;
|
|
79
|
-
isLoading: boolean;
|
|
80
78
|
isInitialLoading: boolean;
|
|
81
79
|
isPaused: boolean;
|
|
82
|
-
isPlaceholderData: boolean;
|
|
83
80
|
isRefetching: boolean;
|
|
84
81
|
isStale: boolean;
|
|
82
|
+
isEnabled: boolean;
|
|
85
83
|
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<Reader.PendingPostSubscriptionsResult, Error>>;
|
|
86
84
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
85
|
+
promise: Promise<Reader.PendingPostSubscriptionsResult>;
|
|
87
86
|
data: {
|
|
88
87
|
pendingPosts: Reader.PendingPostSubscription[] | undefined;
|
|
89
88
|
totalCount: number | undefined;
|
|
@@ -92,9 +91,11 @@ declare const SubscriptionManager: {
|
|
|
92
91
|
error: null;
|
|
93
92
|
isError: false;
|
|
94
93
|
isPending: false;
|
|
94
|
+
isLoading: false;
|
|
95
95
|
isLoadingError: false;
|
|
96
96
|
isRefetchError: false;
|
|
97
97
|
isSuccess: true;
|
|
98
|
+
isPlaceholderData: false;
|
|
98
99
|
status: "success";
|
|
99
100
|
dataUpdatedAt: number;
|
|
100
101
|
errorUpdatedAt: number;
|
|
@@ -104,14 +105,14 @@ declare const SubscriptionManager: {
|
|
|
104
105
|
isFetched: boolean;
|
|
105
106
|
isFetchedAfterMount: boolean;
|
|
106
107
|
isFetching: boolean;
|
|
107
|
-
isLoading: boolean;
|
|
108
108
|
isInitialLoading: boolean;
|
|
109
109
|
isPaused: boolean;
|
|
110
|
-
isPlaceholderData: boolean;
|
|
111
110
|
isRefetching: boolean;
|
|
112
111
|
isStale: boolean;
|
|
112
|
+
isEnabled: boolean;
|
|
113
113
|
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<Reader.PendingPostSubscriptionsResult, Error>>;
|
|
114
114
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
115
|
+
promise: Promise<Reader.PendingPostSubscriptionsResult>;
|
|
115
116
|
data: {
|
|
116
117
|
pendingPosts: Reader.PendingPostSubscription[] | undefined;
|
|
117
118
|
totalCount: number | undefined;
|
|
@@ -120,9 +121,11 @@ declare const SubscriptionManager: {
|
|
|
120
121
|
error: Error;
|
|
121
122
|
isError: true;
|
|
122
123
|
isPending: false;
|
|
124
|
+
isLoading: false;
|
|
123
125
|
isLoadingError: true;
|
|
124
126
|
isRefetchError: false;
|
|
125
127
|
isSuccess: false;
|
|
128
|
+
isPlaceholderData: false;
|
|
126
129
|
status: "error";
|
|
127
130
|
dataUpdatedAt: number;
|
|
128
131
|
errorUpdatedAt: number;
|
|
@@ -132,14 +135,14 @@ declare const SubscriptionManager: {
|
|
|
132
135
|
isFetched: boolean;
|
|
133
136
|
isFetchedAfterMount: boolean;
|
|
134
137
|
isFetching: boolean;
|
|
135
|
-
isLoading: boolean;
|
|
136
138
|
isInitialLoading: boolean;
|
|
137
139
|
isPaused: boolean;
|
|
138
|
-
isPlaceholderData: boolean;
|
|
139
140
|
isRefetching: boolean;
|
|
140
141
|
isStale: boolean;
|
|
142
|
+
isEnabled: boolean;
|
|
141
143
|
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<Reader.PendingPostSubscriptionsResult, Error>>;
|
|
142
144
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
145
|
+
promise: Promise<Reader.PendingPostSubscriptionsResult>;
|
|
143
146
|
data: {
|
|
144
147
|
pendingPosts: Reader.PendingPostSubscription[] | undefined;
|
|
145
148
|
totalCount: number | undefined;
|
|
@@ -148,9 +151,40 @@ declare const SubscriptionManager: {
|
|
|
148
151
|
error: null;
|
|
149
152
|
isError: false;
|
|
150
153
|
isPending: true;
|
|
154
|
+
isLoading: true;
|
|
151
155
|
isLoadingError: false;
|
|
152
156
|
isRefetchError: false;
|
|
153
157
|
isSuccess: false;
|
|
158
|
+
isPlaceholderData: false;
|
|
159
|
+
status: "pending";
|
|
160
|
+
dataUpdatedAt: number;
|
|
161
|
+
errorUpdatedAt: number;
|
|
162
|
+
failureCount: number;
|
|
163
|
+
failureReason: Error | null;
|
|
164
|
+
errorUpdateCount: number;
|
|
165
|
+
isFetched: boolean;
|
|
166
|
+
isFetchedAfterMount: boolean;
|
|
167
|
+
isFetching: boolean;
|
|
168
|
+
isInitialLoading: boolean;
|
|
169
|
+
isPaused: boolean;
|
|
170
|
+
isRefetching: boolean;
|
|
171
|
+
isStale: boolean;
|
|
172
|
+
isEnabled: boolean;
|
|
173
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<Reader.PendingPostSubscriptionsResult, Error>>;
|
|
174
|
+
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
175
|
+
promise: Promise<Reader.PendingPostSubscriptionsResult>;
|
|
176
|
+
data: {
|
|
177
|
+
pendingPosts: Reader.PendingPostSubscription[] | undefined;
|
|
178
|
+
totalCount: number | undefined;
|
|
179
|
+
};
|
|
180
|
+
} | {
|
|
181
|
+
error: null;
|
|
182
|
+
isError: false;
|
|
183
|
+
isPending: true;
|
|
184
|
+
isLoadingError: false;
|
|
185
|
+
isRefetchError: false;
|
|
186
|
+
isSuccess: false;
|
|
187
|
+
isPlaceholderData: false;
|
|
154
188
|
status: "pending";
|
|
155
189
|
dataUpdatedAt: number;
|
|
156
190
|
errorUpdatedAt: number;
|
|
@@ -163,11 +197,42 @@ declare const SubscriptionManager: {
|
|
|
163
197
|
isLoading: boolean;
|
|
164
198
|
isInitialLoading: boolean;
|
|
165
199
|
isPaused: boolean;
|
|
166
|
-
isPlaceholderData: boolean;
|
|
167
200
|
isRefetching: boolean;
|
|
168
201
|
isStale: boolean;
|
|
202
|
+
isEnabled: boolean;
|
|
169
203
|
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<Reader.PendingPostSubscriptionsResult, Error>>;
|
|
170
204
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
205
|
+
promise: Promise<Reader.PendingPostSubscriptionsResult>;
|
|
206
|
+
data: {
|
|
207
|
+
pendingPosts: Reader.PendingPostSubscription[] | undefined;
|
|
208
|
+
totalCount: number | undefined;
|
|
209
|
+
};
|
|
210
|
+
} | {
|
|
211
|
+
isError: false;
|
|
212
|
+
error: null;
|
|
213
|
+
isPending: false;
|
|
214
|
+
isLoading: false;
|
|
215
|
+
isLoadingError: false;
|
|
216
|
+
isRefetchError: false;
|
|
217
|
+
isSuccess: true;
|
|
218
|
+
isPlaceholderData: true;
|
|
219
|
+
status: "success";
|
|
220
|
+
dataUpdatedAt: number;
|
|
221
|
+
errorUpdatedAt: number;
|
|
222
|
+
failureCount: number;
|
|
223
|
+
failureReason: Error | null;
|
|
224
|
+
errorUpdateCount: number;
|
|
225
|
+
isFetched: boolean;
|
|
226
|
+
isFetchedAfterMount: boolean;
|
|
227
|
+
isFetching: boolean;
|
|
228
|
+
isInitialLoading: boolean;
|
|
229
|
+
isPaused: boolean;
|
|
230
|
+
isRefetching: boolean;
|
|
231
|
+
isStale: boolean;
|
|
232
|
+
isEnabled: boolean;
|
|
233
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<Reader.PendingPostSubscriptionsResult, Error>>;
|
|
234
|
+
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
235
|
+
promise: Promise<Reader.PendingPostSubscriptionsResult>;
|
|
171
236
|
data: {
|
|
172
237
|
pendingPosts: Reader.PendingPostSubscription[] | undefined;
|
|
173
238
|
totalCount: number | undefined;
|
|
@@ -197,9 +262,11 @@ declare const SubscriptionManager: {
|
|
|
197
262
|
error: Error;
|
|
198
263
|
isError: true;
|
|
199
264
|
isPending: false;
|
|
265
|
+
isLoading: false;
|
|
200
266
|
isLoadingError: false;
|
|
201
267
|
isRefetchError: true;
|
|
202
268
|
isSuccess: false;
|
|
269
|
+
isPlaceholderData: false;
|
|
203
270
|
status: "error";
|
|
204
271
|
dataUpdatedAt: number;
|
|
205
272
|
errorUpdatedAt: number;
|
|
@@ -209,14 +276,14 @@ declare const SubscriptionManager: {
|
|
|
209
276
|
isFetched: boolean;
|
|
210
277
|
isFetchedAfterMount: boolean;
|
|
211
278
|
isFetching: boolean;
|
|
212
|
-
isLoading: boolean;
|
|
213
279
|
isInitialLoading: boolean;
|
|
214
280
|
isPaused: boolean;
|
|
215
|
-
isPlaceholderData: boolean;
|
|
216
281
|
isRefetching: boolean;
|
|
217
282
|
isStale: boolean;
|
|
283
|
+
isEnabled: boolean;
|
|
218
284
|
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<Reader.PendingSiteSubscriptionsResult, Error>>;
|
|
219
285
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
286
|
+
promise: Promise<Reader.PendingSiteSubscriptionsResult>;
|
|
220
287
|
data: {
|
|
221
288
|
pendingSites: Reader.PendingSiteSubscription[] | undefined;
|
|
222
289
|
totalCount: number | undefined;
|
|
@@ -225,9 +292,11 @@ declare const SubscriptionManager: {
|
|
|
225
292
|
error: null;
|
|
226
293
|
isError: false;
|
|
227
294
|
isPending: false;
|
|
295
|
+
isLoading: false;
|
|
228
296
|
isLoadingError: false;
|
|
229
297
|
isRefetchError: false;
|
|
230
298
|
isSuccess: true;
|
|
299
|
+
isPlaceholderData: false;
|
|
231
300
|
status: "success";
|
|
232
301
|
dataUpdatedAt: number;
|
|
233
302
|
errorUpdatedAt: number;
|
|
@@ -237,14 +306,14 @@ declare const SubscriptionManager: {
|
|
|
237
306
|
isFetched: boolean;
|
|
238
307
|
isFetchedAfterMount: boolean;
|
|
239
308
|
isFetching: boolean;
|
|
240
|
-
isLoading: boolean;
|
|
241
309
|
isInitialLoading: boolean;
|
|
242
310
|
isPaused: boolean;
|
|
243
|
-
isPlaceholderData: boolean;
|
|
244
311
|
isRefetching: boolean;
|
|
245
312
|
isStale: boolean;
|
|
313
|
+
isEnabled: boolean;
|
|
246
314
|
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<Reader.PendingSiteSubscriptionsResult, Error>>;
|
|
247
315
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
316
|
+
promise: Promise<Reader.PendingSiteSubscriptionsResult>;
|
|
248
317
|
data: {
|
|
249
318
|
pendingSites: Reader.PendingSiteSubscription[] | undefined;
|
|
250
319
|
totalCount: number | undefined;
|
|
@@ -253,9 +322,11 @@ declare const SubscriptionManager: {
|
|
|
253
322
|
error: Error;
|
|
254
323
|
isError: true;
|
|
255
324
|
isPending: false;
|
|
325
|
+
isLoading: false;
|
|
256
326
|
isLoadingError: true;
|
|
257
327
|
isRefetchError: false;
|
|
258
328
|
isSuccess: false;
|
|
329
|
+
isPlaceholderData: false;
|
|
259
330
|
status: "error";
|
|
260
331
|
dataUpdatedAt: number;
|
|
261
332
|
errorUpdatedAt: number;
|
|
@@ -265,14 +336,44 @@ declare const SubscriptionManager: {
|
|
|
265
336
|
isFetched: boolean;
|
|
266
337
|
isFetchedAfterMount: boolean;
|
|
267
338
|
isFetching: boolean;
|
|
268
|
-
isLoading: boolean;
|
|
269
339
|
isInitialLoading: boolean;
|
|
270
340
|
isPaused: boolean;
|
|
271
|
-
isPlaceholderData: boolean;
|
|
272
341
|
isRefetching: boolean;
|
|
273
342
|
isStale: boolean;
|
|
343
|
+
isEnabled: boolean;
|
|
344
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<Reader.PendingSiteSubscriptionsResult, Error>>;
|
|
345
|
+
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
346
|
+
promise: Promise<Reader.PendingSiteSubscriptionsResult>;
|
|
347
|
+
data: {
|
|
348
|
+
pendingSites: Reader.PendingSiteSubscription[] | undefined;
|
|
349
|
+
totalCount: number | undefined;
|
|
350
|
+
};
|
|
351
|
+
} | {
|
|
352
|
+
error: null;
|
|
353
|
+
isError: false;
|
|
354
|
+
isPending: true;
|
|
355
|
+
isLoading: true;
|
|
356
|
+
isLoadingError: false;
|
|
357
|
+
isRefetchError: false;
|
|
358
|
+
isSuccess: false;
|
|
359
|
+
isPlaceholderData: false;
|
|
360
|
+
status: "pending";
|
|
361
|
+
dataUpdatedAt: number;
|
|
362
|
+
errorUpdatedAt: number;
|
|
363
|
+
failureCount: number;
|
|
364
|
+
failureReason: Error | null;
|
|
365
|
+
errorUpdateCount: number;
|
|
366
|
+
isFetched: boolean;
|
|
367
|
+
isFetchedAfterMount: boolean;
|
|
368
|
+
isFetching: boolean;
|
|
369
|
+
isInitialLoading: boolean;
|
|
370
|
+
isPaused: boolean;
|
|
371
|
+
isRefetching: boolean;
|
|
372
|
+
isStale: boolean;
|
|
373
|
+
isEnabled: boolean;
|
|
274
374
|
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<Reader.PendingSiteSubscriptionsResult, Error>>;
|
|
275
375
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
376
|
+
promise: Promise<Reader.PendingSiteSubscriptionsResult>;
|
|
276
377
|
data: {
|
|
277
378
|
pendingSites: Reader.PendingSiteSubscription[] | undefined;
|
|
278
379
|
totalCount: number | undefined;
|
|
@@ -284,6 +385,7 @@ declare const SubscriptionManager: {
|
|
|
284
385
|
isLoadingError: false;
|
|
285
386
|
isRefetchError: false;
|
|
286
387
|
isSuccess: false;
|
|
388
|
+
isPlaceholderData: false;
|
|
287
389
|
status: "pending";
|
|
288
390
|
dataUpdatedAt: number;
|
|
289
391
|
errorUpdatedAt: number;
|
|
@@ -296,11 +398,42 @@ declare const SubscriptionManager: {
|
|
|
296
398
|
isLoading: boolean;
|
|
297
399
|
isInitialLoading: boolean;
|
|
298
400
|
isPaused: boolean;
|
|
299
|
-
isPlaceholderData: boolean;
|
|
300
401
|
isRefetching: boolean;
|
|
301
402
|
isStale: boolean;
|
|
403
|
+
isEnabled: boolean;
|
|
302
404
|
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<Reader.PendingSiteSubscriptionsResult, Error>>;
|
|
303
405
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
406
|
+
promise: Promise<Reader.PendingSiteSubscriptionsResult>;
|
|
407
|
+
data: {
|
|
408
|
+
pendingSites: Reader.PendingSiteSubscription[] | undefined;
|
|
409
|
+
totalCount: number | undefined;
|
|
410
|
+
};
|
|
411
|
+
} | {
|
|
412
|
+
isError: false;
|
|
413
|
+
error: null;
|
|
414
|
+
isPending: false;
|
|
415
|
+
isLoading: false;
|
|
416
|
+
isLoadingError: false;
|
|
417
|
+
isRefetchError: false;
|
|
418
|
+
isSuccess: true;
|
|
419
|
+
isPlaceholderData: true;
|
|
420
|
+
status: "success";
|
|
421
|
+
dataUpdatedAt: number;
|
|
422
|
+
errorUpdatedAt: number;
|
|
423
|
+
failureCount: number;
|
|
424
|
+
failureReason: Error | null;
|
|
425
|
+
errorUpdateCount: number;
|
|
426
|
+
isFetched: boolean;
|
|
427
|
+
isFetchedAfterMount: boolean;
|
|
428
|
+
isFetching: boolean;
|
|
429
|
+
isInitialLoading: boolean;
|
|
430
|
+
isPaused: boolean;
|
|
431
|
+
isRefetching: boolean;
|
|
432
|
+
isStale: boolean;
|
|
433
|
+
isEnabled: boolean;
|
|
434
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<Reader.PendingSiteSubscriptionsResult, Error>>;
|
|
435
|
+
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
436
|
+
promise: Promise<Reader.PendingSiteSubscriptionsResult>;
|
|
304
437
|
data: {
|
|
305
438
|
pendingSites: Reader.PendingSiteSubscription[] | undefined;
|
|
306
439
|
totalCount: number | undefined;
|
|
@@ -349,9 +482,151 @@ declare const SubscriptionManager: {
|
|
|
349
482
|
error: Error;
|
|
350
483
|
isError: true;
|
|
351
484
|
isPending: false;
|
|
485
|
+
isLoading: false;
|
|
486
|
+
isLoadingError: false;
|
|
487
|
+
isRefetchError: true;
|
|
488
|
+
isSuccess: false;
|
|
489
|
+
isPlaceholderData: false;
|
|
490
|
+
status: "error";
|
|
491
|
+
fetchNextPage: (options?: import("@tanstack/query-core").FetchNextPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
492
|
+
comment_subscriptions: Reader.PostSubscription[];
|
|
493
|
+
total_comment_subscriptions_count: number;
|
|
494
|
+
}, unknown>, Error>>;
|
|
495
|
+
fetchPreviousPage: (options?: import("@tanstack/query-core").FetchPreviousPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
496
|
+
comment_subscriptions: Reader.PostSubscription[];
|
|
497
|
+
total_comment_subscriptions_count: number;
|
|
498
|
+
}, unknown>, Error>>;
|
|
499
|
+
hasPreviousPage: boolean;
|
|
500
|
+
isFetchNextPageError: boolean;
|
|
501
|
+
isFetchPreviousPageError: boolean;
|
|
502
|
+
isFetchingPreviousPage: boolean;
|
|
503
|
+
dataUpdatedAt: number;
|
|
504
|
+
errorUpdatedAt: number;
|
|
505
|
+
failureCount: number;
|
|
506
|
+
failureReason: Error | null;
|
|
507
|
+
errorUpdateCount: number;
|
|
508
|
+
isFetched: boolean;
|
|
509
|
+
isFetchedAfterMount: boolean;
|
|
510
|
+
isInitialLoading: boolean;
|
|
511
|
+
isPaused: boolean;
|
|
512
|
+
isRefetching: boolean;
|
|
513
|
+
isStale: boolean;
|
|
514
|
+
isEnabled: boolean;
|
|
515
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
516
|
+
comment_subscriptions: Reader.PostSubscription[];
|
|
517
|
+
total_comment_subscriptions_count: number;
|
|
518
|
+
}, unknown>, Error>>;
|
|
519
|
+
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
520
|
+
promise: Promise<import("@tanstack/query-core").InfiniteData<{
|
|
521
|
+
comment_subscriptions: Reader.PostSubscription[];
|
|
522
|
+
total_comment_subscriptions_count: number;
|
|
523
|
+
}, unknown>>;
|
|
524
|
+
} | {
|
|
525
|
+
data: {
|
|
526
|
+
posts: {
|
|
527
|
+
date_subscribed: Date;
|
|
528
|
+
id: string;
|
|
529
|
+
blog_id: string;
|
|
530
|
+
site_id: string;
|
|
531
|
+
site_title: string;
|
|
532
|
+
site_icon: string;
|
|
533
|
+
site_url: string;
|
|
534
|
+
domain: string;
|
|
535
|
+
is_wpforteams_site: boolean;
|
|
536
|
+
is_paid_subscription: boolean;
|
|
537
|
+
organization_id: number;
|
|
538
|
+
post_id: number;
|
|
539
|
+
post_title: string;
|
|
540
|
+
post_excerpt: string;
|
|
541
|
+
post_url: string;
|
|
542
|
+
notification: {
|
|
543
|
+
send_comments: boolean;
|
|
544
|
+
};
|
|
545
|
+
}[] | undefined;
|
|
546
|
+
totalCount: number;
|
|
547
|
+
};
|
|
548
|
+
isFetchingNextPage: boolean;
|
|
549
|
+
isFetching: boolean;
|
|
550
|
+
hasNextPage: boolean;
|
|
551
|
+
error: null;
|
|
552
|
+
isError: false;
|
|
553
|
+
isPending: false;
|
|
554
|
+
isLoading: false;
|
|
555
|
+
isLoadingError: false;
|
|
556
|
+
isRefetchError: false;
|
|
557
|
+
isFetchNextPageError: false;
|
|
558
|
+
isFetchPreviousPageError: false;
|
|
559
|
+
isSuccess: true;
|
|
560
|
+
isPlaceholderData: false;
|
|
561
|
+
status: "success";
|
|
562
|
+
fetchNextPage: (options?: import("@tanstack/query-core").FetchNextPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
563
|
+
comment_subscriptions: Reader.PostSubscription[];
|
|
564
|
+
total_comment_subscriptions_count: number;
|
|
565
|
+
}, unknown>, Error>>;
|
|
566
|
+
fetchPreviousPage: (options?: import("@tanstack/query-core").FetchPreviousPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
567
|
+
comment_subscriptions: Reader.PostSubscription[];
|
|
568
|
+
total_comment_subscriptions_count: number;
|
|
569
|
+
}, unknown>, Error>>;
|
|
570
|
+
hasPreviousPage: boolean;
|
|
571
|
+
isFetchingPreviousPage: boolean;
|
|
572
|
+
dataUpdatedAt: number;
|
|
573
|
+
errorUpdatedAt: number;
|
|
574
|
+
failureCount: number;
|
|
575
|
+
failureReason: Error | null;
|
|
576
|
+
errorUpdateCount: number;
|
|
577
|
+
isFetched: boolean;
|
|
578
|
+
isFetchedAfterMount: boolean;
|
|
579
|
+
isInitialLoading: boolean;
|
|
580
|
+
isPaused: boolean;
|
|
581
|
+
isRefetching: boolean;
|
|
582
|
+
isStale: boolean;
|
|
583
|
+
isEnabled: boolean;
|
|
584
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
585
|
+
comment_subscriptions: Reader.PostSubscription[];
|
|
586
|
+
total_comment_subscriptions_count: number;
|
|
587
|
+
}, unknown>, Error>>;
|
|
588
|
+
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
589
|
+
promise: Promise<import("@tanstack/query-core").InfiniteData<{
|
|
590
|
+
comment_subscriptions: Reader.PostSubscription[];
|
|
591
|
+
total_comment_subscriptions_count: number;
|
|
592
|
+
}, unknown>>;
|
|
593
|
+
} | {
|
|
594
|
+
data: {
|
|
595
|
+
posts: {
|
|
596
|
+
date_subscribed: Date;
|
|
597
|
+
id: string;
|
|
598
|
+
blog_id: string;
|
|
599
|
+
site_id: string;
|
|
600
|
+
site_title: string;
|
|
601
|
+
site_icon: string;
|
|
602
|
+
site_url: string;
|
|
603
|
+
domain: string;
|
|
604
|
+
is_wpforteams_site: boolean;
|
|
605
|
+
is_paid_subscription: boolean;
|
|
606
|
+
organization_id: number;
|
|
607
|
+
post_id: number;
|
|
608
|
+
post_title: string;
|
|
609
|
+
post_excerpt: string;
|
|
610
|
+
post_url: string;
|
|
611
|
+
notification: {
|
|
612
|
+
send_comments: boolean;
|
|
613
|
+
};
|
|
614
|
+
}[] | undefined;
|
|
615
|
+
totalCount: number;
|
|
616
|
+
};
|
|
617
|
+
isFetchingNextPage: boolean;
|
|
618
|
+
isFetching: boolean;
|
|
619
|
+
hasNextPage: boolean;
|
|
620
|
+
error: Error;
|
|
621
|
+
isError: true;
|
|
622
|
+
isPending: false;
|
|
623
|
+
isLoading: false;
|
|
352
624
|
isLoadingError: true;
|
|
353
625
|
isRefetchError: false;
|
|
626
|
+
isFetchNextPageError: false;
|
|
627
|
+
isFetchPreviousPageError: false;
|
|
354
628
|
isSuccess: false;
|
|
629
|
+
isPlaceholderData: false;
|
|
355
630
|
status: "error";
|
|
356
631
|
fetchNextPage: (options?: import("@tanstack/query-core").FetchNextPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
357
632
|
comment_subscriptions: Reader.PostSubscription[];
|
|
@@ -370,17 +645,20 @@ declare const SubscriptionManager: {
|
|
|
370
645
|
errorUpdateCount: number;
|
|
371
646
|
isFetched: boolean;
|
|
372
647
|
isFetchedAfterMount: boolean;
|
|
373
|
-
isLoading: boolean;
|
|
374
648
|
isInitialLoading: boolean;
|
|
375
649
|
isPaused: boolean;
|
|
376
|
-
isPlaceholderData: boolean;
|
|
377
650
|
isRefetching: boolean;
|
|
378
651
|
isStale: boolean;
|
|
652
|
+
isEnabled: boolean;
|
|
379
653
|
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
380
654
|
comment_subscriptions: Reader.PostSubscription[];
|
|
381
655
|
total_comment_subscriptions_count: number;
|
|
382
656
|
}, unknown>, Error>>;
|
|
383
657
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
658
|
+
promise: Promise<import("@tanstack/query-core").InfiniteData<{
|
|
659
|
+
comment_subscriptions: Reader.PostSubscription[];
|
|
660
|
+
total_comment_subscriptions_count: number;
|
|
661
|
+
}, unknown>>;
|
|
384
662
|
} | {
|
|
385
663
|
data: {
|
|
386
664
|
posts: {
|
|
@@ -411,9 +689,13 @@ declare const SubscriptionManager: {
|
|
|
411
689
|
error: null;
|
|
412
690
|
isError: false;
|
|
413
691
|
isPending: true;
|
|
692
|
+
isLoading: true;
|
|
414
693
|
isLoadingError: false;
|
|
415
694
|
isRefetchError: false;
|
|
695
|
+
isFetchNextPageError: false;
|
|
696
|
+
isFetchPreviousPageError: false;
|
|
416
697
|
isSuccess: false;
|
|
698
|
+
isPlaceholderData: false;
|
|
417
699
|
status: "pending";
|
|
418
700
|
fetchNextPage: (options?: import("@tanstack/query-core").FetchNextPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
419
701
|
comment_subscriptions: Reader.PostSubscription[];
|
|
@@ -432,17 +714,20 @@ declare const SubscriptionManager: {
|
|
|
432
714
|
errorUpdateCount: number;
|
|
433
715
|
isFetched: boolean;
|
|
434
716
|
isFetchedAfterMount: boolean;
|
|
435
|
-
isLoading: boolean;
|
|
436
717
|
isInitialLoading: boolean;
|
|
437
718
|
isPaused: boolean;
|
|
438
|
-
isPlaceholderData: boolean;
|
|
439
719
|
isRefetching: boolean;
|
|
440
720
|
isStale: boolean;
|
|
721
|
+
isEnabled: boolean;
|
|
441
722
|
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
442
723
|
comment_subscriptions: Reader.PostSubscription[];
|
|
443
724
|
total_comment_subscriptions_count: number;
|
|
444
725
|
}, unknown>, Error>>;
|
|
445
726
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
727
|
+
promise: Promise<import("@tanstack/query-core").InfiniteData<{
|
|
728
|
+
comment_subscriptions: Reader.PostSubscription[];
|
|
729
|
+
total_comment_subscriptions_count: number;
|
|
730
|
+
}, unknown>>;
|
|
446
731
|
} | {
|
|
447
732
|
data: {
|
|
448
733
|
posts: {
|
|
@@ -470,13 +755,16 @@ declare const SubscriptionManager: {
|
|
|
470
755
|
isFetchingNextPage: boolean;
|
|
471
756
|
isFetching: boolean;
|
|
472
757
|
hasNextPage: boolean;
|
|
473
|
-
error:
|
|
474
|
-
isError:
|
|
475
|
-
isPending:
|
|
758
|
+
error: null;
|
|
759
|
+
isError: false;
|
|
760
|
+
isPending: true;
|
|
476
761
|
isLoadingError: false;
|
|
477
|
-
isRefetchError:
|
|
762
|
+
isRefetchError: false;
|
|
763
|
+
isFetchNextPageError: false;
|
|
764
|
+
isFetchPreviousPageError: false;
|
|
478
765
|
isSuccess: false;
|
|
479
|
-
|
|
766
|
+
isPlaceholderData: false;
|
|
767
|
+
status: "pending";
|
|
480
768
|
fetchNextPage: (options?: import("@tanstack/query-core").FetchNextPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
481
769
|
comment_subscriptions: Reader.PostSubscription[];
|
|
482
770
|
total_comment_subscriptions_count: number;
|
|
@@ -497,14 +785,18 @@ declare const SubscriptionManager: {
|
|
|
497
785
|
isLoading: boolean;
|
|
498
786
|
isInitialLoading: boolean;
|
|
499
787
|
isPaused: boolean;
|
|
500
|
-
isPlaceholderData: boolean;
|
|
501
788
|
isRefetching: boolean;
|
|
502
789
|
isStale: boolean;
|
|
790
|
+
isEnabled: boolean;
|
|
503
791
|
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
504
792
|
comment_subscriptions: Reader.PostSubscription[];
|
|
505
793
|
total_comment_subscriptions_count: number;
|
|
506
794
|
}, unknown>, Error>>;
|
|
507
795
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
796
|
+
promise: Promise<import("@tanstack/query-core").InfiniteData<{
|
|
797
|
+
comment_subscriptions: Reader.PostSubscription[];
|
|
798
|
+
total_comment_subscriptions_count: number;
|
|
799
|
+
}, unknown>>;
|
|
508
800
|
} | {
|
|
509
801
|
data: {
|
|
510
802
|
posts: {
|
|
@@ -532,12 +824,16 @@ declare const SubscriptionManager: {
|
|
|
532
824
|
isFetchingNextPage: boolean;
|
|
533
825
|
isFetching: boolean;
|
|
534
826
|
hasNextPage: boolean;
|
|
535
|
-
error: null;
|
|
536
827
|
isError: false;
|
|
828
|
+
error: null;
|
|
537
829
|
isPending: false;
|
|
830
|
+
isLoading: false;
|
|
538
831
|
isLoadingError: false;
|
|
539
832
|
isRefetchError: false;
|
|
540
833
|
isSuccess: true;
|
|
834
|
+
isPlaceholderData: true;
|
|
835
|
+
isFetchNextPageError: false;
|
|
836
|
+
isFetchPreviousPageError: false;
|
|
541
837
|
status: "success";
|
|
542
838
|
fetchNextPage: (options?: import("@tanstack/query-core").FetchNextPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
543
839
|
comment_subscriptions: Reader.PostSubscription[];
|
|
@@ -556,17 +852,20 @@ declare const SubscriptionManager: {
|
|
|
556
852
|
errorUpdateCount: number;
|
|
557
853
|
isFetched: boolean;
|
|
558
854
|
isFetchedAfterMount: boolean;
|
|
559
|
-
isLoading: boolean;
|
|
560
855
|
isInitialLoading: boolean;
|
|
561
856
|
isPaused: boolean;
|
|
562
|
-
isPlaceholderData: boolean;
|
|
563
857
|
isRefetching: boolean;
|
|
564
858
|
isStale: boolean;
|
|
859
|
+
isEnabled: boolean;
|
|
565
860
|
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
566
861
|
comment_subscriptions: Reader.PostSubscription[];
|
|
567
862
|
total_comment_subscriptions_count: number;
|
|
568
863
|
}, unknown>, Error>>;
|
|
569
864
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
865
|
+
promise: Promise<import("@tanstack/query-core").InfiniteData<{
|
|
866
|
+
comment_subscriptions: Reader.PostSubscription[];
|
|
867
|
+
total_comment_subscriptions_count: number;
|
|
868
|
+
}, unknown>>;
|
|
570
869
|
};
|
|
571
870
|
usePostUnsubscribeMutation: () => import("@tanstack/react-query").UseMutationResult<{
|
|
572
871
|
success: boolean;
|
|
@@ -664,7 +963,7 @@ declare const SubscriptionManager: {
|
|
|
664
963
|
url?: string;
|
|
665
964
|
doNotInvalidateSiteSubscriptions?: boolean;
|
|
666
965
|
onSuccess?: () => void;
|
|
667
|
-
onError?: () => void;
|
|
966
|
+
onError?: (e: Error) => void;
|
|
668
967
|
subscriptionId?: number;
|
|
669
968
|
resubscribed?: boolean;
|
|
670
969
|
}, {
|
|
@@ -678,9 +977,111 @@ declare const SubscriptionManager: {
|
|
|
678
977
|
error: Error;
|
|
679
978
|
isError: true;
|
|
680
979
|
isPending: false;
|
|
980
|
+
isLoading: false;
|
|
981
|
+
isLoadingError: false;
|
|
982
|
+
isRefetchError: true;
|
|
983
|
+
isSuccess: false;
|
|
984
|
+
isPlaceholderData: false;
|
|
985
|
+
status: "error";
|
|
986
|
+
fetchPreviousPage: (options?: import("@tanstack/query-core").FetchPreviousPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
987
|
+
subscriptions: Reader.SiteSubscriptionsResponseItem[];
|
|
988
|
+
page: number;
|
|
989
|
+
total_subscriptions: number;
|
|
990
|
+
}, unknown>, Error>>;
|
|
991
|
+
hasPreviousPage: boolean;
|
|
992
|
+
isFetchNextPageError: boolean;
|
|
993
|
+
isFetchPreviousPageError: boolean;
|
|
994
|
+
isFetchingPreviousPage: boolean;
|
|
995
|
+
dataUpdatedAt: number;
|
|
996
|
+
errorUpdatedAt: number;
|
|
997
|
+
failureCount: number;
|
|
998
|
+
failureReason: Error | null;
|
|
999
|
+
errorUpdateCount: number;
|
|
1000
|
+
isFetched: boolean;
|
|
1001
|
+
isFetchedAfterMount: boolean;
|
|
1002
|
+
isInitialLoading: boolean;
|
|
1003
|
+
isPaused: boolean;
|
|
1004
|
+
isRefetching: boolean;
|
|
1005
|
+
isStale: boolean;
|
|
1006
|
+
isEnabled: boolean;
|
|
1007
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
1008
|
+
subscriptions: Reader.SiteSubscriptionsResponseItem[];
|
|
1009
|
+
page: number;
|
|
1010
|
+
total_subscriptions: number;
|
|
1011
|
+
}, unknown>, Error>>;
|
|
1012
|
+
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
1013
|
+
promise: Promise<import("@tanstack/query-core").InfiniteData<{
|
|
1014
|
+
subscriptions: Reader.SiteSubscriptionsResponseItem[];
|
|
1015
|
+
page: number;
|
|
1016
|
+
total_subscriptions: number;
|
|
1017
|
+
}, unknown>>;
|
|
1018
|
+
data: {
|
|
1019
|
+
subscriptions: Reader.SiteSubscriptionsResponseItem[];
|
|
1020
|
+
totalCount: number;
|
|
1021
|
+
};
|
|
1022
|
+
isFetchingNextPage: boolean;
|
|
1023
|
+
isFetching: boolean;
|
|
1024
|
+
hasNextPage: boolean;
|
|
1025
|
+
} | {
|
|
1026
|
+
error: null;
|
|
1027
|
+
isError: false;
|
|
1028
|
+
isPending: false;
|
|
1029
|
+
isLoading: false;
|
|
1030
|
+
isLoadingError: false;
|
|
1031
|
+
isRefetchError: false;
|
|
1032
|
+
isFetchNextPageError: false;
|
|
1033
|
+
isFetchPreviousPageError: false;
|
|
1034
|
+
isSuccess: true;
|
|
1035
|
+
isPlaceholderData: false;
|
|
1036
|
+
status: "success";
|
|
1037
|
+
fetchPreviousPage: (options?: import("@tanstack/query-core").FetchPreviousPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
1038
|
+
subscriptions: Reader.SiteSubscriptionsResponseItem[];
|
|
1039
|
+
page: number;
|
|
1040
|
+
total_subscriptions: number;
|
|
1041
|
+
}, unknown>, Error>>;
|
|
1042
|
+
hasPreviousPage: boolean;
|
|
1043
|
+
isFetchingPreviousPage: boolean;
|
|
1044
|
+
dataUpdatedAt: number;
|
|
1045
|
+
errorUpdatedAt: number;
|
|
1046
|
+
failureCount: number;
|
|
1047
|
+
failureReason: Error | null;
|
|
1048
|
+
errorUpdateCount: number;
|
|
1049
|
+
isFetched: boolean;
|
|
1050
|
+
isFetchedAfterMount: boolean;
|
|
1051
|
+
isInitialLoading: boolean;
|
|
1052
|
+
isPaused: boolean;
|
|
1053
|
+
isRefetching: boolean;
|
|
1054
|
+
isStale: boolean;
|
|
1055
|
+
isEnabled: boolean;
|
|
1056
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
1057
|
+
subscriptions: Reader.SiteSubscriptionsResponseItem[];
|
|
1058
|
+
page: number;
|
|
1059
|
+
total_subscriptions: number;
|
|
1060
|
+
}, unknown>, Error>>;
|
|
1061
|
+
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
1062
|
+
promise: Promise<import("@tanstack/query-core").InfiniteData<{
|
|
1063
|
+
subscriptions: Reader.SiteSubscriptionsResponseItem[];
|
|
1064
|
+
page: number;
|
|
1065
|
+
total_subscriptions: number;
|
|
1066
|
+
}, unknown>>;
|
|
1067
|
+
data: {
|
|
1068
|
+
subscriptions: Reader.SiteSubscriptionsResponseItem[];
|
|
1069
|
+
totalCount: number;
|
|
1070
|
+
};
|
|
1071
|
+
isFetchingNextPage: boolean;
|
|
1072
|
+
isFetching: boolean;
|
|
1073
|
+
hasNextPage: boolean;
|
|
1074
|
+
} | {
|
|
1075
|
+
error: Error;
|
|
1076
|
+
isError: true;
|
|
1077
|
+
isPending: false;
|
|
1078
|
+
isLoading: false;
|
|
681
1079
|
isLoadingError: true;
|
|
682
1080
|
isRefetchError: false;
|
|
1081
|
+
isFetchNextPageError: false;
|
|
1082
|
+
isFetchPreviousPageError: false;
|
|
683
1083
|
isSuccess: false;
|
|
1084
|
+
isPlaceholderData: false;
|
|
684
1085
|
status: "error";
|
|
685
1086
|
fetchPreviousPage: (options?: import("@tanstack/query-core").FetchPreviousPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
686
1087
|
subscriptions: Reader.SiteSubscriptionsResponseItem[];
|
|
@@ -696,18 +1097,22 @@ declare const SubscriptionManager: {
|
|
|
696
1097
|
errorUpdateCount: number;
|
|
697
1098
|
isFetched: boolean;
|
|
698
1099
|
isFetchedAfterMount: boolean;
|
|
699
|
-
isLoading: boolean;
|
|
700
1100
|
isInitialLoading: boolean;
|
|
701
1101
|
isPaused: boolean;
|
|
702
|
-
isPlaceholderData: boolean;
|
|
703
1102
|
isRefetching: boolean;
|
|
704
1103
|
isStale: boolean;
|
|
1104
|
+
isEnabled: boolean;
|
|
705
1105
|
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
706
1106
|
subscriptions: Reader.SiteSubscriptionsResponseItem[];
|
|
707
1107
|
page: number;
|
|
708
1108
|
total_subscriptions: number;
|
|
709
1109
|
}, unknown>, Error>>;
|
|
710
1110
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
1111
|
+
promise: Promise<import("@tanstack/query-core").InfiniteData<{
|
|
1112
|
+
subscriptions: Reader.SiteSubscriptionsResponseItem[];
|
|
1113
|
+
page: number;
|
|
1114
|
+
total_subscriptions: number;
|
|
1115
|
+
}, unknown>>;
|
|
711
1116
|
data: {
|
|
712
1117
|
subscriptions: Reader.SiteSubscriptionsResponseItem[];
|
|
713
1118
|
totalCount: number;
|
|
@@ -719,9 +1124,13 @@ declare const SubscriptionManager: {
|
|
|
719
1124
|
error: null;
|
|
720
1125
|
isError: false;
|
|
721
1126
|
isPending: true;
|
|
1127
|
+
isLoading: true;
|
|
722
1128
|
isLoadingError: false;
|
|
723
1129
|
isRefetchError: false;
|
|
1130
|
+
isFetchNextPageError: false;
|
|
1131
|
+
isFetchPreviousPageError: false;
|
|
724
1132
|
isSuccess: false;
|
|
1133
|
+
isPlaceholderData: false;
|
|
725
1134
|
status: "pending";
|
|
726
1135
|
fetchPreviousPage: (options?: import("@tanstack/query-core").FetchPreviousPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
727
1136
|
subscriptions: Reader.SiteSubscriptionsResponseItem[];
|
|
@@ -737,18 +1146,22 @@ declare const SubscriptionManager: {
|
|
|
737
1146
|
errorUpdateCount: number;
|
|
738
1147
|
isFetched: boolean;
|
|
739
1148
|
isFetchedAfterMount: boolean;
|
|
740
|
-
isLoading: boolean;
|
|
741
1149
|
isInitialLoading: boolean;
|
|
742
1150
|
isPaused: boolean;
|
|
743
|
-
isPlaceholderData: boolean;
|
|
744
1151
|
isRefetching: boolean;
|
|
745
1152
|
isStale: boolean;
|
|
1153
|
+
isEnabled: boolean;
|
|
746
1154
|
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
747
1155
|
subscriptions: Reader.SiteSubscriptionsResponseItem[];
|
|
748
1156
|
page: number;
|
|
749
1157
|
total_subscriptions: number;
|
|
750
1158
|
}, unknown>, Error>>;
|
|
751
1159
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
1160
|
+
promise: Promise<import("@tanstack/query-core").InfiniteData<{
|
|
1161
|
+
subscriptions: Reader.SiteSubscriptionsResponseItem[];
|
|
1162
|
+
page: number;
|
|
1163
|
+
total_subscriptions: number;
|
|
1164
|
+
}, unknown>>;
|
|
752
1165
|
data: {
|
|
753
1166
|
subscriptions: Reader.SiteSubscriptionsResponseItem[];
|
|
754
1167
|
totalCount: number;
|
|
@@ -757,13 +1170,16 @@ declare const SubscriptionManager: {
|
|
|
757
1170
|
isFetching: boolean;
|
|
758
1171
|
hasNextPage: boolean;
|
|
759
1172
|
} | {
|
|
760
|
-
error:
|
|
761
|
-
isError:
|
|
762
|
-
isPending:
|
|
1173
|
+
error: null;
|
|
1174
|
+
isError: false;
|
|
1175
|
+
isPending: true;
|
|
763
1176
|
isLoadingError: false;
|
|
764
|
-
isRefetchError:
|
|
1177
|
+
isRefetchError: false;
|
|
1178
|
+
isFetchNextPageError: false;
|
|
1179
|
+
isFetchPreviousPageError: false;
|
|
765
1180
|
isSuccess: false;
|
|
766
|
-
|
|
1181
|
+
isPlaceholderData: false;
|
|
1182
|
+
status: "pending";
|
|
767
1183
|
fetchPreviousPage: (options?: import("@tanstack/query-core").FetchPreviousPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
768
1184
|
subscriptions: Reader.SiteSubscriptionsResponseItem[];
|
|
769
1185
|
page: number;
|
|
@@ -781,15 +1197,20 @@ declare const SubscriptionManager: {
|
|
|
781
1197
|
isLoading: boolean;
|
|
782
1198
|
isInitialLoading: boolean;
|
|
783
1199
|
isPaused: boolean;
|
|
784
|
-
isPlaceholderData: boolean;
|
|
785
1200
|
isRefetching: boolean;
|
|
786
1201
|
isStale: boolean;
|
|
1202
|
+
isEnabled: boolean;
|
|
787
1203
|
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
788
1204
|
subscriptions: Reader.SiteSubscriptionsResponseItem[];
|
|
789
1205
|
page: number;
|
|
790
1206
|
total_subscriptions: number;
|
|
791
1207
|
}, unknown>, Error>>;
|
|
792
1208
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
1209
|
+
promise: Promise<import("@tanstack/query-core").InfiniteData<{
|
|
1210
|
+
subscriptions: Reader.SiteSubscriptionsResponseItem[];
|
|
1211
|
+
page: number;
|
|
1212
|
+
total_subscriptions: number;
|
|
1213
|
+
}, unknown>>;
|
|
793
1214
|
data: {
|
|
794
1215
|
subscriptions: Reader.SiteSubscriptionsResponseItem[];
|
|
795
1216
|
totalCount: number;
|
|
@@ -798,12 +1219,16 @@ declare const SubscriptionManager: {
|
|
|
798
1219
|
isFetching: boolean;
|
|
799
1220
|
hasNextPage: boolean;
|
|
800
1221
|
} | {
|
|
801
|
-
error: null;
|
|
802
1222
|
isError: false;
|
|
1223
|
+
error: null;
|
|
803
1224
|
isPending: false;
|
|
1225
|
+
isLoading: false;
|
|
804
1226
|
isLoadingError: false;
|
|
805
1227
|
isRefetchError: false;
|
|
806
1228
|
isSuccess: true;
|
|
1229
|
+
isPlaceholderData: true;
|
|
1230
|
+
isFetchNextPageError: false;
|
|
1231
|
+
isFetchPreviousPageError: false;
|
|
807
1232
|
status: "success";
|
|
808
1233
|
fetchPreviousPage: (options?: import("@tanstack/query-core").FetchPreviousPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
809
1234
|
subscriptions: Reader.SiteSubscriptionsResponseItem[];
|
|
@@ -819,18 +1244,22 @@ declare const SubscriptionManager: {
|
|
|
819
1244
|
errorUpdateCount: number;
|
|
820
1245
|
isFetched: boolean;
|
|
821
1246
|
isFetchedAfterMount: boolean;
|
|
822
|
-
isLoading: boolean;
|
|
823
1247
|
isInitialLoading: boolean;
|
|
824
1248
|
isPaused: boolean;
|
|
825
|
-
isPlaceholderData: boolean;
|
|
826
1249
|
isRefetching: boolean;
|
|
827
1250
|
isStale: boolean;
|
|
1251
|
+
isEnabled: boolean;
|
|
828
1252
|
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
829
1253
|
subscriptions: Reader.SiteSubscriptionsResponseItem[];
|
|
830
1254
|
page: number;
|
|
831
1255
|
total_subscriptions: number;
|
|
832
1256
|
}, unknown>, Error>>;
|
|
833
1257
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
1258
|
+
promise: Promise<import("@tanstack/query-core").InfiniteData<{
|
|
1259
|
+
subscriptions: Reader.SiteSubscriptionsResponseItem[];
|
|
1260
|
+
page: number;
|
|
1261
|
+
total_subscriptions: number;
|
|
1262
|
+
}, unknown>>;
|
|
834
1263
|
data: {
|
|
835
1264
|
subscriptions: Reader.SiteSubscriptionsResponseItem[];
|
|
836
1265
|
totalCount: number;
|
|
@@ -857,6 +1286,8 @@ declare const SubscriptionManager: {
|
|
|
857
1286
|
blog_id?: number | string;
|
|
858
1287
|
doNotInvalidateSiteSubscriptions?: boolean;
|
|
859
1288
|
emailId?: string;
|
|
1289
|
+
onSuccess?: () => void;
|
|
1290
|
+
onError?: (e: Error) => void;
|
|
860
1291
|
}, {
|
|
861
1292
|
previousSiteSubscriptions: Reader.SiteSubscriptionsPages | undefined;
|
|
862
1293
|
previousSubscriptionsCount: Reader.SubscriptionManagerSubscriptionsCount | undefined;
|
|
@@ -886,7 +1317,7 @@ declare const SubscriptionManager: {
|
|
|
886
1317
|
email: string;
|
|
887
1318
|
}>, Error>;
|
|
888
1319
|
};
|
|
889
|
-
export { AddOns,
|
|
1320
|
+
export { AddOns, User, HelpCenter, Site, Plans, Purchases, WpcomPlansUI, Onboard, ProductsList, Reader, StepperInternal, Subscriber, SubscriptionManager, };
|
|
890
1321
|
/**
|
|
891
1322
|
* Helper types
|
|
892
1323
|
*/
|
|
@@ -896,10 +1327,11 @@ export type { Section } from './contextual-help/contextual-help';
|
|
|
896
1327
|
export { generateAdminSections } from './contextual-help/admin-sections';
|
|
897
1328
|
export type { LinksForSection } from './contextual-help/contextual-help';
|
|
898
1329
|
export * from './contextual-help/constants';
|
|
899
|
-
export type { HelpCenterSite, HelpCenterSelect } from './help-center/types';
|
|
1330
|
+
export type { HelpCenterSite, HelpCenterSelect, Dispatch as HelpCenterDispatch, } from './help-center/types';
|
|
900
1331
|
export type { OnboardSelect, OnboardActions } from './onboard';
|
|
901
1332
|
export type { StepperInternalSelect } from './stepper-internal';
|
|
902
1333
|
export type { SiteActions } from './site';
|
|
903
1334
|
export type { UserActions } from './user';
|
|
904
1335
|
export type { Member, UseQuery, UsersQuery } from './users/types';
|
|
1336
|
+
export { isInSupportSession } from './help-center';
|
|
905
1337
|
//# sourceMappingURL=index.d.ts.map
|