@01.software/sdk 0.71.0 → 0.73.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.
- package/CHANGELOG.md +118 -0
- package/README.md +71 -1
- package/dist/client.cjs +83 -9
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +6 -6
- package/dist/client.d.ts +6 -6
- package/dist/client.js +83 -9
- package/dist/client.js.map +1 -1
- package/dist/{collection-client-D18xyUq_.d.cts → collection-client-BH4dIZ6c.d.cts} +4 -4
- package/dist/{collection-client-CUGJcTpl.d.ts → collection-client-lLAl3xCZ.d.ts} +4 -4
- package/dist/{const-oGEoxCXZ.d.cts → const-BS2EaIp4.d.cts} +1 -1
- package/dist/{const-Dlu0mXmj.d.ts → const-CCvoknRY.d.ts} +1 -1
- package/dist/{index-HHVtIKXs.d.cts → index-CHdrzJ8-.d.cts} +3 -3
- package/dist/{index-Ccd4NYTL.d.ts → index-DVqNpmsc.d.ts} +3 -3
- package/dist/index.cjs +84 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -11
- package/dist/index.d.ts +14 -11
- package/dist/index.js +84 -10
- package/dist/index.js.map +1 -1
- package/dist/{payload-types-BgOEk6Y9.d.cts → payload-types-PXkmefhZ.d.cts} +267 -185
- package/dist/{payload-types-BgOEk6Y9.d.ts → payload-types-PXkmefhZ.d.ts} +267 -185
- package/dist/query.d.cts +5 -5
- package/dist/query.d.ts +5 -5
- package/dist/realtime.d.cts +2 -2
- package/dist/realtime.d.ts +2 -2
- package/dist/server.cjs +113 -17
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +8 -7
- package/dist/server.d.ts +8 -7
- package/dist/server.js +113 -17
- package/dist/server.js.map +1 -1
- package/dist/{types-CSvp2fJ_.d.ts → types-CQRsG6sA.d.ts} +2 -2
- package/dist/{types-DLHEIsAx.d.cts → types-Chwgg4CQ.d.cts} +63 -7
- package/dist/{types-BzG3NO7R.d.cts → types-CyMz0Kzc.d.cts} +2 -2
- package/dist/{types-nyOvcO0K.d.ts → types-lbzbJSZh.d.ts} +63 -7
- package/dist/ui/form.d.cts +1 -1
- package/dist/ui/form.d.ts +1 -1
- package/dist/ui/video.d.cts +1 -1
- package/dist/ui/video.d.ts +1 -1
- package/dist/webhook.d.cts +5 -5
- package/dist/webhook.d.ts +5 -5
- package/package.json +2 -4
package/dist/index.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
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-
|
|
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-
|
|
5
|
-
export { C as CollectionType, P as Market, a as Product, b as ProductCollection, c as ProductVariant } from './types-
|
|
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-
|
|
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-
|
|
1
|
+
import { dV 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, g as BillingCustodyContextParams, h as BillingCustodyContextResponse, dW as ProductDetail, dX as ProductDetailCatalog, dY as StockSnapshotResponse, d7 as ClientConfig, dZ as RootClientWithEvents } from './types-Chwgg4CQ.cjs';
|
|
2
|
+
export { A as AddItemParams, d8 as ApiQueryOptions, t as BENEFIT_VOUCHER_ERROR_REASONS, u as BENEFIT_VOUCHER_VOID_REASONS, v as BenefitVoucher, w as BenefitVoucherErrorReason, l as BenefitVouchersApi, d_ as BillingCustodyContextWireRequest, d$ as BillingCustodyWireRequest, e0 as BulkImportFulfillmentsParams, e1 as BulkImportFulfillmentsResponse, e2 as CalculateShippingParams, e3 as CalculateShippingResult, d9 as CancelBrowserPaymentSessionParams, e4 as CancelOrderManagedAlreadyCanceledResponse, e5 as CancelOrderManagedCommittedResponse, e6 as CancelOrderParams, e7 as CancelOrderResponse, e8 as CancelReasonCode, e9 as CartDiscountCode, da as CartMergeParams, F as CartMergeResult, G as CartMineResult, H as CartMutationResult, ea as CartWarning, eb as CartWarningCode, J as CheckoutAbandonedReason, K as CheckoutAmounts, ec as CheckoutFunding, P as CheckoutOrderReference, Q as CheckoutPaymentSessionRef, Y as CheckoutShippingAddress, $ as ClearCartParams, dm as Client, db as ClientMetadata, q as ClientState, dm as ClientType, ed as Comment, d4 as CommerceClient, ee as CommerceClientOptions, n as CommunityClient, ef as CommunityClientOptions, eg as CommunityComment, eh as CommunityCommentListSort, ei as CommunityPost, ej as CommunityPostCategory, ek as CommunityPostListSort, el as CommunityPostTag, em as CommunityPublicAuthorSnapshot, en as CommunityPublicMediaAsset, eo as CommunityPublicReference, ep as CompatibilityProductSelectionParamEvent, d5 as ContentClient, dc as ContentClientOptions, a9 as CreateCartParams, aa as CreateCartResult, dd as CreateCheckoutParams, de as CreateCheckoutResult, eq as CreateFulfillmentParams, ad as CreatePaymentSessionParams, ae as CreatePortOnePaymentSessionParams, er as CreateReturnParams, ah as CreateServerPaymentSessionParams, ai as CreateServerPortOnePaymentSessionParams, m as CreditsApi, dE as CustomerAuth, es as CustomerAuthOptions, dG as CustomerAuthResponse, et as CustomerAuthorizationUrlInput, eu as CustomerAuthorizationUrlResult, al as CustomerBenefitVoucher, am as CustomerCreditAccountResponse, an as CustomerCreditBalances, ao as CustomerCreditGrant, i as CustomerGroupApi, ap as CustomerGroupApiOptions, aq as CustomerGroupManualSource, ar as CustomerGroupMember, as as CustomerGroupMemberCommandResponse, at as CustomerGroupMemberSource, au as CustomerGroupMembershipSource, av as CustomerGroupMembershipState, dH as CustomerLoginData, aw as CustomerMembershipView, d6 as CustomerNamespace, ev as CustomerOAuth, ew as CustomerOAuthCallbackResult, ex as CustomerOAuthConfig, ey as CustomerOAuthTokenSet, ez as CustomerOrderListOptions, dF as CustomerProfile, dK as CustomerRefreshResponse, dJ as CustomerRegisterData, dI as CustomerRegisterResponse, ax as CustomerSnapshot, eA as CustomerWithdrawalResult, df as DebugConfig, dg as DeepPartial, eB as DiscountApi, eC as DiscountApiOptions, eD as DiscountErrorReasonCode, az as EventAdmissionAvailabilityParams, aA as EventAdmissionAvailabilityResponse, aB as EventAdmissionAvailabilityType, aC as EventAdmissionPricePresentment, aD as EventGuestCancelParams, aE as EventGuestRegistration, aF as EventGuestRegistrationResponse, aG as EventMyRegistration, aH as EventMyRegistrationsParams, aI as EventMyRegistrationsResponse, aJ as EventRegistrationAnswerInput, aK as EventRegistrationAttendeeInput, aL as EventRegistrationPublic, aM as EventRegistrationRegisterParams, aN as EventRegistrationRegisterResponse, aO as EventsCalendarItem, aP as EventsClient, aQ as EventsClientOptions, aR as EventsDateParam, aS as EventsExternalSource, aT as EventsLocation, aU as EventsOccurrenceLocation, aV as EventsRangeEvent, aW as EventsRangeOccurrence, aX as EventsRangeParams, aY as EventsRangeResponse, aZ as EventsTaxonomyItem, dh as ExtractArrayType, eE as FeaturedImagePointerInput, b8 as GetBenefitVoucherRequest, b9 as GetCustomerCreditAccountRequest, ba as GetCustomerCreditGrantRequest, eF as GetOrderByPaymentIdParams, bd as GrantCustomerCreditRequest, be as GrantCustomerGroupMemberParams, bh as IssueBenefitVoucherRequest, bi as IssueBenefitVoucherResponse, eG as LegacyProductSelectionParamEvent, bj as ListBenefitVouchersRequest, bk as ListBenefitVouchersResponse, bl as ListCustomerGroupMembersParams, bm as ListCustomerGroupMembersResponse, bo as ListMyBenefitVouchersRequest, bp as ListMyBenefitVouchersResponse, eH as ListingGroupsParams, eI as MAX_CART_LINE_ADMISSIONS, eJ as ManagedCancelRefundOutcome, eK as ManagedPaymentNextAction, eL as ManagedPublicPaymentSession, eM as MarketDTO, eN as MediaValue, bq as MembershipStatus, bs as Money, bt as MutateBenefitVoucherResponse, bv as MyCustomerCreditHistoryRequest, bw as MyCustomerCreditHistoryResponse, bx as MyCustomerCreditsRequest, by as MyCustomerCreditsResponse, eO as NormalizedOptionSwatch, eP as NormalizedProductSelection, bz as OpenCheckoutPaymentState, eQ as OrderApi, eR as OrderApiOptions, eS as OrderByPaymentResult, eT as PRODUCT_PLP_FIND_OPTIONS, eU as PRODUCT_UPSERT_READONLY_FIELD_REASON, eV as PRODUCT_UPSERT_UNKNOWN_FIELD_REASON, di as PayloadFindResponse, dj as PayloadMutationResponse, bA as PaymentFailureReason, bB as PaymentNextAction, bC as PaymentProviderStatus, bD as PaymentReconciliationReason, bG as PaymentSessionRole, bH as PortOneHostedPaymentMethod, bJ as PortOnePaymentNextAction, bM as PortOnePublicPaymentSession, eW as PrepareFulfillmentOrderParams, eX as PrepareFulfillmentOrderResponse, eY as ProductApi, eZ as ProductApiOptions, e_ as ProductDetailBrand, dP as ProductDetailCatalogResult, e$ as ProductDetailCatalogVariant, f0 as ProductDetailCategory, f1 as ProductDetailImage, f2 as ProductDetailImageMedia, f3 as ProductDetailMedia, f4 as ProductDetailOption, f5 as ProductDetailOptionValue, dO as ProductDetailParams, f6 as ProductDetailResult, f7 as ProductDetailTag, f8 as ProductDetailUnavailableReason, f9 as ProductDetailVariant, fa as ProductDetailVariantOptionValue, fb as ProductDetailVideo, fc as ProductDisplayMediaSource, fd as ProductFallbackLocaleOption, fe as ProductHrefGroup, ff as ProductHrefOptions, fg as ProductHrefProduct, fh as ProductListingCard, fi as ProductListingCardOptions, fj as ProductListingCardPriceRange, fk as ProductListingCardRepresentativeVariant, fl as ProductListingGroup, fm as ProductListingGroupCatalogSummary, fn as ProductListingGroupCatalogVariant, fo as ProductListingGroupProjection, fp as ProductListingGroupSummary, fq as ProductListingGroupVariant, dS as ProductListingGroupsCatalogItem, fr as ProductListingGroupsCatalogProduct, fs as ProductListingGroupsCatalogResponse, dU as ProductListingGroupsItem, ft as ProductListingGroupsProduct, fu as ProductListingGroupsResponse, dN as ProductListingPageBaseParams, dQ as ProductListingPageCatalogParams, fv as ProductListingPageFilters, dT as ProductListingPageFullParams, dM as ProductListingPageParams, dR as ProductListingPageResult, fw as ProductListingPageSort, fx as ProductListingProductShape, fy as ProductListingSwatch, fz as ProductLocaleOption, fA as ProductLocaleReadParams, fB as ProductLocalizedText, fC as ProductLocalizedValue, fD as ProductMediaResolutionSource, fE as ProductMoneyRange, fF as ProductOptionMatrix, fG as ProductOptionMatrixOption, fH as ProductOptionMatrixValue, fI as ProductOptionMatrixVariant, fJ as ProductOptionShape, fK as ProductOptionValueShape, fL as ProductOptionValueSwatch, fM as ProductOptionValueSwatchInput, fN as ProductPriceRange, fO as ProductSelectionAvailableSwatch, fP as ProductSelectionAvailableValue, fQ as ProductSelectionByOptionValue, fR as ProductSelectionCodecError, fS as ProductSelectionCodecOptions, fT as ProductSelectionInput, fU as ProductSelectionMediaPointer, fV as ProductSelectionMediaSource, fW as ProductSelectionOptionValue, fX as ProductSelectionResolution, fY as ProductSelectionResolutionContext, fZ as ProductSelectionUrlEmit, f_ as ProductSelectionVariant, f$ as ProductUpsertFieldValidationErrorBody, g0 as ProductUpsertFieldValidationErrorReason, bQ as ProductUpsertInput, bR as ProductUpsertParams, bS as ProductUpsertResponse, bT as ProductUpsertVariantInput, g1 as ProductVariantShape, bU as PublicAttribute, bV as PublicCaptureEvidence, bW as PublicCart, bX as PublicCartItem, bY as PublicCartItemAdmission, bZ as PublicCartMarket, b_ as PublicCartReference, b$ as PublicCheckout, g2 as PublicCheckoutBase, c0 as PublicCheckoutItem, c1 as PublicMediaAsset, c2 as PublicMediaSize, c3 as PublicOrder, c4 as PublicOrderAmounts, c5 as PublicOrderItem, c6 as PublicOrderReference, c7 as PublicPaymentSession, dD as PublicReadQueryOptions, ca as ReconciliationRequired, cc as RedeemBenefitVoucherRequest, cd as RemoveItemParams, g3 as RequestOptions, g4 as ResolveCancelRefundFailedResponse, g5 as ResolveCancelRefundOutcome, g6 as ResolveCancelRefundParams, g7 as ResolveCancelRefundResponse, g8 as ResolveCancelRefundSucceededResponse, g9 as ResolveProductDisplayMediaInput, ga as ResolveProductDisplayMediaResult, gb as ResolveProductSelectionMediaInput, gc as ResolveProductSelectionMediaResult, gd as ResolvedCatalogPrice, dk as RetrieveBrowserPaymentSessionParams, cg as RetrieveCartParams, ch as RetrieveCheckoutParams, cj as RetrieveServerCheckoutParams, dl as RetryConfig, ge as ReturnCancellationReasonCode, gf as ReturnItem, gg as ReturnReason, gh as ReturnWithRefundItem, gi as ReturnWithRefundParams, cm as RevokeCustomerCreditRequest, cn as RevokeCustomerCreditResponse, co as RevokeCustomerGroupMemberParams, dm as RootClient, dn as RootCollectionClient, dp as RootReadOnlyQueryBuilder, gj as ShippingApi, gk as ShippingApiOptions, cv as ShippingLine, dq as Sort, cw as SpentCheckoutPaymentState, gl as StockCheckParams, gm as StockCheckResponse, gn as StockCheckResult, go as StockSnapshotItem, gp as StockSnapshotParams, dr as StorefrontContentListOptions, ds as StorefrontContentReference, dt as StorefrontGalleryItem, du as StorefrontGalleryItemsListOptions, dv as StorefrontGalleryItemsSort, dw as StorefrontLink, dx as StorefrontLinksListOptions, dy as StorefrontLinksSort, cN as UpdateCartAttributesParams, cO as UpdateDiscountCodesParams, gq as UpdateFulfillmentParams, cP as UpdateItemParams, gr as UpdateOrderParams, dL as UpdateProfileData, gs as UpdateReturnParams, gt as ValidateDiscountParams, gu as ValidateDiscountResult, cQ as VariantInput, gv as VideoPlaybackResponse, cU as VoidBenefitVoucherRequest, dz as Where, gw as WithIdempotencyKey, gx as buildProductHref, gy as buildProductListingCard, gz as buildProductListingGroupProjection, gA as buildProductListingGroupsByOption, gB as buildProductOptionMatrix, gC as buildProductOptionMatrixFromDetail, gD as createProductSelectionCodec, gE as getAvailableOptionValues, gF as getProductSelectionImages, gG as getSelectedValueByOptionId, gH as getVariantAvailableForSale, gI as getVariantAvailableStock, cW as invalidBenefitVoucherResponse, gJ as isProductUpsertFieldValidationErrorBody, gK as normalizeProductSelection, gL as normalizeProductSelectionFromMatrix, gM as normalizeSelectedValueIds, cX as parseBenefitVoucher, cY as parseBenefitVoucherList, cZ as parseCustomerCreditAccount, c_ as parseCustomerCreditGrant, c$ as parseMyCustomerCreditHistory, d0 as parseMyCustomerCredits, gN as parseProductSelection, d1 as parseRevokeCustomerCredit, gO as projectProductToListingShape, gP as resolveFeaturedImagePointer, gQ as resolveProductDisplayMedia, gR as resolveProductSelection, gS as resolveProductSelectionFromMatrix, gT as resolveProductSelectionMedia, gU as resolveVariantForSelection, gV as selectNext, gW as selectedSwatchMediaItemId, gX as stringifyProductSelection, gY as toShopifyPriceRangeV2 } from './types-Chwgg4CQ.cjs';
|
|
3
|
+
import { P as Product } from './payload-types-PXkmefhZ.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-PXkmefhZ.cjs';
|
|
5
|
+
export { C as CollectionType, P as Market, a as Product, b as ProductCollection, c as ProductVariant } from './types-CyMz0Kzc.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-CHdrzJ8-.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-BS2EaIp4.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';
|
|
@@ -58,11 +58,14 @@ declare class MembershipApi extends BaseApi {
|
|
|
58
58
|
cancel(params: CancelMembershipParams): Promise<CancelMembershipResponse>;
|
|
59
59
|
/**
|
|
60
60
|
* Store/read only app-encrypted billing ciphertext for the Membership's
|
|
61
|
-
* method.
|
|
62
|
-
*
|
|
63
|
-
*
|
|
61
|
+
* method. Obtain generation from billingCustodyContext before a new upload
|
|
62
|
+
* or read, and retain that same generation for every mutation based on the
|
|
63
|
+
* read. Never rediscover and retry a mutation after a generation mismatch.
|
|
64
64
|
*/
|
|
65
65
|
billingCustody(params: BillingCustodyParams): Promise<BillingCustodyResponse>;
|
|
66
|
+
/** Requires the same server key, Membership and delegated HMAC as custody. */
|
|
67
|
+
billingCustodyContext(params: BillingCustodyContextParams): Promise<BillingCustodyContextResponse>;
|
|
68
|
+
private requestBillingCustody;
|
|
66
69
|
}
|
|
67
70
|
|
|
68
71
|
type ProductDetailStockMergeStatus = 'complete' | 'partial';
|
|
@@ -93,4 +96,4 @@ declare function resolveRelation<T>(ref: unknown): T | null;
|
|
|
93
96
|
|
|
94
97
|
declare function createClient(options: ClientConfig): RootClientWithEvents;
|
|
95
98
|
|
|
96
|
-
export { BaseApi, BillingCustodyParams, BillingCustodyResponse, CancelMembershipParams, CancelMembershipResponse, ClientConfig, EndSubscribeIntentParams, EndSubscribeIntentResponse, MembershipApi, type MembershipApiOptions, type MergedProductDetailResult, ProductDetail, ProductDetailCatalog, type ProductDetailStockMergeStatus, RootClientWithEvents, ServerApiOptions, StockSnapshotResponse, SubscribeMembershipParams, SubscribeMembershipResponse, assertCommerceIdempotencyKey, createClient, createCommerceIdempotencyKey, formatOrderName, generateOrderNumber, isCommerceIdempotencyKey, mergeProductDetailWithStock, resolveRelation };
|
|
99
|
+
export { BaseApi, BillingCustodyContextParams, BillingCustodyContextResponse, BillingCustodyParams, BillingCustodyResponse, CancelMembershipParams, CancelMembershipResponse, ClientConfig, EndSubscribeIntentParams, EndSubscribeIntentResponse, MembershipApi, type MembershipApiOptions, type MergedProductDetailResult, ProductDetail, ProductDetailCatalog, type ProductDetailStockMergeStatus, RootClientWithEvents, ServerApiOptions, StockSnapshotResponse, SubscribeMembershipParams, SubscribeMembershipResponse, assertCommerceIdempotencyKey, createClient, createCommerceIdempotencyKey, formatOrderName, generateOrderNumber, isCommerceIdempotencyKey, mergeProductDetailWithStock, resolveRelation };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
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-
|
|
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-
|
|
5
|
-
export { C as CollectionType, P as Market, a as Product, b as ProductCollection, c as ProductVariant } from './types-
|
|
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-
|
|
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-
|
|
1
|
+
import { dV 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, g as BillingCustodyContextParams, h as BillingCustodyContextResponse, dW as ProductDetail, dX as ProductDetailCatalog, dY as StockSnapshotResponse, d7 as ClientConfig, dZ as RootClientWithEvents } from './types-lbzbJSZh.js';
|
|
2
|
+
export { A as AddItemParams, d8 as ApiQueryOptions, t as BENEFIT_VOUCHER_ERROR_REASONS, u as BENEFIT_VOUCHER_VOID_REASONS, v as BenefitVoucher, w as BenefitVoucherErrorReason, l as BenefitVouchersApi, d_ as BillingCustodyContextWireRequest, d$ as BillingCustodyWireRequest, e0 as BulkImportFulfillmentsParams, e1 as BulkImportFulfillmentsResponse, e2 as CalculateShippingParams, e3 as CalculateShippingResult, d9 as CancelBrowserPaymentSessionParams, e4 as CancelOrderManagedAlreadyCanceledResponse, e5 as CancelOrderManagedCommittedResponse, e6 as CancelOrderParams, e7 as CancelOrderResponse, e8 as CancelReasonCode, e9 as CartDiscountCode, da as CartMergeParams, F as CartMergeResult, G as CartMineResult, H as CartMutationResult, ea as CartWarning, eb as CartWarningCode, J as CheckoutAbandonedReason, K as CheckoutAmounts, ec as CheckoutFunding, P as CheckoutOrderReference, Q as CheckoutPaymentSessionRef, Y as CheckoutShippingAddress, $ as ClearCartParams, dm as Client, db as ClientMetadata, q as ClientState, dm as ClientType, ed as Comment, d4 as CommerceClient, ee as CommerceClientOptions, n as CommunityClient, ef as CommunityClientOptions, eg as CommunityComment, eh as CommunityCommentListSort, ei as CommunityPost, ej as CommunityPostCategory, ek as CommunityPostListSort, el as CommunityPostTag, em as CommunityPublicAuthorSnapshot, en as CommunityPublicMediaAsset, eo as CommunityPublicReference, ep as CompatibilityProductSelectionParamEvent, d5 as ContentClient, dc as ContentClientOptions, a9 as CreateCartParams, aa as CreateCartResult, dd as CreateCheckoutParams, de as CreateCheckoutResult, eq as CreateFulfillmentParams, ad as CreatePaymentSessionParams, ae as CreatePortOnePaymentSessionParams, er as CreateReturnParams, ah as CreateServerPaymentSessionParams, ai as CreateServerPortOnePaymentSessionParams, m as CreditsApi, dE as CustomerAuth, es as CustomerAuthOptions, dG as CustomerAuthResponse, et as CustomerAuthorizationUrlInput, eu as CustomerAuthorizationUrlResult, al as CustomerBenefitVoucher, am as CustomerCreditAccountResponse, an as CustomerCreditBalances, ao as CustomerCreditGrant, i as CustomerGroupApi, ap as CustomerGroupApiOptions, aq as CustomerGroupManualSource, ar as CustomerGroupMember, as as CustomerGroupMemberCommandResponse, at as CustomerGroupMemberSource, au as CustomerGroupMembershipSource, av as CustomerGroupMembershipState, dH as CustomerLoginData, aw as CustomerMembershipView, d6 as CustomerNamespace, ev as CustomerOAuth, ew as CustomerOAuthCallbackResult, ex as CustomerOAuthConfig, ey as CustomerOAuthTokenSet, ez as CustomerOrderListOptions, dF as CustomerProfile, dK as CustomerRefreshResponse, dJ as CustomerRegisterData, dI as CustomerRegisterResponse, ax as CustomerSnapshot, eA as CustomerWithdrawalResult, df as DebugConfig, dg as DeepPartial, eB as DiscountApi, eC as DiscountApiOptions, eD as DiscountErrorReasonCode, az as EventAdmissionAvailabilityParams, aA as EventAdmissionAvailabilityResponse, aB as EventAdmissionAvailabilityType, aC as EventAdmissionPricePresentment, aD as EventGuestCancelParams, aE as EventGuestRegistration, aF as EventGuestRegistrationResponse, aG as EventMyRegistration, aH as EventMyRegistrationsParams, aI as EventMyRegistrationsResponse, aJ as EventRegistrationAnswerInput, aK as EventRegistrationAttendeeInput, aL as EventRegistrationPublic, aM as EventRegistrationRegisterParams, aN as EventRegistrationRegisterResponse, aO as EventsCalendarItem, aP as EventsClient, aQ as EventsClientOptions, aR as EventsDateParam, aS as EventsExternalSource, aT as EventsLocation, aU as EventsOccurrenceLocation, aV as EventsRangeEvent, aW as EventsRangeOccurrence, aX as EventsRangeParams, aY as EventsRangeResponse, aZ as EventsTaxonomyItem, dh as ExtractArrayType, eE as FeaturedImagePointerInput, b8 as GetBenefitVoucherRequest, b9 as GetCustomerCreditAccountRequest, ba as GetCustomerCreditGrantRequest, eF as GetOrderByPaymentIdParams, bd as GrantCustomerCreditRequest, be as GrantCustomerGroupMemberParams, bh as IssueBenefitVoucherRequest, bi as IssueBenefitVoucherResponse, eG as LegacyProductSelectionParamEvent, bj as ListBenefitVouchersRequest, bk as ListBenefitVouchersResponse, bl as ListCustomerGroupMembersParams, bm as ListCustomerGroupMembersResponse, bo as ListMyBenefitVouchersRequest, bp as ListMyBenefitVouchersResponse, eH as ListingGroupsParams, eI as MAX_CART_LINE_ADMISSIONS, eJ as ManagedCancelRefundOutcome, eK as ManagedPaymentNextAction, eL as ManagedPublicPaymentSession, eM as MarketDTO, eN as MediaValue, bq as MembershipStatus, bs as Money, bt as MutateBenefitVoucherResponse, bv as MyCustomerCreditHistoryRequest, bw as MyCustomerCreditHistoryResponse, bx as MyCustomerCreditsRequest, by as MyCustomerCreditsResponse, eO as NormalizedOptionSwatch, eP as NormalizedProductSelection, bz as OpenCheckoutPaymentState, eQ as OrderApi, eR as OrderApiOptions, eS as OrderByPaymentResult, eT as PRODUCT_PLP_FIND_OPTIONS, eU as PRODUCT_UPSERT_READONLY_FIELD_REASON, eV as PRODUCT_UPSERT_UNKNOWN_FIELD_REASON, di as PayloadFindResponse, dj as PayloadMutationResponse, bA as PaymentFailureReason, bB as PaymentNextAction, bC as PaymentProviderStatus, bD as PaymentReconciliationReason, bG as PaymentSessionRole, bH as PortOneHostedPaymentMethod, bJ as PortOnePaymentNextAction, bM as PortOnePublicPaymentSession, eW as PrepareFulfillmentOrderParams, eX as PrepareFulfillmentOrderResponse, eY as ProductApi, eZ as ProductApiOptions, e_ as ProductDetailBrand, dP as ProductDetailCatalogResult, e$ as ProductDetailCatalogVariant, f0 as ProductDetailCategory, f1 as ProductDetailImage, f2 as ProductDetailImageMedia, f3 as ProductDetailMedia, f4 as ProductDetailOption, f5 as ProductDetailOptionValue, dO as ProductDetailParams, f6 as ProductDetailResult, f7 as ProductDetailTag, f8 as ProductDetailUnavailableReason, f9 as ProductDetailVariant, fa as ProductDetailVariantOptionValue, fb as ProductDetailVideo, fc as ProductDisplayMediaSource, fd as ProductFallbackLocaleOption, fe as ProductHrefGroup, ff as ProductHrefOptions, fg as ProductHrefProduct, fh as ProductListingCard, fi as ProductListingCardOptions, fj as ProductListingCardPriceRange, fk as ProductListingCardRepresentativeVariant, fl as ProductListingGroup, fm as ProductListingGroupCatalogSummary, fn as ProductListingGroupCatalogVariant, fo as ProductListingGroupProjection, fp as ProductListingGroupSummary, fq as ProductListingGroupVariant, dS as ProductListingGroupsCatalogItem, fr as ProductListingGroupsCatalogProduct, fs as ProductListingGroupsCatalogResponse, dU as ProductListingGroupsItem, ft as ProductListingGroupsProduct, fu as ProductListingGroupsResponse, dN as ProductListingPageBaseParams, dQ as ProductListingPageCatalogParams, fv as ProductListingPageFilters, dT as ProductListingPageFullParams, dM as ProductListingPageParams, dR as ProductListingPageResult, fw as ProductListingPageSort, fx as ProductListingProductShape, fy as ProductListingSwatch, fz as ProductLocaleOption, fA as ProductLocaleReadParams, fB as ProductLocalizedText, fC as ProductLocalizedValue, fD as ProductMediaResolutionSource, fE as ProductMoneyRange, fF as ProductOptionMatrix, fG as ProductOptionMatrixOption, fH as ProductOptionMatrixValue, fI as ProductOptionMatrixVariant, fJ as ProductOptionShape, fK as ProductOptionValueShape, fL as ProductOptionValueSwatch, fM as ProductOptionValueSwatchInput, fN as ProductPriceRange, fO as ProductSelectionAvailableSwatch, fP as ProductSelectionAvailableValue, fQ as ProductSelectionByOptionValue, fR as ProductSelectionCodecError, fS as ProductSelectionCodecOptions, fT as ProductSelectionInput, fU as ProductSelectionMediaPointer, fV as ProductSelectionMediaSource, fW as ProductSelectionOptionValue, fX as ProductSelectionResolution, fY as ProductSelectionResolutionContext, fZ as ProductSelectionUrlEmit, f_ as ProductSelectionVariant, f$ as ProductUpsertFieldValidationErrorBody, g0 as ProductUpsertFieldValidationErrorReason, bQ as ProductUpsertInput, bR as ProductUpsertParams, bS as ProductUpsertResponse, bT as ProductUpsertVariantInput, g1 as ProductVariantShape, bU as PublicAttribute, bV as PublicCaptureEvidence, bW as PublicCart, bX as PublicCartItem, bY as PublicCartItemAdmission, bZ as PublicCartMarket, b_ as PublicCartReference, b$ as PublicCheckout, g2 as PublicCheckoutBase, c0 as PublicCheckoutItem, c1 as PublicMediaAsset, c2 as PublicMediaSize, c3 as PublicOrder, c4 as PublicOrderAmounts, c5 as PublicOrderItem, c6 as PublicOrderReference, c7 as PublicPaymentSession, dD as PublicReadQueryOptions, ca as ReconciliationRequired, cc as RedeemBenefitVoucherRequest, cd as RemoveItemParams, g3 as RequestOptions, g4 as ResolveCancelRefundFailedResponse, g5 as ResolveCancelRefundOutcome, g6 as ResolveCancelRefundParams, g7 as ResolveCancelRefundResponse, g8 as ResolveCancelRefundSucceededResponse, g9 as ResolveProductDisplayMediaInput, ga as ResolveProductDisplayMediaResult, gb as ResolveProductSelectionMediaInput, gc as ResolveProductSelectionMediaResult, gd as ResolvedCatalogPrice, dk as RetrieveBrowserPaymentSessionParams, cg as RetrieveCartParams, ch as RetrieveCheckoutParams, cj as RetrieveServerCheckoutParams, dl as RetryConfig, ge as ReturnCancellationReasonCode, gf as ReturnItem, gg as ReturnReason, gh as ReturnWithRefundItem, gi as ReturnWithRefundParams, cm as RevokeCustomerCreditRequest, cn as RevokeCustomerCreditResponse, co as RevokeCustomerGroupMemberParams, dm as RootClient, dn as RootCollectionClient, dp as RootReadOnlyQueryBuilder, gj as ShippingApi, gk as ShippingApiOptions, cv as ShippingLine, dq as Sort, cw as SpentCheckoutPaymentState, gl as StockCheckParams, gm as StockCheckResponse, gn as StockCheckResult, go as StockSnapshotItem, gp as StockSnapshotParams, dr as StorefrontContentListOptions, ds as StorefrontContentReference, dt as StorefrontGalleryItem, du as StorefrontGalleryItemsListOptions, dv as StorefrontGalleryItemsSort, dw as StorefrontLink, dx as StorefrontLinksListOptions, dy as StorefrontLinksSort, cN as UpdateCartAttributesParams, cO as UpdateDiscountCodesParams, gq as UpdateFulfillmentParams, cP as UpdateItemParams, gr as UpdateOrderParams, dL as UpdateProfileData, gs as UpdateReturnParams, gt as ValidateDiscountParams, gu as ValidateDiscountResult, cQ as VariantInput, gv as VideoPlaybackResponse, cU as VoidBenefitVoucherRequest, dz as Where, gw as WithIdempotencyKey, gx as buildProductHref, gy as buildProductListingCard, gz as buildProductListingGroupProjection, gA as buildProductListingGroupsByOption, gB as buildProductOptionMatrix, gC as buildProductOptionMatrixFromDetail, gD as createProductSelectionCodec, gE as getAvailableOptionValues, gF as getProductSelectionImages, gG as getSelectedValueByOptionId, gH as getVariantAvailableForSale, gI as getVariantAvailableStock, cW as invalidBenefitVoucherResponse, gJ as isProductUpsertFieldValidationErrorBody, gK as normalizeProductSelection, gL as normalizeProductSelectionFromMatrix, gM as normalizeSelectedValueIds, cX as parseBenefitVoucher, cY as parseBenefitVoucherList, cZ as parseCustomerCreditAccount, c_ as parseCustomerCreditGrant, c$ as parseMyCustomerCreditHistory, d0 as parseMyCustomerCredits, gN as parseProductSelection, d1 as parseRevokeCustomerCredit, gO as projectProductToListingShape, gP as resolveFeaturedImagePointer, gQ as resolveProductDisplayMedia, gR as resolveProductSelection, gS as resolveProductSelectionFromMatrix, gT as resolveProductSelectionMedia, gU as resolveVariantForSelection, gV as selectNext, gW as selectedSwatchMediaItemId, gX as stringifyProductSelection, gY as toShopifyPriceRangeV2 } from './types-lbzbJSZh.js';
|
|
3
|
+
import { P as Product } from './payload-types-PXkmefhZ.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-PXkmefhZ.js';
|
|
5
|
+
export { C as CollectionType, P as Market, a as Product, b as ProductCollection, c as ProductVariant } from './types-CQRsG6sA.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-DVqNpmsc.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-CCvoknRY.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';
|
|
@@ -58,11 +58,14 @@ declare class MembershipApi extends BaseApi {
|
|
|
58
58
|
cancel(params: CancelMembershipParams): Promise<CancelMembershipResponse>;
|
|
59
59
|
/**
|
|
60
60
|
* Store/read only app-encrypted billing ciphertext for the Membership's
|
|
61
|
-
* method.
|
|
62
|
-
*
|
|
63
|
-
*
|
|
61
|
+
* method. Obtain generation from billingCustodyContext before a new upload
|
|
62
|
+
* or read, and retain that same generation for every mutation based on the
|
|
63
|
+
* read. Never rediscover and retry a mutation after a generation mismatch.
|
|
64
64
|
*/
|
|
65
65
|
billingCustody(params: BillingCustodyParams): Promise<BillingCustodyResponse>;
|
|
66
|
+
/** Requires the same server key, Membership and delegated HMAC as custody. */
|
|
67
|
+
billingCustodyContext(params: BillingCustodyContextParams): Promise<BillingCustodyContextResponse>;
|
|
68
|
+
private requestBillingCustody;
|
|
66
69
|
}
|
|
67
70
|
|
|
68
71
|
type ProductDetailStockMergeStatus = 'complete' | 'partial';
|
|
@@ -93,4 +96,4 @@ declare function resolveRelation<T>(ref: unknown): T | null;
|
|
|
93
96
|
|
|
94
97
|
declare function createClient(options: ClientConfig): RootClientWithEvents;
|
|
95
98
|
|
|
96
|
-
export { BaseApi, BillingCustodyParams, BillingCustodyResponse, CancelMembershipParams, CancelMembershipResponse, ClientConfig, EndSubscribeIntentParams, EndSubscribeIntentResponse, MembershipApi, type MembershipApiOptions, type MergedProductDetailResult, ProductDetail, ProductDetailCatalog, type ProductDetailStockMergeStatus, RootClientWithEvents, ServerApiOptions, StockSnapshotResponse, SubscribeMembershipParams, SubscribeMembershipResponse, assertCommerceIdempotencyKey, createClient, createCommerceIdempotencyKey, formatOrderName, generateOrderNumber, isCommerceIdempotencyKey, mergeProductDetailWithStock, resolveRelation };
|
|
99
|
+
export { BaseApi, BillingCustodyContextParams, BillingCustodyContextResponse, BillingCustodyParams, BillingCustodyResponse, CancelMembershipParams, CancelMembershipResponse, ClientConfig, EndSubscribeIntentParams, EndSubscribeIntentResponse, MembershipApi, type MembershipApiOptions, type MergedProductDetailResult, ProductDetail, ProductDetailCatalog, type ProductDetailStockMergeStatus, RootClientWithEvents, ServerApiOptions, StockSnapshotResponse, SubscribeMembershipParams, SubscribeMembershipResponse, assertCommerceIdempotencyKey, createClient, createCommerceIdempotencyKey, formatOrderName, generateOrderNumber, isCommerceIdempotencyKey, mergeProductDetailWithStock, resolveRelation };
|
package/dist/index.js
CHANGED
|
@@ -853,7 +853,7 @@ async function httpFetch(url, options) {
|
|
|
853
853
|
);
|
|
854
854
|
const usageError = attachRequestId(
|
|
855
855
|
createUsageLimitError(
|
|
856
|
-
`Monthly API usage limit exceeded (${current.toLocaleString()}/${limit.toLocaleString()})`,
|
|
856
|
+
`Monthly API usage limit exceeded (${current.toLocaleString("en-US")}/${limit.toLocaleString("en-US")})`,
|
|
857
857
|
{ limit, current, remaining },
|
|
858
858
|
{
|
|
859
859
|
url,
|
|
@@ -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([
|
|
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
|
-
|
|
2630
|
-
|
|
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",
|
|
@@ -5558,8 +5625,13 @@ function getRelationID(value) {
|
|
|
5558
5625
|
}
|
|
5559
5626
|
return void 0;
|
|
5560
5627
|
}
|
|
5628
|
+
function compareOrdinal(left, right) {
|
|
5629
|
+
if (left < right) return -1;
|
|
5630
|
+
if (left > right) return 1;
|
|
5631
|
+
return 0;
|
|
5632
|
+
}
|
|
5561
5633
|
function compareOrder(left, right) {
|
|
5562
|
-
return (left ?? ""
|
|
5634
|
+
return compareOrdinal(left ?? "", right ?? "");
|
|
5563
5635
|
}
|
|
5564
5636
|
function isProductOptionValueDoc(value) {
|
|
5565
5637
|
return typeof value === "object" && value !== null && "id" in value && ("value" in value || "slug" in value);
|
|
@@ -6771,7 +6843,7 @@ function compareVariantOrder(a, b) {
|
|
|
6771
6843
|
}
|
|
6772
6844
|
const aId = String(getRelationID(a.id) ?? "");
|
|
6773
6845
|
const bId = String(getRelationID(b.id) ?? "");
|
|
6774
|
-
return aId
|
|
6846
|
+
return compareOrdinal(aId, bId);
|
|
6775
6847
|
}
|
|
6776
6848
|
function getVariantAvailableForSale(variant) {
|
|
6777
6849
|
if (variant.isActive === false) return false;
|
|
@@ -7447,6 +7519,8 @@ function buildRangeEndpoint(params) {
|
|
|
7447
7519
|
function buildAdmissionAvailabilityEndpoint(params) {
|
|
7448
7520
|
const urlParams = new URLSearchParams();
|
|
7449
7521
|
urlParams.set("occurrence", params.occurrence);
|
|
7522
|
+
const normalizedMarket2 = params.market?.trim();
|
|
7523
|
+
if (normalizedMarket2) urlParams.set("market", normalizedMarket2);
|
|
7450
7524
|
return resolveOperationPath(
|
|
7451
7525
|
EVENTS_ENDPOINT_OPERATIONS.occurrences.admissionAvailability,
|
|
7452
7526
|
{ query: urlParams }
|