@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
|
@@ -30,9 +30,11 @@ export declare const SubscriptionManager: {
|
|
|
30
30
|
error: Error;
|
|
31
31
|
isError: true;
|
|
32
32
|
isPending: false;
|
|
33
|
+
isLoading: false;
|
|
33
34
|
isLoadingError: false;
|
|
34
35
|
isRefetchError: true;
|
|
35
36
|
isSuccess: false;
|
|
37
|
+
isPlaceholderData: false;
|
|
36
38
|
status: "error";
|
|
37
39
|
dataUpdatedAt: number;
|
|
38
40
|
errorUpdatedAt: number;
|
|
@@ -42,14 +44,14 @@ export declare const SubscriptionManager: {
|
|
|
42
44
|
isFetched: boolean;
|
|
43
45
|
isFetchedAfterMount: boolean;
|
|
44
46
|
isFetching: boolean;
|
|
45
|
-
isLoading: boolean;
|
|
46
47
|
isInitialLoading: boolean;
|
|
47
48
|
isPaused: boolean;
|
|
48
|
-
isPlaceholderData: boolean;
|
|
49
49
|
isRefetching: boolean;
|
|
50
50
|
isStale: boolean;
|
|
51
|
+
isEnabled: boolean;
|
|
51
52
|
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("./types").PendingPostSubscriptionsResult, Error>>;
|
|
52
53
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
54
|
+
promise: Promise<import("./types").PendingPostSubscriptionsResult>;
|
|
53
55
|
data: {
|
|
54
56
|
pendingPosts: import("./types").PendingPostSubscription[] | undefined;
|
|
55
57
|
totalCount: number | undefined;
|
|
@@ -58,9 +60,11 @@ export declare const SubscriptionManager: {
|
|
|
58
60
|
error: null;
|
|
59
61
|
isError: false;
|
|
60
62
|
isPending: false;
|
|
63
|
+
isLoading: false;
|
|
61
64
|
isLoadingError: false;
|
|
62
65
|
isRefetchError: false;
|
|
63
66
|
isSuccess: true;
|
|
67
|
+
isPlaceholderData: false;
|
|
64
68
|
status: "success";
|
|
65
69
|
dataUpdatedAt: number;
|
|
66
70
|
errorUpdatedAt: number;
|
|
@@ -70,14 +74,14 @@ export declare const SubscriptionManager: {
|
|
|
70
74
|
isFetched: boolean;
|
|
71
75
|
isFetchedAfterMount: boolean;
|
|
72
76
|
isFetching: boolean;
|
|
73
|
-
isLoading: boolean;
|
|
74
77
|
isInitialLoading: boolean;
|
|
75
78
|
isPaused: boolean;
|
|
76
|
-
isPlaceholderData: boolean;
|
|
77
79
|
isRefetching: boolean;
|
|
78
80
|
isStale: boolean;
|
|
81
|
+
isEnabled: boolean;
|
|
79
82
|
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("./types").PendingPostSubscriptionsResult, Error>>;
|
|
80
83
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
84
|
+
promise: Promise<import("./types").PendingPostSubscriptionsResult>;
|
|
81
85
|
data: {
|
|
82
86
|
pendingPosts: import("./types").PendingPostSubscription[] | undefined;
|
|
83
87
|
totalCount: number | undefined;
|
|
@@ -86,9 +90,11 @@ export declare const SubscriptionManager: {
|
|
|
86
90
|
error: Error;
|
|
87
91
|
isError: true;
|
|
88
92
|
isPending: false;
|
|
93
|
+
isLoading: false;
|
|
89
94
|
isLoadingError: true;
|
|
90
95
|
isRefetchError: false;
|
|
91
96
|
isSuccess: false;
|
|
97
|
+
isPlaceholderData: false;
|
|
92
98
|
status: "error";
|
|
93
99
|
dataUpdatedAt: number;
|
|
94
100
|
errorUpdatedAt: number;
|
|
@@ -98,14 +104,14 @@ export declare const SubscriptionManager: {
|
|
|
98
104
|
isFetched: boolean;
|
|
99
105
|
isFetchedAfterMount: boolean;
|
|
100
106
|
isFetching: boolean;
|
|
101
|
-
isLoading: boolean;
|
|
102
107
|
isInitialLoading: boolean;
|
|
103
108
|
isPaused: boolean;
|
|
104
|
-
isPlaceholderData: boolean;
|
|
105
109
|
isRefetching: boolean;
|
|
106
110
|
isStale: boolean;
|
|
111
|
+
isEnabled: boolean;
|
|
107
112
|
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("./types").PendingPostSubscriptionsResult, Error>>;
|
|
108
113
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
114
|
+
promise: Promise<import("./types").PendingPostSubscriptionsResult>;
|
|
109
115
|
data: {
|
|
110
116
|
pendingPosts: import("./types").PendingPostSubscription[] | undefined;
|
|
111
117
|
totalCount: number | undefined;
|
|
@@ -114,9 +120,40 @@ export declare const SubscriptionManager: {
|
|
|
114
120
|
error: null;
|
|
115
121
|
isError: false;
|
|
116
122
|
isPending: true;
|
|
123
|
+
isLoading: true;
|
|
117
124
|
isLoadingError: false;
|
|
118
125
|
isRefetchError: false;
|
|
119
126
|
isSuccess: false;
|
|
127
|
+
isPlaceholderData: false;
|
|
128
|
+
status: "pending";
|
|
129
|
+
dataUpdatedAt: number;
|
|
130
|
+
errorUpdatedAt: number;
|
|
131
|
+
failureCount: number;
|
|
132
|
+
failureReason: Error | null;
|
|
133
|
+
errorUpdateCount: number;
|
|
134
|
+
isFetched: boolean;
|
|
135
|
+
isFetchedAfterMount: boolean;
|
|
136
|
+
isFetching: boolean;
|
|
137
|
+
isInitialLoading: boolean;
|
|
138
|
+
isPaused: boolean;
|
|
139
|
+
isRefetching: boolean;
|
|
140
|
+
isStale: boolean;
|
|
141
|
+
isEnabled: boolean;
|
|
142
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("./types").PendingPostSubscriptionsResult, Error>>;
|
|
143
|
+
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
144
|
+
promise: Promise<import("./types").PendingPostSubscriptionsResult>;
|
|
145
|
+
data: {
|
|
146
|
+
pendingPosts: import("./types").PendingPostSubscription[] | undefined;
|
|
147
|
+
totalCount: number | undefined;
|
|
148
|
+
};
|
|
149
|
+
} | {
|
|
150
|
+
error: null;
|
|
151
|
+
isError: false;
|
|
152
|
+
isPending: true;
|
|
153
|
+
isLoadingError: false;
|
|
154
|
+
isRefetchError: false;
|
|
155
|
+
isSuccess: false;
|
|
156
|
+
isPlaceholderData: false;
|
|
120
157
|
status: "pending";
|
|
121
158
|
dataUpdatedAt: number;
|
|
122
159
|
errorUpdatedAt: number;
|
|
@@ -129,11 +166,42 @@ export declare const SubscriptionManager: {
|
|
|
129
166
|
isLoading: boolean;
|
|
130
167
|
isInitialLoading: boolean;
|
|
131
168
|
isPaused: boolean;
|
|
132
|
-
isPlaceholderData: boolean;
|
|
133
169
|
isRefetching: boolean;
|
|
134
170
|
isStale: boolean;
|
|
171
|
+
isEnabled: boolean;
|
|
135
172
|
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("./types").PendingPostSubscriptionsResult, Error>>;
|
|
136
173
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
174
|
+
promise: Promise<import("./types").PendingPostSubscriptionsResult>;
|
|
175
|
+
data: {
|
|
176
|
+
pendingPosts: import("./types").PendingPostSubscription[] | undefined;
|
|
177
|
+
totalCount: number | undefined;
|
|
178
|
+
};
|
|
179
|
+
} | {
|
|
180
|
+
isError: false;
|
|
181
|
+
error: null;
|
|
182
|
+
isPending: false;
|
|
183
|
+
isLoading: false;
|
|
184
|
+
isLoadingError: false;
|
|
185
|
+
isRefetchError: false;
|
|
186
|
+
isSuccess: true;
|
|
187
|
+
isPlaceholderData: true;
|
|
188
|
+
status: "success";
|
|
189
|
+
dataUpdatedAt: number;
|
|
190
|
+
errorUpdatedAt: number;
|
|
191
|
+
failureCount: number;
|
|
192
|
+
failureReason: Error | null;
|
|
193
|
+
errorUpdateCount: number;
|
|
194
|
+
isFetched: boolean;
|
|
195
|
+
isFetchedAfterMount: boolean;
|
|
196
|
+
isFetching: boolean;
|
|
197
|
+
isInitialLoading: boolean;
|
|
198
|
+
isPaused: boolean;
|
|
199
|
+
isRefetching: boolean;
|
|
200
|
+
isStale: boolean;
|
|
201
|
+
isEnabled: boolean;
|
|
202
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("./types").PendingPostSubscriptionsResult, Error>>;
|
|
203
|
+
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
204
|
+
promise: Promise<import("./types").PendingPostSubscriptionsResult>;
|
|
137
205
|
data: {
|
|
138
206
|
pendingPosts: import("./types").PendingPostSubscription[] | undefined;
|
|
139
207
|
totalCount: number | undefined;
|
|
@@ -163,9 +231,11 @@ export declare const SubscriptionManager: {
|
|
|
163
231
|
error: Error;
|
|
164
232
|
isError: true;
|
|
165
233
|
isPending: false;
|
|
234
|
+
isLoading: false;
|
|
166
235
|
isLoadingError: false;
|
|
167
236
|
isRefetchError: true;
|
|
168
237
|
isSuccess: false;
|
|
238
|
+
isPlaceholderData: false;
|
|
169
239
|
status: "error";
|
|
170
240
|
dataUpdatedAt: number;
|
|
171
241
|
errorUpdatedAt: number;
|
|
@@ -175,14 +245,14 @@ export declare const SubscriptionManager: {
|
|
|
175
245
|
isFetched: boolean;
|
|
176
246
|
isFetchedAfterMount: boolean;
|
|
177
247
|
isFetching: boolean;
|
|
178
|
-
isLoading: boolean;
|
|
179
248
|
isInitialLoading: boolean;
|
|
180
249
|
isPaused: boolean;
|
|
181
|
-
isPlaceholderData: boolean;
|
|
182
250
|
isRefetching: boolean;
|
|
183
251
|
isStale: boolean;
|
|
252
|
+
isEnabled: boolean;
|
|
184
253
|
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("./types").PendingSiteSubscriptionsResult, Error>>;
|
|
185
254
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
255
|
+
promise: Promise<import("./types").PendingSiteSubscriptionsResult>;
|
|
186
256
|
data: {
|
|
187
257
|
pendingSites: import("./types").PendingSiteSubscription[] | undefined;
|
|
188
258
|
totalCount: number | undefined;
|
|
@@ -191,9 +261,11 @@ export declare const SubscriptionManager: {
|
|
|
191
261
|
error: null;
|
|
192
262
|
isError: false;
|
|
193
263
|
isPending: false;
|
|
264
|
+
isLoading: false;
|
|
194
265
|
isLoadingError: false;
|
|
195
266
|
isRefetchError: false;
|
|
196
267
|
isSuccess: true;
|
|
268
|
+
isPlaceholderData: false;
|
|
197
269
|
status: "success";
|
|
198
270
|
dataUpdatedAt: number;
|
|
199
271
|
errorUpdatedAt: number;
|
|
@@ -203,14 +275,14 @@ export declare const SubscriptionManager: {
|
|
|
203
275
|
isFetched: boolean;
|
|
204
276
|
isFetchedAfterMount: boolean;
|
|
205
277
|
isFetching: boolean;
|
|
206
|
-
isLoading: boolean;
|
|
207
278
|
isInitialLoading: boolean;
|
|
208
279
|
isPaused: boolean;
|
|
209
|
-
isPlaceholderData: boolean;
|
|
210
280
|
isRefetching: boolean;
|
|
211
281
|
isStale: boolean;
|
|
282
|
+
isEnabled: boolean;
|
|
212
283
|
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("./types").PendingSiteSubscriptionsResult, Error>>;
|
|
213
284
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
285
|
+
promise: Promise<import("./types").PendingSiteSubscriptionsResult>;
|
|
214
286
|
data: {
|
|
215
287
|
pendingSites: import("./types").PendingSiteSubscription[] | undefined;
|
|
216
288
|
totalCount: number | undefined;
|
|
@@ -219,9 +291,11 @@ export declare const SubscriptionManager: {
|
|
|
219
291
|
error: Error;
|
|
220
292
|
isError: true;
|
|
221
293
|
isPending: false;
|
|
294
|
+
isLoading: false;
|
|
222
295
|
isLoadingError: true;
|
|
223
296
|
isRefetchError: false;
|
|
224
297
|
isSuccess: false;
|
|
298
|
+
isPlaceholderData: false;
|
|
225
299
|
status: "error";
|
|
226
300
|
dataUpdatedAt: number;
|
|
227
301
|
errorUpdatedAt: number;
|
|
@@ -231,14 +305,44 @@ export declare const SubscriptionManager: {
|
|
|
231
305
|
isFetched: boolean;
|
|
232
306
|
isFetchedAfterMount: boolean;
|
|
233
307
|
isFetching: boolean;
|
|
234
|
-
isLoading: boolean;
|
|
235
308
|
isInitialLoading: boolean;
|
|
236
309
|
isPaused: boolean;
|
|
237
|
-
isPlaceholderData: boolean;
|
|
238
310
|
isRefetching: boolean;
|
|
239
311
|
isStale: boolean;
|
|
312
|
+
isEnabled: boolean;
|
|
313
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("./types").PendingSiteSubscriptionsResult, Error>>;
|
|
314
|
+
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
315
|
+
promise: Promise<import("./types").PendingSiteSubscriptionsResult>;
|
|
316
|
+
data: {
|
|
317
|
+
pendingSites: import("./types").PendingSiteSubscription[] | undefined;
|
|
318
|
+
totalCount: number | undefined;
|
|
319
|
+
};
|
|
320
|
+
} | {
|
|
321
|
+
error: null;
|
|
322
|
+
isError: false;
|
|
323
|
+
isPending: true;
|
|
324
|
+
isLoading: true;
|
|
325
|
+
isLoadingError: false;
|
|
326
|
+
isRefetchError: false;
|
|
327
|
+
isSuccess: false;
|
|
328
|
+
isPlaceholderData: false;
|
|
329
|
+
status: "pending";
|
|
330
|
+
dataUpdatedAt: number;
|
|
331
|
+
errorUpdatedAt: number;
|
|
332
|
+
failureCount: number;
|
|
333
|
+
failureReason: Error | null;
|
|
334
|
+
errorUpdateCount: number;
|
|
335
|
+
isFetched: boolean;
|
|
336
|
+
isFetchedAfterMount: boolean;
|
|
337
|
+
isFetching: boolean;
|
|
338
|
+
isInitialLoading: boolean;
|
|
339
|
+
isPaused: boolean;
|
|
340
|
+
isRefetching: boolean;
|
|
341
|
+
isStale: boolean;
|
|
342
|
+
isEnabled: boolean;
|
|
240
343
|
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("./types").PendingSiteSubscriptionsResult, Error>>;
|
|
241
344
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
345
|
+
promise: Promise<import("./types").PendingSiteSubscriptionsResult>;
|
|
242
346
|
data: {
|
|
243
347
|
pendingSites: import("./types").PendingSiteSubscription[] | undefined;
|
|
244
348
|
totalCount: number | undefined;
|
|
@@ -250,6 +354,7 @@ export declare const SubscriptionManager: {
|
|
|
250
354
|
isLoadingError: false;
|
|
251
355
|
isRefetchError: false;
|
|
252
356
|
isSuccess: false;
|
|
357
|
+
isPlaceholderData: false;
|
|
253
358
|
status: "pending";
|
|
254
359
|
dataUpdatedAt: number;
|
|
255
360
|
errorUpdatedAt: number;
|
|
@@ -262,11 +367,42 @@ export declare const SubscriptionManager: {
|
|
|
262
367
|
isLoading: boolean;
|
|
263
368
|
isInitialLoading: boolean;
|
|
264
369
|
isPaused: boolean;
|
|
265
|
-
isPlaceholderData: boolean;
|
|
266
370
|
isRefetching: boolean;
|
|
267
371
|
isStale: boolean;
|
|
372
|
+
isEnabled: boolean;
|
|
268
373
|
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("./types").PendingSiteSubscriptionsResult, Error>>;
|
|
269
374
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
375
|
+
promise: Promise<import("./types").PendingSiteSubscriptionsResult>;
|
|
376
|
+
data: {
|
|
377
|
+
pendingSites: import("./types").PendingSiteSubscription[] | undefined;
|
|
378
|
+
totalCount: number | undefined;
|
|
379
|
+
};
|
|
380
|
+
} | {
|
|
381
|
+
isError: false;
|
|
382
|
+
error: null;
|
|
383
|
+
isPending: false;
|
|
384
|
+
isLoading: false;
|
|
385
|
+
isLoadingError: false;
|
|
386
|
+
isRefetchError: false;
|
|
387
|
+
isSuccess: true;
|
|
388
|
+
isPlaceholderData: true;
|
|
389
|
+
status: "success";
|
|
390
|
+
dataUpdatedAt: number;
|
|
391
|
+
errorUpdatedAt: number;
|
|
392
|
+
failureCount: number;
|
|
393
|
+
failureReason: Error | null;
|
|
394
|
+
errorUpdateCount: number;
|
|
395
|
+
isFetched: boolean;
|
|
396
|
+
isFetchedAfterMount: boolean;
|
|
397
|
+
isFetching: boolean;
|
|
398
|
+
isInitialLoading: boolean;
|
|
399
|
+
isPaused: boolean;
|
|
400
|
+
isRefetching: boolean;
|
|
401
|
+
isStale: boolean;
|
|
402
|
+
isEnabled: boolean;
|
|
403
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("./types").PendingSiteSubscriptionsResult, Error>>;
|
|
404
|
+
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
405
|
+
promise: Promise<import("./types").PendingSiteSubscriptionsResult>;
|
|
270
406
|
data: {
|
|
271
407
|
pendingSites: import("./types").PendingSiteSubscription[] | undefined;
|
|
272
408
|
totalCount: number | undefined;
|
|
@@ -315,9 +451,151 @@ export declare const SubscriptionManager: {
|
|
|
315
451
|
error: Error;
|
|
316
452
|
isError: true;
|
|
317
453
|
isPending: false;
|
|
454
|
+
isLoading: false;
|
|
455
|
+
isLoadingError: false;
|
|
456
|
+
isRefetchError: true;
|
|
457
|
+
isSuccess: false;
|
|
458
|
+
isPlaceholderData: false;
|
|
459
|
+
status: "error";
|
|
460
|
+
fetchNextPage: (options?: import("@tanstack/query-core").FetchNextPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
461
|
+
comment_subscriptions: import("./types").PostSubscription[];
|
|
462
|
+
total_comment_subscriptions_count: number;
|
|
463
|
+
}, unknown>, Error>>;
|
|
464
|
+
fetchPreviousPage: (options?: import("@tanstack/query-core").FetchPreviousPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
465
|
+
comment_subscriptions: import("./types").PostSubscription[];
|
|
466
|
+
total_comment_subscriptions_count: number;
|
|
467
|
+
}, unknown>, Error>>;
|
|
468
|
+
hasPreviousPage: boolean;
|
|
469
|
+
isFetchNextPageError: boolean;
|
|
470
|
+
isFetchPreviousPageError: boolean;
|
|
471
|
+
isFetchingPreviousPage: boolean;
|
|
472
|
+
dataUpdatedAt: number;
|
|
473
|
+
errorUpdatedAt: number;
|
|
474
|
+
failureCount: number;
|
|
475
|
+
failureReason: Error | null;
|
|
476
|
+
errorUpdateCount: number;
|
|
477
|
+
isFetched: boolean;
|
|
478
|
+
isFetchedAfterMount: boolean;
|
|
479
|
+
isInitialLoading: boolean;
|
|
480
|
+
isPaused: boolean;
|
|
481
|
+
isRefetching: boolean;
|
|
482
|
+
isStale: boolean;
|
|
483
|
+
isEnabled: boolean;
|
|
484
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
485
|
+
comment_subscriptions: import("./types").PostSubscription[];
|
|
486
|
+
total_comment_subscriptions_count: number;
|
|
487
|
+
}, unknown>, Error>>;
|
|
488
|
+
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
489
|
+
promise: Promise<import("@tanstack/query-core").InfiniteData<{
|
|
490
|
+
comment_subscriptions: import("./types").PostSubscription[];
|
|
491
|
+
total_comment_subscriptions_count: number;
|
|
492
|
+
}, unknown>>;
|
|
493
|
+
} | {
|
|
494
|
+
data: {
|
|
495
|
+
posts: {
|
|
496
|
+
date_subscribed: Date;
|
|
497
|
+
id: string;
|
|
498
|
+
blog_id: string;
|
|
499
|
+
site_id: string;
|
|
500
|
+
site_title: string;
|
|
501
|
+
site_icon: string;
|
|
502
|
+
site_url: string;
|
|
503
|
+
domain: string;
|
|
504
|
+
is_wpforteams_site: boolean;
|
|
505
|
+
is_paid_subscription: boolean;
|
|
506
|
+
organization_id: number;
|
|
507
|
+
post_id: number;
|
|
508
|
+
post_title: string;
|
|
509
|
+
post_excerpt: string;
|
|
510
|
+
post_url: string;
|
|
511
|
+
notification: {
|
|
512
|
+
send_comments: boolean;
|
|
513
|
+
};
|
|
514
|
+
}[] | undefined;
|
|
515
|
+
totalCount: number;
|
|
516
|
+
};
|
|
517
|
+
isFetchingNextPage: boolean;
|
|
518
|
+
isFetching: boolean;
|
|
519
|
+
hasNextPage: boolean;
|
|
520
|
+
error: null;
|
|
521
|
+
isError: false;
|
|
522
|
+
isPending: false;
|
|
523
|
+
isLoading: false;
|
|
524
|
+
isLoadingError: false;
|
|
525
|
+
isRefetchError: false;
|
|
526
|
+
isFetchNextPageError: false;
|
|
527
|
+
isFetchPreviousPageError: false;
|
|
528
|
+
isSuccess: true;
|
|
529
|
+
isPlaceholderData: false;
|
|
530
|
+
status: "success";
|
|
531
|
+
fetchNextPage: (options?: import("@tanstack/query-core").FetchNextPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
532
|
+
comment_subscriptions: import("./types").PostSubscription[];
|
|
533
|
+
total_comment_subscriptions_count: number;
|
|
534
|
+
}, unknown>, Error>>;
|
|
535
|
+
fetchPreviousPage: (options?: import("@tanstack/query-core").FetchPreviousPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
536
|
+
comment_subscriptions: import("./types").PostSubscription[];
|
|
537
|
+
total_comment_subscriptions_count: number;
|
|
538
|
+
}, unknown>, Error>>;
|
|
539
|
+
hasPreviousPage: boolean;
|
|
540
|
+
isFetchingPreviousPage: boolean;
|
|
541
|
+
dataUpdatedAt: number;
|
|
542
|
+
errorUpdatedAt: number;
|
|
543
|
+
failureCount: number;
|
|
544
|
+
failureReason: Error | null;
|
|
545
|
+
errorUpdateCount: number;
|
|
546
|
+
isFetched: boolean;
|
|
547
|
+
isFetchedAfterMount: boolean;
|
|
548
|
+
isInitialLoading: boolean;
|
|
549
|
+
isPaused: boolean;
|
|
550
|
+
isRefetching: boolean;
|
|
551
|
+
isStale: boolean;
|
|
552
|
+
isEnabled: boolean;
|
|
553
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
554
|
+
comment_subscriptions: import("./types").PostSubscription[];
|
|
555
|
+
total_comment_subscriptions_count: number;
|
|
556
|
+
}, unknown>, Error>>;
|
|
557
|
+
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
558
|
+
promise: Promise<import("@tanstack/query-core").InfiniteData<{
|
|
559
|
+
comment_subscriptions: import("./types").PostSubscription[];
|
|
560
|
+
total_comment_subscriptions_count: number;
|
|
561
|
+
}, unknown>>;
|
|
562
|
+
} | {
|
|
563
|
+
data: {
|
|
564
|
+
posts: {
|
|
565
|
+
date_subscribed: Date;
|
|
566
|
+
id: string;
|
|
567
|
+
blog_id: string;
|
|
568
|
+
site_id: string;
|
|
569
|
+
site_title: string;
|
|
570
|
+
site_icon: string;
|
|
571
|
+
site_url: string;
|
|
572
|
+
domain: string;
|
|
573
|
+
is_wpforteams_site: boolean;
|
|
574
|
+
is_paid_subscription: boolean;
|
|
575
|
+
organization_id: number;
|
|
576
|
+
post_id: number;
|
|
577
|
+
post_title: string;
|
|
578
|
+
post_excerpt: string;
|
|
579
|
+
post_url: string;
|
|
580
|
+
notification: {
|
|
581
|
+
send_comments: boolean;
|
|
582
|
+
};
|
|
583
|
+
}[] | undefined;
|
|
584
|
+
totalCount: number;
|
|
585
|
+
};
|
|
586
|
+
isFetchingNextPage: boolean;
|
|
587
|
+
isFetching: boolean;
|
|
588
|
+
hasNextPage: boolean;
|
|
589
|
+
error: Error;
|
|
590
|
+
isError: true;
|
|
591
|
+
isPending: false;
|
|
592
|
+
isLoading: false;
|
|
318
593
|
isLoadingError: true;
|
|
319
594
|
isRefetchError: false;
|
|
595
|
+
isFetchNextPageError: false;
|
|
596
|
+
isFetchPreviousPageError: false;
|
|
320
597
|
isSuccess: false;
|
|
598
|
+
isPlaceholderData: false;
|
|
321
599
|
status: "error";
|
|
322
600
|
fetchNextPage: (options?: import("@tanstack/query-core").FetchNextPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
323
601
|
comment_subscriptions: import("./types").PostSubscription[];
|
|
@@ -336,17 +614,20 @@ export declare const SubscriptionManager: {
|
|
|
336
614
|
errorUpdateCount: number;
|
|
337
615
|
isFetched: boolean;
|
|
338
616
|
isFetchedAfterMount: boolean;
|
|
339
|
-
isLoading: boolean;
|
|
340
617
|
isInitialLoading: boolean;
|
|
341
618
|
isPaused: boolean;
|
|
342
|
-
isPlaceholderData: boolean;
|
|
343
619
|
isRefetching: boolean;
|
|
344
620
|
isStale: boolean;
|
|
621
|
+
isEnabled: boolean;
|
|
345
622
|
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
346
623
|
comment_subscriptions: import("./types").PostSubscription[];
|
|
347
624
|
total_comment_subscriptions_count: number;
|
|
348
625
|
}, unknown>, Error>>;
|
|
349
626
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
627
|
+
promise: Promise<import("@tanstack/query-core").InfiniteData<{
|
|
628
|
+
comment_subscriptions: import("./types").PostSubscription[];
|
|
629
|
+
total_comment_subscriptions_count: number;
|
|
630
|
+
}, unknown>>;
|
|
350
631
|
} | {
|
|
351
632
|
data: {
|
|
352
633
|
posts: {
|
|
@@ -377,9 +658,13 @@ export declare const SubscriptionManager: {
|
|
|
377
658
|
error: null;
|
|
378
659
|
isError: false;
|
|
379
660
|
isPending: true;
|
|
661
|
+
isLoading: true;
|
|
380
662
|
isLoadingError: false;
|
|
381
663
|
isRefetchError: false;
|
|
664
|
+
isFetchNextPageError: false;
|
|
665
|
+
isFetchPreviousPageError: false;
|
|
382
666
|
isSuccess: false;
|
|
667
|
+
isPlaceholderData: false;
|
|
383
668
|
status: "pending";
|
|
384
669
|
fetchNextPage: (options?: import("@tanstack/query-core").FetchNextPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
385
670
|
comment_subscriptions: import("./types").PostSubscription[];
|
|
@@ -398,17 +683,20 @@ export declare const SubscriptionManager: {
|
|
|
398
683
|
errorUpdateCount: number;
|
|
399
684
|
isFetched: boolean;
|
|
400
685
|
isFetchedAfterMount: boolean;
|
|
401
|
-
isLoading: boolean;
|
|
402
686
|
isInitialLoading: boolean;
|
|
403
687
|
isPaused: boolean;
|
|
404
|
-
isPlaceholderData: boolean;
|
|
405
688
|
isRefetching: boolean;
|
|
406
689
|
isStale: boolean;
|
|
690
|
+
isEnabled: boolean;
|
|
407
691
|
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
408
692
|
comment_subscriptions: import("./types").PostSubscription[];
|
|
409
693
|
total_comment_subscriptions_count: number;
|
|
410
694
|
}, unknown>, Error>>;
|
|
411
695
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
696
|
+
promise: Promise<import("@tanstack/query-core").InfiniteData<{
|
|
697
|
+
comment_subscriptions: import("./types").PostSubscription[];
|
|
698
|
+
total_comment_subscriptions_count: number;
|
|
699
|
+
}, unknown>>;
|
|
412
700
|
} | {
|
|
413
701
|
data: {
|
|
414
702
|
posts: {
|
|
@@ -436,13 +724,16 @@ export declare const SubscriptionManager: {
|
|
|
436
724
|
isFetchingNextPage: boolean;
|
|
437
725
|
isFetching: boolean;
|
|
438
726
|
hasNextPage: boolean;
|
|
439
|
-
error:
|
|
440
|
-
isError:
|
|
441
|
-
isPending:
|
|
727
|
+
error: null;
|
|
728
|
+
isError: false;
|
|
729
|
+
isPending: true;
|
|
442
730
|
isLoadingError: false;
|
|
443
|
-
isRefetchError:
|
|
731
|
+
isRefetchError: false;
|
|
732
|
+
isFetchNextPageError: false;
|
|
733
|
+
isFetchPreviousPageError: false;
|
|
444
734
|
isSuccess: false;
|
|
445
|
-
|
|
735
|
+
isPlaceholderData: false;
|
|
736
|
+
status: "pending";
|
|
446
737
|
fetchNextPage: (options?: import("@tanstack/query-core").FetchNextPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
447
738
|
comment_subscriptions: import("./types").PostSubscription[];
|
|
448
739
|
total_comment_subscriptions_count: number;
|
|
@@ -463,14 +754,18 @@ export declare const SubscriptionManager: {
|
|
|
463
754
|
isLoading: boolean;
|
|
464
755
|
isInitialLoading: boolean;
|
|
465
756
|
isPaused: boolean;
|
|
466
|
-
isPlaceholderData: boolean;
|
|
467
757
|
isRefetching: boolean;
|
|
468
758
|
isStale: boolean;
|
|
759
|
+
isEnabled: boolean;
|
|
469
760
|
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
470
761
|
comment_subscriptions: import("./types").PostSubscription[];
|
|
471
762
|
total_comment_subscriptions_count: number;
|
|
472
763
|
}, unknown>, Error>>;
|
|
473
764
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
765
|
+
promise: Promise<import("@tanstack/query-core").InfiniteData<{
|
|
766
|
+
comment_subscriptions: import("./types").PostSubscription[];
|
|
767
|
+
total_comment_subscriptions_count: number;
|
|
768
|
+
}, unknown>>;
|
|
474
769
|
} | {
|
|
475
770
|
data: {
|
|
476
771
|
posts: {
|
|
@@ -498,12 +793,16 @@ export declare const SubscriptionManager: {
|
|
|
498
793
|
isFetchingNextPage: boolean;
|
|
499
794
|
isFetching: boolean;
|
|
500
795
|
hasNextPage: boolean;
|
|
501
|
-
error: null;
|
|
502
796
|
isError: false;
|
|
797
|
+
error: null;
|
|
503
798
|
isPending: false;
|
|
799
|
+
isLoading: false;
|
|
504
800
|
isLoadingError: false;
|
|
505
801
|
isRefetchError: false;
|
|
506
802
|
isSuccess: true;
|
|
803
|
+
isPlaceholderData: true;
|
|
804
|
+
isFetchNextPageError: false;
|
|
805
|
+
isFetchPreviousPageError: false;
|
|
507
806
|
status: "success";
|
|
508
807
|
fetchNextPage: (options?: import("@tanstack/query-core").FetchNextPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
509
808
|
comment_subscriptions: import("./types").PostSubscription[];
|
|
@@ -522,17 +821,20 @@ export declare const SubscriptionManager: {
|
|
|
522
821
|
errorUpdateCount: number;
|
|
523
822
|
isFetched: boolean;
|
|
524
823
|
isFetchedAfterMount: boolean;
|
|
525
|
-
isLoading: boolean;
|
|
526
824
|
isInitialLoading: boolean;
|
|
527
825
|
isPaused: boolean;
|
|
528
|
-
isPlaceholderData: boolean;
|
|
529
826
|
isRefetching: boolean;
|
|
530
827
|
isStale: boolean;
|
|
828
|
+
isEnabled: boolean;
|
|
531
829
|
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
532
830
|
comment_subscriptions: import("./types").PostSubscription[];
|
|
533
831
|
total_comment_subscriptions_count: number;
|
|
534
832
|
}, unknown>, Error>>;
|
|
535
833
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
834
|
+
promise: Promise<import("@tanstack/query-core").InfiniteData<{
|
|
835
|
+
comment_subscriptions: import("./types").PostSubscription[];
|
|
836
|
+
total_comment_subscriptions_count: number;
|
|
837
|
+
}, unknown>>;
|
|
536
838
|
};
|
|
537
839
|
usePostUnsubscribeMutation: () => import("@tanstack/react-query").UseMutationResult<{
|
|
538
840
|
success: boolean;
|
|
@@ -630,7 +932,7 @@ export declare const SubscriptionManager: {
|
|
|
630
932
|
url?: string;
|
|
631
933
|
doNotInvalidateSiteSubscriptions?: boolean;
|
|
632
934
|
onSuccess?: () => void;
|
|
633
|
-
onError?: () => void;
|
|
935
|
+
onError?: (e: Error) => void;
|
|
634
936
|
subscriptionId?: number;
|
|
635
937
|
resubscribed?: boolean;
|
|
636
938
|
}, {
|
|
@@ -644,9 +946,111 @@ export declare const SubscriptionManager: {
|
|
|
644
946
|
error: Error;
|
|
645
947
|
isError: true;
|
|
646
948
|
isPending: false;
|
|
949
|
+
isLoading: false;
|
|
950
|
+
isLoadingError: false;
|
|
951
|
+
isRefetchError: true;
|
|
952
|
+
isSuccess: false;
|
|
953
|
+
isPlaceholderData: false;
|
|
954
|
+
status: "error";
|
|
955
|
+
fetchPreviousPage: (options?: import("@tanstack/query-core").FetchPreviousPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
956
|
+
subscriptions: import("./types").SiteSubscriptionsResponseItem[];
|
|
957
|
+
page: number;
|
|
958
|
+
total_subscriptions: number;
|
|
959
|
+
}, unknown>, Error>>;
|
|
960
|
+
hasPreviousPage: boolean;
|
|
961
|
+
isFetchNextPageError: boolean;
|
|
962
|
+
isFetchPreviousPageError: boolean;
|
|
963
|
+
isFetchingPreviousPage: boolean;
|
|
964
|
+
dataUpdatedAt: number;
|
|
965
|
+
errorUpdatedAt: number;
|
|
966
|
+
failureCount: number;
|
|
967
|
+
failureReason: Error | null;
|
|
968
|
+
errorUpdateCount: number;
|
|
969
|
+
isFetched: boolean;
|
|
970
|
+
isFetchedAfterMount: boolean;
|
|
971
|
+
isInitialLoading: boolean;
|
|
972
|
+
isPaused: boolean;
|
|
973
|
+
isRefetching: boolean;
|
|
974
|
+
isStale: boolean;
|
|
975
|
+
isEnabled: boolean;
|
|
976
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
977
|
+
subscriptions: import("./types").SiteSubscriptionsResponseItem[];
|
|
978
|
+
page: number;
|
|
979
|
+
total_subscriptions: number;
|
|
980
|
+
}, unknown>, Error>>;
|
|
981
|
+
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
982
|
+
promise: Promise<import("@tanstack/query-core").InfiniteData<{
|
|
983
|
+
subscriptions: import("./types").SiteSubscriptionsResponseItem[];
|
|
984
|
+
page: number;
|
|
985
|
+
total_subscriptions: number;
|
|
986
|
+
}, unknown>>;
|
|
987
|
+
data: {
|
|
988
|
+
subscriptions: import("./types").SiteSubscriptionsResponseItem[];
|
|
989
|
+
totalCount: number;
|
|
990
|
+
};
|
|
991
|
+
isFetchingNextPage: boolean;
|
|
992
|
+
isFetching: boolean;
|
|
993
|
+
hasNextPage: boolean;
|
|
994
|
+
} | {
|
|
995
|
+
error: null;
|
|
996
|
+
isError: false;
|
|
997
|
+
isPending: false;
|
|
998
|
+
isLoading: false;
|
|
999
|
+
isLoadingError: false;
|
|
1000
|
+
isRefetchError: false;
|
|
1001
|
+
isFetchNextPageError: false;
|
|
1002
|
+
isFetchPreviousPageError: false;
|
|
1003
|
+
isSuccess: true;
|
|
1004
|
+
isPlaceholderData: false;
|
|
1005
|
+
status: "success";
|
|
1006
|
+
fetchPreviousPage: (options?: import("@tanstack/query-core").FetchPreviousPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
1007
|
+
subscriptions: import("./types").SiteSubscriptionsResponseItem[];
|
|
1008
|
+
page: number;
|
|
1009
|
+
total_subscriptions: number;
|
|
1010
|
+
}, unknown>, Error>>;
|
|
1011
|
+
hasPreviousPage: boolean;
|
|
1012
|
+
isFetchingPreviousPage: boolean;
|
|
1013
|
+
dataUpdatedAt: number;
|
|
1014
|
+
errorUpdatedAt: number;
|
|
1015
|
+
failureCount: number;
|
|
1016
|
+
failureReason: Error | null;
|
|
1017
|
+
errorUpdateCount: number;
|
|
1018
|
+
isFetched: boolean;
|
|
1019
|
+
isFetchedAfterMount: boolean;
|
|
1020
|
+
isInitialLoading: boolean;
|
|
1021
|
+
isPaused: boolean;
|
|
1022
|
+
isRefetching: boolean;
|
|
1023
|
+
isStale: boolean;
|
|
1024
|
+
isEnabled: boolean;
|
|
1025
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
1026
|
+
subscriptions: import("./types").SiteSubscriptionsResponseItem[];
|
|
1027
|
+
page: number;
|
|
1028
|
+
total_subscriptions: number;
|
|
1029
|
+
}, unknown>, Error>>;
|
|
1030
|
+
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
1031
|
+
promise: Promise<import("@tanstack/query-core").InfiniteData<{
|
|
1032
|
+
subscriptions: import("./types").SiteSubscriptionsResponseItem[];
|
|
1033
|
+
page: number;
|
|
1034
|
+
total_subscriptions: number;
|
|
1035
|
+
}, unknown>>;
|
|
1036
|
+
data: {
|
|
1037
|
+
subscriptions: import("./types").SiteSubscriptionsResponseItem[];
|
|
1038
|
+
totalCount: number;
|
|
1039
|
+
};
|
|
1040
|
+
isFetchingNextPage: boolean;
|
|
1041
|
+
isFetching: boolean;
|
|
1042
|
+
hasNextPage: boolean;
|
|
1043
|
+
} | {
|
|
1044
|
+
error: Error;
|
|
1045
|
+
isError: true;
|
|
1046
|
+
isPending: false;
|
|
1047
|
+
isLoading: false;
|
|
647
1048
|
isLoadingError: true;
|
|
648
1049
|
isRefetchError: false;
|
|
1050
|
+
isFetchNextPageError: false;
|
|
1051
|
+
isFetchPreviousPageError: false;
|
|
649
1052
|
isSuccess: false;
|
|
1053
|
+
isPlaceholderData: false;
|
|
650
1054
|
status: "error";
|
|
651
1055
|
fetchPreviousPage: (options?: import("@tanstack/query-core").FetchPreviousPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
652
1056
|
subscriptions: import("./types").SiteSubscriptionsResponseItem[];
|
|
@@ -662,18 +1066,22 @@ export declare const SubscriptionManager: {
|
|
|
662
1066
|
errorUpdateCount: number;
|
|
663
1067
|
isFetched: boolean;
|
|
664
1068
|
isFetchedAfterMount: boolean;
|
|
665
|
-
isLoading: boolean;
|
|
666
1069
|
isInitialLoading: boolean;
|
|
667
1070
|
isPaused: boolean;
|
|
668
|
-
isPlaceholderData: boolean;
|
|
669
1071
|
isRefetching: boolean;
|
|
670
1072
|
isStale: boolean;
|
|
1073
|
+
isEnabled: boolean;
|
|
671
1074
|
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
672
1075
|
subscriptions: import("./types").SiteSubscriptionsResponseItem[];
|
|
673
1076
|
page: number;
|
|
674
1077
|
total_subscriptions: number;
|
|
675
1078
|
}, unknown>, Error>>;
|
|
676
1079
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
1080
|
+
promise: Promise<import("@tanstack/query-core").InfiniteData<{
|
|
1081
|
+
subscriptions: import("./types").SiteSubscriptionsResponseItem[];
|
|
1082
|
+
page: number;
|
|
1083
|
+
total_subscriptions: number;
|
|
1084
|
+
}, unknown>>;
|
|
677
1085
|
data: {
|
|
678
1086
|
subscriptions: import("./types").SiteSubscriptionsResponseItem[];
|
|
679
1087
|
totalCount: number;
|
|
@@ -685,9 +1093,13 @@ export declare const SubscriptionManager: {
|
|
|
685
1093
|
error: null;
|
|
686
1094
|
isError: false;
|
|
687
1095
|
isPending: true;
|
|
1096
|
+
isLoading: true;
|
|
688
1097
|
isLoadingError: false;
|
|
689
1098
|
isRefetchError: false;
|
|
1099
|
+
isFetchNextPageError: false;
|
|
1100
|
+
isFetchPreviousPageError: false;
|
|
690
1101
|
isSuccess: false;
|
|
1102
|
+
isPlaceholderData: false;
|
|
691
1103
|
status: "pending";
|
|
692
1104
|
fetchPreviousPage: (options?: import("@tanstack/query-core").FetchPreviousPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
693
1105
|
subscriptions: import("./types").SiteSubscriptionsResponseItem[];
|
|
@@ -703,18 +1115,22 @@ export declare const SubscriptionManager: {
|
|
|
703
1115
|
errorUpdateCount: number;
|
|
704
1116
|
isFetched: boolean;
|
|
705
1117
|
isFetchedAfterMount: boolean;
|
|
706
|
-
isLoading: boolean;
|
|
707
1118
|
isInitialLoading: boolean;
|
|
708
1119
|
isPaused: boolean;
|
|
709
|
-
isPlaceholderData: boolean;
|
|
710
1120
|
isRefetching: boolean;
|
|
711
1121
|
isStale: boolean;
|
|
1122
|
+
isEnabled: boolean;
|
|
712
1123
|
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
713
1124
|
subscriptions: import("./types").SiteSubscriptionsResponseItem[];
|
|
714
1125
|
page: number;
|
|
715
1126
|
total_subscriptions: number;
|
|
716
1127
|
}, unknown>, Error>>;
|
|
717
1128
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
1129
|
+
promise: Promise<import("@tanstack/query-core").InfiniteData<{
|
|
1130
|
+
subscriptions: import("./types").SiteSubscriptionsResponseItem[];
|
|
1131
|
+
page: number;
|
|
1132
|
+
total_subscriptions: number;
|
|
1133
|
+
}, unknown>>;
|
|
718
1134
|
data: {
|
|
719
1135
|
subscriptions: import("./types").SiteSubscriptionsResponseItem[];
|
|
720
1136
|
totalCount: number;
|
|
@@ -723,13 +1139,16 @@ export declare const SubscriptionManager: {
|
|
|
723
1139
|
isFetching: boolean;
|
|
724
1140
|
hasNextPage: boolean;
|
|
725
1141
|
} | {
|
|
726
|
-
error:
|
|
727
|
-
isError:
|
|
728
|
-
isPending:
|
|
1142
|
+
error: null;
|
|
1143
|
+
isError: false;
|
|
1144
|
+
isPending: true;
|
|
729
1145
|
isLoadingError: false;
|
|
730
|
-
isRefetchError:
|
|
1146
|
+
isRefetchError: false;
|
|
1147
|
+
isFetchNextPageError: false;
|
|
1148
|
+
isFetchPreviousPageError: false;
|
|
731
1149
|
isSuccess: false;
|
|
732
|
-
|
|
1150
|
+
isPlaceholderData: false;
|
|
1151
|
+
status: "pending";
|
|
733
1152
|
fetchPreviousPage: (options?: import("@tanstack/query-core").FetchPreviousPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
734
1153
|
subscriptions: import("./types").SiteSubscriptionsResponseItem[];
|
|
735
1154
|
page: number;
|
|
@@ -747,15 +1166,20 @@ export declare const SubscriptionManager: {
|
|
|
747
1166
|
isLoading: boolean;
|
|
748
1167
|
isInitialLoading: boolean;
|
|
749
1168
|
isPaused: boolean;
|
|
750
|
-
isPlaceholderData: boolean;
|
|
751
1169
|
isRefetching: boolean;
|
|
752
1170
|
isStale: boolean;
|
|
1171
|
+
isEnabled: boolean;
|
|
753
1172
|
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
754
1173
|
subscriptions: import("./types").SiteSubscriptionsResponseItem[];
|
|
755
1174
|
page: number;
|
|
756
1175
|
total_subscriptions: number;
|
|
757
1176
|
}, unknown>, Error>>;
|
|
758
1177
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
1178
|
+
promise: Promise<import("@tanstack/query-core").InfiniteData<{
|
|
1179
|
+
subscriptions: import("./types").SiteSubscriptionsResponseItem[];
|
|
1180
|
+
page: number;
|
|
1181
|
+
total_subscriptions: number;
|
|
1182
|
+
}, unknown>>;
|
|
759
1183
|
data: {
|
|
760
1184
|
subscriptions: import("./types").SiteSubscriptionsResponseItem[];
|
|
761
1185
|
totalCount: number;
|
|
@@ -764,12 +1188,16 @@ export declare const SubscriptionManager: {
|
|
|
764
1188
|
isFetching: boolean;
|
|
765
1189
|
hasNextPage: boolean;
|
|
766
1190
|
} | {
|
|
767
|
-
error: null;
|
|
768
1191
|
isError: false;
|
|
1192
|
+
error: null;
|
|
769
1193
|
isPending: false;
|
|
1194
|
+
isLoading: false;
|
|
770
1195
|
isLoadingError: false;
|
|
771
1196
|
isRefetchError: false;
|
|
772
1197
|
isSuccess: true;
|
|
1198
|
+
isPlaceholderData: true;
|
|
1199
|
+
isFetchNextPageError: false;
|
|
1200
|
+
isFetchPreviousPageError: false;
|
|
773
1201
|
status: "success";
|
|
774
1202
|
fetchPreviousPage: (options?: import("@tanstack/query-core").FetchPreviousPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
775
1203
|
subscriptions: import("./types").SiteSubscriptionsResponseItem[];
|
|
@@ -785,18 +1213,22 @@ export declare const SubscriptionManager: {
|
|
|
785
1213
|
errorUpdateCount: number;
|
|
786
1214
|
isFetched: boolean;
|
|
787
1215
|
isFetchedAfterMount: boolean;
|
|
788
|
-
isLoading: boolean;
|
|
789
1216
|
isInitialLoading: boolean;
|
|
790
1217
|
isPaused: boolean;
|
|
791
|
-
isPlaceholderData: boolean;
|
|
792
1218
|
isRefetching: boolean;
|
|
793
1219
|
isStale: boolean;
|
|
1220
|
+
isEnabled: boolean;
|
|
794
1221
|
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
795
1222
|
subscriptions: import("./types").SiteSubscriptionsResponseItem[];
|
|
796
1223
|
page: number;
|
|
797
1224
|
total_subscriptions: number;
|
|
798
1225
|
}, unknown>, Error>>;
|
|
799
1226
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
1227
|
+
promise: Promise<import("@tanstack/query-core").InfiniteData<{
|
|
1228
|
+
subscriptions: import("./types").SiteSubscriptionsResponseItem[];
|
|
1229
|
+
page: number;
|
|
1230
|
+
total_subscriptions: number;
|
|
1231
|
+
}, unknown>>;
|
|
800
1232
|
data: {
|
|
801
1233
|
subscriptions: import("./types").SiteSubscriptionsResponseItem[];
|
|
802
1234
|
totalCount: number;
|
|
@@ -823,6 +1255,8 @@ export declare const SubscriptionManager: {
|
|
|
823
1255
|
blog_id?: number | string;
|
|
824
1256
|
doNotInvalidateSiteSubscriptions?: boolean;
|
|
825
1257
|
emailId?: string;
|
|
1258
|
+
onSuccess?: () => void;
|
|
1259
|
+
onError?: (e: Error) => void;
|
|
826
1260
|
}, {
|
|
827
1261
|
previousSiteSubscriptions: import("./types").SiteSubscriptionsPages | undefined;
|
|
828
1262
|
previousSubscriptionsCount: import("./types").SubscriptionManagerSubscriptionsCount | undefined;
|