@thorprovider/types 7.2.0 → 7.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,41 @@
1
1
  # @thorprovider/types Changelog
2
2
 
3
+ ## 7.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - d8dc884: Add in-checkout saved-address management, a recipient-first address form, and explicit street lines.
8
+
9
+ - `@thorprovider/blocks`: `Checkout` gains additive saved-address create/update/delete callbacks and `savedAddressState`, renders selectable address cards with inline deletion, a contextual update/save-as-new/save row, a recipient group, and separate required/optional street lines. Country now sits directly above state/province.
10
+ - `@thorprovider/types`: `Address` gains `label`, `CreateAddressData` gains `label`/default flags, and `CheckoutAddressValues` documents recipient semantics.
11
+ - `@thorprovider/adapters`: Medusa maps `address_name` to `label`, sends labels/default flags, resolves the created address by id instead of array position, preserves omitted fields on update, normalizes country codes (lowercase on write, uppercase on transform), and exposes province options by display name with code lookup for city cascades.
12
+ - `@thorprovider/runtime/commerce`: adds token-scoped create/update/delete address helpers and a saved-address validator; **the first street line is now explicitly required** (`checkoutAddressSchema.address1`), while the second remains optional.
13
+ - `@thorprovider/storefront`: wires authenticated address mutations, the refreshed saved list, create/cancel snapshots, the first-address default shipping policy, Spanish recipient/CRUD copy, the required-first-line step gate, the location and saved-address action bindings, and cart-address synchronization when entering payment.
14
+
15
+ - 3f15075: Read the backend's grouped delivery quote in the checkout and apply one option per group before payment.
16
+
17
+ - `@thorprovider/types`: adds the storefront-neutral grouped shipping contract (`ShippingGroup`, `ShippingGroupOption`, `ShippingGroupItem`, `ShippingGroupQuote`, `ShippingGroupSelection`) and optional `getCheckoutShippingGroups`/`applyCheckoutShippingGroups` operations on `CommerceProvider`, so providers without the store endpoints keep their existing contract.
18
+ - `@thorprovider/adapters`: the Medusa provider calls `POST /store/thor/checkout/shipping-options` and `POST /store/thor/checkout/shipping-groups`, validating the quote with Zod before returning it. A cart without a quotable destination returns an empty quote without calling the endpoint, and the apply never reads totals from its response.
19
+ - `@thorprovider/runtime/commerce`: adds context-scoped `getCheckoutShippingGroups` and `applyCheckoutShippingGroups`; apply re-reads the authoritative cart, and a provider without the optional methods fails with `CHECKOUT_SHIPPING_GROUPS_UNSUPPORTED` instead of a flat fallback.
20
+ - `@thorprovider/storefront`: the generated checkout maps backend groups 1:1 to the existing delivery groups, keeps one selection per group across quotes, gates the shipping step on complete groups, applies all selections before payment, and surfaces grouped delivery as explicit `error`/`unavailable` states. The `checkout` block contract is unchanged.
21
+
22
+ Migration: the backend store endpoints must exist before this template version ships. Existing generated storefronts must run `storefront sync` and add the group `items` mirror to their user-owned `views/checkout/schema.ts`; mock data renders delivery as unavailable until the mock provider implements the grouped operations.
23
+
24
+ - 3ce1d5d: Add grouped delivery detail to the checkout review.
25
+
26
+ - `@thorprovider/types`: `CheckoutShippingGroup` gains optional `items` (`CheckoutShippingGroupItem`: `lineId`, optional `quantity`) for backend line membership.
27
+ - `@thorprovider/blocks`: review renders one card per delivery group when the host supplies more than one, with the selected method, host-formatted estimate, per-group price, and group items. One group keeps the compact delivery row and flat lines list. Group items render only when membership covers every line quantity exactly once; otherwise the flat list is used. Per-group amounts are rendered verbatim and never summed; no date arithmetic or backend call is added.
28
+
29
+ - 1c397c2: Replace the flat checkout values with the structured storefront checkout contract.
30
+
31
+ - `@thorprovider/blocks` is a **breaking major**: `Checkout` now receives controlled `contact`, `shippingAddress`, `billingAddress`, `sameAsShipping`, `paymentMethod`, `customer`, `savedAddresses`, `shippingGroups`, location options, interruption/availability states, and a `CheckoutSubmission` snapshot. Country, province/state, and city are host-supplied selectors; the block never fetches, pre-fills, or computes totals.
32
+ - `@thorprovider/types` adds the shared type-only checkout address, location-option, saved-address/default, interruption, and submission contracts.
33
+ - `@thorprovider/adapters` preserves both default address flags and adds store geo-reference reads for countries, provinces, and cities.
34
+ - `@thorprovider/runtime/commerce` adds the pure customer-prefill helper with cart-first, fill-empty-only precedence and location matching.
35
+ - `@thorprovider/storefront` updates the checkout template and guidance to the structured contract.
36
+
37
+ Migration: replace `values`/`onChange` with `contact` + `onContactChange`, `shippingAddress` + `onShippingAddressChange`, `billingAddress`/`sameAsShipping`, and `paymentMethod`; replace `countries` with `shippingLocations`/`billingLocations`; replace `shippingOptions`/`selectedShippingOptionId` with `shippingGroups`; update `fieldErrors`/`fieldDescriptions` to the nested maps and pass `customer`/`savedAddresses` only when the host has resolved them.
38
+
3
39
  ## 7.1.0
4
40
 
5
41
  ### Minor Changes
package/dist/index.d.mts CHANGED
@@ -157,6 +157,236 @@ interface OrderReceipt {
157
157
  createdAt: string;
158
158
  }
159
159
 
160
+ /**
161
+ * Checkout contracts shared by the storefront host and the canonical Checkout
162
+ * block. Type-only: no runtime values, validation, or rendering live here.
163
+ *
164
+ * The block receives only mapped data. It never reads a session, a customer
165
+ * profile, an address book, a location endpoint, or a backend cart.
166
+ */
167
+
168
+ type CheckoutReadState = 'idle' | 'pending' | 'error' | 'unavailable';
169
+ /** One selectable option for a country, province/state, or city. */
170
+ interface CheckoutAddressOption {
171
+ value: string;
172
+ label: string;
173
+ }
174
+ type CheckoutAddressLevel = 'countries' | 'provinces' | 'cities';
175
+ /**
176
+ * Host-supplied location options for one address (shipping or billing).
177
+ * A child level is selectable only after its parent value exists and the host
178
+ * supplies its options. The block never fetches, filters, or cascades them.
179
+ */
180
+ interface CheckoutLocationOptions {
181
+ countries: CheckoutAddressOption[];
182
+ provinces: CheckoutAddressOption[];
183
+ cities: CheckoutAddressOption[];
184
+ countriesState?: CheckoutReadState;
185
+ provincesState?: CheckoutReadState;
186
+ citiesState?: CheckoutReadState;
187
+ countriesError?: string;
188
+ provincesError?: string;
189
+ citiesError?: string;
190
+ }
191
+ /**
192
+ * Controlled structured address values. Country/province/city are option values.
193
+ * `firstName`, `lastName`, `company`, and `phone` identify the recipient of the
194
+ * order, not necessarily the signed-in buyer. Hosts map these fields to the
195
+ * customer address without overwriting the buyer/contact identity.
196
+ */
197
+ interface CheckoutAddressValues {
198
+ firstName: string;
199
+ lastName: string;
200
+ address1: string;
201
+ address2?: string;
202
+ company?: string;
203
+ city: string;
204
+ province?: string;
205
+ postalCode?: string;
206
+ /** ISO 3166-1 alpha-2 for Medusa; opaque to the block. */
207
+ countryCode: string;
208
+ phone?: string;
209
+ }
210
+ interface CheckoutContactValues {
211
+ email: string;
212
+ firstName: string;
213
+ lastName: string;
214
+ phone: string;
215
+ }
216
+ /** Authenticated identity mapped by the host. No token or raw customer object. */
217
+ interface CheckoutCustomerIdentity {
218
+ id: string;
219
+ email: string;
220
+ firstName?: string;
221
+ lastName?: string;
222
+ }
223
+ /** One saved address supplied by the host, with both default flags. */
224
+ interface CheckoutSavedAddress {
225
+ id: string;
226
+ label?: string;
227
+ address: CheckoutAddressValues;
228
+ isDefaultShipping?: boolean;
229
+ isDefaultBilling?: boolean;
230
+ }
231
+ interface CheckoutShippingOption {
232
+ id: string;
233
+ name: string;
234
+ price?: Money;
235
+ description?: string;
236
+ estimatedDays?: string;
237
+ pickup?: boolean;
238
+ locationName?: string;
239
+ disabled?: boolean;
240
+ disabledReason?: string;
241
+ }
242
+ interface CheckoutShippingGroup {
243
+ id: string;
244
+ label?: string;
245
+ /** One backend order line assigned to this group. */
246
+ items?: CheckoutShippingGroupItem[];
247
+ itemCount?: number;
248
+ options: CheckoutShippingOption[];
249
+ selectedOptionId?: string;
250
+ unavailableReason?: string;
251
+ }
252
+ /** One backend order line assigned to a delivery group. */
253
+ interface CheckoutShippingGroupItem {
254
+ /** Backend line identity; stable review key. */
255
+ lineId: string;
256
+ /** Quantity in this group when a line is split across groups. */
257
+ quantity?: number;
258
+ }
259
+ interface CheckoutAdjustmentPayment {
260
+ id: string;
261
+ kind: 'gift-card' | 'store-credit';
262
+ label: string;
263
+ amount: Money;
264
+ }
265
+ type CheckoutInterruptionKind = 'totals-changed' | 'price-changed' | 'stock-reduced' | 'item-unavailable' | 'session-expired' | 'payment-failed';
266
+ type CheckoutInterruptionAction = 'acknowledge' | 'refresh' | 'return-to-cart' | 'retry';
267
+ interface CheckoutInterruption {
268
+ kind: CheckoutInterruptionKind;
269
+ severity: 'info' | 'blocking';
270
+ title: string;
271
+ message: string;
272
+ changes?: Array<{
273
+ lineId?: string;
274
+ label: string;
275
+ previous?: string;
276
+ next?: string;
277
+ }>;
278
+ actions: CheckoutInterruptionAction[];
279
+ }
280
+ interface CheckoutSubmission {
281
+ contact: CheckoutContactValues;
282
+ shippingAddress: CheckoutAddressValues;
283
+ billingAddress?: CheckoutAddressValues;
284
+ sameAsShipping: boolean;
285
+ shippingSelections: Array<{
286
+ groupId: string;
287
+ optionId: string;
288
+ }>;
289
+ paymentMethod: string;
290
+ adjustmentPayments: CheckoutAdjustmentPayment[];
291
+ promoCode: string;
292
+ }
293
+
294
+ /**
295
+ * Grouped shipping-delivery contracts shared by the commerce boundary and the
296
+ * storefront host.
297
+ *
298
+ * These types mirror the backend grouped-shipping response (shipping profiles
299
+ * with their eligible options) and stay free of any presentation concern: no
300
+ * UI ids, labels, currency formatting, grouping, ranking, or price summation
301
+ * live here. Amounts are backend major units (design D8), exactly as returned
302
+ * by the store endpoint; the host maps them to `Money` without converting.
303
+ *
304
+ * A group is identified by the backend's own identity: `profile_id` plus its
305
+ * `products` (variant ids). A selection round-trips that identity and the
306
+ * chosen `option_id`, so the backend can apply the shopper's choice per group.
307
+ */
308
+ /**
309
+ * Pickup/stock location an option is served from, when the backend exposes it.
310
+ * Descriptive only: the checkout does not use it to allocate shipments.
311
+ */
312
+ interface ShippingGroupLocation {
313
+ id: string;
314
+ name: string;
315
+ address?: {
316
+ address_1: string;
317
+ address_2: string | null;
318
+ city: string | null;
319
+ province: string | null;
320
+ postal_code: string | null;
321
+ country_code: string;
322
+ } | null;
323
+ }
324
+ /**
325
+ * One selectable shipping option valid for a single backend group.
326
+ *
327
+ * Intentionally mirrors the admin `DropshipperShippingGroupOption`
328
+ * (`admin/DropshippingAdmin.ts`); keep both grouped-shipping shapes aligned.
329
+ */
330
+ interface ShippingGroupOption {
331
+ id: string;
332
+ name: string;
333
+ /** Backend amount in major units (for example `4.99`). Never re-priced locally. */
334
+ amount: number;
335
+ currency_code: string;
336
+ price_type: string;
337
+ /** Backend default for the group; the host may pre-select it. */
338
+ is_default: boolean;
339
+ fulfillment_set_type: string | null;
340
+ estimated_days?: string | null;
341
+ location?: ShippingGroupLocation | null;
342
+ /**
343
+ * Backend option type (`label`/`code`), shared with the admin shape as an
344
+ * optional display/identification field; the checkout does not branch on it.
345
+ */
346
+ type?: {
347
+ id: string;
348
+ label: string;
349
+ code: string | null;
350
+ } | null;
351
+ stock_location_id: string;
352
+ shipping_profile_id: string;
353
+ }
354
+ /**
355
+ * One variant line inside a group. Line membership is by variant id; the host
356
+ * only maps it to a cart line when that mapping is unambiguous.
357
+ */
358
+ interface ShippingGroupItem {
359
+ variant_id: string;
360
+ quantity: number;
361
+ product_title?: string | null;
362
+ variant_title?: string | null;
363
+ }
364
+ /**
365
+ * One delivery group as decided by the backend. The storefront never groups,
366
+ * splits, or re-keys these: `profile_id` + `products` is the group identity.
367
+ */
368
+ interface ShippingGroup {
369
+ profile_id: string;
370
+ profile_label: string;
371
+ /** Variant ids of the group; the roundtrip value for a selection's `products`. */
372
+ products: string[];
373
+ items: ShippingGroupItem[];
374
+ options: ShippingGroupOption[];
375
+ }
376
+ /** The grouped-shipping quote for a cart. `count` is the backend's group count. */
377
+ interface ShippingGroupQuote {
378
+ groups: ShippingGroup[];
379
+ count: number;
380
+ }
381
+ /**
382
+ * The shopper's chosen option for one backend group.
383
+ * `products` must be the group's own `products` array, not a derived id.
384
+ */
385
+ interface ShippingGroupSelection {
386
+ products: string[];
387
+ option_id: string;
388
+ }
389
+
160
390
  /**
161
391
  * Header Configuration Types
162
392
  *
@@ -1493,6 +1723,7 @@ interface Address {
1493
1723
  postalCode?: string;
1494
1724
  countryCode: string;
1495
1725
  phone?: string;
1726
+ label?: string;
1496
1727
  isDefault?: boolean;
1497
1728
  isDefaultBilling?: boolean;
1498
1729
  isDefaultShipping?: boolean;
@@ -2180,6 +2411,12 @@ interface CreateAddressData {
2180
2411
  postalCode?: string;
2181
2412
  countryCode: string;
2182
2413
  phone?: string;
2414
+ /** Customer-facing name for the address (e.g., "Home"). */
2415
+ label?: string;
2416
+ /** Mark this address as the default shipping address. */
2417
+ isDefaultShipping?: boolean;
2418
+ /** Mark this address as the default billing address. */
2419
+ isDefaultBilling?: boolean;
2183
2420
  metadata?: Record<string, unknown>;
2184
2421
  }
2185
2422
  /**
@@ -3201,6 +3438,40 @@ interface CommerceProvider {
3201
3438
  * ```
3202
3439
  */
3203
3440
  addShippingMethod(cartId: string, methodId: string): Promise<Cart>;
3441
+ /**
3442
+ * Get the backend's grouped shipping quote for a cart (OPTIONAL).
3443
+ *
3444
+ * Returns the backend's own delivery groups — one per shipping profile —
3445
+ * each with the variants it contains and the options valid for it. The
3446
+ * storefront consumes these groups as they are: it never groups, splits,
3447
+ * ranks, or re-prices shipments locally.
3448
+ *
3449
+ * Optional so a provider without a grouped store endpoint keeps its existing
3450
+ * contract; callers must treat its absence as an unsupported capability
3451
+ * rather than as an empty quote. Amounts are backend major units and are not
3452
+ * authoritative for the order total (the cart is re-read after applying).
3453
+ *
3454
+ * @param cartId - Cart ID
3455
+ * @returns The grouped quote, or `{ groups: [], count: 0 }` when the cart has
3456
+ * no shipping address yet (nothing can be quoted without a destination)
3457
+ * @throws {ProviderAPIError} If the backend fails or returns an invalid quote
3458
+ */
3459
+ getCheckoutShippingGroups?(cartId: string): Promise<ShippingGroupQuote>;
3460
+ /**
3461
+ * Apply one selected shipping option per backend group (OPTIONAL).
3462
+ *
3463
+ * Sends the shopper's selections keyed by the backend group identity
3464
+ * (`products` + `option_id`). Acceptance is all this call guarantees: the
3465
+ * caller re-reads the authoritative cart for totals after it resolves, and
3466
+ * never derives totals from a response body.
3467
+ *
3468
+ * Optional for the same reason as `getCheckoutShippingGroups`.
3469
+ *
3470
+ * @param cartId - Cart ID
3471
+ * @param selections - One `{ products, option_id }` per backend group
3472
+ * @throws {ProviderAPIError} If the backend rejects the selection set
3473
+ */
3474
+ applyCheckoutShippingGroups?(cartId: string, selections: ShippingGroupSelection[]): Promise<void>;
3204
3475
  /**
3205
3476
  * Initiate payment session with provider
3206
3477
  *
@@ -4561,7 +4832,10 @@ interface GetDropshipperOrdersResponse {
4561
4832
  offset: number;
4562
4833
  limit: number;
4563
4834
  }
4564
- /** A shipping option returned for manual dropshipper orders */
4835
+ /**
4836
+ * A shipping option returned for manual dropshipper orders.
4837
+ * Mirrors the storefront `ShippingGroupOption` in `packages/types/src/shipping.ts`; keep both grouped-shipping shapes aligned.
4838
+ */
4565
4839
  interface DropshipperShippingOption {
4566
4840
  id: string;
4567
4841
  name: string;
@@ -5978,9 +6252,22 @@ interface GetDashboardStatsOptions {
5978
6252
  }
5979
6253
  /** Core period metrics */
5980
6254
  interface DashboardPeriodMetrics {
6255
+ /** Órdenes activas (sin canceladas, refundidas ni compensadas). */
5981
6256
  orders_count: number;
6257
+ /** Todas las órdenes no draft del periodo, incluidas las canceladas. */
6258
+ orders_registered: number;
6259
+ orders_completed: number;
6260
+ orders_collected: number;
6261
+ orders_partially_collected: number;
6262
+ orders_settled: number;
6263
+ orders_cancelled: number;
5982
6264
  revenue_total: number;
6265
+ /** Ganancia prevista: comisión de órdenes activas. */
5983
6266
  profit_total: number;
6267
+ /** Ganancia realizada: comisión de órdenes activas con cobro completo. */
6268
+ profit_collected: number;
6269
+ /** Ganancia liquidada: comisión de órdenes activas con settlement_status = settled. */
6270
+ profit_settled: number;
5984
6271
  avg_margin_percent: number;
5985
6272
  avg_order_value: number;
5986
6273
  customers_active?: number;
@@ -6017,6 +6304,7 @@ interface DashboardStats {
6017
6304
  previous: DashboardPeriodMetrics;
6018
6305
  changes: DashboardChanges;
6019
6306
  orders_by_status: Record<string, number>;
6307
+ orders_by_payment_status: Record<string, number>;
6020
6308
  settlement_summary: DropshipperBalance & {
6021
6309
  pending_settlement_records: number;
6022
6310
  currency_code: string;
@@ -6096,7 +6384,7 @@ interface GetStorefrontDropshipperCategoriesResponse {
6096
6384
  categories: DropshipperCategory[];
6097
6385
  }
6098
6386
  /** Settlement status values for orders */
6099
- type SettlementStatus = 'pending' | 'partial' | 'settled' | 'guaranteed' | 'refund_pending' | 'compensated' | 'recovery_pending' | 'en_garantia' | 'refunded';
6387
+ type SettlementStatus = 'pending' | 'partial' | 'settled' | 'guaranteed' | 'refund_pending' | 'compensated' | 'recovery_pending' | 'en_garantia' | 'refunded' | 'cancelled';
6100
6388
  /** Financial movement types */
6101
6389
  type FinancialMovementType = 'cobro' | 'pago' | 'ajuste' | 'compensacion' | 'devolucion' | 'reverso' | 'garantia';
6102
6390
  /** Financial movement statuses */
@@ -6199,6 +6487,8 @@ interface DropshipperFinancialOrder {
6199
6487
  settled_amount: number;
6200
6488
  pending_amount: number;
6201
6489
  settlement_status: SettlementStatus;
6490
+ /** true si order.status es canceled/cancelled o el settlement_status es cancelled/refunded/compensated. */
6491
+ is_cancelled: boolean;
6202
6492
  retained_by: string | null;
6203
6493
  due_date: string;
6204
6494
  days_overdue: number;
@@ -6832,4 +7122,4 @@ type UpdateBusinessPolicyResponse = {
6832
7122
  business_policy: string;
6833
7123
  };
6834
7124
 
6835
- export type { AccountDropdownConfig, AccountMenuItem, AcknowledgeCostPriceChangesResponse, ActiveFilter, AddOrderEditItemBody, AddOrderEditItemResponse, Address, AdminApiKey, AdminChannelCategory, AdminChannelCustomer, AdminDropshipperAccount, AdminDropshipperBalance, AdminProduct, AdminProductVariant, AdminSalesChannelRef, AdminSiteConfig, AdminSiteConfigHistoryEntry, AdminSiteConfigHistoryEntryFull, AdminStorefrontConfig, AdminStorefrontSeoDefaults, AdminUser, AdvancedSearchProductsOptions, AssignCategoriesToChannelsBody, AssignCategoriesToChannelsResponse, AssignCollectionsToChannelsBody, AssignCollectionsToChannelsResponse, AuditLog, AuditLogAdapter, AuthConfig, AuthMethod, AuthProvider, AuthResponse, AuthStorage, AuthorConfig, BackendCapabilities, BrandConfig, CachedPaymentMethods, CancelDropshipperOrderResponse, CancelMovementBody, CancelMovementResponse, CancelSettlementBody, Cart, CartCost, CartItem, CartLineInput, CartLineUpdate, CartProduct, CartSession, CatalogAppliedFilters, CatalogFacetDemonstrationSource, CatalogFacetId, CatalogQuery, CatalogQueryFailure, CatalogQueryFailureCode, CatalogQueryFailureRepair, CatalogQueryOutcome, CatalogResults, CatalogSortKey, CategoryMapping, ChartDataPoint, ChatAssistantHealthResponse, ChatIntent, ChatMessage, ChatRequest, ChatResponse, ChatSource, ChatSourceVariant, Collection, CollectionProductsOptions, CommerceProvider, CompareProduct, ConfigHistoryEntry, ConfirmMovementBody, ConfirmMovementResponse, ConfirmOrderEditResponse, ConfirmSettlementBody, Connection, ConvertDropshipperDraftOrderBody, ConvertDropshipperDraftOrderResponse, CostPriceChangeItem, CostPriceChangesCheckResponse, CostPriceChangesResponse, Country, CreateAddressData, CreateAjusteBody, CreateAjusteResponse, CreateCategoryMappingBody, CreateCategoryMappingResponse, CreateCobroBody, CreateCobroResponse, CreateCompensacionBody, CreateCompensacionResponse, CreateDropshipperCategoryBody, CreateDropshipperCustomerBody, CreateDropshipperCustomerResponse, CreateDropshipperDraftOrderBody, CreateDropshipperDraftOrderResponse, CreateDropshipperOrderBody, CreateDropshipperOrderResponse, CreateDropshipperPromotionBody, CreateOrderEditBody, CreateOrderEditResponse, CreateOrderItem, CreateOrderNoteBody, CreateOrderNoteResponse, CreatePagoBody, CreatePagoResponse, CreateReversoBody, CreateReversoResponse, CreateSettlementBody, CreateSettlementResponse, Customer, CustomerOrdersPage, DashboardChanges, DashboardConfig, DashboardMetrics, DashboardMetricsAdapter, DashboardOrdersAdapter, DashboardPeriodMetrics, DashboardProductsAdapter, DashboardStats, DashboardTopProduct, DeleteCategoryMappingResponse, DeleteDropshipperCategoryResponse, DeleteDropshipperDraftOrderResponse, DeleteDropshipperPromotionResponse, DeleteOrderNoteResponse, DesignerConfig, DesignerHistoryEntry, DesignerNavItem, DesignerThemeConfig, DesignerThemePreset, DiscountCode, DropshipperAccount, DropshipperAccountRef, DropshipperAddressBody, DropshipperAddressResponse, DropshipperAttributeDefinition, DropshipperAttributeDefinitionValue, DropshipperBalance, DropshipperCategory, DropshipperCostTier, DropshipperCustomer, DropshipperCustomerAddress, DropshipperCustomerDetail, DropshipperCustomerFinancial, DropshipperCustomerStats, DropshipperDashboardCapabilities, DropshipperDraftOrder, DropshipperDraftOrderItem, DropshipperNotificationEventType, DropshipperNotificationPreference, DropshipperOrder, DropshipperOrderCustomer, DropshipperOrderDetail, DropshipperOrderItem, DropshipperOrderShippingAddress, DropshipperOrderTaxLine, DropshipperOrderTimelineEvent, DropshipperOrderTotals, DropshipperPayableOrder, DropshipperPaymentMethodConfig, DropshipperPendingOrders, DropshipperPriceItem, DropshipperPriceTier, DropshipperProduct, DropshipperProductAttachment, DropshipperProductAttribute, DropshipperProductAttributeValue, DropshipperProductImage, DropshipperProductOption, DropshipperProductOptionValue, DropshipperProductPrivateMedia, DropshipperProfile, DropshipperPromotion, DropshipperReceivableOrder, DropshipperSaleTier, DropshipperShippingGroup, DropshipperShippingGroupOption, DropshipperShippingOption, DropshipperVariant, DynamicSource, Edge, ExtendedCreateDropshipperOrderBody, ExtendedCreateDropshipperOrderResponse, FacetSupport, FilterConfig, FilterOption, FilterSection, FulfillmentOption, FulfillmentSet, FulfillmentStatus, GeoCity, GeoCountry, GeoProvince, GetAdminAccountBalanceResponse, GetAdminDropshipperAccountOrdersResponse, GetAdminDropshipperAccountSettlementsOptions, GetAdminDropshipperAccountSettlementsResponse, GetAdminDropshipperAccountsResponse, GetAdminPriceListsResponse, GetAdminSiteConfigHistoryOptions, GetAdminSiteConfigHistoryResponse, GetAdminSiteConfigResponse, GetAdminStorefrontConfigResponse, GetBusinessPolicyResponse, GetCategoriesCallback, GetCategoriesOptions, GetCategoryMappingsOptions, GetCategoryMappingsResponse, GetCategorySalesChannelsResponse, GetChannelApiKeysResponse, GetChannelCategoriesOptions, GetChannelCategoriesResponse, GetChannelCustomersOptions, GetChannelCustomersResponse, GetCollectionSalesChannelsResponse, GetCollectionsOptions, GetCustomerOrdersPageOptions, GetCustomersCallback, GetCustomersOptions, GetDashboardStatsOptions, GetDashboardStatsResponse, GetDropshipperAccountBalanceResponse, GetDropshipperAccountOrdersOptions, GetDropshipperAccountOrdersResponse, GetDropshipperAccountResponse, GetDropshipperAddressesResponse, GetDropshipperAttributesResponse, GetDropshipperCategoriesOptions, GetDropshipperCategoriesResponse, GetDropshipperCustomerDetailResponse, GetDropshipperCustomersOptions, GetDropshipperCustomersResponse, GetDropshipperDraftOrderDetailResponse, GetDropshipperDraftOrdersOptions, GetDropshipperDraftOrdersResponse, GetDropshipperOrderDetailResponse, GetDropshipperOrdersOptions, GetDropshipperOrdersResponse, GetDropshipperPayableResponse, GetDropshipperProductsOptions, GetDropshipperProductsResponse, GetDropshipperPromotionsOptions, GetDropshipperPromotionsResponse, GetDropshipperReceivableResponse, GetDropshipperShippingOptionsBody, GetDropshipperShippingOptionsResponse, GetFinancialAnalysisResponse, GetGeoCitiesResponse, GetGeoCountriesResponse, GetGeoProvincesResponse, GetMyProfileResponse, GetNotificationPreferencesResponse, GetNotificationsOptions, GetNotificationsResponse, GetOrderNotesResponse, GetOrdersCallback, GetOrdersOptions, GetProductAttributesResponse, GetProductsOptions, GetProviderCategoriesResponse, GetSettlementDetailResponse, GetSettlementsOptions, GetSettlementsResponse, GetStorefrontDropshipperCategoriesResponse, GetUserChannelResponse, HeaderLinkItem, HeaderNavigationConfig, IconConfig, Image, InterestCategory, InventoryLevel, LinkCustomerToChannelResponse, LoginCredentials, ManualAdminNotificationData, ModulesConfig, Money, NavigationCalloutItem, NavigationItem, NavigationLinkItem, NotificationData, OnboardDropshipperBody, OnboardDropshipperResponse, Order, OrderItem, OrderNote, OrderReceipt, OrderStatus, OrdersMetrics, PaginationOptions, PasswordResetConfirm, PasswordResetRequest, PaymentMethod$1 as PaymentMethod, PaymentMethodFeatures, PaymentMethodType, PaymentMethodsOptions, PaymentStatus, PreviewDropshipperOrderItem, PreviewDropshipperOrderTotalsBody, PreviewDropshipperOrderTotalsResponse, PriceRange, PriceUpdatedNotificationData, Product, ProductAssignedNotificationData, ProductCategory, ProductOption, ProductPreview, ProductVariant, ProductsMetrics, PromotionRule, ProviderCategory, ProviderConfig, ProviderTypeString, QueryEntitiesInput, QueryEntityInput, QueryErrors, QueryMeta, QueryResponse, QuerySortDirection, RawNotification, RecoveryConfirmResult, Region, RegisterData, RegisterPaymentBody, RegisterPaymentResponse, RequestedProfile, ResolveGuaranteeBody, ResolveGuaranteeResponse, RestoreSiteConfigResponse, Review, SEO, SalesChannelType, SalesMetrics, SearchBarConfig, SearchResultMeta, SelectedOption, SetPaymentCollectorBody, SetPaymentCollectorResponse, SetPaymentMethodBody, SetPaymentMethodResponse, SettlementRecord, SettlementStatus, ShippingGroupInput, ShippingMethod, ShopperIdentity, SiteConfig, SiteConfigLabels, SiteConfigMetadata, SocialConfig, SortOption, SortOptions, StockChangeNotificationData, StockLocation, StockStatus, StockValidation, StoreContext, StorefrontConfig, StorefrontContext, StorefrontPlatformType, StorefrontSeoDefaults, SubmitApplicationBody, SubmitApplicationConflictApplication, SubmitApplicationCreated, SubmitApplicationResponse, SubmitApplicationResult, SubmitApplicationSalesChannel, TokenVerifyResult, TokenVerifyState, UnassignCategoriesFromChannelsBody, UnassignCategoriesFromChannelsResponse, UnassignCollectionsFromChannelsBody, UnassignCollectionsFromChannelsResponse, UpdateBusinessPolicyBody, UpdateBusinessPolicyResponse, UpdateCustomerData, UpdateDropshipperCategoryBody, UpdateDropshipperCustomerBody, UpdateDropshipperCustomerResponse, UpdateDropshipperDraftOrderBody, UpdateDropshipperDraftOrderResponse, UpdateDropshipperPricesBody, UpdateDropshipperPricesResponse, UpdateDropshipperProductStatusBody, UpdateDropshipperProductStatusResponse, UpdateDropshipperPromotionBody, UpdateNotificationPreferencesBody, UpdateSettlementStatusResponse, UpdateSiteConfigBody, UpdateSiteConfigResponse, UpdateStorefrontConfigBody, UpdateStorefrontConfigResponse, ValidateCheckoutItemsRequest, ValidateCheckoutItemsResponse, ValidateGiftCardBody, ValidateGiftCardResponse, ValidatedCheckoutItem };
7125
+ export type { AccountDropdownConfig, AccountMenuItem, AcknowledgeCostPriceChangesResponse, ActiveFilter, AddOrderEditItemBody, AddOrderEditItemResponse, Address, AdminApiKey, AdminChannelCategory, AdminChannelCustomer, AdminDropshipperAccount, AdminDropshipperBalance, AdminProduct, AdminProductVariant, AdminSalesChannelRef, AdminSiteConfig, AdminSiteConfigHistoryEntry, AdminSiteConfigHistoryEntryFull, AdminStorefrontConfig, AdminStorefrontSeoDefaults, AdminUser, AdvancedSearchProductsOptions, AssignCategoriesToChannelsBody, AssignCategoriesToChannelsResponse, AssignCollectionsToChannelsBody, AssignCollectionsToChannelsResponse, AuditLog, AuditLogAdapter, AuthConfig, AuthMethod, AuthProvider, AuthResponse, AuthStorage, AuthorConfig, BackendCapabilities, BrandConfig, CachedPaymentMethods, CancelDropshipperOrderResponse, CancelMovementBody, CancelMovementResponse, CancelSettlementBody, Cart, CartCost, CartItem, CartLineInput, CartLineUpdate, CartProduct, CartSession, CatalogAppliedFilters, CatalogFacetDemonstrationSource, CatalogFacetId, CatalogQuery, CatalogQueryFailure, CatalogQueryFailureCode, CatalogQueryFailureRepair, CatalogQueryOutcome, CatalogResults, CatalogSortKey, CategoryMapping, ChartDataPoint, ChatAssistantHealthResponse, ChatIntent, ChatMessage, ChatRequest, ChatResponse, ChatSource, ChatSourceVariant, CheckoutAddressLevel, CheckoutAddressOption, CheckoutAddressValues, CheckoutAdjustmentPayment, CheckoutContactValues, CheckoutCustomerIdentity, CheckoutInterruption, CheckoutInterruptionAction, CheckoutInterruptionKind, CheckoutLocationOptions, CheckoutReadState, CheckoutSavedAddress, CheckoutShippingGroup, CheckoutShippingGroupItem, CheckoutShippingOption, CheckoutSubmission, Collection, CollectionProductsOptions, CommerceProvider, CompareProduct, ConfigHistoryEntry, ConfirmMovementBody, ConfirmMovementResponse, ConfirmOrderEditResponse, ConfirmSettlementBody, Connection, ConvertDropshipperDraftOrderBody, ConvertDropshipperDraftOrderResponse, CostPriceChangeItem, CostPriceChangesCheckResponse, CostPriceChangesResponse, Country, CreateAddressData, CreateAjusteBody, CreateAjusteResponse, CreateCategoryMappingBody, CreateCategoryMappingResponse, CreateCobroBody, CreateCobroResponse, CreateCompensacionBody, CreateCompensacionResponse, CreateDropshipperCategoryBody, CreateDropshipperCustomerBody, CreateDropshipperCustomerResponse, CreateDropshipperDraftOrderBody, CreateDropshipperDraftOrderResponse, CreateDropshipperOrderBody, CreateDropshipperOrderResponse, CreateDropshipperPromotionBody, CreateOrderEditBody, CreateOrderEditResponse, CreateOrderItem, CreateOrderNoteBody, CreateOrderNoteResponse, CreatePagoBody, CreatePagoResponse, CreateReversoBody, CreateReversoResponse, CreateSettlementBody, CreateSettlementResponse, Customer, CustomerOrdersPage, DashboardChanges, DashboardConfig, DashboardMetrics, DashboardMetricsAdapter, DashboardOrdersAdapter, DashboardPeriodMetrics, DashboardProductsAdapter, DashboardStats, DashboardTopProduct, DeleteCategoryMappingResponse, DeleteDropshipperCategoryResponse, DeleteDropshipperDraftOrderResponse, DeleteDropshipperPromotionResponse, DeleteOrderNoteResponse, DesignerConfig, DesignerHistoryEntry, DesignerNavItem, DesignerThemeConfig, DesignerThemePreset, DiscountCode, DropshipperAccount, DropshipperAccountRef, DropshipperAddressBody, DropshipperAddressResponse, DropshipperAttributeDefinition, DropshipperAttributeDefinitionValue, DropshipperBalance, DropshipperCategory, DropshipperCostTier, DropshipperCustomer, DropshipperCustomerAddress, DropshipperCustomerDetail, DropshipperCustomerFinancial, DropshipperCustomerStats, DropshipperDashboardCapabilities, DropshipperDraftOrder, DropshipperDraftOrderItem, DropshipperNotificationEventType, DropshipperNotificationPreference, DropshipperOrder, DropshipperOrderCustomer, DropshipperOrderDetail, DropshipperOrderItem, DropshipperOrderShippingAddress, DropshipperOrderTaxLine, DropshipperOrderTimelineEvent, DropshipperOrderTotals, DropshipperPayableOrder, DropshipperPaymentMethodConfig, DropshipperPendingOrders, DropshipperPriceItem, DropshipperPriceTier, DropshipperProduct, DropshipperProductAttachment, DropshipperProductAttribute, DropshipperProductAttributeValue, DropshipperProductImage, DropshipperProductOption, DropshipperProductOptionValue, DropshipperProductPrivateMedia, DropshipperProfile, DropshipperPromotion, DropshipperReceivableOrder, DropshipperSaleTier, DropshipperShippingGroup, DropshipperShippingGroupOption, DropshipperShippingOption, DropshipperVariant, DynamicSource, Edge, ExtendedCreateDropshipperOrderBody, ExtendedCreateDropshipperOrderResponse, FacetSupport, FilterConfig, FilterOption, FilterSection, FulfillmentOption, FulfillmentSet, FulfillmentStatus, GeoCity, GeoCountry, GeoProvince, GetAdminAccountBalanceResponse, GetAdminDropshipperAccountOrdersResponse, GetAdminDropshipperAccountSettlementsOptions, GetAdminDropshipperAccountSettlementsResponse, GetAdminDropshipperAccountsResponse, GetAdminPriceListsResponse, GetAdminSiteConfigHistoryOptions, GetAdminSiteConfigHistoryResponse, GetAdminSiteConfigResponse, GetAdminStorefrontConfigResponse, GetBusinessPolicyResponse, GetCategoriesCallback, GetCategoriesOptions, GetCategoryMappingsOptions, GetCategoryMappingsResponse, GetCategorySalesChannelsResponse, GetChannelApiKeysResponse, GetChannelCategoriesOptions, GetChannelCategoriesResponse, GetChannelCustomersOptions, GetChannelCustomersResponse, GetCollectionSalesChannelsResponse, GetCollectionsOptions, GetCustomerOrdersPageOptions, GetCustomersCallback, GetCustomersOptions, GetDashboardStatsOptions, GetDashboardStatsResponse, GetDropshipperAccountBalanceResponse, GetDropshipperAccountOrdersOptions, GetDropshipperAccountOrdersResponse, GetDropshipperAccountResponse, GetDropshipperAddressesResponse, GetDropshipperAttributesResponse, GetDropshipperCategoriesOptions, GetDropshipperCategoriesResponse, GetDropshipperCustomerDetailResponse, GetDropshipperCustomersOptions, GetDropshipperCustomersResponse, GetDropshipperDraftOrderDetailResponse, GetDropshipperDraftOrdersOptions, GetDropshipperDraftOrdersResponse, GetDropshipperOrderDetailResponse, GetDropshipperOrdersOptions, GetDropshipperOrdersResponse, GetDropshipperPayableResponse, GetDropshipperProductsOptions, GetDropshipperProductsResponse, GetDropshipperPromotionsOptions, GetDropshipperPromotionsResponse, GetDropshipperReceivableResponse, GetDropshipperShippingOptionsBody, GetDropshipperShippingOptionsResponse, GetFinancialAnalysisResponse, GetGeoCitiesResponse, GetGeoCountriesResponse, GetGeoProvincesResponse, GetMyProfileResponse, GetNotificationPreferencesResponse, GetNotificationsOptions, GetNotificationsResponse, GetOrderNotesResponse, GetOrdersCallback, GetOrdersOptions, GetProductAttributesResponse, GetProductsOptions, GetProviderCategoriesResponse, GetSettlementDetailResponse, GetSettlementsOptions, GetSettlementsResponse, GetStorefrontDropshipperCategoriesResponse, GetUserChannelResponse, HeaderLinkItem, HeaderNavigationConfig, IconConfig, Image, InterestCategory, InventoryLevel, LinkCustomerToChannelResponse, LoginCredentials, ManualAdminNotificationData, ModulesConfig, Money, NavigationCalloutItem, NavigationItem, NavigationLinkItem, NotificationData, OnboardDropshipperBody, OnboardDropshipperResponse, Order, OrderItem, OrderNote, OrderReceipt, OrderStatus, OrdersMetrics, PaginationOptions, PasswordResetConfirm, PasswordResetRequest, PaymentMethod$1 as PaymentMethod, PaymentMethodFeatures, PaymentMethodType, PaymentMethodsOptions, PaymentStatus, PreviewDropshipperOrderItem, PreviewDropshipperOrderTotalsBody, PreviewDropshipperOrderTotalsResponse, PriceRange, PriceUpdatedNotificationData, Product, ProductAssignedNotificationData, ProductCategory, ProductOption, ProductPreview, ProductVariant, ProductsMetrics, PromotionRule, ProviderCategory, ProviderConfig, ProviderTypeString, QueryEntitiesInput, QueryEntityInput, QueryErrors, QueryMeta, QueryResponse, QuerySortDirection, RawNotification, RecoveryConfirmResult, Region, RegisterData, RegisterPaymentBody, RegisterPaymentResponse, RequestedProfile, ResolveGuaranteeBody, ResolveGuaranteeResponse, RestoreSiteConfigResponse, Review, SEO, SalesChannelType, SalesMetrics, SearchBarConfig, SearchResultMeta, SelectedOption, SetPaymentCollectorBody, SetPaymentCollectorResponse, SetPaymentMethodBody, SetPaymentMethodResponse, SettlementRecord, SettlementStatus, ShippingGroup, ShippingGroupInput, ShippingGroupItem, ShippingGroupLocation, ShippingGroupOption, ShippingGroupQuote, ShippingGroupSelection, ShippingMethod, ShopperIdentity, SiteConfig, SiteConfigLabels, SiteConfigMetadata, SocialConfig, SortOption, SortOptions, StockChangeNotificationData, StockLocation, StockStatus, StockValidation, StoreContext, StorefrontConfig, StorefrontContext, StorefrontPlatformType, StorefrontSeoDefaults, SubmitApplicationBody, SubmitApplicationConflictApplication, SubmitApplicationCreated, SubmitApplicationResponse, SubmitApplicationResult, SubmitApplicationSalesChannel, TokenVerifyResult, TokenVerifyState, UnassignCategoriesFromChannelsBody, UnassignCategoriesFromChannelsResponse, UnassignCollectionsFromChannelsBody, UnassignCollectionsFromChannelsResponse, UpdateBusinessPolicyBody, UpdateBusinessPolicyResponse, UpdateCustomerData, UpdateDropshipperCategoryBody, UpdateDropshipperCustomerBody, UpdateDropshipperCustomerResponse, UpdateDropshipperDraftOrderBody, UpdateDropshipperDraftOrderResponse, UpdateDropshipperPricesBody, UpdateDropshipperPricesResponse, UpdateDropshipperProductStatusBody, UpdateDropshipperProductStatusResponse, UpdateDropshipperPromotionBody, UpdateNotificationPreferencesBody, UpdateSettlementStatusResponse, UpdateSiteConfigBody, UpdateSiteConfigResponse, UpdateStorefrontConfigBody, UpdateStorefrontConfigResponse, ValidateCheckoutItemsRequest, ValidateCheckoutItemsResponse, ValidateGiftCardBody, ValidateGiftCardResponse, ValidatedCheckoutItem };