@01.software/sdk 0.41.1 → 0.42.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 (61) hide show
  1. package/CHANGELOG.md +208 -0
  2. package/README.md +81 -18
  3. package/dist/analytics/react.cjs +71 -3
  4. package/dist/analytics/react.cjs.map +1 -1
  5. package/dist/analytics/react.d.cts +18 -2
  6. package/dist/analytics/react.d.ts +18 -2
  7. package/dist/analytics/react.js +67 -3
  8. package/dist/analytics/react.js.map +1 -1
  9. package/dist/analytics.cjs +6 -2
  10. package/dist/analytics.cjs.map +1 -1
  11. package/dist/analytics.d.cts +17 -4
  12. package/dist/analytics.d.ts +17 -4
  13. package/dist/analytics.js +6 -2
  14. package/dist/analytics.js.map +1 -1
  15. package/dist/client.cjs +176 -32
  16. package/dist/client.cjs.map +1 -1
  17. package/dist/client.d.cts +6 -6
  18. package/dist/client.d.ts +6 -6
  19. package/dist/client.js +176 -32
  20. package/dist/client.js.map +1 -1
  21. package/dist/{collection-client-Bk--pNzW.d.cts → collection-client-B-qVIBnJ.d.cts} +3 -3
  22. package/dist/{collection-client-BdcxkW7l.d.ts → collection-client-BhCMwIus.d.ts} +3 -3
  23. package/dist/{const-qGGI7Uii.d.cts → const-BiDujixF.d.cts} +1 -1
  24. package/dist/{const-HwdntWtG.d.ts → const-pmHlwm3E.d.ts} +1 -1
  25. package/dist/{index-B1oW50RY.d.ts → index-B1UBDaKz.d.ts} +3 -3
  26. package/dist/{index-DiXtjVab.d.cts → index-D78ki6Ij.d.cts} +3 -3
  27. package/dist/index.cjs +156 -339
  28. package/dist/index.cjs.map +1 -1
  29. package/dist/index.d.cts +7 -7
  30. package/dist/index.d.ts +7 -7
  31. package/dist/index.js +156 -339
  32. package/dist/index.js.map +1 -1
  33. package/dist/{payload-types-CqJOgON7.d.cts → payload-types-C7Ul4ElL.d.cts} +181 -115
  34. package/dist/{payload-types-CqJOgON7.d.ts → payload-types-C7Ul4ElL.d.ts} +181 -115
  35. package/dist/query.d.cts +5 -5
  36. package/dist/query.d.ts +5 -5
  37. package/dist/realtime.cjs +1 -1
  38. package/dist/realtime.cjs.map +1 -1
  39. package/dist/realtime.d.cts +2 -2
  40. package/dist/realtime.d.ts +2 -2
  41. package/dist/realtime.js +1 -1
  42. package/dist/realtime.js.map +1 -1
  43. package/dist/server.cjs +230 -46
  44. package/dist/server.cjs.map +1 -1
  45. package/dist/server.d.cts +7 -7
  46. package/dist/server.d.ts +7 -7
  47. package/dist/server.js +230 -46
  48. package/dist/server.js.map +1 -1
  49. package/dist/{types-DgfXb7iV.d.ts → types-BL7M-EUV.d.cts} +138 -13
  50. package/dist/{types-BMI3M0nb.d.ts → types-Bf2iCjy8.d.ts} +1 -1
  51. package/dist/{types-ByLSG-O3.d.cts → types-ChV1t4ei.d.cts} +1 -1
  52. package/dist/{types-BKa9z9s2.d.cts → types-D5dSNIGs.d.ts} +138 -13
  53. package/dist/ui/canvas.cjs.map +1 -1
  54. package/dist/ui/canvas.js.map +1 -1
  55. package/dist/ui/form.d.cts +1 -1
  56. package/dist/ui/form.d.ts +1 -1
  57. package/dist/ui/video.d.cts +1 -1
  58. package/dist/ui/video.d.ts +1 -1
  59. package/dist/webhook.d.cts +4 -4
  60. package/dist/webhook.d.ts +4 -4
  61. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
- import { P as PublicCollection, S as ServerCollection } from './const-HwdntWtG.js';
2
- import { C as CollectionType, P as PublicProduct } from './types-BMI3M0nb.js';
3
- import { O as Order, m as Transaction, n as Fulfillment, R as Return } from './payload-types-CqJOgON7.js';
1
+ import { P as PublicCollection, S as ServerCollection } from './const-BiDujixF.cjs';
2
+ import { C as CollectionType, P as PublicProduct } from './types-ChV1t4ei.cjs';
3
+ import { O as Order, m as Transaction, n as Fulfillment, R as Return } from './payload-types-C7Ul4ElL.cjs';
4
4
 
5
5
  interface CustomerScopedApiOptions {
6
6
  publishableKey?: string;
@@ -449,6 +449,8 @@ type PublicOrder = {
449
449
  discountAmount?: number | null;
450
450
  taxAmount?: number | null;
451
451
  refundedAmount?: number | null;
452
+ /** Net order total after refunds (`totalAmount - refundedAmount`, clamped at 0). */
453
+ currentTotalAmount?: number | null;
452
454
  currency?: string | null;
453
455
  customerNote?: string | null;
454
456
  createdAt?: string | null;
@@ -526,7 +528,7 @@ type CreateOrderBodyBase = {
526
528
  orderNumber: string;
527
529
  customer?: string;
528
530
  customerSnapshot: CustomerSnapshot;
529
- shippingAddress: Order['shippingAddress'];
531
+ shippingAddress?: Order['shippingAddress'];
530
532
  totalAmount: number;
531
533
  shippingAmount?: number;
532
534
  pgPaymentId?: string;
@@ -569,6 +571,31 @@ type ConfirmPaymentResponse = {
569
571
  status: 'paid';
570
572
  alreadyConfirmed?: boolean;
571
573
  };
574
+ type GetOrderByPaymentIdParams = {
575
+ /** Payment provider slug, e.g. `toss`, `portone`. */
576
+ pgProvider: string;
577
+ /** Provider payment identifier stored on the payment transaction. */
578
+ pgPaymentId: string;
579
+ };
580
+ /**
581
+ * Depth-populated order + its payment transaction, resolved by PG payment id.
582
+ * `transaction` is `null` only in transient race windows; the server returns a
583
+ * `404` when no payment transaction matches the id, so a resolved order always
584
+ * comes with its transaction in practice.
585
+ */
586
+ type OrderByPaymentResult = {
587
+ order: Order;
588
+ transaction: Transaction | null;
589
+ };
590
+ /**
591
+ * Result of {@link OrderApi.confirmPaymentReturningOrder}: the raw
592
+ * `confirmPayment` confirmation plus the depth-populated order/transaction
593
+ * resolved by the same payment id.
594
+ */
595
+ type ConfirmPaymentWithOrderResult = ConfirmPaymentResponse & {
596
+ order: Order;
597
+ transaction: Transaction | null;
598
+ };
572
599
  type CancelReasonCode = 'customer' | 'inventory' | 'fraud' | 'declined' | 'staff' | 'other';
573
600
  type CancelOrderStatus = 'pending' | 'paid' | 'canceled' | 'refunded' | 'preparing' | 'shipped' | 'delivered' | 'confirmed' | 'return_requested' | 'return_processing' | 'returned';
574
601
  type CancelOrderReconciliationStatus = Exclude<CancelOrderStatus, 'pending' | 'canceled'>;
@@ -698,6 +725,12 @@ type CheckoutParams = WithIdempotencyKey<{
698
725
  type CreateFulfillmentParams = WithIdempotencyKey<{
699
726
  orderNumber: string;
700
727
  fulfillmentOrderId?: string | number;
728
+ /**
729
+ * Carrier and tracking number are a both-or-neither pair. Send both for a
730
+ * carrier-facing shipment, or neither for a non-carrier-facing manual handoff
731
+ * (tracking can be added later via `updateFulfillment`). A half-pair is
732
+ * rejected server-side with `400 validation_failed`.
733
+ */
701
734
  carrier?: string;
702
735
  trackingNumber?: string;
703
736
  items?: Array<{
@@ -758,6 +791,21 @@ declare class OrderApi extends BaseApi {
758
791
  updateOrder(params: UpdateOrderParams): Promise<Order>;
759
792
  updateTransaction(params: UpdateTransactionParams): Promise<Transaction>;
760
793
  confirmPayment(params: ConfirmPaymentParams): Promise<ConfirmPaymentResponse>;
794
+ /**
795
+ * Resolve an order + its payment transaction by PG payment id. Replaces raw
796
+ * `transactions.find({ where: { pgPaymentId } })` + a local file index in
797
+ * storefronts. Server-only (sk01_) read of the full populated Order.
798
+ */
799
+ getByPaymentId(params: GetOrderByPaymentIdParams): Promise<OrderByPaymentResult>;
800
+ /**
801
+ * Composed facade: confirm a provider payment, then resolve the
802
+ * depth-populated order/transaction by the same payment id. `confirmPayment`'s
803
+ * wire response carries only IDs (its contract is `.strict()`); this returns
804
+ * the populated `Order` so storefronts stop reconstructing order state
805
+ * locally. Two round trips by design — the alternative (widening the strict
806
+ * confirm-payment wire contract to embed a full Order) is rejected.
807
+ */
808
+ confirmPaymentReturningOrder(params: ConfirmPaymentParams): Promise<ConfirmPaymentWithOrderResult>;
761
809
  cancelOrder(params: CancelOrderParams): Promise<CancelOrderResponse>;
762
810
  resolveCancelRefund(params: ResolveCancelRefundParams): Promise<ResolveCancelRefundResponse>;
763
811
  /**
@@ -933,29 +981,35 @@ interface CartApiOptions {
933
981
  onUnauthorized?: () => Promise<string | null>;
934
982
  onRequestId?: (id: string | null) => void;
935
983
  }
984
+ type CreateCartParams = Record<string, never>;
936
985
  type AddItemParams = {
937
- cartId: string;
986
+ cartToken: string;
938
987
  product: string;
939
988
  variant: string;
940
- option: string;
989
+ option?: string;
941
990
  quantity: number;
942
991
  };
943
992
  type UpdateItemParams = {
993
+ cartToken: string;
944
994
  cartItemId: string;
945
995
  quantity: number;
946
996
  };
947
997
  type RemoveItemParams = {
998
+ cartToken: string;
948
999
  cartItemId: string;
949
1000
  };
950
1001
  type ApplyDiscountParams = {
951
- cartId: string;
1002
+ cartToken: string;
952
1003
  discountCode: string;
953
1004
  };
954
1005
  type RemoveDiscountParams = {
955
- cartId: string;
1006
+ cartToken: string;
956
1007
  };
957
1008
  type ClearCartParams = {
958
- cartId: string;
1009
+ cartToken: string;
1010
+ };
1011
+ type CartMergeParams = {
1012
+ guestCartToken: string;
959
1013
  };
960
1014
  type PublicCartReference = string | {
961
1015
  id?: string | number | null;
@@ -1013,10 +1067,51 @@ type PublicCart = {
1013
1067
  };
1014
1068
  items?: PublicCartItem[];
1015
1069
  };
1070
+ /**
1071
+ * Create response: the only place the server returns the `cartToken`. Persist
1072
+ * it (cookie/storage) and pass it as the handle on every later cart call.
1073
+ */
1074
+ type CreatedCart = PublicCart & {
1075
+ cartToken?: string;
1076
+ };
1077
+ type CartMergeResult = {
1078
+ cart: PublicCart;
1079
+ merged: boolean;
1080
+ claimed: boolean;
1081
+ guestCartId: string | number;
1082
+ customerCartId: string | number;
1083
+ /**
1084
+ * The resolved customer cart's capability handle. Persist it after a merge so
1085
+ * the storefront can keep operating the cart when a union moved lines into a
1086
+ * different cart row. `null` only if the resolved cart has no token.
1087
+ */
1088
+ cartToken: string | null;
1089
+ };
1090
+ /**
1091
+ * The authenticated customer's active cart resolved by JWT. `cartToken` is the
1092
+ * capability handle returned to the owner; persist it for later token-keyed
1093
+ * mutations. Both fields are `null` when the customer has no active cart.
1094
+ */
1095
+ type CartMineResult = {
1096
+ cart: PublicCart | null;
1097
+ cartToken: string | null;
1098
+ };
1016
1099
  declare class CartApi extends CustomerScopedApi {
1017
1100
  constructor(options: CartApiOptions);
1018
1101
  private execute;
1019
- getCart(cartId: string): Promise<PublicCart>;
1102
+ /**
1103
+ * Create a cart and receive its `cartToken`. Store the token and pass it to
1104
+ * every subsequent cart operation.
1105
+ */
1106
+ createCart(params?: CreateCartParams): Promise<CreatedCart>;
1107
+ getCart(cartToken: string): Promise<PublicCart>;
1108
+ merge(params: CartMergeParams): Promise<CartMergeResult>;
1109
+ /**
1110
+ * Resolve the authenticated customer's active cart by JWT (no `cartToken`
1111
+ * required). Returns the cart and its capability handle, or both `null` when
1112
+ * the customer has no active cart. Requires a customer token.
1113
+ */
1114
+ mine(): Promise<CartMineResult>;
1020
1115
  addItem(params: AddItemParams): Promise<PublicCartItem>;
1021
1116
  updateItem(params: UpdateItemParams): Promise<PublicCartItem>;
1022
1117
  removeItem(params: RemoveItemParams): Promise<{
@@ -1121,6 +1216,7 @@ interface ProductVariantShape {
1121
1216
  stock?: number | null;
1122
1217
  reservedStock?: number | null;
1123
1218
  isUnlimited?: boolean | null;
1219
+ inventoryPolicy?: ('deny' | 'continue') | null;
1124
1220
  isActive?: boolean | null;
1125
1221
  thumbnail?: MediaValue;
1126
1222
  images?: MediaValue[] | null;
@@ -1496,6 +1592,7 @@ type VariantInput = {
1496
1592
  compareAtPrice?: number | null;
1497
1593
  stock?: number;
1498
1594
  isUnlimited?: boolean;
1595
+ inventoryPolicy?: 'deny' | 'continue';
1499
1596
  weight?: number | null;
1500
1597
  requiresShipping?: boolean;
1501
1598
  barcode?: string | null;
@@ -1703,6 +1800,7 @@ interface ProductDetailVariant {
1703
1800
  stock: number;
1704
1801
  reservedStock: number;
1705
1802
  isUnlimited: boolean;
1803
+ inventoryPolicy?: ('deny' | 'continue') | null;
1706
1804
  isActive: boolean;
1707
1805
  thumbnail?: ProductDetailMedia | null;
1708
1806
  images?: ProductDetailMedia[];
@@ -1786,6 +1884,11 @@ interface StockSnapshotItem {
1786
1884
  availableStock: number;
1787
1885
  availableForSale: boolean;
1788
1886
  isUnlimited: boolean;
1887
+ /**
1888
+ * Backorder policy for tracked variants (Shopify `inventoryPolicy`).
1889
+ * `continue` means the variant stays purchasable past available stock.
1890
+ */
1891
+ inventoryPolicy?: ('deny' | 'continue') | null;
1789
1892
  }
1790
1893
  interface StockSnapshotResponse {
1791
1894
  snapshots: StockSnapshotItem[];
@@ -1958,7 +2061,8 @@ declare class CommerceClient {
1958
2061
  detailCatalog: (params: ProductDetailParams) => Promise<ProductDetailCatalogResult>;
1959
2062
  };
1960
2063
  readonly cart: {
1961
- get: (cartId: string) => Promise<PublicCart>;
2064
+ create: (params?: CreateCartParams) => Promise<CreatedCart>;
2065
+ get: (cartToken: string) => Promise<PublicCart>;
1962
2066
  addItem: (params: AddItemParams) => Promise<PublicCartItem>;
1963
2067
  updateItem: (params: UpdateItemParams) => Promise<PublicCartItem>;
1964
2068
  removeItem: (params: RemoveItemParams) => Promise<{
@@ -1969,6 +2073,17 @@ declare class CommerceClient {
1969
2073
  clear: (params: ClearCartParams) => Promise<{
1970
2074
  success: boolean;
1971
2075
  }>;
2076
+ /**
2077
+ * Union/claim a pre-login guest cart into the authenticated customer's cart
2078
+ * (customer JWT required). Returns the resolved customer cart's `cartToken`
2079
+ * so the caller can persist it and keep operating the cart.
2080
+ */
2081
+ merge: (params: CartMergeParams) => Promise<CartMergeResult>;
2082
+ /**
2083
+ * Load the authenticated customer's active cart by JWT (no `cartToken`
2084
+ * needed). `cart`/`cartToken` are both `null` when there is no active cart.
2085
+ */
2086
+ mine: () => Promise<CartMineResult>;
1972
2087
  };
1973
2088
  readonly orders: {
1974
2089
  checkout: (params: CheckoutParams) => Promise<PublicOrder>;
@@ -2082,7 +2197,8 @@ declare class ServerCommerceClient {
2082
2197
  upsert: (params: ProductUpsertParams) => Promise<ProductUpsertResponse>;
2083
2198
  };
2084
2199
  readonly cart: {
2085
- get: (cartId: string) => Promise<PublicCart>;
2200
+ create: (params?: CreateCartParams) => Promise<CreatedCart>;
2201
+ get: (cartToken: string) => Promise<PublicCart>;
2086
2202
  addItem: (params: AddItemParams) => Promise<PublicCartItem>;
2087
2203
  updateItem: (params: UpdateItemParams) => Promise<PublicCartItem>;
2088
2204
  removeItem: (params: RemoveItemParams) => Promise<{
@@ -2093,6 +2209,13 @@ declare class ServerCommerceClient {
2093
2209
  clear: (params: ClearCartParams) => Promise<{
2094
2210
  success: boolean;
2095
2211
  }>;
2212
+ /**
2213
+ * Union/claim a guest cart into a customer's cart. Customer-bound resolution
2214
+ * requires a customer JWT; a secret-key caller has no customer session.
2215
+ */
2216
+ merge: (params: CartMergeParams) => Promise<CartMergeResult>;
2217
+ /** Load the authenticated customer's active cart by JWT. */
2218
+ mine: () => Promise<CartMineResult>;
2096
2219
  };
2097
2220
  readonly orders: {
2098
2221
  checkout: (params: CheckoutParams) => Promise<PublicOrder>;
@@ -2100,6 +2223,8 @@ declare class ServerCommerceClient {
2100
2223
  update: (params: UpdateOrderParams) => Promise<Order>;
2101
2224
  updateTransaction: (params: UpdateTransactionParams) => Promise<Transaction>;
2102
2225
  confirmPayment: (params: ConfirmPaymentParams) => Promise<ConfirmPaymentResponse>;
2226
+ confirmPaymentReturningOrder: (params: ConfirmPaymentParams) => Promise<ConfirmPaymentWithOrderResult>;
2227
+ getByPaymentId: (params: GetOrderByPaymentIdParams) => Promise<OrderByPaymentResult>;
2103
2228
  cancelOrder: (params: CancelOrderParams) => Promise<CancelOrderResponse>;
2104
2229
  resolveCancelRefund: (params: ResolveCancelRefundParams) => Promise<ResolveCancelRefundResponse>;
2105
2230
  createFulfillment: (params: CreateFulfillmentParams) => Promise<Fulfillment>;
@@ -2608,4 +2733,4 @@ type DeepPartial<T> = {
2608
2733
  };
2609
2734
  type ExtractArrayType<T> = T extends (infer U)[] ? U : never;
2610
2735
 
2611
- export { type CollectionFieldSchema as $, type AddItemParams as A, type RootReadOnlyQueryBuilder as B, CommerceClient as C, type DebugConfig as D, EventsClient as E, type StorefrontContentListOptions as F, type StorefrontContentReference as G, type StorefrontGalleryItem as H, type StorefrontGalleryItemsListOptions as I, type StorefrontGalleryItemsSort as J, type StorefrontLink as K, type StorefrontLinksListOptions as L, type StorefrontLinksSort as M, BaseApi as N, type ServerApiOptions as O, type PayloadFindResponse as P, ServerCommerceClient as Q, type RemoveDiscountParams as R, type Sort as S, type TenantIntrospectionClient as T, type UpdateItemParams as U, type BanCustomerParams as V, type Where as W, type CommunityBan as X, type UnbanCustomerParams as Y, type ClientServerConfig as Z, type RootServerClientWithEvents as _, CommunityClient as a, type CalculateShippingParams as a$, type CollectionSchemaResponse as a0, type EventGuestCancelParams as a1, type EventGuestRegistration as a2, type EventGuestRegistrationResponse as a3, type EventRegistrationAnswerInput as a4, type EventRegistrationAttendeeInput as a5, type EventRegistrationPublic as a6, type EventRegistrationRegisterParams as a7, type EventRegistrationRegisterResponse as a8, type EventsCalendarItem as a9, type CustomerProfile as aA, type CustomerAuthResponse as aB, type CustomerLoginData as aC, type CustomerRegisterResponse as aD, type CustomerRegisterData as aE, type CustomerRefreshResponse as aF, type UpdateProfileData as aG, type ProductListingPageBaseParams as aH, type ProductListingPageParams as aI, type ProductDetailParams as aJ, type ProductDetailResult as aK, type ProductListingPageCatalogParams as aL, type ProductListingPageResult as aM, type ProductListingGroupsCatalogItem as aN, type ProductListingPageFullParams as aO, type ProductListingGroupsItem as aP, type ProductDetail as aQ, type ProductDetailCatalog as aR, type StockSnapshotResponse as aS, type ProductSelectionMediaSource as aT, type ProductDisplayMediaSource as aU, type ResolveProductSelectionMediaInput as aV, type ResolveProductSelectionMediaResult as aW, type ProductSelectionMediaPointer as aX, type RootClientWithEvents as aY, type BulkImportFulfillmentsParams as aZ, type BulkImportFulfillmentsResponse as a_, type EventsClientOptions as aa, type EventsDateParam as ab, type EventsExternalSource as ac, type EventsLocation as ad, type EventsOccurrenceLocation as ae, type EventsRangeEvent as af, type EventsRangeOccurrence as ag, type EventsRangeParams as ah, type EventsRangeResponse as ai, type EventsTaxonomyItem as aj, ModerationApi as ak, type RootServerClient as al, type TenantFeatureProgressEvidenceValue as am, type TenantFeatureProgressFeature as an, type TenantFeatureProgressGroup as ao, type TenantFeatureProgressInput as ap, type TenantFeatureProgressItem as aq, type TenantFeatureProgressItemState as ar, type TenantFeatureProgressResponse as as, type TenantFeatureProgressSeverity as at, type TenantFeatureProgressStatus as au, TenantIntrospectionApi as av, type TenantIntrospectionApiOptions as aw, type ApiDeleteOptions as ax, type PublicReadQueryOptions as ay, CustomerAuth as az, ContentClient as b, type ProductListingCard as b$, type CalculateShippingResult as b0, type CancelOrderParams as b1, type CancelOrderReconciliationStatus as b2, type CancelOrderResponse as b3, type CancelReasonCode as b4, CartApi as b5, type CartApiOptions as b6, type Comment as b7, type CommerceClientOptions as b8, type CommunityClientOptions as b9, type NormalizedProductSelection as bA, OrderApi as bB, type OrderApiOptions as bC, PRODUCT_PLP_FIND_OPTIONS as bD, PRODUCT_UPSERT_READONLY_FIELD_REASON as bE, PRODUCT_UPSERT_UNKNOWN_FIELD_REASON as bF, type PrepareFulfillmentOrderParams as bG, type PrepareFulfillmentOrderResponse as bH, ProductApi as bI, type ProductApiOptions as bJ, type ProductDetailBrand as bK, type ProductDetailCatalogResult as bL, type ProductDetailCatalogVariant as bM, type ProductDetailCategory as bN, type ProductDetailImage as bO, type ProductDetailImageMedia as bP, type ProductDetailMedia as bQ, type ProductDetailOption as bR, type ProductDetailOptionValue as bS, type ProductDetailTag as bT, type ProductDetailUnavailableReason as bU, type ProductDetailVariant as bV, type ProductDetailVariantOptionValue as bW, type ProductDetailVideo as bX, type ProductHrefGroup as bY, type ProductHrefOptions as bZ, type ProductHrefProduct as b_, type CommunityComment as ba, type CommunityCommentListSort as bb, type CommunityPost as bc, type CommunityPostCategory as bd, type CommunityPostListSort as be, type CommunityPostTag as bf, type CommunityPublicAuthorSnapshot as bg, type CommunityPublicMediaAsset as bh, type CommunityPublicReference as bi, type CompatibilityProductSelectionParamEvent as bj, type ConfirmPaymentParams as bk, type ConfirmPaymentResponse as bl, type CreateFulfillmentParams as bm, type CreateOrderItem as bn, type CreateOrderParams as bo, type CreateReturnParams as bp, type CustomerAuthOptions as bq, type CustomerOrderListOptions as br, type CustomerSnapshot as bs, DiscountApi as bt, type DiscountApiOptions as bu, type FeaturedImagePointerInput as bv, type LegacyProductSelectionParamEvent as bw, type ListingGroupsParams as bx, type MediaValue as by, type NormalizedOptionSwatch as bz, CustomerNamespace as c, type UpdateReturnParams as c$, type ProductListingCardOptions as c0, type ProductListingCardPriceRange as c1, type ProductListingCardRepresentativeVariant as c2, type ProductListingGroup as c3, type ProductListingGroupCatalogSummary as c4, type ProductListingGroupCatalogVariant as c5, type ProductListingGroupProjection as c6, type ProductListingGroupSummary as c7, type ProductListingGroupVariant as c8, type ProductListingGroupsCatalogProduct as c9, type ProductSelectionResolutionContext as cA, type ProductSelectionUrlEmit as cB, type ProductSelectionVariant as cC, type ProductUpsertFieldValidationErrorBody as cD, type ProductUpsertFieldValidationErrorReason as cE, type ProductVariantShape as cF, type RequestOptions as cG, type ResolveCancelRefundFailedResponse as cH, type ResolveCancelRefundOutcome as cI, type ResolveCancelRefundParams as cJ, type ResolveCancelRefundResponse as cK, type ResolveCancelRefundSucceededResponse as cL, type ResolveProductDisplayMediaInput as cM, type ResolveProductDisplayMediaResult as cN, type ReturnItem as cO, type ReturnReason as cP, type ReturnWithRefundItem as cQ, type ReturnWithRefundParams as cR, ShippingApi as cS, type ShippingApiOptions as cT, type StockCheckParams as cU, type StockCheckResponse as cV, type StockCheckResult as cW, type StockSnapshotItem as cX, type StockSnapshotParams as cY, type UpdateFulfillmentParams as cZ, type UpdateOrderParams as c_, type ProductListingGroupsCatalogResponse as ca, type ProductListingGroupsProduct as cb, type ProductListingGroupsResponse as cc, type ProductListingPageFilters as cd, type ProductListingPageSort as ce, type ProductListingProductShape as cf, type ProductListingSwatch as cg, type ProductMediaResolutionSource as ch, type ProductMoneyRange as ci, type ProductOptionMatrix as cj, type ProductOptionMatrixOption as ck, type ProductOptionMatrixValue as cl, type ProductOptionMatrixVariant as cm, type ProductOptionShape as cn, type ProductOptionValueShape as co, type ProductOptionValueSwatch as cp, type ProductOptionValueSwatchInput as cq, type ProductPriceRange as cr, type ProductSelectionAvailableSwatch as cs, type ProductSelectionAvailableValue as ct, type ProductSelectionByOptionValue as cu, ProductSelectionCodecError as cv, type ProductSelectionCodecOptions as cw, type ProductSelectionInput as cx, type ProductSelectionOptionValue as cy, type ProductSelectionResolution as cz, type ClientState as d, type UpdateTransactionParams as d0, type ValidateDiscountParams as d1, type ValidateDiscountResult as d2, type WithIdempotencyKey as d3, buildProductHref as d4, buildProductListingCard as d5, buildProductListingGroupProjection as d6, buildProductListingGroupsByOption as d7, buildProductOptionMatrix as d8, buildProductOptionMatrixFromDetail as d9, createProductSelectionCodec as da, getAvailableOptionValues as db, getProductSelectionImages as dc, getSelectedValueByOptionId as dd, getVariantAvailableForSale as de, getVariantAvailableStock as df, isProductUpsertFieldValidationErrorBody as dg, normalizeProductSelection as dh, normalizeProductSelectionFromMatrix as di, normalizeSelectedValueIds as dj, parseProductSelection as dk, projectProductToListingShape as dl, resolveFeaturedImagePointer as dm, resolveProductDisplayMedia as dn, resolveProductSelection as dp, resolveProductSelectionFromMatrix as dq, resolveProductSelectionMedia as dr, resolveVariantForSelection as ds, selectNext as dt, selectedSwatchMediaItemId as du, stringifyProductSelection as dv, toShopifyPriceRangeV2 as dw, type ClientConfig as e, type ApiQueryOptions as f, type ApplyDiscountParams as g, type CheckoutParams as h, type ClearCartParams as i, type ClientMetadata as j, type ContentClientOptions as k, type DeepPartial as l, type ExtractArrayType as m, type PayloadMutationResponse as n, type PublicCart as o, type PublicCartItem as p, type PublicCartReference as q, type PublicMediaAsset as r, type PublicMediaSize as s, type PublicOrder as t, type PublicOrderItem as u, type PublicOrderReference as v, type RemoveItemParams as w, type RetryConfig as x, type RootClient as y, type RootCollectionClient as z };
2736
+ export { type CollectionFieldSchema as $, type AddItemParams as A, type RootReadOnlyQueryBuilder as B, CommerceClient as C, type DebugConfig as D, EventsClient as E, type StorefrontContentListOptions as F, type StorefrontContentReference as G, type StorefrontGalleryItem as H, type StorefrontGalleryItemsListOptions as I, type StorefrontGalleryItemsSort as J, type StorefrontLink as K, type StorefrontLinksListOptions as L, type StorefrontLinksSort as M, BaseApi as N, type ServerApiOptions as O, type PayloadFindResponse as P, ServerCommerceClient as Q, type RemoveDiscountParams as R, type Sort as S, type TenantIntrospectionClient as T, type UpdateItemParams as U, type BanCustomerParams as V, type Where as W, type CommunityBan as X, type UnbanCustomerParams as Y, type ClientServerConfig as Z, type RootServerClientWithEvents as _, CommunityClient as a, type CalculateShippingParams as a$, type CollectionSchemaResponse as a0, type EventGuestCancelParams as a1, type EventGuestRegistration as a2, type EventGuestRegistrationResponse as a3, type EventRegistrationAnswerInput as a4, type EventRegistrationAttendeeInput as a5, type EventRegistrationPublic as a6, type EventRegistrationRegisterParams as a7, type EventRegistrationRegisterResponse as a8, type EventsCalendarItem as a9, type CustomerProfile as aA, type CustomerAuthResponse as aB, type CustomerLoginData as aC, type CustomerRegisterResponse as aD, type CustomerRegisterData as aE, type CustomerRefreshResponse as aF, type UpdateProfileData as aG, type ProductListingPageBaseParams as aH, type ProductListingPageParams as aI, type ProductDetailParams as aJ, type ProductDetailResult as aK, type ProductListingPageCatalogParams as aL, type ProductListingPageResult as aM, type ProductListingGroupsCatalogItem as aN, type ProductListingPageFullParams as aO, type ProductListingGroupsItem as aP, type ProductDetail as aQ, type ProductDetailCatalog as aR, type StockSnapshotResponse as aS, type ProductSelectionMediaSource as aT, type ProductDisplayMediaSource as aU, type ResolveProductSelectionMediaInput as aV, type ResolveProductSelectionMediaResult as aW, type ProductSelectionMediaPointer as aX, type RootClientWithEvents as aY, type BulkImportFulfillmentsParams as aZ, type BulkImportFulfillmentsResponse as a_, type EventsClientOptions as aa, type EventsDateParam as ab, type EventsExternalSource as ac, type EventsLocation as ad, type EventsOccurrenceLocation as ae, type EventsRangeEvent as af, type EventsRangeOccurrence as ag, type EventsRangeParams as ah, type EventsRangeResponse as ai, type EventsTaxonomyItem as aj, ModerationApi as ak, type RootServerClient as al, type TenantFeatureProgressEvidenceValue as am, type TenantFeatureProgressFeature as an, type TenantFeatureProgressGroup as ao, type TenantFeatureProgressInput as ap, type TenantFeatureProgressItem as aq, type TenantFeatureProgressItemState as ar, type TenantFeatureProgressResponse as as, type TenantFeatureProgressSeverity as at, type TenantFeatureProgressStatus as au, TenantIntrospectionApi as av, type TenantIntrospectionApiOptions as aw, type ApiDeleteOptions as ax, type PublicReadQueryOptions as ay, CustomerAuth as az, ContentClient as b, type ProductDetailVariant as b$, type CalculateShippingResult as b0, type CancelOrderParams as b1, type CancelOrderReconciliationStatus as b2, type CancelOrderResponse as b3, type CancelReasonCode as b4, CartApi as b5, type CartApiOptions as b6, type CartMergeParams as b7, type CartMergeResult as b8, type CartMineResult as b9, type GetOrderByPaymentIdParams as bA, type LegacyProductSelectionParamEvent as bB, type ListingGroupsParams as bC, type MediaValue as bD, type NormalizedOptionSwatch as bE, type NormalizedProductSelection as bF, OrderApi as bG, type OrderApiOptions as bH, type OrderByPaymentResult as bI, PRODUCT_PLP_FIND_OPTIONS as bJ, PRODUCT_UPSERT_READONLY_FIELD_REASON as bK, PRODUCT_UPSERT_UNKNOWN_FIELD_REASON as bL, type PrepareFulfillmentOrderParams as bM, type PrepareFulfillmentOrderResponse as bN, ProductApi as bO, type ProductApiOptions as bP, type ProductDetailBrand as bQ, type ProductDetailCatalogResult as bR, type ProductDetailCatalogVariant as bS, type ProductDetailCategory as bT, type ProductDetailImage as bU, type ProductDetailImageMedia as bV, type ProductDetailMedia as bW, type ProductDetailOption as bX, type ProductDetailOptionValue as bY, type ProductDetailTag as bZ, type ProductDetailUnavailableReason as b_, type Comment as ba, type CommerceClientOptions as bb, type CommunityClientOptions as bc, type CommunityComment as bd, type CommunityCommentListSort as be, type CommunityPost as bf, type CommunityPostCategory as bg, type CommunityPostListSort as bh, type CommunityPostTag as bi, type CommunityPublicAuthorSnapshot as bj, type CommunityPublicMediaAsset as bk, type CommunityPublicReference as bl, type CompatibilityProductSelectionParamEvent as bm, type ConfirmPaymentParams as bn, type ConfirmPaymentResponse as bo, type ConfirmPaymentWithOrderResult as bp, type CreateFulfillmentParams as bq, type CreateOrderItem as br, type CreateOrderParams as bs, type CreateReturnParams as bt, type CustomerAuthOptions as bu, type CustomerOrderListOptions as bv, type CustomerSnapshot as bw, DiscountApi as bx, type DiscountApiOptions as by, type FeaturedImagePointerInput as bz, CustomerNamespace as c, type StockCheckResponse as c$, type ProductDetailVariantOptionValue as c0, type ProductDetailVideo as c1, type ProductHrefGroup as c2, type ProductHrefOptions as c3, type ProductHrefProduct as c4, type ProductListingCard as c5, type ProductListingCardOptions as c6, type ProductListingCardPriceRange as c7, type ProductListingCardRepresentativeVariant as c8, type ProductListingGroup as c9, type ProductSelectionByOptionValue as cA, ProductSelectionCodecError as cB, type ProductSelectionCodecOptions as cC, type ProductSelectionInput as cD, type ProductSelectionOptionValue as cE, type ProductSelectionResolution as cF, type ProductSelectionResolutionContext as cG, type ProductSelectionUrlEmit as cH, type ProductSelectionVariant as cI, type ProductUpsertFieldValidationErrorBody as cJ, type ProductUpsertFieldValidationErrorReason as cK, type ProductVariantShape as cL, type RequestOptions as cM, type ResolveCancelRefundFailedResponse as cN, type ResolveCancelRefundOutcome as cO, type ResolveCancelRefundParams as cP, type ResolveCancelRefundResponse as cQ, type ResolveCancelRefundSucceededResponse as cR, type ResolveProductDisplayMediaInput as cS, type ResolveProductDisplayMediaResult as cT, type ReturnItem as cU, type ReturnReason as cV, type ReturnWithRefundItem as cW, type ReturnWithRefundParams as cX, ShippingApi as cY, type ShippingApiOptions as cZ, type StockCheckParams as c_, type ProductListingGroupCatalogSummary as ca, type ProductListingGroupCatalogVariant as cb, type ProductListingGroupProjection as cc, type ProductListingGroupSummary as cd, type ProductListingGroupVariant as ce, type ProductListingGroupsCatalogProduct as cf, type ProductListingGroupsCatalogResponse as cg, type ProductListingGroupsProduct as ch, type ProductListingGroupsResponse as ci, type ProductListingPageFilters as cj, type ProductListingPageSort as ck, type ProductListingProductShape as cl, type ProductListingSwatch as cm, type ProductMediaResolutionSource as cn, type ProductMoneyRange as co, type ProductOptionMatrix as cp, type ProductOptionMatrixOption as cq, type ProductOptionMatrixValue as cr, type ProductOptionMatrixVariant as cs, type ProductOptionShape as ct, type ProductOptionValueShape as cu, type ProductOptionValueSwatch as cv, type ProductOptionValueSwatchInput as cw, type ProductPriceRange as cx, type ProductSelectionAvailableSwatch as cy, type ProductSelectionAvailableValue as cz, type ClientState as d, type StockCheckResult as d0, type StockSnapshotItem as d1, type StockSnapshotParams as d2, type TransactionStatus as d3, type UpdateFulfillmentParams as d4, type UpdateOrderParams as d5, type UpdateReturnParams as d6, type UpdateTransactionParams as d7, type ValidateDiscountParams as d8, type ValidateDiscountResult as d9, selectNext as dA, selectedSwatchMediaItemId as dB, stringifyProductSelection as dC, toShopifyPriceRangeV2 as dD, type WithIdempotencyKey as da, buildProductHref as db, buildProductListingCard as dc, buildProductListingGroupProjection as dd, buildProductListingGroupsByOption as de, buildProductOptionMatrix as df, buildProductOptionMatrixFromDetail as dg, createProductSelectionCodec as dh, getAvailableOptionValues as di, getProductSelectionImages as dj, getSelectedValueByOptionId as dk, getVariantAvailableForSale as dl, getVariantAvailableStock as dm, isProductUpsertFieldValidationErrorBody as dn, normalizeProductSelection as dp, normalizeProductSelectionFromMatrix as dq, normalizeSelectedValueIds as dr, parseProductSelection as ds, projectProductToListingShape as dt, resolveFeaturedImagePointer as du, resolveProductDisplayMedia as dv, resolveProductSelection as dw, resolveProductSelectionFromMatrix as dx, resolveProductSelectionMedia as dy, resolveVariantForSelection as dz, type ClientConfig as e, type ApiQueryOptions as f, type ApplyDiscountParams as g, type CheckoutParams as h, type ClearCartParams as i, type ClientMetadata as j, type ContentClientOptions as k, type DeepPartial as l, type ExtractArrayType as m, type PayloadMutationResponse as n, type PublicCart as o, type PublicCartItem as p, type PublicCartReference as q, type PublicMediaAsset as r, type PublicMediaSize as s, type PublicOrder as t, type PublicOrderItem as u, type PublicOrderReference as v, type RemoveItemParams as w, type RetryConfig as x, type RootClient as y, type RootCollectionClient as z };
@@ -1,4 +1,4 @@
1
- import { P as Product, C as CustomerProfile, a as CustomerProfileStat, b as CustomerProfileList, c as ProductCollection, d as Config } from './payload-types-CqJOgON7.js';
1
+ import { P as Product, C as CustomerProfile, a as CustomerProfileStat, b as CustomerProfileList, c as ProductCollection, d as Config } from './payload-types-C7Ul4ElL.js';
2
2
 
3
3
  type PublicCustomerProfile = Omit<CustomerProfile, 'tenant' | 'customer' | 'isPublic' | 'anonymizedAt' | 'metadata'>;
4
4
  type PublicCustomerProfileListEntry = {
@@ -1,4 +1,4 @@
1
- import { P as Product, C as CustomerProfile, a as CustomerProfileStat, b as CustomerProfileList, c as ProductCollection, d as Config } from './payload-types-CqJOgON7.cjs';
1
+ import { P as Product, C as CustomerProfile, a as CustomerProfileStat, b as CustomerProfileList, c as ProductCollection, d as Config } from './payload-types-C7Ul4ElL.cjs';
2
2
 
3
3
  type PublicCustomerProfile = Omit<CustomerProfile, 'tenant' | 'customer' | 'isPublic' | 'anonymizedAt' | 'metadata'>;
4
4
  type PublicCustomerProfileListEntry = {