commerce-kit 0.0.28 → 0.0.29

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.ts CHANGED
@@ -647,6 +647,14 @@ declare const getAddressSchema: (tr: {
647
647
  email?: string | null | undefined;
648
648
  }>;
649
649
  type AddressSchema = TypeOf<ReturnType<typeof getAddressSchema>>;
650
+ /**
651
+ * @internal
652
+ */
653
+ declare const updatePaymentIntent: ({ paymentIntentId, data, clearTaxCalculation, }: {
654
+ paymentIntentId: string;
655
+ data: Stripe.PaymentIntentUpdateParams;
656
+ clearTaxCalculation?: boolean;
657
+ }) => Promise<Stripe.Response<Stripe.PaymentIntent>>;
650
658
  declare const calculateCartTotalPossiblyWithTax: (cart: {
651
659
  cart: {
652
660
  amount: number;
@@ -753,4 +761,4 @@ declare const provider: ({ tags, revalidate, cache, tagPrefix, secretKey, }: {
753
761
  secretKey: string | undefined;
754
762
  }) => Stripe;
755
763
 
756
- export { type AddressSchema, type Cart, MappedCart, type ProductsFromMetadata, accountGet, calculateCartTotalNet, calculateCartTotalNetWithoutShipping, calculateCartTotalPossiblyWithTax, cartAdd, cartAddOptimistic, cartChangeQuantity, cartCount, cartCreate, cartGet, cartSaveBillingAddress, cartSaveEmail, cartSaveShipping, cartSaveTax, cartSetQuantity, cartUpdateQuantity, categoryBrowse, contextGet, fileGet, getAddressSchema, getCartWithProductsById, getProductsFromCart, getProductsFromMetadata, orderGet, productBrowse, productGet, productGetById, productReviewAdd, productReviewBrowse, provider, shippingBrowse, shippingGet, taxDefaultGet };
764
+ export { type AddressSchema, type Cart, MappedCart, type ProductsFromMetadata, accountGet, calculateCartTotalNet, calculateCartTotalNetWithoutShipping, calculateCartTotalPossiblyWithTax, cartAdd, cartAddOptimistic, cartChangeQuantity, cartCount, cartCreate, cartGet, cartSaveBillingAddress, cartSaveEmail, cartSaveShipping, cartSaveTax, cartSetQuantity, cartUpdateQuantity, categoryBrowse, contextGet, fileGet, getAddressSchema, getCartWithProductsById, getProductsFromCart, getProductsFromMetadata, orderGet, productBrowse, productGet, productGetById, productReviewAdd, productReviewBrowse, provider, shippingBrowse, shippingGet, taxDefaultGet, updatePaymentIntent };
package/dist/index.js CHANGED
@@ -7,4 +7,4 @@ import{z as c}from"zod";function S(t,e){if(!t)throw new Error(e)}var z=async t=>
7
7
  `}async function he(t){if(!T)return null;let{storeId:e}=await p();return await T`
8
8
  insert into reviews (store_id, product_id, author, email, content, rating, created_at, updated_at)
9
9
  values (${e}, ${t.productId}, ${t.author}, ${t.email}, ${t.content}, ${t.rating}, now(), now())
10
- `}var xe=p;export{se as accountGet,Ct as calculateCartTotalNet,Rt as calculateCartTotalNetWithoutShipping,F as calculateCartTotalPossiblyWithTax,te as cartAdd,ee as cartAddOptimistic,de as cartChangeQuantity,ge as cartCount,yt as cartCreate,B as cartGet,fe as cartSaveBillingAddress,pe as cartSaveEmail,me as cartSaveShipping,le as cartSaveTax,re as cartSetQuantity,gt as cartUpdateQuantity,ie as categoryBrowse,xe as contextGet,oe as fileGet,ue as getAddressSchema,at as getCartWithProductsById,nt as getProductsFromCart,V as getProductsFromMetadata,ce as orderGet,ht as productBrowse,ne as productGet,Q as productGetById,he as productReviewAdd,ye as productReviewBrowse,m as provider,ae as shippingBrowse,N as shippingGet,vt as taxDefaultGet};
10
+ `}var xe=p;export{se as accountGet,Ct as calculateCartTotalNet,Rt as calculateCartTotalNetWithoutShipping,F as calculateCartTotalPossiblyWithTax,te as cartAdd,ee as cartAddOptimistic,de as cartChangeQuantity,ge as cartCount,yt as cartCreate,B as cartGet,fe as cartSaveBillingAddress,pe as cartSaveEmail,me as cartSaveShipping,le as cartSaveTax,re as cartSetQuantity,gt as cartUpdateQuantity,ie as categoryBrowse,xe as contextGet,oe as fileGet,ue as getAddressSchema,at as getCartWithProductsById,nt as getProductsFromCart,V as getProductsFromMetadata,ce as orderGet,ht as productBrowse,ne as productGet,Q as productGetById,he as productReviewAdd,ye as productReviewBrowse,m as provider,ae as shippingBrowse,N as shippingGet,vt as taxDefaultGet,I as updatePaymentIntent};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package",
3
3
  "name": "commerce-kit",
4
- "version": "0.0.28",
4
+ "version": "0.0.29",
5
5
  "type": "module",
6
6
  "license": "AGPL-3.0-only",
7
7
  "keywords": [