@automattic/data-stores 3.1.2 → 3.2.1
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 +18 -1
- package/dist/cjs/agents-manager/actions.js +116 -0
- package/dist/cjs/agents-manager/actions.js.map +1 -0
- package/dist/cjs/agents-manager/constants.js +5 -0
- package/dist/cjs/agents-manager/constants.js.map +1 -0
- package/dist/cjs/agents-manager/index.js +37 -0
- package/dist/cjs/agents-manager/index.js.map +1 -0
- package/dist/cjs/agents-manager/persist-state.js +58 -0
- package/dist/cjs/agents-manager/persist-state.js.map +1 -0
- package/dist/cjs/agents-manager/reducer.js +87 -0
- package/dist/cjs/agents-manager/reducer.js.map +1 -0
- package/dist/cjs/agents-manager/resolvers.js +60 -0
- package/dist/cjs/agents-manager/resolvers.js.map +1 -0
- package/dist/cjs/agents-manager/selectors.js +44 -0
- package/dist/cjs/agents-manager/selectors.js.map +1 -0
- package/dist/cjs/{domain-suggestions → agents-manager}/types.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 +103 -69
- package/dist/cjs/help-center/actions.js.map +1 -1
- package/dist/cjs/help-center/constants.js +2 -1
- package/dist/cjs/help-center/constants.js.map +1 -1
- package/dist/cjs/help-center/index.js +14 -27
- package/dist/cjs/help-center/index.js.map +1 -1
- package/dist/cjs/help-center/reducer.js +36 -12
- package/dist/cjs/help-center/reducer.js.map +1 -1
- package/dist/cjs/help-center/resolvers.js +45 -24
- package/dist/cjs/help-center/resolvers.js.map +1 -1
- package/dist/cjs/help-center/selectors.js +13 -5
- package/dist/cjs/help-center/selectors.js.map +1 -1
- package/dist/cjs/help-center/utils.js +136 -0
- package/dist/cjs/help-center/utils.js.map +1 -0
- package/dist/cjs/index.js +8 -6
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/mutations/use-domains-bulk-actions-mutation.js +3 -3
- package/dist/cjs/mutations/use-domains-bulk-actions-mutation.js.map +1 -1
- package/dist/cjs/newsletter-categories/index.js +2 -2
- package/dist/cjs/newsletter-categories/index.js.map +1 -1
- package/dist/cjs/onboard/actions.js +16 -1
- package/dist/cjs/onboard/actions.js.map +1 -1
- package/dist/cjs/onboard/reducer.js +34 -1
- package/dist/cjs/onboard/reducer.js.map +1 -1
- package/dist/cjs/onboard/selectors.js +7 -1
- package/dist/cjs/onboard/selectors.js.map +1 -1
- package/dist/cjs/plans/constants.js +3 -1
- package/dist/cjs/plans/constants.js.map +1 -1
- package/dist/cjs/plans/hooks/use-pricing-meta-for-grid-plans.js +35 -18
- package/dist/cjs/plans/hooks/use-pricing-meta-for-grid-plans.js.map +1 -1
- package/dist/cjs/plans/index.js +2 -1
- package/dist/cjs/plans/index.js.map +1 -1
- package/dist/cjs/plans/queries/use-plans.js +21 -2
- package/dist/cjs/plans/queries/use-plans.js.map +1 -1
- package/dist/cjs/plans/queries/use-site-plans.js +2 -2
- package/dist/cjs/plans/queries/use-site-plans.js.map +1 -1
- package/dist/cjs/plans/resolvers.js +0 -1
- package/dist/cjs/plans/resolvers.js.map +1 -1
- package/dist/cjs/plans/selectors.js.map +1 -1
- package/dist/cjs/products-list/queries/use-products.js +2 -2
- package/dist/cjs/products-list/queries/use-products.js.map +1 -1
- package/dist/cjs/products-list/resolvers.js +2 -2
- package/dist/cjs/products-list/resolvers.js.map +1 -1
- package/dist/cjs/purchases/lib/assembler.js +15 -20
- package/dist/cjs/purchases/lib/assembler.js.map +1 -1
- package/dist/cjs/purchases/queries/use-get-jetpack-transferred-license-purchases.js +2 -2
- package/dist/cjs/purchases/queries/use-get-jetpack-transferred-license-purchases.js.map +1 -1
- package/dist/cjs/purchases/queries/use-site-purchases.js +3 -3
- package/dist/cjs/purchases/queries/use-site-purchases.js.map +1 -1
- package/dist/cjs/queries/use-all-domains-query.js +2 -2
- package/dist/cjs/queries/use-all-domains-query.js.map +1 -1
- package/dist/cjs/queries/use-bulk-domain-update-status-query.js +3 -57
- package/dist/cjs/queries/use-bulk-domain-update-status-query.js.map +1 -1
- package/dist/cjs/queries/use-happiness-engineers-query.js +2 -2
- package/dist/cjs/queries/use-happiness-engineers-query.js.map +1 -1
- package/dist/cjs/queries/use-launchpad.js +5 -5
- package/dist/cjs/queries/use-launchpad.js.map +1 -1
- package/dist/cjs/queries/use-site-domains-query.js +2 -2
- package/dist/cjs/queries/use-site-domains-query.js.map +1 -1
- package/dist/cjs/queries/use-site-intent.js +2 -2
- package/dist/cjs/queries/use-site-intent.js.map +1 -1
- package/dist/cjs/queries/use-site-query.js +2 -2
- package/dist/cjs/queries/use-site-query.js.map +1 -1
- package/dist/cjs/reader/contexts/index.js +1 -4
- package/dist/cjs/reader/contexts/index.js.map +1 -1
- package/dist/cjs/reader/helpers/index.js +4 -3
- package/dist/cjs/reader/helpers/index.js.map +1 -1
- package/dist/cjs/reader/helpers/optimistic-update.js +2 -1
- package/dist/cjs/reader/helpers/optimistic-update.js.map +1 -1
- package/dist/cjs/reader/index.js +2 -8
- package/dist/cjs/reader/index.js.map +1 -1
- package/dist/cjs/reader/mutations/use-pending-site-confirm-mutation.js +2 -2
- package/dist/cjs/reader/mutations/use-pending-site-confirm-mutation.js.map +1 -1
- package/dist/cjs/reader/mutations/use-site-delivery-frequency-mutation.js +26 -20
- package/dist/cjs/reader/mutations/use-site-delivery-frequency-mutation.js.map +1 -1
- package/dist/cjs/reader/mutations/use-site-email-me-new-comments-mutation.js +4 -3
- package/dist/cjs/reader/mutations/use-site-email-me-new-comments-mutation.js.map +1 -1
- package/dist/cjs/reader/mutations/use-site-email-me-new-posts-mutation.js +4 -3
- package/dist/cjs/reader/mutations/use-site-email-me-new-posts-mutation.js.map +1 -1
- package/dist/cjs/reader/mutations/use-site-notify-me-of-new-posts-mutation.js +4 -3
- package/dist/cjs/reader/mutations/use-site-notify-me-of-new-posts-mutation.js.map +1 -1
- package/dist/cjs/reader/mutations/use-site-subscribe-mutation.js +10 -4
- package/dist/cjs/reader/mutations/use-site-subscribe-mutation.js.map +1 -1
- package/dist/cjs/reader/mutations/use-site-unsubscribe-mutation.js +11 -4
- package/dist/cjs/reader/mutations/use-site-unsubscribe-mutation.js.map +1 -1
- package/dist/cjs/reader/queries/index.js +2 -8
- package/dist/cjs/reader/queries/index.js.map +1 -1
- package/dist/cjs/reader/queries/use-site-subscriptions-query.js +27 -26
- package/dist/cjs/reader/queries/use-site-subscriptions-query.js.map +1 -1
- package/dist/cjs/site/queries/use-site-features.js +2 -2
- package/dist/cjs/site/queries/use-site-features.js.map +1 -1
- package/dist/cjs/site/queries/use-site-media-storage.js +2 -2
- package/dist/cjs/site/queries/use-site-media-storage.js.map +1 -1
- package/dist/cjs/site/queries/use-site-user-query.js +2 -2
- package/dist/cjs/site/queries/use-site-user-query.js.map +1 -1
- package/dist/cjs/site/queries/use-site.js +2 -2
- package/dist/cjs/site/queries/use-site.js.map +1 -1
- package/dist/cjs/site/resolvers.js +5 -5
- package/dist/cjs/site/resolvers.js.map +1 -1
- package/dist/cjs/site/selectors.js +5 -3
- package/dist/cjs/site/selectors.js.map +1 -1
- package/dist/cjs/site/types.js.map +1 -1
- package/dist/cjs/site-reset/use-site-reset-content-summary-query.js +2 -2
- package/dist/cjs/site-reset/use-site-reset-content-summary-query.js.map +1 -1
- package/dist/cjs/site-reset/use-site-reset-mutation.js +2 -2
- package/dist/cjs/site-reset/use-site-reset-mutation.js.map +1 -1
- package/dist/cjs/site-reset/use-site-reset-status-query.js +2 -2
- package/dist/cjs/site-reset/use-site-reset-status-query.js.map +1 -1
- package/dist/cjs/starter-designs-queries/use-starter-design-by-slug.js +2 -2
- package/dist/cjs/starter-designs-queries/use-starter-design-by-slug.js.map +1 -1
- package/dist/cjs/starter-designs-queries/use-starter-designs-query.js +2 -2
- package/dist/cjs/starter-designs-queries/use-starter-designs-query.js.map +1 -1
- package/dist/cjs/subscriber/actions.js +5 -5
- package/dist/cjs/subscriber/actions.js.map +1 -1
- package/dist/cjs/templates/use-template.js +2 -2
- package/dist/cjs/templates/use-template.js.map +1 -1
- package/dist/cjs/users/use-send-invites.js +2 -2
- package/dist/cjs/users/use-send-invites.js.map +1 -1
- package/dist/cjs/utils.js +26 -0
- package/dist/cjs/utils.js.map +1 -0
- package/dist/cjs/wpcom-request-controls/index.js +3 -2
- package/dist/cjs/wpcom-request-controls/index.js.map +1 -1
- package/dist/cjs/wpcom-request.js +24 -0
- package/dist/cjs/wpcom-request.js.map +1 -0
- package/dist/esm/agents-manager/actions.js +104 -0
- package/dist/esm/agents-manager/actions.js.map +1 -0
- package/dist/esm/agents-manager/constants.js +2 -0
- package/dist/esm/agents-manager/constants.js.map +1 -0
- package/dist/esm/agents-manager/index.js +31 -0
- package/dist/esm/agents-manager/index.js.map +1 -0
- package/dist/esm/agents-manager/persist-state.js +54 -0
- package/dist/esm/agents-manager/persist-state.js.map +1 -0
- package/dist/esm/agents-manager/reducer.js +82 -0
- package/dist/esm/agents-manager/reducer.js.map +1 -0
- package/dist/esm/agents-manager/resolvers.js +57 -0
- package/dist/esm/agents-manager/resolvers.js.map +1 -0
- package/dist/esm/agents-manager/selectors.js +31 -0
- package/dist/esm/agents-manager/selectors.js.map +1 -0
- package/dist/esm/{domain-suggestions → agents-manager}/types.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 +95 -65
- package/dist/esm/help-center/actions.js.map +1 -1
- package/dist/esm/help-center/constants.js +1 -0
- package/dist/esm/help-center/constants.js.map +1 -1
- package/dist/esm/help-center/index.js +11 -23
- package/dist/esm/help-center/index.js.map +1 -1
- package/dist/esm/help-center/reducer.js +36 -12
- package/dist/esm/help-center/reducer.js.map +1 -1
- package/dist/esm/help-center/resolvers.js +43 -24
- package/dist/esm/help-center/resolvers.js.map +1 -1
- package/dist/esm/help-center/selectors.js +6 -2
- package/dist/esm/help-center/selectors.js.map +1 -1
- package/dist/esm/help-center/utils.js +127 -0
- package/dist/esm/help-center/utils.js.map +1 -0
- package/dist/esm/index.js +4 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/mutations/use-domains-bulk-actions-mutation.js +1 -1
- package/dist/esm/mutations/use-domains-bulk-actions-mutation.js.map +1 -1
- package/dist/esm/newsletter-categories/index.js +1 -1
- package/dist/esm/newsletter-categories/index.js.map +1 -1
- package/dist/esm/onboard/actions.js +12 -0
- package/dist/esm/onboard/actions.js.map +1 -1
- package/dist/esm/onboard/reducer.js +30 -0
- package/dist/esm/onboard/reducer.js.map +1 -1
- package/dist/esm/onboard/selectors.js +3 -0
- package/dist/esm/onboard/selectors.js.map +1 -1
- package/dist/esm/plans/constants.js +2 -0
- package/dist/esm/plans/constants.js.map +1 -1
- package/dist/esm/plans/hooks/use-pricing-meta-for-grid-plans.js +35 -18
- package/dist/esm/plans/hooks/use-pricing-meta-for-grid-plans.js.map +1 -1
- package/dist/esm/plans/index.js +1 -1
- package/dist/esm/plans/index.js.map +1 -1
- package/dist/esm/plans/queries/use-plans.js +21 -2
- package/dist/esm/plans/queries/use-plans.js.map +1 -1
- package/dist/esm/plans/queries/use-site-plans.js +1 -1
- package/dist/esm/plans/resolvers.js +0 -1
- package/dist/esm/plans/resolvers.js.map +1 -1
- package/dist/esm/plans/selectors.js.map +1 -1
- package/dist/esm/products-list/queries/use-products.js +1 -1
- package/dist/esm/products-list/queries/use-products.js.map +1 -1
- package/dist/esm/products-list/resolvers.js +1 -1
- package/dist/esm/products-list/resolvers.js.map +1 -1
- package/dist/esm/purchases/lib/assembler.js +15 -20
- package/dist/esm/purchases/lib/assembler.js.map +1 -1
- package/dist/esm/purchases/queries/use-get-jetpack-transferred-license-purchases.js +1 -1
- package/dist/esm/purchases/queries/use-site-purchases.js +2 -2
- package/dist/esm/queries/use-all-domains-query.js +1 -1
- package/dist/esm/queries/use-all-domains-query.js.map +1 -1
- package/dist/esm/queries/use-bulk-domain-update-status-query.js +3 -56
- package/dist/esm/queries/use-bulk-domain-update-status-query.js.map +1 -1
- package/dist/esm/queries/use-happiness-engineers-query.js +1 -1
- package/dist/esm/queries/use-happiness-engineers-query.js.map +1 -1
- package/dist/esm/queries/use-launchpad.js +1 -1
- package/dist/esm/queries/use-launchpad.js.map +1 -1
- package/dist/esm/queries/use-site-domains-query.js +1 -1
- package/dist/esm/queries/use-site-domains-query.js.map +1 -1
- package/dist/esm/queries/use-site-intent.js +1 -1
- package/dist/esm/queries/use-site-intent.js.map +1 -1
- package/dist/esm/queries/use-site-query.js +1 -1
- package/dist/esm/queries/use-site-query.js.map +1 -1
- package/dist/esm/reader/contexts/index.js +0 -1
- package/dist/esm/reader/contexts/index.js.map +1 -1
- package/dist/esm/reader/helpers/index.js +3 -2
- package/dist/esm/reader/helpers/index.js.map +1 -1
- package/dist/esm/reader/helpers/optimistic-update.js +2 -1
- package/dist/esm/reader/helpers/optimistic-update.js.map +1 -1
- package/dist/esm/reader/index.js +2 -3
- package/dist/esm/reader/index.js.map +1 -1
- package/dist/esm/reader/mutations/use-pending-site-confirm-mutation.js +2 -2
- package/dist/esm/reader/mutations/use-pending-site-confirm-mutation.js.map +1 -1
- package/dist/esm/reader/mutations/use-site-delivery-frequency-mutation.js +27 -21
- package/dist/esm/reader/mutations/use-site-delivery-frequency-mutation.js.map +1 -1
- package/dist/esm/reader/mutations/use-site-email-me-new-comments-mutation.js +5 -4
- package/dist/esm/reader/mutations/use-site-email-me-new-comments-mutation.js.map +1 -1
- package/dist/esm/reader/mutations/use-site-email-me-new-posts-mutation.js +5 -4
- package/dist/esm/reader/mutations/use-site-email-me-new-posts-mutation.js.map +1 -1
- package/dist/esm/reader/mutations/use-site-notify-me-of-new-posts-mutation.js +5 -4
- package/dist/esm/reader/mutations/use-site-notify-me-of-new-posts-mutation.js.map +1 -1
- package/dist/esm/reader/mutations/use-site-subscribe-mutation.js +10 -4
- package/dist/esm/reader/mutations/use-site-subscribe-mutation.js.map +1 -1
- package/dist/esm/reader/mutations/use-site-unsubscribe-mutation.js +11 -4
- package/dist/esm/reader/mutations/use-site-unsubscribe-mutation.js.map +1 -1
- package/dist/esm/reader/queries/index.js +1 -4
- package/dist/esm/reader/queries/index.js.map +1 -1
- package/dist/esm/reader/queries/use-site-subscriptions-query.js +28 -27
- package/dist/esm/reader/queries/use-site-subscriptions-query.js.map +1 -1
- package/dist/esm/site/queries/use-site-features.js +1 -1
- package/dist/esm/site/queries/use-site-media-storage.js +1 -1
- package/dist/esm/site/queries/use-site-user-query.js +1 -1
- package/dist/esm/site/queries/use-site-user-query.js.map +1 -1
- package/dist/esm/site/queries/use-site.js +1 -1
- package/dist/esm/site/resolvers.js +1 -1
- package/dist/esm/site/resolvers.js.map +1 -1
- package/dist/esm/site/selectors.js +5 -3
- package/dist/esm/site/selectors.js.map +1 -1
- package/dist/esm/site/types.js.map +1 -1
- package/dist/esm/site-reset/use-site-reset-content-summary-query.js +1 -1
- package/dist/esm/site-reset/use-site-reset-content-summary-query.js.map +1 -1
- package/dist/esm/site-reset/use-site-reset-mutation.js +1 -1
- package/dist/esm/site-reset/use-site-reset-mutation.js.map +1 -1
- package/dist/esm/site-reset/use-site-reset-status-query.js +1 -1
- package/dist/esm/site-reset/use-site-reset-status-query.js.map +1 -1
- package/dist/esm/starter-designs-queries/use-starter-design-by-slug.js +1 -1
- package/dist/esm/starter-designs-queries/use-starter-design-by-slug.js.map +1 -1
- package/dist/esm/starter-designs-queries/use-starter-designs-query.js +1 -1
- package/dist/esm/starter-designs-queries/use-starter-designs-query.js.map +1 -1
- package/dist/esm/subscriber/actions.js +1 -1
- package/dist/esm/subscriber/actions.js.map +1 -1
- package/dist/esm/templates/use-template.js +1 -1
- package/dist/esm/templates/use-template.js.map +1 -1
- package/dist/esm/users/use-send-invites.js +1 -1
- package/dist/esm/users/use-send-invites.js.map +1 -1
- package/dist/esm/utils.js +21 -0
- package/dist/esm/utils.js.map +1 -0
- package/dist/esm/wpcom-request-controls/index.js +2 -1
- package/dist/esm/wpcom-request-controls/index.js.map +1 -1
- package/dist/esm/wpcom-request.js +18 -0
- package/dist/esm/wpcom-request.js.map +1 -0
- package/dist/tsconfig-cjs.tsbuildinfo +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/add-ons/types.d.ts +1 -0
- package/dist/types/add-ons/types.d.ts.map +1 -1
- package/dist/types/agents-manager/actions.d.ts +77 -0
- package/dist/types/agents-manager/actions.d.ts.map +1 -0
- package/dist/types/agents-manager/constants.d.ts +2 -0
- package/dist/types/agents-manager/constants.d.ts.map +1 -0
- package/dist/types/agents-manager/index.d.ts +6 -0
- package/dist/types/agents-manager/index.d.ts.map +1 -0
- package/dist/types/agents-manager/persist-state.d.ts +6 -0
- package/dist/types/agents-manager/persist-state.d.ts.map +1 -0
- package/dist/types/agents-manager/reducer.d.ts +29 -0
- package/dist/types/agents-manager/reducer.d.ts.map +1 -0
- package/dist/types/agents-manager/resolvers.d.ts +54 -0
- package/dist/types/agents-manager/resolvers.d.ts.map +1 -0
- package/dist/types/agents-manager/selectors.d.ts +22 -0
- package/dist/types/agents-manager/selectors.d.ts.map +1 -0
- package/dist/types/agents-manager/types.d.ts +20 -0
- package/dist/types/agents-manager/types.d.ts.map +1 -0
- package/dist/types/contextual-help/admin-sections.d.ts +330 -6
- package/dist/types/contextual-help/admin-sections.d.ts.map +1 -1
- package/dist/types/contextual-help/contextual-help.d.ts +410 -30
- package/dist/types/contextual-help/contextual-help.d.ts.map +1 -1
- package/dist/types/help-center/actions.d.ts +249 -28
- package/dist/types/help-center/actions.d.ts.map +1 -1
- package/dist/types/help-center/constants.d.ts +1 -0
- package/dist/types/help-center/constants.d.ts.map +1 -1
- package/dist/types/help-center/index.d.ts +1 -2
- package/dist/types/help-center/index.d.ts.map +1 -1
- package/dist/types/help-center/reducer.d.ts +19 -7
- package/dist/types/help-center/reducer.d.ts.map +1 -1
- package/dist/types/help-center/resolvers.d.ts +4 -23
- package/dist/types/help-center/resolvers.d.ts.map +1 -1
- package/dist/types/help-center/selectors.d.ts +14 -3
- package/dist/types/help-center/selectors.d.ts.map +1 -1
- package/dist/types/help-center/types.d.ts +21 -12
- package/dist/types/help-center/types.d.ts.map +1 -1
- package/dist/types/help-center/utils.d.ts +13 -0
- package/dist/types/help-center/utils.d.ts.map +1 -0
- package/dist/types/index.d.ts +347 -197
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/onboard/actions.d.ts +32 -4
- package/dist/types/onboard/actions.d.ts.map +1 -1
- package/dist/types/onboard/reducer.d.ts +11 -2
- package/dist/types/onboard/reducer.d.ts.map +1 -1
- package/dist/types/onboard/selectors.d.ts +14 -8
- 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/constants.d.ts +3 -2
- package/dist/types/plans/constants.d.ts.map +1 -1
- package/dist/types/plans/hooks/use-pricing-meta-for-grid-plans.d.ts +6 -1
- package/dist/types/plans/hooks/use-pricing-meta-for-grid-plans.d.ts.map +1 -1
- package/dist/types/plans/index.d.ts +1 -1
- package/dist/types/plans/index.d.ts.map +1 -1
- package/dist/types/plans/queries/use-plans.d.ts.map +1 -1
- package/dist/types/plans/resolvers.d.ts.map +1 -1
- package/dist/types/plans/types.d.ts +6 -0
- package/dist/types/plans/types.d.ts.map +1 -1
- package/dist/types/products-list/index.d.ts +1 -1
- package/dist/types/products-list/index.d.ts.map +1 -1
- package/dist/types/products-list/queries/use-products.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 +40 -109
- package/dist/types/purchases/types.d.ts.map +1 -1
- package/dist/types/queries/use-all-domains-query.d.ts +3 -3
- package/dist/types/queries/use-all-domains-query.d.ts.map +1 -1
- package/dist/types/queries/use-bulk-domain-update-status-query.d.ts +5 -48
- package/dist/types/queries/use-bulk-domain-update-status-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-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/contexts/index.d.ts +0 -1
- package/dist/types/reader/contexts/index.d.ts.map +1 -1
- package/dist/types/reader/helpers/index.d.ts.map +1 -1
- package/dist/types/reader/helpers/optimistic-update.d.ts.map +1 -1
- package/dist/types/reader/index.d.ts +342 -196
- package/dist/types/reader/index.d.ts.map +1 -1
- package/dist/types/reader/mutations/use-site-delivery-frequency-mutation.d.ts +3 -2
- package/dist/types/reader/mutations/use-site-delivery-frequency-mutation.d.ts.map +1 -1
- package/dist/types/reader/mutations/use-site-email-me-new-comments-mutation.d.ts +3 -2
- package/dist/types/reader/mutations/use-site-email-me-new-comments-mutation.d.ts.map +1 -1
- package/dist/types/reader/mutations/use-site-email-me-new-posts-mutation.d.ts +3 -2
- package/dist/types/reader/mutations/use-site-email-me-new-posts-mutation.d.ts.map +1 -1
- package/dist/types/reader/mutations/use-site-notify-me-of-new-posts-mutation.d.ts +3 -2
- package/dist/types/reader/mutations/use-site-notify-me-of-new-posts-mutation.d.ts.map +1 -1
- package/dist/types/reader/mutations/use-site-subscribe-mutation.d.ts +3 -2
- 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 +3 -2
- package/dist/types/reader/mutations/use-site-unsubscribe-mutation.d.ts.map +1 -1
- package/dist/types/reader/queries/index.d.ts +1 -5
- package/dist/types/reader/queries/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 +6 -135
- package/dist/types/reader/queries/use-site-subscriptions-query.d.ts.map +1 -1
- package/dist/types/reader/types/index.d.ts +32 -44
- package/dist/types/reader/types/index.d.ts.map +1 -1
- package/dist/types/shared-types.d.ts +11 -0
- package/dist/types/shared-types.d.ts.map +1 -1
- package/dist/types/site/actions.d.ts +1 -1
- package/dist/types/site/actions.d.ts.map +1 -1
- package/dist/types/site/queries/use-site-user-query.d.ts.map +1 -1
- package/dist/types/site/selectors.d.ts.map +1 -1
- package/dist/types/site/types.d.ts +5 -0
- package/dist/types/site/types.d.ts.map +1 -1
- package/dist/types/starter-designs-queries/types.d.ts +1 -1
- package/dist/types/starter-designs-queries/types.d.ts.map +1 -1
- package/dist/types/starter-designs-queries/use-starter-design-by-slug.d.ts +1 -1
- package/dist/types/starter-designs-queries/use-starter-design-by-slug.d.ts.map +1 -1
- package/dist/types/starter-designs-queries/use-starter-designs-query.d.ts +1 -1
- package/dist/types/starter-designs-queries/use-starter-designs-query.d.ts.map +1 -1
- package/dist/types/subscriber/index.d.ts +1 -1
- package/dist/types/subscriber/index.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/dist/types/utils.d.ts +3 -0
- package/dist/types/utils.d.ts.map +1 -0
- package/dist/types/wpcom-plans-ui/actions.d.ts +1 -1
- package/dist/types/wpcom-plans-ui/index.d.ts +1 -1
- package/dist/types/wpcom-plans-ui/index.d.ts.map +1 -1
- package/dist/types/wpcom-request-controls/index.d.ts +1 -1
- package/dist/types/wpcom-request-controls/index.d.ts.map +1 -1
- package/dist/types/wpcom-request.d.ts +7 -0
- package/dist/types/wpcom-request.d.ts.map +1 -0
- package/package.json +26 -29
- package/src/add-ons/types.ts +1 -0
- package/src/agents-manager/actions.ts +151 -0
- package/src/agents-manager/constants.ts +1 -0
- package/src/agents-manager/index.ts +38 -0
- package/src/agents-manager/persist-state.ts +60 -0
- package/src/agents-manager/reducer.ts +106 -0
- package/src/agents-manager/resolvers.ts +87 -0
- package/src/agents-manager/selectors.ts +32 -0
- package/src/agents-manager/test/persist-state.test.ts +81 -0
- package/src/agents-manager/test/reducer.test.ts +69 -0
- package/src/agents-manager/types.ts +24 -0
- package/src/contextual-help/admin-sections.ts +2 -2
- package/src/help-center/actions.ts +139 -79
- package/src/help-center/constants.ts +1 -0
- package/src/help-center/index.ts +11 -32
- package/src/help-center/reducer.ts +55 -19
- package/src/help-center/resolvers.ts +47 -32
- package/src/help-center/selectors.ts +7 -2
- package/src/help-center/test/utils.ts +99 -0
- package/src/help-center/types.ts +23 -13
- package/src/help-center/utils.ts +156 -0
- package/src/index.ts +11 -4
- package/src/mutations/use-domains-bulk-actions-mutation.ts +1 -1
- package/src/newsletter-categories/index.ts +1 -1
- package/src/newsletter-categories/test/index.tsx +5 -2
- package/src/onboard/actions.ts +20 -3
- package/src/onboard/reducer.ts +38 -3
- package/src/onboard/selectors.ts +3 -0
- package/src/onboard/types.ts +1 -1
- package/src/plans/constants.ts +2 -0
- package/src/plans/hooks/test/use-pricing-meta-for-grid-plans.ts +120 -0
- package/src/plans/hooks/use-pricing-meta-for-grid-plans.ts +48 -18
- package/src/plans/index.ts +1 -0
- package/src/plans/queries/use-plans.ts +30 -2
- package/src/plans/queries/use-site-plans.ts +1 -1
- package/src/plans/resolvers.ts +0 -1
- package/src/plans/selectors.ts +9 -9
- package/src/plans/types.ts +6 -0
- package/src/products-list/queries/use-products.ts +1 -1
- package/src/products-list/resolvers.ts +1 -1
- package/src/products-list/selectors.ts +1 -1
- package/src/products-list/test/selectors.ts +2 -2
- package/src/purchases/lib/assembler.ts +20 -29
- package/src/purchases/queries/use-get-jetpack-transferred-license-purchases.tsx +1 -1
- package/src/purchases/queries/use-site-purchases.ts +2 -2
- package/src/purchases/types.ts +47 -116
- package/src/queries/use-all-domains-query.ts +3 -3
- package/src/queries/use-bulk-domain-update-status-query.ts +14 -115
- package/src/queries/use-happiness-engineers-query.ts +1 -1
- package/src/queries/use-launchpad.ts +1 -1
- package/src/queries/use-site-domains-query.ts +1 -1
- package/src/queries/use-site-intent.ts +1 -1
- package/src/queries/use-site-query.ts +1 -1
- package/src/reader/contexts/index.ts +0 -4
- package/src/reader/helpers/index.ts +3 -2
- package/src/reader/helpers/optimistic-update.ts +2 -1
- package/src/reader/index.ts +2 -4
- package/src/reader/mutations/test/use-site-subscription-mutations.test.tsx +208 -0
- package/src/reader/mutations/use-pending-site-confirm-mutation.ts +2 -2
- package/src/reader/mutations/use-site-delivery-frequency-mutation.ts +32 -36
- package/src/reader/mutations/use-site-email-me-new-comments-mutation.ts +10 -10
- package/src/reader/mutations/use-site-email-me-new-posts-mutation.ts +10 -10
- package/src/reader/mutations/use-site-notify-me-of-new-posts-mutation.ts +10 -10
- package/src/reader/mutations/use-site-subscribe-mutation.ts +21 -10
- package/src/reader/mutations/use-site-unsubscribe-mutation.ts +20 -10
- package/src/reader/queries/index.ts +4 -6
- package/src/reader/queries/test/use-site-subscriptions-query.tsx +158 -52
- package/src/reader/queries/use-site-subscriptions-query.ts +53 -55
- package/src/reader/types/index.ts +34 -48
- package/src/shared-types.ts +13 -0
- package/src/site/actions.ts +1 -1
- package/src/site/queries/use-site-features.ts +1 -1
- package/src/site/queries/use-site-media-storage.ts +1 -1
- package/src/site/queries/use-site-user-query.ts +1 -1
- package/src/site/queries/use-site.ts +1 -1
- package/src/site/resolvers.ts +1 -1
- package/src/site/selectors.ts +18 -10
- package/src/site/test/selectors.ts +3 -3
- package/src/site/types.ts +5 -0
- package/src/site-reset/test/use-site-reset-mutation.tsx +3 -4
- package/src/site-reset/use-site-reset-content-summary-query.ts +1 -1
- package/src/site-reset/use-site-reset-mutation.ts +1 -1
- package/src/site-reset/use-site-reset-status-query.ts +1 -1
- package/src/starter-designs-queries/types.ts +1 -1
- package/src/starter-designs-queries/use-starter-design-by-slug.ts +2 -2
- package/src/starter-designs-queries/use-starter-designs-query.ts +2 -2
- package/src/subscriber/actions.ts +1 -1
- package/src/templates/use-template.ts +1 -1
- package/src/user/types.ts +2 -38
- package/src/users/use-send-invites.ts +1 -1
- package/src/utils.ts +33 -0
- package/src/wpcom-request-controls/index.ts +2 -1
- package/src/wpcom-request.ts +26 -0
- 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/utils.js +0 -47
- package/dist/cjs/domain-suggestions/utils.js.map +0 -1
- package/dist/cjs/reader/contexts/unsubscribed-feeds-search.js +0 -26
- package/dist/cjs/reader/contexts/unsubscribed-feeds-search.js.map +0 -1
- package/dist/cjs/reader/queries/use-read-feed-query.js +0 -21
- package/dist/cjs/reader/queries/use-read-feed-query.js.map +0 -1
- package/dist/cjs/reader/queries/use-read-feed-search-query.js +0 -39
- package/dist/cjs/reader/queries/use-read-feed-search-query.js.map +0 -1
- package/dist/cjs/reader/queries/use-read-feed-site-query.js +0 -26
- package/dist/cjs/reader/queries/use-read-feed-site-query.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/utils.js +0 -41
- package/dist/esm/domain-suggestions/utils.js.map +0 -1
- package/dist/esm/reader/contexts/unsubscribed-feeds-search.js +0 -20
- package/dist/esm/reader/contexts/unsubscribed-feeds-search.js.map +0 -1
- package/dist/esm/reader/queries/use-read-feed-query.js +0 -18
- package/dist/esm/reader/queries/use-read-feed-query.js.map +0 -1
- package/dist/esm/reader/queries/use-read-feed-search-query.js +0 -35
- package/dist/esm/reader/queries/use-read-feed-search-query.js.map +0 -1
- package/dist/esm/reader/queries/use-read-feed-site-query.js +0 -23
- package/dist/esm/reader/queries/use-read-feed-site-query.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/dist/types/reader/contexts/unsubscribed-feeds-search.d.ts +0 -12
- package/dist/types/reader/contexts/unsubscribed-feeds-search.d.ts.map +0 -1
- package/dist/types/reader/queries/use-read-feed-query.d.ts +0 -28
- package/dist/types/reader/queries/use-read-feed-query.d.ts.map +0 -1
- package/dist/types/reader/queries/use-read-feed-search-query.d.ts +0 -34
- package/dist/types/reader/queries/use-read-feed-search-query.d.ts.map +0 -1
- package/dist/types/reader/queries/use-read-feed-site-query.d.ts +0 -15
- package/dist/types/reader/queries/use-read-feed-site-query.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/src/reader/contexts/unsubscribed-feeds-search.tsx +0 -35
- package/src/reader/queries/test/use-read-feed-search-query.tsx +0 -55
- package/src/reader/queries/use-read-feed-query.ts +0 -45
- package/src/reader/queries/use-read-feed-search-query.ts +0 -72
- package/src/reader/queries/use-read-feed-site-query.ts +0 -35
- /package/dist/cjs/{domain-suggestions → agents-manager}/types.js +0 -0
- /package/dist/esm/{domain-suggestions → agents-manager}/types.js +0 -0
|
@@ -4,7 +4,8 @@ export declare const SubscriptionManager: {
|
|
|
4
4
|
initialSearchTermState?: string | (() => string);
|
|
5
5
|
children: React.ReactNode;
|
|
6
6
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
siteSubscriptionsQueryKeyPrefix:
|
|
7
|
+
siteSubscriptionsQueryKeyPrefix: ("read" | "site-subscriptions")[];
|
|
8
|
+
subscriptionsCountQueryKeyPrefix: string[];
|
|
8
9
|
useCacheKey: (keyPrefix: (number | string)[]) => (string | number)[];
|
|
9
10
|
useIsLoggedIn: typeof useIsLoggedIn;
|
|
10
11
|
usePendingPostConfirmMutation: () => import("@tanstack/react-query").UseMutationResult<{
|
|
@@ -30,9 +31,11 @@ export declare const SubscriptionManager: {
|
|
|
30
31
|
error: Error;
|
|
31
32
|
isError: true;
|
|
32
33
|
isPending: false;
|
|
34
|
+
isLoading: false;
|
|
33
35
|
isLoadingError: false;
|
|
34
36
|
isRefetchError: true;
|
|
35
37
|
isSuccess: false;
|
|
38
|
+
isPlaceholderData: false;
|
|
36
39
|
status: "error";
|
|
37
40
|
dataUpdatedAt: number;
|
|
38
41
|
errorUpdatedAt: number;
|
|
@@ -42,14 +45,14 @@ export declare const SubscriptionManager: {
|
|
|
42
45
|
isFetched: boolean;
|
|
43
46
|
isFetchedAfterMount: boolean;
|
|
44
47
|
isFetching: boolean;
|
|
45
|
-
isLoading: boolean;
|
|
46
48
|
isInitialLoading: boolean;
|
|
47
49
|
isPaused: boolean;
|
|
48
|
-
isPlaceholderData: boolean;
|
|
49
50
|
isRefetching: boolean;
|
|
50
51
|
isStale: boolean;
|
|
52
|
+
isEnabled: boolean;
|
|
51
53
|
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("./types").PendingPostSubscriptionsResult, Error>>;
|
|
52
54
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
55
|
+
promise: Promise<import("./types").PendingPostSubscriptionsResult>;
|
|
53
56
|
data: {
|
|
54
57
|
pendingPosts: import("./types").PendingPostSubscription[] | undefined;
|
|
55
58
|
totalCount: number | undefined;
|
|
@@ -58,9 +61,11 @@ export declare const SubscriptionManager: {
|
|
|
58
61
|
error: null;
|
|
59
62
|
isError: false;
|
|
60
63
|
isPending: false;
|
|
64
|
+
isLoading: false;
|
|
61
65
|
isLoadingError: false;
|
|
62
66
|
isRefetchError: false;
|
|
63
67
|
isSuccess: true;
|
|
68
|
+
isPlaceholderData: false;
|
|
64
69
|
status: "success";
|
|
65
70
|
dataUpdatedAt: number;
|
|
66
71
|
errorUpdatedAt: number;
|
|
@@ -70,14 +75,14 @@ export declare const SubscriptionManager: {
|
|
|
70
75
|
isFetched: boolean;
|
|
71
76
|
isFetchedAfterMount: boolean;
|
|
72
77
|
isFetching: boolean;
|
|
73
|
-
isLoading: boolean;
|
|
74
78
|
isInitialLoading: boolean;
|
|
75
79
|
isPaused: boolean;
|
|
76
|
-
isPlaceholderData: boolean;
|
|
77
80
|
isRefetching: boolean;
|
|
78
81
|
isStale: boolean;
|
|
82
|
+
isEnabled: boolean;
|
|
79
83
|
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("./types").PendingPostSubscriptionsResult, Error>>;
|
|
80
84
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
85
|
+
promise: Promise<import("./types").PendingPostSubscriptionsResult>;
|
|
81
86
|
data: {
|
|
82
87
|
pendingPosts: import("./types").PendingPostSubscription[] | undefined;
|
|
83
88
|
totalCount: number | undefined;
|
|
@@ -86,9 +91,11 @@ export declare const SubscriptionManager: {
|
|
|
86
91
|
error: Error;
|
|
87
92
|
isError: true;
|
|
88
93
|
isPending: false;
|
|
94
|
+
isLoading: false;
|
|
89
95
|
isLoadingError: true;
|
|
90
96
|
isRefetchError: false;
|
|
91
97
|
isSuccess: false;
|
|
98
|
+
isPlaceholderData: false;
|
|
92
99
|
status: "error";
|
|
93
100
|
dataUpdatedAt: number;
|
|
94
101
|
errorUpdatedAt: number;
|
|
@@ -98,14 +105,44 @@ export declare const SubscriptionManager: {
|
|
|
98
105
|
isFetched: boolean;
|
|
99
106
|
isFetchedAfterMount: boolean;
|
|
100
107
|
isFetching: boolean;
|
|
101
|
-
isLoading: boolean;
|
|
102
108
|
isInitialLoading: boolean;
|
|
103
109
|
isPaused: boolean;
|
|
104
|
-
isPlaceholderData: boolean;
|
|
105
110
|
isRefetching: boolean;
|
|
106
111
|
isStale: boolean;
|
|
112
|
+
isEnabled: boolean;
|
|
113
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("./types").PendingPostSubscriptionsResult, Error>>;
|
|
114
|
+
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
115
|
+
promise: Promise<import("./types").PendingPostSubscriptionsResult>;
|
|
116
|
+
data: {
|
|
117
|
+
pendingPosts: import("./types").PendingPostSubscription[] | undefined;
|
|
118
|
+
totalCount: number | undefined;
|
|
119
|
+
};
|
|
120
|
+
} | {
|
|
121
|
+
error: null;
|
|
122
|
+
isError: false;
|
|
123
|
+
isPending: true;
|
|
124
|
+
isLoading: true;
|
|
125
|
+
isLoadingError: false;
|
|
126
|
+
isRefetchError: false;
|
|
127
|
+
isSuccess: false;
|
|
128
|
+
isPlaceholderData: false;
|
|
129
|
+
status: "pending";
|
|
130
|
+
dataUpdatedAt: number;
|
|
131
|
+
errorUpdatedAt: number;
|
|
132
|
+
failureCount: number;
|
|
133
|
+
failureReason: Error | null;
|
|
134
|
+
errorUpdateCount: number;
|
|
135
|
+
isFetched: boolean;
|
|
136
|
+
isFetchedAfterMount: boolean;
|
|
137
|
+
isFetching: boolean;
|
|
138
|
+
isInitialLoading: boolean;
|
|
139
|
+
isPaused: boolean;
|
|
140
|
+
isRefetching: boolean;
|
|
141
|
+
isStale: boolean;
|
|
142
|
+
isEnabled: boolean;
|
|
107
143
|
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("./types").PendingPostSubscriptionsResult, Error>>;
|
|
108
144
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
145
|
+
promise: Promise<import("./types").PendingPostSubscriptionsResult>;
|
|
109
146
|
data: {
|
|
110
147
|
pendingPosts: import("./types").PendingPostSubscription[] | undefined;
|
|
111
148
|
totalCount: number | undefined;
|
|
@@ -117,6 +154,7 @@ export declare const SubscriptionManager: {
|
|
|
117
154
|
isLoadingError: false;
|
|
118
155
|
isRefetchError: false;
|
|
119
156
|
isSuccess: false;
|
|
157
|
+
isPlaceholderData: false;
|
|
120
158
|
status: "pending";
|
|
121
159
|
dataUpdatedAt: number;
|
|
122
160
|
errorUpdatedAt: number;
|
|
@@ -129,11 +167,42 @@ export declare const SubscriptionManager: {
|
|
|
129
167
|
isLoading: boolean;
|
|
130
168
|
isInitialLoading: boolean;
|
|
131
169
|
isPaused: boolean;
|
|
132
|
-
isPlaceholderData: boolean;
|
|
133
170
|
isRefetching: boolean;
|
|
134
171
|
isStale: boolean;
|
|
172
|
+
isEnabled: boolean;
|
|
173
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("./types").PendingPostSubscriptionsResult, Error>>;
|
|
174
|
+
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
175
|
+
promise: Promise<import("./types").PendingPostSubscriptionsResult>;
|
|
176
|
+
data: {
|
|
177
|
+
pendingPosts: import("./types").PendingPostSubscription[] | undefined;
|
|
178
|
+
totalCount: number | undefined;
|
|
179
|
+
};
|
|
180
|
+
} | {
|
|
181
|
+
isError: false;
|
|
182
|
+
error: null;
|
|
183
|
+
isPending: false;
|
|
184
|
+
isLoading: false;
|
|
185
|
+
isLoadingError: false;
|
|
186
|
+
isRefetchError: false;
|
|
187
|
+
isSuccess: true;
|
|
188
|
+
isPlaceholderData: true;
|
|
189
|
+
status: "success";
|
|
190
|
+
dataUpdatedAt: number;
|
|
191
|
+
errorUpdatedAt: number;
|
|
192
|
+
failureCount: number;
|
|
193
|
+
failureReason: Error | null;
|
|
194
|
+
errorUpdateCount: number;
|
|
195
|
+
isFetched: boolean;
|
|
196
|
+
isFetchedAfterMount: boolean;
|
|
197
|
+
isFetching: boolean;
|
|
198
|
+
isInitialLoading: boolean;
|
|
199
|
+
isPaused: boolean;
|
|
200
|
+
isRefetching: boolean;
|
|
201
|
+
isStale: boolean;
|
|
202
|
+
isEnabled: boolean;
|
|
135
203
|
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("./types").PendingPostSubscriptionsResult, Error>>;
|
|
136
204
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
205
|
+
promise: Promise<import("./types").PendingPostSubscriptionsResult>;
|
|
137
206
|
data: {
|
|
138
207
|
pendingPosts: import("./types").PendingPostSubscription[] | undefined;
|
|
139
208
|
totalCount: number | undefined;
|
|
@@ -163,9 +232,11 @@ export declare const SubscriptionManager: {
|
|
|
163
232
|
error: Error;
|
|
164
233
|
isError: true;
|
|
165
234
|
isPending: false;
|
|
235
|
+
isLoading: false;
|
|
166
236
|
isLoadingError: false;
|
|
167
237
|
isRefetchError: true;
|
|
168
238
|
isSuccess: false;
|
|
239
|
+
isPlaceholderData: false;
|
|
169
240
|
status: "error";
|
|
170
241
|
dataUpdatedAt: number;
|
|
171
242
|
errorUpdatedAt: number;
|
|
@@ -175,14 +246,14 @@ export declare const SubscriptionManager: {
|
|
|
175
246
|
isFetched: boolean;
|
|
176
247
|
isFetchedAfterMount: boolean;
|
|
177
248
|
isFetching: boolean;
|
|
178
|
-
isLoading: boolean;
|
|
179
249
|
isInitialLoading: boolean;
|
|
180
250
|
isPaused: boolean;
|
|
181
|
-
isPlaceholderData: boolean;
|
|
182
251
|
isRefetching: boolean;
|
|
183
252
|
isStale: boolean;
|
|
253
|
+
isEnabled: boolean;
|
|
184
254
|
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("./types").PendingSiteSubscriptionsResult, Error>>;
|
|
185
255
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
256
|
+
promise: Promise<import("./types").PendingSiteSubscriptionsResult>;
|
|
186
257
|
data: {
|
|
187
258
|
pendingSites: import("./types").PendingSiteSubscription[] | undefined;
|
|
188
259
|
totalCount: number | undefined;
|
|
@@ -191,9 +262,11 @@ export declare const SubscriptionManager: {
|
|
|
191
262
|
error: null;
|
|
192
263
|
isError: false;
|
|
193
264
|
isPending: false;
|
|
265
|
+
isLoading: false;
|
|
194
266
|
isLoadingError: false;
|
|
195
267
|
isRefetchError: false;
|
|
196
268
|
isSuccess: true;
|
|
269
|
+
isPlaceholderData: false;
|
|
197
270
|
status: "success";
|
|
198
271
|
dataUpdatedAt: number;
|
|
199
272
|
errorUpdatedAt: number;
|
|
@@ -203,14 +276,14 @@ export declare const SubscriptionManager: {
|
|
|
203
276
|
isFetched: boolean;
|
|
204
277
|
isFetchedAfterMount: boolean;
|
|
205
278
|
isFetching: boolean;
|
|
206
|
-
isLoading: boolean;
|
|
207
279
|
isInitialLoading: boolean;
|
|
208
280
|
isPaused: boolean;
|
|
209
|
-
isPlaceholderData: boolean;
|
|
210
281
|
isRefetching: boolean;
|
|
211
282
|
isStale: boolean;
|
|
283
|
+
isEnabled: boolean;
|
|
212
284
|
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("./types").PendingSiteSubscriptionsResult, Error>>;
|
|
213
285
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
286
|
+
promise: Promise<import("./types").PendingSiteSubscriptionsResult>;
|
|
214
287
|
data: {
|
|
215
288
|
pendingSites: import("./types").PendingSiteSubscription[] | undefined;
|
|
216
289
|
totalCount: number | undefined;
|
|
@@ -219,9 +292,11 @@ export declare const SubscriptionManager: {
|
|
|
219
292
|
error: Error;
|
|
220
293
|
isError: true;
|
|
221
294
|
isPending: false;
|
|
295
|
+
isLoading: false;
|
|
222
296
|
isLoadingError: true;
|
|
223
297
|
isRefetchError: false;
|
|
224
298
|
isSuccess: false;
|
|
299
|
+
isPlaceholderData: false;
|
|
225
300
|
status: "error";
|
|
226
301
|
dataUpdatedAt: number;
|
|
227
302
|
errorUpdatedAt: number;
|
|
@@ -231,14 +306,44 @@ export declare const SubscriptionManager: {
|
|
|
231
306
|
isFetched: boolean;
|
|
232
307
|
isFetchedAfterMount: boolean;
|
|
233
308
|
isFetching: boolean;
|
|
234
|
-
isLoading: boolean;
|
|
235
309
|
isInitialLoading: boolean;
|
|
236
310
|
isPaused: boolean;
|
|
237
|
-
isPlaceholderData: boolean;
|
|
238
311
|
isRefetching: boolean;
|
|
239
312
|
isStale: boolean;
|
|
313
|
+
isEnabled: boolean;
|
|
314
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("./types").PendingSiteSubscriptionsResult, Error>>;
|
|
315
|
+
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
316
|
+
promise: Promise<import("./types").PendingSiteSubscriptionsResult>;
|
|
317
|
+
data: {
|
|
318
|
+
pendingSites: import("./types").PendingSiteSubscription[] | undefined;
|
|
319
|
+
totalCount: number | undefined;
|
|
320
|
+
};
|
|
321
|
+
} | {
|
|
322
|
+
error: null;
|
|
323
|
+
isError: false;
|
|
324
|
+
isPending: true;
|
|
325
|
+
isLoading: true;
|
|
326
|
+
isLoadingError: false;
|
|
327
|
+
isRefetchError: false;
|
|
328
|
+
isSuccess: false;
|
|
329
|
+
isPlaceholderData: false;
|
|
330
|
+
status: "pending";
|
|
331
|
+
dataUpdatedAt: number;
|
|
332
|
+
errorUpdatedAt: number;
|
|
333
|
+
failureCount: number;
|
|
334
|
+
failureReason: Error | null;
|
|
335
|
+
errorUpdateCount: number;
|
|
336
|
+
isFetched: boolean;
|
|
337
|
+
isFetchedAfterMount: boolean;
|
|
338
|
+
isFetching: boolean;
|
|
339
|
+
isInitialLoading: boolean;
|
|
340
|
+
isPaused: boolean;
|
|
341
|
+
isRefetching: boolean;
|
|
342
|
+
isStale: boolean;
|
|
343
|
+
isEnabled: boolean;
|
|
240
344
|
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("./types").PendingSiteSubscriptionsResult, Error>>;
|
|
241
345
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
346
|
+
promise: Promise<import("./types").PendingSiteSubscriptionsResult>;
|
|
242
347
|
data: {
|
|
243
348
|
pendingSites: import("./types").PendingSiteSubscription[] | undefined;
|
|
244
349
|
totalCount: number | undefined;
|
|
@@ -250,6 +355,7 @@ export declare const SubscriptionManager: {
|
|
|
250
355
|
isLoadingError: false;
|
|
251
356
|
isRefetchError: false;
|
|
252
357
|
isSuccess: false;
|
|
358
|
+
isPlaceholderData: false;
|
|
253
359
|
status: "pending";
|
|
254
360
|
dataUpdatedAt: number;
|
|
255
361
|
errorUpdatedAt: number;
|
|
@@ -262,11 +368,42 @@ export declare const SubscriptionManager: {
|
|
|
262
368
|
isLoading: boolean;
|
|
263
369
|
isInitialLoading: boolean;
|
|
264
370
|
isPaused: boolean;
|
|
265
|
-
isPlaceholderData: boolean;
|
|
266
371
|
isRefetching: boolean;
|
|
267
372
|
isStale: boolean;
|
|
373
|
+
isEnabled: boolean;
|
|
374
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("./types").PendingSiteSubscriptionsResult, Error>>;
|
|
375
|
+
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
376
|
+
promise: Promise<import("./types").PendingSiteSubscriptionsResult>;
|
|
377
|
+
data: {
|
|
378
|
+
pendingSites: import("./types").PendingSiteSubscription[] | undefined;
|
|
379
|
+
totalCount: number | undefined;
|
|
380
|
+
};
|
|
381
|
+
} | {
|
|
382
|
+
isError: false;
|
|
383
|
+
error: null;
|
|
384
|
+
isPending: false;
|
|
385
|
+
isLoading: false;
|
|
386
|
+
isLoadingError: false;
|
|
387
|
+
isRefetchError: false;
|
|
388
|
+
isSuccess: true;
|
|
389
|
+
isPlaceholderData: true;
|
|
390
|
+
status: "success";
|
|
391
|
+
dataUpdatedAt: number;
|
|
392
|
+
errorUpdatedAt: number;
|
|
393
|
+
failureCount: number;
|
|
394
|
+
failureReason: Error | null;
|
|
395
|
+
errorUpdateCount: number;
|
|
396
|
+
isFetched: boolean;
|
|
397
|
+
isFetchedAfterMount: boolean;
|
|
398
|
+
isFetching: boolean;
|
|
399
|
+
isInitialLoading: boolean;
|
|
400
|
+
isPaused: boolean;
|
|
401
|
+
isRefetching: boolean;
|
|
402
|
+
isStale: boolean;
|
|
403
|
+
isEnabled: boolean;
|
|
268
404
|
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("./types").PendingSiteSubscriptionsResult, Error>>;
|
|
269
405
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
406
|
+
promise: Promise<import("./types").PendingSiteSubscriptionsResult>;
|
|
270
407
|
data: {
|
|
271
408
|
pendingSites: import("./types").PendingSiteSubscription[] | undefined;
|
|
272
409
|
totalCount: number | undefined;
|
|
@@ -315,9 +452,151 @@ export declare const SubscriptionManager: {
|
|
|
315
452
|
error: Error;
|
|
316
453
|
isError: true;
|
|
317
454
|
isPending: false;
|
|
455
|
+
isLoading: false;
|
|
456
|
+
isLoadingError: false;
|
|
457
|
+
isRefetchError: true;
|
|
458
|
+
isSuccess: false;
|
|
459
|
+
isPlaceholderData: false;
|
|
460
|
+
status: "error";
|
|
461
|
+
fetchNextPage: (options?: import("@tanstack/query-core").FetchNextPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
462
|
+
comment_subscriptions: import("./types").PostSubscription[];
|
|
463
|
+
total_comment_subscriptions_count: number;
|
|
464
|
+
}, unknown>, Error>>;
|
|
465
|
+
fetchPreviousPage: (options?: import("@tanstack/query-core").FetchPreviousPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
466
|
+
comment_subscriptions: import("./types").PostSubscription[];
|
|
467
|
+
total_comment_subscriptions_count: number;
|
|
468
|
+
}, unknown>, Error>>;
|
|
469
|
+
hasPreviousPage: boolean;
|
|
470
|
+
isFetchNextPageError: boolean;
|
|
471
|
+
isFetchPreviousPageError: boolean;
|
|
472
|
+
isFetchingPreviousPage: boolean;
|
|
473
|
+
dataUpdatedAt: number;
|
|
474
|
+
errorUpdatedAt: number;
|
|
475
|
+
failureCount: number;
|
|
476
|
+
failureReason: Error | null;
|
|
477
|
+
errorUpdateCount: number;
|
|
478
|
+
isFetched: boolean;
|
|
479
|
+
isFetchedAfterMount: boolean;
|
|
480
|
+
isInitialLoading: boolean;
|
|
481
|
+
isPaused: boolean;
|
|
482
|
+
isRefetching: boolean;
|
|
483
|
+
isStale: boolean;
|
|
484
|
+
isEnabled: boolean;
|
|
485
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
486
|
+
comment_subscriptions: import("./types").PostSubscription[];
|
|
487
|
+
total_comment_subscriptions_count: number;
|
|
488
|
+
}, unknown>, Error>>;
|
|
489
|
+
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
490
|
+
promise: Promise<import("@tanstack/query-core").InfiniteData<{
|
|
491
|
+
comment_subscriptions: import("./types").PostSubscription[];
|
|
492
|
+
total_comment_subscriptions_count: number;
|
|
493
|
+
}, unknown>>;
|
|
494
|
+
} | {
|
|
495
|
+
data: {
|
|
496
|
+
posts: {
|
|
497
|
+
date_subscribed: Date;
|
|
498
|
+
id: string;
|
|
499
|
+
blog_id: string;
|
|
500
|
+
site_id: string;
|
|
501
|
+
site_title: string;
|
|
502
|
+
site_icon: string;
|
|
503
|
+
site_url: string;
|
|
504
|
+
domain: string;
|
|
505
|
+
is_wpforteams_site: boolean;
|
|
506
|
+
is_paid_subscription: boolean;
|
|
507
|
+
organization_id: number;
|
|
508
|
+
post_id: number;
|
|
509
|
+
post_title: string;
|
|
510
|
+
post_excerpt: string;
|
|
511
|
+
post_url: string;
|
|
512
|
+
notification: {
|
|
513
|
+
send_comments: boolean;
|
|
514
|
+
};
|
|
515
|
+
}[] | undefined;
|
|
516
|
+
totalCount: number;
|
|
517
|
+
};
|
|
518
|
+
isFetchingNextPage: boolean;
|
|
519
|
+
isFetching: boolean;
|
|
520
|
+
hasNextPage: boolean;
|
|
521
|
+
error: null;
|
|
522
|
+
isError: false;
|
|
523
|
+
isPending: false;
|
|
524
|
+
isLoading: false;
|
|
525
|
+
isLoadingError: false;
|
|
526
|
+
isRefetchError: false;
|
|
527
|
+
isFetchNextPageError: false;
|
|
528
|
+
isFetchPreviousPageError: false;
|
|
529
|
+
isSuccess: true;
|
|
530
|
+
isPlaceholderData: false;
|
|
531
|
+
status: "success";
|
|
532
|
+
fetchNextPage: (options?: import("@tanstack/query-core").FetchNextPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
533
|
+
comment_subscriptions: import("./types").PostSubscription[];
|
|
534
|
+
total_comment_subscriptions_count: number;
|
|
535
|
+
}, unknown>, Error>>;
|
|
536
|
+
fetchPreviousPage: (options?: import("@tanstack/query-core").FetchPreviousPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
537
|
+
comment_subscriptions: import("./types").PostSubscription[];
|
|
538
|
+
total_comment_subscriptions_count: number;
|
|
539
|
+
}, unknown>, Error>>;
|
|
540
|
+
hasPreviousPage: boolean;
|
|
541
|
+
isFetchingPreviousPage: boolean;
|
|
542
|
+
dataUpdatedAt: number;
|
|
543
|
+
errorUpdatedAt: number;
|
|
544
|
+
failureCount: number;
|
|
545
|
+
failureReason: Error | null;
|
|
546
|
+
errorUpdateCount: number;
|
|
547
|
+
isFetched: boolean;
|
|
548
|
+
isFetchedAfterMount: boolean;
|
|
549
|
+
isInitialLoading: boolean;
|
|
550
|
+
isPaused: boolean;
|
|
551
|
+
isRefetching: boolean;
|
|
552
|
+
isStale: boolean;
|
|
553
|
+
isEnabled: boolean;
|
|
554
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
555
|
+
comment_subscriptions: import("./types").PostSubscription[];
|
|
556
|
+
total_comment_subscriptions_count: number;
|
|
557
|
+
}, unknown>, Error>>;
|
|
558
|
+
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
559
|
+
promise: Promise<import("@tanstack/query-core").InfiniteData<{
|
|
560
|
+
comment_subscriptions: import("./types").PostSubscription[];
|
|
561
|
+
total_comment_subscriptions_count: number;
|
|
562
|
+
}, unknown>>;
|
|
563
|
+
} | {
|
|
564
|
+
data: {
|
|
565
|
+
posts: {
|
|
566
|
+
date_subscribed: Date;
|
|
567
|
+
id: string;
|
|
568
|
+
blog_id: string;
|
|
569
|
+
site_id: string;
|
|
570
|
+
site_title: string;
|
|
571
|
+
site_icon: string;
|
|
572
|
+
site_url: string;
|
|
573
|
+
domain: string;
|
|
574
|
+
is_wpforteams_site: boolean;
|
|
575
|
+
is_paid_subscription: boolean;
|
|
576
|
+
organization_id: number;
|
|
577
|
+
post_id: number;
|
|
578
|
+
post_title: string;
|
|
579
|
+
post_excerpt: string;
|
|
580
|
+
post_url: string;
|
|
581
|
+
notification: {
|
|
582
|
+
send_comments: boolean;
|
|
583
|
+
};
|
|
584
|
+
}[] | undefined;
|
|
585
|
+
totalCount: number;
|
|
586
|
+
};
|
|
587
|
+
isFetchingNextPage: boolean;
|
|
588
|
+
isFetching: boolean;
|
|
589
|
+
hasNextPage: boolean;
|
|
590
|
+
error: Error;
|
|
591
|
+
isError: true;
|
|
592
|
+
isPending: false;
|
|
593
|
+
isLoading: false;
|
|
318
594
|
isLoadingError: true;
|
|
319
595
|
isRefetchError: false;
|
|
596
|
+
isFetchNextPageError: false;
|
|
597
|
+
isFetchPreviousPageError: false;
|
|
320
598
|
isSuccess: false;
|
|
599
|
+
isPlaceholderData: false;
|
|
321
600
|
status: "error";
|
|
322
601
|
fetchNextPage: (options?: import("@tanstack/query-core").FetchNextPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
323
602
|
comment_subscriptions: import("./types").PostSubscription[];
|
|
@@ -336,17 +615,20 @@ export declare const SubscriptionManager: {
|
|
|
336
615
|
errorUpdateCount: number;
|
|
337
616
|
isFetched: boolean;
|
|
338
617
|
isFetchedAfterMount: boolean;
|
|
339
|
-
isLoading: boolean;
|
|
340
618
|
isInitialLoading: boolean;
|
|
341
619
|
isPaused: boolean;
|
|
342
|
-
isPlaceholderData: boolean;
|
|
343
620
|
isRefetching: boolean;
|
|
344
621
|
isStale: boolean;
|
|
622
|
+
isEnabled: boolean;
|
|
345
623
|
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
346
624
|
comment_subscriptions: import("./types").PostSubscription[];
|
|
347
625
|
total_comment_subscriptions_count: number;
|
|
348
626
|
}, unknown>, Error>>;
|
|
349
627
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
628
|
+
promise: Promise<import("@tanstack/query-core").InfiniteData<{
|
|
629
|
+
comment_subscriptions: import("./types").PostSubscription[];
|
|
630
|
+
total_comment_subscriptions_count: number;
|
|
631
|
+
}, unknown>>;
|
|
350
632
|
} | {
|
|
351
633
|
data: {
|
|
352
634
|
posts: {
|
|
@@ -377,9 +659,13 @@ export declare const SubscriptionManager: {
|
|
|
377
659
|
error: null;
|
|
378
660
|
isError: false;
|
|
379
661
|
isPending: true;
|
|
662
|
+
isLoading: true;
|
|
380
663
|
isLoadingError: false;
|
|
381
664
|
isRefetchError: false;
|
|
665
|
+
isFetchNextPageError: false;
|
|
666
|
+
isFetchPreviousPageError: false;
|
|
382
667
|
isSuccess: false;
|
|
668
|
+
isPlaceholderData: false;
|
|
383
669
|
status: "pending";
|
|
384
670
|
fetchNextPage: (options?: import("@tanstack/query-core").FetchNextPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
385
671
|
comment_subscriptions: import("./types").PostSubscription[];
|
|
@@ -398,17 +684,20 @@ export declare const SubscriptionManager: {
|
|
|
398
684
|
errorUpdateCount: number;
|
|
399
685
|
isFetched: boolean;
|
|
400
686
|
isFetchedAfterMount: boolean;
|
|
401
|
-
isLoading: boolean;
|
|
402
687
|
isInitialLoading: boolean;
|
|
403
688
|
isPaused: boolean;
|
|
404
|
-
isPlaceholderData: boolean;
|
|
405
689
|
isRefetching: boolean;
|
|
406
690
|
isStale: boolean;
|
|
691
|
+
isEnabled: boolean;
|
|
407
692
|
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
408
693
|
comment_subscriptions: import("./types").PostSubscription[];
|
|
409
694
|
total_comment_subscriptions_count: number;
|
|
410
695
|
}, unknown>, Error>>;
|
|
411
696
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
697
|
+
promise: Promise<import("@tanstack/query-core").InfiniteData<{
|
|
698
|
+
comment_subscriptions: import("./types").PostSubscription[];
|
|
699
|
+
total_comment_subscriptions_count: number;
|
|
700
|
+
}, unknown>>;
|
|
412
701
|
} | {
|
|
413
702
|
data: {
|
|
414
703
|
posts: {
|
|
@@ -436,13 +725,16 @@ export declare const SubscriptionManager: {
|
|
|
436
725
|
isFetchingNextPage: boolean;
|
|
437
726
|
isFetching: boolean;
|
|
438
727
|
hasNextPage: boolean;
|
|
439
|
-
error:
|
|
440
|
-
isError:
|
|
441
|
-
isPending:
|
|
728
|
+
error: null;
|
|
729
|
+
isError: false;
|
|
730
|
+
isPending: true;
|
|
442
731
|
isLoadingError: false;
|
|
443
|
-
isRefetchError:
|
|
732
|
+
isRefetchError: false;
|
|
733
|
+
isFetchNextPageError: false;
|
|
734
|
+
isFetchPreviousPageError: false;
|
|
444
735
|
isSuccess: false;
|
|
445
|
-
|
|
736
|
+
isPlaceholderData: false;
|
|
737
|
+
status: "pending";
|
|
446
738
|
fetchNextPage: (options?: import("@tanstack/query-core").FetchNextPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
447
739
|
comment_subscriptions: import("./types").PostSubscription[];
|
|
448
740
|
total_comment_subscriptions_count: number;
|
|
@@ -463,14 +755,18 @@ export declare const SubscriptionManager: {
|
|
|
463
755
|
isLoading: boolean;
|
|
464
756
|
isInitialLoading: boolean;
|
|
465
757
|
isPaused: boolean;
|
|
466
|
-
isPlaceholderData: boolean;
|
|
467
758
|
isRefetching: boolean;
|
|
468
759
|
isStale: boolean;
|
|
760
|
+
isEnabled: boolean;
|
|
469
761
|
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
470
762
|
comment_subscriptions: import("./types").PostSubscription[];
|
|
471
763
|
total_comment_subscriptions_count: number;
|
|
472
764
|
}, unknown>, Error>>;
|
|
473
765
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
766
|
+
promise: Promise<import("@tanstack/query-core").InfiniteData<{
|
|
767
|
+
comment_subscriptions: import("./types").PostSubscription[];
|
|
768
|
+
total_comment_subscriptions_count: number;
|
|
769
|
+
}, unknown>>;
|
|
474
770
|
} | {
|
|
475
771
|
data: {
|
|
476
772
|
posts: {
|
|
@@ -498,12 +794,16 @@ export declare const SubscriptionManager: {
|
|
|
498
794
|
isFetchingNextPage: boolean;
|
|
499
795
|
isFetching: boolean;
|
|
500
796
|
hasNextPage: boolean;
|
|
501
|
-
error: null;
|
|
502
797
|
isError: false;
|
|
798
|
+
error: null;
|
|
503
799
|
isPending: false;
|
|
800
|
+
isLoading: false;
|
|
504
801
|
isLoadingError: false;
|
|
505
802
|
isRefetchError: false;
|
|
506
803
|
isSuccess: true;
|
|
804
|
+
isPlaceholderData: true;
|
|
805
|
+
isFetchNextPageError: false;
|
|
806
|
+
isFetchPreviousPageError: false;
|
|
507
807
|
status: "success";
|
|
508
808
|
fetchNextPage: (options?: import("@tanstack/query-core").FetchNextPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
509
809
|
comment_subscriptions: import("./types").PostSubscription[];
|
|
@@ -522,17 +822,20 @@ export declare const SubscriptionManager: {
|
|
|
522
822
|
errorUpdateCount: number;
|
|
523
823
|
isFetched: boolean;
|
|
524
824
|
isFetchedAfterMount: boolean;
|
|
525
|
-
isLoading: boolean;
|
|
526
825
|
isInitialLoading: boolean;
|
|
527
826
|
isPaused: boolean;
|
|
528
|
-
isPlaceholderData: boolean;
|
|
529
827
|
isRefetching: boolean;
|
|
530
828
|
isStale: boolean;
|
|
829
|
+
isEnabled: boolean;
|
|
531
830
|
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
532
831
|
comment_subscriptions: import("./types").PostSubscription[];
|
|
533
832
|
total_comment_subscriptions_count: number;
|
|
534
833
|
}, unknown>, Error>>;
|
|
535
834
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
835
|
+
promise: Promise<import("@tanstack/query-core").InfiniteData<{
|
|
836
|
+
comment_subscriptions: import("./types").PostSubscription[];
|
|
837
|
+
total_comment_subscriptions_count: number;
|
|
838
|
+
}, unknown>>;
|
|
536
839
|
};
|
|
537
840
|
usePostUnsubscribeMutation: () => import("@tanstack/react-query").UseMutationResult<{
|
|
538
841
|
success: boolean;
|
|
@@ -566,7 +869,7 @@ export declare const SubscriptionManager: {
|
|
|
566
869
|
blog_id: number | string;
|
|
567
870
|
subscriptionId: number;
|
|
568
871
|
}, {
|
|
569
|
-
previousSiteSubscriptions: import("
|
|
872
|
+
previousSiteSubscriptions: import("@automattic/api-queries").SiteSubscriptionsInfiniteData | undefined;
|
|
570
873
|
previousSiteSubscriptionDetails: {
|
|
571
874
|
key: (string | number | boolean | undefined)[];
|
|
572
875
|
data: import("./types").SiteSubscriptionDetails;
|
|
@@ -580,7 +883,7 @@ export declare const SubscriptionManager: {
|
|
|
580
883
|
blog_id: number | string;
|
|
581
884
|
subscriptionId: number;
|
|
582
885
|
}, {
|
|
583
|
-
previousSiteSubscriptions: import("
|
|
886
|
+
previousSiteSubscriptions: import("@automattic/api-queries").SiteSubscriptionsInfiniteData | undefined;
|
|
584
887
|
previousSiteSubscriptionDetails: {
|
|
585
888
|
key: (string | number | boolean | undefined)[];
|
|
586
889
|
data: import("./types").SiteSubscriptionDetails;
|
|
@@ -594,7 +897,7 @@ export declare const SubscriptionManager: {
|
|
|
594
897
|
blog_id: number | string;
|
|
595
898
|
subscriptionId: number;
|
|
596
899
|
}, {
|
|
597
|
-
previousSiteSubscriptions: import("
|
|
900
|
+
previousSiteSubscriptions: import("@automattic/api-queries").SiteSubscriptionsInfiniteData | undefined;
|
|
598
901
|
previousSiteSubscriptionDetails: {
|
|
599
902
|
key: (string | number | boolean | undefined)[];
|
|
600
903
|
data: import("./types").SiteSubscriptionDetails;
|
|
@@ -608,7 +911,7 @@ export declare const SubscriptionManager: {
|
|
|
608
911
|
blog_id: number | string;
|
|
609
912
|
subscriptionId: number;
|
|
610
913
|
}, {
|
|
611
|
-
previousSiteSubscriptions: import("
|
|
914
|
+
previousSiteSubscriptions: import("@automattic/api-queries").SiteSubscriptionsInfiniteData | undefined;
|
|
612
915
|
previousSiteSubscriptionDetails: {
|
|
613
916
|
key: (string | number | boolean | undefined)[];
|
|
614
917
|
data: import("./types").SiteSubscriptionDetails;
|
|
@@ -619,6 +922,7 @@ export declare const SubscriptionManager: {
|
|
|
619
922
|
success?: boolean;
|
|
620
923
|
subscribed?: boolean;
|
|
621
924
|
subscription?: {
|
|
925
|
+
ID: string;
|
|
622
926
|
blog_ID: string;
|
|
623
927
|
delivery_frequency: string;
|
|
624
928
|
status: string;
|
|
@@ -634,176 +938,21 @@ export declare const SubscriptionManager: {
|
|
|
634
938
|
subscriptionId?: number;
|
|
635
939
|
resubscribed?: boolean;
|
|
636
940
|
}, {
|
|
637
|
-
previousSiteSubscriptions: import("
|
|
941
|
+
previousSiteSubscriptions: import("@automattic/api-queries").SiteSubscriptionsInfiniteData | undefined;
|
|
638
942
|
previousSiteSubscriptionDetails: import("./types").SiteSubscriptionDetails | undefined;
|
|
639
943
|
}>;
|
|
640
944
|
useSiteSubscriptionDetailsQuery: (blogId?: string, subscriptionId?: string) => import("@tanstack/react-query").UseQueryResult<import("./types").SiteSubscriptionDetailsResponse<string>, Error>;
|
|
641
|
-
useSiteSubscriptionsQuery: (
|
|
642
|
-
number?: number;
|
|
643
|
-
}) => {
|
|
644
|
-
error: Error;
|
|
645
|
-
isError: true;
|
|
646
|
-
isPending: false;
|
|
647
|
-
isLoadingError: true;
|
|
648
|
-
isRefetchError: false;
|
|
649
|
-
isSuccess: false;
|
|
650
|
-
status: "error";
|
|
651
|
-
fetchPreviousPage: (options?: import("@tanstack/query-core").FetchPreviousPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
652
|
-
subscriptions: import("./types").SiteSubscriptionsResponseItem[];
|
|
653
|
-
page: number;
|
|
654
|
-
total_subscriptions: number;
|
|
655
|
-
}, unknown>, Error>>;
|
|
656
|
-
hasPreviousPage: boolean;
|
|
657
|
-
isFetchingPreviousPage: boolean;
|
|
658
|
-
dataUpdatedAt: number;
|
|
659
|
-
errorUpdatedAt: number;
|
|
660
|
-
failureCount: number;
|
|
661
|
-
failureReason: Error | null;
|
|
662
|
-
errorUpdateCount: number;
|
|
663
|
-
isFetched: boolean;
|
|
664
|
-
isFetchedAfterMount: boolean;
|
|
665
|
-
isLoading: boolean;
|
|
666
|
-
isInitialLoading: boolean;
|
|
667
|
-
isPaused: boolean;
|
|
668
|
-
isPlaceholderData: boolean;
|
|
669
|
-
isRefetching: boolean;
|
|
670
|
-
isStale: boolean;
|
|
671
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
672
|
-
subscriptions: import("./types").SiteSubscriptionsResponseItem[];
|
|
673
|
-
page: number;
|
|
674
|
-
total_subscriptions: number;
|
|
675
|
-
}, unknown>, Error>>;
|
|
676
|
-
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
945
|
+
useSiteSubscriptionsQuery: () => {
|
|
677
946
|
data: {
|
|
678
|
-
subscriptions: import("
|
|
947
|
+
subscriptions: import("@automattic/api-core/dist/types/read-follows/types").SiteSubscriptionItem[];
|
|
679
948
|
totalCount: number;
|
|
680
949
|
};
|
|
950
|
+
error: Error | null;
|
|
681
951
|
isFetchingNextPage: boolean;
|
|
682
952
|
isFetching: boolean;
|
|
683
953
|
hasNextPage: boolean;
|
|
684
|
-
} | {
|
|
685
|
-
error: null;
|
|
686
|
-
isError: false;
|
|
687
|
-
isPending: true;
|
|
688
|
-
isLoadingError: false;
|
|
689
|
-
isRefetchError: false;
|
|
690
|
-
isSuccess: false;
|
|
691
|
-
status: "pending";
|
|
692
|
-
fetchPreviousPage: (options?: import("@tanstack/query-core").FetchPreviousPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
693
|
-
subscriptions: import("./types").SiteSubscriptionsResponseItem[];
|
|
694
|
-
page: number;
|
|
695
|
-
total_subscriptions: number;
|
|
696
|
-
}, unknown>, Error>>;
|
|
697
|
-
hasPreviousPage: boolean;
|
|
698
|
-
isFetchingPreviousPage: boolean;
|
|
699
|
-
dataUpdatedAt: number;
|
|
700
|
-
errorUpdatedAt: number;
|
|
701
|
-
failureCount: number;
|
|
702
|
-
failureReason: Error | null;
|
|
703
|
-
errorUpdateCount: number;
|
|
704
|
-
isFetched: boolean;
|
|
705
|
-
isFetchedAfterMount: boolean;
|
|
706
954
|
isLoading: boolean;
|
|
707
|
-
|
|
708
|
-
isPaused: boolean;
|
|
709
|
-
isPlaceholderData: boolean;
|
|
710
|
-
isRefetching: boolean;
|
|
711
|
-
isStale: boolean;
|
|
712
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
713
|
-
subscriptions: import("./types").SiteSubscriptionsResponseItem[];
|
|
714
|
-
page: number;
|
|
715
|
-
total_subscriptions: number;
|
|
716
|
-
}, unknown>, Error>>;
|
|
717
|
-
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
718
|
-
data: {
|
|
719
|
-
subscriptions: import("./types").SiteSubscriptionsResponseItem[];
|
|
720
|
-
totalCount: number;
|
|
721
|
-
};
|
|
722
|
-
isFetchingNextPage: boolean;
|
|
723
|
-
isFetching: boolean;
|
|
724
|
-
hasNextPage: boolean;
|
|
725
|
-
} | {
|
|
726
|
-
error: Error;
|
|
727
|
-
isError: true;
|
|
728
|
-
isPending: false;
|
|
729
|
-
isLoadingError: false;
|
|
730
|
-
isRefetchError: true;
|
|
731
|
-
isSuccess: false;
|
|
732
|
-
status: "error";
|
|
733
|
-
fetchPreviousPage: (options?: import("@tanstack/query-core").FetchPreviousPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
734
|
-
subscriptions: import("./types").SiteSubscriptionsResponseItem[];
|
|
735
|
-
page: number;
|
|
736
|
-
total_subscriptions: number;
|
|
737
|
-
}, unknown>, Error>>;
|
|
738
|
-
hasPreviousPage: boolean;
|
|
739
|
-
isFetchingPreviousPage: boolean;
|
|
740
|
-
dataUpdatedAt: number;
|
|
741
|
-
errorUpdatedAt: number;
|
|
742
|
-
failureCount: number;
|
|
743
|
-
failureReason: Error | null;
|
|
744
|
-
errorUpdateCount: number;
|
|
745
|
-
isFetched: boolean;
|
|
746
|
-
isFetchedAfterMount: boolean;
|
|
747
|
-
isLoading: boolean;
|
|
748
|
-
isInitialLoading: boolean;
|
|
749
|
-
isPaused: boolean;
|
|
750
|
-
isPlaceholderData: boolean;
|
|
751
|
-
isRefetching: boolean;
|
|
752
|
-
isStale: boolean;
|
|
753
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
754
|
-
subscriptions: import("./types").SiteSubscriptionsResponseItem[];
|
|
755
|
-
page: number;
|
|
756
|
-
total_subscriptions: number;
|
|
757
|
-
}, unknown>, Error>>;
|
|
758
|
-
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
759
|
-
data: {
|
|
760
|
-
subscriptions: import("./types").SiteSubscriptionsResponseItem[];
|
|
761
|
-
totalCount: number;
|
|
762
|
-
};
|
|
763
|
-
isFetchingNextPage: boolean;
|
|
764
|
-
isFetching: boolean;
|
|
765
|
-
hasNextPage: boolean;
|
|
766
|
-
} | {
|
|
767
|
-
error: null;
|
|
768
|
-
isError: false;
|
|
769
|
-
isPending: false;
|
|
770
|
-
isLoadingError: false;
|
|
771
|
-
isRefetchError: false;
|
|
772
|
-
isSuccess: true;
|
|
773
|
-
status: "success";
|
|
774
|
-
fetchPreviousPage: (options?: import("@tanstack/query-core").FetchPreviousPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
775
|
-
subscriptions: import("./types").SiteSubscriptionsResponseItem[];
|
|
776
|
-
page: number;
|
|
777
|
-
total_subscriptions: number;
|
|
778
|
-
}, unknown>, Error>>;
|
|
779
|
-
hasPreviousPage: boolean;
|
|
780
|
-
isFetchingPreviousPage: boolean;
|
|
781
|
-
dataUpdatedAt: number;
|
|
782
|
-
errorUpdatedAt: number;
|
|
783
|
-
failureCount: number;
|
|
784
|
-
failureReason: Error | null;
|
|
785
|
-
errorUpdateCount: number;
|
|
786
|
-
isFetched: boolean;
|
|
787
|
-
isFetchedAfterMount: boolean;
|
|
788
|
-
isLoading: boolean;
|
|
789
|
-
isInitialLoading: boolean;
|
|
790
|
-
isPaused: boolean;
|
|
791
|
-
isPlaceholderData: boolean;
|
|
792
|
-
isRefetching: boolean;
|
|
793
|
-
isStale: boolean;
|
|
794
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@tanstack/query-core").InfiniteData<{
|
|
795
|
-
subscriptions: import("./types").SiteSubscriptionsResponseItem[];
|
|
796
|
-
page: number;
|
|
797
|
-
total_subscriptions: number;
|
|
798
|
-
}, unknown>, Error>>;
|
|
799
|
-
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
800
|
-
data: {
|
|
801
|
-
subscriptions: import("./types").SiteSubscriptionsResponseItem[];
|
|
802
|
-
totalCount: number;
|
|
803
|
-
};
|
|
804
|
-
isFetchingNextPage: boolean;
|
|
805
|
-
isFetching: boolean;
|
|
806
|
-
hasNextPage: boolean;
|
|
955
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@automattic/api-queries").SiteSubscriptionsInfiniteData, Error>>;
|
|
807
956
|
};
|
|
808
957
|
useSiteSubscriptionsQueryProps: () => {
|
|
809
958
|
searchTerm: string;
|
|
@@ -826,7 +975,7 @@ export declare const SubscriptionManager: {
|
|
|
826
975
|
onSuccess?: () => void;
|
|
827
976
|
onError?: (e: Error) => void;
|
|
828
977
|
}, {
|
|
829
|
-
previousSiteSubscriptions: import("
|
|
978
|
+
previousSiteSubscriptions: import("@automattic/api-queries").SiteSubscriptionsInfiniteData | undefined;
|
|
830
979
|
previousSubscriptionsCount: import("./types").SubscriptionManagerSubscriptionsCount | undefined;
|
|
831
980
|
previousSiteSubscriptionDetails: import("./types").SiteSubscriptionDetails | undefined;
|
|
832
981
|
previousSiteSubscriptionDetailsByBlogId: import("./types").SiteSubscriptionDetails | undefined;
|
|
@@ -857,8 +1006,5 @@ export declare const SubscriptionManager: {
|
|
|
857
1006
|
export { useIsLoggedIn };
|
|
858
1007
|
export { EmailDeliveryFrequency, PostSubscriptionsSortBy, SiteSubscriptionsFilterBy, SiteSubscriptionsSortBy, } from './constants';
|
|
859
1008
|
export { callApi, isErrorResponse, isSiteSubscriptionDetails, isValidId } from './helpers';
|
|
860
|
-
export { UnsubscribedFeedsSearchProvider, useUnsubscribedFeedsSearch } from './contexts';
|
|
861
|
-
export { useReadFeedSearchQuery, useReadFeedSiteQuery, useReadFeedQuery } from './queries';
|
|
862
1009
|
export * from './types';
|
|
863
|
-
export type { FeedItem } from './queries';
|
|
864
1010
|
//# sourceMappingURL=index.d.ts.map
|