@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.
- package/dist/client/index.cjs +84 -38
- package/dist/client/index.cjs.map +1 -1
- package/dist/client/index.d.cts +2 -2
- package/dist/client/index.d.ts +2 -2
- package/dist/client/index.js +83 -39
- package/dist/client/index.js.map +1 -1
- package/dist/hooks/index.cjs +84 -38
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.cts +16 -4
- package/dist/hooks/index.d.ts +16 -4
- package/dist/hooks/index.js +83 -39
- package/dist/hooks/index.js.map +1 -1
- package/dist/index.cjs +24 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -11
- package/dist/index.d.ts +13 -11
- package/dist/index.js +24 -3
- package/dist/index.js.map +1 -1
- package/dist/server/index.cjs +24 -3
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.d.cts +1 -1
- package/dist/server/index.d.ts +1 -1
- package/dist/server/index.js +24 -3
- package/dist/server/index.js.map +1 -1
- package/dist/{types-DVzJO3P-.d.cts → types-CM3v08Fh.d.cts} +31 -16
- package/dist/{types-DVzJO3P-.d.ts → types-CM3v08Fh.d.ts} +31 -16
- package/package.json +1 -1
|
@@ -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
|
|
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
|
|
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 };
|