@szymonpiatek/nextwordpress 0.0.16 → 0.0.17
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/dist/client/index.cjs +5 -4
- package/dist/client/index.cjs.map +1 -1
- package/dist/client/index.d.cts +1 -1
- package/dist/client/index.d.ts +1 -1
- package/dist/client/index.js +5 -4
- package/dist/client/index.js.map +1 -1
- package/dist/hooks/index.cjs +5 -4
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.cts +1 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/index.js +5 -4
- package/dist/hooks/index.js.map +1 -1
- package/dist/index.cjs +5 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/dist/server/index.cjs +5 -4
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.d.cts +1 -1
- package/dist/server/index.d.ts +1 -1
- package/dist/server/index.js +5 -4
- package/dist/server/index.js.map +1 -1
- package/dist/{types-CvO7Ijbs.d.cts → types-DVzJO3P-.d.cts} +0 -3
- package/dist/{types-CvO7Ijbs.d.ts → types-DVzJO3P-.d.ts} +0 -3
- package/package.json +1 -1
package/dist/server/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { E as AuthenticationError, A as Author, H as BlockType, I as CF7Error, s as CF7SubmissionResponse, K as CF7SubmissionStatus, L as CF7ValidationError, C as CookieConsentCategories, M as CookieConsentConfig, O as EditorBlock, Q as EmbeddedAuthor, S as EmbeddedTerm, V as ErrorCode, F as FeaturedMedia, l as GQLConnection, X as GQLError, Y as GQLPageInfo, j as GQLPost, k as GQLPostFilter, D as GQLResetUserPasswordInput, a as GQLResetUserPasswordResult, B as GQLSendPasswordResetEmailInput, G as GQLSendPasswordResetEmailResult, J as JwtAuthCredentials, t as JwtAuthResponse, Z as MediaDetails, _ as MediaSize, N as NextWordpressConfig, P as Post, $ as PostEmbedded, v as RenderedContent, R as RenderedTitle, a0 as SearchResult, T as Taxonomy, a1 as TemplatePart, U as UpdateCustomerInput, y as WCAddress, g as WCCreateOrderInput, i as WCCustomer, a2 as WCDimensions, w as WCImage, h as WCOrder, a3 as WCOrderLineItem, d as WCProduct, a4 as WCProductAttribute, a5 as WCProductDefaultAttribute, e as WCProductFilterParams, x as WCProductVariation, a6 as WCShippingLine, u as WPEntity, W as WPGraphQLConfig, a7 as WPGraphQLError, q as WPULikeCheckParams, r as WPULikeCheckResponse, a8 as WPULikeItemType, n as WPULikeStats, m as WPULikeStatsParams, o as WPULikeStatus, z as WPULikeVoteParams, p as WPULikeVoteResponse, c as WooCommerceConfig, a9 as WooCommerceError, aa as WooCommercePaginationHeaders, f as WooCommerceResponse, ab as WordPressAPIError, ac as createCookieConsentHandler, ad as defaultMessages, ae as defaultMessagesPl, af as parseCookieConsent, ag as resolveMessage } from '../types-
|
|
1
|
+
export { E as AuthenticationError, A as Author, H as BlockType, I as CF7Error, s as CF7SubmissionResponse, K as CF7SubmissionStatus, L as CF7ValidationError, C as CookieConsentCategories, M as CookieConsentConfig, O as EditorBlock, Q as EmbeddedAuthor, S as EmbeddedTerm, V as ErrorCode, F as FeaturedMedia, l as GQLConnection, X as GQLError, Y as GQLPageInfo, j as GQLPost, k as GQLPostFilter, D as GQLResetUserPasswordInput, a as GQLResetUserPasswordResult, B as GQLSendPasswordResetEmailInput, G as GQLSendPasswordResetEmailResult, J as JwtAuthCredentials, t as JwtAuthResponse, Z as MediaDetails, _ as MediaSize, N as NextWordpressConfig, P as Post, $ as PostEmbedded, v as RenderedContent, R as RenderedTitle, a0 as SearchResult, T as Taxonomy, a1 as TemplatePart, U as UpdateCustomerInput, y as WCAddress, g as WCCreateOrderInput, i as WCCustomer, a2 as WCDimensions, w as WCImage, h as WCOrder, a3 as WCOrderLineItem, d as WCProduct, a4 as WCProductAttribute, a5 as WCProductDefaultAttribute, e as WCProductFilterParams, x as WCProductVariation, a6 as WCShippingLine, u as WPEntity, W as WPGraphQLConfig, a7 as WPGraphQLError, q as WPULikeCheckParams, r as WPULikeCheckResponse, a8 as WPULikeItemType, n as WPULikeStats, m as WPULikeStatsParams, o as WPULikeStatus, z as WPULikeVoteParams, p as WPULikeVoteResponse, c as WooCommerceConfig, a9 as WooCommerceError, aa as WooCommercePaginationHeaders, f as WooCommerceResponse, ab as WordPressAPIError, ac as createCookieConsentHandler, ad as defaultMessages, ae as defaultMessagesPl, af as parseCookieConsent, ag as resolveMessage } from '../types-DVzJO3P-.cjs';
|
|
2
2
|
export { Category, Comment, CommentAuthorAvatar, CreateAttributeTermInput, CreateAuthorInput, CreateCategoryInput, CreateCommentInput, CreateCouponInput, CreateMenuInput, CreateMenuItemInput, CreatePageInput, CreatePostInput, CreateProductAttributeInput, CreateProductCategoryInput, CreateProductInput, CreateProductReviewInput, CreateProductTagInput, CreateShippingClassInput, CreateShippingZoneInput, CreateShippingZoneMethodInput, CreateTagInput, CreateTaxClassInput, CreateTaxRateInput, CreateWebhookInput, FaustConfig, FaustPreviewConfig, FaustPreviewDeps, GQLACFFieldGroup, GQLAuthor, GQLCPTNode, GQLCategory, GQLCreateCommentInput, GQLCreateCommentResult, GQLCreatePostInput, GQLCustomer, GQLDeletePostResult, GQLLineItem, GQLMutatedComment, GQLMutatedPost, GQLOrder, GQLOrderAddress, GQLPage, GQLPageWithSEO, GQLPostStatus, GQLPostWithSEO, GQLProduct, GQLProductFilter, GQLProductVariation, GQLTag, GQLUpdatePostInput, GQLYoastSEO, Menu, MenuItem, MenuLocation, MenuWithItems, OmnibusPriceEntry, OmnibusProductData, Page, RestPageStatus, RestPostStatus, RevalidationConfig, RevalidationPayload, RevalidationResult, Tag, UpdateAttributeTermInput, UpdateAuthorInput, UpdateCategoryInput, UpdateCommentInput, UpdateCouponInput, UpdateMediaInput, UpdateMenuInput, UpdateMenuItemInput, UpdatePageInput, UpdatePostInput, UpdateProductAttributeInput, UpdateProductCategoryInput, UpdateProductInput, UpdateProductReviewInput, UpdateProductTagInput, UpdateShippingClassInput, UpdateShippingZoneInput, UpdateShippingZoneMethodInput, UpdateTagInput, UpdateTaxRateInput, UpdateWebhookInput, UploadMediaInput, WCAttributeTerm, WCContinent, WCCountry, WCCoupon, WCCreateOrderNoteInput, WCCreateOrderRefundInput, WCCurrency, WCGlobalProductAttribute, WCOrderNote, WCOrderRefund, WCPaymentGateway, WCPaymentGatewaySetting, WCProductCategory, WCProductReview, WCProductReviewFilterParams, WCProductStatus, WCProductTag, WCProductVariationWithOmnibus, WCProductWithOmnibus, WCRefundLineItem, WCReviewStatus, WCSalesReport, WCSalesReportParams, WCSettingGroup, WCSettingOption, WCShippingClass, WCShippingMethod, WCShippingZone, WCShippingZoneLocation, WCShippingZoneMethod, WCStatusCount, WCSystemStatus, WCSystemStatusTool, WCTaxClass, WCTaxRate, WCTopSeller, WCTopSellersParams, WCWebhook, WCWebhookStatus, WCWebhookTopic, WPGraphQLFetcher, WooCommerceFetcher, authenticateJwt, buildACFFragment, buildPageWithACFQuery, buildPostWithACFQuery, buildPostsWithACFQuery, createApplicationPasswordToken, createAuthorsMutations, createCF7Queries, createCPTQueries, createCategoriesMutations, createCommentsMutations, createFaustAuthHandler, createMediaMutations, createMenusMutations, createPagesMutations, createPostsMutations, createPreviewHandler, createRevalidationHandler, createTagsMutations, createWPGraphQLClient, createWPGraphQLClient as createWPGraphQLCoreClient, createWPGraphQLFetcher, createWPGraphQLMutationsClient, createWPGraphQLWooCommerceClient, createWPULikeClient, createWPULikeQueries, createWooCommerceClient, createWooCommerceFetcher, createWordPressClient, createWordPressMutationsClient, createYoastQueries, extractOmnibusData, resolveBaseUrl, validateJwtToken, withOmnibus, withOmnibusVariation } from '../index.cjs';
|
package/dist/server/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { E as AuthenticationError, A as Author, H as BlockType, I as CF7Error, s as CF7SubmissionResponse, K as CF7SubmissionStatus, L as CF7ValidationError, C as CookieConsentCategories, M as CookieConsentConfig, O as EditorBlock, Q as EmbeddedAuthor, S as EmbeddedTerm, V as ErrorCode, F as FeaturedMedia, l as GQLConnection, X as GQLError, Y as GQLPageInfo, j as GQLPost, k as GQLPostFilter, D as GQLResetUserPasswordInput, a as GQLResetUserPasswordResult, B as GQLSendPasswordResetEmailInput, G as GQLSendPasswordResetEmailResult, J as JwtAuthCredentials, t as JwtAuthResponse, Z as MediaDetails, _ as MediaSize, N as NextWordpressConfig, P as Post, $ as PostEmbedded, v as RenderedContent, R as RenderedTitle, a0 as SearchResult, T as Taxonomy, a1 as TemplatePart, U as UpdateCustomerInput, y as WCAddress, g as WCCreateOrderInput, i as WCCustomer, a2 as WCDimensions, w as WCImage, h as WCOrder, a3 as WCOrderLineItem, d as WCProduct, a4 as WCProductAttribute, a5 as WCProductDefaultAttribute, e as WCProductFilterParams, x as WCProductVariation, a6 as WCShippingLine, u as WPEntity, W as WPGraphQLConfig, a7 as WPGraphQLError, q as WPULikeCheckParams, r as WPULikeCheckResponse, a8 as WPULikeItemType, n as WPULikeStats, m as WPULikeStatsParams, o as WPULikeStatus, z as WPULikeVoteParams, p as WPULikeVoteResponse, c as WooCommerceConfig, a9 as WooCommerceError, aa as WooCommercePaginationHeaders, f as WooCommerceResponse, ab as WordPressAPIError, ac as createCookieConsentHandler, ad as defaultMessages, ae as defaultMessagesPl, af as parseCookieConsent, ag as resolveMessage } from '../types-
|
|
1
|
+
export { E as AuthenticationError, A as Author, H as BlockType, I as CF7Error, s as CF7SubmissionResponse, K as CF7SubmissionStatus, L as CF7ValidationError, C as CookieConsentCategories, M as CookieConsentConfig, O as EditorBlock, Q as EmbeddedAuthor, S as EmbeddedTerm, V as ErrorCode, F as FeaturedMedia, l as GQLConnection, X as GQLError, Y as GQLPageInfo, j as GQLPost, k as GQLPostFilter, D as GQLResetUserPasswordInput, a as GQLResetUserPasswordResult, B as GQLSendPasswordResetEmailInput, G as GQLSendPasswordResetEmailResult, J as JwtAuthCredentials, t as JwtAuthResponse, Z as MediaDetails, _ as MediaSize, N as NextWordpressConfig, P as Post, $ as PostEmbedded, v as RenderedContent, R as RenderedTitle, a0 as SearchResult, T as Taxonomy, a1 as TemplatePart, U as UpdateCustomerInput, y as WCAddress, g as WCCreateOrderInput, i as WCCustomer, a2 as WCDimensions, w as WCImage, h as WCOrder, a3 as WCOrderLineItem, d as WCProduct, a4 as WCProductAttribute, a5 as WCProductDefaultAttribute, e as WCProductFilterParams, x as WCProductVariation, a6 as WCShippingLine, u as WPEntity, W as WPGraphQLConfig, a7 as WPGraphQLError, q as WPULikeCheckParams, r as WPULikeCheckResponse, a8 as WPULikeItemType, n as WPULikeStats, m as WPULikeStatsParams, o as WPULikeStatus, z as WPULikeVoteParams, p as WPULikeVoteResponse, c as WooCommerceConfig, a9 as WooCommerceError, aa as WooCommercePaginationHeaders, f as WooCommerceResponse, ab as WordPressAPIError, ac as createCookieConsentHandler, ad as defaultMessages, ae as defaultMessagesPl, af as parseCookieConsent, ag as resolveMessage } from '../types-DVzJO3P-.js';
|
|
2
2
|
export { Category, Comment, CommentAuthorAvatar, CreateAttributeTermInput, CreateAuthorInput, CreateCategoryInput, CreateCommentInput, CreateCouponInput, CreateMenuInput, CreateMenuItemInput, CreatePageInput, CreatePostInput, CreateProductAttributeInput, CreateProductCategoryInput, CreateProductInput, CreateProductReviewInput, CreateProductTagInput, CreateShippingClassInput, CreateShippingZoneInput, CreateShippingZoneMethodInput, CreateTagInput, CreateTaxClassInput, CreateTaxRateInput, CreateWebhookInput, FaustConfig, FaustPreviewConfig, FaustPreviewDeps, GQLACFFieldGroup, GQLAuthor, GQLCPTNode, GQLCategory, GQLCreateCommentInput, GQLCreateCommentResult, GQLCreatePostInput, GQLCustomer, GQLDeletePostResult, GQLLineItem, GQLMutatedComment, GQLMutatedPost, GQLOrder, GQLOrderAddress, GQLPage, GQLPageWithSEO, GQLPostStatus, GQLPostWithSEO, GQLProduct, GQLProductFilter, GQLProductVariation, GQLTag, GQLUpdatePostInput, GQLYoastSEO, Menu, MenuItem, MenuLocation, MenuWithItems, OmnibusPriceEntry, OmnibusProductData, Page, RestPageStatus, RestPostStatus, RevalidationConfig, RevalidationPayload, RevalidationResult, Tag, UpdateAttributeTermInput, UpdateAuthorInput, UpdateCategoryInput, UpdateCommentInput, UpdateCouponInput, UpdateMediaInput, UpdateMenuInput, UpdateMenuItemInput, UpdatePageInput, UpdatePostInput, UpdateProductAttributeInput, UpdateProductCategoryInput, UpdateProductInput, UpdateProductReviewInput, UpdateProductTagInput, UpdateShippingClassInput, UpdateShippingZoneInput, UpdateShippingZoneMethodInput, UpdateTagInput, UpdateTaxRateInput, UpdateWebhookInput, UploadMediaInput, WCAttributeTerm, WCContinent, WCCountry, WCCoupon, WCCreateOrderNoteInput, WCCreateOrderRefundInput, WCCurrency, WCGlobalProductAttribute, WCOrderNote, WCOrderRefund, WCPaymentGateway, WCPaymentGatewaySetting, WCProductCategory, WCProductReview, WCProductReviewFilterParams, WCProductStatus, WCProductTag, WCProductVariationWithOmnibus, WCProductWithOmnibus, WCRefundLineItem, WCReviewStatus, WCSalesReport, WCSalesReportParams, WCSettingGroup, WCSettingOption, WCShippingClass, WCShippingMethod, WCShippingZone, WCShippingZoneLocation, WCShippingZoneMethod, WCStatusCount, WCSystemStatus, WCSystemStatusTool, WCTaxClass, WCTaxRate, WCTopSeller, WCTopSellersParams, WCWebhook, WCWebhookStatus, WCWebhookTopic, WPGraphQLFetcher, WooCommerceFetcher, authenticateJwt, buildACFFragment, buildPageWithACFQuery, buildPostWithACFQuery, buildPostsWithACFQuery, createApplicationPasswordToken, createAuthorsMutations, createCF7Queries, createCPTQueries, createCategoriesMutations, createCommentsMutations, createFaustAuthHandler, createMediaMutations, createMenusMutations, createPagesMutations, createPostsMutations, createPreviewHandler, createRevalidationHandler, createTagsMutations, createWPGraphQLClient, createWPGraphQLClient as createWPGraphQLCoreClient, createWPGraphQLFetcher, createWPGraphQLMutationsClient, createWPGraphQLWooCommerceClient, createWPULikeClient, createWPULikeQueries, createWooCommerceClient, createWooCommerceFetcher, createWordPressClient, createWordPressMutationsClient, createYoastQueries, extractOmnibusData, resolveBaseUrl, validateJwtToken, withOmnibus, withOmnibusVariation } from '../index.js';
|
package/dist/server/index.js
CHANGED
|
@@ -3397,9 +3397,6 @@ var GQL_SEND_PASSWORD_RESET_EMAIL = `
|
|
|
3397
3397
|
mutation SendPasswordResetEmail($input: SendPasswordResetEmailInput!) {
|
|
3398
3398
|
sendPasswordResetEmail(input: $input) {
|
|
3399
3399
|
success
|
|
3400
|
-
user {
|
|
3401
|
-
email
|
|
3402
|
-
}
|
|
3403
3400
|
}
|
|
3404
3401
|
}
|
|
3405
3402
|
`;
|
|
@@ -3418,7 +3415,11 @@ function createPasswordResetMutations(fetcher) {
|
|
|
3418
3415
|
const { gqlMutate } = fetcher;
|
|
3419
3416
|
async function sendPasswordResetEmail(input) {
|
|
3420
3417
|
const data = await gqlMutate(GQL_SEND_PASSWORD_RESET_EMAIL, { input });
|
|
3421
|
-
|
|
3418
|
+
const result = data.sendPasswordResetEmail;
|
|
3419
|
+
if (!result.success) {
|
|
3420
|
+
throw new WPGraphQLError(ErrorCode.GQL_ERRORS_IN_RESPONSE, 200, "sendPasswordResetEmail", "User not found");
|
|
3421
|
+
}
|
|
3422
|
+
return result;
|
|
3422
3423
|
}
|
|
3423
3424
|
async function resetUserPassword(input) {
|
|
3424
3425
|
const data = await gqlMutate(GQL_RESET_USER_PASSWORD, { input });
|