@szymonpiatek/nextwordpress 0.0.14 → 0.0.15

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.
@@ -710,5 +710,11 @@ interface CF7SubmissionResponse {
710
710
  message: string;
711
711
  invalid_fields?: CF7ValidationError[];
712
712
  }
713
+ declare class CF7Error extends Error {
714
+ readonly code: ErrorCode;
715
+ readonly status: number;
716
+ readonly endpoint: string;
717
+ constructor(code: ErrorCode, status: number, endpoint: string, message: string);
718
+ }
713
719
 
714
- export { type WCProductAttribute as $, type Author as A, type BlockType as B, type CookieConsentCategories as C, type CF7ValidationError as D, type CookieConsentConfig as E, type FeaturedMedia as F, type GQLPost as G, type EditorBlock as H, type EmbeddedAuthor as I, type JwtAuthCredentials as J, type EmbeddedTerm as K, ErrorCode as L, type GQLError as M, type NextWordpressConfig as N, type GQLPageInfo as O, type Post as P, type MediaDetails as Q, type RenderedTitle as R, type MediaSize as S, type Taxonomy as T, type UpdateCustomerInput as U, type PostEmbedded as V, type WordPressResponse as W, type SearchResult as X, type TemplatePart as Y, type WCDimensions as Z, type WCOrderLineItem as _, type WooCommerceConfig as a, type WCProductDefaultAttribute as a0, type WCShippingLine as a1, WPGraphQLError as a2, type WPULikeItemType as a3, WooCommerceError as a4, type WooCommercePaginationHeaders as a5, WordPressAPIError as a6, createCookieConsentHandler as a7, defaultMessages as a8, defaultMessagesPl as a9, parseCookieConsent as aa, resolveMessage as ab, type WCProduct as b, type WCProductFilterParams as c, type WooCommerceResponse as d, type WCCreateOrderInput as e, type WCOrder as f, type WCCustomer as g, type WPGraphQLConfig as h, type GQLPostFilter as i, type GQLConnection as j, type WPULikeStatsParams as k, type WPULikeStats as l, type WPULikeStatus as m, type WPULikeVoteResponse as n, type WPULikeCheckParams as o, type WPULikeCheckResponse as p, type CF7SubmissionResponse as q, type JwtAuthResponse as r, type WPEntity as s, type RenderedContent as t, type WCImage as u, type WCProductVariation as v, type WCAddress as w, type WPULikeVoteParams as x, AuthenticationError as y, type CF7SubmissionStatus as z };
720
+ export { type WCOrderLineItem as $, type Author as A, type BlockType as B, type CookieConsentCategories as C, type CF7SubmissionStatus as D, type CF7ValidationError as E, type FeaturedMedia as F, type GQLPost as G, type CookieConsentConfig as H, type EditorBlock as I, type JwtAuthCredentials as J, type EmbeddedAuthor as K, type EmbeddedTerm as L, ErrorCode as M, type NextWordpressConfig as N, type GQLError as O, type Post as P, type GQLPageInfo as Q, type RenderedTitle as R, type MediaDetails as S, type Taxonomy as T, type UpdateCustomerInput as U, type MediaSize as V, type WordPressResponse as W, type PostEmbedded as X, type SearchResult as Y, type TemplatePart as Z, type WCDimensions as _, type WooCommerceConfig as a, type WCProductAttribute as a0, type WCProductDefaultAttribute as a1, type WCShippingLine as a2, WPGraphQLError as a3, type WPULikeItemType as a4, WooCommerceError as a5, type WooCommercePaginationHeaders as a6, WordPressAPIError as a7, createCookieConsentHandler as a8, defaultMessages as a9, defaultMessagesPl as aa, parseCookieConsent as ab, resolveMessage as ac, type WCProduct as b, type WCProductFilterParams as c, type WooCommerceResponse as d, type WCCreateOrderInput as e, type WCOrder as f, type WCCustomer as g, type WPGraphQLConfig as h, type GQLPostFilter as i, type GQLConnection as j, type WPULikeStatsParams as k, type WPULikeStats as l, type WPULikeStatus as m, type WPULikeVoteResponse as n, type WPULikeCheckParams as o, type WPULikeCheckResponse as p, type CF7SubmissionResponse as q, type JwtAuthResponse as r, type WPEntity as s, type RenderedContent as t, type WCImage as u, type WCProductVariation as v, type WCAddress as w, type WPULikeVoteParams as x, AuthenticationError as y, CF7Error as z };
@@ -710,5 +710,11 @@ interface CF7SubmissionResponse {
710
710
  message: string;
711
711
  invalid_fields?: CF7ValidationError[];
712
712
  }
713
+ declare class CF7Error extends Error {
714
+ readonly code: ErrorCode;
715
+ readonly status: number;
716
+ readonly endpoint: string;
717
+ constructor(code: ErrorCode, status: number, endpoint: string, message: string);
718
+ }
713
719
 
714
- export { type WCProductAttribute as $, type Author as A, type BlockType as B, type CookieConsentCategories as C, type CF7ValidationError as D, type CookieConsentConfig as E, type FeaturedMedia as F, type GQLPost as G, type EditorBlock as H, type EmbeddedAuthor as I, type JwtAuthCredentials as J, type EmbeddedTerm as K, ErrorCode as L, type GQLError as M, type NextWordpressConfig as N, type GQLPageInfo as O, type Post as P, type MediaDetails as Q, type RenderedTitle as R, type MediaSize as S, type Taxonomy as T, type UpdateCustomerInput as U, type PostEmbedded as V, type WordPressResponse as W, type SearchResult as X, type TemplatePart as Y, type WCDimensions as Z, type WCOrderLineItem as _, type WooCommerceConfig as a, type WCProductDefaultAttribute as a0, type WCShippingLine as a1, WPGraphQLError as a2, type WPULikeItemType as a3, WooCommerceError as a4, type WooCommercePaginationHeaders as a5, WordPressAPIError as a6, createCookieConsentHandler as a7, defaultMessages as a8, defaultMessagesPl as a9, parseCookieConsent as aa, resolveMessage as ab, type WCProduct as b, type WCProductFilterParams as c, type WooCommerceResponse as d, type WCCreateOrderInput as e, type WCOrder as f, type WCCustomer as g, type WPGraphQLConfig as h, type GQLPostFilter as i, type GQLConnection as j, type WPULikeStatsParams as k, type WPULikeStats as l, type WPULikeStatus as m, type WPULikeVoteResponse as n, type WPULikeCheckParams as o, type WPULikeCheckResponse as p, type CF7SubmissionResponse as q, type JwtAuthResponse as r, type WPEntity as s, type RenderedContent as t, type WCImage as u, type WCProductVariation as v, type WCAddress as w, type WPULikeVoteParams as x, AuthenticationError as y, type CF7SubmissionStatus as z };
720
+ export { type WCOrderLineItem as $, type Author as A, type BlockType as B, type CookieConsentCategories as C, type CF7SubmissionStatus as D, type CF7ValidationError as E, type FeaturedMedia as F, type GQLPost as G, type CookieConsentConfig as H, type EditorBlock as I, type JwtAuthCredentials as J, type EmbeddedAuthor as K, type EmbeddedTerm as L, ErrorCode as M, type NextWordpressConfig as N, type GQLError as O, type Post as P, type GQLPageInfo as Q, type RenderedTitle as R, type MediaDetails as S, type Taxonomy as T, type UpdateCustomerInput as U, type MediaSize as V, type WordPressResponse as W, type PostEmbedded as X, type SearchResult as Y, type TemplatePart as Z, type WCDimensions as _, type WooCommerceConfig as a, type WCProductAttribute as a0, type WCProductDefaultAttribute as a1, type WCShippingLine as a2, WPGraphQLError as a3, type WPULikeItemType as a4, WooCommerceError as a5, type WooCommercePaginationHeaders as a6, WordPressAPIError as a7, createCookieConsentHandler as a8, defaultMessages as a9, defaultMessagesPl as aa, parseCookieConsent as ab, resolveMessage as ac, type WCProduct as b, type WCProductFilterParams as c, type WooCommerceResponse as d, type WCCreateOrderInput as e, type WCOrder as f, type WCCustomer as g, type WPGraphQLConfig as h, type GQLPostFilter as i, type GQLConnection as j, type WPULikeStatsParams as k, type WPULikeStats as l, type WPULikeStatus as m, type WPULikeVoteResponse as n, type WPULikeCheckParams as o, type WPULikeCheckResponse as p, type CF7SubmissionResponse as q, type JwtAuthResponse as r, type WPEntity as s, type RenderedContent as t, type WCImage as u, type WCProductVariation as v, type WCAddress as w, type WPULikeVoteParams as x, AuthenticationError as y, CF7Error as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@szymonpiatek/nextwordpress",
3
- "version": "0.0.14",
3
+ "version": "0.0.15",
4
4
  "description": "Szymon Piątek - Next.js WordPress client (types, queries, fetcher)",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,