@ehrenkind/shopify-lib 0.0.7 → 0.2.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.
Files changed (139) hide show
  1. package/README.md +2 -34
  2. package/dist/generated-api-types/2025-04/admin.generated.d.ts +283 -0
  3. package/dist/generated-api-types/2025-04/admin.generated.d.ts.map +1 -0
  4. package/dist/generated-api-types/2025-04/admin.generated.js +5 -0
  5. package/dist/generated-api-types/2025-04/admin.generated.js.map +1 -0
  6. package/dist/generated-api-types/2025-04/admin.types.d.ts +60044 -0
  7. package/dist/generated-api-types/2025-04/admin.types.d.ts.map +1 -0
  8. package/dist/generated-api-types/2025-04/admin.types.js +11451 -0
  9. package/dist/generated-api-types/2025-04/admin.types.js.map +1 -0
  10. package/dist/index.cjs +370 -41
  11. package/dist/index.cjs.map +1 -1
  12. package/dist/index.d.cts +328 -58
  13. package/dist/index.d.ts +6 -18874
  14. package/dist/index.d.ts.map +1 -0
  15. package/dist/index.js +6 -0
  16. package/dist/index.js.map +1 -0
  17. package/dist/index.mjs +368 -41
  18. package/dist/index.mjs.map +1 -1
  19. package/dist/mutations/customers/deleteCustomerById.d.ts +4 -0
  20. package/dist/mutations/customers/deleteCustomerById.d.ts.map +1 -0
  21. package/dist/mutations/customers/deleteCustomerById.js +38 -0
  22. package/dist/mutations/customers/deleteCustomerById.js.map +1 -0
  23. package/dist/mutations/customers/deleteCustomerById.mock.d.ts +4 -0
  24. package/dist/mutations/customers/deleteCustomerById.mock.d.ts.map +1 -0
  25. package/dist/mutations/customers/deleteCustomerById.mock.js +8 -0
  26. package/dist/mutations/customers/deleteCustomerById.mock.js.map +1 -0
  27. package/dist/mutations/customers/deleteCustomerById.test.d.ts +2 -0
  28. package/dist/mutations/customers/deleteCustomerById.test.d.ts.map +1 -0
  29. package/dist/mutations/customers/deleteCustomerById.test.js +10 -0
  30. package/dist/mutations/customers/deleteCustomerById.test.js.map +1 -0
  31. package/dist/mutations/productVariantsBulkUpdate/connectMetaObjectToProductVariant.d.ts +4 -0
  32. package/dist/mutations/productVariantsBulkUpdate/connectMetaObjectToProductVariant.d.ts.map +1 -0
  33. package/dist/mutations/productVariantsBulkUpdate/connectMetaObjectToProductVariant.js +56 -0
  34. package/dist/mutations/productVariantsBulkUpdate/connectMetaObjectToProductVariant.js.map +1 -0
  35. package/dist/mutations/productVariantsBulkUpdate/connectMetaObjectToProductVariant.mock.d.ts +3 -0
  36. package/dist/mutations/productVariantsBulkUpdate/connectMetaObjectToProductVariant.mock.d.ts.map +1 -0
  37. package/dist/mutations/productVariantsBulkUpdate/connectMetaObjectToProductVariant.mock.js +11 -0
  38. package/dist/mutations/productVariantsBulkUpdate/connectMetaObjectToProductVariant.mock.js.map +1 -0
  39. package/dist/mutations/productVariantsBulkUpdate/connectMetaObjectToProductVariant.test.d.ts +2 -0
  40. package/dist/mutations/productVariantsBulkUpdate/connectMetaObjectToProductVariant.test.d.ts.map +1 -0
  41. package/dist/mutations/productVariantsBulkUpdate/connectMetaObjectToProductVariant.test.js +11 -0
  42. package/dist/mutations/productVariantsBulkUpdate/connectMetaObjectToProductVariant.test.js.map +1 -0
  43. package/dist/queries/orders/getOrderById.d.ts +136 -0
  44. package/dist/queries/orders/getOrderById.d.ts.map +1 -0
  45. package/dist/queries/orders/getOrderById.js +125 -0
  46. package/dist/queries/orders/getOrderById.js.map +1 -0
  47. package/dist/queries/orders/getOrderById.mock.d.ts +82 -0
  48. package/dist/queries/orders/getOrderById.mock.d.ts.map +1 -0
  49. package/dist/queries/orders/getOrderById.mock.js +204 -0
  50. package/dist/queries/orders/getOrderById.mock.js.map +1 -0
  51. package/dist/queries/orders/getOrderById.queries.d.ts +3 -0
  52. package/dist/queries/orders/getOrderById.queries.d.ts.map +1 -0
  53. package/dist/queries/orders/getOrderById.queries.js +174 -0
  54. package/dist/queries/orders/getOrderById.queries.js.map +1 -0
  55. package/dist/queries/orders/getOrderById.test.d.ts +2 -0
  56. package/dist/queries/orders/getOrderById.test.d.ts.map +1 -0
  57. package/dist/queries/orders/getOrderById.test.js +46 -0
  58. package/dist/queries/orders/getOrderById.test.js.map +1 -0
  59. package/dist/queries/orders/getOrderByName.d.ts +72 -0
  60. package/dist/queries/orders/getOrderByName.d.ts.map +1 -0
  61. package/dist/queries/orders/getOrderByName.js +117 -0
  62. package/dist/queries/orders/getOrderByName.js.map +1 -0
  63. package/dist/queries/orders/getOrderByName.mock.d.ts +21 -0
  64. package/dist/queries/orders/getOrderByName.mock.d.ts.map +1 -0
  65. package/dist/queries/orders/getOrderByName.mock.js +55 -0
  66. package/dist/queries/orders/getOrderByName.mock.js.map +1 -0
  67. package/dist/queries/orders/getOrderByName.queries.d.ts +3 -0
  68. package/dist/queries/orders/getOrderByName.queries.d.ts.map +1 -0
  69. package/dist/queries/orders/getOrderByName.queries.js +335 -0
  70. package/dist/queries/orders/getOrderByName.queries.js.map +1 -0
  71. package/dist/queries/orders/getOrderByName.test.d.ts +2 -0
  72. package/dist/queries/orders/getOrderByName.test.d.ts.map +1 -0
  73. package/dist/queries/orders/getOrderByName.test.js +30 -0
  74. package/dist/queries/orders/getOrderByName.test.js.map +1 -0
  75. package/dist/queries/orders/getOrderPaymentDetails.d.ts +130 -0
  76. package/dist/queries/orders/getOrderPaymentDetails.d.ts.map +1 -0
  77. package/dist/queries/orders/getOrderPaymentDetails.js +45 -0
  78. package/dist/queries/orders/getOrderPaymentDetails.js.map +1 -0
  79. package/dist/queries/orders/getOrderPaymentDetails.mock.d.ts +12 -0
  80. package/dist/queries/orders/getOrderPaymentDetails.mock.d.ts.map +1 -0
  81. package/dist/queries/orders/getOrderPaymentDetails.mock.js +24 -0
  82. package/dist/queries/orders/getOrderPaymentDetails.mock.js.map +1 -0
  83. package/dist/queries/orders/getOrderPaymentDetails.queries.d.ts +2 -0
  84. package/dist/queries/orders/getOrderPaymentDetails.queries.d.ts.map +1 -0
  85. package/dist/queries/orders/getOrderPaymentDetails.queries.js +21 -0
  86. package/dist/queries/orders/getOrderPaymentDetails.queries.js.map +1 -0
  87. package/dist/queries/orders/getOrderPaymentDetails.test.d.ts +2 -0
  88. package/dist/queries/orders/getOrderPaymentDetails.test.d.ts.map +1 -0
  89. package/dist/queries/orders/getOrderPaymentDetails.test.js +19 -0
  90. package/dist/queries/orders/getOrderPaymentDetails.test.js.map +1 -0
  91. package/dist/queries/productVariants/getLeanProductVariants.d.ts +33 -0
  92. package/dist/queries/productVariants/getLeanProductVariants.d.ts.map +1 -0
  93. package/dist/queries/productVariants/getLeanProductVariants.js +81 -0
  94. package/dist/queries/productVariants/getLeanProductVariants.js.map +1 -0
  95. package/dist/queries/productVariants/getLeanProductVariants.mock.d.ts +3 -0
  96. package/dist/queries/productVariants/getLeanProductVariants.mock.d.ts.map +1 -0
  97. package/dist/queries/productVariants/getLeanProductVariants.mock.js +33 -0
  98. package/dist/queries/productVariants/getLeanProductVariants.mock.js.map +1 -0
  99. package/dist/queries/productVariants/getLeanProductVariants.test.d.ts +2 -0
  100. package/dist/queries/productVariants/getLeanProductVariants.test.d.ts.map +1 -0
  101. package/dist/queries/productVariants/getLeanProductVariants.test.js +38 -0
  102. package/dist/queries/productVariants/getLeanProductVariants.test.js.map +1 -0
  103. package/dist/utils/logger.d.ts +11 -0
  104. package/dist/utils/logger.d.ts.map +1 -0
  105. package/dist/utils/logger.js +50 -0
  106. package/dist/utils/logger.js.map +1 -0
  107. package/dist/utils/mswHandlers.d.ts +2 -0
  108. package/dist/utils/mswHandlers.d.ts.map +1 -0
  109. package/dist/utils/mswHandlers.js +46 -0
  110. package/dist/utils/mswHandlers.js.map +1 -0
  111. package/dist/utils/shopifyClient.d.ts +6 -0
  112. package/dist/utils/shopifyClient.d.ts.map +1 -0
  113. package/dist/utils/shopifyClient.js +82 -0
  114. package/dist/utils/shopifyClient.js.map +1 -0
  115. package/dist/utils/shopifyClient.mock.d.ts +3 -0
  116. package/dist/utils/shopifyClient.mock.d.ts.map +1 -0
  117. package/dist/utils/shopifyClient.mock.js +19 -0
  118. package/dist/utils/shopifyClient.mock.js.map +1 -0
  119. package/dist/utils/shopifyClient.test.d.ts +2 -0
  120. package/dist/utils/shopifyClient.test.d.ts.map +1 -0
  121. package/dist/utils/shopifyClient.test.js +27 -0
  122. package/dist/utils/shopifyClient.test.js.map +1 -0
  123. package/dist/utils/shopifyFetch.d.ts +24 -0
  124. package/dist/utils/shopifyFetch.d.ts.map +1 -0
  125. package/dist/utils/shopifyFetch.js +67 -0
  126. package/dist/utils/shopifyFetch.js.map +1 -0
  127. package/dist/utils/shopifyFetch.test.d.ts +2 -0
  128. package/dist/utils/shopifyFetch.test.d.ts.map +1 -0
  129. package/dist/utils/shopifyFetch.test.js +17 -0
  130. package/dist/utils/shopifyFetch.test.js.map +1 -0
  131. package/dist/utils/test-setup.d.ts +2 -0
  132. package/dist/utils/test-setup.d.ts.map +1 -0
  133. package/dist/utils/test-setup.js +13 -0
  134. package/dist/utils/test-setup.js.map +1 -0
  135. package/dist/utils/zod.d.ts +3 -0
  136. package/dist/utils/zod.d.ts.map +1 -0
  137. package/dist/utils/zod.js +19 -0
  138. package/dist/utils/zod.js.map +1 -0
  139. package/package.json +8 -5
package/dist/index.d.cts CHANGED
@@ -1,5 +1,8 @@
1
1
  import z from 'zod';
2
2
 
3
+ declare const DeleteCustomerByIdReturn: z.ZodNullable<z.ZodString>;
4
+ declare function deleteCustomerById(customerId: string): Promise<z.infer<typeof DeleteCustomerByIdReturn>>;
5
+
3
6
  type Maybe<T> = T | null;
4
7
  type InputMaybe<T> = Maybe<T>;
5
8
  type Exact<T extends {
@@ -3557,6 +3560,21 @@ type CustomerCreditCardBillingAddress = {
3557
3560
  /** The zip or postal code of the address. */
3558
3561
  zip?: Maybe<Scalars['String']['output']>;
3559
3562
  };
3563
+ /** The input fields to delete a customer. */
3564
+ type CustomerDeleteInput = {
3565
+ /** The ID of the customer to delete. */
3566
+ id: Scalars['ID']['input'];
3567
+ };
3568
+ /** Return type for `customerDelete` mutation. */
3569
+ type CustomerDeletePayload = {
3570
+ __typename?: 'CustomerDeletePayload';
3571
+ /** The ID of the deleted customer. */
3572
+ deletedCustomerId?: Maybe<Scalars['ID']['output']>;
3573
+ /** The shop of the deleted customer. */
3574
+ shop: Shop;
3575
+ /** The list of errors that occurred from executing the mutation. */
3576
+ userErrors: Array<UserError>;
3577
+ };
3560
3578
  /** An auto-generated type which holds one Customer and a cursor during pagination. */
3561
3579
  type CustomerEdge = {
3562
3580
  __typename?: 'CustomerEdge';
@@ -7121,11 +7139,11 @@ type FinancialSummaryDiscountApplication = {
7121
7139
  targetType: DiscountApplicationTargetType;
7122
7140
  };
7123
7141
  /**
7124
- * Represents a fulfillment.
7125
- * In Shopify, a fulfillment represents a shipment of one or more items in an order.
7126
- * When an order has been completely fulfilled, it means that all the items that are included
7127
- * in the order have been sent to the customer.
7128
- * There can be more than one fulfillment for an order.
7142
+ * A shipment of one or more items from an [`Order`](https://shopify.dev/docs/api/admin-graphql/latest/objects/Order). Tracks which [`LineItem`](https://shopify.dev/docs/api/admin-graphql/latest/objects/LineItem) objects ship, their quantities, and the shipment's tracking information.
7143
+ *
7144
+ * Includes tracking details such as the carrier, tracking numbers, and URLs. The fulfillment connects to both the original order and any associated [`FulfillmentOrder`](https://shopify.dev/docs/api/admin-graphql/latest/objects/FulfillmentOrder) objects. [`FulfillmentEvent`](https://shopify.dev/docs/api/admin-graphql/latest/objects/FulfillmentEvent) objects record milestones throughout the shipment lifecycle, from creation through delivery.
7145
+ *
7146
+ * Multiple fulfillments can exist for a single order when items either ship separately or from different locations.
7129
7147
  */
7130
7148
  type Fulfillment = LegacyInteroperability & Node & {
7131
7149
  __typename?: 'Fulfillment';
@@ -7228,7 +7246,11 @@ type FulfillmentEdge = {
7228
7246
  /** The item at the end of FulfillmentEdge. */
7229
7247
  node: Fulfillment;
7230
7248
  };
7231
- /** The fulfillment event that describes the fulfilllment status at a particular time. */
7249
+ /**
7250
+ * A tracking event that records the status and location of a fulfillment at a specific point in time. Each event captures details such as the [status](https://shopify.dev/docs/api/admin-graphql/latest/objects/FulfillmentEvent#field-FulfillmentEvent.fields.status) (for example, in transit, out for delivery, delivered) and any [messages](https://shopify.dev/docs/api/admin-graphql/latest/objects/FulfillmentEvent#field-FulfillmentEvent.fields.message) associated with the event.
7251
+ *
7252
+ * Fulfillment events provide a chronological history of a package's journey from shipment to delivery. They include timestamps, geographic coordinates, and estimated delivery dates to track fulfillment progress.
7253
+ */
7232
7254
  type FulfillmentEvent = Node & {
7233
7255
  __typename?: 'FulfillmentEvent';
7234
7256
  /** The street address where this fulfillment event occurred. */
@@ -7339,7 +7361,11 @@ declare enum FulfillmentHoldReason {
7339
7361
  /** The fulfillment hold is applied because of an unknown delivery date. */
7340
7362
  UnknownDeliveryDate = "UNKNOWN_DELIVERY_DATE"
7341
7363
  }
7342
- /** Represents a line item from an order that's included in a fulfillment. */
7364
+ /**
7365
+ * A line item from an [`Order`](https://shopify.dev/docs/api/admin-graphql/latest/objects/Order) that's included in a [`Fulfillment`](https://shopify.dev/docs/api/admin-graphql/latest/objects/Fulfillment). Links the fulfillment to specific items from the original order, tracking how many units were fulfilled.
7366
+ *
7367
+ * > Note: The discounted total excludes order-level discounts, showing only line-item specific discount amounts.
7368
+ */
7343
7369
  type FulfillmentLineItem = Node & {
7344
7370
  __typename?: 'FulfillmentLineItem';
7345
7371
  /**
@@ -7755,7 +7781,11 @@ type FulfillmentOrderInternationalDuties = {
7755
7781
  /** The method of duties payment. Example values: `DDP`, `DAP`. */
7756
7782
  incoterm: Scalars['String']['output'];
7757
7783
  };
7758
- /** Associates an order line item with quantities requiring fulfillment from the respective fulfillment order. */
7784
+ /**
7785
+ * Associates an order line item with the quantities that require fulfillment as part of a fulfillment order. Each Fulfillment Order Line Item object tracks the total quantity to fulfill and the remaining quantity yet to be fulfilled, along with details about the line item being fulfilled and pricing information.
7786
+ *
7787
+ * The line item provides additional fulfillment data including whether the item requires shipping. Financial summaries show pricing details with discounts applied, while warning messages alert merchants to any issues that might affect fulfillment.
7788
+ */
7759
7789
  type FulfillmentOrderLineItem = Node & {
7760
7790
  __typename?: 'FulfillmentOrderLineItem';
7761
7791
  /** The financial summary for the Fulfillment Order's Line Items. */
@@ -8092,6 +8122,7 @@ type FulfillmentService = {
8092
8122
  * Whether the fulfillment service can stock inventory alongside other locations.
8093
8123
  * @deprecated Fulfillment services are all migrating to permit SKU sharing.
8094
8124
  * Setting permits SKU sharing to false [is no longer supported](https://shopify.dev/changelog/setting-permitsskusharing-argument-to-false-when-creating-a-fulfillment-service-returns-an-error).
8125
+ * As of API version `2026-04` this field will be removed.
8095
8126
  *
8096
8127
  */
8097
8128
  permitsSkuSharing: Scalars['Boolean']['output'];
@@ -9299,9 +9330,9 @@ declare enum LocalizedFieldPurpose {
9299
9330
  Tax = "TAX"
9300
9331
  }
9301
9332
  /**
9302
- * Represents the location where the physical good resides. You can stock inventory at active locations. Active
9303
- * locations that have `fulfills_online_orders: true` and are configured with a shipping rate, pickup enabled or
9304
- * local delivery will be able to sell from their storefront.
9333
+ * A physical location where merchants store and fulfill inventory. Locations include retail stores, warehouses, popups, dropshippers, or other places where inventory is managed or stocked.
9334
+ *
9335
+ * Active locations can fulfill online orders when configured with shipping rates, local pickup, or local delivery options. Locations track inventory quantities for [products](https://shopify.dev/docs/api/admin-graphql/latest/objects/Product) and process [order](https://shopify.dev/docs/api/admin-graphql/latest/objects/Order) fulfillment. Third-party apps using [`FulfillmentService`](https://shopify.dev/docs/api/admin-graphql/latest/objects/FulfillmentService) can create and manage their own locations.
9305
9336
  */
9306
9337
  type Location = HasMetafieldDefinitions & HasMetafields & LegacyInteroperability & Node & {
9307
9338
  __typename?: 'Location';
@@ -12110,7 +12141,10 @@ type OrderTransaction = Node & {
12110
12141
  * @deprecated Use `amountSet` instead.
12111
12142
  */
12112
12143
  amountV2: MoneyV2;
12113
- /** Authorization code associated with the transaction. */
12144
+ /**
12145
+ * Authorization code associated with the transaction.
12146
+ * @deprecated Use `paymentId` instead.
12147
+ */
12114
12148
  authorizationCode?: Maybe<Scalars['String']['output']>;
12115
12149
  /** The time when the authorization expires. This field is available only to stores on a Shopify Plus plan. */
12116
12150
  authorizationExpiresAt?: Maybe<Scalars['DateTime']['output']>;
@@ -12241,15 +12275,15 @@ declare enum OrderTransactionErrorCode {
12241
12275
  ExpiredCard = "EXPIRED_CARD",
12242
12276
  /** There was an unknown error with processing the payment. */
12243
12277
  GenericError = "GENERIC_ERROR",
12244
- /** The address does not match the card number. */
12278
+ /** The address is incorrect. */
12245
12279
  IncorrectAddress = "INCORRECT_ADDRESS",
12246
- /** The CVC does not match the card number. */
12280
+ /** The card security code (CVC/CVV) is incorrect. */
12247
12281
  IncorrectCvc = "INCORRECT_CVC",
12248
12282
  /** The card number is incorrect. */
12249
12283
  IncorrectNumber = "INCORRECT_NUMBER",
12250
- /** The entered PIN is incorrect. */
12284
+ /** The PIN entered is incorrect. */
12251
12285
  IncorrectPin = "INCORRECT_PIN",
12252
- /** The ZIP or postal code does not match the card number. */
12286
+ /** The ZIP or postal code doesn't match the one on file. */
12253
12287
  IncorrectZip = "INCORRECT_ZIP",
12254
12288
  /** The amount is either too high or too low for the provider. */
12255
12289
  InvalidAmount = "INVALID_AMOUNT",
@@ -12570,13 +12604,11 @@ declare enum PaypalExpressSubscriptionsGatewayStatus {
12570
12604
  Pending = "PENDING"
12571
12605
  }
12572
12606
  /**
12573
- * Represents a price list, including information about related prices and eligibility rules.
12574
- * You can use price lists to specify either fixed prices or adjusted relative prices that
12575
- * override initial product variant prices. Price lists are applied to customers
12576
- * using context rules, which determine price list eligibility.
12607
+ * A list that defines pricing for [product variants](https://shopify.dev/docs/api/admin-graphql/latest/objects/ProductVariant). Price lists override default product prices with either fixed prices or percentage-based adjustments.
12577
12608
  *
12578
- * For more information on price lists, refer to
12579
- * [Support different pricing models](https://shopify.dev/apps/internationalization/product-price-lists).
12609
+ * Each price list associates with a [`Catalog`](https://shopify.dev/docs/api/admin-graphql/latest/interfaces/Catalog) to determine which customers see the pricing. The catalog's context rules control when the price list applies, such as for specific markets, company locations, or apps.
12610
+ *
12611
+ * Learn how to [support different pricing models](https://shopify.dev/docs/apps/build/markets/build-catalog).
12580
12612
  */
12581
12613
  type PriceList = Node & {
12582
12614
  __typename?: 'PriceList';
@@ -12649,8 +12681,9 @@ type PriceListParent = {
12649
12681
  settings: PriceListAdjustmentSettings;
12650
12682
  };
12651
12683
  /**
12652
- * Represents information about pricing for a product variant
12653
- * as defined on a price list, such as the price, compare at price, and origin type. You can use a `PriceListPrice` to specify a fixed price for a specific product variant. For examples, refer to [PriceListFixedPricesAdd](https://shopify.dev/api/admin-graphql/latest/mutations/priceListFixedPricesAdd) and [PriceList](https://shopify.dev/api/admin-graphql/latest/queries/priceList#section-examples).
12684
+ * Pricing for a [`ProductVariant`](https://shopify.dev/docs/api/admin-graphql/latest/objects/ProductVariant) on a [`PriceList`](https://shopify.dev/docs/api/admin-graphql/latest/objects/PriceList). Represents the variant's price, compare-at price, and whether the price is fixed or calculated using percentage-based adjustments. The [`PriceListPriceOriginType`](https://shopify.dev/docs/api/admin-graphql/latest/enums/PriceListPriceOriginType) distinguishes between prices set directly on the price list (fixed) and prices calculated using the price list's adjustment configuration (relative).
12685
+ *
12686
+ * Learn more about [building catalogs with different pricing models](https://shopify.dev/docs/apps/build/markets/build-catalog).
12654
12687
  */
12655
12688
  type PriceListPrice = {
12656
12689
  __typename?: 'PriceListPrice';
@@ -13992,7 +14025,11 @@ type RefundEdge = {
13992
14025
  /** The item at the end of RefundEdge. */
13993
14026
  node: Refund;
13994
14027
  };
13995
- /** A line item that's included in a refund. */
14028
+ /**
14029
+ * A [`Product`](https://shopify.dev/docs/api/admin-graphql/latest/objects/Product) or [`ProductVariant`](https://shopify.dev/docs/api/admin-graphql/latest/objects/ProductVariant) being refunded from an order. Each refund line item tracks the quantity, pricing, and restocking details for items returned to the merchant.
14030
+ *
14031
+ * The refund line item links to the original [`LineItem`](https://shopify.dev/docs/api/admin-graphql/latest/objects/LineItem) from the [`Order`](https://shopify.dev/docs/api/admin-graphql/latest/objects/Order) and includes financial information such as the refunded price, subtotal, and taxes in both shop and presentment currencies. The [`restockType`](https://shopify.dev/docs/api/admin-graphql/latest/objects/RefundLineItem#field-RefundLineItem.fields.restockType) field indicates whether and how the merchant restocks the returned items to inventory, while the [`location`](https://shopify.dev/docs/api/admin-graphql/latest/objects/RefundLineItem#field-RefundLineItem.fields.location) field specifies where restocking occurs.
14032
+ */
13996
14033
  type RefundLineItem = {
13997
14034
  __typename?: 'RefundLineItem';
13998
14035
  /** A globally-unique ID. */
@@ -15365,7 +15402,7 @@ declare enum ShippingDiscountClass {
15365
15402
  /** Combined as a shipping discount. */
15366
15403
  Shipping = "SHIPPING"
15367
15404
  }
15368
- /** Represents the shipping details that the customer chose for their order. */
15405
+ /** The shipping method that customers select for an order. Includes pricing details, carrier information, and any applied discounts or taxes. */
15369
15406
  type ShippingLine = {
15370
15407
  __typename?: 'ShippingLine';
15371
15408
  /**
@@ -15470,7 +15507,11 @@ type ShippingRefund = {
15470
15507
  /** The monetary value of the tax allocated to shipping fees to be refunded in shop and presentment currencies. */
15471
15508
  taxSet: MoneyBag;
15472
15509
  };
15473
- /** Represents a collection of general settings and information about the shop. */
15510
+ /**
15511
+ * The central configuration and settings hub for a Shopify store. Access business information, operational preferences, feature availability, and store-wide settings that control how the shop operates.
15512
+ *
15513
+ * Includes core business details like the shop name, contact emails, billing address, and currency settings. The shop configuration determines customer account requirements, available sales channels, enabled features, payment settings, and policy documents. Also provides access to shop-level resources such as staff members, fulfillment services, navigation settings, and storefront access tokens.
15514
+ */
15474
15515
  type Shop = HasMetafields & HasPublishedTranslations & Node & {
15475
15516
  __typename?: 'Shop';
15476
15517
  /** Account owner information. */
@@ -15954,7 +15995,7 @@ type ShopPayInstallmentsPaymentDetails = BasePaymentDetails & {
15954
15995
  /** The name of payment method used by the buyer. */
15955
15996
  paymentMethodName?: Maybe<Scalars['String']['output']>;
15956
15997
  };
15957
- /** The billing plan of the shop. */
15998
+ /** The shop's billing plan and subscription details. Indicates the plan tier (such as Basic, Advanced, or Plus), whether the shop has a Shopify Plus subscription, and if it's a dev store for testing. */
15958
15999
  type ShopPlan = {
15959
16000
  __typename?: 'ShopPlan';
15960
16001
  /**
@@ -18067,7 +18108,11 @@ declare enum TaxExemption {
18067
18108
  /** This customer is exempt from specific taxes for holding a valid RESELLER_EXEMPTION in Wyoming. */
18068
18109
  UsWyResellerExemption = "US_WY_RESELLER_EXEMPTION"
18069
18110
  }
18070
- /** Represents a single tax applied to the associated line item. */
18111
+ /**
18112
+ * A tax applied to a [`LineItem`](https://shopify.dev/docs/api/admin-graphql/latest/objects/LineItem) or [`ShippingLine`](https://shopify.dev/docs/api/admin-graphql/latest/objects/ShippingLine). Includes the tax amount, rate, title, and whether the channel that submitted the tax is liable for remitting it.
18113
+ *
18114
+ * The tax amount in both shop and presentment currencies after applying discounts. Includes information about the tax rate, whether the channel is liable for remitting the tax, and other tax-related details.
18115
+ */
18071
18116
  type TaxLine = {
18072
18117
  __typename?: 'TaxLine';
18073
18118
  /** Whether the channel that submitted the tax line is liable for remitting. A value of null indicates unknown liability for this tax line. */
@@ -18452,6 +18497,14 @@ declare enum WeightUnit {
18452
18497
  Pounds = "POUNDS"
18453
18498
  }
18454
18499
 
18500
+ type CustomerDeleteMutationVariables = Exact<{
18501
+ input: CustomerDeleteInput;
18502
+ }>;
18503
+ type CustomerDeleteMutation = {
18504
+ customerDelete?: Maybe<(Pick<CustomerDeletePayload, 'deletedCustomerId'> & {
18505
+ userErrors: Array<Pick<UserError, 'field' | 'message'>>;
18506
+ })>;
18507
+ };
18455
18508
  type ConnectMetaObjectToProductVariantMutationVariables = Exact<{
18456
18509
  productId: Scalars['ID']['input'];
18457
18510
  variantId: Scalars['ID']['input'];
@@ -18464,13 +18517,73 @@ type ConnectMetaObjectToProductVariantMutation = {
18464
18517
  userErrors: Array<Pick<ProductVariantsBulkUpdateUserError, 'field' | 'message'>>;
18465
18518
  }>;
18466
18519
  };
18467
- type OrderPaymentDetailsByIdQueryVariables = Exact<{
18520
+ type OrderByIdQueryVariables = Exact<{
18468
18521
  id: Scalars['ID']['input'];
18469
18522
  }>;
18470
- type OrderPaymentDetailsByIdQuery = {
18471
- order?: Maybe<{
18472
- transactions: Array<Pick<OrderTransaction, 'createdAt' | 'gateway' | 'formattedGateway' | 'kind' | 'paymentId'>>;
18473
- }>;
18523
+ type OrderByIdQuery = {
18524
+ order?: Maybe<(Pick<Order, 'id' | 'name' | 'createdAt' | 'updatedAt' | 'cancelledAt' | 'cancelReason' | 'displayFinancialStatus' | 'displayFulfillmentStatus'> & {
18525
+ totalPriceSet: {
18526
+ shopMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
18527
+ };
18528
+ customer?: Maybe<(Pick<Customer, 'id' | 'lastName' | 'displayName' | 'firstName'> & {
18529
+ defaultEmailAddress?: Maybe<Pick<CustomerEmailAddress, 'emailAddress'>>;
18530
+ })>;
18531
+ shippingAddress?: Maybe<Pick<MailingAddress, 'firstName' | 'lastName' | 'address1' | 'address2' | 'city' | 'province' | 'country' | 'zip'>>;
18532
+ })>;
18533
+ };
18534
+ type OrderByIdFullQueryVariables = Exact<{
18535
+ id: Scalars['ID']['input'];
18536
+ }>;
18537
+ type OrderByIdFullQuery = {
18538
+ order?: Maybe<(Pick<Order, 'id' | 'name' | 'createdAt' | 'updatedAt' | 'processedAt' | 'closedAt' | 'cancelledAt' | 'cancelReason' | 'displayFinancialStatus' | 'displayFulfillmentStatus' | 'discountCodes'> & {
18539
+ totalPriceSet: {
18540
+ shopMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
18541
+ };
18542
+ customer?: Maybe<(Pick<Customer, 'id' | 'lastName' | 'displayName' | 'firstName' | 'phone'> & {
18543
+ defaultEmailAddress?: Maybe<Pick<CustomerEmailAddress, 'emailAddress'>>;
18544
+ })>;
18545
+ shippingAddress?: Maybe<Pick<MailingAddress, 'firstName' | 'lastName' | 'address1' | 'address2' | 'city' | 'province' | 'country' | 'zip'>>;
18546
+ billingAddress?: Maybe<Pick<MailingAddress, 'firstName' | 'lastName' | 'address1' | 'address2' | 'city' | 'province' | 'country' | 'zip'>>;
18547
+ lineItems: {
18548
+ edges: Array<{
18549
+ node: (Pick<LineItem, 'id' | 'sku' | 'title' | 'variantTitle' | 'quantity' | 'vendor'> & {
18550
+ customAttributes: Array<Pick<Attribute, 'key' | 'value'>>;
18551
+ originalUnitPriceSet: {
18552
+ shopMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
18553
+ };
18554
+ image?: Maybe<Pick<Image, 'url' | 'width' | 'height' | 'altText'>>;
18555
+ });
18556
+ }>;
18557
+ };
18558
+ fulfillments: Array<(Pick<Fulfillment, 'id' | 'name' | 'totalQuantity' | 'status' | 'createdAt' | 'estimatedDeliveryAt' | 'deliveredAt'> & {
18559
+ trackingInfo: Array<Pick<FulfillmentTrackingInfo, 'company' | 'number' | 'url'>>;
18560
+ fulfillmentLineItems: {
18561
+ edges: Array<{
18562
+ node: (Pick<FulfillmentLineItem, 'id' | 'quantity'> & {
18563
+ lineItem: Pick<LineItem, 'id'>;
18564
+ });
18565
+ }>;
18566
+ };
18567
+ })>;
18568
+ shippingLine?: Maybe<{
18569
+ originalPriceSet: {
18570
+ shopMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
18571
+ };
18572
+ }>;
18573
+ taxLines: Array<{
18574
+ priceSet: {
18575
+ shopMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
18576
+ };
18577
+ }>;
18578
+ totalDiscountsSet?: Maybe<{
18579
+ shopMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
18580
+ }>;
18581
+ refunds: Array<{
18582
+ totalRefundedSet: {
18583
+ shopMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
18584
+ };
18585
+ }>;
18586
+ })>;
18474
18587
  };
18475
18588
  type OrdersByNameQueryVariables = Exact<{
18476
18589
  first: Scalars['Int']['input'];
@@ -18582,6 +18695,18 @@ type OrdersByNameFullQuery = {
18582
18695
  pageInfo: Pick<PageInfo, 'hasNextPage' | 'endCursor'>;
18583
18696
  };
18584
18697
  };
18698
+ type OrderPaymentDetailsByIdQueryVariables = Exact<{
18699
+ id: Scalars['ID']['input'];
18700
+ }>;
18701
+ type OrderPaymentDetailsByIdQuery = {
18702
+ order?: Maybe<{
18703
+ transactions: Array<(Pick<OrderTransaction, 'createdAt' | 'gateway' | 'formattedGateway' | 'kind' | 'paymentId'> & {
18704
+ amountSet: {
18705
+ shopMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
18706
+ };
18707
+ })>;
18708
+ }>;
18709
+ };
18585
18710
  type LeanProductVariantsQueryVariables = Exact<{
18586
18711
  first: Scalars['Int']['input'];
18587
18712
  after?: InputMaybe<Scalars['String']['input']>;
@@ -18608,9 +18733,13 @@ type ProductHandlesQuery = {
18608
18733
  };
18609
18734
  };
18610
18735
  interface GeneratedQueryTypes {
18611
- "#graphql\n query orderPaymentDetailsById($id: ID!) {\n order(id: $id) {\n transactions {\n createdAt\n gateway\n formattedGateway\n kind\n paymentId\n }\n }\n }\n": {
18612
- return: OrderPaymentDetailsByIdQuery;
18613
- variables: OrderPaymentDetailsByIdQueryVariables;
18736
+ "#graphql\n query orderById($id: ID!) {\n order(id: $id) {\n id\n name\n createdAt\n updatedAt\n cancelledAt\n cancelReason\n totalPriceSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n customer {\n id\n lastName\n defaultEmailAddress {\n emailAddress\n }\n displayName\n firstName\n }\n displayFinancialStatus\n displayFulfillmentStatus\n shippingAddress {\n firstName\n lastName\n address1\n address2\n city\n province\n country\n zip\n }\n }\n }\n": {
18737
+ return: OrderByIdQuery;
18738
+ variables: OrderByIdQueryVariables;
18739
+ };
18740
+ "#graphql\n query orderByIdFull($id: ID!) {\n order(id: $id) {\n id\n name\n createdAt\n updatedAt\n processedAt\n closedAt\n cancelledAt\n cancelReason\n totalPriceSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n customer {\n id\n lastName\n defaultEmailAddress {\n emailAddress\n }\n displayName\n firstName\n phone\n }\n displayFinancialStatus\n displayFulfillmentStatus\n shippingAddress {\n firstName\n lastName\n address1\n address2\n city\n province\n country\n zip\n }\n billingAddress {\n firstName\n lastName\n address1\n address2\n city\n province\n country\n zip\n }\n lineItems(first: 100) {\n edges {\n node {\n id\n sku\n title\n variantTitle\n quantity\n customAttributes {\n key\n value\n }\n originalUnitPriceSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n vendor\n image {\n url\n width\n height\n altText\n }\n }\n }\n }\n fulfillments {\n id\n name\n totalQuantity\n status\n createdAt\n estimatedDeliveryAt\n deliveredAt\n trackingInfo {\n company\n number\n url\n }\n fulfillmentLineItems(first: 100) {\n edges {\n node {\n id\n quantity\n lineItem {\n id\n }\n }\n }\n }\n }\n shippingLine {\n originalPriceSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n }\n taxLines {\n priceSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n }\n totalDiscountsSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n discountCodes\n refunds {\n totalRefundedSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n }\n }\n }\n": {
18741
+ return: OrderByIdFullQuery;
18742
+ variables: OrderByIdFullQueryVariables;
18614
18743
  };
18615
18744
  "#graphql\n query ordersByName($first: Int!, $queryFilter: String!) {\n orders(first: $first, query: $queryFilter) {\n edges {\n node {\n id\n name\n createdAt\n updatedAt\n totalPriceSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n customer {\n id\n lastName\n defaultEmailAddress {\n emailAddress\n }\n displayName\n firstName\n }\n displayFinancialStatus\n displayFulfillmentStatus\n }\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n }\n": {
18616
18745
  return: OrdersByNameQuery;
@@ -18620,6 +18749,10 @@ interface GeneratedQueryTypes {
18620
18749
  return: OrdersByNameFullQuery;
18621
18750
  variables: OrdersByNameFullQueryVariables;
18622
18751
  };
18752
+ "#graphql\n query orderPaymentDetailsById($id: ID!) {\n order(id: $id) {\n transactions {\n amountSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n createdAt\n gateway\n formattedGateway\n kind\n paymentId\n }\n }\n }\n": {
18753
+ return: OrderPaymentDetailsByIdQuery;
18754
+ variables: OrderPaymentDetailsByIdQueryVariables;
18755
+ };
18623
18756
  "#graphql\n query leanProductVariants($first: Int!, $after: String, $queryFilter: String) {\n productVariants(first: $first, after: $after, query: $queryFilter) {\n edges {\n node { \n id\n title\n sku\n product {\n id\n title\n }\n }\n }\n pageInfo { \n hasNextPage\n endCursor\n }\n }\n }\n ": {
18624
18757
  return: LeanProductVariantsQuery;
18625
18758
  variables: LeanProductVariantsQueryVariables;
@@ -18630,6 +18763,10 @@ interface GeneratedQueryTypes {
18630
18763
  };
18631
18764
  }
18632
18765
  interface GeneratedMutationTypes {
18766
+ "#graphql\n mutation customerDelete($input: CustomerDeleteInput!) {\n customerDelete(input: $input) {\n deletedCustomerId\n userErrors {\n field\n message\n }\n }\n }\n ": {
18767
+ return: CustomerDeleteMutation;
18768
+ variables: CustomerDeleteMutationVariables;
18769
+ };
18633
18770
  "#graphql\n mutation connectMetaObjectToProductVariant($productId: ID!, $variantId: ID!, $metaObjectId: String!, $metaObjectKey: String!) {\n productVariantsBulkUpdate(\n productId: $productId\n variants: [\n {\n id: $variantId\n metafields: [\n {\n namespace: \"custom\"\n key: $metaObjectKey\n value: $metaObjectId\n type: \"metaobject_reference\"\n }\n ]\n }\n ] \n ) {\n productVariants { \n id\n }\n userErrors {\n field\n message\n }\n }\n }\n ": {
18634
18771
  return: ConnectMetaObjectToProductVariantMutation;
18635
18772
  variables: ConnectMetaObjectToProductVariantMutationVariables;
@@ -18643,20 +18780,153 @@ declare module '@shopify/admin-api-client' {
18643
18780
  }
18644
18781
  }
18645
18782
 
18646
- declare const GetLeanOrderByNameReturn: z.ZodNullable<z.ZodObject<{
18783
+ declare const GetLeanOrderByIdReturn: z.ZodNullable<z.ZodObject<{
18647
18784
  id: z.ZodString;
18648
18785
  name: z.ZodString;
18649
18786
  createdAt: z.ZodString;
18650
18787
  updatedAt: z.ZodString;
18788
+ cancelledAt: z.ZodNullable<z.ZodString>;
18789
+ cancelReason: z.ZodNullable<z.ZodString>;
18651
18790
  totalPrice: z.ZodObject<{
18652
18791
  amount: z.ZodString;
18653
18792
  currencyCode: z.ZodString;
18654
18793
  }, "strip", z.ZodTypeAny, {
18794
+ currencyCode: string;
18655
18795
  amount: string;
18796
+ }, {
18656
18797
  currencyCode: string;
18798
+ amount: string;
18799
+ }>;
18800
+ customer: z.ZodNullable<z.ZodObject<{
18801
+ id: z.ZodString;
18802
+ displayName: z.ZodString;
18803
+ firstName: z.ZodNullable<z.ZodString>;
18804
+ lastName: z.ZodNullable<z.ZodString>;
18805
+ emailAddress: z.ZodNullable<z.ZodString>;
18806
+ }, "strip", z.ZodTypeAny, {
18807
+ id: string;
18808
+ displayName: string;
18809
+ lastName: string | null;
18810
+ firstName: string | null;
18811
+ emailAddress: string | null;
18657
18812
  }, {
18813
+ id: string;
18814
+ displayName: string;
18815
+ lastName: string | null;
18816
+ firstName: string | null;
18817
+ emailAddress: string | null;
18818
+ }>>;
18819
+ financialStatus: z.ZodNullable<z.ZodString>;
18820
+ fulfillmentStatus: z.ZodNullable<z.ZodString>;
18821
+ shippingAddress: z.ZodNullable<z.ZodObject<{
18822
+ firstName: z.ZodNullable<z.ZodString>;
18823
+ lastName: z.ZodNullable<z.ZodString>;
18824
+ address1: z.ZodNullable<z.ZodString>;
18825
+ address2: z.ZodNullable<z.ZodString>;
18826
+ city: z.ZodNullable<z.ZodString>;
18827
+ province: z.ZodNullable<z.ZodString>;
18828
+ country: z.ZodNullable<z.ZodString>;
18829
+ zip: z.ZodNullable<z.ZodString>;
18830
+ }, "strip", z.ZodTypeAny, {
18831
+ lastName: string | null;
18832
+ firstName: string | null;
18833
+ address1: string | null;
18834
+ address2: string | null;
18835
+ city: string | null;
18836
+ province: string | null;
18837
+ country: string | null;
18838
+ zip: string | null;
18839
+ }, {
18840
+ lastName: string | null;
18841
+ firstName: string | null;
18842
+ address1: string | null;
18843
+ address2: string | null;
18844
+ city: string | null;
18845
+ province: string | null;
18846
+ country: string | null;
18847
+ zip: string | null;
18848
+ }>>;
18849
+ }, "strip", z.ZodTypeAny, {
18850
+ id: string;
18851
+ createdAt: string;
18852
+ updatedAt: string;
18853
+ name: string;
18854
+ cancelledAt: string | null;
18855
+ cancelReason: string | null;
18856
+ customer: {
18857
+ id: string;
18858
+ displayName: string;
18859
+ lastName: string | null;
18860
+ firstName: string | null;
18861
+ emailAddress: string | null;
18862
+ } | null;
18863
+ shippingAddress: {
18864
+ lastName: string | null;
18865
+ firstName: string | null;
18866
+ address1: string | null;
18867
+ address2: string | null;
18868
+ city: string | null;
18869
+ province: string | null;
18870
+ country: string | null;
18871
+ zip: string | null;
18872
+ } | null;
18873
+ totalPrice: {
18874
+ currencyCode: string;
18658
18875
  amount: string;
18876
+ };
18877
+ fulfillmentStatus: string | null;
18878
+ financialStatus: string | null;
18879
+ }, {
18880
+ id: string;
18881
+ createdAt: string;
18882
+ updatedAt: string;
18883
+ name: string;
18884
+ cancelledAt: string | null;
18885
+ cancelReason: string | null;
18886
+ customer: {
18887
+ id: string;
18888
+ displayName: string;
18889
+ lastName: string | null;
18890
+ firstName: string | null;
18891
+ emailAddress: string | null;
18892
+ } | null;
18893
+ shippingAddress: {
18894
+ lastName: string | null;
18895
+ firstName: string | null;
18896
+ address1: string | null;
18897
+ address2: string | null;
18898
+ city: string | null;
18899
+ province: string | null;
18900
+ country: string | null;
18901
+ zip: string | null;
18902
+ } | null;
18903
+ totalPrice: {
18659
18904
  currencyCode: string;
18905
+ amount: string;
18906
+ };
18907
+ fulfillmentStatus: string | null;
18908
+ financialStatus: string | null;
18909
+ }>>;
18910
+ type LeanOrder = z.infer<typeof GetLeanOrderByIdReturn>;
18911
+ type FullOrder = NonNullable<OrderByIdFullQuery['order']> | null;
18912
+ declare function getOrderById(id: bigint): Promise<LeanOrder>;
18913
+ declare function getOrderById(id: bigint, detailLevel: 'lean'): Promise<LeanOrder>;
18914
+ declare function getOrderById(id: bigint, detailLevel: 'full'): Promise<FullOrder>;
18915
+
18916
+ declare const GetLeanOrderByNameReturn: z.ZodNullable<z.ZodObject<{
18917
+ id: z.ZodString;
18918
+ name: z.ZodString;
18919
+ createdAt: z.ZodString;
18920
+ updatedAt: z.ZodString;
18921
+ totalPrice: z.ZodObject<{
18922
+ amount: z.ZodString;
18923
+ currencyCode: z.ZodString;
18924
+ }, "strip", z.ZodTypeAny, {
18925
+ currencyCode: string;
18926
+ amount: string;
18927
+ }, {
18928
+ currencyCode: string;
18929
+ amount: string;
18660
18930
  }>;
18661
18931
  customer: z.ZodNullable<z.ZodObject<{
18662
18932
  id: z.ZodString;
@@ -18684,8 +18954,8 @@ declare const GetLeanOrderByNameReturn: z.ZodNullable<z.ZodObject<{
18684
18954
  emailAddress: string | null;
18685
18955
  } | null;
18686
18956
  totalPrice: {
18687
- amount: string;
18688
18957
  currencyCode: string;
18958
+ amount: string;
18689
18959
  };
18690
18960
  fulfillmentStatus: string | null;
18691
18961
  financialStatus: string | null;
@@ -18700,8 +18970,8 @@ declare const GetLeanOrderByNameReturn: z.ZodNullable<z.ZodObject<{
18700
18970
  emailAddress: string | null;
18701
18971
  } | null;
18702
18972
  totalPrice: {
18703
- amount: string;
18704
18973
  currencyCode: string;
18974
+ amount: string;
18705
18975
  };
18706
18976
  fulfillmentStatus: string | null;
18707
18977
  financialStatus: string | null;
@@ -18743,7 +19013,7 @@ type GetLeanProductVariantsReturnType = z.infer<typeof GetLeanProductVariantsRet
18743
19013
  */
18744
19014
  declare function getLeanProductVariants(skus?: string[]): Promise<GetLeanProductVariantsReturnType>;
18745
19015
 
18746
- declare const GetOrderPaymentDetailsByNameReturn: z.ZodObject<{
19016
+ declare const GetOrderPaymentDetailsByIdReturn: z.ZodObject<{
18747
19017
  order: z.ZodObject<{
18748
19018
  transactions: z.ZodArray<z.ZodObject<{
18749
19019
  amountSet: z.ZodObject<{
@@ -18751,21 +19021,21 @@ declare const GetOrderPaymentDetailsByNameReturn: z.ZodObject<{
18751
19021
  amount: z.ZodString;
18752
19022
  currencyCode: z.ZodString;
18753
19023
  }, "strip", z.ZodTypeAny, {
18754
- amount: string;
18755
19024
  currencyCode: string;
18756
- }, {
18757
19025
  amount: string;
19026
+ }, {
18758
19027
  currencyCode: string;
19028
+ amount: string;
18759
19029
  }>;
18760
19030
  }, "strip", z.ZodTypeAny, {
18761
19031
  shopMoney: {
18762
- amount: string;
18763
19032
  currencyCode: string;
19033
+ amount: string;
18764
19034
  };
18765
19035
  }, {
18766
19036
  shopMoney: {
18767
- amount: string;
18768
19037
  currencyCode: string;
19038
+ amount: string;
18769
19039
  };
18770
19040
  }>;
18771
19041
  createdAt: z.ZodString;
@@ -18781,8 +19051,8 @@ declare const GetOrderPaymentDetailsByNameReturn: z.ZodObject<{
18781
19051
  paymentId: string;
18782
19052
  amountSet: {
18783
19053
  shopMoney: {
18784
- amount: string;
18785
19054
  currencyCode: string;
19055
+ amount: string;
18786
19056
  };
18787
19057
  };
18788
19058
  }, {
@@ -18793,8 +19063,8 @@ declare const GetOrderPaymentDetailsByNameReturn: z.ZodObject<{
18793
19063
  paymentId: string;
18794
19064
  amountSet: {
18795
19065
  shopMoney: {
18796
- amount: string;
18797
19066
  currencyCode: string;
19067
+ amount: string;
18798
19068
  };
18799
19069
  };
18800
19070
  }>, "many">;
@@ -18807,8 +19077,8 @@ declare const GetOrderPaymentDetailsByNameReturn: z.ZodObject<{
18807
19077
  paymentId: string;
18808
19078
  amountSet: {
18809
19079
  shopMoney: {
18810
- amount: string;
18811
19080
  currencyCode: string;
19081
+ amount: string;
18812
19082
  };
18813
19083
  };
18814
19084
  }[];
@@ -18821,8 +19091,8 @@ declare const GetOrderPaymentDetailsByNameReturn: z.ZodObject<{
18821
19091
  paymentId: string;
18822
19092
  amountSet: {
18823
19093
  shopMoney: {
18824
- amount: string;
18825
19094
  currencyCode: string;
19095
+ amount: string;
18826
19096
  };
18827
19097
  };
18828
19098
  }[];
@@ -18837,8 +19107,8 @@ declare const GetOrderPaymentDetailsByNameReturn: z.ZodObject<{
18837
19107
  paymentId: string;
18838
19108
  amountSet: {
18839
19109
  shopMoney: {
18840
- amount: string;
18841
19110
  currencyCode: string;
19111
+ amount: string;
18842
19112
  };
18843
19113
  };
18844
19114
  }[];
@@ -18853,22 +19123,22 @@ declare const GetOrderPaymentDetailsByNameReturn: z.ZodObject<{
18853
19123
  paymentId: string;
18854
19124
  amountSet: {
18855
19125
  shopMoney: {
18856
- amount: string;
18857
19126
  currencyCode: string;
19127
+ amount: string;
18858
19128
  };
18859
19129
  };
18860
19130
  }[];
18861
19131
  };
18862
19132
  }>;
18863
- type GetOrderPaymentDetailsByNameReturnType = z.infer<typeof GetOrderPaymentDetailsByNameReturn>;
19133
+ type GetOrderPaymentDetailsByIdReturnType = z.infer<typeof GetOrderPaymentDetailsByIdReturn>;
18864
19134
  /**
18865
- * Retrieves a single order from Shopify by its order name (e.g., "B12345").
18866
- * Returns null if no order is found with the specified name.
19135
+ * Retrieves payment details for a single order from Shopify by its ID.
19136
+ * Returns null if no order is found with the specified ID.
18867
19137
  *
18868
- * @param {bigint} id - The numerical Shopify order id for (e.g., "12345678").
18869
- * @returns {Promise<GetOrderPaymentDetailsByNameReturnType>} A promise that resolves to the order data or null if not found.
19138
+ * @param {bigint} id - The numerical Shopify order ID (e.g., 12345678n).
19139
+ * @returns {Promise<GetOrderPaymentDetailsByIdReturnType | null>} A promise that resolves to the order payment data or null if not found.
18870
19140
  * @throws {Error} If the GraphQL query fails or if the response structure is invalid.
18871
19141
  */
18872
- declare function getOrderPaymentDetailsById(id: bigint): Promise<GetOrderPaymentDetailsByNameReturnType>;
19142
+ declare function getOrderPaymentDetailsById(id: bigint): Promise<GetOrderPaymentDetailsByIdReturnType | null>;
18873
19143
 
18874
- export { getLeanProductVariants, getOrderByName, getOrderPaymentDetailsById };
19144
+ export { type FullOrder, type LeanOrder, deleteCustomerById, getLeanProductVariants, getOrderById, getOrderByName, getOrderPaymentDetailsById };