Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@shopify/ui-extensions

Package Overview
Dependencies
Maintainers
0
Versions
682
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shopify/ui-extensions - npm Package Compare versions

Comparing version 0.0.0-unstable-20241217172221 to 0.0.0-unstable-20241217220349

2

build/ts/surfaces/point-of-sale/api.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc