@szymonpiatek/nextwordpress 0.0.19 → 0.0.21

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.
@@ -689,6 +689,50 @@ interface AddProductToWishlistInput {
689
689
  quantity?: number;
690
690
  }
691
691
 
692
+ interface TIWishlistConfig {
693
+ serverURL: string;
694
+ clientURL?: string;
695
+ token: string;
696
+ cacheTTL?: number;
697
+ errorMessages?: Partial<Record<ErrorCode, string>>;
698
+ }
699
+ interface TIWishlistItem {
700
+ item_id: number;
701
+ product_id: number;
702
+ variation_id: number;
703
+ meta: Record<string, unknown>[];
704
+ date_added: string;
705
+ price: string;
706
+ in_stock: boolean;
707
+ }
708
+ interface TIWishlist {
709
+ id: number;
710
+ user_id: number;
711
+ date_added: string;
712
+ title: string;
713
+ share_key: string;
714
+ status?: number;
715
+ }
716
+ interface CreateTIWishlistInput {
717
+ title: string;
718
+ user_id?: number;
719
+ status?: number;
720
+ }
721
+ interface UpdateTIWishlistInput {
722
+ title?: string;
723
+ user_id?: number;
724
+ }
725
+ interface AddProductToTIWishlistInput {
726
+ product_id: number;
727
+ variation_id?: number;
728
+ meta?: Record<string, unknown>[];
729
+ }
730
+ interface GetTIWishlistProductsParams {
731
+ count?: number;
732
+ offset?: number;
733
+ order?: string;
734
+ }
735
+
692
736
  interface GQLPostFilter {
693
737
  authorName?: string;
694
738
  categoryName?: string;
@@ -793,4 +837,4 @@ declare class CF7Error extends Error {
793
837
  constructor(code: ErrorCode, status: number, endpoint: string, message: string);
794
838
  }
795
839
 
796
- export { type CF7ValidationError as $, type Author as A, type RestResetUserPasswordInput as B, type CookieConsentCategories as C, type WCImage as D, ErrorCode as E, type FeaturedMedia as F, type GQLSendPasswordResetEmailResult as G, type CreateWishlistInput as H, type UpdateWishlistInput as I, type JwtAuthCredentials as J, type AddProductToWishlistInput as K, type WCProductVariation as L, type WCAddress as M, type NextWordpressConfig as N, type WPULikeVoteParams as O, type Post as P, type GQLSendPasswordResetEmailInput as Q, type RestSendPasswordResetEmailResult as R, type GQLResetUserPasswordInput as S, type Taxonomy as T, type UpdateCustomerInput as U, AuthenticationError as V, type WPGraphQLConfig as W, type BlockType as X, type YithWishlistConfig as Y, CF7Error as Z, type CF7SubmissionStatus as _, type GQLResetUserPasswordResult as a, type CookieConsentConfig as a0, type EditorBlock as a1, type EmbeddedAuthor as a2, type EmbeddedTerm as a3, type GQLError as a4, type GQLPageInfo as a5, type MediaDetails as a6, type MediaSize as a7, type PostEmbedded as a8, type SearchResult as a9, type TemplatePart as aa, type WCDimensions as ab, type WCOrderLineItem as ac, type WCProductAttribute as ad, type WCProductDefaultAttribute as ae, type WCShippingLine as af, type WCWishlistItem as ag, WPGraphQLError as ah, type WPULikeItemType as ai, WooCommerceError as aj, type WooCommercePaginationHeaders as ak, WordPressAPIError as al, createCookieConsentHandler as am, defaultMessages as an, defaultMessagesPl as ao, parseCookieConsent as ap, resolveMessage as aq, type RestResetUserPasswordResult as b, type WordPressResponse as c, type WooCommerceConfig as d, type WCProduct as e, type WCProductFilterParams as f, type WooCommerceResponse as g, type WCCreateOrderInput as h, type WCOrder as i, type WCCustomer as j, type WCWishlist as k, type GQLPost as l, type GQLPostFilter as m, type GQLConnection as n, type WPULikeStatsParams as o, type WPULikeStats as p, type WPULikeStatus as q, type WPULikeVoteResponse as r, type WPULikeCheckParams as s, type WPULikeCheckResponse as t, type CF7SubmissionResponse as u, type JwtAuthResponse as v, type WPEntity as w, type RenderedTitle as x, type RenderedContent as y, type RestSendPasswordResetEmailInput as z };
840
+ export { type WPULikeVoteParams as $, type WPEntity as A, type RenderedTitle as B, type CookieConsentCategories as C, type RenderedContent as D, type Author as E, type FeaturedMedia as F, type GQLSendPasswordResetEmailResult as G, type RestSendPasswordResetEmailInput as H, type RestResetUserPasswordInput as I, type JwtAuthCredentials as J, type WCImage as K, ErrorCode as L, type CreateWishlistInput as M, type NextWordpressConfig as N, type UpdateWishlistInput as O, type Post as P, type AddProductToWishlistInput as Q, type RestSendPasswordResetEmailResult as R, type CreateTIWishlistInput as S, type TIWishlistConfig as T, type UpdateCustomerInput as U, type UpdateTIWishlistInput as V, type WPGraphQLConfig as W, type AddProductToTIWishlistInput as X, type YithWishlistConfig as Y, type WCProductVariation as Z, type WCAddress as _, type GQLResetUserPasswordResult as a, type GQLSendPasswordResetEmailInput as a0, type GQLResetUserPasswordInput as a1, AuthenticationError as a2, type BlockType as a3, CF7Error as a4, type CF7SubmissionStatus as a5, type CF7ValidationError as a6, type CookieConsentConfig as a7, type EditorBlock as a8, type EmbeddedAuthor as a9, type EmbeddedTerm as aa, type GQLError as ab, type GQLPageInfo as ac, type MediaDetails as ad, type MediaSize as ae, type PostEmbedded as af, type SearchResult as ag, type TemplatePart as ah, type WCDimensions as ai, type WCOrderLineItem as aj, type WCProductAttribute as ak, type WCProductDefaultAttribute as al, type WCShippingLine as am, type WCWishlistItem as an, WPGraphQLError as ao, type WPULikeItemType as ap, WooCommerceError as aq, type WooCommercePaginationHeaders as ar, WordPressAPIError as as, createCookieConsentHandler as at, defaultMessages as au, defaultMessagesPl as av, parseCookieConsent as aw, resolveMessage as ax, type RestResetUserPasswordResult as b, type WordPressResponse as c, type WooCommerceConfig as d, type WCProduct as e, type WCProductFilterParams as f, type WooCommerceResponse as g, type WCCreateOrderInput as h, type WCOrder as i, type WCCustomer as j, type WCWishlist as k, type TIWishlist as l, type GetTIWishlistProductsParams as m, type TIWishlistItem as n, type GQLPost as o, type GQLPostFilter as p, type GQLConnection as q, type WPULikeStatsParams as r, type WPULikeStats as s, type WPULikeStatus as t, type WPULikeVoteResponse as u, type WPULikeCheckParams as v, type WPULikeCheckResponse as w, type CF7SubmissionResponse as x, type JwtAuthResponse as y, type Taxonomy as z };
@@ -689,6 +689,50 @@ interface AddProductToWishlistInput {
689
689
  quantity?: number;
690
690
  }
691
691
 
692
+ interface TIWishlistConfig {
693
+ serverURL: string;
694
+ clientURL?: string;
695
+ token: string;
696
+ cacheTTL?: number;
697
+ errorMessages?: Partial<Record<ErrorCode, string>>;
698
+ }
699
+ interface TIWishlistItem {
700
+ item_id: number;
701
+ product_id: number;
702
+ variation_id: number;
703
+ meta: Record<string, unknown>[];
704
+ date_added: string;
705
+ price: string;
706
+ in_stock: boolean;
707
+ }
708
+ interface TIWishlist {
709
+ id: number;
710
+ user_id: number;
711
+ date_added: string;
712
+ title: string;
713
+ share_key: string;
714
+ status?: number;
715
+ }
716
+ interface CreateTIWishlistInput {
717
+ title: string;
718
+ user_id?: number;
719
+ status?: number;
720
+ }
721
+ interface UpdateTIWishlistInput {
722
+ title?: string;
723
+ user_id?: number;
724
+ }
725
+ interface AddProductToTIWishlistInput {
726
+ product_id: number;
727
+ variation_id?: number;
728
+ meta?: Record<string, unknown>[];
729
+ }
730
+ interface GetTIWishlistProductsParams {
731
+ count?: number;
732
+ offset?: number;
733
+ order?: string;
734
+ }
735
+
692
736
  interface GQLPostFilter {
693
737
  authorName?: string;
694
738
  categoryName?: string;
@@ -793,4 +837,4 @@ declare class CF7Error extends Error {
793
837
  constructor(code: ErrorCode, status: number, endpoint: string, message: string);
794
838
  }
795
839
 
796
- export { type CF7ValidationError as $, type Author as A, type RestResetUserPasswordInput as B, type CookieConsentCategories as C, type WCImage as D, ErrorCode as E, type FeaturedMedia as F, type GQLSendPasswordResetEmailResult as G, type CreateWishlistInput as H, type UpdateWishlistInput as I, type JwtAuthCredentials as J, type AddProductToWishlistInput as K, type WCProductVariation as L, type WCAddress as M, type NextWordpressConfig as N, type WPULikeVoteParams as O, type Post as P, type GQLSendPasswordResetEmailInput as Q, type RestSendPasswordResetEmailResult as R, type GQLResetUserPasswordInput as S, type Taxonomy as T, type UpdateCustomerInput as U, AuthenticationError as V, type WPGraphQLConfig as W, type BlockType as X, type YithWishlistConfig as Y, CF7Error as Z, type CF7SubmissionStatus as _, type GQLResetUserPasswordResult as a, type CookieConsentConfig as a0, type EditorBlock as a1, type EmbeddedAuthor as a2, type EmbeddedTerm as a3, type GQLError as a4, type GQLPageInfo as a5, type MediaDetails as a6, type MediaSize as a7, type PostEmbedded as a8, type SearchResult as a9, type TemplatePart as aa, type WCDimensions as ab, type WCOrderLineItem as ac, type WCProductAttribute as ad, type WCProductDefaultAttribute as ae, type WCShippingLine as af, type WCWishlistItem as ag, WPGraphQLError as ah, type WPULikeItemType as ai, WooCommerceError as aj, type WooCommercePaginationHeaders as ak, WordPressAPIError as al, createCookieConsentHandler as am, defaultMessages as an, defaultMessagesPl as ao, parseCookieConsent as ap, resolveMessage as aq, type RestResetUserPasswordResult as b, type WordPressResponse as c, type WooCommerceConfig as d, type WCProduct as e, type WCProductFilterParams as f, type WooCommerceResponse as g, type WCCreateOrderInput as h, type WCOrder as i, type WCCustomer as j, type WCWishlist as k, type GQLPost as l, type GQLPostFilter as m, type GQLConnection as n, type WPULikeStatsParams as o, type WPULikeStats as p, type WPULikeStatus as q, type WPULikeVoteResponse as r, type WPULikeCheckParams as s, type WPULikeCheckResponse as t, type CF7SubmissionResponse as u, type JwtAuthResponse as v, type WPEntity as w, type RenderedTitle as x, type RenderedContent as y, type RestSendPasswordResetEmailInput as z };
840
+ export { type WPULikeVoteParams as $, type WPEntity as A, type RenderedTitle as B, type CookieConsentCategories as C, type RenderedContent as D, type Author as E, type FeaturedMedia as F, type GQLSendPasswordResetEmailResult as G, type RestSendPasswordResetEmailInput as H, type RestResetUserPasswordInput as I, type JwtAuthCredentials as J, type WCImage as K, ErrorCode as L, type CreateWishlistInput as M, type NextWordpressConfig as N, type UpdateWishlistInput as O, type Post as P, type AddProductToWishlistInput as Q, type RestSendPasswordResetEmailResult as R, type CreateTIWishlistInput as S, type TIWishlistConfig as T, type UpdateCustomerInput as U, type UpdateTIWishlistInput as V, type WPGraphQLConfig as W, type AddProductToTIWishlistInput as X, type YithWishlistConfig as Y, type WCProductVariation as Z, type WCAddress as _, type GQLResetUserPasswordResult as a, type GQLSendPasswordResetEmailInput as a0, type GQLResetUserPasswordInput as a1, AuthenticationError as a2, type BlockType as a3, CF7Error as a4, type CF7SubmissionStatus as a5, type CF7ValidationError as a6, type CookieConsentConfig as a7, type EditorBlock as a8, type EmbeddedAuthor as a9, type EmbeddedTerm as aa, type GQLError as ab, type GQLPageInfo as ac, type MediaDetails as ad, type MediaSize as ae, type PostEmbedded as af, type SearchResult as ag, type TemplatePart as ah, type WCDimensions as ai, type WCOrderLineItem as aj, type WCProductAttribute as ak, type WCProductDefaultAttribute as al, type WCShippingLine as am, type WCWishlistItem as an, WPGraphQLError as ao, type WPULikeItemType as ap, WooCommerceError as aq, type WooCommercePaginationHeaders as ar, WordPressAPIError as as, createCookieConsentHandler as at, defaultMessages as au, defaultMessagesPl as av, parseCookieConsent as aw, resolveMessage as ax, type RestResetUserPasswordResult as b, type WordPressResponse as c, type WooCommerceConfig as d, type WCProduct as e, type WCProductFilterParams as f, type WooCommerceResponse as g, type WCCreateOrderInput as h, type WCOrder as i, type WCCustomer as j, type WCWishlist as k, type TIWishlist as l, type GetTIWishlistProductsParams as m, type TIWishlistItem as n, type GQLPost as o, type GQLPostFilter as p, type GQLConnection as q, type WPULikeStatsParams as r, type WPULikeStats as s, type WPULikeStatus as t, type WPULikeVoteResponse as u, type WPULikeCheckParams as v, type WPULikeCheckResponse as w, type CF7SubmissionResponse as x, type JwtAuthResponse as y, type Taxonomy as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@szymonpiatek/nextwordpress",
3
- "version": "0.0.19",
3
+ "version": "0.0.21",
4
4
  "description": "Szymon Piątek - Next.js WordPress client (types, queries, fetcher)",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,