@shopify/hydrogen 2026.1.4 → 2026.4.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.
- package/dist/customer-account-api-types.d.ts +23 -1
- package/dist/customer-account.schema.json +1 -1
- package/dist/development/index.cjs +35 -37
- package/dist/development/index.cjs.map +1 -1
- package/dist/development/index.js +35 -37
- package/dist/development/index.js.map +1 -1
- package/dist/oxygen/index.d.ts +62 -9
- package/dist/oxygen/index.js +21 -35
- package/dist/production/index.cjs +24 -24
- package/dist/production/index.cjs.map +1 -1
- package/dist/production/index.d.cts +109 -114
- package/dist/production/index.d.ts +109 -114
- package/dist/production/index.js +24 -24
- package/dist/production/index.js.map +1 -1
- package/dist/storefront-api-types.d.ts +1467 -443
- package/dist/storefront.schema.json +1 -1
- package/dist/vite/request-events.d.ts +61 -1
- package/package.json +4 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE IS AUTO-GENERATED, DO NOT EDIT
|
|
3
|
-
* Based on Customer Account API 2026-
|
|
3
|
+
* Based on Customer Account API 2026-04
|
|
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
|
*/
|
|
@@ -2906,6 +2906,8 @@ export type DraftOrder = Node & {
|
|
|
2906
2906
|
currencyCode: CurrencyCode;
|
|
2907
2907
|
/** The customer who placed the order. */
|
|
2908
2908
|
customer?: Maybe<Customer>;
|
|
2909
|
+
/** List of discounts applied to the draft order. */
|
|
2910
|
+
discountApplications: DiscountApplicationConnection;
|
|
2909
2911
|
/** The discount information for the draft order. */
|
|
2910
2912
|
discountInformation: DraftOrderDiscountInformation;
|
|
2911
2913
|
/** The email address of the customer, which is used to send notifications to. */
|
|
@@ -2965,11 +2967,21 @@ export type DraftOrder = Node & {
|
|
|
2965
2967
|
updatedAt: Scalars['DateTime']['output'];
|
|
2966
2968
|
};
|
|
2967
2969
|
|
|
2970
|
+
/** A draft order for the customer. Any fields related to money are in the presentment currency. Apps using the Customer Account API must meet the protected customer data [requirements](https://shopify.dev/docs/apps/launch/protected-customer-data). */
|
|
2971
|
+
export type DraftOrderDiscountApplicationsArgs = {
|
|
2972
|
+
after?: InputMaybe<Scalars['String']['input']>;
|
|
2973
|
+
before?: InputMaybe<Scalars['String']['input']>;
|
|
2974
|
+
first?: InputMaybe<Scalars['Int']['input']>;
|
|
2975
|
+
last?: InputMaybe<Scalars['Int']['input']>;
|
|
2976
|
+
reverse?: InputMaybe<Scalars['Boolean']['input']>;
|
|
2977
|
+
};
|
|
2978
|
+
|
|
2968
2979
|
/** A draft order for the customer. Any fields related to money are in the presentment currency. Apps using the Customer Account API must meet the protected customer data [requirements](https://shopify.dev/docs/apps/launch/protected-customer-data). */
|
|
2969
2980
|
export type DraftOrderLineItemsArgs = {
|
|
2970
2981
|
after?: InputMaybe<Scalars['String']['input']>;
|
|
2971
2982
|
before?: InputMaybe<Scalars['String']['input']>;
|
|
2972
2983
|
first?: InputMaybe<Scalars['Int']['input']>;
|
|
2984
|
+
flattenComponents?: InputMaybe<Scalars['Boolean']['input']>;
|
|
2973
2985
|
last?: InputMaybe<Scalars['Int']['input']>;
|
|
2974
2986
|
reverse?: InputMaybe<Scalars['Boolean']['input']>;
|
|
2975
2987
|
};
|
|
@@ -3037,6 +3049,10 @@ export type DraftOrderConnection = {
|
|
|
3037
3049
|
/** The discount information associated with a draft order. */
|
|
3038
3050
|
export type DraftOrderDiscountInformation = {
|
|
3039
3051
|
__typename?: 'DraftOrderDiscountInformation';
|
|
3052
|
+
/** The discount information for the draft order, including line_level discount applications. */
|
|
3053
|
+
allAppliedDiscounts: Array<OrderAllDiscounts>;
|
|
3054
|
+
/** The order level discount information for the draft order. */
|
|
3055
|
+
allOrderLevelAppliedDiscounts: Array<OrderAllDiscounts>;
|
|
3040
3056
|
/** The order-level discount applied to the draft order. */
|
|
3041
3057
|
appliedDiscount?: Maybe<DraftOrderAppliedDiscount>;
|
|
3042
3058
|
/** The total discounts applied to the draft order. */
|
|
@@ -3055,6 +3071,12 @@ export type DraftOrderEdge = {
|
|
|
3055
3071
|
/** A line item included in a draft order. */
|
|
3056
3072
|
export type DraftOrderLineItem = Node & {
|
|
3057
3073
|
__typename?: 'DraftOrderLineItem';
|
|
3074
|
+
/** The discounted total divided by the quantity, resulting in an average per-unit price reduction. */
|
|
3075
|
+
approximateDiscountedUnitPrice: MoneyV2;
|
|
3076
|
+
/** The list of components for this draft order line item. */
|
|
3077
|
+
components: Array<DraftOrderLineItem>;
|
|
3078
|
+
/** List of discounts allocated to the draft order line item. */
|
|
3079
|
+
discountAllocations: Array<DiscountAllocation>;
|
|
3058
3080
|
/** The discount information for the draft order line item. */
|
|
3059
3081
|
discountInformation: DraftOrderLineItemDiscountInformation;
|
|
3060
3082
|
/** The total price of the line item after discounts have been applied. */
|