@shopify/hydrogen 2025.10.0 → 2026.1.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.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * THIS FILE IS AUTO-GENERATED, DO NOT EDIT
3
- * Based on Storefront API 2025-10
3
+ * Based on Storefront API 2026-01
4
4
  * If changes need to happen to the types defined in this file, then generally the Storefront API needs to update. After it's updated, you can run `npm run graphql-types`.
5
5
  * Except custom Scalars, which are defined in the `codegen.ts` file
6
6
  */
@@ -1335,6 +1335,8 @@ export type CartErrorCode =
1335
1335
  | 'BUYER_CANNOT_PURCHASE_FOR_COMPANY_LOCATION'
1336
1336
  /** The cart is too large to save. */
1337
1337
  | 'CART_TOO_LARGE'
1338
+ /** The specified gift card recipient is invalid. */
1339
+ | 'GIFT_CARD_RECIPIENT_INVALID'
1338
1340
  /** The input value is invalid. */
1339
1341
  | 'INVALID'
1340
1342
  /** Company location not found or not allowed. */
@@ -1379,6 +1381,8 @@ export type CartErrorCode =
1379
1381
  | 'NOTE_TOO_LONG'
1380
1382
  /** Only one delivery address can be selected. */
1381
1383
  | 'ONLY_ONE_DELIVERY_ADDRESS_CAN_BE_SELECTED'
1384
+ /** Cannot reference existing parent lines by variant_id. */
1385
+ | 'PARENT_LINE_INVALID_REFERENCE'
1382
1386
  /** Parent line nesting is too deep or circular. */
1383
1387
  | 'PARENT_LINE_NESTING_TOO_DEEP'
1384
1388
  /** Parent line not found. */
@@ -1533,7 +1537,12 @@ export type CartInput = {
1533
1537
  note?: InputMaybe<Scalars['String']['input']>;
1534
1538
  };
1535
1539
 
1536
- /** The input fields for a cart metafield value to set. */
1540
+ /**
1541
+ * The input fields for a cart metafield value to set.
1542
+ *
1543
+ * Cart metafields will be copied to order metafields at order creation time if there is a matching order metafield definition with the [`cart to order copyable`](https://shopify.dev/docs/apps/build/metafields/use-metafield-capabilities#cart-to-order-copyable) capability enabled.
1544
+ *
1545
+ */
1537
1546
  export type CartInputMetafieldInput = {
1538
1547
  /** The key name of the metafield. */
1539
1548
  key: Scalars['String']['input'];
@@ -3295,6 +3304,8 @@ export type Customer = HasMetafields & {
3295
3304
  acceptsMarketing: Scalars['Boolean']['output'];
3296
3305
  /** A list of addresses for the customer. */
3297
3306
  addresses: MailingAddressConnection;
3307
+ /** The URL of the customer's avatar image. */
3308
+ avatarUrl?: Maybe<Scalars['String']['output']>;
3298
3309
  /** The date and time when the customer was created. */
3299
3310
  createdAt: Scalars['DateTime']['output'];
3300
3311
  /** The customer’s default address. */
@@ -3319,6 +3330,8 @@ export type Customer = HasMetafields & {
3319
3330
  orders: OrderConnection;
3320
3331
  /** The customer’s phone number. */
3321
3332
  phone?: Maybe<Scalars['String']['output']>;
3333
+ /** The social login provider associated with the customer. */
3334
+ socialLoginProvider?: Maybe<SocialLoginProvider>;
3322
3335
  /**
3323
3336
  * A comma separated list of tags that have been added to the customer.
3324
3337
  * Additional access scope required: unauthenticated_read_customer_tags.
@@ -5442,13 +5455,24 @@ export type Mutation = {
5442
5455
  cartLinesRemove?: Maybe<CartLinesRemovePayload>;
5443
5456
  /** Updates one or more merchandise lines on a cart. */
5444
5457
  cartLinesUpdate?: Maybe<CartLinesUpdatePayload>;
5445
- /** Deletes a cart metafield. */
5458
+ /**
5459
+ * Deletes a cart metafield.
5460
+ *
5461
+ * > Note:
5462
+ * > This mutation won't trigger [Shopify Functions](https://shopify.dev/docs/api/functions). The changes won't be available to Shopify Functions until the buyer goes to checkout or performs another cart interaction that triggers the functions.
5463
+ *
5464
+ */
5446
5465
  cartMetafieldDelete?: Maybe<CartMetafieldDeletePayload>;
5447
5466
  /**
5448
5467
  * Sets cart metafield values. Cart metafield values will be set regardless if they were previously created or not.
5449
5468
  *
5450
5469
  * Allows a maximum of 25 cart metafields to be set at a time.
5451
5470
  *
5471
+ * Cart metafields will be copied to order metafields at order creation time if there is a matching order metafield definition with the [`cart to order copyable`](https://shopify.dev/docs/apps/build/metafields/use-metafield-capabilities#cart-to-order-copyable) capability enabled.
5472
+ *
5473
+ * > Note:
5474
+ * > This mutation won't trigger [Shopify Functions](https://shopify.dev/docs/api/functions). The changes won't be available to Shopify Functions until the buyer goes to checkout or performs another cart interaction that triggers the functions.
5475
+ *
5452
5476
  */
5453
5477
  cartMetafieldsSet?: Maybe<CartMetafieldsSetPayload>;
5454
5478
  /** Updates the note on the cart. */
@@ -5590,7 +5614,7 @@ export type MutationCartDeliveryAddressesUpdateArgs = {
5590
5614
  /** The schema’s entry-point for mutations. This acts as the public, top-level API from which all mutation queries must start. */
5591
5615
  export type MutationCartDiscountCodesUpdateArgs = {
5592
5616
  cartId: Scalars['ID']['input'];
5593
- discountCodes?: InputMaybe<Array<Scalars['String']['input']>>;
5617
+ discountCodes: Array<Scalars['String']['input']>;
5594
5618
  };
5595
5619
 
5596
5620
  /** The schema’s entry-point for mutations. This acts as the public, top-level API from which all mutation queries must start. */
@@ -8127,6 +8151,8 @@ export type Shop = HasMetafields &
8127
8151
  __typename?: 'Shop';
8128
8152
  /** The shop's branding configuration. */
8129
8153
  brand?: Maybe<Brand>;
8154
+ /** Translations for customer accounts. */
8155
+ customerAccountTranslations?: Maybe<Array<Translation>>;
8130
8156
  /** The URL for the customer account (only present if shop has a customer account vanity domain). */
8131
8157
  customerAccountUrl?: Maybe<Scalars['String']['output']>;
8132
8158
  /** A description of the shop. */
@@ -8155,6 +8181,8 @@ export type Shop = HasMetafields &
8155
8181
  shipsToCountries: Array<CountryCode>;
8156
8182
  /** The Shop Pay Installments pricing information for the shop. */
8157
8183
  shopPayInstallmentsPricing?: Maybe<ShopPayInstallmentsPricing>;
8184
+ /** The social login providers for customer accounts. */
8185
+ socialLoginProviders: Array<SocialLoginProvider>;
8158
8186
  /** The shop’s subscription policy. */
8159
8187
  subscriptionPolicy?: Maybe<ShopPolicyWithDefault>;
8160
8188
  /** The shop’s terms of service. */
@@ -8716,6 +8744,13 @@ export type SitemapType =
8716
8744
  /** Products present in the sitemap. */
8717
8745
  | 'PRODUCT';
8718
8746
 
8747
+ /** A social login provider for customer accounts. */
8748
+ export type SocialLoginProvider = {
8749
+ __typename?: 'SocialLoginProvider';
8750
+ /** The handle of the social login provider. */
8751
+ handle: Scalars['String']['output'];
8752
+ };
8753
+
8719
8754
  /**
8720
8755
  * The availability of a product variant at a particular location.
8721
8756
  * Local pick-up must be enabled in the store's shipping settings, otherwise this will return an empty result.
@@ -8973,6 +9008,15 @@ export type Trackable = {
8973
9008
  trackingParameters?: Maybe<Scalars['String']['output']>;
8974
9009
  };
8975
9010
 
9011
+ /** Translation represents a translation of a key-value pair. */
9012
+ export type Translation = {
9013
+ __typename?: 'Translation';
9014
+ /** The key of the translation. */
9015
+ key: Scalars['String']['output'];
9016
+ /** The value of the translation. */
9017
+ value: Scalars['String']['output'];
9018
+ };
9019
+
8976
9020
  /**
8977
9021
  * The measurement used to calculate a unit price for a product variant (e.g. $9.99 / 100ml).
8978
9022
  *