@01.software/sdk 0.44.0 → 0.46.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 (80) hide show
  1. package/CHANGELOG.md +366 -2
  2. package/MIGRATION.md +108 -10
  3. package/README.md +486 -98
  4. package/dist/{server-nXOezi4b.d.cts → catalog-mappers-sIshKNb3.d.cts} +14 -3
  5. package/dist/{server-nXOezi4b.d.ts → catalog-mappers-sIshKNb3.d.ts} +14 -3
  6. package/dist/client.cjs +2693 -345
  7. package/dist/client.cjs.map +1 -1
  8. package/dist/client.d.cts +10 -7
  9. package/dist/client.d.ts +10 -7
  10. package/dist/client.js +2693 -345
  11. package/dist/client.js.map +1 -1
  12. package/dist/{collection-client-DWooaiTr.d.ts → collection-client-D6kKrYdq.d.ts} +8 -5
  13. package/dist/{collection-client-Dyl-CDcj.d.cts → collection-client-DolMjCoC.d.cts} +8 -5
  14. package/dist/{const-pGDnsy0o.d.ts → const-BAG0MH0u.d.cts} +13 -10
  15. package/dist/{const-1vleZ6ov.d.cts → const-CaPq2AE4.d.ts} +13 -10
  16. package/dist/errors.cjs +74 -1
  17. package/dist/errors.cjs.map +1 -1
  18. package/dist/errors.d.cts +38 -1
  19. package/dist/errors.d.ts +38 -1
  20. package/dist/errors.js +74 -1
  21. package/dist/errors.js.map +1 -1
  22. package/dist/{index-DUNySyxV.d.ts → index-BNICJxBL.d.ts} +4 -4
  23. package/dist/{index-a6g7vqAD.d.cts → index-YGrZrxNn.d.cts} +4 -4
  24. package/dist/index.cjs +2754 -368
  25. package/dist/index.cjs.map +1 -1
  26. package/dist/index.d.cts +18 -19
  27. package/dist/index.d.ts +18 -19
  28. package/dist/index.js +2754 -368
  29. package/dist/index.js.map +1 -1
  30. package/dist/{payload-types-CDsuOEfM.d.cts → payload-types-CJZuXcgF.d.cts} +6671 -4001
  31. package/dist/{payload-types-CDsuOEfM.d.ts → payload-types-CJZuXcgF.d.ts} +6671 -4001
  32. package/dist/query.cjs +558 -101
  33. package/dist/query.cjs.map +1 -1
  34. package/dist/query.d.cts +43 -45
  35. package/dist/query.d.ts +43 -45
  36. package/dist/query.js +558 -101
  37. package/dist/query.js.map +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.map +1 -1
  42. package/dist/server.cjs +2343 -437
  43. package/dist/server.cjs.map +1 -1
  44. package/dist/server.d.cts +11 -10
  45. package/dist/server.d.ts +11 -10
  46. package/dist/server.js +2343 -437
  47. package/dist/server.js.map +1 -1
  48. package/dist/storefront-cache.cjs +65 -1
  49. package/dist/storefront-cache.cjs.map +1 -1
  50. package/dist/storefront-cache.js +65 -1
  51. package/dist/storefront-cache.js.map +1 -1
  52. package/dist/types-BC6rVmJa.d.ts +47 -0
  53. package/dist/{types-CDND3hzq.d.cts → types-C60vHIkY.d.ts} +1134 -509
  54. package/dist/types-D5p7-m1l.d.cts +47 -0
  55. package/dist/{types-Dt9FJisi.d.ts → types-xlqBeW2N.d.cts} +1134 -509
  56. package/dist/ui/canvas/server.cjs +244 -2
  57. package/dist/ui/canvas/server.cjs.map +1 -1
  58. package/dist/ui/canvas/server.d.cts +27 -1
  59. package/dist/ui/canvas/server.d.ts +27 -1
  60. package/dist/ui/canvas/server.js +244 -2
  61. package/dist/ui/canvas/server.js.map +1 -1
  62. package/dist/ui/canvas.cjs +419 -103
  63. package/dist/ui/canvas.cjs.map +1 -1
  64. package/dist/ui/canvas.d.cts +19 -7
  65. package/dist/ui/canvas.d.ts +19 -7
  66. package/dist/ui/canvas.js +419 -103
  67. package/dist/ui/canvas.js.map +1 -1
  68. package/dist/ui/form.d.cts +1 -1
  69. package/dist/ui/form.d.ts +1 -1
  70. package/dist/ui/video.d.cts +1 -1
  71. package/dist/ui/video.d.ts +1 -1
  72. package/dist/webhook.cjs +2 -1
  73. package/dist/webhook.cjs.map +1 -1
  74. package/dist/webhook.d.cts +4 -4
  75. package/dist/webhook.d.ts +4 -4
  76. package/dist/webhook.js +2 -1
  77. package/dist/webhook.js.map +1 -1
  78. package/package.json +10 -9
  79. package/dist/types-SoXsbKhj.d.cts +0 -33
  80. package/dist/types-oiae_LMm.d.ts +0 -33
package/dist/index.d.cts CHANGED
@@ -1,23 +1,27 @@
1
- import { O as BaseApi, Q as ServerApiOptions, X as SubscribeMembershipParams, Y as SubscribeMembershipResponse, Z as CancelMembershipParams, _ as CancelMembershipResponse, d as CustomerMembershipView, aV as ProductDetail, aW as ProductDetailCatalog, aX as StockSnapshotResponse, aY as ProductSelectionMediaSource, aZ as ProductDisplayMediaSource, a_ as ResolveProductSelectionMediaInput, a$ as ResolveProductSelectionMediaResult, b0 as ProductSelectionMediaPointer, f as ClientConfig, b1 as RootClientWithEvents } from './types-CDND3hzq.cjs';
2
- export { A as AddItemParams, g as ApiQueryOptions, h as ApplyDiscountParams, b2 as BulkImportFulfillmentsParams, b3 as BulkImportFulfillmentsResponse, b4 as CalculateShippingParams, b5 as CalculateShippingResult, b6 as CancelOrderParams, b7 as CancelOrderReconciliationStatus, b8 as CancelOrderResponse, b9 as CancelReasonCode, ba as CartApi, bb as CartApiOptions, bc as CartMergeParams, bd as CartMergeResult, be as CartMineResult, i as CheckoutParams, j as ClearCartParams, z as Client, k as ClientMetadata, e as ClientState, z as ClientType, bf as Comment, C as CommerceClient, bg as CommerceClientOptions, a as CommunityClient, bh as CommunityClientOptions, bi as CommunityComment, bj as CommunityCommentListSort, bk as CommunityPost, bl as CommunityPostCategory, bm as CommunityPostListSort, bn as CommunityPostTag, bo as CommunityPublicAuthorSnapshot, bp as CommunityPublicMediaAsset, bq as CommunityPublicReference, br as CompatibilityProductSelectionParamEvent, bs as ConfirmPaymentParams, bt as ConfirmPaymentResponse, bu as ConfirmPaymentWithOrderResult, b as ContentClient, l as ContentClientOptions, bv as CreateFulfillmentParams, bw as CreateOrderItem, bx as CreateOrderParams, by as CreateReturnParams, aE as CustomerAuth, bz as CustomerAuthOptions, aG as CustomerAuthResponse, aH as CustomerLoginData, c as CustomerNamespace, bA as CustomerOrderListOptions, aF as CustomerProfile, aK as CustomerRefreshResponse, aJ as CustomerRegisterData, aI as CustomerRegisterResponse, bB as CustomerSnapshot, D as DebugConfig, m as DeepPartial, bC as DiscountApi, bD as DiscountApiOptions, bE as DiscountErrorReasonCode, a6 as EventGuestCancelParams, a7 as EventGuestRegistration, a8 as EventGuestRegistrationResponse, a9 as EventRegistrationAnswerInput, aa as EventRegistrationAttendeeInput, ab as EventRegistrationPublic, ac as EventRegistrationRegisterParams, ad as EventRegistrationRegisterResponse, ae as EventsCalendarItem, E as EventsClient, af as EventsClientOptions, ag as EventsDateParam, ah as EventsExternalSource, ai as EventsLocation, aj as EventsOccurrenceLocation, ak as EventsRangeEvent, al as EventsRangeOccurrence, am as EventsRangeParams, an as EventsRangeResponse, ao as EventsTaxonomyItem, n as ExtractArrayType, bF as FeaturedImagePointerInput, bG as GetOrderByPaymentIdParams, bH as LegacyProductSelectionParamEvent, bI as ListingGroupsParams, bJ as MediaValue, bK as MembershipStatus, bL as NormalizedOptionSwatch, bM as NormalizedProductSelection, bN as OrderApi, bO as OrderApiOptions, bP as OrderByPaymentResult, bQ as PRODUCT_PLP_FIND_OPTIONS, bR as PRODUCT_UPSERT_READONLY_FIELD_REASON, bS as PRODUCT_UPSERT_UNKNOWN_FIELD_REASON, P as PayloadFindResponse, o as PayloadMutationResponse, bT as PrepareFulfillmentOrderParams, bU as PrepareFulfillmentOrderResponse, bV as ProductApi, bW as ProductApiOptions, bX as ProductDetailBrand, bY as ProductDetailCatalogResult, bZ as ProductDetailCatalogVariant, b_ as ProductDetailCategory, b$ as ProductDetailImage, c0 as ProductDetailImageMedia, c1 as ProductDetailMedia, c2 as ProductDetailOption, c3 as ProductDetailOptionValue, aO as ProductDetailParams, aP as ProductDetailResult, c4 as ProductDetailTag, c5 as ProductDetailUnavailableReason, c6 as ProductDetailVariant, c7 as ProductDetailVariantOptionValue, c8 as ProductDetailVideo, c9 as ProductHrefGroup, ca as ProductHrefOptions, cb as ProductHrefProduct, cc as ProductListingCard, cd as ProductListingCardOptions, ce as ProductListingCardPriceRange, cf as ProductListingCardRepresentativeVariant, cg as ProductListingGroup, ch as ProductListingGroupCatalogSummary, ci as ProductListingGroupCatalogVariant, cj as ProductListingGroupProjection, ck as ProductListingGroupSummary, cl as ProductListingGroupVariant, aS as ProductListingGroupsCatalogItem, cm as ProductListingGroupsCatalogProduct, cn as ProductListingGroupsCatalogResponse, aU as ProductListingGroupsItem, co as ProductListingGroupsProduct, cp as ProductListingGroupsResponse, aM as ProductListingPageBaseParams, aQ as ProductListingPageCatalogParams, cq as ProductListingPageFilters, aT as ProductListingPageFullParams, aN as ProductListingPageParams, aR as ProductListingPageResult, cr as ProductListingPageSort, cs as ProductListingProductShape, ct as ProductListingSwatch, cu as ProductMediaResolutionSource, cv as ProductMoneyRange, cw as ProductOptionMatrix, cx as ProductOptionMatrixOption, cy as ProductOptionMatrixValue, cz as ProductOptionMatrixVariant, cA as ProductOptionShape, cB as ProductOptionValueShape, cC as ProductOptionValueSwatch, cD as ProductOptionValueSwatchInput, cE as ProductPriceRange, cF as ProductSelectionAvailableSwatch, cG as ProductSelectionAvailableValue, cH as ProductSelectionByOptionValue, cI as ProductSelectionCodecError, cJ as ProductSelectionCodecOptions, cK as ProductSelectionInput, cL as ProductSelectionOptionValue, cM as ProductSelectionResolution, cN as ProductSelectionResolutionContext, cO as ProductSelectionUrlEmit, cP as ProductSelectionVariant, cQ as ProductUpsertFieldValidationErrorBody, cR as ProductUpsertFieldValidationErrorReason, cS as ProductVariantShape, p as PublicCart, q as PublicCartItem, r as PublicCartReference, s as PublicMediaAsset, t as PublicMediaSize, u as PublicOrder, v as PublicOrderItem, w as PublicOrderReference, aD as PublicReadQueryOptions, R as RemoveDiscountParams, x as RemoveItemParams, cT as RequestOptions, cU as ResolveCancelRefundFailedResponse, cV as ResolveCancelRefundOutcome, cW as ResolveCancelRefundParams, cX as ResolveCancelRefundResponse, cY as ResolveCancelRefundSucceededResponse, cZ as ResolveProductDisplayMediaInput, c_ as ResolveProductDisplayMediaResult, y as RetryConfig, c$ as ReturnItem, d0 as ReturnReason, d1 as ReturnWithRefundItem, d2 as ReturnWithRefundParams, z as RootClient, B as RootCollectionClient, F as RootReadOnlyQueryBuilder, d3 as ShippingApi, d4 as ShippingApiOptions, S as Sort, d5 as StockCheckParams, d6 as StockCheckResponse, d7 as StockCheckResult, d8 as StockSnapshotItem, d9 as StockSnapshotParams, G as StorefrontContentListOptions, H as StorefrontContentReference, I as StorefrontGalleryItem, J as StorefrontGalleryItemsListOptions, K as StorefrontGalleryItemsSort, L as StorefrontLink, M as StorefrontLinksListOptions, N as StorefrontLinksSort, da as TransactionStatus, db as UpdateFulfillmentParams, U as UpdateItemParams, dc as UpdateOrderParams, aL as UpdateProfileData, dd as UpdateReturnParams, de as UpdateTransactionParams, df as ValidateDiscountParams, dg as ValidateDiscountResult, W as Where, dh as WithIdempotencyKey, di as buildProductHref, dj as buildProductListingCard, dk as buildProductListingGroupProjection, dl as buildProductListingGroupsByOption, dm as buildProductOptionMatrix, dn as buildProductOptionMatrixFromDetail, dp as createProductSelectionCodec, dq as getAvailableOptionValues, dr as getProductSelectionImages, ds as getSelectedValueByOptionId, dt as getVariantAvailableForSale, du as getVariantAvailableStock, dv as isProductUpsertFieldValidationErrorBody, dw as normalizeProductSelection, dx as normalizeProductSelectionFromMatrix, dy as normalizeSelectedValueIds, dz as parseProductSelection, dA as projectProductToListingShape, dB as resolveFeaturedImagePointer, dC as resolveProductDisplayMedia, dD as resolveProductSelection, dE as resolveProductSelectionFromMatrix, dF as resolveProductSelectionMedia, dG as resolveVariantForSelection, dH as selectNext, dI as selectedSwatchMediaItemId, dJ as stringifyProductSelection, dK as toShopifyPriceRangeV2 } from './types-CDND3hzq.cjs';
3
- import { P as Product } from './payload-types-CDsuOEfM.cjs';
4
- export { A as Article, e as ArticleAuthor, f as ArticleCategory, g as ArticleTag, h as Cart, i as CartItem, D as Document, I as Image, O as Order, j as Post, k as PostCategory, l as ProductVariant, T as Tenant, m as Transaction, V as Video } from './payload-types-CDsuOEfM.cjs';
5
- export { C as CollectionType, P as Product, a as ProductCollection } from './types-SoXsbKhj.cjs';
6
- export { C as COMMERCE_NOTIFICATION_EVENTS, a as COMMERCE_NOTIFICATION_EVENT_TYPE, b as COMMERCE_NOTIFICATION_OPERATION, c as CUSTOMER_PASSWORD_RESET_OPERATION, d as CollectionWebhookOperation, e as CommerceEmailChannel, f as CommerceEmailConfig, g as CommerceEmailEventConfig, h as CommerceEmailEventHandlers, i as CommerceEmailHandlerContext, j as CommerceNotification, k as CommerceNotificationData, l as CommerceNotificationEventHandlers, m as CommerceNotificationEventName, n as CommerceNotificationHandlerContext, o as CommerceNotificationSource, p as CommerceNotificationSourceCollection, q as CommerceNotificationWebhookEvent, r as CustomerAuthWebhookEvent, s as CustomerAuthWebhookHandlers, t as CustomerPasswordResetWebhookData, u as CustomerPasswordResetWebhookEvent, O as ORDER_CHANGED_EVENT_TYPE, v as OrderChangedWebhookEvent, W as WebhookChange, w as WebhookCommerceNotificationChange, x as WebhookEvent, y as WebhookHandler, z as WebhookKnownOperation, A as WebhookOperation, B as WebhookOptions, D as WebhookOrderChange, E as WebhookOrderMoved, F as WebhookOrderScope, G as createCommerceEmailWebhookHandler, H as createCommerceNotificationWebhookHandler, I as createCustomerAuthWebhookHandler, J as createTypedWebhookHandler, K as defineCommerceEmailConfig, L as getCommerceNotificationIdempotencyKey, M as handleWebhook, N as isCommerceNotificationWebhookEvent, P as isCustomerPasswordResetWebhookEvent, Q as isOrderChangedWebhookEvent, R as isValidWebhookEvent, S as isWebhookCollection, T as isWebhookOperation } from './index-a6g7vqAD.cjs';
7
- export { a as COLLECTIONS, C as Collection, I as INTERNAL_COLLECTIONS, P as PublicCollection, b as SERVER_COLLECTIONS, c as SERVER_ONLY_COLLECTIONS } from './const-1vleZ6ov.cjs';
1
+ import { c4 as BaseApi, aB as ServerApiOptions, aE as SubscribeMembershipParams, aF as SubscribeMembershipResponse, e as CancelMembershipParams, f as CancelMembershipResponse, c5 as ProductDetail, c6 as ProductDetailCatalog, c7 as StockSnapshotResponse, c8 as ProductSelectionMediaSource, c9 as ProductDisplayMediaSource, ca as ResolveProductSelectionMediaInput, cb as ResolveProductSelectionMediaResult, cc as ProductSelectionMediaPointer, h as ClientConfig, cd as RootClientWithEvents } from './types-xlqBeW2N.cjs';
2
+ export { A as AddItemParams, i as ApiQueryOptions, ce as BulkImportFulfillmentsParams, cf as BulkImportFulfillmentsResponse, cg as CalculateShippingParams, ch as CalculateShippingResult, j as CancelBrowserPaymentSessionParams, ci as CancelOrderParams, cj as CancelOrderResponse, ck as CancelReasonCode, cl as CartDiscountCode, k as CartMergeParams, l as CartMergeResult, m as CartMineResult, n as CartMutationResult, cm as CartWarning, cn as CartWarningCode, o as CheckoutAbandonedReason, p as CheckoutAmounts, q as CheckoutOrderReference, r as CheckoutPaymentSessionRef, s as CheckoutShippingAddress, t as ClearCartParams, ah as Client, u as ClientMetadata, g as ClientState, ah as ClientType, co as Comment, C as CommerceClient, cp as CommerceClientOptions, a as CommunityClient, cq as CommunityClientOptions, cr as CommunityComment, cs as CommunityCommentListSort, ct as CommunityPost, cu as CommunityPostCategory, cv as CommunityPostListSort, cw as CommunityPostTag, cx as CommunityPublicAuthorSnapshot, cy as CommunityPublicMediaAsset, cz as CommunityPublicReference, cA as CompatibilityProductSelectionParamEvent, b as ContentClient, v as ContentClientOptions, w as CreateCartParams, x as CreateCartResult, y as CreateCheckoutParams, z as CreateCheckoutResult, cB as CreateFulfillmentParams, B as CreatePaymentSessionParams, cC as CreateReturnParams, bP as CustomerAuth, cD as CustomerAuthOptions, bR as CustomerAuthResponse, cE as CustomerAuthorizationUrlInput, cF as CustomerAuthorizationUrlResult, bS as CustomerLoginData, d as CustomerMembershipView, c as CustomerNamespace, cG as CustomerOAuth, cH as CustomerOAuthCallbackResult, cI as CustomerOAuthConfig, cJ as CustomerOAuthTokenSet, cK as CustomerOrderListOptions, bQ as CustomerProfile, bV as CustomerRefreshResponse, bU as CustomerRegisterData, bT as CustomerRegisterResponse, D as CustomerSnapshot, F as DebugConfig, G as DeepPartial, cL as DiscountApi, cM as DiscountApiOptions, cN as DiscountErrorReasonCode, b3 as EventAdmissionAvailabilityParams, b4 as EventAdmissionAvailabilityResponse, b5 as EventAdmissionAvailabilityType, b6 as EventAdmissionPricePresentment, b7 as EventGuestCancelParams, b8 as EventGuestRegistration, b9 as EventGuestRegistrationResponse, ba as EventRegistrationAnswerInput, bb as EventRegistrationAttendeeInput, bc as EventRegistrationPublic, bd as EventRegistrationRegisterParams, be as EventRegistrationRegisterResponse, bf as EventsCalendarItem, E as EventsClient, bg as EventsClientOptions, bh as EventsDateParam, bi as EventsExternalSource, bj as EventsLocation, bk as EventsOccurrenceLocation, bl as EventsRangeEvent, bm as EventsRangeOccurrence, bn as EventsRangeParams, bo as EventsRangeResponse, bp as EventsTaxonomyItem, H as ExtractArrayType, cO as FeaturedImagePointerInput, cP as GetOrderByPaymentIdParams, cQ as LegacyProductSelectionParamEvent, cR as ListingGroupsParams, cS as MAX_CART_LINE_ADMISSIONS, cT as MarketDTO, cU as MediaValue, I as MembershipStatus, J as Money, cV as NormalizedOptionSwatch, cW as NormalizedProductSelection, O as OpenCheckoutPaymentState, cX as OrderApi, cY as OrderApiOptions, cZ as OrderByPaymentResult, c_ as PRODUCT_PLP_FIND_OPTIONS, c$ as PRODUCT_UPSERT_READONLY_FIELD_REASON, d0 as PRODUCT_UPSERT_UNKNOWN_FIELD_REASON, P as PayloadFindResponse, K as PayloadMutationResponse, L as PaymentFailureReason, N as PaymentNextAction, Q as PaymentProviderStatus, R as PaymentReconciliationReason, S as PaymentSessionRole, d1 as PrepareFulfillmentOrderParams, d2 as PrepareFulfillmentOrderResponse, d3 as ProductApi, d4 as ProductApiOptions, d5 as ProductDetailBrand, b_ as ProductDetailCatalogResult, d6 as ProductDetailCatalogVariant, d7 as ProductDetailCategory, d8 as ProductDetailImage, d9 as ProductDetailImageMedia, da as ProductDetailMedia, db as ProductDetailOption, dc as ProductDetailOptionValue, bZ as ProductDetailParams, dd as ProductDetailResult, de as ProductDetailTag, df as ProductDetailUnavailableReason, dg as ProductDetailVariant, dh as ProductDetailVariantOptionValue, di as ProductDetailVideo, dj as ProductFallbackLocaleOption, dk as ProductHrefGroup, dl as ProductHrefOptions, dm as ProductHrefProduct, dn as ProductListingCard, dp as ProductListingCardOptions, dq as ProductListingCardPriceRange, dr as ProductListingCardRepresentativeVariant, ds as ProductListingGroup, dt as ProductListingGroupCatalogSummary, du as ProductListingGroupCatalogVariant, dv as ProductListingGroupProjection, dw as ProductListingGroupSummary, dx as ProductListingGroupVariant, c1 as ProductListingGroupsCatalogItem, dy as ProductListingGroupsCatalogProduct, dz as ProductListingGroupsCatalogResponse, c3 as ProductListingGroupsItem, dA as ProductListingGroupsProduct, dB as ProductListingGroupsResponse, bY as ProductListingPageBaseParams, b$ as ProductListingPageCatalogParams, dC as ProductListingPageFilters, c2 as ProductListingPageFullParams, bX as ProductListingPageParams, c0 as ProductListingPageResult, dD as ProductListingPageSort, dE as ProductListingProductShape, dF as ProductListingSwatch, dG as ProductLocaleOption, dH as ProductLocaleReadParams, dI as ProductLocalizedText, dJ as ProductLocalizedValue, dK as ProductMediaResolutionSource, dL as ProductMoneyRange, dM as ProductOptionMatrix, dN as ProductOptionMatrixOption, dO as ProductOptionMatrixValue, dP as ProductOptionMatrixVariant, dQ as ProductOptionShape, dR as ProductOptionValueShape, dS as ProductOptionValueSwatch, dT as ProductOptionValueSwatchInput, dU as ProductPriceRange, dV as ProductSelectionAvailableSwatch, dW as ProductSelectionAvailableValue, dX as ProductSelectionByOptionValue, dY as ProductSelectionCodecError, dZ as ProductSelectionCodecOptions, d_ as ProductSelectionInput, d$ as ProductSelectionOptionValue, e0 as ProductSelectionResolution, e1 as ProductSelectionResolutionContext, e2 as ProductSelectionUrlEmit, e3 as ProductSelectionVariant, e4 as ProductUpsertFieldValidationErrorBody, e5 as ProductUpsertFieldValidationErrorReason, T as ProductUpsertInput, U as ProductUpsertParams, V as ProductUpsertResponse, W as ProductUpsertVariantInput, e6 as ProductVariantShape, X as PublicAttribute, Y as PublicCaptureEvidence, Z as PublicCart, _ as PublicCartItem, $ as PublicCartItemAdmission, a0 as PublicCartMarket, a1 as PublicCartReference, a2 as PublicCheckout, e7 as PublicCheckoutBase, a3 as PublicCheckoutItem, a4 as PublicMediaAsset, a5 as PublicMediaSize, a6 as PublicOrder, a7 as PublicOrderAmounts, a8 as PublicOrderItem, a9 as PublicOrderReference, aa as PublicPaymentSession, bO as PublicReadQueryOptions, ab as ReconciliationRequired, ac as RemoveItemParams, e8 as RequestOptions, e9 as ResolveCancelRefundFailedResponse, ea as ResolveCancelRefundOutcome, eb as ResolveCancelRefundParams, ec as ResolveCancelRefundResponse, ed as ResolveCancelRefundSucceededResponse, ee as ResolveProductDisplayMediaInput, ef as ResolveProductDisplayMediaResult, eg as ResolvedCatalogPrice, ad as RetrieveBrowserPaymentSessionParams, ae as RetrieveCartParams, af as RetrieveCheckoutParams, bt as RetrieveServerCheckoutParams, ag as RetryConfig, eh as ReturnCancellationReasonCode, ei as ReturnItem, ej as ReturnReason, ek as ReturnWithRefundItem, el as ReturnWithRefundParams, ah as RootClient, ai as RootCollectionClient, aj as RootReadOnlyQueryBuilder, em as ShippingApi, en as ShippingApiOptions, ak as ShippingLine, al as Sort, am as SpentCheckoutPaymentState, eo as StockCheckParams, ep as StockCheckResponse, eq as StockCheckResult, er as StockSnapshotItem, es as StockSnapshotParams, an as StorefrontContentListOptions, ao as StorefrontContentReference, ap as StorefrontGalleryItem, aq as StorefrontGalleryItemsListOptions, ar as StorefrontGalleryItemsSort, as as StorefrontLink, at as StorefrontLinksListOptions, au as StorefrontLinksSort, av as UpdateCartAttributesParams, aw as UpdateDiscountCodesParams, et as UpdateFulfillmentParams, ax as UpdateItemParams, eu as UpdateOrderParams, bW as UpdateProfileData, ev as UpdateReturnParams, ew as ValidateDiscountParams, ex as ValidateDiscountResult, ay as VariantInput, az as Where, ey as WithIdempotencyKey, ez as buildProductHref, eA as buildProductListingCard, eB as buildProductListingGroupProjection, eC as buildProductListingGroupsByOption, eD as buildProductOptionMatrix, eE as buildProductOptionMatrixFromDetail, eF as createProductSelectionCodec, eG as getAvailableOptionValues, eH as getProductSelectionImages, eI as getSelectedValueByOptionId, eJ as getVariantAvailableForSale, eK as getVariantAvailableStock, eL as isProductUpsertFieldValidationErrorBody, eM as normalizeProductSelection, eN as normalizeProductSelectionFromMatrix, eO as normalizeSelectedValueIds, eP as parseProductSelection, eQ as projectProductToListingShape, eR as resolveFeaturedImagePointer, eS as resolveProductDisplayMedia, eT as resolveProductSelection, eU as resolveProductSelectionFromMatrix, eV as resolveProductSelectionMedia, eW as resolveVariantForSelection, eX as selectNext, eY as selectedSwatchMediaItemId, eZ as stringifyProductSelection, e_ as toShopifyPriceRangeV2 } from './types-xlqBeW2N.cjs';
3
+ import { P as Product } from './payload-types-CJZuXcgF.cjs';
4
+ export { A as Article, f as ArticleAuthor, g as ArticleCategory, h as ArticleTag, D as Document, I as Image, i as Post, j as PostCategory, T as Tenant, V as Video } from './payload-types-CJZuXcgF.cjs';
5
+ export { C as CollectionType, P as Market, a as Product, b as ProductCollection, c as ProductVariant } from './types-D5p7-m1l.cjs';
6
+ export { C as COMMERCE_NOTIFICATION_EVENTS, a as COMMERCE_NOTIFICATION_EVENT_TYPE, b as COMMERCE_NOTIFICATION_OPERATION, c as CUSTOMER_PASSWORD_RESET_OPERATION, d as CollectionWebhookOperation, e as CommerceEmailChannel, f as CommerceEmailConfig, g as CommerceEmailEventConfig, h as CommerceEmailEventHandlers, i as CommerceEmailHandlerContext, j as CommerceNotification, k as CommerceNotificationData, l as CommerceNotificationEventHandlers, m as CommerceNotificationEventName, n as CommerceNotificationHandlerContext, o as CommerceNotificationSource, p as CommerceNotificationSourceCollection, q as CommerceNotificationWebhookEvent, r as CustomerAuthWebhookEvent, s as CustomerAuthWebhookHandlers, t as CustomerPasswordResetWebhookData, u as CustomerPasswordResetWebhookEvent, O as ORDER_CHANGED_EVENT_TYPE, v as OrderChangedWebhookEvent, W as WebhookChange, w as WebhookCommerceNotificationChange, x as WebhookEvent, y as WebhookHandler, z as WebhookKnownOperation, A as WebhookOperation, B as WebhookOptions, D as WebhookOrderChange, E as WebhookOrderMoved, F as WebhookOrderScope, G as createCommerceEmailWebhookHandler, H as createCommerceNotificationWebhookHandler, I as createCustomerAuthWebhookHandler, J as createTypedWebhookHandler, K as defineCommerceEmailConfig, L as getCommerceNotificationIdempotencyKey, M as handleWebhook, N as isCommerceNotificationWebhookEvent, P as isCustomerPasswordResetWebhookEvent, Q as isOrderChangedWebhookEvent, R as isValidWebhookEvent, S as isWebhookCollection, T as isWebhookOperation } from './index-YGrZrxNn.cjs';
7
+ export { a as COLLECTIONS, C as Collection, I as INTERNAL_COLLECTIONS, P as PublicCollection, b as SERVER_COLLECTIONS, c as SERVER_ONLY_COLLECTIONS } from './const-BAG0MH0u.cjs';
8
8
  export { a as RealtimeConnection, R as RealtimeEvent, b as RealtimeListener } from './realtime-D7HtUpqt.cjs';
9
9
  export { a as IMAGE_SIZES, I as ImageData, b as ImageDataSizeEntry, c as ImageDataSizes, d as ImagePalette, e as ImagePlaceholderOptions, g as getImageLqip, f as getImagePalette, h as getImagePlaceholderStyle, i as getImageSrcSet, j as getImageUrl } from './image-BDjHp03R.cjs';
10
10
  export { V as VideoGifOptions, a as VideoThumbnailOptions, g as getVideoGif, b as getVideoMp4Url, c as getVideoStoryboard, d as getVideoStreamUrl, e as getVideoThumbnail } from './video-WR_TFO9a.cjs';
11
11
  export { Analytics, AnalyticsConfig, createAnalytics } from './analytics.cjs';
12
- export { ApiError, AuthError, ConfigError, ConflictError, GoneError, NetworkError, NotFoundError, PermissionError, RateLimitError, SDKError, ServiceUnavailableError, TimeoutError, UsageLimitError, ValidationError, createAuthError, createConflictError, createNotFoundError, createPermissionError, createRateLimitError, isApiError, isAuthError, isConfigError, isConflictError, isGoneError, isNetworkError, isNotFoundError, isPermissionError, isRateLimitError, isSDKError, isServiceUnavailableError, isTimeoutError, isUsageLimitError, isValidationError } from './errors.cjs';
12
+ export { ApiError, AuthError, COMMERCE_ERROR_CODES, CommerceErrorCode, CommerceSDKError, ConfigError, ConflictError, GoneError, NetworkError, NotFoundError, PermissionError, RateLimitError, SDKError, ServiceUnavailableError, TimeoutError, UsageLimitError, ValidationError, createAuthError, createConflictError, createNotFoundError, createPermissionError, createRateLimitError, isApiError, isAuthError, isCommerceSDKError, isConfigError, isConflictError, isGoneError, isNetworkError, isNotFoundError, isPermissionError, isRateLimitError, isSDKError, isServiceUnavailableError, isTimeoutError, isUsageLimitError, isValidationError } from './errors.cjs';
13
+
14
+ declare function isCommerceIdempotencyKey(value: unknown): value is string;
15
+ declare function assertCommerceIdempotencyKey(value: unknown): asserts value is string;
16
+ /** Create a cryptographically strong key for one logical commerce operation. */
17
+ declare function createCommerceIdempotencyKey(): string;
13
18
 
14
19
  type MembershipApiOptions = ServerApiOptions;
15
20
  /**
16
21
  * Server-only (secret-key) API for membership lifecycle operations.
17
22
  *
18
23
  * subscribe / cancel are sk-only (admin-sk-only policy).
19
- * me is also exposed on the browser client (customer-JWT policy), but the
20
- * server-side method reuses the same endpoint.
24
+ * Customer-JWT membership view/cancel methods are exposed by the browser client.
21
25
  */
22
26
  declare class MembershipApi extends BaseApi {
23
27
  constructor(options: MembershipApiOptions);
@@ -32,16 +36,11 @@ declare class MembershipApi extends BaseApi {
32
36
  subscribe(params: SubscribeMembershipParams): Promise<SubscribeMembershipResponse>;
33
37
  /**
34
38
  * Cancel a membership by id.
35
- * `immediate=false` (default) sets `cancelAtPeriodEnd`; the customer retains
36
- * benefits until `currentPeriodEnd`. `immediate=true` cancels now and revokes
37
- * membership groups immediately.
39
+ * By default this sets `cancelAtPeriodEnd`, keeps benefits until
40
+ * `currentPeriodEnd`, and stops renewal. Pass `immediate=true` to cancel
41
+ * immediately and revoke membership groups now.
38
42
  */
39
43
  cancel(params: CancelMembershipParams): Promise<CancelMembershipResponse>;
40
- /**
41
- * Retrieve the authenticated customer's own membership view.
42
- * Never returns payment tokens or internal keys.
43
- */
44
- me(): Promise<CustomerMembershipView | null>;
45
44
  }
46
45
 
47
46
  type ProductDetailStockMergeStatus = 'complete' | 'partial';
@@ -130,4 +129,4 @@ declare function resolveRelation<T>(ref: unknown): T | null;
130
129
 
131
130
  declare function createClient(options: ClientConfig): RootClientWithEvents;
132
131
 
133
- export { BaseApi, CancelMembershipParams, CancelMembershipResponse, ClientConfig, CustomerMembershipView, type MediaPointerSource, MembershipApi, type MembershipApiOptions, type MergedProductDetailResult, ProductDetail, ProductDetailCatalog, type ProductDetailStockMergeStatus, ProductDisplayMediaSource, type ProductGallerySource, type ProductMediaSetInput, type ProductMediaSetMatchType, ProductSelectionMediaPointer, ProductSelectionMediaSource, type ResolveProductGalleryInput, type ResolveProductGalleryResult, type ResolveProductMediaInput, type ResolveProductMediaResult, ResolveProductSelectionMediaInput, ResolveProductSelectionMediaResult, RootClientWithEvents, ServerApiOptions, StockSnapshotResponse, SubscribeMembershipParams, SubscribeMembershipResponse, createClient, formatOrderName, generateOrderNumber, mergeProductDetailWithStock, resolveProductGallery, resolveProductMedia, resolveRelation };
132
+ export { BaseApi, CancelMembershipParams, CancelMembershipResponse, ClientConfig, type MediaPointerSource, MembershipApi, type MembershipApiOptions, type MergedProductDetailResult, ProductDetail, ProductDetailCatalog, type ProductDetailStockMergeStatus, ProductDisplayMediaSource, type ProductGallerySource, type ProductMediaSetInput, type ProductMediaSetMatchType, ProductSelectionMediaPointer, ProductSelectionMediaSource, type ResolveProductGalleryInput, type ResolveProductGalleryResult, type ResolveProductMediaInput, type ResolveProductMediaResult, ResolveProductSelectionMediaInput, ResolveProductSelectionMediaResult, RootClientWithEvents, ServerApiOptions, StockSnapshotResponse, SubscribeMembershipParams, SubscribeMembershipResponse, assertCommerceIdempotencyKey, createClient, createCommerceIdempotencyKey, formatOrderName, generateOrderNumber, isCommerceIdempotencyKey, mergeProductDetailWithStock, resolveProductGallery, resolveProductMedia, resolveRelation };
package/dist/index.d.ts CHANGED
@@ -1,23 +1,27 @@
1
- import { O as BaseApi, Q as ServerApiOptions, X as SubscribeMembershipParams, Y as SubscribeMembershipResponse, Z as CancelMembershipParams, _ as CancelMembershipResponse, d as CustomerMembershipView, aV as ProductDetail, aW as ProductDetailCatalog, aX as StockSnapshotResponse, aY as ProductSelectionMediaSource, aZ as ProductDisplayMediaSource, a_ as ResolveProductSelectionMediaInput, a$ as ResolveProductSelectionMediaResult, b0 as ProductSelectionMediaPointer, f as ClientConfig, b1 as RootClientWithEvents } from './types-Dt9FJisi.js';
2
- export { A as AddItemParams, g as ApiQueryOptions, h as ApplyDiscountParams, b2 as BulkImportFulfillmentsParams, b3 as BulkImportFulfillmentsResponse, b4 as CalculateShippingParams, b5 as CalculateShippingResult, b6 as CancelOrderParams, b7 as CancelOrderReconciliationStatus, b8 as CancelOrderResponse, b9 as CancelReasonCode, ba as CartApi, bb as CartApiOptions, bc as CartMergeParams, bd as CartMergeResult, be as CartMineResult, i as CheckoutParams, j as ClearCartParams, z as Client, k as ClientMetadata, e as ClientState, z as ClientType, bf as Comment, C as CommerceClient, bg as CommerceClientOptions, a as CommunityClient, bh as CommunityClientOptions, bi as CommunityComment, bj as CommunityCommentListSort, bk as CommunityPost, bl as CommunityPostCategory, bm as CommunityPostListSort, bn as CommunityPostTag, bo as CommunityPublicAuthorSnapshot, bp as CommunityPublicMediaAsset, bq as CommunityPublicReference, br as CompatibilityProductSelectionParamEvent, bs as ConfirmPaymentParams, bt as ConfirmPaymentResponse, bu as ConfirmPaymentWithOrderResult, b as ContentClient, l as ContentClientOptions, bv as CreateFulfillmentParams, bw as CreateOrderItem, bx as CreateOrderParams, by as CreateReturnParams, aE as CustomerAuth, bz as CustomerAuthOptions, aG as CustomerAuthResponse, aH as CustomerLoginData, c as CustomerNamespace, bA as CustomerOrderListOptions, aF as CustomerProfile, aK as CustomerRefreshResponse, aJ as CustomerRegisterData, aI as CustomerRegisterResponse, bB as CustomerSnapshot, D as DebugConfig, m as DeepPartial, bC as DiscountApi, bD as DiscountApiOptions, bE as DiscountErrorReasonCode, a6 as EventGuestCancelParams, a7 as EventGuestRegistration, a8 as EventGuestRegistrationResponse, a9 as EventRegistrationAnswerInput, aa as EventRegistrationAttendeeInput, ab as EventRegistrationPublic, ac as EventRegistrationRegisterParams, ad as EventRegistrationRegisterResponse, ae as EventsCalendarItem, E as EventsClient, af as EventsClientOptions, ag as EventsDateParam, ah as EventsExternalSource, ai as EventsLocation, aj as EventsOccurrenceLocation, ak as EventsRangeEvent, al as EventsRangeOccurrence, am as EventsRangeParams, an as EventsRangeResponse, ao as EventsTaxonomyItem, n as ExtractArrayType, bF as FeaturedImagePointerInput, bG as GetOrderByPaymentIdParams, bH as LegacyProductSelectionParamEvent, bI as ListingGroupsParams, bJ as MediaValue, bK as MembershipStatus, bL as NormalizedOptionSwatch, bM as NormalizedProductSelection, bN as OrderApi, bO as OrderApiOptions, bP as OrderByPaymentResult, bQ as PRODUCT_PLP_FIND_OPTIONS, bR as PRODUCT_UPSERT_READONLY_FIELD_REASON, bS as PRODUCT_UPSERT_UNKNOWN_FIELD_REASON, P as PayloadFindResponse, o as PayloadMutationResponse, bT as PrepareFulfillmentOrderParams, bU as PrepareFulfillmentOrderResponse, bV as ProductApi, bW as ProductApiOptions, bX as ProductDetailBrand, bY as ProductDetailCatalogResult, bZ as ProductDetailCatalogVariant, b_ as ProductDetailCategory, b$ as ProductDetailImage, c0 as ProductDetailImageMedia, c1 as ProductDetailMedia, c2 as ProductDetailOption, c3 as ProductDetailOptionValue, aO as ProductDetailParams, aP as ProductDetailResult, c4 as ProductDetailTag, c5 as ProductDetailUnavailableReason, c6 as ProductDetailVariant, c7 as ProductDetailVariantOptionValue, c8 as ProductDetailVideo, c9 as ProductHrefGroup, ca as ProductHrefOptions, cb as ProductHrefProduct, cc as ProductListingCard, cd as ProductListingCardOptions, ce as ProductListingCardPriceRange, cf as ProductListingCardRepresentativeVariant, cg as ProductListingGroup, ch as ProductListingGroupCatalogSummary, ci as ProductListingGroupCatalogVariant, cj as ProductListingGroupProjection, ck as ProductListingGroupSummary, cl as ProductListingGroupVariant, aS as ProductListingGroupsCatalogItem, cm as ProductListingGroupsCatalogProduct, cn as ProductListingGroupsCatalogResponse, aU as ProductListingGroupsItem, co as ProductListingGroupsProduct, cp as ProductListingGroupsResponse, aM as ProductListingPageBaseParams, aQ as ProductListingPageCatalogParams, cq as ProductListingPageFilters, aT as ProductListingPageFullParams, aN as ProductListingPageParams, aR as ProductListingPageResult, cr as ProductListingPageSort, cs as ProductListingProductShape, ct as ProductListingSwatch, cu as ProductMediaResolutionSource, cv as ProductMoneyRange, cw as ProductOptionMatrix, cx as ProductOptionMatrixOption, cy as ProductOptionMatrixValue, cz as ProductOptionMatrixVariant, cA as ProductOptionShape, cB as ProductOptionValueShape, cC as ProductOptionValueSwatch, cD as ProductOptionValueSwatchInput, cE as ProductPriceRange, cF as ProductSelectionAvailableSwatch, cG as ProductSelectionAvailableValue, cH as ProductSelectionByOptionValue, cI as ProductSelectionCodecError, cJ as ProductSelectionCodecOptions, cK as ProductSelectionInput, cL as ProductSelectionOptionValue, cM as ProductSelectionResolution, cN as ProductSelectionResolutionContext, cO as ProductSelectionUrlEmit, cP as ProductSelectionVariant, cQ as ProductUpsertFieldValidationErrorBody, cR as ProductUpsertFieldValidationErrorReason, cS as ProductVariantShape, p as PublicCart, q as PublicCartItem, r as PublicCartReference, s as PublicMediaAsset, t as PublicMediaSize, u as PublicOrder, v as PublicOrderItem, w as PublicOrderReference, aD as PublicReadQueryOptions, R as RemoveDiscountParams, x as RemoveItemParams, cT as RequestOptions, cU as ResolveCancelRefundFailedResponse, cV as ResolveCancelRefundOutcome, cW as ResolveCancelRefundParams, cX as ResolveCancelRefundResponse, cY as ResolveCancelRefundSucceededResponse, cZ as ResolveProductDisplayMediaInput, c_ as ResolveProductDisplayMediaResult, y as RetryConfig, c$ as ReturnItem, d0 as ReturnReason, d1 as ReturnWithRefundItem, d2 as ReturnWithRefundParams, z as RootClient, B as RootCollectionClient, F as RootReadOnlyQueryBuilder, d3 as ShippingApi, d4 as ShippingApiOptions, S as Sort, d5 as StockCheckParams, d6 as StockCheckResponse, d7 as StockCheckResult, d8 as StockSnapshotItem, d9 as StockSnapshotParams, G as StorefrontContentListOptions, H as StorefrontContentReference, I as StorefrontGalleryItem, J as StorefrontGalleryItemsListOptions, K as StorefrontGalleryItemsSort, L as StorefrontLink, M as StorefrontLinksListOptions, N as StorefrontLinksSort, da as TransactionStatus, db as UpdateFulfillmentParams, U as UpdateItemParams, dc as UpdateOrderParams, aL as UpdateProfileData, dd as UpdateReturnParams, de as UpdateTransactionParams, df as ValidateDiscountParams, dg as ValidateDiscountResult, W as Where, dh as WithIdempotencyKey, di as buildProductHref, dj as buildProductListingCard, dk as buildProductListingGroupProjection, dl as buildProductListingGroupsByOption, dm as buildProductOptionMatrix, dn as buildProductOptionMatrixFromDetail, dp as createProductSelectionCodec, dq as getAvailableOptionValues, dr as getProductSelectionImages, ds as getSelectedValueByOptionId, dt as getVariantAvailableForSale, du as getVariantAvailableStock, dv as isProductUpsertFieldValidationErrorBody, dw as normalizeProductSelection, dx as normalizeProductSelectionFromMatrix, dy as normalizeSelectedValueIds, dz as parseProductSelection, dA as projectProductToListingShape, dB as resolveFeaturedImagePointer, dC as resolveProductDisplayMedia, dD as resolveProductSelection, dE as resolveProductSelectionFromMatrix, dF as resolveProductSelectionMedia, dG as resolveVariantForSelection, dH as selectNext, dI as selectedSwatchMediaItemId, dJ as stringifyProductSelection, dK as toShopifyPriceRangeV2 } from './types-Dt9FJisi.js';
3
- import { P as Product } from './payload-types-CDsuOEfM.js';
4
- export { A as Article, e as ArticleAuthor, f as ArticleCategory, g as ArticleTag, h as Cart, i as CartItem, D as Document, I as Image, O as Order, j as Post, k as PostCategory, l as ProductVariant, T as Tenant, m as Transaction, V as Video } from './payload-types-CDsuOEfM.js';
5
- export { C as CollectionType, P as Product, a as ProductCollection } from './types-oiae_LMm.js';
6
- export { C as COMMERCE_NOTIFICATION_EVENTS, a as COMMERCE_NOTIFICATION_EVENT_TYPE, b as COMMERCE_NOTIFICATION_OPERATION, c as CUSTOMER_PASSWORD_RESET_OPERATION, d as CollectionWebhookOperation, e as CommerceEmailChannel, f as CommerceEmailConfig, g as CommerceEmailEventConfig, h as CommerceEmailEventHandlers, i as CommerceEmailHandlerContext, j as CommerceNotification, k as CommerceNotificationData, l as CommerceNotificationEventHandlers, m as CommerceNotificationEventName, n as CommerceNotificationHandlerContext, o as CommerceNotificationSource, p as CommerceNotificationSourceCollection, q as CommerceNotificationWebhookEvent, r as CustomerAuthWebhookEvent, s as CustomerAuthWebhookHandlers, t as CustomerPasswordResetWebhookData, u as CustomerPasswordResetWebhookEvent, O as ORDER_CHANGED_EVENT_TYPE, v as OrderChangedWebhookEvent, W as WebhookChange, w as WebhookCommerceNotificationChange, x as WebhookEvent, y as WebhookHandler, z as WebhookKnownOperation, A as WebhookOperation, B as WebhookOptions, D as WebhookOrderChange, E as WebhookOrderMoved, F as WebhookOrderScope, G as createCommerceEmailWebhookHandler, H as createCommerceNotificationWebhookHandler, I as createCustomerAuthWebhookHandler, J as createTypedWebhookHandler, K as defineCommerceEmailConfig, L as getCommerceNotificationIdempotencyKey, M as handleWebhook, N as isCommerceNotificationWebhookEvent, P as isCustomerPasswordResetWebhookEvent, Q as isOrderChangedWebhookEvent, R as isValidWebhookEvent, S as isWebhookCollection, T as isWebhookOperation } from './index-DUNySyxV.js';
7
- export { a as COLLECTIONS, C as Collection, I as INTERNAL_COLLECTIONS, P as PublicCollection, b as SERVER_COLLECTIONS, c as SERVER_ONLY_COLLECTIONS } from './const-pGDnsy0o.js';
1
+ import { c4 as BaseApi, aB as ServerApiOptions, aE as SubscribeMembershipParams, aF as SubscribeMembershipResponse, e as CancelMembershipParams, f as CancelMembershipResponse, c5 as ProductDetail, c6 as ProductDetailCatalog, c7 as StockSnapshotResponse, c8 as ProductSelectionMediaSource, c9 as ProductDisplayMediaSource, ca as ResolveProductSelectionMediaInput, cb as ResolveProductSelectionMediaResult, cc as ProductSelectionMediaPointer, h as ClientConfig, cd as RootClientWithEvents } from './types-C60vHIkY.js';
2
+ export { A as AddItemParams, i as ApiQueryOptions, ce as BulkImportFulfillmentsParams, cf as BulkImportFulfillmentsResponse, cg as CalculateShippingParams, ch as CalculateShippingResult, j as CancelBrowserPaymentSessionParams, ci as CancelOrderParams, cj as CancelOrderResponse, ck as CancelReasonCode, cl as CartDiscountCode, k as CartMergeParams, l as CartMergeResult, m as CartMineResult, n as CartMutationResult, cm as CartWarning, cn as CartWarningCode, o as CheckoutAbandonedReason, p as CheckoutAmounts, q as CheckoutOrderReference, r as CheckoutPaymentSessionRef, s as CheckoutShippingAddress, t as ClearCartParams, ah as Client, u as ClientMetadata, g as ClientState, ah as ClientType, co as Comment, C as CommerceClient, cp as CommerceClientOptions, a as CommunityClient, cq as CommunityClientOptions, cr as CommunityComment, cs as CommunityCommentListSort, ct as CommunityPost, cu as CommunityPostCategory, cv as CommunityPostListSort, cw as CommunityPostTag, cx as CommunityPublicAuthorSnapshot, cy as CommunityPublicMediaAsset, cz as CommunityPublicReference, cA as CompatibilityProductSelectionParamEvent, b as ContentClient, v as ContentClientOptions, w as CreateCartParams, x as CreateCartResult, y as CreateCheckoutParams, z as CreateCheckoutResult, cB as CreateFulfillmentParams, B as CreatePaymentSessionParams, cC as CreateReturnParams, bP as CustomerAuth, cD as CustomerAuthOptions, bR as CustomerAuthResponse, cE as CustomerAuthorizationUrlInput, cF as CustomerAuthorizationUrlResult, bS as CustomerLoginData, d as CustomerMembershipView, c as CustomerNamespace, cG as CustomerOAuth, cH as CustomerOAuthCallbackResult, cI as CustomerOAuthConfig, cJ as CustomerOAuthTokenSet, cK as CustomerOrderListOptions, bQ as CustomerProfile, bV as CustomerRefreshResponse, bU as CustomerRegisterData, bT as CustomerRegisterResponse, D as CustomerSnapshot, F as DebugConfig, G as DeepPartial, cL as DiscountApi, cM as DiscountApiOptions, cN as DiscountErrorReasonCode, b3 as EventAdmissionAvailabilityParams, b4 as EventAdmissionAvailabilityResponse, b5 as EventAdmissionAvailabilityType, b6 as EventAdmissionPricePresentment, b7 as EventGuestCancelParams, b8 as EventGuestRegistration, b9 as EventGuestRegistrationResponse, ba as EventRegistrationAnswerInput, bb as EventRegistrationAttendeeInput, bc as EventRegistrationPublic, bd as EventRegistrationRegisterParams, be as EventRegistrationRegisterResponse, bf as EventsCalendarItem, E as EventsClient, bg as EventsClientOptions, bh as EventsDateParam, bi as EventsExternalSource, bj as EventsLocation, bk as EventsOccurrenceLocation, bl as EventsRangeEvent, bm as EventsRangeOccurrence, bn as EventsRangeParams, bo as EventsRangeResponse, bp as EventsTaxonomyItem, H as ExtractArrayType, cO as FeaturedImagePointerInput, cP as GetOrderByPaymentIdParams, cQ as LegacyProductSelectionParamEvent, cR as ListingGroupsParams, cS as MAX_CART_LINE_ADMISSIONS, cT as MarketDTO, cU as MediaValue, I as MembershipStatus, J as Money, cV as NormalizedOptionSwatch, cW as NormalizedProductSelection, O as OpenCheckoutPaymentState, cX as OrderApi, cY as OrderApiOptions, cZ as OrderByPaymentResult, c_ as PRODUCT_PLP_FIND_OPTIONS, c$ as PRODUCT_UPSERT_READONLY_FIELD_REASON, d0 as PRODUCT_UPSERT_UNKNOWN_FIELD_REASON, P as PayloadFindResponse, K as PayloadMutationResponse, L as PaymentFailureReason, N as PaymentNextAction, Q as PaymentProviderStatus, R as PaymentReconciliationReason, S as PaymentSessionRole, d1 as PrepareFulfillmentOrderParams, d2 as PrepareFulfillmentOrderResponse, d3 as ProductApi, d4 as ProductApiOptions, d5 as ProductDetailBrand, b_ as ProductDetailCatalogResult, d6 as ProductDetailCatalogVariant, d7 as ProductDetailCategory, d8 as ProductDetailImage, d9 as ProductDetailImageMedia, da as ProductDetailMedia, db as ProductDetailOption, dc as ProductDetailOptionValue, bZ as ProductDetailParams, dd as ProductDetailResult, de as ProductDetailTag, df as ProductDetailUnavailableReason, dg as ProductDetailVariant, dh as ProductDetailVariantOptionValue, di as ProductDetailVideo, dj as ProductFallbackLocaleOption, dk as ProductHrefGroup, dl as ProductHrefOptions, dm as ProductHrefProduct, dn as ProductListingCard, dp as ProductListingCardOptions, dq as ProductListingCardPriceRange, dr as ProductListingCardRepresentativeVariant, ds as ProductListingGroup, dt as ProductListingGroupCatalogSummary, du as ProductListingGroupCatalogVariant, dv as ProductListingGroupProjection, dw as ProductListingGroupSummary, dx as ProductListingGroupVariant, c1 as ProductListingGroupsCatalogItem, dy as ProductListingGroupsCatalogProduct, dz as ProductListingGroupsCatalogResponse, c3 as ProductListingGroupsItem, dA as ProductListingGroupsProduct, dB as ProductListingGroupsResponse, bY as ProductListingPageBaseParams, b$ as ProductListingPageCatalogParams, dC as ProductListingPageFilters, c2 as ProductListingPageFullParams, bX as ProductListingPageParams, c0 as ProductListingPageResult, dD as ProductListingPageSort, dE as ProductListingProductShape, dF as ProductListingSwatch, dG as ProductLocaleOption, dH as ProductLocaleReadParams, dI as ProductLocalizedText, dJ as ProductLocalizedValue, dK as ProductMediaResolutionSource, dL as ProductMoneyRange, dM as ProductOptionMatrix, dN as ProductOptionMatrixOption, dO as ProductOptionMatrixValue, dP as ProductOptionMatrixVariant, dQ as ProductOptionShape, dR as ProductOptionValueShape, dS as ProductOptionValueSwatch, dT as ProductOptionValueSwatchInput, dU as ProductPriceRange, dV as ProductSelectionAvailableSwatch, dW as ProductSelectionAvailableValue, dX as ProductSelectionByOptionValue, dY as ProductSelectionCodecError, dZ as ProductSelectionCodecOptions, d_ as ProductSelectionInput, d$ as ProductSelectionOptionValue, e0 as ProductSelectionResolution, e1 as ProductSelectionResolutionContext, e2 as ProductSelectionUrlEmit, e3 as ProductSelectionVariant, e4 as ProductUpsertFieldValidationErrorBody, e5 as ProductUpsertFieldValidationErrorReason, T as ProductUpsertInput, U as ProductUpsertParams, V as ProductUpsertResponse, W as ProductUpsertVariantInput, e6 as ProductVariantShape, X as PublicAttribute, Y as PublicCaptureEvidence, Z as PublicCart, _ as PublicCartItem, $ as PublicCartItemAdmission, a0 as PublicCartMarket, a1 as PublicCartReference, a2 as PublicCheckout, e7 as PublicCheckoutBase, a3 as PublicCheckoutItem, a4 as PublicMediaAsset, a5 as PublicMediaSize, a6 as PublicOrder, a7 as PublicOrderAmounts, a8 as PublicOrderItem, a9 as PublicOrderReference, aa as PublicPaymentSession, bO as PublicReadQueryOptions, ab as ReconciliationRequired, ac as RemoveItemParams, e8 as RequestOptions, e9 as ResolveCancelRefundFailedResponse, ea as ResolveCancelRefundOutcome, eb as ResolveCancelRefundParams, ec as ResolveCancelRefundResponse, ed as ResolveCancelRefundSucceededResponse, ee as ResolveProductDisplayMediaInput, ef as ResolveProductDisplayMediaResult, eg as ResolvedCatalogPrice, ad as RetrieveBrowserPaymentSessionParams, ae as RetrieveCartParams, af as RetrieveCheckoutParams, bt as RetrieveServerCheckoutParams, ag as RetryConfig, eh as ReturnCancellationReasonCode, ei as ReturnItem, ej as ReturnReason, ek as ReturnWithRefundItem, el as ReturnWithRefundParams, ah as RootClient, ai as RootCollectionClient, aj as RootReadOnlyQueryBuilder, em as ShippingApi, en as ShippingApiOptions, ak as ShippingLine, al as Sort, am as SpentCheckoutPaymentState, eo as StockCheckParams, ep as StockCheckResponse, eq as StockCheckResult, er as StockSnapshotItem, es as StockSnapshotParams, an as StorefrontContentListOptions, ao as StorefrontContentReference, ap as StorefrontGalleryItem, aq as StorefrontGalleryItemsListOptions, ar as StorefrontGalleryItemsSort, as as StorefrontLink, at as StorefrontLinksListOptions, au as StorefrontLinksSort, av as UpdateCartAttributesParams, aw as UpdateDiscountCodesParams, et as UpdateFulfillmentParams, ax as UpdateItemParams, eu as UpdateOrderParams, bW as UpdateProfileData, ev as UpdateReturnParams, ew as ValidateDiscountParams, ex as ValidateDiscountResult, ay as VariantInput, az as Where, ey as WithIdempotencyKey, ez as buildProductHref, eA as buildProductListingCard, eB as buildProductListingGroupProjection, eC as buildProductListingGroupsByOption, eD as buildProductOptionMatrix, eE as buildProductOptionMatrixFromDetail, eF as createProductSelectionCodec, eG as getAvailableOptionValues, eH as getProductSelectionImages, eI as getSelectedValueByOptionId, eJ as getVariantAvailableForSale, eK as getVariantAvailableStock, eL as isProductUpsertFieldValidationErrorBody, eM as normalizeProductSelection, eN as normalizeProductSelectionFromMatrix, eO as normalizeSelectedValueIds, eP as parseProductSelection, eQ as projectProductToListingShape, eR as resolveFeaturedImagePointer, eS as resolveProductDisplayMedia, eT as resolveProductSelection, eU as resolveProductSelectionFromMatrix, eV as resolveProductSelectionMedia, eW as resolveVariantForSelection, eX as selectNext, eY as selectedSwatchMediaItemId, eZ as stringifyProductSelection, e_ as toShopifyPriceRangeV2 } from './types-C60vHIkY.js';
3
+ import { P as Product } from './payload-types-CJZuXcgF.js';
4
+ export { A as Article, f as ArticleAuthor, g as ArticleCategory, h as ArticleTag, D as Document, I as Image, i as Post, j as PostCategory, T as Tenant, V as Video } from './payload-types-CJZuXcgF.js';
5
+ export { C as CollectionType, P as Market, a as Product, b as ProductCollection, c as ProductVariant } from './types-BC6rVmJa.js';
6
+ export { C as COMMERCE_NOTIFICATION_EVENTS, a as COMMERCE_NOTIFICATION_EVENT_TYPE, b as COMMERCE_NOTIFICATION_OPERATION, c as CUSTOMER_PASSWORD_RESET_OPERATION, d as CollectionWebhookOperation, e as CommerceEmailChannel, f as CommerceEmailConfig, g as CommerceEmailEventConfig, h as CommerceEmailEventHandlers, i as CommerceEmailHandlerContext, j as CommerceNotification, k as CommerceNotificationData, l as CommerceNotificationEventHandlers, m as CommerceNotificationEventName, n as CommerceNotificationHandlerContext, o as CommerceNotificationSource, p as CommerceNotificationSourceCollection, q as CommerceNotificationWebhookEvent, r as CustomerAuthWebhookEvent, s as CustomerAuthWebhookHandlers, t as CustomerPasswordResetWebhookData, u as CustomerPasswordResetWebhookEvent, O as ORDER_CHANGED_EVENT_TYPE, v as OrderChangedWebhookEvent, W as WebhookChange, w as WebhookCommerceNotificationChange, x as WebhookEvent, y as WebhookHandler, z as WebhookKnownOperation, A as WebhookOperation, B as WebhookOptions, D as WebhookOrderChange, E as WebhookOrderMoved, F as WebhookOrderScope, G as createCommerceEmailWebhookHandler, H as createCommerceNotificationWebhookHandler, I as createCustomerAuthWebhookHandler, J as createTypedWebhookHandler, K as defineCommerceEmailConfig, L as getCommerceNotificationIdempotencyKey, M as handleWebhook, N as isCommerceNotificationWebhookEvent, P as isCustomerPasswordResetWebhookEvent, Q as isOrderChangedWebhookEvent, R as isValidWebhookEvent, S as isWebhookCollection, T as isWebhookOperation } from './index-BNICJxBL.js';
7
+ export { a as COLLECTIONS, C as Collection, I as INTERNAL_COLLECTIONS, P as PublicCollection, b as SERVER_COLLECTIONS, c as SERVER_ONLY_COLLECTIONS } from './const-CaPq2AE4.js';
8
8
  export { a as RealtimeConnection, R as RealtimeEvent, b as RealtimeListener } from './realtime-D7HtUpqt.js';
9
9
  export { a as IMAGE_SIZES, I as ImageData, b as ImageDataSizeEntry, c as ImageDataSizes, d as ImagePalette, e as ImagePlaceholderOptions, g as getImageLqip, f as getImagePalette, h as getImagePlaceholderStyle, i as getImageSrcSet, j as getImageUrl } from './image-BDjHp03R.js';
10
10
  export { V as VideoGifOptions, a as VideoThumbnailOptions, g as getVideoGif, b as getVideoMp4Url, c as getVideoStoryboard, d as getVideoStreamUrl, e as getVideoThumbnail } from './video-WR_TFO9a.js';
11
11
  export { Analytics, AnalyticsConfig, createAnalytics } from './analytics.js';
12
- export { ApiError, AuthError, ConfigError, ConflictError, GoneError, NetworkError, NotFoundError, PermissionError, RateLimitError, SDKError, ServiceUnavailableError, TimeoutError, UsageLimitError, ValidationError, createAuthError, createConflictError, createNotFoundError, createPermissionError, createRateLimitError, isApiError, isAuthError, isConfigError, isConflictError, isGoneError, isNetworkError, isNotFoundError, isPermissionError, isRateLimitError, isSDKError, isServiceUnavailableError, isTimeoutError, isUsageLimitError, isValidationError } from './errors.js';
12
+ export { ApiError, AuthError, COMMERCE_ERROR_CODES, CommerceErrorCode, CommerceSDKError, ConfigError, ConflictError, GoneError, NetworkError, NotFoundError, PermissionError, RateLimitError, SDKError, ServiceUnavailableError, TimeoutError, UsageLimitError, ValidationError, createAuthError, createConflictError, createNotFoundError, createPermissionError, createRateLimitError, isApiError, isAuthError, isCommerceSDKError, isConfigError, isConflictError, isGoneError, isNetworkError, isNotFoundError, isPermissionError, isRateLimitError, isSDKError, isServiceUnavailableError, isTimeoutError, isUsageLimitError, isValidationError } from './errors.js';
13
+
14
+ declare function isCommerceIdempotencyKey(value: unknown): value is string;
15
+ declare function assertCommerceIdempotencyKey(value: unknown): asserts value is string;
16
+ /** Create a cryptographically strong key for one logical commerce operation. */
17
+ declare function createCommerceIdempotencyKey(): string;
13
18
 
14
19
  type MembershipApiOptions = ServerApiOptions;
15
20
  /**
16
21
  * Server-only (secret-key) API for membership lifecycle operations.
17
22
  *
18
23
  * subscribe / cancel are sk-only (admin-sk-only policy).
19
- * me is also exposed on the browser client (customer-JWT policy), but the
20
- * server-side method reuses the same endpoint.
24
+ * Customer-JWT membership view/cancel methods are exposed by the browser client.
21
25
  */
22
26
  declare class MembershipApi extends BaseApi {
23
27
  constructor(options: MembershipApiOptions);
@@ -32,16 +36,11 @@ declare class MembershipApi extends BaseApi {
32
36
  subscribe(params: SubscribeMembershipParams): Promise<SubscribeMembershipResponse>;
33
37
  /**
34
38
  * Cancel a membership by id.
35
- * `immediate=false` (default) sets `cancelAtPeriodEnd`; the customer retains
36
- * benefits until `currentPeriodEnd`. `immediate=true` cancels now and revokes
37
- * membership groups immediately.
39
+ * By default this sets `cancelAtPeriodEnd`, keeps benefits until
40
+ * `currentPeriodEnd`, and stops renewal. Pass `immediate=true` to cancel
41
+ * immediately and revoke membership groups now.
38
42
  */
39
43
  cancel(params: CancelMembershipParams): Promise<CancelMembershipResponse>;
40
- /**
41
- * Retrieve the authenticated customer's own membership view.
42
- * Never returns payment tokens or internal keys.
43
- */
44
- me(): Promise<CustomerMembershipView | null>;
45
44
  }
46
45
 
47
46
  type ProductDetailStockMergeStatus = 'complete' | 'partial';
@@ -130,4 +129,4 @@ declare function resolveRelation<T>(ref: unknown): T | null;
130
129
 
131
130
  declare function createClient(options: ClientConfig): RootClientWithEvents;
132
131
 
133
- export { BaseApi, CancelMembershipParams, CancelMembershipResponse, ClientConfig, CustomerMembershipView, type MediaPointerSource, MembershipApi, type MembershipApiOptions, type MergedProductDetailResult, ProductDetail, ProductDetailCatalog, type ProductDetailStockMergeStatus, ProductDisplayMediaSource, type ProductGallerySource, type ProductMediaSetInput, type ProductMediaSetMatchType, ProductSelectionMediaPointer, ProductSelectionMediaSource, type ResolveProductGalleryInput, type ResolveProductGalleryResult, type ResolveProductMediaInput, type ResolveProductMediaResult, ResolveProductSelectionMediaInput, ResolveProductSelectionMediaResult, RootClientWithEvents, ServerApiOptions, StockSnapshotResponse, SubscribeMembershipParams, SubscribeMembershipResponse, createClient, formatOrderName, generateOrderNumber, mergeProductDetailWithStock, resolveProductGallery, resolveProductMedia, resolveRelation };
132
+ export { BaseApi, CancelMembershipParams, CancelMembershipResponse, ClientConfig, type MediaPointerSource, MembershipApi, type MembershipApiOptions, type MergedProductDetailResult, ProductDetail, ProductDetailCatalog, type ProductDetailStockMergeStatus, ProductDisplayMediaSource, type ProductGallerySource, type ProductMediaSetInput, type ProductMediaSetMatchType, ProductSelectionMediaPointer, ProductSelectionMediaSource, type ResolveProductGalleryInput, type ResolveProductGalleryResult, type ResolveProductMediaInput, type ResolveProductMediaResult, ResolveProductSelectionMediaInput, ResolveProductSelectionMediaResult, RootClientWithEvents, ServerApiOptions, StockSnapshotResponse, SubscribeMembershipParams, SubscribeMembershipResponse, assertCommerceIdempotencyKey, createClient, createCommerceIdempotencyKey, formatOrderName, generateOrderNumber, isCommerceIdempotencyKey, mergeProductDetailWithStock, resolveProductGallery, resolveProductMedia, resolveRelation };