@shopify/ui-extensions
Advanced tools
Comparing version 0.0.0-unstable-20241217172221 to 0.0.0-unstable-20241217220349
@@ -18,3 +18,3 @@ export type { CartApi, CartDiscountType, CartApiContent, LineItemDiscountType, } from './render/api/cart-api/cart-api'; | ||
export type { ShowToastOptions, ToastApiContent, ToastApi, } from './render/api/toast-api/toast-api'; | ||
export type { Cart, Customer, LineItem, Discount, SetLineItemPropertiesInput, SetLineItemDiscountInput, LineItemDiscount, CustomSale, Address, } from './types/cart'; | ||
export type { Cart, CartUpdateInput, Customer, LineItem, Discount, SetLineItemPropertiesInput, SetLineItemDiscountInput, LineItemDiscount, CustomSale, Address, } from './types/cart'; | ||
export type { MultipleResourceResult } from './types/multiple-resource-result'; | ||
@@ -21,0 +21,0 @@ export type { PaginatedResult } from './types/paginated-result'; |
import type { RemoteSubscribable } from '@remote-ui/async-subscription'; | ||
import type { Address, Cart, Customer, CustomSale, SetLineItemDiscountInput, SetLineItemPropertiesInput } from '../../../types/cart'; | ||
import type { Address, Cart, CartUpdateInput, Customer, CustomSale, SetLineItemDiscountInput, SetLineItemPropertiesInput } from '../../../types/cart'; | ||
/** | ||
@@ -18,2 +18,7 @@ * Access and modify the merchant’s current cart. | ||
subscribable: RemoteSubscribable<Cart>; | ||
/** Bulk update the cart | ||
* @param cartState the cart state to set | ||
* @returns the updated cart | ||
*/ | ||
bulkCartUpdate(cartState: CartUpdateInput): Promise<Cart>; | ||
/** Apply a cart level discount | ||
@@ -20,0 +25,0 @@ * @param type the type of discount applied (example: 'Percentage') |
@@ -13,8 +13,5 @@ import { CountryCode } from './country-code'; | ||
} | ||
export type CartUpdateInput = Omit<Cart, 'subtotal' | 'taxTotal' | 'grandTotal'>; | ||
export interface Customer { | ||
id: number; | ||
email?: string; | ||
firstName?: string; | ||
lastName?: string; | ||
note?: string; | ||
} | ||
@@ -21,0 +18,0 @@ export interface LineItem { |
{ | ||
"name": "@shopify/ui-extensions", | ||
"version": "0.0.0-unstable-20241217172221", | ||
"version": "0.0.0-unstable-20241217220349", | ||
"scripts": { | ||
@@ -5,0 +5,0 @@ "docs:admin": "bash ./docs/surfaces/admin/build-docs.sh", |
@@ -85,2 +85,3 @@ export type { | ||
Cart, | ||
CartUpdateInput, | ||
Customer, | ||
@@ -87,0 +88,0 @@ LineItem, |
@@ -5,2 +5,3 @@ import type {RemoteSubscribable} from '@remote-ui/async-subscription'; | ||
Cart, | ||
CartUpdateInput, | ||
Customer, | ||
@@ -31,2 +32,8 @@ CustomSale, | ||
/** Bulk update the cart | ||
* @param cartState the cart state to set | ||
* @returns the updated cart | ||
*/ | ||
bulkCartUpdate(cartState: CartUpdateInput): Promise<Cart>; | ||
/** Apply a cart level discount | ||
@@ -33,0 +40,0 @@ * @param type the type of discount applied (example: 'Percentage') |
@@ -15,8 +15,9 @@ import {CountryCode} from './country-code'; | ||
export type CartUpdateInput = Omit< | ||
Cart, | ||
'subtotal' | 'taxTotal' | 'grandTotal' | ||
>; | ||
export interface Customer { | ||
id: number; | ||
email?: string; | ||
firstName?: string; | ||
lastName?: string; | ||
note?: string; | ||
} | ||
@@ -23,0 +24,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2365203
49165