@szymonpiatek/nextwordpress 0.0.16 → 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.
@@ -123,9 +123,6 @@ interface GQLSendPasswordResetEmailInput {
123
123
  }
124
124
  interface GQLSendPasswordResetEmailResult {
125
125
  success?: boolean;
126
- user?: {
127
- email: string;
128
- } | null;
129
126
  }
130
127
  interface GQLResetUserPasswordInput {
131
128
  key: string;
@@ -140,6 +137,36 @@ interface GQLResetUserPasswordResult {
140
137
  } | null;
141
138
  }
142
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
+
143
170
  interface CookieConsentCategories {
144
171
  necessary: true;
145
172
  analytics: boolean;
@@ -312,21 +339,6 @@ interface Post extends WPEntity {
312
339
  _embedded?: PostEmbedded;
313
340
  }
314
341
 
315
- interface WordPressPaginationHeaders {
316
- total: number;
317
- totalPages: number;
318
- }
319
- interface WordPressResponse<T> {
320
- data: T;
321
- headers: WordPressPaginationHeaders;
322
- }
323
- declare class WordPressAPIError extends Error {
324
- readonly code: ErrorCode;
325
- readonly status: number;
326
- readonly endpoint: string;
327
- constructor(code: ErrorCode, status: number, endpoint: string, message: string, detail?: string);
328
- }
329
-
330
342
  interface WooCommerceConfig {
331
343
  serverURL: string;
332
344
  clientURL?: string;
@@ -741,4 +753,4 @@ declare class CF7Error extends Error {
741
753
  constructor(code: ErrorCode, status: number, endpoint: string, message: string);
742
754
  }
743
755
 
744
- 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 };
@@ -123,9 +123,6 @@ interface GQLSendPasswordResetEmailInput {
123
123
  }
124
124
  interface GQLSendPasswordResetEmailResult {
125
125
  success?: boolean;
126
- user?: {
127
- email: string;
128
- } | null;
129
126
  }
130
127
  interface GQLResetUserPasswordInput {
131
128
  key: string;
@@ -140,6 +137,36 @@ interface GQLResetUserPasswordResult {
140
137
  } | null;
141
138
  }
142
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
+
143
170
  interface CookieConsentCategories {
144
171
  necessary: true;
145
172
  analytics: boolean;
@@ -312,21 +339,6 @@ interface Post extends WPEntity {
312
339
  _embedded?: PostEmbedded;
313
340
  }
314
341
 
315
- interface WordPressPaginationHeaders {
316
- total: number;
317
- totalPages: number;
318
- }
319
- interface WordPressResponse<T> {
320
- data: T;
321
- headers: WordPressPaginationHeaders;
322
- }
323
- declare class WordPressAPIError extends Error {
324
- readonly code: ErrorCode;
325
- readonly status: number;
326
- readonly endpoint: string;
327
- constructor(code: ErrorCode, status: number, endpoint: string, message: string, detail?: string);
328
- }
329
-
330
342
  interface WooCommerceConfig {
331
343
  serverURL: string;
332
344
  clientURL?: string;
@@ -741,4 +753,4 @@ declare class CF7Error extends Error {
741
753
  constructor(code: ErrorCode, status: number, endpoint: string, message: string);
742
754
  }
743
755
 
744
- 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.16",
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,