@szymonpiatek/nextwordpress 0.0.10 → 0.0.12

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.
@@ -650,4 +650,36 @@ interface GQLPost {
650
650
  };
651
651
  }
652
652
 
653
- export { type Author as A, type BlockType as B, type WCOrderLineItem as C, type WCProductAttribute as D, type EditorBlock as E, type FeaturedMedia as F, type GQLPost as G, type WCProductDefaultAttribute as H, type WCShippingLine as I, type JwtAuthCredentials as J, WPGraphQLError as K, WooCommerceError as L, type MediaDetails as M, type NextWordpressConfig as N, type WooCommercePaginationHeaders as O, type Post as P, WordPressAPIError as Q, type RenderedTitle as R, type SearchResult as S, type Taxonomy as T, type UpdateCustomerInput as U, defaultMessages as V, type WordPressResponse as W, defaultMessagesPl as X, resolveMessage as Y, type WooCommerceConfig as a, 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 JwtAuthResponse as k, type WPEntity as l, type RenderedContent as m, type WCImage as n, type WCProductVariation as o, type WCAddress as p, AuthenticationError as q, type EmbeddedAuthor as r, type EmbeddedTerm as s, ErrorCode as t, type GQLError as u, type GQLPageInfo as v, type MediaSize as w, type PostEmbedded as x, type TemplatePart as y, type WCDimensions as z };
653
+ type WPULikeItemType = 'post' | 'comment' | 'activity' | 'topic' | (string & {});
654
+ type WPULikeStatus = 'like' | 'unlike';
655
+ interface WPULikeStatsParams {
656
+ id: number;
657
+ type?: WPULikeItemType;
658
+ }
659
+ interface WPULikeStats {
660
+ count: number;
661
+ likes: number;
662
+ unlikes: number;
663
+ }
664
+ interface WPULikeVoteParams {
665
+ id: number;
666
+ type?: WPULikeItemType;
667
+ status: WPULikeStatus;
668
+ nonce?: string;
669
+ }
670
+ interface WPULikeVoteResponse {
671
+ success: boolean;
672
+ count: number;
673
+ status: WPULikeStatus;
674
+ message?: string;
675
+ }
676
+ interface WPULikeCheckParams {
677
+ id: number;
678
+ type?: WPULikeItemType;
679
+ }
680
+ interface WPULikeCheckResponse {
681
+ liked: boolean;
682
+ status: WPULikeStatus | null;
683
+ }
684
+
685
+ export { WooCommerceError as $, type Author as A, type BlockType as B, ErrorCode as C, type GQLError as D, type EditorBlock as E, type FeaturedMedia as F, type GQLPost as G, type GQLPageInfo as H, type MediaSize as I, type JwtAuthCredentials as J, type PostEmbedded as K, type TemplatePart as L, type MediaDetails as M, type NextWordpressConfig as N, type WCDimensions as O, type Post as P, type WCOrderLineItem as Q, type RenderedTitle as R, type SearchResult as S, type Taxonomy as T, type UpdateCustomerInput as U, type WCProductAttribute as V, type WordPressResponse as W, type WCProductDefaultAttribute as X, type WCShippingLine as Y, WPGraphQLError as Z, type WPULikeItemType as _, type WooCommerceConfig as a, type WooCommercePaginationHeaders as a0, WordPressAPIError as a1, defaultMessages as a2, defaultMessagesPl as a3, resolveMessage as a4, 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 EmbeddedAuthor as y, type EmbeddedTerm as z };
@@ -650,4 +650,36 @@ interface GQLPost {
650
650
  };
651
651
  }
652
652
 
653
- export { type Author as A, type BlockType as B, type WCOrderLineItem as C, type WCProductAttribute as D, type EditorBlock as E, type FeaturedMedia as F, type GQLPost as G, type WCProductDefaultAttribute as H, type WCShippingLine as I, type JwtAuthCredentials as J, WPGraphQLError as K, WooCommerceError as L, type MediaDetails as M, type NextWordpressConfig as N, type WooCommercePaginationHeaders as O, type Post as P, WordPressAPIError as Q, type RenderedTitle as R, type SearchResult as S, type Taxonomy as T, type UpdateCustomerInput as U, defaultMessages as V, type WordPressResponse as W, defaultMessagesPl as X, resolveMessage as Y, type WooCommerceConfig as a, 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 JwtAuthResponse as k, type WPEntity as l, type RenderedContent as m, type WCImage as n, type WCProductVariation as o, type WCAddress as p, AuthenticationError as q, type EmbeddedAuthor as r, type EmbeddedTerm as s, ErrorCode as t, type GQLError as u, type GQLPageInfo as v, type MediaSize as w, type PostEmbedded as x, type TemplatePart as y, type WCDimensions as z };
653
+ type WPULikeItemType = 'post' | 'comment' | 'activity' | 'topic' | (string & {});
654
+ type WPULikeStatus = 'like' | 'unlike';
655
+ interface WPULikeStatsParams {
656
+ id: number;
657
+ type?: WPULikeItemType;
658
+ }
659
+ interface WPULikeStats {
660
+ count: number;
661
+ likes: number;
662
+ unlikes: number;
663
+ }
664
+ interface WPULikeVoteParams {
665
+ id: number;
666
+ type?: WPULikeItemType;
667
+ status: WPULikeStatus;
668
+ nonce?: string;
669
+ }
670
+ interface WPULikeVoteResponse {
671
+ success: boolean;
672
+ count: number;
673
+ status: WPULikeStatus;
674
+ message?: string;
675
+ }
676
+ interface WPULikeCheckParams {
677
+ id: number;
678
+ type?: WPULikeItemType;
679
+ }
680
+ interface WPULikeCheckResponse {
681
+ liked: boolean;
682
+ status: WPULikeStatus | null;
683
+ }
684
+
685
+ export { WooCommerceError as $, type Author as A, type BlockType as B, ErrorCode as C, type GQLError as D, type EditorBlock as E, type FeaturedMedia as F, type GQLPost as G, type GQLPageInfo as H, type MediaSize as I, type JwtAuthCredentials as J, type PostEmbedded as K, type TemplatePart as L, type MediaDetails as M, type NextWordpressConfig as N, type WCDimensions as O, type Post as P, type WCOrderLineItem as Q, type RenderedTitle as R, type SearchResult as S, type Taxonomy as T, type UpdateCustomerInput as U, type WCProductAttribute as V, type WordPressResponse as W, type WCProductDefaultAttribute as X, type WCShippingLine as Y, WPGraphQLError as Z, type WPULikeItemType as _, type WooCommerceConfig as a, type WooCommercePaginationHeaders as a0, WordPressAPIError as a1, defaultMessages as a2, defaultMessagesPl as a3, resolveMessage as a4, 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 EmbeddedAuthor as y, type EmbeddedTerm as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@szymonpiatek/nextwordpress",
3
- "version": "0.0.10",
3
+ "version": "0.0.12",
4
4
  "description": "Szymon Piątek - Next.js WordPress client (types, queries, fetcher)",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,
@@ -14,6 +14,16 @@
14
14
  "import": "./dist/index.js",
15
15
  "require": "./dist/index.cjs"
16
16
  },
17
+ "./server": {
18
+ "types": "./dist/server/index.d.ts",
19
+ "import": "./dist/server/index.js",
20
+ "require": "./dist/server/index.cjs"
21
+ },
22
+ "./client": {
23
+ "types": "./dist/client/index.d.ts",
24
+ "import": "./dist/client/index.js",
25
+ "require": "./dist/client/index.cjs"
26
+ },
17
27
  "./hooks": {
18
28
  "types": "./dist/hooks/index.d.ts",
19
29
  "import": "./dist/hooks/index.js",