@ecomweb/sdk 0.6.0 → 0.10.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/README.md CHANGED
@@ -4,8 +4,8 @@ Shared TypeScript SDK for the EcomWeb storefront API — request builders,
4
4
  response types and the vocabulary (collection rules, payment methods, order
5
5
  shapes) that the API and its consumers must agree on.
6
6
 
7
- > Part of a seven-repo system. For the whole picture see
8
- > [`../ecomweb/docs/getting-started/SETUP.md`](../ecomweb/docs/getting-started/SETUP.md).
7
+ > Part of the ecomweb multi-repo system. For the whole picture see
8
+ > [`ecomweb-project/workspace/SETUP.md`](https://github.com/travistech20/ecomweb-project/blob/main/workspace/SETUP.md).
9
9
 
10
10
  ## Source in the workspace, `dist/` on npm
11
11
 
@@ -26,11 +26,11 @@ pnpm --filter @ecomweb/sdk build
26
26
  |---|---|
27
27
  | `ecomweb-storefront` (this workspace) | `workspace:*` |
28
28
  | Ejected merchant storefronts | npm `@ecomweb/sdk` (caret range) |
29
- | `@ecomweb/contracts` / `ecomweb-dashboard` | npm `@ecomweb/sdk` (GitHub until the first publish) |
29
+ | `@ecomweb/contracts` / `ecomweb-dashboard` | not npm yet: the last full-SDK commit in the private contracts repo, `github:travistech20/ecomweb-contracts#f3dc1ab…` (pinned by full SHA) |
30
30
 
31
31
  Admin-only types and constants (permissions, purchase orders, sales channels,
32
32
  timelines, …) are **not** here: they live in the private `@ecomweb/contracts`
33
- package (the `ecomweb-sdk` repo).
33
+ package (the `ecomweb-contracts` repo).
34
34
 
35
35
  ### Working on the SDK locally
36
36
 
package/dist/index.d.ts CHANGED
@@ -427,7 +427,6 @@ declare const storeSettingsSchema: z.ZodObject<{
427
427
  facebook_link: z.ZodNullable<z.ZodOptional<z.ZodURL>>;
428
428
  instagram_link: z.ZodNullable<z.ZodOptional<z.ZodURL>>;
429
429
  google_analytics_key: z.ZodNullable<z.ZodOptional<z.ZodString>>;
430
- shop_introduction: z.ZodNullable<z.ZodOptional<z.ZodString>>;
431
430
  tagline: z.ZodNullable<z.ZodOptional<z.ZodString>>;
432
431
  blog_title: z.ZodNullable<z.ZodOptional<z.ZodString>>;
433
432
  is_blog_enabled: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
@@ -503,7 +502,6 @@ declare const createStoreSettingsSchema: z.ZodObject<{
503
502
  privacy: z.ZodNullable<z.ZodOptional<z.ZodString>>;
504
503
  }, z.core.$strip>>>;
505
504
  google_analytics_key: z.ZodNullable<z.ZodOptional<z.ZodString>>;
506
- shop_introduction: z.ZodNullable<z.ZodOptional<z.ZodString>>;
507
505
  tagline: z.ZodNullable<z.ZodOptional<z.ZodString>>;
508
506
  blog_title: z.ZodNullable<z.ZodOptional<z.ZodString>>;
509
507
  is_blog_enabled: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
@@ -534,7 +532,6 @@ declare const updateStoreSettingsSchema: z.ZodObject<{
534
532
  privacy: z.ZodNullable<z.ZodOptional<z.ZodString>>;
535
533
  }, z.core.$strip>>>>;
536
534
  google_analytics_key: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
537
- shop_introduction: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
538
535
  tagline: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
539
536
  blog_title: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
540
537
  is_blog_enabled: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodBoolean>>>;
@@ -575,7 +572,6 @@ declare const storeWithRelationsSchema: z.ZodObject<{
575
572
  facebook_link: z.ZodNullable<z.ZodOptional<z.ZodURL>>;
576
573
  instagram_link: z.ZodNullable<z.ZodOptional<z.ZodURL>>;
577
574
  google_analytics_key: z.ZodNullable<z.ZodOptional<z.ZodString>>;
578
- shop_introduction: z.ZodNullable<z.ZodOptional<z.ZodString>>;
579
575
  tagline: z.ZodNullable<z.ZodOptional<z.ZodString>>;
580
576
  blog_title: z.ZodNullable<z.ZodOptional<z.ZodString>>;
581
577
  is_blog_enabled: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
@@ -924,14 +920,14 @@ type ProductReviewReplyFilters = z.infer<typeof productReviewReplyFiltersSchema>
924
920
  * The order timeline: status history plus internal staff comments, served to
925
921
  * admin clients by `GET stores/:storeRef/orders/:id/timeline`.
926
922
  *
927
- * This SDK owns the vocabulary; the API pins it with a contract test
928
- * (order-event-type-vocabulary.contract.spec.ts) because the API cannot import
929
- * the SDK. Types only: the dashboard calls the admin routes through its own
923
+ * The vocabulary is owned by `ecomweb-contracts/src/types/order-timeline.ts`;
924
+ * this copy is kept in parity, and the API pins it in
925
+ * `order-event-type-vocabulary.contract.spec.ts`. Types only: the dashboard calls the admin routes through its own
930
926
  * client.
931
927
  */
932
- declare const ORDER_EVENT_TYPES: readonly ["placed", "order_status_changed", "fulfillment_status_changed", "shipping_status_changed", "payment_status_changed", "tracking_number_updated"];
928
+ declare const ORDER_EVENT_TYPES: readonly ["placed", "order_status_changed", "fulfillment_status_changed", "shipping_status_changed", "payment_status_changed", "tracking_number_updated", "shipment_booked", "shipment_cancelled", "shipment_failed"];
933
929
  type OrderEventType = (typeof ORDER_EVENT_TYPES)[number];
934
- declare const ORDER_ACTOR_TYPES: readonly ["staff", "customer", "api_key", "gateway", "system"];
930
+ declare const ORDER_ACTOR_TYPES: readonly ["staff", "customer", "api_key", "gateway", "system", "carrier"];
935
931
  type OrderActorType = (typeof ORDER_ACTOR_TYPES)[number];
936
932
  interface OrderTimelineActor {
937
933
  type: OrderActorType;
@@ -939,6 +935,12 @@ interface OrderTimelineActor {
939
935
  id: string | null;
940
936
  /** Resolved display name, or null when unknown (a gateway reads `arguments.gateway`). */
941
937
  name: string | null;
938
+ /**
939
+ * The staff member's email, for showing a current staff member who has no
940
+ * display name. Null for every other actor type, and for staff who have
941
+ * left the store. Absent from APIs older than this field.
942
+ */
943
+ email?: string | null;
942
944
  }
943
945
  interface OrderTimelineEvent {
944
946
  kind: "event";
@@ -990,7 +992,7 @@ interface OrderCommentMutationResult {
990
992
  /**
991
993
  * Inventory: stock states per variant and location, served to admin clients
992
994
  * under `stores/:storeRef/inventory` (contract:
993
- * docs/superpowers/plans/2026-09-15-inventory-contracts.md in the api repo).
995
+ * ecomweb-project/archive/2026-09-15-inventory-purchase-orders/2026-09-15-inventory-contracts.md in the api repo).
994
996
  *
995
997
  * This SDK owns the vocabulary; the API pins it with
996
998
  * inventory-vocabulary.contract.spec.ts because the API cannot import the SDK.
@@ -1658,6 +1660,36 @@ declare const updateCategorySchema: z.ZodObject<{
1658
1660
  declare const categoryWithChildrenSchema: z.ZodType<CategoryWithChildren>;
1659
1661
  declare const categoryTreeSchema: z.ZodType<CategoryTree>;
1660
1662
 
1663
+ /**
1664
+ * The buyer-facing shipment summary carried on an order, plus its error codes.
1665
+ * The API builds it from the carrier booking; this is the wire shape only.
1666
+ */
1667
+ declare const SHIPMENT_STATUSES: readonly ["booked", "picked_up", "in_transit", "out_for_delivery", "delivered", "failed", "returned", "cancelled"];
1668
+ type ShipmentStatus = (typeof SHIPMENT_STATUSES)[number];
1669
+ /** One tracking event on a shipment. */
1670
+ interface OrderShipmentEvent {
1671
+ /** ISO 8601. */
1672
+ occurred_at: string;
1673
+ /** Carrier status text, ready to show. */
1674
+ label: string;
1675
+ location: string | null;
1676
+ }
1677
+ /** What a buyer sees of their shipment. */
1678
+ interface OrderShipmentSummary {
1679
+ carrier_name: string | null;
1680
+ carrier_logo_url: string | null;
1681
+ service_name: string | null;
1682
+ tracking_number: string | null;
1683
+ track_link: string | null;
1684
+ status: ShipmentStatus | null;
1685
+ events: OrderShipmentEvent[];
1686
+ }
1687
+ /** Error codes the order endpoints return for shipment-related refusals. */
1688
+ declare const ORDER_SHIPMENT_ERROR_CODES: {
1689
+ /** Cancelling is refused because a carrier shipment is already in progress. */
1690
+ readonly CANCEL_BLOCKED_BY_SHIPMENT: "ORDER_CANCEL_BLOCKED_BY_SHIPMENT";
1691
+ };
1692
+
1661
1693
  /**
1662
1694
  * Order-related schemas based on Prisma models
1663
1695
  */
@@ -1741,6 +1773,18 @@ interface Order extends OptionalTimestamp {
1741
1773
  /** Display names resolved server-side from the shippings module. */
1742
1774
  shipping_city_name?: string | null;
1743
1775
  shipping_ward_name?: string | null;
1776
+ /** Carrier name chosen at checkout, when a carrier option was picked. */
1777
+ shipping_carrier?: string | null;
1778
+ /**
1779
+ * The buyer-facing shipment (carrier, tracking, events). Present on the
1780
+ * customer detail and guest lookup responses.
1781
+ */
1782
+ shipment?: OrderShipmentSummary | null;
1783
+ /**
1784
+ * Whether the buyer may still cancel this order. Present on the customer
1785
+ * detail and guest lookup responses.
1786
+ */
1787
+ can_cancel?: boolean;
1744
1788
  source: OrderSource;
1745
1789
  /**
1746
1790
  * The staff member who keyed this order in. Present on the detail
@@ -1782,7 +1826,7 @@ interface CustomerOrderSummary {
1782
1826
  * compatibility but ignored — never rely on a value sent here.
1783
1827
  */
1784
1828
  type ServerComputedOrderAmounts = "subtotal" | "original_subtotal" | "shipping_fee" | "original_shipping_fee" | "shipping_discount" | "discount" | "total";
1785
- type CreateOrder = Omit<Order, "id" | "order_number" | "order_code" | keyof OptionalTimestamp | "applied_promotions" | "shipping_method_name" | "shipping_city_name" | "shipping_ward_name" | "tax" | ServerComputedOrderAmounts | "source" | "created_by"> & Partial<Pick<Order, ServerComputedOrderAmounts>> & {
1829
+ type CreateOrder = Omit<Order, "id" | "order_number" | "order_code" | keyof OptionalTimestamp | "applied_promotions" | "shipping_method_name" | "shipping_city_name" | "shipping_ward_name" | "shipping_carrier" | "shipment" | "can_cancel" | "tax" | ServerComputedOrderAmounts | "source" | "created_by"> & Partial<Pick<Order, ServerComputedOrderAmounts>> & {
1786
1830
  /**
1787
1831
  * Which shipping method the shopper picked. Write-only: the API prices it
1788
1832
  * from the store's shipping rules and rejects a method with no available
@@ -2613,65 +2657,6 @@ type UpdateBlogPost = Partial<CreateBlogPost>;
2613
2657
  type UpdateBlogComment = Partial<Omit<CreateBlogComment, "blog_post_id">>;
2614
2658
  type UpdateBlogSettings = Partial<CreateBlogSettings>;
2615
2659
 
2616
- /**
2617
- * Banner-related schemas based on Prisma models
2618
- */
2619
- interface Banner extends OptionalTimestamp {
2620
- id: Id;
2621
- title: string;
2622
- subtitle: string | null;
2623
- image_url: string;
2624
- link_url: string | null;
2625
- button_text: string | null;
2626
- position: number;
2627
- is_active: boolean;
2628
- metadata: any;
2629
- }
2630
- declare const bannerSchema: z.ZodObject<{
2631
- id: z.ZodInt32;
2632
- title: z.ZodString;
2633
- subtitle: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2634
- image_url: z.ZodURL;
2635
- link_url: z.ZodNullable<z.ZodOptional<z.ZodURL>>;
2636
- button_text: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2637
- position: z.ZodDefault<z.ZodInt32>;
2638
- is_active: z.ZodDefault<z.ZodBoolean>;
2639
- metadata: z.ZodAny;
2640
- created_at: z.ZodNullable<z.ZodOptional<z.ZodISODateTime>>;
2641
- updated_at: z.ZodNullable<z.ZodOptional<z.ZodISODateTime>>;
2642
- }, z.core.$strip>;
2643
- interface CreateBanner extends Omit<Banner, "id" | keyof OptionalTimestamp> {
2644
- }
2645
- declare const createBannerSchema: z.ZodObject<{
2646
- title: z.ZodString;
2647
- image_url: z.ZodURL;
2648
- position: z.ZodDefault<z.ZodInt32>;
2649
- is_active: z.ZodDefault<z.ZodBoolean>;
2650
- metadata: z.ZodAny;
2651
- subtitle: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2652
- link_url: z.ZodNullable<z.ZodOptional<z.ZodURL>>;
2653
- button_text: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2654
- }, z.core.$strip>;
2655
- type UpdateBanner = Partial<CreateBanner>;
2656
- declare const updateBannerSchema: z.ZodObject<{
2657
- title: z.ZodOptional<z.ZodString>;
2658
- image_url: z.ZodOptional<z.ZodURL>;
2659
- position: z.ZodOptional<z.ZodDefault<z.ZodInt32>>;
2660
- is_active: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2661
- metadata: z.ZodOptional<z.ZodAny>;
2662
- subtitle: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
2663
- link_url: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodURL>>>;
2664
- button_text: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
2665
- }, z.core.$strip>;
2666
- interface UpdateBannerPosition {
2667
- id: Id;
2668
- position: number;
2669
- }
2670
- declare const updateBannerPositionSchema: z.ZodObject<{
2671
- id: z.ZodInt32;
2672
- position: z.ZodInt32;
2673
- }, z.core.$strip>;
2674
-
2675
2660
  /**
2676
2661
  * Content-related schemas based on Prisma models
2677
2662
  */
@@ -3148,6 +3133,84 @@ declare function resolveThemeSettings(schema: ThemeSchema, input: unknown): {
3148
3133
  };
3149
3134
  /** "Set" means not null, not "" and not false. */
3150
3135
  declare function isSettingVisible(setting: ThemeSetting, values: ThemeValues): boolean;
3136
+ /** The major of a release version ("1.4.2" → 1); null for anything else. */
3137
+ declare function themeMajor(version: string | null | undefined): number | null;
3138
+ /**
3139
+ * How a theme's settings values move to a new major (theme majors spec):
3140
+ * declared as data in the new major's manifest, run in order by the API
3141
+ * when a merchant upgrades.
3142
+ */
3143
+ type ThemeMigrationStep = {
3144
+ readonly op: "rename";
3145
+ readonly from: string;
3146
+ readonly to: string;
3147
+ } | {
3148
+ readonly op: "remove";
3149
+ readonly key: string;
3150
+ } | {
3151
+ readonly op: "map";
3152
+ readonly key: string;
3153
+ readonly values: Readonly<Record<string, ThemeValue>>;
3154
+ } | {
3155
+ readonly op: "copy";
3156
+ readonly from: string;
3157
+ readonly to: string;
3158
+ } | {
3159
+ readonly op: "default";
3160
+ readonly key: string;
3161
+ readonly value: ThemeValue;
3162
+ };
3163
+ interface ThemeMigration {
3164
+ /** The major these steps upgrade from: the new major minus one. */
3165
+ readonly from: number;
3166
+ readonly steps: readonly ThemeMigrationStep[];
3167
+ }
3168
+ interface ThemeMigrationReport {
3169
+ renamed: {
3170
+ from: string;
3171
+ to: string;
3172
+ }[];
3173
+ removed: string[];
3174
+ mapped: {
3175
+ key: string;
3176
+ from: string;
3177
+ to: ThemeValue;
3178
+ }[];
3179
+ copied: {
3180
+ from: string;
3181
+ to: string;
3182
+ }[];
3183
+ defaulted: string[];
3184
+ }
3185
+ declare const themeMigrationSchema: z.ZodObject<{
3186
+ from: z.ZodNumber;
3187
+ steps: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
3188
+ op: z.ZodLiteral<"rename">;
3189
+ from: z.ZodString;
3190
+ to: z.ZodString;
3191
+ }, z.core.$strict>, z.ZodObject<{
3192
+ op: z.ZodLiteral<"remove">;
3193
+ key: z.ZodString;
3194
+ }, z.core.$strict>, z.ZodObject<{
3195
+ op: z.ZodLiteral<"map">;
3196
+ key: z.ZodString;
3197
+ values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
3198
+ }, z.core.$strict>, z.ZodObject<{
3199
+ op: z.ZodLiteral<"copy">;
3200
+ from: z.ZodString;
3201
+ to: z.ZodString;
3202
+ }, z.core.$strict>, z.ZodObject<{
3203
+ op: z.ZodLiteral<"default">;
3204
+ key: z.ZodString;
3205
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
3206
+ }, z.core.$strict>], "op">>;
3207
+ }, z.core.$strict>;
3208
+ declare function parseThemeMigration(input: unknown): ThemeMigration;
3209
+ /** Runs the steps in order over a copy of `input`. */
3210
+ declare function applyThemeMigration(input: Record<string, unknown>, migration: ThemeMigration): {
3211
+ values: Record<string, unknown>;
3212
+ report: ThemeMigrationReport;
3213
+ };
3151
3214
 
3152
3215
  /**
3153
3216
  * Metafields and metaobjects: the type engine (spec 2026-10-05
@@ -3911,7 +3974,8 @@ interface Collection extends WithSeoMetadata$2 {
3911
3974
  name: string;
3912
3975
  description: string | null;
3913
3976
  slug: string;
3914
- type: "manual" | "automated";
3977
+ /** "smart" collections match products by `search_criteria`; "manual" ones list them. */
3978
+ type: "manual" | "smart";
3915
3979
  status: "active" | "inactive";
3916
3980
  image_url: string | null;
3917
3981
  search_criteria: CollectionSearchCriteria | unknown[] | string | null;
@@ -3919,6 +3983,8 @@ interface Collection extends WithSeoMetadata$2 {
3919
3983
  created_at: string;
3920
3984
  updated_at: string;
3921
3985
  metafields?: StorefrontMetafields;
3986
+ /** A manual collection's products, in collection order. Absent on smart collections and in lists. */
3987
+ product_ids?: number[];
3922
3988
  }
3923
3989
  interface CollectionQueryParams extends BaseQueryParams {
3924
3990
  /** Fetch a specific set of collections — how collection_grid resolves its configured collection_ids. */
@@ -4094,6 +4160,18 @@ interface CreateOrderRequest {
4094
4160
  * option.
4095
4161
  */
4096
4162
  shipping_rate_id?: number;
4163
+ /**
4164
+ * The `carrier_service_id` of the chosen option when it is a carrier
4165
+ * option; send it with `shipping_rate_id`.
4166
+ */
4167
+ shipping_service_id?: string;
4168
+ /**
4169
+ * The chosen carrier option's `amount`, as the buyer saw it. When the API
4170
+ * had to requote and the price differs (or this is absent), it answers
4171
+ * `SHIPPING_QUOTE_CHANGED` with fresh options; send the new amount to
4172
+ * confirm.
4173
+ */
4174
+ shipping_quoted_amount?: number;
4097
4175
  payment_method: PaymentMethod$1;
4098
4176
  notes?: string;
4099
4177
  customer_address_id?: number;
@@ -4202,6 +4280,12 @@ interface PublishedStoreTheme {
4202
4280
  /** The external site's URL (https, no trailing slash); external themes only. */
4203
4281
  external_url?: string | null;
4204
4282
  source_theme_id: string;
4283
+ /**
4284
+ * The catalog release in use, e.g. "1.0.0" (theme majors): the storefront
4285
+ * renders that major's current code. Null for builds and links, absent
4286
+ * from older APIs.
4287
+ */
4288
+ release_version?: string | null;
4205
4289
  values: Record<string, unknown>;
4206
4290
  }
4207
4291
  type StoreConfigurationInfo = Store & {
@@ -4218,6 +4302,11 @@ type StoreByDomainInfo = StoreConfigurationInfo & {
4218
4302
  * shoppers there), else null. Absent from APIs older than external themes.
4219
4303
  */
4220
4304
  storefront_url?: string | null;
4305
+ /**
4306
+ * Set when the host is a theme's preview host, p-<slug>: that theme is
4307
+ * shown there, never the live one. Absent from older APIs.
4308
+ */
4309
+ preview_slug?: string | null;
4221
4310
  };
4222
4311
 
4223
4312
  declare class StoresApi {
@@ -4237,6 +4326,8 @@ declare class ThemesApi {
4237
4326
  constructor(http: IHttpClient);
4238
4327
  /** The store theme a dashboard preview link points to; null if refused. */
4239
4328
  getPreview(storeRef: string, token: string): Promise<PublishedStoreTheme | null>;
4329
+ /** The theme on a preview host, p-<slug>, with its saved values. */
4330
+ getPreviewBySlug(storeRef: string, slug: string): Promise<PublishedStoreTheme | null>;
4240
4331
  }
4241
4332
 
4242
4333
  interface MetaobjectListParams {
@@ -4504,18 +4595,6 @@ declare class SearchApi {
4504
4595
  searchBlog(storeRef: string, params: BlogSearchParams): Promise<BlogSearchResponse>;
4505
4596
  }
4506
4597
 
4507
- interface BannerQueryParams extends BaseQueryParams {
4508
- is_active?: boolean;
4509
- title?: string;
4510
- sort?: "id" | "position" | "title" | "created_at" | "updated_at" | "is_active";
4511
- }
4512
-
4513
- declare class BannersApi {
4514
- private http;
4515
- constructor(http: IHttpClient);
4516
- getPaginated(storeRef: string, query?: BannerQueryParams): Promise<PaginatedResponse<Banner>>;
4517
- }
4518
-
4519
4598
  /**
4520
4599
  * One administrative area, at any depth, for any country. Replaces the
4521
4600
  * old Province/Ward pair: they differed only by which fields were
@@ -4561,6 +4640,8 @@ interface ShippingCalculationRequest {
4561
4640
  method?: "standard" | "express" | "pickup" | "cod";
4562
4641
  distance_km?: number;
4563
4642
  tags?: string[];
4643
+ /** Opt in to live carrier rates alongside fixed ones. Not defaulted by the SDK. */
4644
+ include_carrier_options?: boolean;
4564
4645
  }
4565
4646
  declare const SHIPPING_DELIVERY_TYPES: readonly ["STANDARD", "EXPRESS", "SAME_DAY", "ECONOMY", "PICKUP"];
4566
4647
  type ShippingDeliveryType = (typeof SHIPPING_DELIVERY_TYPES)[number];
@@ -4596,10 +4677,24 @@ interface ShippingOption {
4596
4677
  amount: number;
4597
4678
  currency: string;
4598
4679
  rate_id: number;
4680
+ /** `<rate_id>` for fixed, `<rate_id>:<service_id>` for carrier; absent from APIs before carrier rates. */
4681
+ option_id?: string;
4599
4682
  delivery_type: ShippingDeliveryType;
4600
4683
  display_name: string;
4601
4684
  estimated_days_min?: number | null;
4602
4685
  estimated_days_max?: number | null;
4686
+ /** Set on carrier-quoted options only. */
4687
+ carrier_code?: "allingo";
4688
+ /** The carrier's own id for the chosen service. */
4689
+ carrier_service_id?: string;
4690
+ /** Carrier display name, e.g. for a label beside the price. */
4691
+ carrier_name?: string;
4692
+ /** The carrier's service, e.g. "Giao chuẩn"; tells two options of one carrier apart. */
4693
+ carrier_service_name?: string;
4694
+ /** Carrier logo, or null when the carrier has none. */
4695
+ carrier_logo_url?: string | null;
4696
+ /** Human-readable delivery estimate from the carrier, or null. */
4697
+ estimated_label?: string | null;
4603
4698
  /** Populated only when the caller asks for debug output. */
4604
4699
  zone_id?: number;
4605
4700
  zone_name?: string;
@@ -4609,6 +4704,15 @@ interface ShippingOption {
4609
4704
  rank: number;
4610
4705
  }>;
4611
4706
  }
4707
+ /** Error codes the shipping endpoints and order creation can return. */
4708
+ declare const SHIPPING_ERROR_CODES: {
4709
+ readonly QUOTE_CHANGED: "SHIPPING_QUOTE_CHANGED";
4710
+ readonly RATE_UNAVAILABLE: "ORDER_SHIPPING_RATE_UNAVAILABLE";
4711
+ };
4712
+ /** `details` of a SHIPPING_QUOTE_CHANGED error: the options now on offer. */
4713
+ interface ShippingQuoteChangedDetails {
4714
+ options: ShippingOption[];
4715
+ }
4612
4716
 
4613
4717
  declare class ShippingApi {
4614
4718
  private http;
@@ -5155,7 +5259,6 @@ declare function createEcomwebSdk(options: EcomwebSdkOptions): {
5155
5259
  themes: ThemesApi;
5156
5260
  metaobjects: MetaobjectsApi;
5157
5261
  search: SearchApi;
5158
- banners: BannersApi;
5159
5262
  shipping: ShippingApi;
5160
5263
  promotions: PromotionsApi;
5161
5264
  paymentMethods: PaymentMethodsApi;
@@ -5169,4 +5272,4 @@ declare function createEcomwebSdk(options: EcomwebSdkOptions): {
5169
5272
  };
5170
5273
  type EcomwebSdk = ReturnType<typeof createEcomwebSdk>;
5171
5274
 
5172
- export { ADJUSTABLE_STATES, ADMIN_ORDER_SOURCES, type AddToCartRequest, type Address, AddressesApi, type AdjustQuantitiesRequest, type AdjustableState, type AdminOrderSource, ApiClientError, type ApiError, type ApiResponse, type AppliedPromotion, type AttributeLink, AuthApi, type AuthErrorCode, type AuthIdentity, type AuthResult, type AuthTokens, type AutocompleteParams, type BankAccount, type Banner, type BannerQueryParams, BannersApi, type BaseDeleteOptions, type BaseDeleteResult, type BaseQueryParams, type BatchOrderReviewInvitationsResult, BlogApi, type BlogCategory, type BlogCategoryQueryParams, type BlogComment, type BlogCommentWithReplies, type BlogPost, type BlogPostCategory, type BlogPostQueryParams, type BlogPostStatus, type BlogPostTag, type BlogPostWithRelations, type BlogSearchParams, type BlogSearchResponse, type BlogSettings, type BlogTag, type BlogTagQueryParams, COLLECTION_RULE_MATRIX, CONDITION_TYPE_LABELS, CartApi, type CartApiItem, type CartApiResponse, CategoriesApi, type Category, type CategoryQueryParams, type CategorySearchResponse, type CategoryTree, type CategoryWithChildren, type ChangeEmailPayload, type ChangePasswordPayload, type ChangedResult, type Collection, type CollectionQueryParams, type CollectionRule, type CollectionRuleSet, type CollectionRuleSetCriteria, type CollectionSearchCriteria, CollectionsApi, ConditionType, ConditionTypeSchema, type ConditionTypeType, type ContentPage, ContentPagesApi, type CreateAddressDto, type CreateBanner, type CreateBlogCategory, type CreateBlogComment, type CreateBlogPost, type CreateBlogSettings, type CreateBlogTag, type CreateCategory, type CreateContentPage, type CreateEmbeddedScript, type CreateOrder, type CreateOrderItem, type CreateOrderItemRequest, type CreateOrderRequest, type CreateProduct, type CreateProductReview, type CreateProductReviewReply, type CreateProductVariant, type CreatePromotion, CreatePromotionSchema, type CreateStore, type CreateStoreConfig, type CreateStoreSettings, type CreateVariantOption, type CreateVariantOptionValue, type CurrentIdentity, type Customer, type CustomerAccess, type CustomerOrderFilter, type CustomerOrderSummary, CustomersApi, DEFAULT_BUCKET, DISCOUNT_METHOD_LABELS, type DeleteApiFunction, type DeletedAt, DiscountMethod, DiscountMethodSchema, type DiscountMethodType, EMAIL_COLOR_PATTERN, EMAIL_PALETTE_DEFAULTS, ENTRY_HANDLE_PATTERN, type EcomwebSdk, type EcomwebSdkOptions, type EmbeddedScript, type EmbeddedScriptPlacement, type EngineResult, FILTERABLE_TYPES, type FileKind, type FulfillmentStatus, type GoogleAuthUrl, type GuestOrderLookupParams, type GuestOrderLookupResult, type IHttpClient, INVENTORY_ADJUSTMENT_REASONS, INVENTORY_ERROR_CODES, INVENTORY_POLICIES, INVENTORY_STATES, INVENTORY_STATUS_LABELS, type Id, type ImageFormat, type ImageTransformOptions, type InitiatePaymentResult, type InsufficientInventoryItem, type IntegrationStatus, type InventoryActor, type InventoryAdjustmentReason, type InventoryErrorCode, type InventoryHistoryEntry, type InventoryImportResponse, type InventoryLevelRow, type InventoryLocation, type InventoryPolicy, type InventoryQuantities, type InventoryState, InventoryStatus, KNOWN_PAYMENT_METHODS, LEGACY_STATUS_MIGRATION_MAP, LEVEL_PROVINCE, LEVEL_WARD, type LegacyOrderStatus, type LegacyProductStatus, type LinkValue, type LocationArea, type LocationAreaQuery, type LocationAreasResponse, type LoginPayload, MAX_RULES_PER_SET, MAX_RULE_VALUE_ENTRIES, MEASUREMENT_UNITS, MEDIA_TYPES, MERCHANT_ADJUSTMENT_REASONS, METAFIELD_BASE_TYPES, METAFIELD_KEY_PATTERN, METAFIELD_LIMITS, METAFIELD_OWNER_TYPES, METAFIELD_TYPE_GROUPS, METAOBJECT_REFERENCE_TYPES, METAOBJECT_TYPE_PATTERN, type MeasurementType, type MeasurementValue, MemoryTokenStorage, MenusApi, type MerchantAdjustmentReason, type MessageOutboxStatus, type MetafieldBaseType, type MetafieldBound, type MetafieldContext, type MetafieldDefinitionShape, type MetafieldIssue, type MetafieldIssueCode, type MetafieldListType, type MetafieldOwnerType, type MetafieldType, type MetafieldTypeGroup, type MetafieldValidationKey, type MetafieldValidations, type MetafieldWrite, type MetaobjectDefinitionShape, type MetaobjectFieldShape, type MetaobjectListParams, type MetaobjectListResult, MetaobjectsApi, type MoneyValue, type MoveQuantitiesRequest, type MutationApiFunction, OBJECT_PREFIX, ORDER_ACTOR_TYPES, ORDER_EVENT_TYPES, ORDER_SOURCES, type OptionalTimestamp, type Order, type OrderActorType, type OrderCommentMutationResult, type OrderCreatedBy, type OrderEventType, type OrderItem, type PaymentMethod$1 as OrderPaymentMethod, type OrderReviewInvitationSummary, type OrderSource, type OrderStatus, type OrderTimelineActor, type OrderTimelineComment, type OrderTimelineCommentAuthor, type OrderTimelineEntry, type OrderTimelineEvent, type OrderTimelineResponse, type OrderWithItems, OrdersApi, PAGINATION_DEFAULTS, PRIVATE_REFERENCE_TYPES, PRODUCT_STATUS_LABELS, PROMOTION_MODE_COLORS, PROMOTION_MODE_LABELS, PROMOTION_STATUS_COLORS, PROMOTION_STATUS_LABELS, PROMOTION_TYPE_COLORS, PROMOTION_TYPE_LABELS, type PaginatedApiFunction, type PaginatedPromotionsResponse, PaginatedPromotionsResponseSchema, type PaginatedResponse, type PaginatedReviewsResponse, type PaginationMeta, type PasswordPolicy, type PaymentCredentialStatus, type PaymentMethod$1 as PaymentMethod, PaymentMethodsApi, type PaymentStateResult, type PaymentStatus, PaymentsApi, type Product, type ProductDetail, type ProductImage, type ProductQueryParams, type ProductReview, type ProductReviewFilters, type ProductReviewReply, type ProductReviewReplyFilters, type ProductReviewStats, type ProductReviewWithReplies, type ProductSearchParams, type ProductSearchResponse, type ProductService, ProductStatus, type ProductVariant, type ProductVariantCombination, type ProductVariantCombinationEntry, type ProductVariantWithCombinations, type ProductVideo, type ProductWithReviewStats, type ProductWithVariants, ProductsApi, type Promotion, type PromotionData, PromotionMode, PromotionModeSchema, type PromotionModeType, type PromotionQueryParams, PromotionQueryParamsSchema, PromotionSchema, type PromotionStatistics, PromotionStatisticsSchema, PromotionStatus, PromotionStatusSchema, type PromotionStatusType, type PromotionSuggestion, type PromotionSuggestionsResponse, PromotionType, PromotionTypeSchema, type PromotionTypeType, type PromotionWithDiscount, PromotionWithDiscountSchema, PromotionsApi, type PublicAuthConfig, type PublishedStoreTheme, type QuantitiesResponse, RENDER_PREFIX, RESOURCE_REFERENCE_TYPES, RULE_FIELDS, type RatingValue, RedirectsApi, type RegisterPayload, type RequestOptions, type ResetPasswordPayload, type ResetResult, type ResizeMode, type ResolvedAsset, type ResolvedBlogPostRef, type ResolvedCollectionRef, type ResolvedImage, type ResolvedMetaobjectRef, type ResolvedMetaobjectStub, type ResolvedPageRef, type ResolvedProductRef, type ResolvedVariantRef, type ReviewInvitationPublicData, type ReviewStatus, ReviewsApi, type RichTextBlock, type RichTextHeading, type RichTextInline, type RichTextLink, type RichTextList, type RichTextListItem, type RichTextNode, type RichTextParagraph, type RichTextRoot, type RichTextText, type RuleField, type RuleFieldSpec, type RuleOperator, type RuleOperatorSpec, type RuleValueKind, SHIPPING_CONDITION_TYPES, SHIPPING_DELIVERY_TYPES, SHIPPING_RATE_TYPES, SearchApi, type SearchCategory, type SearchProduct, type SentResult, type SeoMetadata$3 as SeoMetadata, type ServerComputedOrderAmounts, type SetQuantitiesRequest, type SetQuantitiesResponse, ShippingApi, type ShippingCalculationRequest, type ShippingConditionType, type ShippingDeliveryType, type ShippingOption, type ShippingRate, type ShippingRateType, type ShippingStatus, type ShippingZone, type SingleEntityApiFunction, type StaleQuantity, type Store, type StoreByDomainInfo, type StoreConfig, type StoreConfigurationInfo, type StoreEmailBrandingSettings, type StoreMenu, type StoreMenuItem, type PaymentMethod as StorePaymentMethod, type StoreSettings, type StoreStatus, type StoreWithRelations, type StorefrontMetafield, type StorefrontMetafields, type StorefrontMetaobjectEntry, StoresApi, type SubmitReviewInvitationPayload, THEME_HEX_COLOR, type ThemeDisplayItem, type ThemeSchema, type ThemeSchemaGroup, type ThemeSchemaItem, type ThemeSetting, type ThemeSettingType, type ThemeSettingsOf, type ThemeValue, type ThemeValueError, type ThemeValues, type ThemeVisibleIf, ThemesApi, type Timestamp, type TocItem, type TokenStorage, UNAVAILABLE_STATES, type UnavailableState, type UpdateAddressDto, type UpdateBanner, type UpdateBannerPosition, type UpdateBlogCategory, type UpdateBlogComment, type UpdateBlogPost, type UpdateBlogSettings, type UpdateBlogTag, type UpdateCartItemRequest, type UpdateCategory, type UpdateContentPage, type UpdateEmbeddedScript, type UpdateOrder, type UpdateOrderItem, type UpdateProduct, type UpdateProductReview, type UpdateProductReviewReply, type UpdateProductVariant, type UpdatePromotion, UpdatePromotionSchema, type UpdateStore, type UpdateStoreConfig, type UpdateStoreSettings, type UpdateVariantOption, type UpdateVariantOptionValue, type UpsertCustomerForAuthPayload, type UrlRedirect, VALIDATION_KEYS, type ValidatePromotionCodeRequest, type ValidatePromotionCodeResponse, type VariantOption, type VariantOptionValue, type VariantStatus, type VerifiedResult, type VerifyOtpPayload, type WithMetafields, type WithSeoMetadata$3 as WithSeoMetadata, allowedCustomerAccess, allowedFileKinds, allowedValuesFor, appliedPromotionSchema, assetBaseUrl, attributeLinkSchema, attributeLinkValueSchema, bannerSchema, baseDeleteOptionsSchema, baseDeleteResultSchema, baseQueryParamsSchema, baseTypeOf, blogCategorySchema, blogCommentSchema, blogCommentWithRepliesSchema, blogPostCategorySchema, blogPostSchema, blogPostStatusSchema, blogPostTagSchema, blogPostWithRelationsSchema, blogSettingsSchema, blogTagSchema, buildTransformQuery, categorySchema, categoryTreeSchema, categoryWithChildrenSchema, checkMetaobjectFieldChanges, colorSchema, compareDecimal, contentPageSchema, createAuthAwareHttpClient, createBannerSchema, createBlogCategorySchema, createBlogCommentSchema, createBlogPostSchema, createBlogSettingsSchema, createBlogTagSchema, createCategorySchema, createContentPageSchema, createEcomwebSdk, createEmbeddedScriptSchema, createOrderItemSchema, createOrderSchema, createProductReviewReplySchema, createProductReviewSchema, createProductSchema, createProductVariantSchema, createStoreConfigSchema, createStoreSchema, createStoreSettingsSchema, createVariantOptionSchema, createVariantOptionValueSchema, customerOrderSummarySchema, decimalSchema, deletedAtSchema, dimensionsSchema, emailBrandingSchema, emailBrandingShape, emailSchema, embeddedScriptPlacementSchema, embeddedScriptSchema, ensureSuccess, entryDisplayName, fromObjectPublicUrlToRender, fulfillmentStatusSchema, idSchema, integrationStatusSchema, inventoryStatusSchema, isBlankValue, isBlankValueFor, isEditableStatus, isListType, isMetafieldType, isPublishableStatus, isRuleField, isSafeRegex, isSettingVisible, isUnpublishedStatus, isValidEntryHandle, jsonSchema, legacyOrderStatusSchema, legacyProductStatusSchema, legalLinksSchema, measurementInBaseUnit, messageOutboxStatusSchema, metafieldIdentifier, moneySchema, normalizeDate, normalizeDateTime, normalizeDecimal, normalizeId, onHand, operatorsForField, optionalTimestampSchema, optionalUrlSchema, orderItemSchema, orderSchema, orderStatusSchema, orderWithItemsSchema, paginatedResponseSchema, paginationMetaSchema, paginationSchema, parseMetafieldIdentifier, parseStorageUrl, parseThemeSchema, paymentMethodSchema, paymentStatusSchema, phoneSchema, positionOrderSchema, productReviewFiltersSchema, productReviewReplyFiltersSchema, productReviewReplySchema, productReviewSchema, productReviewStatsSchema, productReviewWithRepliesSchema, productSchema, productStatusSchema, productVariantCombinationEntrySchema, productVariantCombinationSchema, productVariantSchema, productVariantWithCombinationsSchema, productWithReviewStatsSchema, productWithVariantsAndReviewStatsSchema, productWithVariantsSchema, resolveAssetUrl, resolveThemeSettings, reviewStatusSchema, rewriteSupabaseUrl, richTextLength, safeParseBaseQueryParams, safeParsePaginationMeta, shippingStatusSchema, slugSchema, sortOrderSchema, storeConfigSchema, storeIdSchema, storeSchema, storeSettingsSchema, storeStatusSchema, storeWithRelationsSchema, storefrontAccessAllowed, strictUrlSchema, themeDefaults, themeSchemaSchema, themeSettings, timestampSchema, toEntryHandle, toMetafieldKey, toObjectUrl, toRenderUrl, tocItemSchema, transformationsEnabled, unavailable, unwrap, unwrapOrNull, updateBannerPositionSchema, updateBannerSchema, updateBlogCategorySchema, updateBlogCommentSchema, updateBlogPostSchema, updateBlogSettingsSchema, updateBlogTagSchema, updateCategorySchema, updateContentPageSchema, updateEmbeddedScriptSchema, updateOrderItemSchema, updateOrderSchema, updateProductReviewReplySchema, updateProductReviewSchema, updateProductSchema, updateProductVariantSchema, updateStoreConfigSchema, updateStoreSchema, updateStoreSettingsSchema, updateVariantOptionSchema, updateVariantOptionValueSchema, urlSchema, uuidSchema, validateMetafieldDefinition, validateMetafieldValue, validateMetaobjectDefinition, validateMetaobjectEntry, validatePaginationMeta, validateRichText, validateThemeValues, validateValidations, valueKindFor, variantOptionSchema, variantOptionValueSchema, variantStatusSchema };
5275
+ export { ADJUSTABLE_STATES, ADMIN_ORDER_SOURCES, type AddToCartRequest, type Address, AddressesApi, type AdjustQuantitiesRequest, type AdjustableState, type AdminOrderSource, ApiClientError, type ApiError, type ApiResponse, type AppliedPromotion, type AttributeLink, AuthApi, type AuthErrorCode, type AuthIdentity, type AuthResult, type AuthTokens, type AutocompleteParams, type BankAccount, type BaseDeleteOptions, type BaseDeleteResult, type BaseQueryParams, type BatchOrderReviewInvitationsResult, BlogApi, type BlogCategory, type BlogCategoryQueryParams, type BlogComment, type BlogCommentWithReplies, type BlogPost, type BlogPostCategory, type BlogPostQueryParams, type BlogPostStatus, type BlogPostTag, type BlogPostWithRelations, type BlogSearchParams, type BlogSearchResponse, type BlogSettings, type BlogTag, type BlogTagQueryParams, COLLECTION_RULE_MATRIX, CONDITION_TYPE_LABELS, CartApi, type CartApiItem, type CartApiResponse, CategoriesApi, type Category, type CategoryQueryParams, type CategorySearchResponse, type CategoryTree, type CategoryWithChildren, type ChangeEmailPayload, type ChangePasswordPayload, type ChangedResult, type Collection, type CollectionQueryParams, type CollectionRule, type CollectionRuleSet, type CollectionRuleSetCriteria, type CollectionSearchCriteria, CollectionsApi, ConditionType, ConditionTypeSchema, type ConditionTypeType, type ContentPage, ContentPagesApi, type CreateAddressDto, type CreateBlogCategory, type CreateBlogComment, type CreateBlogPost, type CreateBlogSettings, type CreateBlogTag, type CreateCategory, type CreateContentPage, type CreateEmbeddedScript, type CreateOrder, type CreateOrderItem, type CreateOrderItemRequest, type CreateOrderRequest, type CreateProduct, type CreateProductReview, type CreateProductReviewReply, type CreateProductVariant, type CreatePromotion, CreatePromotionSchema, type CreateStore, type CreateStoreConfig, type CreateStoreSettings, type CreateVariantOption, type CreateVariantOptionValue, type CurrentIdentity, type Customer, type CustomerAccess, type CustomerOrderFilter, type CustomerOrderSummary, CustomersApi, DEFAULT_BUCKET, DISCOUNT_METHOD_LABELS, type DeleteApiFunction, type DeletedAt, DiscountMethod, DiscountMethodSchema, type DiscountMethodType, EMAIL_COLOR_PATTERN, EMAIL_PALETTE_DEFAULTS, ENTRY_HANDLE_PATTERN, type EcomwebSdk, type EcomwebSdkOptions, type EmbeddedScript, type EmbeddedScriptPlacement, type EngineResult, FILTERABLE_TYPES, type FileKind, type FulfillmentStatus, type GoogleAuthUrl, type GuestOrderLookupParams, type GuestOrderLookupResult, type IHttpClient, INVENTORY_ADJUSTMENT_REASONS, INVENTORY_ERROR_CODES, INVENTORY_POLICIES, INVENTORY_STATES, INVENTORY_STATUS_LABELS, type Id, type ImageFormat, type ImageTransformOptions, type InitiatePaymentResult, type InsufficientInventoryItem, type IntegrationStatus, type InventoryActor, type InventoryAdjustmentReason, type InventoryErrorCode, type InventoryHistoryEntry, type InventoryImportResponse, type InventoryLevelRow, type InventoryLocation, type InventoryPolicy, type InventoryQuantities, type InventoryState, InventoryStatus, KNOWN_PAYMENT_METHODS, LEGACY_STATUS_MIGRATION_MAP, LEVEL_PROVINCE, LEVEL_WARD, type LegacyOrderStatus, type LegacyProductStatus, type LinkValue, type LocationArea, type LocationAreaQuery, type LocationAreasResponse, type LoginPayload, MAX_RULES_PER_SET, MAX_RULE_VALUE_ENTRIES, MEASUREMENT_UNITS, MEDIA_TYPES, MERCHANT_ADJUSTMENT_REASONS, METAFIELD_BASE_TYPES, METAFIELD_KEY_PATTERN, METAFIELD_LIMITS, METAFIELD_OWNER_TYPES, METAFIELD_TYPE_GROUPS, METAOBJECT_REFERENCE_TYPES, METAOBJECT_TYPE_PATTERN, type MeasurementType, type MeasurementValue, MemoryTokenStorage, MenusApi, type MerchantAdjustmentReason, type MessageOutboxStatus, type MetafieldBaseType, type MetafieldBound, type MetafieldContext, type MetafieldDefinitionShape, type MetafieldIssue, type MetafieldIssueCode, type MetafieldListType, type MetafieldOwnerType, type MetafieldType, type MetafieldTypeGroup, type MetafieldValidationKey, type MetafieldValidations, type MetafieldWrite, type MetaobjectDefinitionShape, type MetaobjectFieldShape, type MetaobjectListParams, type MetaobjectListResult, MetaobjectsApi, type MoneyValue, type MoveQuantitiesRequest, type MutationApiFunction, OBJECT_PREFIX, ORDER_ACTOR_TYPES, ORDER_EVENT_TYPES, ORDER_SHIPMENT_ERROR_CODES, ORDER_SOURCES, type OptionalTimestamp, type Order, type OrderActorType, type OrderCommentMutationResult, type OrderCreatedBy, type OrderEventType, type OrderItem, type PaymentMethod$1 as OrderPaymentMethod, type OrderReviewInvitationSummary, type OrderShipmentEvent, type OrderShipmentSummary, type OrderSource, type OrderStatus, type OrderTimelineActor, type OrderTimelineComment, type OrderTimelineCommentAuthor, type OrderTimelineEntry, type OrderTimelineEvent, type OrderTimelineResponse, type OrderWithItems, OrdersApi, PAGINATION_DEFAULTS, PRIVATE_REFERENCE_TYPES, PRODUCT_STATUS_LABELS, PROMOTION_MODE_COLORS, PROMOTION_MODE_LABELS, PROMOTION_STATUS_COLORS, PROMOTION_STATUS_LABELS, PROMOTION_TYPE_COLORS, PROMOTION_TYPE_LABELS, type PaginatedApiFunction, type PaginatedPromotionsResponse, PaginatedPromotionsResponseSchema, type PaginatedResponse, type PaginatedReviewsResponse, type PaginationMeta, type PasswordPolicy, type PaymentCredentialStatus, type PaymentMethod$1 as PaymentMethod, PaymentMethodsApi, type PaymentStateResult, type PaymentStatus, PaymentsApi, type Product, type ProductDetail, type ProductImage, type ProductQueryParams, type ProductReview, type ProductReviewFilters, type ProductReviewReply, type ProductReviewReplyFilters, type ProductReviewStats, type ProductReviewWithReplies, type ProductSearchParams, type ProductSearchResponse, type ProductService, ProductStatus, type ProductVariant, type ProductVariantCombination, type ProductVariantCombinationEntry, type ProductVariantWithCombinations, type ProductVideo, type ProductWithReviewStats, type ProductWithVariants, ProductsApi, type Promotion, type PromotionData, PromotionMode, PromotionModeSchema, type PromotionModeType, type PromotionQueryParams, PromotionQueryParamsSchema, PromotionSchema, type PromotionStatistics, PromotionStatisticsSchema, PromotionStatus, PromotionStatusSchema, type PromotionStatusType, type PromotionSuggestion, type PromotionSuggestionsResponse, PromotionType, PromotionTypeSchema, type PromotionTypeType, type PromotionWithDiscount, PromotionWithDiscountSchema, PromotionsApi, type PublicAuthConfig, type PublishedStoreTheme, type QuantitiesResponse, RENDER_PREFIX, RESOURCE_REFERENCE_TYPES, RULE_FIELDS, type RatingValue, RedirectsApi, type RegisterPayload, type RequestOptions, type ResetPasswordPayload, type ResetResult, type ResizeMode, type ResolvedAsset, type ResolvedBlogPostRef, type ResolvedCollectionRef, type ResolvedImage, type ResolvedMetaobjectRef, type ResolvedMetaobjectStub, type ResolvedPageRef, type ResolvedProductRef, type ResolvedVariantRef, type ReviewInvitationPublicData, type ReviewStatus, ReviewsApi, type RichTextBlock, type RichTextHeading, type RichTextInline, type RichTextLink, type RichTextList, type RichTextListItem, type RichTextNode, type RichTextParagraph, type RichTextRoot, type RichTextText, type RuleField, type RuleFieldSpec, type RuleOperator, type RuleOperatorSpec, type RuleValueKind, SHIPMENT_STATUSES, SHIPPING_CONDITION_TYPES, SHIPPING_DELIVERY_TYPES, SHIPPING_ERROR_CODES, SHIPPING_RATE_TYPES, SearchApi, type SearchCategory, type SearchProduct, type SentResult, type SeoMetadata$3 as SeoMetadata, type ServerComputedOrderAmounts, type SetQuantitiesRequest, type SetQuantitiesResponse, type ShipmentStatus, ShippingApi, type ShippingCalculationRequest, type ShippingConditionType, type ShippingDeliveryType, type ShippingOption, type ShippingQuoteChangedDetails, type ShippingRate, type ShippingRateType, type ShippingStatus, type ShippingZone, type SingleEntityApiFunction, type StaleQuantity, type Store, type StoreByDomainInfo, type StoreConfig, type StoreConfigurationInfo, type StoreEmailBrandingSettings, type StoreMenu, type StoreMenuItem, type PaymentMethod as StorePaymentMethod, type StoreSettings, type StoreStatus, type StoreWithRelations, type StorefrontMetafield, type StorefrontMetafields, type StorefrontMetaobjectEntry, StoresApi, type SubmitReviewInvitationPayload, THEME_HEX_COLOR, type ThemeDisplayItem, type ThemeMigration, type ThemeMigrationReport, type ThemeMigrationStep, type ThemeSchema, type ThemeSchemaGroup, type ThemeSchemaItem, type ThemeSetting, type ThemeSettingType, type ThemeSettingsOf, type ThemeValue, type ThemeValueError, type ThemeValues, type ThemeVisibleIf, ThemesApi, type Timestamp, type TocItem, type TokenStorage, UNAVAILABLE_STATES, type UnavailableState, type UpdateAddressDto, type UpdateBlogCategory, type UpdateBlogComment, type UpdateBlogPost, type UpdateBlogSettings, type UpdateBlogTag, type UpdateCartItemRequest, type UpdateCategory, type UpdateContentPage, type UpdateEmbeddedScript, type UpdateOrder, type UpdateOrderItem, type UpdateProduct, type UpdateProductReview, type UpdateProductReviewReply, type UpdateProductVariant, type UpdatePromotion, UpdatePromotionSchema, type UpdateStore, type UpdateStoreConfig, type UpdateStoreSettings, type UpdateVariantOption, type UpdateVariantOptionValue, type UpsertCustomerForAuthPayload, type UrlRedirect, VALIDATION_KEYS, type ValidatePromotionCodeRequest, type ValidatePromotionCodeResponse, type VariantOption, type VariantOptionValue, type VariantStatus, type VerifiedResult, type VerifyOtpPayload, type WithMetafields, type WithSeoMetadata$3 as WithSeoMetadata, allowedCustomerAccess, allowedFileKinds, allowedValuesFor, appliedPromotionSchema, applyThemeMigration, assetBaseUrl, attributeLinkSchema, attributeLinkValueSchema, baseDeleteOptionsSchema, baseDeleteResultSchema, baseQueryParamsSchema, baseTypeOf, blogCategorySchema, blogCommentSchema, blogCommentWithRepliesSchema, blogPostCategorySchema, blogPostSchema, blogPostStatusSchema, blogPostTagSchema, blogPostWithRelationsSchema, blogSettingsSchema, blogTagSchema, buildTransformQuery, categorySchema, categoryTreeSchema, categoryWithChildrenSchema, checkMetaobjectFieldChanges, colorSchema, compareDecimal, contentPageSchema, createAuthAwareHttpClient, createBlogCategorySchema, createBlogCommentSchema, createBlogPostSchema, createBlogSettingsSchema, createBlogTagSchema, createCategorySchema, createContentPageSchema, createEcomwebSdk, createEmbeddedScriptSchema, createOrderItemSchema, createOrderSchema, createProductReviewReplySchema, createProductReviewSchema, createProductSchema, createProductVariantSchema, createStoreConfigSchema, createStoreSchema, createStoreSettingsSchema, createVariantOptionSchema, createVariantOptionValueSchema, customerOrderSummarySchema, decimalSchema, deletedAtSchema, dimensionsSchema, emailBrandingSchema, emailBrandingShape, emailSchema, embeddedScriptPlacementSchema, embeddedScriptSchema, ensureSuccess, entryDisplayName, fromObjectPublicUrlToRender, fulfillmentStatusSchema, idSchema, integrationStatusSchema, inventoryStatusSchema, isBlankValue, isBlankValueFor, isEditableStatus, isListType, isMetafieldType, isPublishableStatus, isRuleField, isSafeRegex, isSettingVisible, isUnpublishedStatus, isValidEntryHandle, jsonSchema, legacyOrderStatusSchema, legacyProductStatusSchema, legalLinksSchema, measurementInBaseUnit, messageOutboxStatusSchema, metafieldIdentifier, moneySchema, normalizeDate, normalizeDateTime, normalizeDecimal, normalizeId, onHand, operatorsForField, optionalTimestampSchema, optionalUrlSchema, orderItemSchema, orderSchema, orderStatusSchema, orderWithItemsSchema, paginatedResponseSchema, paginationMetaSchema, paginationSchema, parseMetafieldIdentifier, parseStorageUrl, parseThemeMigration, parseThemeSchema, paymentMethodSchema, paymentStatusSchema, phoneSchema, positionOrderSchema, productReviewFiltersSchema, productReviewReplyFiltersSchema, productReviewReplySchema, productReviewSchema, productReviewStatsSchema, productReviewWithRepliesSchema, productSchema, productStatusSchema, productVariantCombinationEntrySchema, productVariantCombinationSchema, productVariantSchema, productVariantWithCombinationsSchema, productWithReviewStatsSchema, productWithVariantsAndReviewStatsSchema, productWithVariantsSchema, resolveAssetUrl, resolveThemeSettings, reviewStatusSchema, rewriteSupabaseUrl, richTextLength, safeParseBaseQueryParams, safeParsePaginationMeta, shippingStatusSchema, slugSchema, sortOrderSchema, storeConfigSchema, storeIdSchema, storeSchema, storeSettingsSchema, storeStatusSchema, storeWithRelationsSchema, storefrontAccessAllowed, strictUrlSchema, themeDefaults, themeMajor, themeMigrationSchema, themeSchemaSchema, themeSettings, timestampSchema, toEntryHandle, toMetafieldKey, toObjectUrl, toRenderUrl, tocItemSchema, transformationsEnabled, unavailable, unwrap, unwrapOrNull, updateBlogCategorySchema, updateBlogCommentSchema, updateBlogPostSchema, updateBlogSettingsSchema, updateBlogTagSchema, updateCategorySchema, updateContentPageSchema, updateEmbeddedScriptSchema, updateOrderItemSchema, updateOrderSchema, updateProductReviewReplySchema, updateProductReviewSchema, updateProductSchema, updateProductVariantSchema, updateStoreConfigSchema, updateStoreSchema, updateStoreSettingsSchema, updateVariantOptionSchema, updateVariantOptionValueSchema, urlSchema, uuidSchema, validateMetafieldDefinition, validateMetafieldValue, validateMetaobjectDefinition, validateMetaobjectEntry, validatePaginationMeta, validateRichText, validateThemeValues, validateValidations, valueKindFor, variantOptionSchema, variantOptionValueSchema, variantStatusSchema };