@szymonpiatek/nextwordpress 0.0.13 → 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.
@@ -22,6 +22,11 @@ declare const ErrorCode: {
22
22
  readonly AUTH_JWT_FAILED: "AUTH_JWT_FAILED";
23
23
  readonly AUTH_CREDENTIALS_INVALID: "AUTH_CREDENTIALS_INVALID";
24
24
  readonly AUTH_TOKEN_INVALID: "AUTH_TOKEN_INVALID";
25
+ readonly CF7_MAIL_SENT: "CF7_MAIL_SENT";
26
+ readonly CF7_MAIL_FAILED: "CF7_MAIL_FAILED";
27
+ readonly CF7_VALIDATION_FAILED: "CF7_VALIDATION_FAILED";
28
+ readonly CF7_SPAM: "CF7_SPAM";
29
+ readonly CF7_ABORTED: "CF7_ABORTED";
25
30
  };
26
31
  type ErrorCode = (typeof ErrorCode)[keyof typeof ErrorCode];
27
32
  declare const defaultMessages: Record<ErrorCode, string>;
@@ -694,4 +699,22 @@ interface WPULikeCheckResponse {
694
699
  status: WPULikeStatus | null;
695
700
  }
696
701
 
697
- export { WPGraphQLError as $, type Author as A, type BlockType as B, type CookieConsentCategories as C, type EmbeddedTerm as D, type EditorBlock as E, type FeaturedMedia as F, type GQLPost as G, ErrorCode as H, type GQLError as I, type JwtAuthCredentials as J, type GQLPageInfo as K, type MediaSize as L, type MediaDetails as M, type NextWordpressConfig as N, type PostEmbedded as O, type Post as P, type TemplatePart as Q, type RenderedTitle as R, type SearchResult as S, type Taxonomy as T, type UpdateCustomerInput as U, type WCDimensions as V, type WordPressResponse as W, type WCOrderLineItem as X, type WCProductAttribute as Y, type WCProductDefaultAttribute as Z, type WCShippingLine as _, type WooCommerceConfig as a, type WPULikeItemType as a0, WooCommerceError as a1, type WooCommercePaginationHeaders as a2, WordPressAPIError as a3, createCookieConsentHandler as a4, defaultMessages as a5, defaultMessagesPl as a6, parseCookieConsent as a7, resolveMessage as a8, 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 JwtAuthResponse as q, type WPEntity as r, type RenderedContent as s, type WCImage as t, type WCProductVariation as u, type WCAddress as v, type WPULikeVoteParams as w, AuthenticationError as x, type CookieConsentConfig as y, type EmbeddedAuthor as z };
702
+ type CF7SubmissionStatus = 'mail_sent' | 'mail_failed' | 'validation_failed' | 'spam' | 'aborted';
703
+ interface CF7ValidationError {
704
+ field: string;
705
+ message: string;
706
+ idref: string | null;
707
+ }
708
+ interface CF7SubmissionResponse {
709
+ status: CF7SubmissionStatus;
710
+ message: string;
711
+ invalid_fields?: CF7ValidationError[];
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
+ }
719
+
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 };
@@ -22,6 +22,11 @@ declare const ErrorCode: {
22
22
  readonly AUTH_JWT_FAILED: "AUTH_JWT_FAILED";
23
23
  readonly AUTH_CREDENTIALS_INVALID: "AUTH_CREDENTIALS_INVALID";
24
24
  readonly AUTH_TOKEN_INVALID: "AUTH_TOKEN_INVALID";
25
+ readonly CF7_MAIL_SENT: "CF7_MAIL_SENT";
26
+ readonly CF7_MAIL_FAILED: "CF7_MAIL_FAILED";
27
+ readonly CF7_VALIDATION_FAILED: "CF7_VALIDATION_FAILED";
28
+ readonly CF7_SPAM: "CF7_SPAM";
29
+ readonly CF7_ABORTED: "CF7_ABORTED";
25
30
  };
26
31
  type ErrorCode = (typeof ErrorCode)[keyof typeof ErrorCode];
27
32
  declare const defaultMessages: Record<ErrorCode, string>;
@@ -694,4 +699,22 @@ interface WPULikeCheckResponse {
694
699
  status: WPULikeStatus | null;
695
700
  }
696
701
 
697
- export { WPGraphQLError as $, type Author as A, type BlockType as B, type CookieConsentCategories as C, type EmbeddedTerm as D, type EditorBlock as E, type FeaturedMedia as F, type GQLPost as G, ErrorCode as H, type GQLError as I, type JwtAuthCredentials as J, type GQLPageInfo as K, type MediaSize as L, type MediaDetails as M, type NextWordpressConfig as N, type PostEmbedded as O, type Post as P, type TemplatePart as Q, type RenderedTitle as R, type SearchResult as S, type Taxonomy as T, type UpdateCustomerInput as U, type WCDimensions as V, type WordPressResponse as W, type WCOrderLineItem as X, type WCProductAttribute as Y, type WCProductDefaultAttribute as Z, type WCShippingLine as _, type WooCommerceConfig as a, type WPULikeItemType as a0, WooCommerceError as a1, type WooCommercePaginationHeaders as a2, WordPressAPIError as a3, createCookieConsentHandler as a4, defaultMessages as a5, defaultMessagesPl as a6, parseCookieConsent as a7, resolveMessage as a8, 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 JwtAuthResponse as q, type WPEntity as r, type RenderedContent as s, type WCImage as t, type WCProductVariation as u, type WCAddress as v, type WPULikeVoteParams as w, AuthenticationError as x, type CookieConsentConfig as y, type EmbeddedAuthor as z };
702
+ type CF7SubmissionStatus = 'mail_sent' | 'mail_failed' | 'validation_failed' | 'spam' | 'aborted';
703
+ interface CF7ValidationError {
704
+ field: string;
705
+ message: string;
706
+ idref: string | null;
707
+ }
708
+ interface CF7SubmissionResponse {
709
+ status: CF7SubmissionStatus;
710
+ message: string;
711
+ invalid_fields?: CF7ValidationError[];
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
+ }
719
+
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.13",
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,