@shopify/hydrogen 2023.7.3 → 2023.7.4
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/development/index.cjs +120 -40
- package/dist/development/index.cjs.map +1 -1
- package/dist/development/index.js +116 -43
- package/dist/development/index.js.map +1 -1
- package/dist/production/index.cjs +68 -60
- package/dist/production/index.cjs.map +1 -1
- package/dist/production/index.d.cts +22 -3
- package/dist/production/index.d.ts +22 -3
- package/dist/production/index.js +35 -34
- package/dist/production/index.js.map +1 -1
- package/dist/storefront-api-types.d.ts +18 -17
- package/dist/storefront.schema.json +1 -1
- package/package.json +4 -3
|
@@ -534,7 +534,7 @@ export type Cart = HasMetafields &
|
|
|
534
534
|
attribute?: Maybe<Attribute>;
|
|
535
535
|
/** The attributes associated with the cart. Attributes are represented as key-value pairs. */
|
|
536
536
|
attributes: Array<Attribute>;
|
|
537
|
-
/** Information about the buyer that
|
|
537
|
+
/** Information about the buyer that's interacting with the cart. */
|
|
538
538
|
buyerIdentity: CartBuyerIdentity;
|
|
539
539
|
/** The URL of the checkout for the cart. */
|
|
540
540
|
checkoutUrl: Scalars['URL'];
|
|
@@ -579,7 +579,7 @@ export type Cart = HasMetafields &
|
|
|
579
579
|
*
|
|
580
580
|
*/
|
|
581
581
|
metafields: Array<Maybe<Metafield>>;
|
|
582
|
-
/** A note that
|
|
582
|
+
/** A note that's associated with the cart. For example, the note can be a personalized message to the buyer. */
|
|
583
583
|
note?: Maybe<Scalars['String']>;
|
|
584
584
|
/** The total number of items in the cart. */
|
|
585
585
|
totalQuantity: Scalars['Int'];
|
|
@@ -683,9 +683,9 @@ export type CartBuyerIdentity = {
|
|
|
683
683
|
*
|
|
684
684
|
*/
|
|
685
685
|
deliveryAddressPreferences: Array<DeliveryAddress>;
|
|
686
|
-
/** The email address of the buyer that
|
|
686
|
+
/** The email address of the buyer that's interacting with the cart. */
|
|
687
687
|
email?: Maybe<Scalars['String']>;
|
|
688
|
-
/** The phone number of the buyer that
|
|
688
|
+
/** The phone number of the buyer that's interacting with the cart. */
|
|
689
689
|
phone?: Maybe<Scalars['String']>;
|
|
690
690
|
/**
|
|
691
691
|
* A set of wallet preferences tied to the buyer that is interacting with the cart.
|
|
@@ -1033,7 +1033,7 @@ export type CartInput = {
|
|
|
1033
1033
|
lines?: InputMaybe<Array<CartLineInput>>;
|
|
1034
1034
|
/** The metafields to associate with this cart. */
|
|
1035
1035
|
metafields?: InputMaybe<Array<CartInputMetafieldInput>>;
|
|
1036
|
-
/** A note that
|
|
1036
|
+
/** A note that's associated with the cart. For example, the note can be a personalized message to the buyer. */
|
|
1037
1037
|
note?: InputMaybe<Scalars['String']>;
|
|
1038
1038
|
};
|
|
1039
1039
|
|
|
@@ -1345,7 +1345,7 @@ export type Checkout = Node & {
|
|
|
1345
1345
|
createdAt: Scalars['DateTime'];
|
|
1346
1346
|
/** The currency code for the checkout. */
|
|
1347
1347
|
currencyCode: CurrencyCode;
|
|
1348
|
-
/** A list of extra information that
|
|
1348
|
+
/** A list of extra information that's added to the checkout. */
|
|
1349
1349
|
customAttributes: Array<Attribute>;
|
|
1350
1350
|
/** Discounts that have been applied on the checkout. */
|
|
1351
1351
|
discountApplications: DiscountApplicationConnection;
|
|
@@ -1361,7 +1361,7 @@ export type Checkout = Node & {
|
|
|
1361
1361
|
note?: Maybe<Scalars['String']>;
|
|
1362
1362
|
/** The resulting order from a paid checkout. */
|
|
1363
1363
|
order?: Maybe<Order>;
|
|
1364
|
-
/** The Order Status Page for this Checkout, null when checkout
|
|
1364
|
+
/** The Order Status Page for this Checkout, null when checkout isn't completed. */
|
|
1365
1365
|
orderStatusUrl?: Maybe<Scalars['URL']>;
|
|
1366
1366
|
/** The amount left to be paid. This is equal to the cost of the line items, taxes, and shipping, minus discounts and gift cards. */
|
|
1367
1367
|
paymentDue: MoneyV2;
|
|
@@ -1387,7 +1387,7 @@ export type Checkout = Node & {
|
|
|
1387
1387
|
*
|
|
1388
1388
|
*/
|
|
1389
1389
|
shippingDiscountAllocations: Array<DiscountAllocation>;
|
|
1390
|
-
/** Once a shipping rate is selected by the customer it
|
|
1390
|
+
/** Once a shipping rate is selected by the customer it's transitioned to a `shipping_line` object. */
|
|
1391
1391
|
shippingLine?: Maybe<ShippingRate>;
|
|
1392
1392
|
/** The price at checkout before shipping and taxes. */
|
|
1393
1393
|
subtotalPrice: MoneyV2;
|
|
@@ -1450,7 +1450,7 @@ export type CheckoutAttributesUpdateV2Input = {
|
|
|
1450
1450
|
*
|
|
1451
1451
|
*/
|
|
1452
1452
|
allowPartialAddresses?: InputMaybe<Scalars['Boolean']>;
|
|
1453
|
-
/** A list of extra information that
|
|
1453
|
+
/** A list of extra information that's added to the checkout. */
|
|
1454
1454
|
customAttributes?: InputMaybe<Array<AttributeInput>>;
|
|
1455
1455
|
/** The text of an optional note that a shop owner can attach to the checkout. */
|
|
1456
1456
|
note?: InputMaybe<Scalars['String']>;
|
|
@@ -1545,7 +1545,7 @@ export type CheckoutCreateInput = {
|
|
|
1545
1545
|
allowPartialAddresses?: InputMaybe<Scalars['Boolean']>;
|
|
1546
1546
|
/** The identity of the customer associated with the checkout. */
|
|
1547
1547
|
buyerIdentity?: InputMaybe<CheckoutBuyerIdentityInput>;
|
|
1548
|
-
/** A list of extra information that
|
|
1548
|
+
/** A list of extra information that's added to the checkout. */
|
|
1549
1549
|
customAttributes?: InputMaybe<Array<AttributeInput>>;
|
|
1550
1550
|
/** The email with which the customer wants to checkout. */
|
|
1551
1551
|
email?: InputMaybe<Scalars['String']>;
|
|
@@ -3857,7 +3857,7 @@ export type Image = {
|
|
|
3857
3857
|
__typename?: 'Image';
|
|
3858
3858
|
/** A word or phrase to share the nature or contents of an image. */
|
|
3859
3859
|
altText?: Maybe<Scalars['String']>;
|
|
3860
|
-
/** The original height of the image in pixels. Returns `null` if the image
|
|
3860
|
+
/** The original height of the image in pixels. Returns `null` if the image isn't hosted by Shopify. */
|
|
3861
3861
|
height?: Maybe<Scalars['Int']>;
|
|
3862
3862
|
/** A unique ID for the image. */
|
|
3863
3863
|
id?: Maybe<Scalars['ID']>;
|
|
@@ -3878,7 +3878,7 @@ export type Image = {
|
|
|
3878
3878
|
* The location of the transformed image as a URL.
|
|
3879
3879
|
*
|
|
3880
3880
|
* All transformation arguments are considered "best-effort". If they can be applied to an image, they will be.
|
|
3881
|
-
* Otherwise any transformations which an image type
|
|
3881
|
+
* Otherwise any transformations which an image type doesn't support will be ignored.
|
|
3882
3882
|
*
|
|
3883
3883
|
* @deprecated Use `url(transform:)` instead
|
|
3884
3884
|
*/
|
|
@@ -3894,7 +3894,7 @@ export type Image = {
|
|
|
3894
3894
|
*
|
|
3895
3895
|
*/
|
|
3896
3896
|
url: Scalars['URL'];
|
|
3897
|
-
/** The original width of the image in pixels. Returns `null` if the image
|
|
3897
|
+
/** The original width of the image in pixels. Returns `null` if the image isn't hosted by Shopify. */
|
|
3898
3898
|
width?: Maybe<Scalars['Int']>;
|
|
3899
3899
|
};
|
|
3900
3900
|
|
|
@@ -5206,8 +5206,9 @@ export type Mutation = {
|
|
|
5206
5206
|
* [`customerReset`](https://shopify.dev/api/storefront/latest/mutations/customerReset) mutation to reset the
|
|
5207
5207
|
* customer password.
|
|
5208
5208
|
*
|
|
5209
|
-
* This mutation is throttled by IP. With
|
|
5209
|
+
* This mutation is throttled by IP. With private access,
|
|
5210
5210
|
* you can provide a [`Shopify-Storefront-Buyer-IP`](https://shopify.dev/api/usage/authentication#optional-ip-header) instead of the request IP.
|
|
5211
|
+
* The header is case-sensitive and must be sent as `Shopify-Storefront-Buyer-IP`.
|
|
5211
5212
|
*
|
|
5212
5213
|
* Make sure that the value provided to `Shopify-Storefront-Buyer-IP` is trusted. Unthrottled access to this
|
|
5213
5214
|
* mutation presents a security risk.
|
|
@@ -5523,7 +5524,7 @@ export type Order = HasMetafields &
|
|
|
5523
5524
|
canceledAt?: Maybe<Scalars['DateTime']>;
|
|
5524
5525
|
/** The code of the currency used for the payment. */
|
|
5525
5526
|
currencyCode: CurrencyCode;
|
|
5526
|
-
/** The subtotal of line items and their discounts, excluding line items that have been removed. Does not contain order-level discounts, duties, shipping costs, or shipping discounts. Taxes
|
|
5527
|
+
/** The subtotal of line items and their discounts, excluding line items that have been removed. Does not contain order-level discounts, duties, shipping costs, or shipping discounts. Taxes aren't included unless the order is a taxes-included order. */
|
|
5527
5528
|
currentSubtotalPrice: MoneyV2;
|
|
5528
5529
|
/** The total cost of duties for the order, including refunds. */
|
|
5529
5530
|
currentTotalDuties?: Maybe<MoneyV2>;
|
|
@@ -5751,7 +5752,7 @@ export type OrderLineItem = {
|
|
|
5751
5752
|
discountAllocations: Array<DiscountAllocation>;
|
|
5752
5753
|
/** The total price of the line item, including discounts, and displayed in the presentment currency. */
|
|
5753
5754
|
discountedTotalPrice: MoneyV2;
|
|
5754
|
-
/** The total price of the line item, not including any discounts. The total price is calculated using the original unit price multiplied by the quantity, and it
|
|
5755
|
+
/** The total price of the line item, not including any discounts. The total price is calculated using the original unit price multiplied by the quantity, and it's displayed in the presentment currency. */
|
|
5755
5756
|
originalTotalPrice: MoneyV2;
|
|
5756
5757
|
/** The number of products variants associated to the line item. */
|
|
5757
5758
|
quantity: Scalars['Int'];
|
|
@@ -7642,7 +7643,7 @@ export type TokenizedPaymentInputV3 = {
|
|
|
7642
7643
|
paymentAmount: MoneyInput;
|
|
7643
7644
|
/** A simple string or JSON containing the required payment data for the tokenized payment. */
|
|
7644
7645
|
paymentData: Scalars['String'];
|
|
7645
|
-
/** Whether to execute the payment in test mode, if possible. Test mode
|
|
7646
|
+
/** Whether to execute the payment in test mode, if possible. Test mode isn't supported in production stores. Defaults to `false`. */
|
|
7646
7647
|
test?: InputMaybe<Scalars['Boolean']>;
|
|
7647
7648
|
/** The type of payment token. */
|
|
7648
7649
|
type: PaymentTokenType;
|