@szymonpiatek/nextwordpress 0.0.17 → 0.0.18

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.
@@ -137,6 +137,36 @@ interface GQLResetUserPasswordResult {
137
137
  } | null;
138
138
  }
139
139
 
140
+ interface RestSendPasswordResetEmailInput {
141
+ username: string;
142
+ }
143
+ interface RestSendPasswordResetEmailResult {
144
+ message: string;
145
+ }
146
+ interface RestResetUserPasswordInput {
147
+ key: string;
148
+ login: string;
149
+ password: string;
150
+ }
151
+ interface RestResetUserPasswordResult {
152
+ message: string;
153
+ }
154
+
155
+ interface WordPressPaginationHeaders {
156
+ total: number;
157
+ totalPages: number;
158
+ }
159
+ interface WordPressResponse<T> {
160
+ data: T;
161
+ headers: WordPressPaginationHeaders;
162
+ }
163
+ declare class WordPressAPIError extends Error {
164
+ readonly code: ErrorCode;
165
+ readonly status: number;
166
+ readonly endpoint: string;
167
+ constructor(code: ErrorCode, status: number, endpoint: string, message: string, detail?: string);
168
+ }
169
+
140
170
  interface CookieConsentCategories {
141
171
  necessary: true;
142
172
  analytics: boolean;
@@ -309,21 +339,6 @@ interface Post extends WPEntity {
309
339
  _embedded?: PostEmbedded;
310
340
  }
311
341
 
312
- interface WordPressPaginationHeaders {
313
- total: number;
314
- totalPages: number;
315
- }
316
- interface WordPressResponse<T> {
317
- data: T;
318
- headers: WordPressPaginationHeaders;
319
- }
320
- declare class WordPressAPIError extends Error {
321
- readonly code: ErrorCode;
322
- readonly status: number;
323
- readonly endpoint: string;
324
- constructor(code: ErrorCode, status: number, endpoint: string, message: string, detail?: string);
325
- }
326
-
327
342
  interface WooCommerceConfig {
328
343
  serverURL: string;
329
344
  clientURL?: string;
@@ -738,4 +753,4 @@ declare class CF7Error extends Error {
738
753
  constructor(code: ErrorCode, status: number, endpoint: string, message: string);
739
754
  }
740
755
 
741
- export { type PostEmbedded as $, type Author as A, type GQLSendPasswordResetEmailInput as B, type CookieConsentCategories as C, type GQLResetUserPasswordInput as D, AuthenticationError as E, type FeaturedMedia as F, type GQLSendPasswordResetEmailResult as G, type BlockType as H, CF7Error as I, type JwtAuthCredentials as J, type CF7SubmissionStatus as K, type CF7ValidationError as L, type CookieConsentConfig as M, type NextWordpressConfig as N, type EditorBlock as O, type Post as P, type EmbeddedAuthor as Q, type RenderedTitle as R, type EmbeddedTerm as S, type Taxonomy as T, type UpdateCustomerInput as U, ErrorCode as V, type WPGraphQLConfig as W, type GQLError as X, type GQLPageInfo as Y, type MediaDetails as Z, type MediaSize as _, type GQLResetUserPasswordResult as a, type SearchResult as a0, type TemplatePart as a1, type WCDimensions as a2, type WCOrderLineItem as a3, type WCProductAttribute as a4, type WCProductDefaultAttribute as a5, type WCShippingLine as a6, WPGraphQLError as a7, type WPULikeItemType as a8, WooCommerceError as a9, type WooCommercePaginationHeaders as aa, WordPressAPIError as ab, createCookieConsentHandler as ac, defaultMessages as ad, defaultMessagesPl as ae, parseCookieConsent as af, resolveMessage as ag, type WordPressResponse as b, type WooCommerceConfig as c, type WCProduct as d, type WCProductFilterParams as e, type WooCommerceResponse as f, type WCCreateOrderInput as g, type WCOrder as h, type WCCustomer as i, type GQLPost as j, type GQLPostFilter as k, type GQLConnection as l, type WPULikeStatsParams as m, type WPULikeStats as n, type WPULikeStatus as o, type WPULikeVoteResponse as p, type WPULikeCheckParams as q, type WPULikeCheckResponse as r, type CF7SubmissionResponse as s, type JwtAuthResponse as t, type WPEntity as u, type RenderedContent as v, type WCImage as w, type WCProductVariation as x, type WCAddress as y, type WPULikeVoteParams as z };
756
+ export { type GQLError as $, type Author as A, type WCImage as B, type CookieConsentCategories as C, type WCProductVariation as D, type WCAddress as E, type FeaturedMedia as F, type GQLSendPasswordResetEmailResult as G, type WPULikeVoteParams as H, type GQLSendPasswordResetEmailInput as I, type JwtAuthCredentials as J, type GQLResetUserPasswordInput as K, AuthenticationError as L, type BlockType as M, type NextWordpressConfig as N, CF7Error as O, type Post as P, type CF7SubmissionStatus as Q, type RestSendPasswordResetEmailResult as R, type CF7ValidationError as S, type Taxonomy as T, type UpdateCustomerInput as U, type CookieConsentConfig as V, type WPGraphQLConfig as W, type EditorBlock as X, type EmbeddedAuthor as Y, type EmbeddedTerm as Z, ErrorCode as _, type GQLResetUserPasswordResult as a, type GQLPageInfo as a0, type MediaDetails as a1, type MediaSize as a2, type PostEmbedded as a3, type SearchResult as a4, type TemplatePart as a5, type WCDimensions as a6, type WCOrderLineItem as a7, type WCProductAttribute as a8, type WCProductDefaultAttribute as a9, type WCShippingLine as aa, WPGraphQLError as ab, type WPULikeItemType as ac, WooCommerceError as ad, type WooCommercePaginationHeaders as ae, WordPressAPIError as af, createCookieConsentHandler as ag, defaultMessages as ah, defaultMessagesPl as ai, parseCookieConsent as aj, resolveMessage as ak, 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 GQLPost as k, type GQLPostFilter as l, type GQLConnection as m, type WPULikeStatsParams as n, type WPULikeStats as o, type WPULikeStatus as p, type WPULikeVoteResponse as q, type WPULikeCheckParams as r, type WPULikeCheckResponse as s, type CF7SubmissionResponse as t, type JwtAuthResponse as u, type WPEntity as v, type RenderedTitle as w, type RenderedContent as x, type RestSendPasswordResetEmailInput as y, type RestResetUserPasswordInput as z };
@@ -137,6 +137,36 @@ interface GQLResetUserPasswordResult {
137
137
  } | null;
138
138
  }
139
139
 
140
+ interface RestSendPasswordResetEmailInput {
141
+ username: string;
142
+ }
143
+ interface RestSendPasswordResetEmailResult {
144
+ message: string;
145
+ }
146
+ interface RestResetUserPasswordInput {
147
+ key: string;
148
+ login: string;
149
+ password: string;
150
+ }
151
+ interface RestResetUserPasswordResult {
152
+ message: string;
153
+ }
154
+
155
+ interface WordPressPaginationHeaders {
156
+ total: number;
157
+ totalPages: number;
158
+ }
159
+ interface WordPressResponse<T> {
160
+ data: T;
161
+ headers: WordPressPaginationHeaders;
162
+ }
163
+ declare class WordPressAPIError extends Error {
164
+ readonly code: ErrorCode;
165
+ readonly status: number;
166
+ readonly endpoint: string;
167
+ constructor(code: ErrorCode, status: number, endpoint: string, message: string, detail?: string);
168
+ }
169
+
140
170
  interface CookieConsentCategories {
141
171
  necessary: true;
142
172
  analytics: boolean;
@@ -309,21 +339,6 @@ interface Post extends WPEntity {
309
339
  _embedded?: PostEmbedded;
310
340
  }
311
341
 
312
- interface WordPressPaginationHeaders {
313
- total: number;
314
- totalPages: number;
315
- }
316
- interface WordPressResponse<T> {
317
- data: T;
318
- headers: WordPressPaginationHeaders;
319
- }
320
- declare class WordPressAPIError extends Error {
321
- readonly code: ErrorCode;
322
- readonly status: number;
323
- readonly endpoint: string;
324
- constructor(code: ErrorCode, status: number, endpoint: string, message: string, detail?: string);
325
- }
326
-
327
342
  interface WooCommerceConfig {
328
343
  serverURL: string;
329
344
  clientURL?: string;
@@ -738,4 +753,4 @@ declare class CF7Error extends Error {
738
753
  constructor(code: ErrorCode, status: number, endpoint: string, message: string);
739
754
  }
740
755
 
741
- export { type PostEmbedded as $, type Author as A, type GQLSendPasswordResetEmailInput as B, type CookieConsentCategories as C, type GQLResetUserPasswordInput as D, AuthenticationError as E, type FeaturedMedia as F, type GQLSendPasswordResetEmailResult as G, type BlockType as H, CF7Error as I, type JwtAuthCredentials as J, type CF7SubmissionStatus as K, type CF7ValidationError as L, type CookieConsentConfig as M, type NextWordpressConfig as N, type EditorBlock as O, type Post as P, type EmbeddedAuthor as Q, type RenderedTitle as R, type EmbeddedTerm as S, type Taxonomy as T, type UpdateCustomerInput as U, ErrorCode as V, type WPGraphQLConfig as W, type GQLError as X, type GQLPageInfo as Y, type MediaDetails as Z, type MediaSize as _, type GQLResetUserPasswordResult as a, type SearchResult as a0, type TemplatePart as a1, type WCDimensions as a2, type WCOrderLineItem as a3, type WCProductAttribute as a4, type WCProductDefaultAttribute as a5, type WCShippingLine as a6, WPGraphQLError as a7, type WPULikeItemType as a8, WooCommerceError as a9, type WooCommercePaginationHeaders as aa, WordPressAPIError as ab, createCookieConsentHandler as ac, defaultMessages as ad, defaultMessagesPl as ae, parseCookieConsent as af, resolveMessage as ag, type WordPressResponse as b, type WooCommerceConfig as c, type WCProduct as d, type WCProductFilterParams as e, type WooCommerceResponse as f, type WCCreateOrderInput as g, type WCOrder as h, type WCCustomer as i, type GQLPost as j, type GQLPostFilter as k, type GQLConnection as l, type WPULikeStatsParams as m, type WPULikeStats as n, type WPULikeStatus as o, type WPULikeVoteResponse as p, type WPULikeCheckParams as q, type WPULikeCheckResponse as r, type CF7SubmissionResponse as s, type JwtAuthResponse as t, type WPEntity as u, type RenderedContent as v, type WCImage as w, type WCProductVariation as x, type WCAddress as y, type WPULikeVoteParams as z };
756
+ export { type GQLError as $, type Author as A, type WCImage as B, type CookieConsentCategories as C, type WCProductVariation as D, type WCAddress as E, type FeaturedMedia as F, type GQLSendPasswordResetEmailResult as G, type WPULikeVoteParams as H, type GQLSendPasswordResetEmailInput as I, type JwtAuthCredentials as J, type GQLResetUserPasswordInput as K, AuthenticationError as L, type BlockType as M, type NextWordpressConfig as N, CF7Error as O, type Post as P, type CF7SubmissionStatus as Q, type RestSendPasswordResetEmailResult as R, type CF7ValidationError as S, type Taxonomy as T, type UpdateCustomerInput as U, type CookieConsentConfig as V, type WPGraphQLConfig as W, type EditorBlock as X, type EmbeddedAuthor as Y, type EmbeddedTerm as Z, ErrorCode as _, type GQLResetUserPasswordResult as a, type GQLPageInfo as a0, type MediaDetails as a1, type MediaSize as a2, type PostEmbedded as a3, type SearchResult as a4, type TemplatePart as a5, type WCDimensions as a6, type WCOrderLineItem as a7, type WCProductAttribute as a8, type WCProductDefaultAttribute as a9, type WCShippingLine as aa, WPGraphQLError as ab, type WPULikeItemType as ac, WooCommerceError as ad, type WooCommercePaginationHeaders as ae, WordPressAPIError as af, createCookieConsentHandler as ag, defaultMessages as ah, defaultMessagesPl as ai, parseCookieConsent as aj, resolveMessage as ak, 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 GQLPost as k, type GQLPostFilter as l, type GQLConnection as m, type WPULikeStatsParams as n, type WPULikeStats as o, type WPULikeStatus as p, type WPULikeVoteResponse as q, type WPULikeCheckParams as r, type WPULikeCheckResponse as s, type CF7SubmissionResponse as t, type JwtAuthResponse as u, type WPEntity as v, type RenderedTitle as w, type RenderedContent as x, type RestSendPasswordResetEmailInput as y, type RestResetUserPasswordInput as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@szymonpiatek/nextwordpress",
3
- "version": "0.0.17",
3
+ "version": "0.0.18",
4
4
  "description": "Szymon Piątek - Next.js WordPress client (types, queries, fetcher)",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,