@szymonpiatek/nextwordpress 0.0.1 → 0.0.3

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/index.d.cts CHANGED
@@ -4,32 +4,6 @@ interface NextWordpressConfig {
4
4
  /** Used in browser / client components (e.g., public domain). */
5
5
  clientURL: string;
6
6
  }
7
- interface WordPressPaginationHeaders {
8
- total: number;
9
- totalPages: number;
10
- }
11
- interface WordPressResponse<T> {
12
- data: T;
13
- headers: WordPressPaginationHeaders;
14
- }
15
- declare class WordPressAPIError extends Error {
16
- status: number;
17
- endpoint: string;
18
- constructor(message: string, status: number, endpoint: string);
19
- }
20
-
21
- declare function resolveBaseUrl(config: NextWordpressConfig): string;
22
- declare function buildUrl(config: NextWordpressConfig, path: string, query?: Record<string, unknown>): string;
23
-
24
- declare function createFetcher(config: NextWordpressConfig): {
25
- wpFetch: <T>(path: string, query?: Record<string, unknown>, tags?: string[]) => Promise<T>;
26
- wpFetchGraceful: <T>(path: string, fallback: T, query?: Record<string, unknown>, tags?: string[]) => Promise<T>;
27
- wpFetchPaginated: <T>(path: string, query?: Record<string, unknown>, tags?: string[]) => Promise<WordPressResponse<T[]>>;
28
- wpFetchPaginatedGraceful: <T>(path: string, query?: Record<string, unknown>, tags?: string[]) => Promise<WordPressResponse<T[]>>;
29
- wpMutate: <T>(path: string, body: unknown, method?: "POST" | "PUT" | "PATCH" | "DELETE") => Promise<T>;
30
- };
31
- type WordPressFetcher = ReturnType<typeof createFetcher>;
32
-
33
7
  interface WPEntity {
34
8
  id: number;
35
9
  date: string;
@@ -60,6 +34,8 @@ interface Taxonomy {
60
34
  meta: Record<string, unknown>;
61
35
  }
62
36
 
37
+ declare function resolveBaseUrl(config: NextWordpressConfig): string;
38
+
63
39
  interface MediaSize {
64
40
  file: string;
65
41
  width: number;
@@ -220,6 +196,15 @@ interface Post extends WPEntity {
220
196
  _embedded?: PostEmbedded;
221
197
  }
222
198
 
199
+ interface WordPressPaginationHeaders {
200
+ total: number;
201
+ totalPages: number;
202
+ }
203
+ interface WordPressResponse<T> {
204
+ data: T;
205
+ headers: WordPressPaginationHeaders;
206
+ }
207
+
223
208
  interface Category extends Taxonomy {
224
209
  taxonomy: 'category';
225
210
  parent: number;
@@ -243,7 +228,94 @@ interface Page extends WPEntity {
243
228
  meta: Record<string, unknown>;
244
229
  }
245
230
 
231
+ interface Menu {
232
+ id: number;
233
+ description: string;
234
+ name: string;
235
+ slug: string;
236
+ meta: Record<string, unknown>;
237
+ locations: string[];
238
+ auto_add: boolean;
239
+ }
240
+ interface MenuItem {
241
+ id: number;
242
+ title: {
243
+ rendered: string;
244
+ };
245
+ status: string;
246
+ url: string;
247
+ attr_title: string;
248
+ description: string;
249
+ type: string;
250
+ type_label: string;
251
+ object: string;
252
+ object_id: number;
253
+ parent: number;
254
+ menu_order: number;
255
+ target: string;
256
+ classes: string[];
257
+ xfn: string[];
258
+ invalid: boolean;
259
+ menus: number;
260
+ meta: Record<string, unknown>;
261
+ }
262
+ interface MenuLocation {
263
+ name: string;
264
+ description: string;
265
+ menu: number;
266
+ }
267
+ interface MenuWithItems {
268
+ menu: Menu;
269
+ items: MenuItem[];
270
+ }
271
+
272
+ interface CommentAuthorAvatar {
273
+ '24': string;
274
+ '48': string;
275
+ '96': string;
276
+ [size: string]: string;
277
+ }
278
+ interface Comment {
279
+ id: number;
280
+ post: number;
281
+ parent: number;
282
+ author: number;
283
+ author_name: string;
284
+ author_email: string;
285
+ author_url: string;
286
+ author_ip: string;
287
+ author_avatar_urls: CommentAuthorAvatar;
288
+ date: string;
289
+ date_gmt: string;
290
+ content: {
291
+ rendered: string;
292
+ };
293
+ link: string;
294
+ status: 'approve' | 'hold' | 'spam' | 'trash';
295
+ type: string;
296
+ meta: Record<string, unknown>;
297
+ }
298
+ interface CreateCommentInput {
299
+ post: number;
300
+ content: string;
301
+ author_name?: string;
302
+ author_email?: string;
303
+ author_url?: string;
304
+ parent?: number;
305
+ }
306
+
246
307
  declare function createWordPressClient(config: NextWordpressConfig): {
308
+ getCommentsByPostId: (postId: number, page?: number, perPage?: number) => Promise<WordPressResponse<Comment[]>>;
309
+ getAllCommentsByPostId: (postId: number) => Promise<Comment[]>;
310
+ getCommentById: (id: number) => Promise<Comment>;
311
+ getCommentReplies: (parentId: number) => Promise<Comment[]>;
312
+ createComment: (input: CreateCommentInput) => Promise<Comment>;
313
+ getMenus: () => Promise<Menu[]>;
314
+ getMenuById: (id: number) => Promise<Menu>;
315
+ getMenuBySlug: (slug: string) => Promise<Menu | undefined>;
316
+ getMenuItemsByMenuId: (menuId: number) => Promise<MenuItem[]>;
317
+ getMenuLocations: () => Promise<Record<string, MenuLocation>>;
318
+ getMenuByLocation: (location: string) => Promise<MenuWithItems | undefined>;
247
319
  getAllPages: () => Promise<Page[]>;
248
320
  getPageById: (id: number) => Promise<Page>;
249
321
  getPageBySlug: (slug: string) => Promise<Page | undefined>;
@@ -694,4 +766,476 @@ declare function createWooCommerceClient(config: WooCommerceConfig): {
694
766
  getProductVariationById: (productId: number, variationId: number) => Promise<WCProductVariation>;
695
767
  };
696
768
 
697
- export { type Author, type BlockType, type Category, type EditorBlock, type EmbeddedAuthor, type EmbeddedTerm, type FeaturedMedia, type MediaDetails, type MediaSize, type NextWordpressConfig, type OmnibusPriceEntry, type OmnibusProductData, type Page, type Post, type PostEmbedded, type RenderedContent, type RenderedTitle, type SearchResult, type Tag, type Taxonomy, type TemplatePart, type WCAddress, type WCCoupon, type WCCreateOrderInput, type WCCustomer, type WCDimensions, type WCImage, type WCOrder, type WCOrderLineItem, type WCProduct, type WCProductAttribute, type WCProductCategory, type WCProductDefaultAttribute, type WCProductFilterParams, type WCProductTag, type WCProductVariation, type WCProductVariationWithOmnibus, type WCProductWithOmnibus, type WCShippingLine, type WPEntity, type WooCommerceConfig, type WooCommerceFetcher, type WooCommercePaginationHeaders, type WooCommerceResponse, WordPressAPIError, type WordPressFetcher, type WordPressPaginationHeaders, type WordPressResponse, buildUrl, createFetcher, createWooCommerceClient, createWooCommerceFetcher, createWordPressClient, extractOmnibusData, resolveBaseUrl, withOmnibus, withOmnibusVariation };
769
+ type WPGraphQLConfig = NextWordpressConfig;
770
+ interface GQLPageInfo {
771
+ hasNextPage: boolean;
772
+ hasPreviousPage: boolean;
773
+ startCursor?: string;
774
+ endCursor?: string;
775
+ }
776
+ interface GQLConnection<T> {
777
+ nodes: T[];
778
+ pageInfo: GQLPageInfo;
779
+ }
780
+ interface GQLError {
781
+ message: string;
782
+ locations?: Array<{
783
+ line: number;
784
+ column: number;
785
+ }>;
786
+ path?: string[];
787
+ }
788
+ declare class WPGraphQLError extends Error {
789
+ readonly status: number;
790
+ readonly endpoint: string;
791
+ readonly gqlErrors?: GQLError[] | undefined;
792
+ constructor(message: string, status: number, endpoint: string, gqlErrors?: GQLError[] | undefined);
793
+ }
794
+
795
+ declare function createWPGraphQLFetcher(config: WPGraphQLConfig): {
796
+ gqlFetch: <TData>(document: string, variables?: Record<string, unknown>, tags?: string[]) => Promise<TData>;
797
+ gqlFetchGraceful: <TData>(document: string, fallback: TData, variables?: Record<string, unknown>, tags?: string[]) => Promise<TData>;
798
+ };
799
+ type WPGraphQLFetcher = ReturnType<typeof createWPGraphQLFetcher>;
800
+
801
+ interface GQLPostFilter {
802
+ authorName?: string;
803
+ categoryName?: string;
804
+ tag?: string;
805
+ search?: string;
806
+ status?: string;
807
+ }
808
+ interface GQLPost {
809
+ id: string;
810
+ databaseId: number;
811
+ slug: string;
812
+ title: string;
813
+ content: string;
814
+ excerpt: string;
815
+ date: string;
816
+ modified: string;
817
+ status: string;
818
+ uri: string;
819
+ author?: {
820
+ node: {
821
+ databaseId: number;
822
+ name: string;
823
+ slug: string;
824
+ avatar?: {
825
+ url: string;
826
+ };
827
+ };
828
+ };
829
+ featuredImage?: {
830
+ node: {
831
+ sourceUrl: string;
832
+ altText: string;
833
+ mediaDetails?: {
834
+ width: number;
835
+ height: number;
836
+ };
837
+ };
838
+ };
839
+ categories?: {
840
+ nodes: Array<{
841
+ databaseId: number;
842
+ name: string;
843
+ slug: string;
844
+ }>;
845
+ };
846
+ tags?: {
847
+ nodes: Array<{
848
+ databaseId: number;
849
+ name: string;
850
+ slug: string;
851
+ }>;
852
+ };
853
+ }
854
+
855
+ interface GQLPage {
856
+ id: string;
857
+ databaseId: number;
858
+ slug: string;
859
+ title: string;
860
+ content: string;
861
+ date: string;
862
+ modified: string;
863
+ status: string;
864
+ uri: string;
865
+ featuredImage?: {
866
+ node: {
867
+ sourceUrl: string;
868
+ altText: string;
869
+ mediaDetails?: {
870
+ width: number;
871
+ height: number;
872
+ };
873
+ };
874
+ };
875
+ }
876
+
877
+ interface GQLCategory {
878
+ id: string;
879
+ databaseId: number;
880
+ name: string;
881
+ slug: string;
882
+ description: string;
883
+ count: number | null;
884
+ uri: string;
885
+ parent?: {
886
+ node: {
887
+ databaseId: number;
888
+ name: string;
889
+ slug: string;
890
+ };
891
+ };
892
+ }
893
+
894
+ interface GQLTag {
895
+ id: string;
896
+ databaseId: number;
897
+ name: string;
898
+ slug: string;
899
+ description: string;
900
+ count: number;
901
+ uri: string;
902
+ }
903
+
904
+ interface GQLAuthor {
905
+ id: string;
906
+ databaseId: number;
907
+ name: string;
908
+ slug: string;
909
+ description: string;
910
+ email: string;
911
+ uri: string;
912
+ avatar?: {
913
+ url: string;
914
+ width: number;
915
+ height: number;
916
+ };
917
+ }
918
+
919
+ interface GQLMenuItem {
920
+ id: string;
921
+ databaseId: number;
922
+ label: string;
923
+ url: string;
924
+ parentId: string | null;
925
+ order: number;
926
+ target: string;
927
+ cssClasses: string[];
928
+ description: string;
929
+ connectedNode?: {
930
+ node: {
931
+ __typename: string;
932
+ id?: string;
933
+ databaseId?: number;
934
+ slug?: string;
935
+ };
936
+ };
937
+ }
938
+ interface GQLMenu {
939
+ id: string;
940
+ databaseId: number;
941
+ name: string;
942
+ slug: string;
943
+ locations: string[];
944
+ menuItems?: {
945
+ nodes: GQLMenuItem[];
946
+ };
947
+ }
948
+
949
+ interface GQLCommentAuthor {
950
+ name: string;
951
+ url: string;
952
+ avatar?: {
953
+ url: string;
954
+ width: number;
955
+ height: number;
956
+ };
957
+ }
958
+ interface GQLComment {
959
+ id: string;
960
+ databaseId: number;
961
+ content: string;
962
+ date: string;
963
+ parentId: string | null;
964
+ status: string;
965
+ author: {
966
+ node: GQLCommentAuthor;
967
+ };
968
+ replies?: {
969
+ nodes: GQLComment[];
970
+ };
971
+ }
972
+
973
+ declare function createWPGraphQLCoreClient(config: WPGraphQLConfig): {
974
+ getCommentsByPostId: (postId: number, first?: number, after?: string) => Promise<{
975
+ nodes: GQLComment[];
976
+ pageInfo: {
977
+ hasNextPage: boolean;
978
+ endCursor?: string;
979
+ };
980
+ }>;
981
+ getAllCommentsByPostId: (postId: number) => Promise<GQLComment[]>;
982
+ getCommentById: (id: number) => Promise<GQLComment | null>;
983
+ getMenus: () => Promise<GQLMenu[]>;
984
+ getMenuById: (id: number) => Promise<GQLMenu | null>;
985
+ getMenuBySlug: (slug: string) => Promise<GQLMenu | null>;
986
+ getMenuByLocation: (location: string) => Promise<GQLMenu | null>;
987
+ getMenuItems: (menuSlug: string) => Promise<GQLMenuItem[]>;
988
+ getAuthors: (first?: number, after?: string) => Promise<GQLConnection<GQLAuthor>>;
989
+ getAuthorBySlug: (slug: string) => Promise<GQLAuthor | null>;
990
+ getTags: (first?: number, after?: string) => Promise<GQLConnection<GQLTag>>;
991
+ getTagBySlug: (slug: string) => Promise<GQLTag | null>;
992
+ getCategories: (first?: number, after?: string) => Promise<GQLConnection<GQLCategory>>;
993
+ getCategoryBySlug: (slug: string) => Promise<GQLCategory | null>;
994
+ getCategoryByDatabaseId: (id: number) => Promise<GQLCategory | null>;
995
+ getPages: (first?: number, after?: string) => Promise<GQLConnection<GQLPage>>;
996
+ getPageBySlug: (slug: string) => Promise<GQLPage | null>;
997
+ getPageByUri: (uri: string) => Promise<GQLPage | null>;
998
+ getAllPageUris: () => Promise<{
999
+ uri: string;
1000
+ }[]>;
1001
+ getPosts: (first?: number, after?: string, filter?: GQLPostFilter) => Promise<GQLConnection<GQLPost>>;
1002
+ getPostBySlug: (slug: string) => Promise<GQLPost | null>;
1003
+ getPostByDatabaseId: (id: number) => Promise<GQLPost | null>;
1004
+ getRecentPosts: (first?: number) => Promise<GQLPost[]>;
1005
+ getAllPostSlugs: () => Promise<{
1006
+ slug: string;
1007
+ }[]>;
1008
+ getAllPostsForSitemap: () => Promise<{
1009
+ slug: string;
1010
+ modified: string;
1011
+ }[]>;
1012
+ };
1013
+
1014
+ interface GQLYoastSEO {
1015
+ title: string;
1016
+ metaDesc: string;
1017
+ canonical: string;
1018
+ opengraphTitle: string;
1019
+ opengraphDescription: string;
1020
+ opengraphImage?: {
1021
+ sourceUrl: string;
1022
+ altText: string;
1023
+ };
1024
+ twitterTitle: string;
1025
+ twitterDescription: string;
1026
+ twitterImage?: {
1027
+ sourceUrl: string;
1028
+ };
1029
+ schema?: {
1030
+ raw: string;
1031
+ };
1032
+ }
1033
+ interface GQLPostWithSEO extends GQLPost {
1034
+ seo: GQLYoastSEO;
1035
+ }
1036
+ interface GQLPageWithSEO extends GQLPage {
1037
+ seo: GQLYoastSEO;
1038
+ }
1039
+
1040
+ declare function createYoastQueries(fetcher: WPGraphQLFetcher): {
1041
+ getPostWithSEO: (slug: string) => Promise<GQLPostWithSEO | null>;
1042
+ getPageWithSEO: (slug: string) => Promise<GQLPageWithSEO | null>;
1043
+ getPageWithSEOByUri: (uri: string) => Promise<GQLPageWithSEO | null>;
1044
+ };
1045
+
1046
+ interface GQLACFFieldGroup {
1047
+ [key: string]: unknown;
1048
+ }
1049
+
1050
+ declare function buildACFFragment(fieldGroupName: string, fields: string[]): string;
1051
+ declare function buildPostWithACFQuery(fieldGroupName: string, fields: string[]): string;
1052
+ declare function buildPageWithACFQuery(fieldGroupName: string, fields: string[]): string;
1053
+ declare function buildPostsWithACFQuery(fieldGroupName: string, fields: string[]): string;
1054
+
1055
+ interface GQLProductFilter {
1056
+ search?: string;
1057
+ categoryId?: number;
1058
+ tagId?: number;
1059
+ onSale?: boolean;
1060
+ featured?: boolean;
1061
+ stockStatus?: 'IN_STOCK' | 'OUT_OF_STOCK' | 'ON_BACKORDER';
1062
+ minPrice?: string;
1063
+ maxPrice?: string;
1064
+ }
1065
+ interface GQLProductVariation {
1066
+ id: string;
1067
+ databaseId: number;
1068
+ slug: string;
1069
+ sku: string;
1070
+ price: string;
1071
+ regularPrice: string;
1072
+ salePrice?: string;
1073
+ onSale: boolean;
1074
+ stockStatus: 'IN_STOCK' | 'OUT_OF_STOCK' | 'ON_BACKORDER';
1075
+ stockQuantity?: number;
1076
+ image?: {
1077
+ sourceUrl: string;
1078
+ altText: string;
1079
+ };
1080
+ attributes?: {
1081
+ nodes: Array<{
1082
+ name: string;
1083
+ value: string;
1084
+ }>;
1085
+ };
1086
+ }
1087
+ interface GQLProduct {
1088
+ id: string;
1089
+ databaseId: number;
1090
+ slug: string;
1091
+ name: string;
1092
+ description: string;
1093
+ shortDescription: string;
1094
+ sku: string;
1095
+ price: string;
1096
+ regularPrice: string;
1097
+ salePrice?: string;
1098
+ onSale: boolean;
1099
+ stockStatus: 'IN_STOCK' | 'OUT_OF_STOCK' | 'ON_BACKORDER';
1100
+ stockQuantity?: number;
1101
+ manageStock: boolean;
1102
+ type: 'SIMPLE' | 'VARIABLE' | 'GROUPED' | 'EXTERNAL';
1103
+ featuredImage?: {
1104
+ node: {
1105
+ sourceUrl: string;
1106
+ altText: string;
1107
+ };
1108
+ };
1109
+ galleryImages?: {
1110
+ nodes: Array<{
1111
+ sourceUrl: string;
1112
+ altText: string;
1113
+ }>;
1114
+ };
1115
+ productCategories?: {
1116
+ nodes: Array<{
1117
+ databaseId: number;
1118
+ name: string;
1119
+ slug: string;
1120
+ }>;
1121
+ };
1122
+ productTags?: {
1123
+ nodes: Array<{
1124
+ databaseId: number;
1125
+ name: string;
1126
+ slug: string;
1127
+ }>;
1128
+ };
1129
+ variations?: {
1130
+ nodes: GQLProductVariation[];
1131
+ };
1132
+ }
1133
+
1134
+ interface GQLLineItem {
1135
+ productId: number;
1136
+ variationId?: number;
1137
+ quantity: number;
1138
+ subtotal: string;
1139
+ total: string;
1140
+ product?: {
1141
+ node: {
1142
+ databaseId: number;
1143
+ name: string;
1144
+ slug: string;
1145
+ };
1146
+ };
1147
+ }
1148
+ interface GQLOrderAddress {
1149
+ firstName: string;
1150
+ lastName: string;
1151
+ address1: string;
1152
+ address2?: string;
1153
+ city: string;
1154
+ postcode: string;
1155
+ country: string;
1156
+ email?: string;
1157
+ phone?: string;
1158
+ }
1159
+ interface GQLOrder {
1160
+ id: string;
1161
+ databaseId: number;
1162
+ orderNumber: string;
1163
+ status: string;
1164
+ date: string;
1165
+ modified: string;
1166
+ total: string;
1167
+ subtotal: string;
1168
+ totalTax: string;
1169
+ shippingTotal: string;
1170
+ currency: string;
1171
+ billing?: GQLOrderAddress;
1172
+ shipping?: GQLOrderAddress;
1173
+ lineItems?: {
1174
+ nodes: GQLLineItem[];
1175
+ };
1176
+ }
1177
+
1178
+ interface GQLCustomer {
1179
+ id: string;
1180
+ databaseId: number;
1181
+ email: string;
1182
+ firstName: string;
1183
+ lastName: string;
1184
+ username: string;
1185
+ billing?: {
1186
+ firstName: string;
1187
+ lastName: string;
1188
+ address1: string;
1189
+ address2?: string;
1190
+ city: string;
1191
+ postcode: string;
1192
+ country: string;
1193
+ phone?: string;
1194
+ };
1195
+ shipping?: {
1196
+ firstName: string;
1197
+ lastName: string;
1198
+ address1: string;
1199
+ address2?: string;
1200
+ city: string;
1201
+ postcode: string;
1202
+ country: string;
1203
+ };
1204
+ }
1205
+
1206
+ declare function createWPGraphQLWooCommerceClient(config: WPGraphQLConfig): {
1207
+ getCustomer: () => Promise<GQLCustomer | null>;
1208
+ getCustomerById: (id: number) => Promise<GQLCustomer | null>;
1209
+ getOrder: (id: number) => Promise<GQLOrder | null>;
1210
+ getMyOrders: (first?: number, after?: string) => Promise<GQLConnection<GQLOrder>>;
1211
+ getProducts: (first?: number, after?: string, filter?: GQLProductFilter) => Promise<GQLConnection<GQLProduct>>;
1212
+ getProductBySlug: (slug: string) => Promise<GQLProduct | null>;
1213
+ getProductByDatabaseId: (id: number) => Promise<GQLProduct | null>;
1214
+ getFeaturedProducts: (first?: number) => Promise<GQLProduct[]>;
1215
+ getOnSaleProducts: (first?: number) => Promise<GQLProduct[]>;
1216
+ getAllProductSlugs: () => Promise<{
1217
+ slug: string;
1218
+ }[]>;
1219
+ };
1220
+
1221
+ interface GQLCPTNode {
1222
+ id: string;
1223
+ databaseId: number;
1224
+ slug: string;
1225
+ title: string;
1226
+ date: string;
1227
+ modified: string;
1228
+ status: string;
1229
+ uri: string;
1230
+ [key: string]: unknown;
1231
+ }
1232
+
1233
+ declare function createCPTQueries(fetcher: WPGraphQLFetcher, typeName: string, singularTypeName: string, extraFields?: string): {
1234
+ getItems: (first?: number, after?: string) => Promise<GQLConnection<GQLCPTNode>>;
1235
+ getItemBySlug: (slug: string) => Promise<GQLCPTNode | null>;
1236
+ getAllSlugs: () => Promise<{
1237
+ slug: string;
1238
+ }[]>;
1239
+ };
1240
+
1241
+ export { type Author, type BlockType, type Category, type Comment, type CommentAuthorAvatar, type CreateCommentInput, type EditorBlock, type EmbeddedAuthor, type EmbeddedTerm, type FeaturedMedia, type GQLACFFieldGroup, type GQLAuthor, type GQLCPTNode, type GQLCategory, type GQLConnection, type GQLCustomer, type GQLError, type GQLLineItem, type GQLOrder, type GQLOrderAddress, type GQLPage, type GQLPageInfo, type GQLPageWithSEO, type GQLPost, type GQLPostFilter, type GQLPostWithSEO, type GQLProduct, type GQLProductFilter, type GQLProductVariation, type GQLTag, type GQLYoastSEO, type MediaDetails, type MediaSize, type Menu, type MenuItem, type MenuLocation, type MenuWithItems, type NextWordpressConfig, type OmnibusPriceEntry, type OmnibusProductData, type Page, type Post, type PostEmbedded, type RenderedContent, type RenderedTitle, type SearchResult, type Tag, type Taxonomy, type TemplatePart, type WCAddress, type WCCoupon, type WCCreateOrderInput, type WCCustomer, type WCDimensions, type WCImage, type WCOrder, type WCOrderLineItem, type WCProduct, type WCProductAttribute, type WCProductCategory, type WCProductDefaultAttribute, type WCProductFilterParams, type WCProductTag, type WCProductVariation, type WCProductVariationWithOmnibus, type WCProductWithOmnibus, type WCShippingLine, type WPEntity, type WPGraphQLConfig, WPGraphQLError, type WPGraphQLFetcher, type WooCommerceConfig, type WooCommerceFetcher, type WooCommercePaginationHeaders, type WooCommerceResponse, buildACFFragment, buildPageWithACFQuery, buildPostWithACFQuery, buildPostsWithACFQuery, createCPTQueries, createWPGraphQLCoreClient as createWPGraphQLClient, createWPGraphQLCoreClient, createWPGraphQLFetcher, createWPGraphQLWooCommerceClient, createWooCommerceClient, createWooCommerceFetcher, createWordPressClient, createYoastQueries, extractOmnibusData, resolveBaseUrl, withOmnibus, withOmnibusVariation };