@szymonpiatek/nextwordpress 0.0.15 → 0.0.16

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.
@@ -1,2 +1,2 @@
1
- export { y as AuthenticationError, A as Author, B as BlockType, z as CF7Error, q as CF7SubmissionResponse, D as CF7SubmissionStatus, E as CF7ValidationError, C as CookieConsentCategories, H as CookieConsentConfig, I as EditorBlock, K as EmbeddedAuthor, L as EmbeddedTerm, M as ErrorCode, F as FeaturedMedia, j as GQLConnection, O as GQLError, Q as GQLPageInfo, G as GQLPost, i as GQLPostFilter, J as JwtAuthCredentials, r as JwtAuthResponse, S as MediaDetails, V as MediaSize, N as NextWordpressConfig, P as Post, X as PostEmbedded, t as RenderedContent, R as RenderedTitle, Y as SearchResult, T as Taxonomy, Z as TemplatePart, U as UpdateCustomerInput, w as WCAddress, e as WCCreateOrderInput, g as WCCustomer, _ as WCDimensions, u as WCImage, f as WCOrder, $ as WCOrderLineItem, b as WCProduct, a0 as WCProductAttribute, a1 as WCProductDefaultAttribute, c as WCProductFilterParams, v as WCProductVariation, a2 as WCShippingLine, s as WPEntity, h as WPGraphQLConfig, a3 as WPGraphQLError, o as WPULikeCheckParams, p as WPULikeCheckResponse, a4 as WPULikeItemType, l as WPULikeStats, k as WPULikeStatsParams, m as WPULikeStatus, x as WPULikeVoteParams, n as WPULikeVoteResponse, a as WooCommerceConfig, a5 as WooCommerceError, a6 as WooCommercePaginationHeaders, d as WooCommerceResponse, a7 as WordPressAPIError, a8 as createCookieConsentHandler, a9 as defaultMessages, aa as defaultMessagesPl, ab as parseCookieConsent, ac as resolveMessage } from '../types-D6rih4G8.cjs';
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-CvO7Ijbs.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';
@@ -1,2 +1,2 @@
1
- export { y as AuthenticationError, A as Author, B as BlockType, z as CF7Error, q as CF7SubmissionResponse, D as CF7SubmissionStatus, E as CF7ValidationError, C as CookieConsentCategories, H as CookieConsentConfig, I as EditorBlock, K as EmbeddedAuthor, L as EmbeddedTerm, M as ErrorCode, F as FeaturedMedia, j as GQLConnection, O as GQLError, Q as GQLPageInfo, G as GQLPost, i as GQLPostFilter, J as JwtAuthCredentials, r as JwtAuthResponse, S as MediaDetails, V as MediaSize, N as NextWordpressConfig, P as Post, X as PostEmbedded, t as RenderedContent, R as RenderedTitle, Y as SearchResult, T as Taxonomy, Z as TemplatePart, U as UpdateCustomerInput, w as WCAddress, e as WCCreateOrderInput, g as WCCustomer, _ as WCDimensions, u as WCImage, f as WCOrder, $ as WCOrderLineItem, b as WCProduct, a0 as WCProductAttribute, a1 as WCProductDefaultAttribute, c as WCProductFilterParams, v as WCProductVariation, a2 as WCShippingLine, s as WPEntity, h as WPGraphQLConfig, a3 as WPGraphQLError, o as WPULikeCheckParams, p as WPULikeCheckResponse, a4 as WPULikeItemType, l as WPULikeStats, k as WPULikeStatsParams, m as WPULikeStatus, x as WPULikeVoteParams, n as WPULikeVoteResponse, a as WooCommerceConfig, a5 as WooCommerceError, a6 as WooCommercePaginationHeaders, d as WooCommerceResponse, a7 as WordPressAPIError, a8 as createCookieConsentHandler, a9 as defaultMessages, aa as defaultMessagesPl, ab as parseCookieConsent, ac as resolveMessage } from '../types-D6rih4G8.js';
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-CvO7Ijbs.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';
@@ -37,6 +37,8 @@ var ErrorCode = {
37
37
  AUTH_JWT_FAILED: "AUTH_JWT_FAILED",
38
38
  AUTH_CREDENTIALS_INVALID: "AUTH_CREDENTIALS_INVALID",
39
39
  AUTH_TOKEN_INVALID: "AUTH_TOKEN_INVALID",
40
+ AUTH_PASSWORD_RESET_REQUESTED: "AUTH_PASSWORD_RESET_REQUESTED",
41
+ AUTH_PASSWORD_RESET_FAILED: "AUTH_PASSWORD_RESET_FAILED",
40
42
  // Contact Form 7
41
43
  CF7_MAIL_SENT: "CF7_MAIL_SENT",
42
44
  CF7_MAIL_FAILED: "CF7_MAIL_FAILED",
@@ -68,6 +70,8 @@ var defaultMessages = {
68
70
  AUTH_JWT_FAILED: "JWT authentication failed",
69
71
  AUTH_CREDENTIALS_INVALID: "Invalid credentials",
70
72
  AUTH_TOKEN_INVALID: "JWT token is invalid or expired",
73
+ AUTH_PASSWORD_RESET_REQUESTED: "Password reset email sent. Check your inbox.",
74
+ AUTH_PASSWORD_RESET_FAILED: "Password reset failed. The link may be invalid or expired.",
71
75
  CF7_MAIL_SENT: "Thank you for your message.",
72
76
  CF7_MAIL_FAILED: "There was an error trying to send your message.",
73
77
  CF7_VALIDATION_FAILED: "One or more fields have an error. Please check and try again.",
@@ -98,6 +102,8 @@ var defaultMessagesPl = {
98
102
  AUTH_JWT_FAILED: "B\u0142\u0105d uwierzytelnienia JWT",
99
103
  AUTH_CREDENTIALS_INVALID: "Nieprawid\u0142owe dane logowania",
100
104
  AUTH_TOKEN_INVALID: "Token JWT jest nieprawid\u0142owy lub wygas\u0142",
105
+ AUTH_PASSWORD_RESET_REQUESTED: "E-mail z resetowaniem has\u0142a zosta\u0142 wys\u0142any. Sprawd\u017A skrzynk\u0119.",
106
+ AUTH_PASSWORD_RESET_FAILED: "Resetowanie has\u0142a nie powiod\u0142o si\u0119. Link mo\u017Ce by\u0107 nieprawid\u0142owy lub wygas\u0142.",
101
107
  CF7_MAIL_SENT: "Dzi\u0119kujemy za wiadomo\u015B\u0107.",
102
108
  CF7_MAIL_FAILED: "Wyst\u0105pi\u0142 b\u0142\u0105d podczas wysy\u0142ania wiadomo\u015Bci.",
103
109
  CF7_VALIDATION_FAILED: "Jedno lub wi\u0119cej p\xF3l zawiera b\u0142\u0105d. Sprawd\u017A i spr\xF3buj ponownie.",
@@ -3386,6 +3392,41 @@ function createMediaMutations2(fetcher) {
3386
3392
  return { createMediaItem, updateMediaItem, deleteMediaItem };
3387
3393
  }
3388
3394
 
3395
+ // src/integrations/wpGraphQL/core/mutations/passwordReset/mutations.ts
3396
+ var GQL_SEND_PASSWORD_RESET_EMAIL = `
3397
+ mutation SendPasswordResetEmail($input: SendPasswordResetEmailInput!) {
3398
+ sendPasswordResetEmail(input: $input) {
3399
+ success
3400
+ user {
3401
+ email
3402
+ }
3403
+ }
3404
+ }
3405
+ `;
3406
+ var GQL_RESET_USER_PASSWORD = `
3407
+ mutation ResetUserPassword($input: ResetUserPasswordInput!) {
3408
+ resetUserPassword(input: $input) {
3409
+ user {
3410
+ id
3411
+ databaseId
3412
+ email
3413
+ }
3414
+ }
3415
+ }
3416
+ `;
3417
+ function createPasswordResetMutations(fetcher) {
3418
+ const { gqlMutate } = fetcher;
3419
+ async function sendPasswordResetEmail(input) {
3420
+ const data = await gqlMutate(GQL_SEND_PASSWORD_RESET_EMAIL, { input });
3421
+ return data.sendPasswordResetEmail;
3422
+ }
3423
+ async function resetUserPassword(input) {
3424
+ const data = await gqlMutate(GQL_RESET_USER_PASSWORD, { input });
3425
+ return data.resetUserPassword;
3426
+ }
3427
+ return { sendPasswordResetEmail, resetUserPassword };
3428
+ }
3429
+
3389
3430
  // src/integrations/wpGraphQL/core/mutations/index.ts
3390
3431
  function createWPGraphQLMutationsClient(config) {
3391
3432
  const fetcher = createWPGraphQLFetcher(config);
@@ -3396,7 +3437,8 @@ function createWPGraphQLMutationsClient(config) {
3396
3437
  ...createCategoriesMutations3(fetcher),
3397
3438
  ...createTagsMutations3(fetcher),
3398
3439
  ...createAuthorsMutations2(fetcher),
3399
- ...createMediaMutations2(fetcher)
3440
+ ...createMediaMutations2(fetcher),
3441
+ ...createPasswordResetMutations(fetcher)
3400
3442
  };
3401
3443
  }
3402
3444