@01.software/sdk 0.41.1 → 0.43.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 (69) hide show
  1. package/CHANGELOG.md +246 -0
  2. package/README.md +88 -19
  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 +233 -47
  16. package/dist/client.cjs.map +1 -1
  17. package/dist/client.d.cts +9 -6
  18. package/dist/client.d.ts +9 -6
  19. package/dist/client.js +233 -47
  20. package/dist/client.js.map +1 -1
  21. package/dist/{collection-client-Bk--pNzW.d.cts → collection-client-U70KizLf.d.cts} +3 -3
  22. package/dist/{collection-client-BdcxkW7l.d.ts → collection-client-gWsA7BVP.d.ts} +3 -3
  23. package/dist/{const-qGGI7Uii.d.cts → const-BBynifk0.d.cts} +5 -5
  24. package/dist/{const-HwdntWtG.d.ts → const-_WWHU-gX.d.ts} +5 -5
  25. package/dist/{index-B1oW50RY.d.ts → index-DPi5NWU8.d.ts} +4 -4
  26. package/dist/{index-DiXtjVab.d.cts → index-Dg4Y6Aq7.d.cts} +4 -4
  27. package/dist/index.cjs +225 -358
  28. package/dist/index.cjs.map +1 -1
  29. package/dist/index.d.cts +41 -8
  30. package/dist/index.d.ts +41 -8
  31. package/dist/index.js +225 -358
  32. package/dist/index.js.map +1 -1
  33. package/dist/{payload-types-CqJOgON7.d.cts → payload-types-DLxkB7Mv.d.cts} +561 -123
  34. package/dist/{payload-types-CqJOgON7.d.ts → payload-types-DLxkB7Mv.d.ts} +561 -123
  35. package/dist/query.cjs +59 -7
  36. package/dist/query.cjs.map +1 -1
  37. package/dist/query.d.cts +5 -5
  38. package/dist/query.d.ts +5 -5
  39. package/dist/query.js +59 -7
  40. package/dist/query.js.map +1 -1
  41. package/dist/realtime.cjs +1 -1
  42. package/dist/realtime.cjs.map +1 -1
  43. package/dist/realtime.d.cts +2 -2
  44. package/dist/realtime.d.ts +2 -2
  45. package/dist/realtime.js +1 -1
  46. package/dist/realtime.js.map +1 -1
  47. package/dist/server.cjs +318 -61
  48. package/dist/server.cjs.map +1 -1
  49. package/dist/server.d.cts +12 -7
  50. package/dist/server.d.ts +12 -7
  51. package/dist/server.js +318 -61
  52. package/dist/server.js.map +1 -1
  53. package/dist/{types-ByLSG-O3.d.cts → types-B1ngKbWI.d.cts} +1 -1
  54. package/dist/{types-BKa9z9s2.d.cts → types-B9lGhZlB.d.ts} +229 -15
  55. package/dist/{types-BMI3M0nb.d.ts → types-BiKNBwRA.d.ts} +1 -1
  56. package/dist/{types-DgfXb7iV.d.ts → types-Bpx5sYKo.d.cts} +229 -15
  57. package/dist/ui/canvas.cjs.map +1 -1
  58. package/dist/ui/canvas.js.map +1 -1
  59. package/dist/ui/form.d.cts +1 -1
  60. package/dist/ui/form.d.ts +1 -1
  61. package/dist/ui/video.d.cts +1 -1
  62. package/dist/ui/video.d.ts +1 -1
  63. package/dist/webhook.cjs +3 -1
  64. package/dist/webhook.cjs.map +1 -1
  65. package/dist/webhook.d.cts +4 -4
  66. package/dist/webhook.d.ts +4 -4
  67. package/dist/webhook.js +3 -1
  68. package/dist/webhook.js.map +1 -1
  69. package/package.json +1 -1
package/dist/index.d.cts CHANGED
@@ -1,16 +1,49 @@
1
- import { aQ as ProductDetail, aR as ProductDetailCatalog, aS as StockSnapshotResponse, aT as ProductSelectionMediaSource, aU as ProductDisplayMediaSource, aV as ResolveProductSelectionMediaInput, aW as ResolveProductSelectionMediaResult, aX as ProductSelectionMediaPointer, e as ClientConfig, aY as RootClientWithEvents } from './types-BKa9z9s2.cjs';
2
- export { A as AddItemParams, f as ApiQueryOptions, g as ApplyDiscountParams, N as BaseApi, aZ as BulkImportFulfillmentsParams, a_ as BulkImportFulfillmentsResponse, a$ as CalculateShippingParams, b0 as CalculateShippingResult, b1 as CancelOrderParams, b2 as CancelOrderReconciliationStatus, b3 as CancelOrderResponse, b4 as CancelReasonCode, b5 as CartApi, b6 as CartApiOptions, h as CheckoutParams, i as ClearCartParams, y as Client, j as ClientMetadata, d as ClientState, y as ClientType, b7 as Comment, C as CommerceClient, b8 as CommerceClientOptions, a as CommunityClient, b9 as CommunityClientOptions, ba as CommunityComment, bb as CommunityCommentListSort, bc as CommunityPost, bd as CommunityPostCategory, be as CommunityPostListSort, bf as CommunityPostTag, bg as CommunityPublicAuthorSnapshot, bh as CommunityPublicMediaAsset, bi as CommunityPublicReference, bj as CompatibilityProductSelectionParamEvent, bk as ConfirmPaymentParams, bl as ConfirmPaymentResponse, b as ContentClient, k as ContentClientOptions, bm as CreateFulfillmentParams, bn as CreateOrderItem, bo as CreateOrderParams, bp as CreateReturnParams, az as CustomerAuth, bq as CustomerAuthOptions, aB as CustomerAuthResponse, aC as CustomerLoginData, c as CustomerNamespace, br as CustomerOrderListOptions, aA as CustomerProfile, aF as CustomerRefreshResponse, aE as CustomerRegisterData, aD as CustomerRegisterResponse, bs as CustomerSnapshot, D as DebugConfig, l as DeepPartial, bt as DiscountApi, bu as DiscountApiOptions, a1 as EventGuestCancelParams, a2 as EventGuestRegistration, a3 as EventGuestRegistrationResponse, a4 as EventRegistrationAnswerInput, a5 as EventRegistrationAttendeeInput, a6 as EventRegistrationPublic, a7 as EventRegistrationRegisterParams, a8 as EventRegistrationRegisterResponse, a9 as EventsCalendarItem, E as EventsClient, aa as EventsClientOptions, ab as EventsDateParam, ac as EventsExternalSource, ad as EventsLocation, ae as EventsOccurrenceLocation, af as EventsRangeEvent, ag as EventsRangeOccurrence, ah as EventsRangeParams, ai as EventsRangeResponse, aj as EventsTaxonomyItem, m as ExtractArrayType, bv as FeaturedImagePointerInput, bw as LegacyProductSelectionParamEvent, bx as ListingGroupsParams, by as MediaValue, bz as NormalizedOptionSwatch, bA as NormalizedProductSelection, bB as OrderApi, bC as OrderApiOptions, bD as PRODUCT_PLP_FIND_OPTIONS, bE as PRODUCT_UPSERT_READONLY_FIELD_REASON, bF as PRODUCT_UPSERT_UNKNOWN_FIELD_REASON, P as PayloadFindResponse, n as PayloadMutationResponse, bG as PrepareFulfillmentOrderParams, bH as PrepareFulfillmentOrderResponse, bI as ProductApi, bJ as ProductApiOptions, bK as ProductDetailBrand, bL as ProductDetailCatalogResult, bM as ProductDetailCatalogVariant, bN as ProductDetailCategory, bO as ProductDetailImage, bP as ProductDetailImageMedia, bQ as ProductDetailMedia, bR as ProductDetailOption, bS as ProductDetailOptionValue, aJ as ProductDetailParams, aK as ProductDetailResult, bT as ProductDetailTag, bU as ProductDetailUnavailableReason, bV as ProductDetailVariant, bW as ProductDetailVariantOptionValue, bX as ProductDetailVideo, bY as ProductHrefGroup, bZ as ProductHrefOptions, b_ as ProductHrefProduct, b$ as ProductListingCard, c0 as ProductListingCardOptions, c1 as ProductListingCardPriceRange, c2 as ProductListingCardRepresentativeVariant, c3 as ProductListingGroup, c4 as ProductListingGroupCatalogSummary, c5 as ProductListingGroupCatalogVariant, c6 as ProductListingGroupProjection, c7 as ProductListingGroupSummary, c8 as ProductListingGroupVariant, aN as ProductListingGroupsCatalogItem, c9 as ProductListingGroupsCatalogProduct, ca as ProductListingGroupsCatalogResponse, aP as ProductListingGroupsItem, cb as ProductListingGroupsProduct, cc as ProductListingGroupsResponse, aH as ProductListingPageBaseParams, aL as ProductListingPageCatalogParams, cd as ProductListingPageFilters, aO as ProductListingPageFullParams, aI as ProductListingPageParams, aM as ProductListingPageResult, ce as ProductListingPageSort, cf as ProductListingProductShape, cg as ProductListingSwatch, ch as ProductMediaResolutionSource, ci as ProductMoneyRange, cj as ProductOptionMatrix, ck as ProductOptionMatrixOption, cl as ProductOptionMatrixValue, cm as ProductOptionMatrixVariant, cn as ProductOptionShape, co as ProductOptionValueShape, cp as ProductOptionValueSwatch, cq as ProductOptionValueSwatchInput, cr as ProductPriceRange, cs as ProductSelectionAvailableSwatch, ct as ProductSelectionAvailableValue, cu as ProductSelectionByOptionValue, cv as ProductSelectionCodecError, cw as ProductSelectionCodecOptions, cx as ProductSelectionInput, cy as ProductSelectionOptionValue, cz as ProductSelectionResolution, cA as ProductSelectionResolutionContext, cB as ProductSelectionUrlEmit, cC as ProductSelectionVariant, cD as ProductUpsertFieldValidationErrorBody, cE as ProductUpsertFieldValidationErrorReason, cF as ProductVariantShape, o as PublicCart, p as PublicCartItem, q as PublicCartReference, r as PublicMediaAsset, s as PublicMediaSize, t as PublicOrder, u as PublicOrderItem, v as PublicOrderReference, ay as PublicReadQueryOptions, R as RemoveDiscountParams, w as RemoveItemParams, cG as RequestOptions, cH as ResolveCancelRefundFailedResponse, cI as ResolveCancelRefundOutcome, cJ as ResolveCancelRefundParams, cK as ResolveCancelRefundResponse, cL as ResolveCancelRefundSucceededResponse, cM as ResolveProductDisplayMediaInput, cN as ResolveProductDisplayMediaResult, x as RetryConfig, cO as ReturnItem, cP as ReturnReason, cQ as ReturnWithRefundItem, cR as ReturnWithRefundParams, y as RootClient, z as RootCollectionClient, B as RootReadOnlyQueryBuilder, O as ServerApiOptions, cS as ShippingApi, cT as ShippingApiOptions, S as Sort, cU as StockCheckParams, cV as StockCheckResponse, cW as StockCheckResult, cX as StockSnapshotItem, cY as StockSnapshotParams, F as StorefrontContentListOptions, G as StorefrontContentReference, H as StorefrontGalleryItem, I as StorefrontGalleryItemsListOptions, J as StorefrontGalleryItemsSort, K as StorefrontLink, L as StorefrontLinksListOptions, M as StorefrontLinksSort, cZ as UpdateFulfillmentParams, U as UpdateItemParams, c_ as UpdateOrderParams, aG as UpdateProfileData, c$ as UpdateReturnParams, d0 as UpdateTransactionParams, d1 as ValidateDiscountParams, d2 as ValidateDiscountResult, W as Where, d3 as WithIdempotencyKey, d4 as buildProductHref, d5 as buildProductListingCard, d6 as buildProductListingGroupProjection, d7 as buildProductListingGroupsByOption, d8 as buildProductOptionMatrix, d9 as buildProductOptionMatrixFromDetail, da as createProductSelectionCodec, db as getAvailableOptionValues, dc as getProductSelectionImages, dd as getSelectedValueByOptionId, de as getVariantAvailableForSale, df as getVariantAvailableStock, dg as isProductUpsertFieldValidationErrorBody, dh as normalizeProductSelection, di as normalizeProductSelectionFromMatrix, dj as normalizeSelectedValueIds, dk as parseProductSelection, dl as projectProductToListingShape, dm as resolveFeaturedImagePointer, dn as resolveProductDisplayMedia, dp as resolveProductSelection, dq as resolveProductSelectionFromMatrix, dr as resolveProductSelectionMedia, ds as resolveVariantForSelection, dt as selectNext, du as selectedSwatchMediaItemId, dv as stringifyProductSelection, dw as toShopifyPriceRangeV2 } from './types-BKa9z9s2.cjs';
3
- import { P as Product } from './payload-types-CqJOgON7.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, V as Video } from './payload-types-CqJOgON7.cjs';
5
- export { C as CollectionType, P as Product, a as ProductCollection } from './types-ByLSG-O3.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-DiXtjVab.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-qGGI7Uii.cjs';
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-Bpx5sYKo.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-Bpx5sYKo.cjs';
3
+ import { P as Product } from './payload-types-DLxkB7Mv.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-DLxkB7Mv.cjs';
5
+ export { C as CollectionType, P as Product, a as ProductCollection } from './types-B1ngKbWI.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-Dg4Y6Aq7.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-BBynifk0.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
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';
13
13
 
14
+ type MembershipApiOptions = ServerApiOptions;
15
+ /**
16
+ * Server-only (secret-key) API for membership lifecycle operations.
17
+ *
18
+ * 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.
21
+ */
22
+ declare class MembershipApi extends BaseApi {
23
+ constructor(options: MembershipApiOptions);
24
+ /**
25
+ * Record a delegated first-charge and activate a membership.
26
+ * The storefront collected the payment; this endpoint deduplicates by
27
+ * `subscribeIntentKey` and records the already-paid charge.
28
+ *
29
+ * `subscribeIntentKey` is used as the HTTP idempotency key so the call is
30
+ * safely retryable.
31
+ */
32
+ subscribe(params: SubscribeMembershipParams): Promise<SubscribeMembershipResponse>;
33
+ /**
34
+ * 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.
38
+ */
39
+ 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
+ }
46
+
14
47
  type ProductDetailStockMergeStatus = 'complete' | 'partial';
15
48
  interface MergedProductDetailResult {
16
49
  stockMergeStatus: ProductDetailStockMergeStatus;
@@ -97,4 +130,4 @@ declare function resolveRelation<T>(ref: unknown): T | null;
97
130
 
98
131
  declare function createClient(options: ClientConfig): RootClientWithEvents;
99
132
 
100
- export { ClientConfig, type MediaPointerSource, 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, StockSnapshotResponse, createClient, formatOrderName, generateOrderNumber, mergeProductDetailWithStock, resolveProductGallery, resolveProductMedia, resolveRelation };
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 };
package/dist/index.d.ts CHANGED
@@ -1,16 +1,49 @@
1
- import { aQ as ProductDetail, aR as ProductDetailCatalog, aS as StockSnapshotResponse, aT as ProductSelectionMediaSource, aU as ProductDisplayMediaSource, aV as ResolveProductSelectionMediaInput, aW as ResolveProductSelectionMediaResult, aX as ProductSelectionMediaPointer, e as ClientConfig, aY as RootClientWithEvents } from './types-DgfXb7iV.js';
2
- export { A as AddItemParams, f as ApiQueryOptions, g as ApplyDiscountParams, N as BaseApi, aZ as BulkImportFulfillmentsParams, a_ as BulkImportFulfillmentsResponse, a$ as CalculateShippingParams, b0 as CalculateShippingResult, b1 as CancelOrderParams, b2 as CancelOrderReconciliationStatus, b3 as CancelOrderResponse, b4 as CancelReasonCode, b5 as CartApi, b6 as CartApiOptions, h as CheckoutParams, i as ClearCartParams, y as Client, j as ClientMetadata, d as ClientState, y as ClientType, b7 as Comment, C as CommerceClient, b8 as CommerceClientOptions, a as CommunityClient, b9 as CommunityClientOptions, ba as CommunityComment, bb as CommunityCommentListSort, bc as CommunityPost, bd as CommunityPostCategory, be as CommunityPostListSort, bf as CommunityPostTag, bg as CommunityPublicAuthorSnapshot, bh as CommunityPublicMediaAsset, bi as CommunityPublicReference, bj as CompatibilityProductSelectionParamEvent, bk as ConfirmPaymentParams, bl as ConfirmPaymentResponse, b as ContentClient, k as ContentClientOptions, bm as CreateFulfillmentParams, bn as CreateOrderItem, bo as CreateOrderParams, bp as CreateReturnParams, az as CustomerAuth, bq as CustomerAuthOptions, aB as CustomerAuthResponse, aC as CustomerLoginData, c as CustomerNamespace, br as CustomerOrderListOptions, aA as CustomerProfile, aF as CustomerRefreshResponse, aE as CustomerRegisterData, aD as CustomerRegisterResponse, bs as CustomerSnapshot, D as DebugConfig, l as DeepPartial, bt as DiscountApi, bu as DiscountApiOptions, a1 as EventGuestCancelParams, a2 as EventGuestRegistration, a3 as EventGuestRegistrationResponse, a4 as EventRegistrationAnswerInput, a5 as EventRegistrationAttendeeInput, a6 as EventRegistrationPublic, a7 as EventRegistrationRegisterParams, a8 as EventRegistrationRegisterResponse, a9 as EventsCalendarItem, E as EventsClient, aa as EventsClientOptions, ab as EventsDateParam, ac as EventsExternalSource, ad as EventsLocation, ae as EventsOccurrenceLocation, af as EventsRangeEvent, ag as EventsRangeOccurrence, ah as EventsRangeParams, ai as EventsRangeResponse, aj as EventsTaxonomyItem, m as ExtractArrayType, bv as FeaturedImagePointerInput, bw as LegacyProductSelectionParamEvent, bx as ListingGroupsParams, by as MediaValue, bz as NormalizedOptionSwatch, bA as NormalizedProductSelection, bB as OrderApi, bC as OrderApiOptions, bD as PRODUCT_PLP_FIND_OPTIONS, bE as PRODUCT_UPSERT_READONLY_FIELD_REASON, bF as PRODUCT_UPSERT_UNKNOWN_FIELD_REASON, P as PayloadFindResponse, n as PayloadMutationResponse, bG as PrepareFulfillmentOrderParams, bH as PrepareFulfillmentOrderResponse, bI as ProductApi, bJ as ProductApiOptions, bK as ProductDetailBrand, bL as ProductDetailCatalogResult, bM as ProductDetailCatalogVariant, bN as ProductDetailCategory, bO as ProductDetailImage, bP as ProductDetailImageMedia, bQ as ProductDetailMedia, bR as ProductDetailOption, bS as ProductDetailOptionValue, aJ as ProductDetailParams, aK as ProductDetailResult, bT as ProductDetailTag, bU as ProductDetailUnavailableReason, bV as ProductDetailVariant, bW as ProductDetailVariantOptionValue, bX as ProductDetailVideo, bY as ProductHrefGroup, bZ as ProductHrefOptions, b_ as ProductHrefProduct, b$ as ProductListingCard, c0 as ProductListingCardOptions, c1 as ProductListingCardPriceRange, c2 as ProductListingCardRepresentativeVariant, c3 as ProductListingGroup, c4 as ProductListingGroupCatalogSummary, c5 as ProductListingGroupCatalogVariant, c6 as ProductListingGroupProjection, c7 as ProductListingGroupSummary, c8 as ProductListingGroupVariant, aN as ProductListingGroupsCatalogItem, c9 as ProductListingGroupsCatalogProduct, ca as ProductListingGroupsCatalogResponse, aP as ProductListingGroupsItem, cb as ProductListingGroupsProduct, cc as ProductListingGroupsResponse, aH as ProductListingPageBaseParams, aL as ProductListingPageCatalogParams, cd as ProductListingPageFilters, aO as ProductListingPageFullParams, aI as ProductListingPageParams, aM as ProductListingPageResult, ce as ProductListingPageSort, cf as ProductListingProductShape, cg as ProductListingSwatch, ch as ProductMediaResolutionSource, ci as ProductMoneyRange, cj as ProductOptionMatrix, ck as ProductOptionMatrixOption, cl as ProductOptionMatrixValue, cm as ProductOptionMatrixVariant, cn as ProductOptionShape, co as ProductOptionValueShape, cp as ProductOptionValueSwatch, cq as ProductOptionValueSwatchInput, cr as ProductPriceRange, cs as ProductSelectionAvailableSwatch, ct as ProductSelectionAvailableValue, cu as ProductSelectionByOptionValue, cv as ProductSelectionCodecError, cw as ProductSelectionCodecOptions, cx as ProductSelectionInput, cy as ProductSelectionOptionValue, cz as ProductSelectionResolution, cA as ProductSelectionResolutionContext, cB as ProductSelectionUrlEmit, cC as ProductSelectionVariant, cD as ProductUpsertFieldValidationErrorBody, cE as ProductUpsertFieldValidationErrorReason, cF as ProductVariantShape, o as PublicCart, p as PublicCartItem, q as PublicCartReference, r as PublicMediaAsset, s as PublicMediaSize, t as PublicOrder, u as PublicOrderItem, v as PublicOrderReference, ay as PublicReadQueryOptions, R as RemoveDiscountParams, w as RemoveItemParams, cG as RequestOptions, cH as ResolveCancelRefundFailedResponse, cI as ResolveCancelRefundOutcome, cJ as ResolveCancelRefundParams, cK as ResolveCancelRefundResponse, cL as ResolveCancelRefundSucceededResponse, cM as ResolveProductDisplayMediaInput, cN as ResolveProductDisplayMediaResult, x as RetryConfig, cO as ReturnItem, cP as ReturnReason, cQ as ReturnWithRefundItem, cR as ReturnWithRefundParams, y as RootClient, z as RootCollectionClient, B as RootReadOnlyQueryBuilder, O as ServerApiOptions, cS as ShippingApi, cT as ShippingApiOptions, S as Sort, cU as StockCheckParams, cV as StockCheckResponse, cW as StockCheckResult, cX as StockSnapshotItem, cY as StockSnapshotParams, F as StorefrontContentListOptions, G as StorefrontContentReference, H as StorefrontGalleryItem, I as StorefrontGalleryItemsListOptions, J as StorefrontGalleryItemsSort, K as StorefrontLink, L as StorefrontLinksListOptions, M as StorefrontLinksSort, cZ as UpdateFulfillmentParams, U as UpdateItemParams, c_ as UpdateOrderParams, aG as UpdateProfileData, c$ as UpdateReturnParams, d0 as UpdateTransactionParams, d1 as ValidateDiscountParams, d2 as ValidateDiscountResult, W as Where, d3 as WithIdempotencyKey, d4 as buildProductHref, d5 as buildProductListingCard, d6 as buildProductListingGroupProjection, d7 as buildProductListingGroupsByOption, d8 as buildProductOptionMatrix, d9 as buildProductOptionMatrixFromDetail, da as createProductSelectionCodec, db as getAvailableOptionValues, dc as getProductSelectionImages, dd as getSelectedValueByOptionId, de as getVariantAvailableForSale, df as getVariantAvailableStock, dg as isProductUpsertFieldValidationErrorBody, dh as normalizeProductSelection, di as normalizeProductSelectionFromMatrix, dj as normalizeSelectedValueIds, dk as parseProductSelection, dl as projectProductToListingShape, dm as resolveFeaturedImagePointer, dn as resolveProductDisplayMedia, dp as resolveProductSelection, dq as resolveProductSelectionFromMatrix, dr as resolveProductSelectionMedia, ds as resolveVariantForSelection, dt as selectNext, du as selectedSwatchMediaItemId, dv as stringifyProductSelection, dw as toShopifyPriceRangeV2 } from './types-DgfXb7iV.js';
3
- import { P as Product } from './payload-types-CqJOgON7.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, V as Video } from './payload-types-CqJOgON7.js';
5
- export { C as CollectionType, P as Product, a as ProductCollection } from './types-BMI3M0nb.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-B1oW50RY.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-HwdntWtG.js';
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-B9lGhZlB.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-B9lGhZlB.js';
3
+ import { P as Product } from './payload-types-DLxkB7Mv.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-DLxkB7Mv.js';
5
+ export { C as CollectionType, P as Product, a as ProductCollection } from './types-BiKNBwRA.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-DPi5NWU8.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-_WWHU-gX.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
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';
13
13
 
14
+ type MembershipApiOptions = ServerApiOptions;
15
+ /**
16
+ * Server-only (secret-key) API for membership lifecycle operations.
17
+ *
18
+ * 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.
21
+ */
22
+ declare class MembershipApi extends BaseApi {
23
+ constructor(options: MembershipApiOptions);
24
+ /**
25
+ * Record a delegated first-charge and activate a membership.
26
+ * The storefront collected the payment; this endpoint deduplicates by
27
+ * `subscribeIntentKey` and records the already-paid charge.
28
+ *
29
+ * `subscribeIntentKey` is used as the HTTP idempotency key so the call is
30
+ * safely retryable.
31
+ */
32
+ subscribe(params: SubscribeMembershipParams): Promise<SubscribeMembershipResponse>;
33
+ /**
34
+ * 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.
38
+ */
39
+ 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
+ }
46
+
14
47
  type ProductDetailStockMergeStatus = 'complete' | 'partial';
15
48
  interface MergedProductDetailResult {
16
49
  stockMergeStatus: ProductDetailStockMergeStatus;
@@ -97,4 +130,4 @@ declare function resolveRelation<T>(ref: unknown): T | null;
97
130
 
98
131
  declare function createClient(options: ClientConfig): RootClientWithEvents;
99
132
 
100
- export { ClientConfig, type MediaPointerSource, 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, StockSnapshotResponse, createClient, formatOrderName, generateOrderNumber, mergeProductDetailWithStock, resolveProductGallery, resolveProductMedia, resolveRelation };
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 };