@automattic/data-stores 3.1.2 → 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/dist/cjs/contextual-help/admin-sections.js +1 -1
- package/dist/cjs/contextual-help/admin-sections.js.map +1 -1
- package/dist/cjs/help-center/actions.js +79 -49
- package/dist/cjs/help-center/actions.js.map +1 -1
- package/dist/cjs/help-center/reducer.js +19 -10
- package/dist/cjs/help-center/reducer.js.map +1 -1
- package/dist/cjs/help-center/resolvers.js +2 -1
- package/dist/cjs/help-center/resolvers.js.map +1 -1
- package/dist/cjs/help-center/selectors.js +7 -5
- package/dist/cjs/help-center/selectors.js.map +1 -1
- package/dist/cjs/index.js +1 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/onboard/actions.js +11 -1
- package/dist/cjs/onboard/actions.js.map +1 -1
- package/dist/cjs/onboard/reducer.js +23 -1
- package/dist/cjs/onboard/reducer.js.map +1 -1
- package/dist/cjs/onboard/selectors.js +5 -1
- 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/purchases/lib/assembler.js +6 -16
- package/dist/cjs/purchases/lib/assembler.js.map +1 -1
- package/dist/cjs/site/types.js.map +1 -1
- package/dist/esm/contextual-help/admin-sections.js +1 -1
- package/dist/esm/contextual-help/admin-sections.js.map +1 -1
- package/dist/esm/help-center/actions.js +74 -46
- package/dist/esm/help-center/actions.js.map +1 -1
- package/dist/esm/help-center/reducer.js +19 -10
- package/dist/esm/help-center/reducer.js.map +1 -1
- package/dist/esm/help-center/resolvers.js +3 -2
- package/dist/esm/help-center/resolvers.js.map +1 -1
- package/dist/esm/help-center/selectors.js +3 -2
- package/dist/esm/help-center/selectors.js.map +1 -1
- package/dist/esm/index.js +1 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/onboard/actions.js +8 -0
- package/dist/esm/onboard/actions.js.map +1 -1
- package/dist/esm/onboard/reducer.js +20 -0
- package/dist/esm/onboard/reducer.js.map +1 -1
- package/dist/esm/onboard/selectors.js +2 -0
- 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/purchases/lib/assembler.js +6 -16
- package/dist/esm/purchases/lib/assembler.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/help-center/actions.d.ts +30 -14
- package/dist/types/help-center/actions.d.ts.map +1 -1
- package/dist/types/help-center/reducer.d.ts +6 -5
- package/dist/types/help-center/reducer.d.ts.map +1 -1
- package/dist/types/help-center/resolvers.d.ts +16 -8
- package/dist/types/help-center/resolvers.d.ts.map +1 -1
- package/dist/types/help-center/selectors.d.ts +3 -2
- package/dist/types/help-center/selectors.d.ts.map +1 -1
- package/dist/types/help-center/types.d.ts +1 -0
- package/dist/types/help-center/types.d.ts.map +1 -1
- package/dist/types/index.d.ts +473 -43
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/onboard/actions.d.ts +14 -2
- package/dist/types/onboard/actions.d.ts.map +1 -1
- package/dist/types/onboard/reducer.d.ts +7 -1
- package/dist/types/onboard/reducer.d.ts.map +1 -1
- package/dist/types/onboard/selectors.d.ts +6 -2
- 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/types.d.ts +3 -109
- 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-site-domains-query.d.ts +1 -1
- package/dist/types/queries/use-site-domains-query.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 +472 -40
- package/dist/types/reader/index.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/types.d.ts +2 -0
- 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 -33
- package/dist/types/user/types.d.ts.map +1 -1
- package/package.json +4 -8
- package/src/contextual-help/admin-sections.ts +1 -1
- package/src/help-center/actions.ts +85 -50
- package/src/help-center/reducer.ts +27 -15
- package/src/help-center/resolvers.ts +15 -8
- package/src/help-center/selectors.ts +4 -2
- package/src/help-center/types.ts +1 -0
- package/src/index.ts +0 -3
- package/src/onboard/actions.ts +13 -1
- package/src/onboard/reducer.ts +26 -1
- package/src/onboard/selectors.ts +2 -0
- package/src/onboard/types.ts +1 -1
- package/src/plans/queries/use-plans.ts +29 -1
- package/src/purchases/lib/assembler.ts +10 -25
- package/src/purchases/types.ts +4 -116
- package/src/site/types.ts +2 -0
- package/src/user/types.ts +2 -38
- 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/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/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/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,5 +1,4 @@
|
|
|
1
1
|
import * as AddOns from './add-ons';
|
|
2
|
-
import * as DomainSuggestions from './domain-suggestions';
|
|
3
2
|
import * as HelpCenter from './help-center';
|
|
4
3
|
import * as Onboard from './onboard';
|
|
5
4
|
import * as Plans from './plans';
|
|
@@ -19,7 +18,6 @@ export * from './starter-designs-queries';
|
|
|
19
18
|
export * from './site/types';
|
|
20
19
|
export * from './templates';
|
|
21
20
|
export * from './onboard/types';
|
|
22
|
-
export * from './domain-suggestions/types';
|
|
23
21
|
export * from './plans/types';
|
|
24
22
|
export * from './theme';
|
|
25
23
|
export * from './user/types';
|
|
@@ -63,9 +61,11 @@ declare const SubscriptionManager: {
|
|
|
63
61
|
error: Error;
|
|
64
62
|
isError: true;
|
|
65
63
|
isPending: false;
|
|
64
|
+
isLoading: false;
|
|
66
65
|
isLoadingError: false;
|
|
67
66
|
isRefetchError: true;
|
|
68
67
|
isSuccess: false;
|
|
68
|
+
isPlaceholderData: false;
|
|
69
69
|
status: "error";
|
|
70
70
|
dataUpdatedAt: number;
|
|
71
71
|
errorUpdatedAt: number;
|
|
@@ -75,14 +75,14 @@ declare const SubscriptionManager: {
|
|
|
75
75
|
isFetched: boolean;
|
|
76
76
|
isFetchedAfterMount: boolean;
|
|
77
77
|
isFetching: boolean;
|
|
78
|
-
isLoading: boolean;
|
|
79
78
|
isInitialLoading: boolean;
|
|
80
79
|
isPaused: boolean;
|
|
81
|
-
isPlaceholderData: boolean;
|
|
82
80
|
isRefetching: boolean;
|
|
83
81
|
isStale: boolean;
|
|
82
|
+
isEnabled: boolean;
|
|
84
83
|
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<Reader.PendingPostSubscriptionsResult, Error>>;
|
|
85
84
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
85
|
+
promise: Promise<Reader.PendingPostSubscriptionsResult>;
|
|
86
86
|
data: {
|
|
87
87
|
pendingPosts: Reader.PendingPostSubscription[] | undefined;
|
|
88
88
|
totalCount: number | undefined;
|
|
@@ -91,9 +91,11 @@ declare const SubscriptionManager: {
|
|
|
91
91
|
error: null;
|
|
92
92
|
isError: false;
|
|
93
93
|
isPending: false;
|
|
94
|
+
isLoading: false;
|
|
94
95
|
isLoadingError: false;
|
|
95
96
|
isRefetchError: false;
|
|
96
97
|
isSuccess: true;
|
|
98
|
+
isPlaceholderData: false;
|
|
97
99
|
status: "success";
|
|
98
100
|
dataUpdatedAt: number;
|
|
99
101
|
errorUpdatedAt: number;
|
|
@@ -103,14 +105,14 @@ declare const SubscriptionManager: {
|
|
|
103
105
|
isFetched: boolean;
|
|
104
106
|
isFetchedAfterMount: boolean;
|
|
105
107
|
isFetching: boolean;
|
|
106
|
-
isLoading: boolean;
|
|
107
108
|
isInitialLoading: boolean;
|
|
108
109
|
isPaused: boolean;
|
|
109
|
-
isPlaceholderData: boolean;
|
|
110
110
|
isRefetching: boolean;
|
|
111
111
|
isStale: boolean;
|
|
112
|
+
isEnabled: boolean;
|
|
112
113
|
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<Reader.PendingPostSubscriptionsResult, Error>>;
|
|
113
114
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
115
|
+
promise: Promise<Reader.PendingPostSubscriptionsResult>;
|
|
114
116
|
data: {
|
|
115
117
|
pendingPosts: Reader.PendingPostSubscription[] | undefined;
|
|
116
118
|
totalCount: number | undefined;
|
|
@@ -119,9 +121,11 @@ declare const SubscriptionManager: {
|
|
|
119
121
|
error: Error;
|
|
120
122
|
isError: true;
|
|
121
123
|
isPending: false;
|
|
124
|
+
isLoading: false;
|
|
122
125
|
isLoadingError: true;
|
|
123
126
|
isRefetchError: false;
|
|
124
127
|
isSuccess: false;
|
|
128
|
+
isPlaceholderData: false;
|
|
125
129
|
status: "error";
|
|
126
130
|
dataUpdatedAt: number;
|
|
127
131
|
errorUpdatedAt: number;
|
|
@@ -131,14 +135,44 @@ declare const SubscriptionManager: {
|
|
|
131
135
|
isFetched: boolean;
|
|
132
136
|
isFetchedAfterMount: boolean;
|
|
133
137
|
isFetching: boolean;
|
|
134
|
-
isLoading: boolean;
|
|
135
138
|
isInitialLoading: boolean;
|
|
136
139
|
isPaused: boolean;
|
|
137
|
-
isPlaceholderData: boolean;
|
|
138
140
|
isRefetching: boolean;
|
|
139
141
|
isStale: boolean;
|
|
142
|
+
isEnabled: boolean;
|
|
143
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<Reader.PendingPostSubscriptionsResult, Error>>;
|
|
144
|
+
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
145
|
+
promise: Promise<Reader.PendingPostSubscriptionsResult>;
|
|
146
|
+
data: {
|
|
147
|
+
pendingPosts: Reader.PendingPostSubscription[] | undefined;
|
|
148
|
+
totalCount: number | undefined;
|
|
149
|
+
};
|
|
150
|
+
} | {
|
|
151
|
+
error: null;
|
|
152
|
+
isError: false;
|
|
153
|
+
isPending: true;
|
|
154
|
+
isLoading: true;
|
|
155
|
+
isLoadingError: false;
|
|
156
|
+
isRefetchError: false;
|
|
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;
|
|
140
173
|
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<Reader.PendingPostSubscriptionsResult, Error>>;
|
|
141
174
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
175
|
+
promise: Promise<Reader.PendingPostSubscriptionsResult>;
|
|
142
176
|
data: {
|
|
143
177
|
pendingPosts: Reader.PendingPostSubscription[] | undefined;
|
|
144
178
|
totalCount: number | undefined;
|
|
@@ -150,6 +184,7 @@ declare const SubscriptionManager: {
|
|
|
150
184
|
isLoadingError: false;
|
|
151
185
|
isRefetchError: false;
|
|
152
186
|
isSuccess: false;
|
|
187
|
+
isPlaceholderData: false;
|
|
153
188
|
status: "pending";
|
|
154
189
|
dataUpdatedAt: number;
|
|
155
190
|
errorUpdatedAt: number;
|
|
@@ -162,11 +197,42 @@ declare const SubscriptionManager: {
|
|
|
162
197
|
isLoading: boolean;
|
|
163
198
|
isInitialLoading: boolean;
|
|
164
199
|
isPaused: boolean;
|
|
165
|
-
isPlaceholderData: boolean;
|
|
166
200
|
isRefetching: boolean;
|
|
167
201
|
isStale: boolean;
|
|
202
|
+
isEnabled: boolean;
|
|
203
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<Reader.PendingPostSubscriptionsResult, Error>>;
|
|
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;
|
|
168
233
|
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<Reader.PendingPostSubscriptionsResult, Error>>;
|
|
169
234
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
235
|
+
promise: Promise<Reader.PendingPostSubscriptionsResult>;
|
|
170
236
|
data: {
|
|
171
237
|
pendingPosts: Reader.PendingPostSubscription[] | undefined;
|
|
172
238
|
totalCount: number | undefined;
|
|
@@ -196,9 +262,11 @@ declare const SubscriptionManager: {
|
|
|
196
262
|
error: Error;
|
|
197
263
|
isError: true;
|
|
198
264
|
isPending: false;
|
|
265
|
+
isLoading: false;
|
|
199
266
|
isLoadingError: false;
|
|
200
267
|
isRefetchError: true;
|
|
201
268
|
isSuccess: false;
|
|
269
|
+
isPlaceholderData: false;
|
|
202
270
|
status: "error";
|
|
203
271
|
dataUpdatedAt: number;
|
|
204
272
|
errorUpdatedAt: number;
|
|
@@ -208,14 +276,14 @@ declare const SubscriptionManager: {
|
|
|
208
276
|
isFetched: boolean;
|
|
209
277
|
isFetchedAfterMount: boolean;
|
|
210
278
|
isFetching: boolean;
|
|
211
|
-
isLoading: boolean;
|
|
212
279
|
isInitialLoading: boolean;
|
|
213
280
|
isPaused: boolean;
|
|
214
|
-
isPlaceholderData: boolean;
|
|
215
281
|
isRefetching: boolean;
|
|
216
282
|
isStale: boolean;
|
|
283
|
+
isEnabled: boolean;
|
|
217
284
|
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<Reader.PendingSiteSubscriptionsResult, Error>>;
|
|
218
285
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
286
|
+
promise: Promise<Reader.PendingSiteSubscriptionsResult>;
|
|
219
287
|
data: {
|
|
220
288
|
pendingSites: Reader.PendingSiteSubscription[] | undefined;
|
|
221
289
|
totalCount: number | undefined;
|
|
@@ -224,9 +292,11 @@ declare const SubscriptionManager: {
|
|
|
224
292
|
error: null;
|
|
225
293
|
isError: false;
|
|
226
294
|
isPending: false;
|
|
295
|
+
isLoading: false;
|
|
227
296
|
isLoadingError: false;
|
|
228
297
|
isRefetchError: false;
|
|
229
298
|
isSuccess: true;
|
|
299
|
+
isPlaceholderData: false;
|
|
230
300
|
status: "success";
|
|
231
301
|
dataUpdatedAt: number;
|
|
232
302
|
errorUpdatedAt: number;
|
|
@@ -236,14 +306,14 @@ declare const SubscriptionManager: {
|
|
|
236
306
|
isFetched: boolean;
|
|
237
307
|
isFetchedAfterMount: boolean;
|
|
238
308
|
isFetching: boolean;
|
|
239
|
-
isLoading: boolean;
|
|
240
309
|
isInitialLoading: boolean;
|
|
241
310
|
isPaused: boolean;
|
|
242
|
-
isPlaceholderData: boolean;
|
|
243
311
|
isRefetching: boolean;
|
|
244
312
|
isStale: boolean;
|
|
313
|
+
isEnabled: boolean;
|
|
245
314
|
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<Reader.PendingSiteSubscriptionsResult, Error>>;
|
|
246
315
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
316
|
+
promise: Promise<Reader.PendingSiteSubscriptionsResult>;
|
|
247
317
|
data: {
|
|
248
318
|
pendingSites: Reader.PendingSiteSubscription[] | undefined;
|
|
249
319
|
totalCount: number | undefined;
|
|
@@ -252,9 +322,11 @@ declare const SubscriptionManager: {
|
|
|
252
322
|
error: Error;
|
|
253
323
|
isError: true;
|
|
254
324
|
isPending: false;
|
|
325
|
+
isLoading: false;
|
|
255
326
|
isLoadingError: true;
|
|
256
327
|
isRefetchError: false;
|
|
257
328
|
isSuccess: false;
|
|
329
|
+
isPlaceholderData: false;
|
|
258
330
|
status: "error";
|
|
259
331
|
dataUpdatedAt: number;
|
|
260
332
|
errorUpdatedAt: number;
|
|
@@ -264,14 +336,44 @@ declare const SubscriptionManager: {
|
|
|
264
336
|
isFetched: boolean;
|
|
265
337
|
isFetchedAfterMount: boolean;
|
|
266
338
|
isFetching: boolean;
|
|
267
|
-
isLoading: boolean;
|
|
268
339
|
isInitialLoading: boolean;
|
|
269
340
|
isPaused: boolean;
|
|
270
|
-
isPlaceholderData: boolean;
|
|
271
341
|
isRefetching: boolean;
|
|
272
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;
|
|
273
374
|
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<Reader.PendingSiteSubscriptionsResult, Error>>;
|
|
274
375
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
376
|
+
promise: Promise<Reader.PendingSiteSubscriptionsResult>;
|
|
275
377
|
data: {
|
|
276
378
|
pendingSites: Reader.PendingSiteSubscription[] | undefined;
|
|
277
379
|
totalCount: number | undefined;
|
|
@@ -283,6 +385,7 @@ declare const SubscriptionManager: {
|
|
|
283
385
|
isLoadingError: false;
|
|
284
386
|
isRefetchError: false;
|
|
285
387
|
isSuccess: false;
|
|
388
|
+
isPlaceholderData: false;
|
|
286
389
|
status: "pending";
|
|
287
390
|
dataUpdatedAt: number;
|
|
288
391
|
errorUpdatedAt: number;
|
|
@@ -295,11 +398,42 @@ declare const SubscriptionManager: {
|
|
|
295
398
|
isLoading: boolean;
|
|
296
399
|
isInitialLoading: boolean;
|
|
297
400
|
isPaused: boolean;
|
|
298
|
-
isPlaceholderData: boolean;
|
|
299
401
|
isRefetching: boolean;
|
|
300
402
|
isStale: boolean;
|
|
403
|
+
isEnabled: boolean;
|
|
404
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<Reader.PendingSiteSubscriptionsResult, Error>>;
|
|
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;
|
|
301
434
|
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<Reader.PendingSiteSubscriptionsResult, Error>>;
|
|
302
435
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
436
|
+
promise: Promise<Reader.PendingSiteSubscriptionsResult>;
|
|
303
437
|
data: {
|
|
304
438
|
pendingSites: Reader.PendingSiteSubscription[] | undefined;
|
|
305
439
|
totalCount: number | undefined;
|
|
@@ -348,9 +482,151 @@ declare const SubscriptionManager: {
|
|
|
348
482
|
error: Error;
|
|
349
483
|
isError: true;
|
|
350
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;
|
|
351
624
|
isLoadingError: true;
|
|
352
625
|
isRefetchError: false;
|
|
626
|
+
isFetchNextPageError: false;
|
|
627
|
+
isFetchPreviousPageError: false;
|
|
353
628
|
isSuccess: false;
|
|
629
|
+
isPlaceholderData: false;
|
|
354
630
|
status: "error";
|
|
355
631
|
fetchNextPage: (options?: import("@tanstack/query-core").FetchNextPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
356
632
|
comment_subscriptions: Reader.PostSubscription[];
|
|
@@ -369,17 +645,20 @@ declare const SubscriptionManager: {
|
|
|
369
645
|
errorUpdateCount: number;
|
|
370
646
|
isFetched: boolean;
|
|
371
647
|
isFetchedAfterMount: boolean;
|
|
372
|
-
isLoading: boolean;
|
|
373
648
|
isInitialLoading: boolean;
|
|
374
649
|
isPaused: boolean;
|
|
375
|
-
isPlaceholderData: boolean;
|
|
376
650
|
isRefetching: boolean;
|
|
377
651
|
isStale: boolean;
|
|
652
|
+
isEnabled: boolean;
|
|
378
653
|
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
379
654
|
comment_subscriptions: Reader.PostSubscription[];
|
|
380
655
|
total_comment_subscriptions_count: number;
|
|
381
656
|
}, unknown>, Error>>;
|
|
382
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>>;
|
|
383
662
|
} | {
|
|
384
663
|
data: {
|
|
385
664
|
posts: {
|
|
@@ -410,9 +689,13 @@ declare const SubscriptionManager: {
|
|
|
410
689
|
error: null;
|
|
411
690
|
isError: false;
|
|
412
691
|
isPending: true;
|
|
692
|
+
isLoading: true;
|
|
413
693
|
isLoadingError: false;
|
|
414
694
|
isRefetchError: false;
|
|
695
|
+
isFetchNextPageError: false;
|
|
696
|
+
isFetchPreviousPageError: false;
|
|
415
697
|
isSuccess: false;
|
|
698
|
+
isPlaceholderData: false;
|
|
416
699
|
status: "pending";
|
|
417
700
|
fetchNextPage: (options?: import("@tanstack/query-core").FetchNextPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
418
701
|
comment_subscriptions: Reader.PostSubscription[];
|
|
@@ -431,17 +714,20 @@ declare const SubscriptionManager: {
|
|
|
431
714
|
errorUpdateCount: number;
|
|
432
715
|
isFetched: boolean;
|
|
433
716
|
isFetchedAfterMount: boolean;
|
|
434
|
-
isLoading: boolean;
|
|
435
717
|
isInitialLoading: boolean;
|
|
436
718
|
isPaused: boolean;
|
|
437
|
-
isPlaceholderData: boolean;
|
|
438
719
|
isRefetching: boolean;
|
|
439
720
|
isStale: boolean;
|
|
721
|
+
isEnabled: boolean;
|
|
440
722
|
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
441
723
|
comment_subscriptions: Reader.PostSubscription[];
|
|
442
724
|
total_comment_subscriptions_count: number;
|
|
443
725
|
}, unknown>, Error>>;
|
|
444
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>>;
|
|
445
731
|
} | {
|
|
446
732
|
data: {
|
|
447
733
|
posts: {
|
|
@@ -469,13 +755,16 @@ declare const SubscriptionManager: {
|
|
|
469
755
|
isFetchingNextPage: boolean;
|
|
470
756
|
isFetching: boolean;
|
|
471
757
|
hasNextPage: boolean;
|
|
472
|
-
error:
|
|
473
|
-
isError:
|
|
474
|
-
isPending:
|
|
758
|
+
error: null;
|
|
759
|
+
isError: false;
|
|
760
|
+
isPending: true;
|
|
475
761
|
isLoadingError: false;
|
|
476
|
-
isRefetchError:
|
|
762
|
+
isRefetchError: false;
|
|
763
|
+
isFetchNextPageError: false;
|
|
764
|
+
isFetchPreviousPageError: false;
|
|
477
765
|
isSuccess: false;
|
|
478
|
-
|
|
766
|
+
isPlaceholderData: false;
|
|
767
|
+
status: "pending";
|
|
479
768
|
fetchNextPage: (options?: import("@tanstack/query-core").FetchNextPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
480
769
|
comment_subscriptions: Reader.PostSubscription[];
|
|
481
770
|
total_comment_subscriptions_count: number;
|
|
@@ -496,14 +785,18 @@ declare const SubscriptionManager: {
|
|
|
496
785
|
isLoading: boolean;
|
|
497
786
|
isInitialLoading: boolean;
|
|
498
787
|
isPaused: boolean;
|
|
499
|
-
isPlaceholderData: boolean;
|
|
500
788
|
isRefetching: boolean;
|
|
501
789
|
isStale: boolean;
|
|
790
|
+
isEnabled: boolean;
|
|
502
791
|
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
503
792
|
comment_subscriptions: Reader.PostSubscription[];
|
|
504
793
|
total_comment_subscriptions_count: number;
|
|
505
794
|
}, unknown>, Error>>;
|
|
506
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>>;
|
|
507
800
|
} | {
|
|
508
801
|
data: {
|
|
509
802
|
posts: {
|
|
@@ -531,12 +824,16 @@ declare const SubscriptionManager: {
|
|
|
531
824
|
isFetchingNextPage: boolean;
|
|
532
825
|
isFetching: boolean;
|
|
533
826
|
hasNextPage: boolean;
|
|
534
|
-
error: null;
|
|
535
827
|
isError: false;
|
|
828
|
+
error: null;
|
|
536
829
|
isPending: false;
|
|
830
|
+
isLoading: false;
|
|
537
831
|
isLoadingError: false;
|
|
538
832
|
isRefetchError: false;
|
|
539
833
|
isSuccess: true;
|
|
834
|
+
isPlaceholderData: true;
|
|
835
|
+
isFetchNextPageError: false;
|
|
836
|
+
isFetchPreviousPageError: false;
|
|
540
837
|
status: "success";
|
|
541
838
|
fetchNextPage: (options?: import("@tanstack/query-core").FetchNextPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
542
839
|
comment_subscriptions: Reader.PostSubscription[];
|
|
@@ -555,17 +852,20 @@ declare const SubscriptionManager: {
|
|
|
555
852
|
errorUpdateCount: number;
|
|
556
853
|
isFetched: boolean;
|
|
557
854
|
isFetchedAfterMount: boolean;
|
|
558
|
-
isLoading: boolean;
|
|
559
855
|
isInitialLoading: boolean;
|
|
560
856
|
isPaused: boolean;
|
|
561
|
-
isPlaceholderData: boolean;
|
|
562
857
|
isRefetching: boolean;
|
|
563
858
|
isStale: boolean;
|
|
859
|
+
isEnabled: boolean;
|
|
564
860
|
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
565
861
|
comment_subscriptions: Reader.PostSubscription[];
|
|
566
862
|
total_comment_subscriptions_count: number;
|
|
567
863
|
}, unknown>, Error>>;
|
|
568
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>>;
|
|
569
869
|
};
|
|
570
870
|
usePostUnsubscribeMutation: () => import("@tanstack/react-query").UseMutationResult<{
|
|
571
871
|
success: boolean;
|
|
@@ -677,9 +977,111 @@ declare const SubscriptionManager: {
|
|
|
677
977
|
error: Error;
|
|
678
978
|
isError: true;
|
|
679
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;
|
|
680
1079
|
isLoadingError: true;
|
|
681
1080
|
isRefetchError: false;
|
|
1081
|
+
isFetchNextPageError: false;
|
|
1082
|
+
isFetchPreviousPageError: false;
|
|
682
1083
|
isSuccess: false;
|
|
1084
|
+
isPlaceholderData: false;
|
|
683
1085
|
status: "error";
|
|
684
1086
|
fetchPreviousPage: (options?: import("@tanstack/query-core").FetchPreviousPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
685
1087
|
subscriptions: Reader.SiteSubscriptionsResponseItem[];
|
|
@@ -695,18 +1097,22 @@ declare const SubscriptionManager: {
|
|
|
695
1097
|
errorUpdateCount: number;
|
|
696
1098
|
isFetched: boolean;
|
|
697
1099
|
isFetchedAfterMount: boolean;
|
|
698
|
-
isLoading: boolean;
|
|
699
1100
|
isInitialLoading: boolean;
|
|
700
1101
|
isPaused: boolean;
|
|
701
|
-
isPlaceholderData: boolean;
|
|
702
1102
|
isRefetching: boolean;
|
|
703
1103
|
isStale: boolean;
|
|
1104
|
+
isEnabled: boolean;
|
|
704
1105
|
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
705
1106
|
subscriptions: Reader.SiteSubscriptionsResponseItem[];
|
|
706
1107
|
page: number;
|
|
707
1108
|
total_subscriptions: number;
|
|
708
1109
|
}, unknown>, Error>>;
|
|
709
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>>;
|
|
710
1116
|
data: {
|
|
711
1117
|
subscriptions: Reader.SiteSubscriptionsResponseItem[];
|
|
712
1118
|
totalCount: number;
|
|
@@ -718,9 +1124,13 @@ declare const SubscriptionManager: {
|
|
|
718
1124
|
error: null;
|
|
719
1125
|
isError: false;
|
|
720
1126
|
isPending: true;
|
|
1127
|
+
isLoading: true;
|
|
721
1128
|
isLoadingError: false;
|
|
722
1129
|
isRefetchError: false;
|
|
1130
|
+
isFetchNextPageError: false;
|
|
1131
|
+
isFetchPreviousPageError: false;
|
|
723
1132
|
isSuccess: false;
|
|
1133
|
+
isPlaceholderData: false;
|
|
724
1134
|
status: "pending";
|
|
725
1135
|
fetchPreviousPage: (options?: import("@tanstack/query-core").FetchPreviousPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
726
1136
|
subscriptions: Reader.SiteSubscriptionsResponseItem[];
|
|
@@ -736,18 +1146,22 @@ declare const SubscriptionManager: {
|
|
|
736
1146
|
errorUpdateCount: number;
|
|
737
1147
|
isFetched: boolean;
|
|
738
1148
|
isFetchedAfterMount: boolean;
|
|
739
|
-
isLoading: boolean;
|
|
740
1149
|
isInitialLoading: boolean;
|
|
741
1150
|
isPaused: boolean;
|
|
742
|
-
isPlaceholderData: boolean;
|
|
743
1151
|
isRefetching: boolean;
|
|
744
1152
|
isStale: boolean;
|
|
1153
|
+
isEnabled: boolean;
|
|
745
1154
|
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
746
1155
|
subscriptions: Reader.SiteSubscriptionsResponseItem[];
|
|
747
1156
|
page: number;
|
|
748
1157
|
total_subscriptions: number;
|
|
749
1158
|
}, unknown>, Error>>;
|
|
750
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>>;
|
|
751
1165
|
data: {
|
|
752
1166
|
subscriptions: Reader.SiteSubscriptionsResponseItem[];
|
|
753
1167
|
totalCount: number;
|
|
@@ -756,13 +1170,16 @@ declare const SubscriptionManager: {
|
|
|
756
1170
|
isFetching: boolean;
|
|
757
1171
|
hasNextPage: boolean;
|
|
758
1172
|
} | {
|
|
759
|
-
error:
|
|
760
|
-
isError:
|
|
761
|
-
isPending:
|
|
1173
|
+
error: null;
|
|
1174
|
+
isError: false;
|
|
1175
|
+
isPending: true;
|
|
762
1176
|
isLoadingError: false;
|
|
763
|
-
isRefetchError:
|
|
1177
|
+
isRefetchError: false;
|
|
1178
|
+
isFetchNextPageError: false;
|
|
1179
|
+
isFetchPreviousPageError: false;
|
|
764
1180
|
isSuccess: false;
|
|
765
|
-
|
|
1181
|
+
isPlaceholderData: false;
|
|
1182
|
+
status: "pending";
|
|
766
1183
|
fetchPreviousPage: (options?: import("@tanstack/query-core").FetchPreviousPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
767
1184
|
subscriptions: Reader.SiteSubscriptionsResponseItem[];
|
|
768
1185
|
page: number;
|
|
@@ -780,15 +1197,20 @@ declare const SubscriptionManager: {
|
|
|
780
1197
|
isLoading: boolean;
|
|
781
1198
|
isInitialLoading: boolean;
|
|
782
1199
|
isPaused: boolean;
|
|
783
|
-
isPlaceholderData: boolean;
|
|
784
1200
|
isRefetching: boolean;
|
|
785
1201
|
isStale: boolean;
|
|
1202
|
+
isEnabled: boolean;
|
|
786
1203
|
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
787
1204
|
subscriptions: Reader.SiteSubscriptionsResponseItem[];
|
|
788
1205
|
page: number;
|
|
789
1206
|
total_subscriptions: number;
|
|
790
1207
|
}, unknown>, Error>>;
|
|
791
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>>;
|
|
792
1214
|
data: {
|
|
793
1215
|
subscriptions: Reader.SiteSubscriptionsResponseItem[];
|
|
794
1216
|
totalCount: number;
|
|
@@ -797,12 +1219,16 @@ declare const SubscriptionManager: {
|
|
|
797
1219
|
isFetching: boolean;
|
|
798
1220
|
hasNextPage: boolean;
|
|
799
1221
|
} | {
|
|
800
|
-
error: null;
|
|
801
1222
|
isError: false;
|
|
1223
|
+
error: null;
|
|
802
1224
|
isPending: false;
|
|
1225
|
+
isLoading: false;
|
|
803
1226
|
isLoadingError: false;
|
|
804
1227
|
isRefetchError: false;
|
|
805
1228
|
isSuccess: true;
|
|
1229
|
+
isPlaceholderData: true;
|
|
1230
|
+
isFetchNextPageError: false;
|
|
1231
|
+
isFetchPreviousPageError: false;
|
|
806
1232
|
status: "success";
|
|
807
1233
|
fetchPreviousPage: (options?: import("@tanstack/query-core").FetchPreviousPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
808
1234
|
subscriptions: Reader.SiteSubscriptionsResponseItem[];
|
|
@@ -818,18 +1244,22 @@ declare const SubscriptionManager: {
|
|
|
818
1244
|
errorUpdateCount: number;
|
|
819
1245
|
isFetched: boolean;
|
|
820
1246
|
isFetchedAfterMount: boolean;
|
|
821
|
-
isLoading: boolean;
|
|
822
1247
|
isInitialLoading: boolean;
|
|
823
1248
|
isPaused: boolean;
|
|
824
|
-
isPlaceholderData: boolean;
|
|
825
1249
|
isRefetching: boolean;
|
|
826
1250
|
isStale: boolean;
|
|
1251
|
+
isEnabled: boolean;
|
|
827
1252
|
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
828
1253
|
subscriptions: Reader.SiteSubscriptionsResponseItem[];
|
|
829
1254
|
page: number;
|
|
830
1255
|
total_subscriptions: number;
|
|
831
1256
|
}, unknown>, Error>>;
|
|
832
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>>;
|
|
833
1263
|
data: {
|
|
834
1264
|
subscriptions: Reader.SiteSubscriptionsResponseItem[];
|
|
835
1265
|
totalCount: number;
|
|
@@ -887,7 +1317,7 @@ declare const SubscriptionManager: {
|
|
|
887
1317
|
email: string;
|
|
888
1318
|
}>, Error>;
|
|
889
1319
|
};
|
|
890
|
-
export { AddOns, User,
|
|
1320
|
+
export { AddOns, User, HelpCenter, Site, Plans, Purchases, WpcomPlansUI, Onboard, ProductsList, Reader, StepperInternal, Subscriber, SubscriptionManager, };
|
|
891
1321
|
/**
|
|
892
1322
|
* Helper types
|
|
893
1323
|
*/
|