@01.software/sdk 0.71.0 → 0.72.1

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 (43) hide show
  1. package/CHANGELOG.md +84 -0
  2. package/README.md +31 -1
  3. package/dist/client.cjs +74 -7
  4. package/dist/client.cjs.map +1 -1
  5. package/dist/client.d.cts +6 -6
  6. package/dist/client.d.ts +6 -6
  7. package/dist/client.js +74 -7
  8. package/dist/client.js.map +1 -1
  9. package/dist/{collection-client-D18xyUq_.d.cts → collection-client-B3CnqMDQ.d.cts} +4 -4
  10. package/dist/{collection-client-CUGJcTpl.d.ts → collection-client-uOgS_1bC.d.ts} +4 -4
  11. package/dist/{const-Dlu0mXmj.d.ts → const-BJBK7jBl.d.ts} +1 -1
  12. package/dist/{const-oGEoxCXZ.d.cts → const-_ZfJjRQG.d.cts} +1 -1
  13. package/dist/{index-Ccd4NYTL.d.ts → index-CBaP4q8r.d.ts} +3 -3
  14. package/dist/{index-HHVtIKXs.d.cts → index-CI_LFWiG.d.cts} +3 -3
  15. package/dist/index.cjs +74 -7
  16. package/dist/index.cjs.map +1 -1
  17. package/dist/index.d.cts +7 -7
  18. package/dist/index.d.ts +7 -7
  19. package/dist/index.js +74 -7
  20. package/dist/index.js.map +1 -1
  21. package/dist/{payload-types-BgOEk6Y9.d.cts → payload-types-BRg8Yary.d.cts} +191 -166
  22. package/dist/{payload-types-BgOEk6Y9.d.ts → payload-types-BRg8Yary.d.ts} +191 -166
  23. package/dist/query.d.cts +5 -5
  24. package/dist/query.d.ts +5 -5
  25. package/dist/realtime.d.cts +2 -2
  26. package/dist/realtime.d.ts +2 -2
  27. package/dist/server.cjs +74 -7
  28. package/dist/server.cjs.map +1 -1
  29. package/dist/server.d.cts +7 -7
  30. package/dist/server.d.ts +7 -7
  31. package/dist/server.js +74 -7
  32. package/dist/server.js.map +1 -1
  33. package/dist/{types-nyOvcO0K.d.ts → types-Cmnxxvuv.d.ts} +46 -7
  34. package/dist/{types-DLHEIsAx.d.cts → types-CnkJQUez.d.cts} +46 -7
  35. package/dist/{types-CSvp2fJ_.d.ts → types-DLjSqL0P.d.ts} +2 -2
  36. package/dist/{types-BzG3NO7R.d.cts → types-FyklqLAk.d.cts} +2 -2
  37. package/dist/ui/form.d.cts +1 -1
  38. package/dist/ui/form.d.ts +1 -1
  39. package/dist/ui/video.d.cts +1 -1
  40. package/dist/ui/video.d.ts +1 -1
  41. package/dist/webhook.d.cts +5 -5
  42. package/dist/webhook.d.ts +5 -5
  43. package/package.json +2 -4
package/dist/index.d.cts CHANGED
@@ -1,10 +1,10 @@
1
- import { dT as BaseApi, S as ServerApiOptions, b as SubscribeMembershipParams, c as SubscribeMembershipResponse, E as EndSubscribeIntentParams, d as EndSubscribeIntentResponse, C as CancelMembershipParams, e as CancelMembershipResponse, B as BillingCustodyParams, f as BillingCustodyResponse, dU as ProductDetail, dV as ProductDetailCatalog, dW as StockSnapshotResponse, d5 as ClientConfig, dX as RootClientWithEvents } from './types-DLHEIsAx.cjs';
2
- export { A as AddItemParams, d6 as ApiQueryOptions, r as BENEFIT_VOUCHER_ERROR_REASONS, s as BENEFIT_VOUCHER_VOID_REASONS, t as BenefitVoucher, u as BenefitVoucherErrorReason, j as BenefitVouchersApi, dY as BillingCustodyWireRequest, dZ as BulkImportFulfillmentsParams, d_ as BulkImportFulfillmentsResponse, d$ as CalculateShippingParams, e0 as CalculateShippingResult, d7 as CancelBrowserPaymentSessionParams, e1 as CancelOrderParams, e2 as CancelOrderResponse, e3 as CancelReasonCode, e4 as CartDiscountCode, d8 as CartMergeParams, z as CartMergeResult, D as CartMineResult, F as CartMutationResult, e5 as CartWarning, e6 as CartWarningCode, G as CheckoutAbandonedReason, H as CheckoutAmounts, e7 as CheckoutFunding, N as CheckoutOrderReference, O as CheckoutPaymentSessionRef, W as CheckoutShippingAddress, Z as ClearCartParams, dk as Client, d9 as ClientMetadata, o as ClientState, dk as ClientType, e8 as Comment, d2 as CommerceClient, e9 as CommerceClientOptions, l as CommunityClient, ea as CommunityClientOptions, eb as CommunityComment, ec as CommunityCommentListSort, ed as CommunityPost, ee as CommunityPostCategory, ef as CommunityPostListSort, eg as CommunityPostTag, eh as CommunityPublicAuthorSnapshot, ei as CommunityPublicMediaAsset, ej as CommunityPublicReference, ek as CompatibilityProductSelectionParamEvent, d3 as ContentClient, da as ContentClientOptions, a7 as CreateCartParams, a8 as CreateCartResult, db as CreateCheckoutParams, dc as CreateCheckoutResult, el as CreateFulfillmentParams, ab as CreatePaymentSessionParams, ac as CreatePortOnePaymentSessionParams, em as CreateReturnParams, af as CreateServerPaymentSessionParams, ag as CreateServerPortOnePaymentSessionParams, k as CreditsApi, dC as CustomerAuth, en as CustomerAuthOptions, dE as CustomerAuthResponse, eo as CustomerAuthorizationUrlInput, ep as CustomerAuthorizationUrlResult, aj as CustomerBenefitVoucher, ak as CustomerCreditAccountResponse, al as CustomerCreditBalances, am as CustomerCreditGrant, g as CustomerGroupApi, an as CustomerGroupApiOptions, ao as CustomerGroupManualSource, ap as CustomerGroupMember, aq as CustomerGroupMemberCommandResponse, ar as CustomerGroupMemberSource, as as CustomerGroupMembershipSource, at as CustomerGroupMembershipState, dF as CustomerLoginData, au as CustomerMembershipView, d4 as CustomerNamespace, eq as CustomerOAuth, er as CustomerOAuthCallbackResult, es as CustomerOAuthConfig, et as CustomerOAuthTokenSet, eu as CustomerOrderListOptions, dD as CustomerProfile, dI as CustomerRefreshResponse, dH as CustomerRegisterData, dG as CustomerRegisterResponse, av as CustomerSnapshot, ev as CustomerWithdrawalResult, dd as DebugConfig, de as DeepPartial, ew as DiscountApi, ex as DiscountApiOptions, ey as DiscountErrorReasonCode, ax as EventAdmissionAvailabilityParams, ay as EventAdmissionAvailabilityResponse, az as EventAdmissionAvailabilityType, aA as EventAdmissionPricePresentment, aB as EventGuestCancelParams, aC as EventGuestRegistration, aD as EventGuestRegistrationResponse, aE as EventMyRegistration, aF as EventMyRegistrationsParams, aG as EventMyRegistrationsResponse, aH as EventRegistrationAnswerInput, aI as EventRegistrationAttendeeInput, aJ as EventRegistrationPublic, aK as EventRegistrationRegisterParams, aL as EventRegistrationRegisterResponse, aM as EventsCalendarItem, aN as EventsClient, aO as EventsClientOptions, aP as EventsDateParam, aQ as EventsExternalSource, aR as EventsLocation, aS as EventsOccurrenceLocation, aT as EventsRangeEvent, aU as EventsRangeOccurrence, aV as EventsRangeParams, aW as EventsRangeResponse, aX as EventsTaxonomyItem, df as ExtractArrayType, ez as FeaturedImagePointerInput, b6 as GetBenefitVoucherRequest, b7 as GetCustomerCreditAccountRequest, b8 as GetCustomerCreditGrantRequest, eA as GetOrderByPaymentIdParams, bb as GrantCustomerCreditRequest, bc as GrantCustomerGroupMemberParams, bf as IssueBenefitVoucherRequest, bg as IssueBenefitVoucherResponse, eB as LegacyProductSelectionParamEvent, bh as ListBenefitVouchersRequest, bi as ListBenefitVouchersResponse, bj as ListCustomerGroupMembersParams, bk as ListCustomerGroupMembersResponse, bm as ListMyBenefitVouchersRequest, bn as ListMyBenefitVouchersResponse, eC as ListingGroupsParams, eD as MAX_CART_LINE_ADMISSIONS, eE as ManagedPaymentNextAction, eF as ManagedPublicPaymentSession, eG as MarketDTO, eH as MediaValue, bo as MembershipStatus, bq as Money, br as MutateBenefitVoucherResponse, bt as MyCustomerCreditHistoryRequest, bu as MyCustomerCreditHistoryResponse, bv as MyCustomerCreditsRequest, bw as MyCustomerCreditsResponse, eI as NormalizedOptionSwatch, eJ as NormalizedProductSelection, bx as OpenCheckoutPaymentState, eK as OrderApi, eL as OrderApiOptions, eM as OrderByPaymentResult, eN as PRODUCT_PLP_FIND_OPTIONS, eO as PRODUCT_UPSERT_READONLY_FIELD_REASON, eP as PRODUCT_UPSERT_UNKNOWN_FIELD_REASON, dg as PayloadFindResponse, dh as PayloadMutationResponse, by as PaymentFailureReason, bz as PaymentNextAction, bA as PaymentProviderStatus, bB as PaymentReconciliationReason, bE as PaymentSessionRole, bF as PortOneHostedPaymentMethod, bH as PortOnePaymentNextAction, bK as PortOnePublicPaymentSession, eQ as PrepareFulfillmentOrderParams, eR as PrepareFulfillmentOrderResponse, eS as ProductApi, eT as ProductApiOptions, eU as ProductDetailBrand, dN as ProductDetailCatalogResult, eV as ProductDetailCatalogVariant, eW as ProductDetailCategory, eX as ProductDetailImage, eY as ProductDetailImageMedia, eZ as ProductDetailMedia, e_ as ProductDetailOption, e$ as ProductDetailOptionValue, dM as ProductDetailParams, f0 as ProductDetailResult, f1 as ProductDetailTag, f2 as ProductDetailUnavailableReason, f3 as ProductDetailVariant, f4 as ProductDetailVariantOptionValue, f5 as ProductDetailVideo, f6 as ProductDisplayMediaSource, f7 as ProductFallbackLocaleOption, f8 as ProductHrefGroup, f9 as ProductHrefOptions, fa as ProductHrefProduct, fb as ProductListingCard, fc as ProductListingCardOptions, fd as ProductListingCardPriceRange, fe as ProductListingCardRepresentativeVariant, ff as ProductListingGroup, fg as ProductListingGroupCatalogSummary, fh as ProductListingGroupCatalogVariant, fi as ProductListingGroupProjection, fj as ProductListingGroupSummary, fk as ProductListingGroupVariant, dQ as ProductListingGroupsCatalogItem, fl as ProductListingGroupsCatalogProduct, fm as ProductListingGroupsCatalogResponse, dS as ProductListingGroupsItem, fn as ProductListingGroupsProduct, fo as ProductListingGroupsResponse, dL as ProductListingPageBaseParams, dO as ProductListingPageCatalogParams, fp as ProductListingPageFilters, dR as ProductListingPageFullParams, dK as ProductListingPageParams, dP as ProductListingPageResult, fq as ProductListingPageSort, fr as ProductListingProductShape, fs as ProductListingSwatch, ft as ProductLocaleOption, fu as ProductLocaleReadParams, fv as ProductLocalizedText, fw as ProductLocalizedValue, fx as ProductMediaResolutionSource, fy as ProductMoneyRange, fz as ProductOptionMatrix, fA as ProductOptionMatrixOption, fB as ProductOptionMatrixValue, fC as ProductOptionMatrixVariant, fD as ProductOptionShape, fE as ProductOptionValueShape, fF as ProductOptionValueSwatch, fG as ProductOptionValueSwatchInput, fH as ProductPriceRange, fI as ProductSelectionAvailableSwatch, fJ as ProductSelectionAvailableValue, fK as ProductSelectionByOptionValue, fL as ProductSelectionCodecError, fM as ProductSelectionCodecOptions, fN as ProductSelectionInput, fO as ProductSelectionMediaPointer, fP as ProductSelectionMediaSource, fQ as ProductSelectionOptionValue, fR as ProductSelectionResolution, fS as ProductSelectionResolutionContext, fT as ProductSelectionUrlEmit, fU as ProductSelectionVariant, fV as ProductUpsertFieldValidationErrorBody, fW as ProductUpsertFieldValidationErrorReason, bO as ProductUpsertInput, bP as ProductUpsertParams, bQ as ProductUpsertResponse, bR as ProductUpsertVariantInput, fX as ProductVariantShape, bS as PublicAttribute, bT as PublicCaptureEvidence, bU as PublicCart, bV as PublicCartItem, bW as PublicCartItemAdmission, bX as PublicCartMarket, bY as PublicCartReference, bZ as PublicCheckout, fY as PublicCheckoutBase, b_ as PublicCheckoutItem, b$ as PublicMediaAsset, c0 as PublicMediaSize, c1 as PublicOrder, c2 as PublicOrderAmounts, c3 as PublicOrderItem, c4 as PublicOrderReference, c5 as PublicPaymentSession, dB as PublicReadQueryOptions, c8 as ReconciliationRequired, ca as RedeemBenefitVoucherRequest, cb as RemoveItemParams, fZ as RequestOptions, f_ as ResolveCancelRefundFailedResponse, f$ as ResolveCancelRefundOutcome, g0 as ResolveCancelRefundParams, g1 as ResolveCancelRefundResponse, g2 as ResolveCancelRefundSucceededResponse, g3 as ResolveProductDisplayMediaInput, g4 as ResolveProductDisplayMediaResult, g5 as ResolveProductSelectionMediaInput, g6 as ResolveProductSelectionMediaResult, g7 as ResolvedCatalogPrice, di as RetrieveBrowserPaymentSessionParams, ce as RetrieveCartParams, cf as RetrieveCheckoutParams, ch as RetrieveServerCheckoutParams, dj as RetryConfig, g8 as ReturnCancellationReasonCode, g9 as ReturnItem, ga as ReturnReason, gb as ReturnWithRefundItem, gc as ReturnWithRefundParams, ck as RevokeCustomerCreditRequest, cl as RevokeCustomerCreditResponse, cm as RevokeCustomerGroupMemberParams, dk as RootClient, dl as RootCollectionClient, dm as RootReadOnlyQueryBuilder, gd as ShippingApi, ge as ShippingApiOptions, ct as ShippingLine, dn as Sort, cu as SpentCheckoutPaymentState, gf as StockCheckParams, gg as StockCheckResponse, gh as StockCheckResult, gi as StockSnapshotItem, gj as StockSnapshotParams, dp as StorefrontContentListOptions, dq as StorefrontContentReference, dr as StorefrontGalleryItem, ds as StorefrontGalleryItemsListOptions, dt as StorefrontGalleryItemsSort, du as StorefrontLink, dv as StorefrontLinksListOptions, dw as StorefrontLinksSort, cL as UpdateCartAttributesParams, cM as UpdateDiscountCodesParams, gk as UpdateFulfillmentParams, cN as UpdateItemParams, gl as UpdateOrderParams, dJ as UpdateProfileData, gm as UpdateReturnParams, gn as ValidateDiscountParams, go as ValidateDiscountResult, cO as VariantInput, gp as VideoPlaybackResponse, cS as VoidBenefitVoucherRequest, dx as Where, gq as WithIdempotencyKey, gr as buildProductHref, gs as buildProductListingCard, gt as buildProductListingGroupProjection, gu as buildProductListingGroupsByOption, gv as buildProductOptionMatrix, gw as buildProductOptionMatrixFromDetail, gx as createProductSelectionCodec, gy as getAvailableOptionValues, gz as getProductSelectionImages, gA as getSelectedValueByOptionId, gB as getVariantAvailableForSale, gC as getVariantAvailableStock, cU as invalidBenefitVoucherResponse, gD as isProductUpsertFieldValidationErrorBody, gE as normalizeProductSelection, gF as normalizeProductSelectionFromMatrix, gG as normalizeSelectedValueIds, cV as parseBenefitVoucher, cW as parseBenefitVoucherList, cX as parseCustomerCreditAccount, cY as parseCustomerCreditGrant, cZ as parseMyCustomerCreditHistory, c_ as parseMyCustomerCredits, gH as parseProductSelection, c$ as parseRevokeCustomerCredit, gI as projectProductToListingShape, gJ as resolveFeaturedImagePointer, gK as resolveProductDisplayMedia, gL as resolveProductSelection, gM as resolveProductSelectionFromMatrix, gN as resolveProductSelectionMedia, gO as resolveVariantForSelection, gP as selectNext, gQ as selectedSwatchMediaItemId, gR as stringifyProductSelection, gS as toShopifyPriceRangeV2 } from './types-DLHEIsAx.cjs';
3
- import { P as Product } from './payload-types-BgOEk6Y9.cjs';
4
- export { A as Article, g as ArticleAuthor, h as ArticleCategory, i as ArticleTag, D as Document, I as Image, j as Post, k as PostCategory, T as Tenant, V as Video } from './payload-types-BgOEk6Y9.cjs';
5
- export { C as CollectionType, P as Market, a as Product, b as ProductCollection, c as ProductVariant } from './types-BzG3NO7R.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, a2 as CustomerCommerceNotificationEventName, t as CustomerPasswordResetWebhookData, u as CustomerPasswordResetWebhookEvent, M as MembershipNotificationData, v as MembershipNotificationEventName, O as ORDER_CHANGED_EVENT_TYPE, w as OrderChangedWebhookEvent, P as PaymentIncidentMoney, x as PaymentIncidentNotificationData, y as PaymentIncidentNotificationEventName, z as PaymentIncidentNotificationReason, A as PaymentIncidentNotificationSourceCollection, B as PaymentIncidentNotificationStatus, D as PaymentIncidentProviderObject, a3 as PaymentReconciliationRequiredNotificationData, a4 as PaymentRefundRequiresAttentionNotificationData, E as WebhookChange, F as WebhookCommerceNotificationChange, G as WebhookEvent, W as WebhookHandler, H as WebhookKnownOperation, I as WebhookOperation, J as WebhookOptions, K as WebhookOrderChange, L as WebhookOrderMoved, N as WebhookOrderScope, Q as createCommerceEmailWebhookHandler, R as createCommerceNotificationWebhookHandler, S as createCustomerAuthWebhookHandler, T as createTypedWebhookHandler, U as defineCommerceEmailConfig, V as getCommerceNotificationIdempotencyKey, X as handleWebhook, Y as isCommerceNotificationWebhookEvent, Z as isCustomerPasswordResetWebhookEvent, _ as isOrderChangedWebhookEvent, $ as isValidWebhookEvent, a0 as isWebhookCollection, a1 as isWebhookOperation } from './index-HHVtIKXs.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-oGEoxCXZ.cjs';
1
+ import { dT as BaseApi, S as ServerApiOptions, b as SubscribeMembershipParams, c as SubscribeMembershipResponse, E as EndSubscribeIntentParams, d as EndSubscribeIntentResponse, C as CancelMembershipParams, e as CancelMembershipResponse, B as BillingCustodyParams, f as BillingCustodyResponse, dU as ProductDetail, dV as ProductDetailCatalog, dW as StockSnapshotResponse, d5 as ClientConfig, dX as RootClientWithEvents } from './types-CnkJQUez.cjs';
2
+ export { A as AddItemParams, d6 as ApiQueryOptions, r as BENEFIT_VOUCHER_ERROR_REASONS, s as BENEFIT_VOUCHER_VOID_REASONS, t as BenefitVoucher, u as BenefitVoucherErrorReason, j as BenefitVouchersApi, dY as BillingCustodyWireRequest, dZ as BulkImportFulfillmentsParams, d_ as BulkImportFulfillmentsResponse, d$ as CalculateShippingParams, e0 as CalculateShippingResult, d7 as CancelBrowserPaymentSessionParams, e1 as CancelOrderManagedAlreadyCanceledResponse, e2 as CancelOrderManagedCommittedResponse, e3 as CancelOrderParams, e4 as CancelOrderResponse, e5 as CancelReasonCode, e6 as CartDiscountCode, d8 as CartMergeParams, z as CartMergeResult, D as CartMineResult, F as CartMutationResult, e7 as CartWarning, e8 as CartWarningCode, G as CheckoutAbandonedReason, H as CheckoutAmounts, e9 as CheckoutFunding, N as CheckoutOrderReference, O as CheckoutPaymentSessionRef, W as CheckoutShippingAddress, Z as ClearCartParams, dk as Client, d9 as ClientMetadata, o as ClientState, dk as ClientType, ea as Comment, d2 as CommerceClient, eb as CommerceClientOptions, l as CommunityClient, ec as CommunityClientOptions, ed as CommunityComment, ee as CommunityCommentListSort, ef as CommunityPost, eg as CommunityPostCategory, eh as CommunityPostListSort, ei as CommunityPostTag, ej as CommunityPublicAuthorSnapshot, ek as CommunityPublicMediaAsset, el as CommunityPublicReference, em as CompatibilityProductSelectionParamEvent, d3 as ContentClient, da as ContentClientOptions, a7 as CreateCartParams, a8 as CreateCartResult, db as CreateCheckoutParams, dc as CreateCheckoutResult, en as CreateFulfillmentParams, ab as CreatePaymentSessionParams, ac as CreatePortOnePaymentSessionParams, eo as CreateReturnParams, af as CreateServerPaymentSessionParams, ag as CreateServerPortOnePaymentSessionParams, k as CreditsApi, dC as CustomerAuth, ep as CustomerAuthOptions, dE as CustomerAuthResponse, eq as CustomerAuthorizationUrlInput, er as CustomerAuthorizationUrlResult, aj as CustomerBenefitVoucher, ak as CustomerCreditAccountResponse, al as CustomerCreditBalances, am as CustomerCreditGrant, g as CustomerGroupApi, an as CustomerGroupApiOptions, ao as CustomerGroupManualSource, ap as CustomerGroupMember, aq as CustomerGroupMemberCommandResponse, ar as CustomerGroupMemberSource, as as CustomerGroupMembershipSource, at as CustomerGroupMembershipState, dF as CustomerLoginData, au as CustomerMembershipView, d4 as CustomerNamespace, es as CustomerOAuth, et as CustomerOAuthCallbackResult, eu as CustomerOAuthConfig, ev as CustomerOAuthTokenSet, ew as CustomerOrderListOptions, dD as CustomerProfile, dI as CustomerRefreshResponse, dH as CustomerRegisterData, dG as CustomerRegisterResponse, av as CustomerSnapshot, ex as CustomerWithdrawalResult, dd as DebugConfig, de as DeepPartial, ey as DiscountApi, ez as DiscountApiOptions, eA as DiscountErrorReasonCode, ax as EventAdmissionAvailabilityParams, ay as EventAdmissionAvailabilityResponse, az as EventAdmissionAvailabilityType, aA as EventAdmissionPricePresentment, aB as EventGuestCancelParams, aC as EventGuestRegistration, aD as EventGuestRegistrationResponse, aE as EventMyRegistration, aF as EventMyRegistrationsParams, aG as EventMyRegistrationsResponse, aH as EventRegistrationAnswerInput, aI as EventRegistrationAttendeeInput, aJ as EventRegistrationPublic, aK as EventRegistrationRegisterParams, aL as EventRegistrationRegisterResponse, aM as EventsCalendarItem, aN as EventsClient, aO as EventsClientOptions, aP as EventsDateParam, aQ as EventsExternalSource, aR as EventsLocation, aS as EventsOccurrenceLocation, aT as EventsRangeEvent, aU as EventsRangeOccurrence, aV as EventsRangeParams, aW as EventsRangeResponse, aX as EventsTaxonomyItem, df as ExtractArrayType, eB as FeaturedImagePointerInput, b6 as GetBenefitVoucherRequest, b7 as GetCustomerCreditAccountRequest, b8 as GetCustomerCreditGrantRequest, eC as GetOrderByPaymentIdParams, bb as GrantCustomerCreditRequest, bc as GrantCustomerGroupMemberParams, bf as IssueBenefitVoucherRequest, bg as IssueBenefitVoucherResponse, eD as LegacyProductSelectionParamEvent, bh as ListBenefitVouchersRequest, bi as ListBenefitVouchersResponse, bj as ListCustomerGroupMembersParams, bk as ListCustomerGroupMembersResponse, bm as ListMyBenefitVouchersRequest, bn as ListMyBenefitVouchersResponse, eE as ListingGroupsParams, eF as MAX_CART_LINE_ADMISSIONS, eG as ManagedCancelRefundOutcome, eH as ManagedPaymentNextAction, eI as ManagedPublicPaymentSession, eJ as MarketDTO, eK as MediaValue, bo as MembershipStatus, bq as Money, br as MutateBenefitVoucherResponse, bt as MyCustomerCreditHistoryRequest, bu as MyCustomerCreditHistoryResponse, bv as MyCustomerCreditsRequest, bw as MyCustomerCreditsResponse, eL as NormalizedOptionSwatch, eM as NormalizedProductSelection, bx as OpenCheckoutPaymentState, eN as OrderApi, eO as OrderApiOptions, eP as OrderByPaymentResult, eQ as PRODUCT_PLP_FIND_OPTIONS, eR as PRODUCT_UPSERT_READONLY_FIELD_REASON, eS as PRODUCT_UPSERT_UNKNOWN_FIELD_REASON, dg as PayloadFindResponse, dh as PayloadMutationResponse, by as PaymentFailureReason, bz as PaymentNextAction, bA as PaymentProviderStatus, bB as PaymentReconciliationReason, bE as PaymentSessionRole, bF as PortOneHostedPaymentMethod, bH as PortOnePaymentNextAction, bK as PortOnePublicPaymentSession, eT as PrepareFulfillmentOrderParams, eU as PrepareFulfillmentOrderResponse, eV as ProductApi, eW as ProductApiOptions, eX as ProductDetailBrand, dN as ProductDetailCatalogResult, eY as ProductDetailCatalogVariant, eZ as ProductDetailCategory, e_ as ProductDetailImage, e$ as ProductDetailImageMedia, f0 as ProductDetailMedia, f1 as ProductDetailOption, f2 as ProductDetailOptionValue, dM as ProductDetailParams, f3 as ProductDetailResult, f4 as ProductDetailTag, f5 as ProductDetailUnavailableReason, f6 as ProductDetailVariant, f7 as ProductDetailVariantOptionValue, f8 as ProductDetailVideo, f9 as ProductDisplayMediaSource, fa as ProductFallbackLocaleOption, fb as ProductHrefGroup, fc as ProductHrefOptions, fd as ProductHrefProduct, fe as ProductListingCard, ff as ProductListingCardOptions, fg as ProductListingCardPriceRange, fh as ProductListingCardRepresentativeVariant, fi as ProductListingGroup, fj as ProductListingGroupCatalogSummary, fk as ProductListingGroupCatalogVariant, fl as ProductListingGroupProjection, fm as ProductListingGroupSummary, fn as ProductListingGroupVariant, dQ as ProductListingGroupsCatalogItem, fo as ProductListingGroupsCatalogProduct, fp as ProductListingGroupsCatalogResponse, dS as ProductListingGroupsItem, fq as ProductListingGroupsProduct, fr as ProductListingGroupsResponse, dL as ProductListingPageBaseParams, dO as ProductListingPageCatalogParams, fs as ProductListingPageFilters, dR as ProductListingPageFullParams, dK as ProductListingPageParams, dP as ProductListingPageResult, ft as ProductListingPageSort, fu as ProductListingProductShape, fv as ProductListingSwatch, fw as ProductLocaleOption, fx as ProductLocaleReadParams, fy as ProductLocalizedText, fz as ProductLocalizedValue, fA as ProductMediaResolutionSource, fB as ProductMoneyRange, fC as ProductOptionMatrix, fD as ProductOptionMatrixOption, fE as ProductOptionMatrixValue, fF as ProductOptionMatrixVariant, fG as ProductOptionShape, fH as ProductOptionValueShape, fI as ProductOptionValueSwatch, fJ as ProductOptionValueSwatchInput, fK as ProductPriceRange, fL as ProductSelectionAvailableSwatch, fM as ProductSelectionAvailableValue, fN as ProductSelectionByOptionValue, fO as ProductSelectionCodecError, fP as ProductSelectionCodecOptions, fQ as ProductSelectionInput, fR as ProductSelectionMediaPointer, fS as ProductSelectionMediaSource, fT as ProductSelectionOptionValue, fU as ProductSelectionResolution, fV as ProductSelectionResolutionContext, fW as ProductSelectionUrlEmit, fX as ProductSelectionVariant, fY as ProductUpsertFieldValidationErrorBody, fZ as ProductUpsertFieldValidationErrorReason, bO as ProductUpsertInput, bP as ProductUpsertParams, bQ as ProductUpsertResponse, bR as ProductUpsertVariantInput, f_ as ProductVariantShape, bS as PublicAttribute, bT as PublicCaptureEvidence, bU as PublicCart, bV as PublicCartItem, bW as PublicCartItemAdmission, bX as PublicCartMarket, bY as PublicCartReference, bZ as PublicCheckout, f$ as PublicCheckoutBase, b_ as PublicCheckoutItem, b$ as PublicMediaAsset, c0 as PublicMediaSize, c1 as PublicOrder, c2 as PublicOrderAmounts, c3 as PublicOrderItem, c4 as PublicOrderReference, c5 as PublicPaymentSession, dB as PublicReadQueryOptions, c8 as ReconciliationRequired, ca as RedeemBenefitVoucherRequest, cb as RemoveItemParams, g0 as RequestOptions, g1 as ResolveCancelRefundFailedResponse, g2 as ResolveCancelRefundOutcome, g3 as ResolveCancelRefundParams, g4 as ResolveCancelRefundResponse, g5 as ResolveCancelRefundSucceededResponse, g6 as ResolveProductDisplayMediaInput, g7 as ResolveProductDisplayMediaResult, g8 as ResolveProductSelectionMediaInput, g9 as ResolveProductSelectionMediaResult, ga as ResolvedCatalogPrice, di as RetrieveBrowserPaymentSessionParams, ce as RetrieveCartParams, cf as RetrieveCheckoutParams, ch as RetrieveServerCheckoutParams, dj as RetryConfig, gb as ReturnCancellationReasonCode, gc as ReturnItem, gd as ReturnReason, ge as ReturnWithRefundItem, gf as ReturnWithRefundParams, ck as RevokeCustomerCreditRequest, cl as RevokeCustomerCreditResponse, cm as RevokeCustomerGroupMemberParams, dk as RootClient, dl as RootCollectionClient, dm as RootReadOnlyQueryBuilder, gg as ShippingApi, gh as ShippingApiOptions, ct as ShippingLine, dn as Sort, cu as SpentCheckoutPaymentState, gi as StockCheckParams, gj as StockCheckResponse, gk as StockCheckResult, gl as StockSnapshotItem, gm as StockSnapshotParams, dp as StorefrontContentListOptions, dq as StorefrontContentReference, dr as StorefrontGalleryItem, ds as StorefrontGalleryItemsListOptions, dt as StorefrontGalleryItemsSort, du as StorefrontLink, dv as StorefrontLinksListOptions, dw as StorefrontLinksSort, cL as UpdateCartAttributesParams, cM as UpdateDiscountCodesParams, gn as UpdateFulfillmentParams, cN as UpdateItemParams, go as UpdateOrderParams, dJ as UpdateProfileData, gp as UpdateReturnParams, gq as ValidateDiscountParams, gr as ValidateDiscountResult, cO as VariantInput, gs as VideoPlaybackResponse, cS as VoidBenefitVoucherRequest, dx as Where, gt as WithIdempotencyKey, gu as buildProductHref, gv as buildProductListingCard, gw as buildProductListingGroupProjection, gx as buildProductListingGroupsByOption, gy as buildProductOptionMatrix, gz as buildProductOptionMatrixFromDetail, gA as createProductSelectionCodec, gB as getAvailableOptionValues, gC as getProductSelectionImages, gD as getSelectedValueByOptionId, gE as getVariantAvailableForSale, gF as getVariantAvailableStock, cU as invalidBenefitVoucherResponse, gG as isProductUpsertFieldValidationErrorBody, gH as normalizeProductSelection, gI as normalizeProductSelectionFromMatrix, gJ as normalizeSelectedValueIds, cV as parseBenefitVoucher, cW as parseBenefitVoucherList, cX as parseCustomerCreditAccount, cY as parseCustomerCreditGrant, cZ as parseMyCustomerCreditHistory, c_ as parseMyCustomerCredits, gK as parseProductSelection, c$ as parseRevokeCustomerCredit, gL as projectProductToListingShape, gM as resolveFeaturedImagePointer, gN as resolveProductDisplayMedia, gO as resolveProductSelection, gP as resolveProductSelectionFromMatrix, gQ as resolveProductSelectionMedia, gR as resolveVariantForSelection, gS as selectNext, gT as selectedSwatchMediaItemId, gU as stringifyProductSelection, gV as toShopifyPriceRangeV2 } from './types-CnkJQUez.cjs';
3
+ import { P as Product } from './payload-types-BRg8Yary.cjs';
4
+ export { A as Article, g as ArticleAuthor, h as ArticleCategory, i as ArticleTag, D as Document, I as Image, j as Post, k as PostCategory, T as Tenant, V as Video } from './payload-types-BRg8Yary.cjs';
5
+ export { C as CollectionType, P as Market, a as Product, b as ProductCollection, c as ProductVariant } from './types-FyklqLAk.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, a2 as CustomerCommerceNotificationEventName, t as CustomerPasswordResetWebhookData, u as CustomerPasswordResetWebhookEvent, M as MembershipNotificationData, v as MembershipNotificationEventName, O as ORDER_CHANGED_EVENT_TYPE, w as OrderChangedWebhookEvent, P as PaymentIncidentMoney, x as PaymentIncidentNotificationData, y as PaymentIncidentNotificationEventName, z as PaymentIncidentNotificationReason, A as PaymentIncidentNotificationSourceCollection, B as PaymentIncidentNotificationStatus, D as PaymentIncidentProviderObject, a3 as PaymentReconciliationRequiredNotificationData, a4 as PaymentRefundRequiresAttentionNotificationData, E as WebhookChange, F as WebhookCommerceNotificationChange, G as WebhookEvent, W as WebhookHandler, H as WebhookKnownOperation, I as WebhookOperation, J as WebhookOptions, K as WebhookOrderChange, L as WebhookOrderMoved, N as WebhookOrderScope, Q as createCommerceEmailWebhookHandler, R as createCommerceNotificationWebhookHandler, S as createCustomerAuthWebhookHandler, T as createTypedWebhookHandler, U as defineCommerceEmailConfig, V as getCommerceNotificationIdempotencyKey, X as handleWebhook, Y as isCommerceNotificationWebhookEvent, Z as isCustomerPasswordResetWebhookEvent, _ as isOrderChangedWebhookEvent, $ as isValidWebhookEvent, a0 as isWebhookCollection, a1 as isWebhookOperation } from './index-CI_LFWiG.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-_ZfJjRQG.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';
package/dist/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- import { dT as BaseApi, S as ServerApiOptions, b as SubscribeMembershipParams, c as SubscribeMembershipResponse, E as EndSubscribeIntentParams, d as EndSubscribeIntentResponse, C as CancelMembershipParams, e as CancelMembershipResponse, B as BillingCustodyParams, f as BillingCustodyResponse, dU as ProductDetail, dV as ProductDetailCatalog, dW as StockSnapshotResponse, d5 as ClientConfig, dX as RootClientWithEvents } from './types-nyOvcO0K.js';
2
- export { A as AddItemParams, d6 as ApiQueryOptions, r as BENEFIT_VOUCHER_ERROR_REASONS, s as BENEFIT_VOUCHER_VOID_REASONS, t as BenefitVoucher, u as BenefitVoucherErrorReason, j as BenefitVouchersApi, dY as BillingCustodyWireRequest, dZ as BulkImportFulfillmentsParams, d_ as BulkImportFulfillmentsResponse, d$ as CalculateShippingParams, e0 as CalculateShippingResult, d7 as CancelBrowserPaymentSessionParams, e1 as CancelOrderParams, e2 as CancelOrderResponse, e3 as CancelReasonCode, e4 as CartDiscountCode, d8 as CartMergeParams, z as CartMergeResult, D as CartMineResult, F as CartMutationResult, e5 as CartWarning, e6 as CartWarningCode, G as CheckoutAbandonedReason, H as CheckoutAmounts, e7 as CheckoutFunding, N as CheckoutOrderReference, O as CheckoutPaymentSessionRef, W as CheckoutShippingAddress, Z as ClearCartParams, dk as Client, d9 as ClientMetadata, o as ClientState, dk as ClientType, e8 as Comment, d2 as CommerceClient, e9 as CommerceClientOptions, l as CommunityClient, ea as CommunityClientOptions, eb as CommunityComment, ec as CommunityCommentListSort, ed as CommunityPost, ee as CommunityPostCategory, ef as CommunityPostListSort, eg as CommunityPostTag, eh as CommunityPublicAuthorSnapshot, ei as CommunityPublicMediaAsset, ej as CommunityPublicReference, ek as CompatibilityProductSelectionParamEvent, d3 as ContentClient, da as ContentClientOptions, a7 as CreateCartParams, a8 as CreateCartResult, db as CreateCheckoutParams, dc as CreateCheckoutResult, el as CreateFulfillmentParams, ab as CreatePaymentSessionParams, ac as CreatePortOnePaymentSessionParams, em as CreateReturnParams, af as CreateServerPaymentSessionParams, ag as CreateServerPortOnePaymentSessionParams, k as CreditsApi, dC as CustomerAuth, en as CustomerAuthOptions, dE as CustomerAuthResponse, eo as CustomerAuthorizationUrlInput, ep as CustomerAuthorizationUrlResult, aj as CustomerBenefitVoucher, ak as CustomerCreditAccountResponse, al as CustomerCreditBalances, am as CustomerCreditGrant, g as CustomerGroupApi, an as CustomerGroupApiOptions, ao as CustomerGroupManualSource, ap as CustomerGroupMember, aq as CustomerGroupMemberCommandResponse, ar as CustomerGroupMemberSource, as as CustomerGroupMembershipSource, at as CustomerGroupMembershipState, dF as CustomerLoginData, au as CustomerMembershipView, d4 as CustomerNamespace, eq as CustomerOAuth, er as CustomerOAuthCallbackResult, es as CustomerOAuthConfig, et as CustomerOAuthTokenSet, eu as CustomerOrderListOptions, dD as CustomerProfile, dI as CustomerRefreshResponse, dH as CustomerRegisterData, dG as CustomerRegisterResponse, av as CustomerSnapshot, ev as CustomerWithdrawalResult, dd as DebugConfig, de as DeepPartial, ew as DiscountApi, ex as DiscountApiOptions, ey as DiscountErrorReasonCode, ax as EventAdmissionAvailabilityParams, ay as EventAdmissionAvailabilityResponse, az as EventAdmissionAvailabilityType, aA as EventAdmissionPricePresentment, aB as EventGuestCancelParams, aC as EventGuestRegistration, aD as EventGuestRegistrationResponse, aE as EventMyRegistration, aF as EventMyRegistrationsParams, aG as EventMyRegistrationsResponse, aH as EventRegistrationAnswerInput, aI as EventRegistrationAttendeeInput, aJ as EventRegistrationPublic, aK as EventRegistrationRegisterParams, aL as EventRegistrationRegisterResponse, aM as EventsCalendarItem, aN as EventsClient, aO as EventsClientOptions, aP as EventsDateParam, aQ as EventsExternalSource, aR as EventsLocation, aS as EventsOccurrenceLocation, aT as EventsRangeEvent, aU as EventsRangeOccurrence, aV as EventsRangeParams, aW as EventsRangeResponse, aX as EventsTaxonomyItem, df as ExtractArrayType, ez as FeaturedImagePointerInput, b6 as GetBenefitVoucherRequest, b7 as GetCustomerCreditAccountRequest, b8 as GetCustomerCreditGrantRequest, eA as GetOrderByPaymentIdParams, bb as GrantCustomerCreditRequest, bc as GrantCustomerGroupMemberParams, bf as IssueBenefitVoucherRequest, bg as IssueBenefitVoucherResponse, eB as LegacyProductSelectionParamEvent, bh as ListBenefitVouchersRequest, bi as ListBenefitVouchersResponse, bj as ListCustomerGroupMembersParams, bk as ListCustomerGroupMembersResponse, bm as ListMyBenefitVouchersRequest, bn as ListMyBenefitVouchersResponse, eC as ListingGroupsParams, eD as MAX_CART_LINE_ADMISSIONS, eE as ManagedPaymentNextAction, eF as ManagedPublicPaymentSession, eG as MarketDTO, eH as MediaValue, bo as MembershipStatus, bq as Money, br as MutateBenefitVoucherResponse, bt as MyCustomerCreditHistoryRequest, bu as MyCustomerCreditHistoryResponse, bv as MyCustomerCreditsRequest, bw as MyCustomerCreditsResponse, eI as NormalizedOptionSwatch, eJ as NormalizedProductSelection, bx as OpenCheckoutPaymentState, eK as OrderApi, eL as OrderApiOptions, eM as OrderByPaymentResult, eN as PRODUCT_PLP_FIND_OPTIONS, eO as PRODUCT_UPSERT_READONLY_FIELD_REASON, eP as PRODUCT_UPSERT_UNKNOWN_FIELD_REASON, dg as PayloadFindResponse, dh as PayloadMutationResponse, by as PaymentFailureReason, bz as PaymentNextAction, bA as PaymentProviderStatus, bB as PaymentReconciliationReason, bE as PaymentSessionRole, bF as PortOneHostedPaymentMethod, bH as PortOnePaymentNextAction, bK as PortOnePublicPaymentSession, eQ as PrepareFulfillmentOrderParams, eR as PrepareFulfillmentOrderResponse, eS as ProductApi, eT as ProductApiOptions, eU as ProductDetailBrand, dN as ProductDetailCatalogResult, eV as ProductDetailCatalogVariant, eW as ProductDetailCategory, eX as ProductDetailImage, eY as ProductDetailImageMedia, eZ as ProductDetailMedia, e_ as ProductDetailOption, e$ as ProductDetailOptionValue, dM as ProductDetailParams, f0 as ProductDetailResult, f1 as ProductDetailTag, f2 as ProductDetailUnavailableReason, f3 as ProductDetailVariant, f4 as ProductDetailVariantOptionValue, f5 as ProductDetailVideo, f6 as ProductDisplayMediaSource, f7 as ProductFallbackLocaleOption, f8 as ProductHrefGroup, f9 as ProductHrefOptions, fa as ProductHrefProduct, fb as ProductListingCard, fc as ProductListingCardOptions, fd as ProductListingCardPriceRange, fe as ProductListingCardRepresentativeVariant, ff as ProductListingGroup, fg as ProductListingGroupCatalogSummary, fh as ProductListingGroupCatalogVariant, fi as ProductListingGroupProjection, fj as ProductListingGroupSummary, fk as ProductListingGroupVariant, dQ as ProductListingGroupsCatalogItem, fl as ProductListingGroupsCatalogProduct, fm as ProductListingGroupsCatalogResponse, dS as ProductListingGroupsItem, fn as ProductListingGroupsProduct, fo as ProductListingGroupsResponse, dL as ProductListingPageBaseParams, dO as ProductListingPageCatalogParams, fp as ProductListingPageFilters, dR as ProductListingPageFullParams, dK as ProductListingPageParams, dP as ProductListingPageResult, fq as ProductListingPageSort, fr as ProductListingProductShape, fs as ProductListingSwatch, ft as ProductLocaleOption, fu as ProductLocaleReadParams, fv as ProductLocalizedText, fw as ProductLocalizedValue, fx as ProductMediaResolutionSource, fy as ProductMoneyRange, fz as ProductOptionMatrix, fA as ProductOptionMatrixOption, fB as ProductOptionMatrixValue, fC as ProductOptionMatrixVariant, fD as ProductOptionShape, fE as ProductOptionValueShape, fF as ProductOptionValueSwatch, fG as ProductOptionValueSwatchInput, fH as ProductPriceRange, fI as ProductSelectionAvailableSwatch, fJ as ProductSelectionAvailableValue, fK as ProductSelectionByOptionValue, fL as ProductSelectionCodecError, fM as ProductSelectionCodecOptions, fN as ProductSelectionInput, fO as ProductSelectionMediaPointer, fP as ProductSelectionMediaSource, fQ as ProductSelectionOptionValue, fR as ProductSelectionResolution, fS as ProductSelectionResolutionContext, fT as ProductSelectionUrlEmit, fU as ProductSelectionVariant, fV as ProductUpsertFieldValidationErrorBody, fW as ProductUpsertFieldValidationErrorReason, bO as ProductUpsertInput, bP as ProductUpsertParams, bQ as ProductUpsertResponse, bR as ProductUpsertVariantInput, fX as ProductVariantShape, bS as PublicAttribute, bT as PublicCaptureEvidence, bU as PublicCart, bV as PublicCartItem, bW as PublicCartItemAdmission, bX as PublicCartMarket, bY as PublicCartReference, bZ as PublicCheckout, fY as PublicCheckoutBase, b_ as PublicCheckoutItem, b$ as PublicMediaAsset, c0 as PublicMediaSize, c1 as PublicOrder, c2 as PublicOrderAmounts, c3 as PublicOrderItem, c4 as PublicOrderReference, c5 as PublicPaymentSession, dB as PublicReadQueryOptions, c8 as ReconciliationRequired, ca as RedeemBenefitVoucherRequest, cb as RemoveItemParams, fZ as RequestOptions, f_ as ResolveCancelRefundFailedResponse, f$ as ResolveCancelRefundOutcome, g0 as ResolveCancelRefundParams, g1 as ResolveCancelRefundResponse, g2 as ResolveCancelRefundSucceededResponse, g3 as ResolveProductDisplayMediaInput, g4 as ResolveProductDisplayMediaResult, g5 as ResolveProductSelectionMediaInput, g6 as ResolveProductSelectionMediaResult, g7 as ResolvedCatalogPrice, di as RetrieveBrowserPaymentSessionParams, ce as RetrieveCartParams, cf as RetrieveCheckoutParams, ch as RetrieveServerCheckoutParams, dj as RetryConfig, g8 as ReturnCancellationReasonCode, g9 as ReturnItem, ga as ReturnReason, gb as ReturnWithRefundItem, gc as ReturnWithRefundParams, ck as RevokeCustomerCreditRequest, cl as RevokeCustomerCreditResponse, cm as RevokeCustomerGroupMemberParams, dk as RootClient, dl as RootCollectionClient, dm as RootReadOnlyQueryBuilder, gd as ShippingApi, ge as ShippingApiOptions, ct as ShippingLine, dn as Sort, cu as SpentCheckoutPaymentState, gf as StockCheckParams, gg as StockCheckResponse, gh as StockCheckResult, gi as StockSnapshotItem, gj as StockSnapshotParams, dp as StorefrontContentListOptions, dq as StorefrontContentReference, dr as StorefrontGalleryItem, ds as StorefrontGalleryItemsListOptions, dt as StorefrontGalleryItemsSort, du as StorefrontLink, dv as StorefrontLinksListOptions, dw as StorefrontLinksSort, cL as UpdateCartAttributesParams, cM as UpdateDiscountCodesParams, gk as UpdateFulfillmentParams, cN as UpdateItemParams, gl as UpdateOrderParams, dJ as UpdateProfileData, gm as UpdateReturnParams, gn as ValidateDiscountParams, go as ValidateDiscountResult, cO as VariantInput, gp as VideoPlaybackResponse, cS as VoidBenefitVoucherRequest, dx as Where, gq as WithIdempotencyKey, gr as buildProductHref, gs as buildProductListingCard, gt as buildProductListingGroupProjection, gu as buildProductListingGroupsByOption, gv as buildProductOptionMatrix, gw as buildProductOptionMatrixFromDetail, gx as createProductSelectionCodec, gy as getAvailableOptionValues, gz as getProductSelectionImages, gA as getSelectedValueByOptionId, gB as getVariantAvailableForSale, gC as getVariantAvailableStock, cU as invalidBenefitVoucherResponse, gD as isProductUpsertFieldValidationErrorBody, gE as normalizeProductSelection, gF as normalizeProductSelectionFromMatrix, gG as normalizeSelectedValueIds, cV as parseBenefitVoucher, cW as parseBenefitVoucherList, cX as parseCustomerCreditAccount, cY as parseCustomerCreditGrant, cZ as parseMyCustomerCreditHistory, c_ as parseMyCustomerCredits, gH as parseProductSelection, c$ as parseRevokeCustomerCredit, gI as projectProductToListingShape, gJ as resolveFeaturedImagePointer, gK as resolveProductDisplayMedia, gL as resolveProductSelection, gM as resolveProductSelectionFromMatrix, gN as resolveProductSelectionMedia, gO as resolveVariantForSelection, gP as selectNext, gQ as selectedSwatchMediaItemId, gR as stringifyProductSelection, gS as toShopifyPriceRangeV2 } from './types-nyOvcO0K.js';
3
- import { P as Product } from './payload-types-BgOEk6Y9.js';
4
- export { A as Article, g as ArticleAuthor, h as ArticleCategory, i as ArticleTag, D as Document, I as Image, j as Post, k as PostCategory, T as Tenant, V as Video } from './payload-types-BgOEk6Y9.js';
5
- export { C as CollectionType, P as Market, a as Product, b as ProductCollection, c as ProductVariant } from './types-CSvp2fJ_.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, a2 as CustomerCommerceNotificationEventName, t as CustomerPasswordResetWebhookData, u as CustomerPasswordResetWebhookEvent, M as MembershipNotificationData, v as MembershipNotificationEventName, O as ORDER_CHANGED_EVENT_TYPE, w as OrderChangedWebhookEvent, P as PaymentIncidentMoney, x as PaymentIncidentNotificationData, y as PaymentIncidentNotificationEventName, z as PaymentIncidentNotificationReason, A as PaymentIncidentNotificationSourceCollection, B as PaymentIncidentNotificationStatus, D as PaymentIncidentProviderObject, a3 as PaymentReconciliationRequiredNotificationData, a4 as PaymentRefundRequiresAttentionNotificationData, E as WebhookChange, F as WebhookCommerceNotificationChange, G as WebhookEvent, W as WebhookHandler, H as WebhookKnownOperation, I as WebhookOperation, J as WebhookOptions, K as WebhookOrderChange, L as WebhookOrderMoved, N as WebhookOrderScope, Q as createCommerceEmailWebhookHandler, R as createCommerceNotificationWebhookHandler, S as createCustomerAuthWebhookHandler, T as createTypedWebhookHandler, U as defineCommerceEmailConfig, V as getCommerceNotificationIdempotencyKey, X as handleWebhook, Y as isCommerceNotificationWebhookEvent, Z as isCustomerPasswordResetWebhookEvent, _ as isOrderChangedWebhookEvent, $ as isValidWebhookEvent, a0 as isWebhookCollection, a1 as isWebhookOperation } from './index-Ccd4NYTL.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-Dlu0mXmj.js';
1
+ import { dT as BaseApi, S as ServerApiOptions, b as SubscribeMembershipParams, c as SubscribeMembershipResponse, E as EndSubscribeIntentParams, d as EndSubscribeIntentResponse, C as CancelMembershipParams, e as CancelMembershipResponse, B as BillingCustodyParams, f as BillingCustodyResponse, dU as ProductDetail, dV as ProductDetailCatalog, dW as StockSnapshotResponse, d5 as ClientConfig, dX as RootClientWithEvents } from './types-Cmnxxvuv.js';
2
+ export { A as AddItemParams, d6 as ApiQueryOptions, r as BENEFIT_VOUCHER_ERROR_REASONS, s as BENEFIT_VOUCHER_VOID_REASONS, t as BenefitVoucher, u as BenefitVoucherErrorReason, j as BenefitVouchersApi, dY as BillingCustodyWireRequest, dZ as BulkImportFulfillmentsParams, d_ as BulkImportFulfillmentsResponse, d$ as CalculateShippingParams, e0 as CalculateShippingResult, d7 as CancelBrowserPaymentSessionParams, e1 as CancelOrderManagedAlreadyCanceledResponse, e2 as CancelOrderManagedCommittedResponse, e3 as CancelOrderParams, e4 as CancelOrderResponse, e5 as CancelReasonCode, e6 as CartDiscountCode, d8 as CartMergeParams, z as CartMergeResult, D as CartMineResult, F as CartMutationResult, e7 as CartWarning, e8 as CartWarningCode, G as CheckoutAbandonedReason, H as CheckoutAmounts, e9 as CheckoutFunding, N as CheckoutOrderReference, O as CheckoutPaymentSessionRef, W as CheckoutShippingAddress, Z as ClearCartParams, dk as Client, d9 as ClientMetadata, o as ClientState, dk as ClientType, ea as Comment, d2 as CommerceClient, eb as CommerceClientOptions, l as CommunityClient, ec as CommunityClientOptions, ed as CommunityComment, ee as CommunityCommentListSort, ef as CommunityPost, eg as CommunityPostCategory, eh as CommunityPostListSort, ei as CommunityPostTag, ej as CommunityPublicAuthorSnapshot, ek as CommunityPublicMediaAsset, el as CommunityPublicReference, em as CompatibilityProductSelectionParamEvent, d3 as ContentClient, da as ContentClientOptions, a7 as CreateCartParams, a8 as CreateCartResult, db as CreateCheckoutParams, dc as CreateCheckoutResult, en as CreateFulfillmentParams, ab as CreatePaymentSessionParams, ac as CreatePortOnePaymentSessionParams, eo as CreateReturnParams, af as CreateServerPaymentSessionParams, ag as CreateServerPortOnePaymentSessionParams, k as CreditsApi, dC as CustomerAuth, ep as CustomerAuthOptions, dE as CustomerAuthResponse, eq as CustomerAuthorizationUrlInput, er as CustomerAuthorizationUrlResult, aj as CustomerBenefitVoucher, ak as CustomerCreditAccountResponse, al as CustomerCreditBalances, am as CustomerCreditGrant, g as CustomerGroupApi, an as CustomerGroupApiOptions, ao as CustomerGroupManualSource, ap as CustomerGroupMember, aq as CustomerGroupMemberCommandResponse, ar as CustomerGroupMemberSource, as as CustomerGroupMembershipSource, at as CustomerGroupMembershipState, dF as CustomerLoginData, au as CustomerMembershipView, d4 as CustomerNamespace, es as CustomerOAuth, et as CustomerOAuthCallbackResult, eu as CustomerOAuthConfig, ev as CustomerOAuthTokenSet, ew as CustomerOrderListOptions, dD as CustomerProfile, dI as CustomerRefreshResponse, dH as CustomerRegisterData, dG as CustomerRegisterResponse, av as CustomerSnapshot, ex as CustomerWithdrawalResult, dd as DebugConfig, de as DeepPartial, ey as DiscountApi, ez as DiscountApiOptions, eA as DiscountErrorReasonCode, ax as EventAdmissionAvailabilityParams, ay as EventAdmissionAvailabilityResponse, az as EventAdmissionAvailabilityType, aA as EventAdmissionPricePresentment, aB as EventGuestCancelParams, aC as EventGuestRegistration, aD as EventGuestRegistrationResponse, aE as EventMyRegistration, aF as EventMyRegistrationsParams, aG as EventMyRegistrationsResponse, aH as EventRegistrationAnswerInput, aI as EventRegistrationAttendeeInput, aJ as EventRegistrationPublic, aK as EventRegistrationRegisterParams, aL as EventRegistrationRegisterResponse, aM as EventsCalendarItem, aN as EventsClient, aO as EventsClientOptions, aP as EventsDateParam, aQ as EventsExternalSource, aR as EventsLocation, aS as EventsOccurrenceLocation, aT as EventsRangeEvent, aU as EventsRangeOccurrence, aV as EventsRangeParams, aW as EventsRangeResponse, aX as EventsTaxonomyItem, df as ExtractArrayType, eB as FeaturedImagePointerInput, b6 as GetBenefitVoucherRequest, b7 as GetCustomerCreditAccountRequest, b8 as GetCustomerCreditGrantRequest, eC as GetOrderByPaymentIdParams, bb as GrantCustomerCreditRequest, bc as GrantCustomerGroupMemberParams, bf as IssueBenefitVoucherRequest, bg as IssueBenefitVoucherResponse, eD as LegacyProductSelectionParamEvent, bh as ListBenefitVouchersRequest, bi as ListBenefitVouchersResponse, bj as ListCustomerGroupMembersParams, bk as ListCustomerGroupMembersResponse, bm as ListMyBenefitVouchersRequest, bn as ListMyBenefitVouchersResponse, eE as ListingGroupsParams, eF as MAX_CART_LINE_ADMISSIONS, eG as ManagedCancelRefundOutcome, eH as ManagedPaymentNextAction, eI as ManagedPublicPaymentSession, eJ as MarketDTO, eK as MediaValue, bo as MembershipStatus, bq as Money, br as MutateBenefitVoucherResponse, bt as MyCustomerCreditHistoryRequest, bu as MyCustomerCreditHistoryResponse, bv as MyCustomerCreditsRequest, bw as MyCustomerCreditsResponse, eL as NormalizedOptionSwatch, eM as NormalizedProductSelection, bx as OpenCheckoutPaymentState, eN as OrderApi, eO as OrderApiOptions, eP as OrderByPaymentResult, eQ as PRODUCT_PLP_FIND_OPTIONS, eR as PRODUCT_UPSERT_READONLY_FIELD_REASON, eS as PRODUCT_UPSERT_UNKNOWN_FIELD_REASON, dg as PayloadFindResponse, dh as PayloadMutationResponse, by as PaymentFailureReason, bz as PaymentNextAction, bA as PaymentProviderStatus, bB as PaymentReconciliationReason, bE as PaymentSessionRole, bF as PortOneHostedPaymentMethod, bH as PortOnePaymentNextAction, bK as PortOnePublicPaymentSession, eT as PrepareFulfillmentOrderParams, eU as PrepareFulfillmentOrderResponse, eV as ProductApi, eW as ProductApiOptions, eX as ProductDetailBrand, dN as ProductDetailCatalogResult, eY as ProductDetailCatalogVariant, eZ as ProductDetailCategory, e_ as ProductDetailImage, e$ as ProductDetailImageMedia, f0 as ProductDetailMedia, f1 as ProductDetailOption, f2 as ProductDetailOptionValue, dM as ProductDetailParams, f3 as ProductDetailResult, f4 as ProductDetailTag, f5 as ProductDetailUnavailableReason, f6 as ProductDetailVariant, f7 as ProductDetailVariantOptionValue, f8 as ProductDetailVideo, f9 as ProductDisplayMediaSource, fa as ProductFallbackLocaleOption, fb as ProductHrefGroup, fc as ProductHrefOptions, fd as ProductHrefProduct, fe as ProductListingCard, ff as ProductListingCardOptions, fg as ProductListingCardPriceRange, fh as ProductListingCardRepresentativeVariant, fi as ProductListingGroup, fj as ProductListingGroupCatalogSummary, fk as ProductListingGroupCatalogVariant, fl as ProductListingGroupProjection, fm as ProductListingGroupSummary, fn as ProductListingGroupVariant, dQ as ProductListingGroupsCatalogItem, fo as ProductListingGroupsCatalogProduct, fp as ProductListingGroupsCatalogResponse, dS as ProductListingGroupsItem, fq as ProductListingGroupsProduct, fr as ProductListingGroupsResponse, dL as ProductListingPageBaseParams, dO as ProductListingPageCatalogParams, fs as ProductListingPageFilters, dR as ProductListingPageFullParams, dK as ProductListingPageParams, dP as ProductListingPageResult, ft as ProductListingPageSort, fu as ProductListingProductShape, fv as ProductListingSwatch, fw as ProductLocaleOption, fx as ProductLocaleReadParams, fy as ProductLocalizedText, fz as ProductLocalizedValue, fA as ProductMediaResolutionSource, fB as ProductMoneyRange, fC as ProductOptionMatrix, fD as ProductOptionMatrixOption, fE as ProductOptionMatrixValue, fF as ProductOptionMatrixVariant, fG as ProductOptionShape, fH as ProductOptionValueShape, fI as ProductOptionValueSwatch, fJ as ProductOptionValueSwatchInput, fK as ProductPriceRange, fL as ProductSelectionAvailableSwatch, fM as ProductSelectionAvailableValue, fN as ProductSelectionByOptionValue, fO as ProductSelectionCodecError, fP as ProductSelectionCodecOptions, fQ as ProductSelectionInput, fR as ProductSelectionMediaPointer, fS as ProductSelectionMediaSource, fT as ProductSelectionOptionValue, fU as ProductSelectionResolution, fV as ProductSelectionResolutionContext, fW as ProductSelectionUrlEmit, fX as ProductSelectionVariant, fY as ProductUpsertFieldValidationErrorBody, fZ as ProductUpsertFieldValidationErrorReason, bO as ProductUpsertInput, bP as ProductUpsertParams, bQ as ProductUpsertResponse, bR as ProductUpsertVariantInput, f_ as ProductVariantShape, bS as PublicAttribute, bT as PublicCaptureEvidence, bU as PublicCart, bV as PublicCartItem, bW as PublicCartItemAdmission, bX as PublicCartMarket, bY as PublicCartReference, bZ as PublicCheckout, f$ as PublicCheckoutBase, b_ as PublicCheckoutItem, b$ as PublicMediaAsset, c0 as PublicMediaSize, c1 as PublicOrder, c2 as PublicOrderAmounts, c3 as PublicOrderItem, c4 as PublicOrderReference, c5 as PublicPaymentSession, dB as PublicReadQueryOptions, c8 as ReconciliationRequired, ca as RedeemBenefitVoucherRequest, cb as RemoveItemParams, g0 as RequestOptions, g1 as ResolveCancelRefundFailedResponse, g2 as ResolveCancelRefundOutcome, g3 as ResolveCancelRefundParams, g4 as ResolveCancelRefundResponse, g5 as ResolveCancelRefundSucceededResponse, g6 as ResolveProductDisplayMediaInput, g7 as ResolveProductDisplayMediaResult, g8 as ResolveProductSelectionMediaInput, g9 as ResolveProductSelectionMediaResult, ga as ResolvedCatalogPrice, di as RetrieveBrowserPaymentSessionParams, ce as RetrieveCartParams, cf as RetrieveCheckoutParams, ch as RetrieveServerCheckoutParams, dj as RetryConfig, gb as ReturnCancellationReasonCode, gc as ReturnItem, gd as ReturnReason, ge as ReturnWithRefundItem, gf as ReturnWithRefundParams, ck as RevokeCustomerCreditRequest, cl as RevokeCustomerCreditResponse, cm as RevokeCustomerGroupMemberParams, dk as RootClient, dl as RootCollectionClient, dm as RootReadOnlyQueryBuilder, gg as ShippingApi, gh as ShippingApiOptions, ct as ShippingLine, dn as Sort, cu as SpentCheckoutPaymentState, gi as StockCheckParams, gj as StockCheckResponse, gk as StockCheckResult, gl as StockSnapshotItem, gm as StockSnapshotParams, dp as StorefrontContentListOptions, dq as StorefrontContentReference, dr as StorefrontGalleryItem, ds as StorefrontGalleryItemsListOptions, dt as StorefrontGalleryItemsSort, du as StorefrontLink, dv as StorefrontLinksListOptions, dw as StorefrontLinksSort, cL as UpdateCartAttributesParams, cM as UpdateDiscountCodesParams, gn as UpdateFulfillmentParams, cN as UpdateItemParams, go as UpdateOrderParams, dJ as UpdateProfileData, gp as UpdateReturnParams, gq as ValidateDiscountParams, gr as ValidateDiscountResult, cO as VariantInput, gs as VideoPlaybackResponse, cS as VoidBenefitVoucherRequest, dx as Where, gt as WithIdempotencyKey, gu as buildProductHref, gv as buildProductListingCard, gw as buildProductListingGroupProjection, gx as buildProductListingGroupsByOption, gy as buildProductOptionMatrix, gz as buildProductOptionMatrixFromDetail, gA as createProductSelectionCodec, gB as getAvailableOptionValues, gC as getProductSelectionImages, gD as getSelectedValueByOptionId, gE as getVariantAvailableForSale, gF as getVariantAvailableStock, cU as invalidBenefitVoucherResponse, gG as isProductUpsertFieldValidationErrorBody, gH as normalizeProductSelection, gI as normalizeProductSelectionFromMatrix, gJ as normalizeSelectedValueIds, cV as parseBenefitVoucher, cW as parseBenefitVoucherList, cX as parseCustomerCreditAccount, cY as parseCustomerCreditGrant, cZ as parseMyCustomerCreditHistory, c_ as parseMyCustomerCredits, gK as parseProductSelection, c$ as parseRevokeCustomerCredit, gL as projectProductToListingShape, gM as resolveFeaturedImagePointer, gN as resolveProductDisplayMedia, gO as resolveProductSelection, gP as resolveProductSelectionFromMatrix, gQ as resolveProductSelectionMedia, gR as resolveVariantForSelection, gS as selectNext, gT as selectedSwatchMediaItemId, gU as stringifyProductSelection, gV as toShopifyPriceRangeV2 } from './types-Cmnxxvuv.js';
3
+ import { P as Product } from './payload-types-BRg8Yary.js';
4
+ export { A as Article, g as ArticleAuthor, h as ArticleCategory, i as ArticleTag, D as Document, I as Image, j as Post, k as PostCategory, T as Tenant, V as Video } from './payload-types-BRg8Yary.js';
5
+ export { C as CollectionType, P as Market, a as Product, b as ProductCollection, c as ProductVariant } from './types-DLjSqL0P.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, a2 as CustomerCommerceNotificationEventName, t as CustomerPasswordResetWebhookData, u as CustomerPasswordResetWebhookEvent, M as MembershipNotificationData, v as MembershipNotificationEventName, O as ORDER_CHANGED_EVENT_TYPE, w as OrderChangedWebhookEvent, P as PaymentIncidentMoney, x as PaymentIncidentNotificationData, y as PaymentIncidentNotificationEventName, z as PaymentIncidentNotificationReason, A as PaymentIncidentNotificationSourceCollection, B as PaymentIncidentNotificationStatus, D as PaymentIncidentProviderObject, a3 as PaymentReconciliationRequiredNotificationData, a4 as PaymentRefundRequiresAttentionNotificationData, E as WebhookChange, F as WebhookCommerceNotificationChange, G as WebhookEvent, W as WebhookHandler, H as WebhookKnownOperation, I as WebhookOperation, J as WebhookOptions, K as WebhookOrderChange, L as WebhookOrderMoved, N as WebhookOrderScope, Q as createCommerceEmailWebhookHandler, R as createCommerceNotificationWebhookHandler, S as createCustomerAuthWebhookHandler, T as createTypedWebhookHandler, U as defineCommerceEmailConfig, V as getCommerceNotificationIdempotencyKey, X as handleWebhook, Y as isCommerceNotificationWebhookEvent, Z as isCustomerPasswordResetWebhookEvent, _ as isOrderChangedWebhookEvent, $ as isValidWebhookEvent, a0 as isWebhookCollection, a1 as isWebhookOperation } from './index-CBaP4q8r.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-BJBK7jBl.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';
package/dist/index.js CHANGED
@@ -2577,7 +2577,18 @@ var ABANDONED_REASONS = ["expired", "customer", "operator"];
2577
2577
  function managedPaymentProviders(providers) {
2578
2578
  return providers;
2579
2579
  }
2580
- var PAYMENT_PROVIDERS = managedPaymentProviders(["toss", "portone"]);
2580
+ var PAYMENT_PROVIDERS = managedPaymentProviders([
2581
+ "toss",
2582
+ "portone",
2583
+ "stripe"
2584
+ ]);
2585
+ var CANCEL_RECOVERY_METHODS = {
2586
+ toss: "cancel()",
2587
+ portone: "cancelPortOne()",
2588
+ stripe: null
2589
+ };
2590
+ var STRIPE_RETURN_URL_RAW_CHARACTERS = /^[^\s\u0000-\u001F\u007F\\]+$/;
2591
+ var STRIPE_RETURN_URL_AUTHORITY = /^[A-Za-z][A-Za-z0-9+.-]*:\/\/[^/?#@]+(?:[/?#]|$)/;
2581
2592
  var PAYMENT_PROVIDER_STATUSES = [
2582
2593
  "requires_payment_method",
2583
2594
  "requires_action",
@@ -2626,11 +2637,8 @@ function fail(resource, path, expected) {
2626
2637
  invalidCanonicalResponse(resource, { path, expected });
2627
2638
  }
2628
2639
  function providerMismatch(resource, expected, actual, operation2) {
2629
- if (operation2 === "cancel") {
2630
- const method = {
2631
- toss: "cancel()",
2632
- portone: "cancelPortOne()"
2633
- }[actual];
2640
+ const method = CANCEL_RECOVERY_METHODS[actual];
2641
+ if (operation2 === "cancel" && method !== null) {
2634
2642
  throw createApiError(
2635
2643
  `Canonical ${resource} response provider mismatch: expected ${expected}, received ${actual}.`,
2636
2644
  502,
@@ -3874,6 +3882,65 @@ function validateRequiredReconciliation(value, allowed, resource, path) {
3874
3882
  }
3875
3883
  function validateNextAction(value, provider, resource, path) {
3876
3884
  const action = record(value, resource, path);
3885
+ if (provider === "stripe") {
3886
+ exact(
3887
+ action,
3888
+ ["type", "clientSecret", "publishableKey", "returnUrl"],
3889
+ [],
3890
+ resource,
3891
+ path
3892
+ );
3893
+ if (action.type !== "stripe_payment_element")
3894
+ fail(resource, `${path}.type`, "stripe_payment_element");
3895
+ const clientSecret = boundedString(
3896
+ action.clientSecret,
3897
+ 255,
3898
+ resource,
3899
+ `${path}.clientSecret`
3900
+ );
3901
+ if (!/^pi_[A-Za-z0-9]+_secret_[A-Za-z0-9]+$/.test(clientSecret)) {
3902
+ fail(
3903
+ resource,
3904
+ `${path}.clientSecret`,
3905
+ "Stripe PaymentIntent client secret"
3906
+ );
3907
+ }
3908
+ const publishableKey = boundedString(
3909
+ action.publishableKey,
3910
+ 255,
3911
+ resource,
3912
+ `${path}.publishableKey`
3913
+ );
3914
+ if (!/^pk_(?:test|live)_[A-Za-z0-9]+$/.test(publishableKey)) {
3915
+ fail(resource, `${path}.publishableKey`, "Stripe publishable key");
3916
+ }
3917
+ const returnUrl = boundedString(
3918
+ action.returnUrl,
3919
+ 2048,
3920
+ resource,
3921
+ `${path}.returnUrl`
3922
+ );
3923
+ if (!STRIPE_RETURN_URL_RAW_CHARACTERS.test(returnUrl) || !STRIPE_RETURN_URL_AUTHORITY.test(returnUrl)) {
3924
+ fail(
3925
+ resource,
3926
+ `${path}.returnUrl`,
3927
+ "HTTPS or loopback URL without embedded credentials"
3928
+ );
3929
+ }
3930
+ try {
3931
+ const parsed = new URL(returnUrl);
3932
+ const loopback = parsed.protocol === "http:" && (parsed.hostname === "localhost" || parsed.hostname === "127.0.0.1");
3933
+ if (!loopback && parsed.protocol !== "https:" || parsed.username || parsed.password)
3934
+ throw new Error("unsafe return URL");
3935
+ } catch {
3936
+ fail(
3937
+ resource,
3938
+ `${path}.returnUrl`,
3939
+ "HTTPS or loopback URL without embedded credentials"
3940
+ );
3941
+ }
3942
+ return;
3943
+ }
3877
3944
  if (provider === "portone") {
3878
3945
  if (action.type === "portone_sdk") {
3879
3946
  const hasCancelable = "cancelable" in action;
@@ -4249,7 +4316,7 @@ function validatePublicPaymentSession(value, expectedProvider, operation2) {
4249
4316
  );
4250
4317
  }
4251
4318
  if (expectedProvider !== void 0 && provider !== expectedProvider) {
4252
- if (operation2 === "cancel" && status !== "canceling" && status !== "canceled") {
4319
+ if (operation2 === "cancel" && CANCEL_RECOVERY_METHODS[provider] !== null && status !== "canceling" && status !== "canceled") {
4253
4320
  fail(
4254
4321
  resource,
4255
4322
  "$.providerStatus",