@01.software/sdk 0.41.0 → 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 +222 -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-Bymfni8u.d.cts → collection-client-B-qVIBnJ.d.cts} +5 -5
  22. package/dist/{collection-client-CN4lj6gi.d.ts → collection-client-BhCMwIus.d.ts} +5 -5
  23. package/dist/{const-4BUtUdGU.d.cts → const-BiDujixF.d.cts} +1 -1
  24. package/dist/{const-ymprfiPf.d.ts → const-pmHlwm3E.d.ts} +1 -1
  25. package/dist/{index-w36lpSkU.d.ts → index-B1UBDaKz.d.ts} +3 -3
  26. package/dist/{index-Dquv4xTL.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-DC0xzR9i.d.cts → payload-types-C7Ul4ElL.d.cts} +181 -118
  34. package/dist/{payload-types-DC0xzR9i.d.ts → payload-types-C7Ul4ElL.d.ts} +181 -118
  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 +236 -50
  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 +236 -50
  48. package/dist/server.js.map +1 -1
  49. package/dist/{types-CHrzs2GB.d.ts → types-BL7M-EUV.d.cts} +140 -14
  50. package/dist/{types-Bh2p-EMc.d.ts → types-Bf2iCjy8.d.ts} +1 -1
  51. package/dist/{types-BvpjooU-.d.cts → types-ChV1t4ei.d.cts} +1 -1
  52. package/dist/{types-Bl-m9ttd.d.cts → types-D5dSNIGs.d.ts} +140 -14
  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 +3 -3
@@ -1,6 +1,6 @@
1
- import { P as PublicCollection, S as ServerCollection } from './const-ymprfiPf.js';
2
- import { C as CollectionType, P as PublicProduct } from './types-Bh2p-EMc.js';
3
- import { O as Order, m as Transaction, n as Fulfillment, R as Return } from './payload-types-DC0xzR9i.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>;
@@ -2515,6 +2640,7 @@ interface ApiQueryOptions {
2515
2640
  /** Include soft-deleted documents (requires `trash` enabled on the collection) */
2516
2641
  trash?: boolean;
2517
2642
  }
2643
+ type ApiDeleteOptions = Pick<ApiQueryOptions, 'trash'>;
2518
2644
  type PublicReadQueryOptions = Omit<ApiQueryOptions, 'depth' | 'joins' | 'populate'> & {
2519
2645
  /**
2520
2646
  * Publishable collection reads stay unpopulated. Use shaped commerce/community
@@ -2557,7 +2683,7 @@ interface RootServerQueryBuilder<T extends ServerCollection> extends RootQueryLo
2557
2683
  filename?: string;
2558
2684
  }): Promise<PayloadMutationResponse<CollectionType<T>>>;
2559
2685
  updateMany(where: ApiQueryOptions['where'], data: Partial<CollectionType<T>>): Promise<PayloadFindResponse<CollectionType<T>>>;
2560
- remove(id: string): Promise<CollectionType<T>>;
2686
+ remove(id: string, options?: ApiDeleteOptions): Promise<CollectionType<T>>;
2561
2687
  removeMany(where: ApiQueryOptions['where']): Promise<PayloadFindResponse<CollectionType<T>>>;
2562
2688
  }
2563
2689
  interface RootCollectionClient {
@@ -2607,4 +2733,4 @@ type DeepPartial<T> = {
2607
2733
  };
2608
2734
  type ExtractArrayType<T> = T extends (infer U)[] ? U : never;
2609
2735
 
2610
- 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 CalculateShippingResult 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 CustomerAuthResponse as aA, type CustomerLoginData as aB, type CustomerRegisterResponse as aC, type CustomerRegisterData as aD, type CustomerRefreshResponse as aE, type UpdateProfileData as aF, type ProductListingPageBaseParams as aG, type ProductListingPageParams as aH, type ProductDetailParams as aI, type ProductDetailResult as aJ, type ProductListingPageCatalogParams as aK, type ProductListingPageResult as aL, type ProductListingGroupsCatalogItem as aM, type ProductListingPageFullParams as aN, type ProductListingGroupsItem as aO, type ProductDetail as aP, type ProductDetailCatalog as aQ, type StockSnapshotResponse as aR, type ProductSelectionMediaSource as aS, type ProductDisplayMediaSource as aT, type ResolveProductSelectionMediaInput as aU, type ResolveProductSelectionMediaResult as aV, type ProductSelectionMediaPointer as aW, type RootClientWithEvents as aX, type BulkImportFulfillmentsParams as aY, type BulkImportFulfillmentsResponse as aZ, type CalculateShippingParams 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 PublicReadQueryOptions as ax, CustomerAuth as ay, type CustomerProfile as az, ContentClient as b, type ProductListingCardOptions as b$, type CancelOrderParams as b0, type CancelOrderReconciliationStatus as b1, type CancelOrderResponse as b2, type CancelReasonCode as b3, CartApi as b4, type CartApiOptions as b5, type Comment as b6, type CommerceClientOptions as b7, type CommunityClientOptions as b8, type CommunityComment as b9, OrderApi as bA, type OrderApiOptions as bB, PRODUCT_PLP_FIND_OPTIONS as bC, PRODUCT_UPSERT_READONLY_FIELD_REASON as bD, PRODUCT_UPSERT_UNKNOWN_FIELD_REASON as bE, type PrepareFulfillmentOrderParams as bF, type PrepareFulfillmentOrderResponse as bG, ProductApi as bH, type ProductApiOptions as bI, type ProductDetailBrand as bJ, type ProductDetailCatalogResult as bK, type ProductDetailCatalogVariant as bL, type ProductDetailCategory as bM, type ProductDetailImage as bN, type ProductDetailImageMedia as bO, type ProductDetailMedia as bP, type ProductDetailOption as bQ, type ProductDetailOptionValue as bR, type ProductDetailTag as bS, type ProductDetailUnavailableReason as bT, type ProductDetailVariant as bU, type ProductDetailVariantOptionValue as bV, type ProductDetailVideo as bW, type ProductHrefGroup as bX, type ProductHrefOptions as bY, type ProductHrefProduct as bZ, type ProductListingCard as b_, type CommunityCommentListSort as ba, type CommunityPost as bb, type CommunityPostCategory as bc, type CommunityPostListSort as bd, type CommunityPostTag as be, type CommunityPublicAuthorSnapshot as bf, type CommunityPublicMediaAsset as bg, type CommunityPublicReference as bh, type CompatibilityProductSelectionParamEvent as bi, type ConfirmPaymentParams as bj, type ConfirmPaymentResponse as bk, type CreateFulfillmentParams as bl, type CreateOrderItem as bm, type CreateOrderParams as bn, type CreateReturnParams as bo, type CustomerAuthOptions as bp, type CustomerOrderListOptions as bq, type CustomerSnapshot as br, DiscountApi as bs, type DiscountApiOptions as bt, type FeaturedImagePointerInput as bu, type LegacyProductSelectionParamEvent as bv, type ListingGroupsParams as bw, type MediaValue as bx, type NormalizedOptionSwatch as by, type NormalizedProductSelection as bz, CustomerNamespace as c, type UpdateTransactionParams as c$, type ProductListingCardPriceRange as c0, type ProductListingCardRepresentativeVariant as c1, type ProductListingGroup as c2, type ProductListingGroupCatalogSummary as c3, type ProductListingGroupCatalogVariant as c4, type ProductListingGroupProjection as c5, type ProductListingGroupSummary as c6, type ProductListingGroupVariant as c7, type ProductListingGroupsCatalogProduct as c8, type ProductListingGroupsCatalogResponse as c9, type ProductSelectionUrlEmit as cA, type ProductSelectionVariant as cB, type ProductUpsertFieldValidationErrorBody as cC, type ProductUpsertFieldValidationErrorReason as cD, type ProductVariantShape as cE, type RequestOptions as cF, type ResolveCancelRefundFailedResponse as cG, type ResolveCancelRefundOutcome as cH, type ResolveCancelRefundParams as cI, type ResolveCancelRefundResponse as cJ, type ResolveCancelRefundSucceededResponse as cK, type ResolveProductDisplayMediaInput as cL, type ResolveProductDisplayMediaResult as cM, type ReturnItem as cN, type ReturnReason as cO, type ReturnWithRefundItem as cP, type ReturnWithRefundParams as cQ, ShippingApi as cR, type ShippingApiOptions as cS, type StockCheckParams as cT, type StockCheckResponse as cU, type StockCheckResult as cV, type StockSnapshotItem as cW, type StockSnapshotParams as cX, type UpdateFulfillmentParams as cY, type UpdateOrderParams as cZ, type UpdateReturnParams as c_, type ProductListingGroupsProduct as ca, type ProductListingGroupsResponse as cb, type ProductListingPageFilters as cc, type ProductListingPageSort as cd, type ProductListingProductShape as ce, type ProductListingSwatch as cf, type ProductMediaResolutionSource as cg, type ProductMoneyRange as ch, type ProductOptionMatrix as ci, type ProductOptionMatrixOption as cj, type ProductOptionMatrixValue as ck, type ProductOptionMatrixVariant as cl, type ProductOptionShape as cm, type ProductOptionValueShape as cn, type ProductOptionValueSwatch as co, type ProductOptionValueSwatchInput as cp, type ProductPriceRange as cq, type ProductSelectionAvailableSwatch as cr, type ProductSelectionAvailableValue as cs, type ProductSelectionByOptionValue as ct, ProductSelectionCodecError as cu, type ProductSelectionCodecOptions as cv, type ProductSelectionInput as cw, type ProductSelectionOptionValue as cx, type ProductSelectionResolution as cy, type ProductSelectionResolutionContext as cz, type ClientState as d, type ValidateDiscountParams as d0, type ValidateDiscountResult as d1, type WithIdempotencyKey as d2, buildProductHref as d3, buildProductListingCard as d4, buildProductListingGroupProjection as d5, buildProductListingGroupsByOption as d6, buildProductOptionMatrix as d7, buildProductOptionMatrixFromDetail as d8, createProductSelectionCodec as d9, getAvailableOptionValues as da, getProductSelectionImages as db, getSelectedValueByOptionId as dc, getVariantAvailableForSale as dd, getVariantAvailableStock as de, isProductUpsertFieldValidationErrorBody as df, normalizeProductSelection as dg, normalizeProductSelectionFromMatrix as dh, normalizeSelectedValueIds as di, parseProductSelection as dj, projectProductToListingShape as dk, resolveFeaturedImagePointer as dl, resolveProductDisplayMedia as dm, resolveProductSelection as dn, resolveProductSelectionFromMatrix as dp, resolveProductSelectionMedia as dq, resolveVariantForSelection as dr, selectNext as ds, selectedSwatchMediaItemId as dt, stringifyProductSelection as du, toShopifyPriceRangeV2 as dv, 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-DC0xzR9i.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-DC0xzR9i.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 = {