@atomic-solutions/woocommerce-api-client 0.6.0 → 0.7.0
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.d.mts +2 -2
- package/dist/client/index.d.ts +2 -2
- package/dist/client/index.js +11 -0
- package/dist/client/index.js.map +1 -1
- package/dist/client/index.mjs +11 -0
- package/dist/client/index.mjs.map +1 -1
- package/dist/http/index.d.mts +2 -2
- package/dist/http/index.d.ts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -1
- package/dist/index.mjs.map +1 -1
- package/dist/testing/index.d.mts +1 -1
- package/dist/testing/index.d.ts +1 -1
- package/dist/testing/index.js +11 -0
- package/dist/testing/index.js.map +1 -1
- package/dist/testing/index.mjs +11 -0
- package/dist/testing/index.mjs.map +1 -1
- package/dist/{types-Cbf1-EhK.d.mts → types-Tf-Yd0qB.d.mts} +13 -1
- package/dist/{types-Cbf1-EhK.d.ts → types-Tf-Yd0qB.d.ts} +13 -1
- package/dist/utils/index.d.mts +2 -2
- package/dist/utils/index.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1729,6 +1729,16 @@ declare const couponInputSchema: z.ZodObject<{
|
|
|
1729
1729
|
}, {
|
|
1730
1730
|
code: string;
|
|
1731
1731
|
}>;
|
|
1732
|
+
declare const cartExtensionsInputSchema: z.ZodObject<{
|
|
1733
|
+
namespace: z.ZodString;
|
|
1734
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1735
|
+
}, "strip", z.ZodTypeAny, {
|
|
1736
|
+
data: Record<string, unknown>;
|
|
1737
|
+
namespace: string;
|
|
1738
|
+
}, {
|
|
1739
|
+
data: Record<string, unknown>;
|
|
1740
|
+
namespace: string;
|
|
1741
|
+
}>;
|
|
1732
1742
|
declare const updateCustomerInputSchema: z.ZodObject<{
|
|
1733
1743
|
billing_address: z.ZodOptional<z.ZodObject<{
|
|
1734
1744
|
first_name: z.ZodOptional<z.ZodString>;
|
|
@@ -1872,6 +1882,7 @@ type BatchResponse = z.infer<typeof batchResponseSchema>;
|
|
|
1872
1882
|
type UpdateCartItemInput = z.infer<typeof updateCartItemInputSchema>;
|
|
1873
1883
|
type RemoveCartItemInput = z.infer<typeof removeCartItemInputSchema>;
|
|
1874
1884
|
type CouponInput = z.infer<typeof couponInputSchema>;
|
|
1885
|
+
type CartExtensionsInput = z.infer<typeof cartExtensionsInputSchema>;
|
|
1875
1886
|
type UpdateCustomerInput = z.infer<typeof updateCustomerInputSchema>;
|
|
1876
1887
|
type SelectShippingRateInput = z.infer<typeof selectShippingRateInputSchema>;
|
|
1877
1888
|
|
|
@@ -3567,6 +3578,7 @@ interface CartAPI {
|
|
|
3567
3578
|
removeItem: (input: RemoveCartItemInput) => Promise<Cart>;
|
|
3568
3579
|
applyCoupon: (input: CouponInput) => Promise<Cart>;
|
|
3569
3580
|
removeCoupon: (input: CouponInput) => Promise<Cart>;
|
|
3581
|
+
updateExtensions: (input: CartExtensionsInput) => Promise<Cart>;
|
|
3570
3582
|
updateCustomer: (input: UpdateCustomerInput) => Promise<Cart>;
|
|
3571
3583
|
selectShippingRate: (input: SelectShippingRateInput) => Promise<Cart>;
|
|
3572
3584
|
}
|
|
@@ -3591,4 +3603,4 @@ interface WooCommerceClient {
|
|
|
3591
3603
|
orders: OrdersAPI;
|
|
3592
3604
|
}
|
|
3593
3605
|
|
|
3594
|
-
export {
|
|
3606
|
+
export { cartExtensionsInputSchema as $, type AddItemsInput as A, type BaseErrorOptions as B, type CartHeadersAdapter as C, type ProductCategory as D, type ProductImage as E, type ProductParams as F, type GetOrderInput as G, type ProductTag as H, type ProductTagsParams as I, type JwtTokenAdapter as J, type ProductsAPI as K, type RemoveCartItemInput as L, type SelectShippingRateInput as M, type StoreApiOrder as N, type OrderStatus as O, type PaginatedResponse as P, type UpdateCustomerInput as Q, type ResponseOptions as R, type StoreApiVersion as S, WooCommerceApiError as T, type UpdateCartItemInput as U, type ValidationMode as V, type WooCommerceConfig as W, type WooCommerceApiErrorOptions as X, addItemsInputSchema as Y, addToCartInputSchema as Z, batchResponseSchema as _, type WooCommerceClient as a, cartItemImageSchema as a0, cartSchema as a1, checkoutInputSchema as a2, checkoutSchema as a3, couponInputSchema as a4, productCategorySchema as a5, productImageSchema as a6, productSchema as a7, removeCartItemInputSchema as a8, storeProductsSearchParamsSchema as a9, selectShippingRateInputSchema as aa, storeApiOrderSchema as ab, updateCartItemInputSchema as ac, updateCustomerInputSchema as ad, handleApiResponse as b, handlePaginatedApiResponse as c, type Pagination as d, calculatePagination as e, type WooCommerceApiErrorCode as f, type BaseReportableData as g, handleApiData as h, isZodError as i, type ValidationReportableData as j, type WooCommerceDataValidationErrorOptions as k, type AddItemsResult as l, type AddToCartInput as m, type BatchResponse as n, type Cart as o, type CartAPI as p, type CartExtensionsInput as q, type CartItem as r, setupErrorInterceptor as s, type CartItemImage as t, type Checkout as u, type CheckoutAPI as v, type CheckoutInput as w, type CouponInput as x, type OrdersAPI as y, type Product as z };
|
|
@@ -1729,6 +1729,16 @@ declare const couponInputSchema: z.ZodObject<{
|
|
|
1729
1729
|
}, {
|
|
1730
1730
|
code: string;
|
|
1731
1731
|
}>;
|
|
1732
|
+
declare const cartExtensionsInputSchema: z.ZodObject<{
|
|
1733
|
+
namespace: z.ZodString;
|
|
1734
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1735
|
+
}, "strip", z.ZodTypeAny, {
|
|
1736
|
+
data: Record<string, unknown>;
|
|
1737
|
+
namespace: string;
|
|
1738
|
+
}, {
|
|
1739
|
+
data: Record<string, unknown>;
|
|
1740
|
+
namespace: string;
|
|
1741
|
+
}>;
|
|
1732
1742
|
declare const updateCustomerInputSchema: z.ZodObject<{
|
|
1733
1743
|
billing_address: z.ZodOptional<z.ZodObject<{
|
|
1734
1744
|
first_name: z.ZodOptional<z.ZodString>;
|
|
@@ -1872,6 +1882,7 @@ type BatchResponse = z.infer<typeof batchResponseSchema>;
|
|
|
1872
1882
|
type UpdateCartItemInput = z.infer<typeof updateCartItemInputSchema>;
|
|
1873
1883
|
type RemoveCartItemInput = z.infer<typeof removeCartItemInputSchema>;
|
|
1874
1884
|
type CouponInput = z.infer<typeof couponInputSchema>;
|
|
1885
|
+
type CartExtensionsInput = z.infer<typeof cartExtensionsInputSchema>;
|
|
1875
1886
|
type UpdateCustomerInput = z.infer<typeof updateCustomerInputSchema>;
|
|
1876
1887
|
type SelectShippingRateInput = z.infer<typeof selectShippingRateInputSchema>;
|
|
1877
1888
|
|
|
@@ -3567,6 +3578,7 @@ interface CartAPI {
|
|
|
3567
3578
|
removeItem: (input: RemoveCartItemInput) => Promise<Cart>;
|
|
3568
3579
|
applyCoupon: (input: CouponInput) => Promise<Cart>;
|
|
3569
3580
|
removeCoupon: (input: CouponInput) => Promise<Cart>;
|
|
3581
|
+
updateExtensions: (input: CartExtensionsInput) => Promise<Cart>;
|
|
3570
3582
|
updateCustomer: (input: UpdateCustomerInput) => Promise<Cart>;
|
|
3571
3583
|
selectShippingRate: (input: SelectShippingRateInput) => Promise<Cart>;
|
|
3572
3584
|
}
|
|
@@ -3591,4 +3603,4 @@ interface WooCommerceClient {
|
|
|
3591
3603
|
orders: OrdersAPI;
|
|
3592
3604
|
}
|
|
3593
3605
|
|
|
3594
|
-
export {
|
|
3606
|
+
export { cartExtensionsInputSchema as $, type AddItemsInput as A, type BaseErrorOptions as B, type CartHeadersAdapter as C, type ProductCategory as D, type ProductImage as E, type ProductParams as F, type GetOrderInput as G, type ProductTag as H, type ProductTagsParams as I, type JwtTokenAdapter as J, type ProductsAPI as K, type RemoveCartItemInput as L, type SelectShippingRateInput as M, type StoreApiOrder as N, type OrderStatus as O, type PaginatedResponse as P, type UpdateCustomerInput as Q, type ResponseOptions as R, type StoreApiVersion as S, WooCommerceApiError as T, type UpdateCartItemInput as U, type ValidationMode as V, type WooCommerceConfig as W, type WooCommerceApiErrorOptions as X, addItemsInputSchema as Y, addToCartInputSchema as Z, batchResponseSchema as _, type WooCommerceClient as a, cartItemImageSchema as a0, cartSchema as a1, checkoutInputSchema as a2, checkoutSchema as a3, couponInputSchema as a4, productCategorySchema as a5, productImageSchema as a6, productSchema as a7, removeCartItemInputSchema as a8, storeProductsSearchParamsSchema as a9, selectShippingRateInputSchema as aa, storeApiOrderSchema as ab, updateCartItemInputSchema as ac, updateCustomerInputSchema as ad, handleApiResponse as b, handlePaginatedApiResponse as c, type Pagination as d, calculatePagination as e, type WooCommerceApiErrorCode as f, type BaseReportableData as g, handleApiData as h, isZodError as i, type ValidationReportableData as j, type WooCommerceDataValidationErrorOptions as k, type AddItemsResult as l, type AddToCartInput as m, type BatchResponse as n, type Cart as o, type CartAPI as p, type CartExtensionsInput as q, type CartItem as r, setupErrorInterceptor as s, type CartItemImage as t, type Checkout as u, type CheckoutAPI as v, type CheckoutInput as w, type CouponInput as x, type OrdersAPI as y, type Product as z };
|
package/dist/utils/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CartHeadersAdapter } from '../types-
|
|
2
|
-
export { P as PaginatedResponse, d as Pagination, R as ResponseOptions, V as ValidationMode, e as calculatePagination, b as handleApiResponse, c as handlePaginatedApiResponse, i as isZodError } from '../types-
|
|
1
|
+
import { C as CartHeadersAdapter } from '../types-Tf-Yd0qB.mjs';
|
|
2
|
+
export { P as PaginatedResponse, d as Pagination, R as ResponseOptions, V as ValidationMode, e as calculatePagination, b as handleApiResponse, c as handlePaginatedApiResponse, i as isZodError } from '../types-Tf-Yd0qB.mjs';
|
|
3
3
|
import { AxiosResponse, AxiosInstance } from 'axios';
|
|
4
4
|
import '@atomic-solutions/errors';
|
|
5
5
|
import 'zod';
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CartHeadersAdapter } from '../types-
|
|
2
|
-
export { P as PaginatedResponse, d as Pagination, R as ResponseOptions, V as ValidationMode, e as calculatePagination, b as handleApiResponse, c as handlePaginatedApiResponse, i as isZodError } from '../types-
|
|
1
|
+
import { C as CartHeadersAdapter } from '../types-Tf-Yd0qB.js';
|
|
2
|
+
export { P as PaginatedResponse, d as Pagination, R as ResponseOptions, V as ValidationMode, e as calculatePagination, b as handleApiResponse, c as handlePaginatedApiResponse, i as isZodError } from '../types-Tf-Yd0qB.js';
|
|
3
3
|
import { AxiosResponse, AxiosInstance } from 'axios';
|
|
4
4
|
import '@atomic-solutions/errors';
|
|
5
5
|
import 'zod';
|