@01.software/sdk 0.51.0 → 0.65.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +313 -0
- package/README.md +228 -102
- package/dist/client.cjs +556 -60
- 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 +556 -60
- package/dist/client.js.map +1 -1
- package/dist/{collection-client-CWAeuzV4.d.cts → collection-client-B7rsTtVj.d.cts} +6 -6
- package/dist/{collection-client-hYvVfHIm.d.ts → collection-client-C2sMvfme.d.ts} +6 -6
- package/dist/{const-JD8obaKg.d.ts → const-CRxPTDGt.d.ts} +2 -2
- package/dist/{const-D8LixhAJ.d.cts → const-D6ZRQLxI.d.cts} +2 -2
- package/dist/{index-B0Hjh3Ey.d.ts → index-1auUEYrl.d.ts} +24 -7
- package/dist/{index-Bu0kCc6o.d.cts → index-Bbpf5t-l.d.cts} +24 -7
- package/dist/index.cjs +573 -260
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +19 -12
- package/dist/index.d.ts +19 -12
- package/dist/index.js +573 -260
- package/dist/index.js.map +1 -1
- package/dist/{payload-types-BOsckg8B.d.cts → payload-types-BnIET0xU.d.cts} +567 -438
- package/dist/{payload-types-BOsckg8B.d.ts → payload-types-BnIET0xU.d.ts} +567 -438
- package/dist/query.cjs +62 -3
- package/dist/query.cjs.map +1 -1
- package/dist/query.d.cts +5 -5
- package/dist/query.d.ts +5 -5
- package/dist/query.js +62 -3
- package/dist/query.js.map +1 -1
- package/dist/realtime.d.cts +2 -2
- package/dist/realtime.d.ts +2 -2
- package/dist/server.cjs +557 -20
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +14 -8
- package/dist/server.d.ts +14 -8
- package/dist/server.js +557 -20
- package/dist/server.js.map +1 -1
- package/dist/{types-5ZlcAFuU.d.ts → types-D1y4TgQm.d.ts} +2 -2
- package/dist/{types-Bj8j7VHU.d.ts → types-DnRC3nLG.d.ts} +464 -16
- package/dist/{types-B14sEt1z.d.cts → types-Dp1oYpD3.d.cts} +2 -2
- package/dist/{types-CM5qiR2k.d.cts → types-Dzn0LD2N.d.cts} +464 -16
- package/dist/ui/form.d.cts +1 -1
- package/dist/ui/form.d.ts +1 -1
- package/dist/ui/video.cjs +4 -2
- package/dist/ui/video.cjs.map +1 -1
- package/dist/ui/video.d.cts +4 -2
- package/dist/ui/video.d.ts +4 -2
- package/dist/ui/video.js +4 -2
- package/dist/ui/video.js.map +1 -1
- package/dist/webhook.cjs +13 -2
- package/dist/webhook.cjs.map +1 -1
- package/dist/webhook.d.cts +5 -5
- package/dist/webhook.d.ts +5 -5
- package/dist/webhook.js +13 -2
- package/dist/webhook.js.map +1 -1
- package/package.json +9 -28
- package/dist/analytics/react.cjs +0 -344
- package/dist/analytics/react.cjs.map +0 -1
- package/dist/analytics/react.d.cts +0 -24
- package/dist/analytics/react.d.ts +0 -24
- package/dist/analytics/react.js +0 -319
- package/dist/analytics/react.js.map +0 -1
- package/dist/analytics.cjs +0 -238
- package/dist/analytics.cjs.map +0 -1
- package/dist/analytics.d.cts +0 -39
- package/dist/analytics.d.ts +0 -39
- package/dist/analytics.js +0 -215
- package/dist/analytics.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { A as AddItemParams, i as ApiQueryOptions, cr as BulkImportFulfillmentsParams, cs as BulkImportFulfillmentsResponse, ct as CalculateShippingParams, cu as CalculateShippingResult, j as CancelBrowserPaymentSessionParams, cv as CancelOrderParams, cw as CancelOrderResponse, cx as CancelReasonCode, cy as CartDiscountCode, k as CartMergeParams, l as CartMergeResult, m as CartMineResult, n as CartMutationResult, cz as CartWarning, cA as CartWarningCode, o as CheckoutAbandonedReason, p as CheckoutAmounts, q as CheckoutOrderReference, r as CheckoutPaymentSessionRef, s as CheckoutShippingAddress, t as ClearCartParams, al as Client, u as ClientMetadata, g as ClientState, al as ClientType, cB as Comment, C as CommerceClient, cC as CommerceClientOptions, a as CommunityClient, cD as CommunityClientOptions, cE as CommunityComment, cF as CommunityCommentListSort, cG as CommunityPost, cH as CommunityPostCategory, cI as CommunityPostListSort, cJ as CommunityPostTag, cK as CommunityPublicAuthorSnapshot, cL as CommunityPublicMediaAsset, cM as CommunityPublicReference, cN as CompatibilityProductSelectionParamEvent, b as ContentClient, v as ContentClientOptions, w as CreateCartParams, x as CreateCartResult, y as CreateCheckoutParams, z as CreateCheckoutResult, cO as CreateFulfillmentParams, B as CreatePaymentSessionParams, D as CreatePortOnePaymentSessionParams, cP as CreateReturnParams, c5 as CustomerAuth, cQ as CustomerAuthOptions, c7 as CustomerAuthResponse, cR as CustomerAuthorizationUrlInput, cS as CustomerAuthorizationUrlResult, c8 as CustomerLoginData, d as CustomerMembershipView, c as CustomerNamespace, cT as CustomerOAuth, cU as CustomerOAuthCallbackResult, cV as CustomerOAuthConfig, cW as CustomerOAuthTokenSet, cX as CustomerOrderListOptions, c6 as CustomerProfile, cb as CustomerRefreshResponse, ca as CustomerRegisterData, c9 as CustomerRegisterResponse, F as CustomerSnapshot, G as DebugConfig, H as DeepPartial, cY as DiscountApi, cZ as DiscountApiOptions, c_ as DiscountErrorReasonCode, b9 as EventAdmissionAvailabilityParams, ba as EventAdmissionAvailabilityResponse, bb as EventAdmissionAvailabilityType, bc as EventAdmissionPricePresentment, bd as EventGuestCancelParams, be as EventGuestRegistration, bf as EventGuestRegistrationResponse, bg as EventRegistrationAnswerInput, bh as EventRegistrationAttendeeInput, bi as EventRegistrationPublic, bj as EventRegistrationRegisterParams, bk as EventRegistrationRegisterResponse, bl as EventsCalendarItem, E as EventsClient, bm as EventsClientOptions, bn as EventsDateParam, bo as EventsExternalSource, bp as EventsLocation, bq as EventsOccurrenceLocation, br as EventsRangeEvent, bs as EventsRangeOccurrence, bt as EventsRangeParams, bu as EventsRangeResponse, bv as EventsTaxonomyItem, I as ExtractArrayType, c$ as FeaturedImagePointerInput, d0 as GetOrderByPaymentIdParams, d1 as LegacyProductSelectionParamEvent, d2 as ListingGroupsParams, d3 as MAX_CART_LINE_ADMISSIONS, d4 as ManagedPaymentNextAction, d5 as ManagedPublicPaymentSession, d6 as MarketDTO, d7 as MediaValue, J as MembershipStatus, K as Money, d8 as NormalizedOptionSwatch, d9 as NormalizedProductSelection, O as OpenCheckoutPaymentState, da as OrderApi, db as OrderApiOptions, dc as OrderByPaymentResult, dd as PRODUCT_PLP_FIND_OPTIONS, de as PRODUCT_UPSERT_READONLY_FIELD_REASON, df as PRODUCT_UPSERT_UNKNOWN_FIELD_REASON, P as PayloadFindResponse, L as PayloadMutationResponse, N as PaymentFailureReason, Q as PaymentNextAction, R as PaymentProviderStatus, S as PaymentReconciliationReason, T as PaymentSessionRole, U as PortOneHostedPaymentMethod, V as PortOnePaymentNextAction, W as PortOnePublicPaymentSession, dg as PrepareFulfillmentOrderParams, dh as PrepareFulfillmentOrderResponse, di as ProductApi, dj as ProductApiOptions, dk as ProductDetailBrand, cg as ProductDetailCatalogResult, dl as ProductDetailCatalogVariant, dm as ProductDetailCategory, dn as ProductDetailImage, dp as ProductDetailImageMedia, dq as ProductDetailMedia, dr as ProductDetailOption, ds as ProductDetailOptionValue, cf as ProductDetailParams, dt as ProductDetailResult, du as ProductDetailTag, dv as ProductDetailUnavailableReason, dw as ProductDetailVariant, dx as ProductDetailVariantOptionValue, dy as ProductDetailVideo, dz as ProductDisplayMediaSource, dA as ProductFallbackLocaleOption, dB as ProductHrefGroup, dC as ProductHrefOptions, dD as ProductHrefProduct, dE as ProductListingCard, dF as ProductListingCardOptions, dG as ProductListingCardPriceRange, dH as ProductListingCardRepresentativeVariant, dI as ProductListingGroup, dJ as ProductListingGroupCatalogSummary, dK as ProductListingGroupCatalogVariant, dL as ProductListingGroupProjection, dM as ProductListingGroupSummary, dN as ProductListingGroupVariant, cj as ProductListingGroupsCatalogItem, dO as ProductListingGroupsCatalogProduct, dP as ProductListingGroupsCatalogResponse, cl as ProductListingGroupsItem, dQ as ProductListingGroupsProduct, dR as ProductListingGroupsResponse, ce as ProductListingPageBaseParams, ch as ProductListingPageCatalogParams, dS as ProductListingPageFilters, ck as ProductListingPageFullParams, cd as ProductListingPageParams, ci as ProductListingPageResult, dT as ProductListingPageSort, dU as ProductListingProductShape, dV as ProductListingSwatch, dW as ProductLocaleOption, dX as ProductLocaleReadParams, dY as ProductLocalizedText, dZ as ProductLocalizedValue, d_ as ProductMediaResolutionSource, d$ as ProductMoneyRange, e0 as ProductOptionMatrix, e1 as ProductOptionMatrixOption, e2 as ProductOptionMatrixValue, e3 as ProductOptionMatrixVariant, e4 as ProductOptionShape, e5 as ProductOptionValueShape, e6 as ProductOptionValueSwatch, e7 as ProductOptionValueSwatchInput, e8 as ProductPriceRange, e9 as ProductSelectionAvailableSwatch, ea as ProductSelectionAvailableValue, eb as ProductSelectionByOptionValue, ec as ProductSelectionCodecError, ed as ProductSelectionCodecOptions, ee as ProductSelectionInput, ef as ProductSelectionMediaPointer, eg as ProductSelectionMediaSource, eh as ProductSelectionOptionValue, ei as ProductSelectionResolution, ej as ProductSelectionResolutionContext, ek as ProductSelectionUrlEmit, el as ProductSelectionVariant, em as ProductUpsertFieldValidationErrorBody, en as ProductUpsertFieldValidationErrorReason, X as ProductUpsertInput, Y as ProductUpsertParams, Z as ProductUpsertResponse, _ as ProductUpsertVariantInput, eo as ProductVariantShape, $ as PublicAttribute, a0 as PublicCaptureEvidence, a1 as PublicCart, a2 as PublicCartItem, a3 as PublicCartItemAdmission, a4 as PublicCartMarket, a5 as PublicCartReference, a6 as PublicCheckout, ep as PublicCheckoutBase, a7 as PublicCheckoutItem, a8 as PublicMediaAsset, a9 as PublicMediaSize, aa as PublicOrder, ab as PublicOrderAmounts, ac as PublicOrderItem, ad as PublicOrderReference, ae as PublicPaymentSession, c4 as PublicReadQueryOptions, af as ReconciliationRequired, ag as RemoveItemParams, eq as RequestOptions, er as ResolveCancelRefundFailedResponse, es as ResolveCancelRefundOutcome, et as ResolveCancelRefundParams, eu as ResolveCancelRefundResponse, ev as ResolveCancelRefundSucceededResponse, ew as ResolveProductDisplayMediaInput, ex as ResolveProductDisplayMediaResult, ey as ResolveProductSelectionMediaInput, ez as ResolveProductSelectionMediaResult, eA as ResolvedCatalogPrice, ah as RetrieveBrowserPaymentSessionParams, ai as RetrieveCartParams, aj as RetrieveCheckoutParams, bI as RetrieveServerCheckoutParams, ak as RetryConfig, eB as ReturnCancellationReasonCode, eC as ReturnItem, eD as ReturnReason, eE as ReturnWithRefundItem, eF as ReturnWithRefundParams, al as RootClient, am as RootCollectionClient, an as RootReadOnlyQueryBuilder, eG as ShippingApi, eH as ShippingApiOptions, ao as ShippingLine, ap as Sort, aq as SpentCheckoutPaymentState, eI as StockCheckParams, eJ as StockCheckResponse, eK as StockCheckResult, eL as StockSnapshotItem, eM as StockSnapshotParams, ar as StorefrontContentListOptions, as as StorefrontContentReference, at as StorefrontGalleryItem, au as StorefrontGalleryItemsListOptions, av as StorefrontGalleryItemsSort, aw as StorefrontLink, ax as StorefrontLinksListOptions, ay as StorefrontLinksSort, az as UpdateCartAttributesParams, aA as UpdateDiscountCodesParams, eN as UpdateFulfillmentParams, aB as UpdateItemParams, eO as UpdateOrderParams, cc as UpdateProfileData, eP as UpdateReturnParams, eQ as ValidateDiscountParams, eR as ValidateDiscountResult, aC as VariantInput, aD as Where, eS as WithIdempotencyKey, eT as buildProductHref, eU as buildProductListingCard, eV as buildProductListingGroupProjection, eW as buildProductListingGroupsByOption, eX as buildProductOptionMatrix, eY as buildProductOptionMatrixFromDetail, eZ as createProductSelectionCodec, e_ as getAvailableOptionValues, e$ as getProductSelectionImages, f0 as getSelectedValueByOptionId, f1 as getVariantAvailableForSale, f2 as getVariantAvailableStock, f3 as isProductUpsertFieldValidationErrorBody, f4 as normalizeProductSelection, f5 as normalizeProductSelectionFromMatrix, f6 as normalizeSelectedValueIds, f7 as parseProductSelection, f8 as projectProductToListingShape, f9 as resolveFeaturedImagePointer, fa as resolveProductDisplayMedia, fb as resolveProductSelection, fc as resolveProductSelectionFromMatrix, fd as resolveProductSelectionMedia, fe as resolveVariantForSelection, ff as selectNext, fg as selectedSwatchMediaItemId, fh as stringifyProductSelection, fi as toShopifyPriceRangeV2 } from './types-CM5qiR2k.cjs';
|
|
3
|
-
import { P as Product } from './payload-types-
|
|
4
|
-
export { A as Article, f as ArticleAuthor, g as ArticleCategory, h as ArticleTag, D as Document, I as Image, i as Post, j as PostCategory, T as Tenant, V as Video } from './payload-types-
|
|
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,
|
|
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 { d3 as BaseApi, aF as ServerApiOptions, aI as SubscribeMembershipParams, aJ as SubscribeMembershipResponse, e as CancelMembershipParams, f as CancelMembershipResponse, aK as BillingCustodyParams, aL as BillingCustodyResponse, d4 as ProductDetail, d5 as ProductDetailCatalog, d6 as StockSnapshotResponse, h as ClientConfig, d7 as RootClientWithEvents } from './types-Dzn0LD2N.cjs';
|
|
2
|
+
export { A as AddItemParams, i as ApiQueryOptions, d8 as BillingCustodyWireRequest, d9 as BulkImportFulfillmentsParams, da as BulkImportFulfillmentsResponse, db as CalculateShippingParams, dc as CalculateShippingResult, j as CancelBrowserPaymentSessionParams, dd as CancelOrderParams, de as CancelOrderResponse, df as CancelReasonCode, dg as CartDiscountCode, k as CartMergeParams, l as CartMergeResult, m as CartMineResult, n as CartMutationResult, dh as CartWarning, di as CartWarningCode, o as CheckoutAbandonedReason, p as CheckoutAmounts, q as CheckoutOrderReference, r as CheckoutPaymentSessionRef, s as CheckoutShippingAddress, t as ClearCartParams, al as Client, u as ClientMetadata, g as ClientState, al as ClientType, dj as Comment, C as CommerceClient, dk as CommerceClientOptions, a as CommunityClient, dl as CommunityClientOptions, dm as CommunityComment, dn as CommunityCommentListSort, dp as CommunityPost, dq as CommunityPostCategory, dr as CommunityPostListSort, ds as CommunityPostTag, dt as CommunityPublicAuthorSnapshot, du as CommunityPublicMediaAsset, dv as CommunityPublicReference, dw as CompatibilityProductSelectionParamEvent, b as ContentClient, v as ContentClientOptions, w as CreateCartParams, x as CreateCartResult, y as CreateCheckoutParams, z as CreateCheckoutResult, dx as CreateFulfillmentParams, B as CreatePaymentSessionParams, D as CreatePortOnePaymentSessionParams, dy as CreateReturnParams, bi as CreateServerPaymentSessionParams, bj as CreateServerPortOnePaymentSessionParams, cO as CustomerAuth, dz as CustomerAuthOptions, cQ as CustomerAuthResponse, dA as CustomerAuthorizationUrlInput, dB as CustomerAuthorizationUrlResult, aM as CustomerGroupApi, bm as CustomerGroupApiOptions, bn as CustomerGroupManualSource, bo as CustomerGroupMember, bp as CustomerGroupMemberCommandResponse, bq as CustomerGroupMemberSource, br as CustomerGroupMembershipSource, bs as CustomerGroupMembershipState, cR as CustomerLoginData, d as CustomerMembershipView, c as CustomerNamespace, dC as CustomerOAuth, dD as CustomerOAuthCallbackResult, dE as CustomerOAuthConfig, dF as CustomerOAuthTokenSet, dG as CustomerOrderListOptions, cP as CustomerProfile, cU as CustomerRefreshResponse, cT as CustomerRegisterData, cS as CustomerRegisterResponse, F as CustomerSnapshot, dH as CustomerWithdrawalResult, G as DebugConfig, H as DeepPartial, dI as DiscountApi, dJ as DiscountApiOptions, dK as DiscountErrorReasonCode, bu as EventAdmissionAvailabilityParams, bv as EventAdmissionAvailabilityResponse, bw as EventAdmissionAvailabilityType, bx as EventAdmissionPricePresentment, by as EventGuestCancelParams, bz as EventGuestRegistration, bA as EventGuestRegistrationResponse, bB as EventRegistrationAnswerInput, bC as EventRegistrationAttendeeInput, bD as EventRegistrationPublic, bE as EventRegistrationRegisterParams, bF as EventRegistrationRegisterResponse, bG as EventsCalendarItem, E as EventsClient, bH as EventsClientOptions, bI as EventsDateParam, bJ as EventsExternalSource, bK as EventsLocation, bL as EventsOccurrenceLocation, bM as EventsRangeEvent, bN as EventsRangeOccurrence, bO as EventsRangeParams, bP as EventsRangeResponse, bQ as EventsTaxonomyItem, I as ExtractArrayType, dL as FeaturedImagePointerInput, dM as GetOrderByPaymentIdParams, c1 as GrantCustomerGroupMemberParams, dN as LegacyProductSelectionParamEvent, c4 as ListCustomerGroupMembersParams, c5 as ListCustomerGroupMembersResponse, dO as ListingGroupsParams, dP as MAX_CART_LINE_ADMISSIONS, dQ as ManagedPaymentNextAction, dR as ManagedPublicPaymentSession, dS as MarketDTO, dT as MediaValue, J as MembershipStatus, K as Money, dU as NormalizedOptionSwatch, dV as NormalizedProductSelection, O as OpenCheckoutPaymentState, dW as OrderApi, dX as OrderApiOptions, dY as OrderByPaymentResult, dZ as PRODUCT_PLP_FIND_OPTIONS, d_ as PRODUCT_UPSERT_READONLY_FIELD_REASON, d$ as PRODUCT_UPSERT_UNKNOWN_FIELD_REASON, P as PayloadFindResponse, L as PayloadMutationResponse, N as PaymentFailureReason, Q as PaymentNextAction, R as PaymentProviderStatus, S as PaymentReconciliationReason, T as PaymentSessionRole, U as PortOneHostedPaymentMethod, V as PortOnePaymentNextAction, W as PortOnePublicPaymentSession, e0 as PrepareFulfillmentOrderParams, e1 as PrepareFulfillmentOrderResponse, e2 as ProductApi, e3 as ProductApiOptions, e4 as ProductDetailBrand, cZ as ProductDetailCatalogResult, e5 as ProductDetailCatalogVariant, e6 as ProductDetailCategory, e7 as ProductDetailImage, e8 as ProductDetailImageMedia, e9 as ProductDetailMedia, ea as ProductDetailOption, eb as ProductDetailOptionValue, cY as ProductDetailParams, ec as ProductDetailResult, ed as ProductDetailTag, ee as ProductDetailUnavailableReason, ef as ProductDetailVariant, eg as ProductDetailVariantOptionValue, eh as ProductDetailVideo, ei as ProductDisplayMediaSource, ej as ProductFallbackLocaleOption, ek as ProductHrefGroup, el as ProductHrefOptions, em as ProductHrefProduct, en as ProductListingCard, eo as ProductListingCardOptions, ep as ProductListingCardPriceRange, eq as ProductListingCardRepresentativeVariant, er as ProductListingGroup, es as ProductListingGroupCatalogSummary, et as ProductListingGroupCatalogVariant, eu as ProductListingGroupProjection, ev as ProductListingGroupSummary, ew as ProductListingGroupVariant, d0 as ProductListingGroupsCatalogItem, ex as ProductListingGroupsCatalogProduct, ey as ProductListingGroupsCatalogResponse, d2 as ProductListingGroupsItem, ez as ProductListingGroupsProduct, eA as ProductListingGroupsResponse, cX as ProductListingPageBaseParams, c_ as ProductListingPageCatalogParams, eB as ProductListingPageFilters, d1 as ProductListingPageFullParams, cW as ProductListingPageParams, c$ as ProductListingPageResult, eC as ProductListingPageSort, eD as ProductListingProductShape, eE as ProductListingSwatch, eF as ProductLocaleOption, eG as ProductLocaleReadParams, eH as ProductLocalizedText, eI as ProductLocalizedValue, eJ as ProductMediaResolutionSource, eK as ProductMoneyRange, eL as ProductOptionMatrix, eM as ProductOptionMatrixOption, eN as ProductOptionMatrixValue, eO as ProductOptionMatrixVariant, eP as ProductOptionShape, eQ as ProductOptionValueShape, eR as ProductOptionValueSwatch, eS as ProductOptionValueSwatchInput, eT as ProductPriceRange, eU as ProductSelectionAvailableSwatch, eV as ProductSelectionAvailableValue, eW as ProductSelectionByOptionValue, eX as ProductSelectionCodecError, eY as ProductSelectionCodecOptions, eZ as ProductSelectionInput, e_ as ProductSelectionMediaPointer, e$ as ProductSelectionMediaSource, f0 as ProductSelectionOptionValue, f1 as ProductSelectionResolution, f2 as ProductSelectionResolutionContext, f3 as ProductSelectionUrlEmit, f4 as ProductSelectionVariant, f5 as ProductUpsertFieldValidationErrorBody, f6 as ProductUpsertFieldValidationErrorReason, X as ProductUpsertInput, Y as ProductUpsertParams, Z as ProductUpsertResponse, _ as ProductUpsertVariantInput, f7 as ProductVariantShape, $ as PublicAttribute, a0 as PublicCaptureEvidence, a1 as PublicCart, a2 as PublicCartItem, a3 as PublicCartItemAdmission, a4 as PublicCartMarket, a5 as PublicCartReference, a6 as PublicCheckout, f8 as PublicCheckoutBase, a7 as PublicCheckoutItem, a8 as PublicMediaAsset, a9 as PublicMediaSize, aa as PublicOrder, ab as PublicOrderAmounts, ac as PublicOrderItem, ad as PublicOrderReference, ae as PublicPaymentSession, cN as PublicReadQueryOptions, af as ReconciliationRequired, ag as RemoveItemParams, f9 as RequestOptions, fa as ResolveCancelRefundFailedResponse, fb as ResolveCancelRefundOutcome, fc as ResolveCancelRefundParams, fd as ResolveCancelRefundResponse, fe as ResolveCancelRefundSucceededResponse, ff as ResolveProductDisplayMediaInput, fg as ResolveProductDisplayMediaResult, fh as ResolveProductSelectionMediaInput, fi as ResolveProductSelectionMediaResult, fj as ResolvedCatalogPrice, ah as RetrieveBrowserPaymentSessionParams, ai as RetrieveCartParams, aj as RetrieveCheckoutParams, cl as RetrieveServerCheckoutParams, ak as RetryConfig, fk as ReturnCancellationReasonCode, fl as ReturnItem, fm as ReturnReason, fn as ReturnWithRefundItem, fo as ReturnWithRefundParams, co as RevokeCustomerGroupMemberParams, al as RootClient, am as RootCollectionClient, an as RootReadOnlyQueryBuilder, fp as ShippingApi, fq as ShippingApiOptions, ao as ShippingLine, ap as Sort, aq as SpentCheckoutPaymentState, fr as StockCheckParams, fs as StockCheckResponse, ft as StockCheckResult, fu as StockSnapshotItem, fv as StockSnapshotParams, ar as StorefrontContentListOptions, as as StorefrontContentReference, at as StorefrontGalleryItem, au as StorefrontGalleryItemsListOptions, av as StorefrontGalleryItemsSort, aw as StorefrontLink, ax as StorefrontLinksListOptions, ay as StorefrontLinksSort, az as UpdateCartAttributesParams, aA as UpdateDiscountCodesParams, fw as UpdateFulfillmentParams, aB as UpdateItemParams, fx as UpdateOrderParams, cV as UpdateProfileData, fy as UpdateReturnParams, fz as ValidateDiscountParams, fA as ValidateDiscountResult, aC as VariantInput, fB as VideoPlaybackResponse, aD as Where, fC as WithIdempotencyKey, fD as buildProductHref, fE as buildProductListingCard, fF as buildProductListingGroupProjection, fG as buildProductListingGroupsByOption, fH as buildProductOptionMatrix, fI as buildProductOptionMatrixFromDetail, fJ as createProductSelectionCodec, fK as getAvailableOptionValues, fL as getProductSelectionImages, fM as getSelectedValueByOptionId, fN as getVariantAvailableForSale, fO as getVariantAvailableStock, fP as isProductUpsertFieldValidationErrorBody, fQ as normalizeProductSelection, fR as normalizeProductSelectionFromMatrix, fS as normalizeSelectedValueIds, fT as parseProductSelection, fU as projectProductToListingShape, fV as resolveFeaturedImagePointer, fW as resolveProductDisplayMedia, fX as resolveProductSelection, fY as resolveProductSelectionFromMatrix, fZ as resolveProductSelectionMedia, f_ as resolveVariantForSelection, f$ as selectNext, g0 as selectedSwatchMediaItemId, g1 as stringifyProductSelection, g2 as toShopifyPriceRangeV2 } from './types-Dzn0LD2N.cjs';
|
|
3
|
+
import { P as Product } from './payload-types-BnIET0xU.cjs';
|
|
4
|
+
export { A as Article, f as ArticleAuthor, g as ArticleCategory, h as ArticleTag, D as Document, I as Image, i as Post, j as PostCategory, T as Tenant, V as Video } from './payload-types-BnIET0xU.cjs';
|
|
5
|
+
export { C as CollectionType, P as Market, a as Product, b as ProductCollection, c as ProductVariant } from './types-Dp1oYpD3.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-Bbpf5t-l.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-D6ZRQLxI.cjs';
|
|
8
8
|
export { a as RealtimeConnection, R as RealtimeEvent, b as RealtimeListener } from './realtime-D7HtUpqt.cjs';
|
|
9
9
|
export { a as IMAGE_SIZES, I as ImageData, b as ImageDataSizeEntry, c as ImageDataSizes, d as ImagePalette, e as ImagePlaceholderOptions, g as getImageLqip, f as getImagePalette, h as getImagePlaceholderStyle, i as getImageSrcSet, j as getImageUrl } from './image-BDjHp03R.cjs';
|
|
10
10
|
export { V as VideoGifOptions, a as VideoThumbnailOptions, g as getVideoGif, b as getVideoMp4Url, c as getVideoStoryboard, d as getVideoStreamUrl, e as getVideoThumbnail } from './video-WR_TFO9a.cjs';
|
|
11
|
-
export { Analytics, AnalyticsConfig, createAnalytics } from './analytics.cjs';
|
|
12
11
|
export { ApiError, AuthError, COMMERCE_ERROR_CODES, CommerceErrorCode, CommerceSDKError, ConfigError, ConflictError, GoneError, NetworkError, NotFoundError, PermissionError, RateLimitError, SDKError, ServiceUnavailableError, TimeoutError, UsageLimitError, ValidationError, createAuthError, createConflictError, createNotFoundError, createPermissionError, createRateLimitError, getSDKErrorReason, isApiError, isAuthError, isCommerceSDKError, isConfigError, isConflictError, isGoneError, isNetworkError, isNotFoundError, isPermissionError, isRateLimitError, isSDKError, isServiceUnavailableError, isTimeoutError, isUsageLimitError, isValidationError } from './errors.cjs';
|
|
13
12
|
|
|
14
13
|
declare function isCommerceIdempotencyKey(value: unknown): value is string;
|
|
@@ -26,9 +25,10 @@ type MembershipApiOptions = ServerApiOptions;
|
|
|
26
25
|
declare class MembershipApi extends BaseApi {
|
|
27
26
|
constructor(options: MembershipApiOptions);
|
|
28
27
|
/**
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
* `
|
|
28
|
+
* Prepare a delegated first charge for a paid Membership, or immediately
|
|
29
|
+
* start a trial. For a paid response, charge through the tenant PSP with
|
|
30
|
+
* `firstCharge.idempotencyKey`, then post the existing signed charge result
|
|
31
|
+
* to activate the membership.
|
|
32
32
|
*
|
|
33
33
|
* `subscribeIntentKey` is used as the HTTP idempotency key so the call is
|
|
34
34
|
* safely retryable.
|
|
@@ -41,6 +41,13 @@ declare class MembershipApi extends BaseApi {
|
|
|
41
41
|
* immediately and revoke membership groups now.
|
|
42
42
|
*/
|
|
43
43
|
cancel(params: CancelMembershipParams): Promise<CancelMembershipResponse>;
|
|
44
|
+
/**
|
|
45
|
+
* Store/read only app-encrypted billing ciphertext for the Membership's
|
|
46
|
+
* method. The tenant server receives the non-secret restore generation from
|
|
47
|
+
* its platform operator's integration configuration; it is not discovered
|
|
48
|
+
* from an unauthenticated endpoint.
|
|
49
|
+
*/
|
|
50
|
+
billingCustody(params: BillingCustodyParams): Promise<BillingCustodyResponse>;
|
|
44
51
|
}
|
|
45
52
|
|
|
46
53
|
type ProductDetailStockMergeStatus = 'complete' | 'partial';
|
|
@@ -71,4 +78,4 @@ declare function resolveRelation<T>(ref: unknown): T | null;
|
|
|
71
78
|
|
|
72
79
|
declare function createClient(options: ClientConfig): RootClientWithEvents;
|
|
73
80
|
|
|
74
|
-
export { BaseApi, CancelMembershipParams, CancelMembershipResponse, ClientConfig, MembershipApi, type MembershipApiOptions, type MergedProductDetailResult, ProductDetail, ProductDetailCatalog, type ProductDetailStockMergeStatus, RootClientWithEvents, ServerApiOptions, StockSnapshotResponse, SubscribeMembershipParams, SubscribeMembershipResponse, assertCommerceIdempotencyKey, createClient, createCommerceIdempotencyKey, formatOrderName, generateOrderNumber, isCommerceIdempotencyKey, mergeProductDetailWithStock, resolveRelation };
|
|
81
|
+
export { BaseApi, BillingCustodyParams, BillingCustodyResponse, CancelMembershipParams, CancelMembershipResponse, ClientConfig, 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,14 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { A as AddItemParams, i as ApiQueryOptions, cr as BulkImportFulfillmentsParams, cs as BulkImportFulfillmentsResponse, ct as CalculateShippingParams, cu as CalculateShippingResult, j as CancelBrowserPaymentSessionParams, cv as CancelOrderParams, cw as CancelOrderResponse, cx as CancelReasonCode, cy as CartDiscountCode, k as CartMergeParams, l as CartMergeResult, m as CartMineResult, n as CartMutationResult, cz as CartWarning, cA as CartWarningCode, o as CheckoutAbandonedReason, p as CheckoutAmounts, q as CheckoutOrderReference, r as CheckoutPaymentSessionRef, s as CheckoutShippingAddress, t as ClearCartParams, al as Client, u as ClientMetadata, g as ClientState, al as ClientType, cB as Comment, C as CommerceClient, cC as CommerceClientOptions, a as CommunityClient, cD as CommunityClientOptions, cE as CommunityComment, cF as CommunityCommentListSort, cG as CommunityPost, cH as CommunityPostCategory, cI as CommunityPostListSort, cJ as CommunityPostTag, cK as CommunityPublicAuthorSnapshot, cL as CommunityPublicMediaAsset, cM as CommunityPublicReference, cN as CompatibilityProductSelectionParamEvent, b as ContentClient, v as ContentClientOptions, w as CreateCartParams, x as CreateCartResult, y as CreateCheckoutParams, z as CreateCheckoutResult, cO as CreateFulfillmentParams, B as CreatePaymentSessionParams, D as CreatePortOnePaymentSessionParams, cP as CreateReturnParams, c5 as CustomerAuth, cQ as CustomerAuthOptions, c7 as CustomerAuthResponse, cR as CustomerAuthorizationUrlInput, cS as CustomerAuthorizationUrlResult, c8 as CustomerLoginData, d as CustomerMembershipView, c as CustomerNamespace, cT as CustomerOAuth, cU as CustomerOAuthCallbackResult, cV as CustomerOAuthConfig, cW as CustomerOAuthTokenSet, cX as CustomerOrderListOptions, c6 as CustomerProfile, cb as CustomerRefreshResponse, ca as CustomerRegisterData, c9 as CustomerRegisterResponse, F as CustomerSnapshot, G as DebugConfig, H as DeepPartial, cY as DiscountApi, cZ as DiscountApiOptions, c_ as DiscountErrorReasonCode, b9 as EventAdmissionAvailabilityParams, ba as EventAdmissionAvailabilityResponse, bb as EventAdmissionAvailabilityType, bc as EventAdmissionPricePresentment, bd as EventGuestCancelParams, be as EventGuestRegistration, bf as EventGuestRegistrationResponse, bg as EventRegistrationAnswerInput, bh as EventRegistrationAttendeeInput, bi as EventRegistrationPublic, bj as EventRegistrationRegisterParams, bk as EventRegistrationRegisterResponse, bl as EventsCalendarItem, E as EventsClient, bm as EventsClientOptions, bn as EventsDateParam, bo as EventsExternalSource, bp as EventsLocation, bq as EventsOccurrenceLocation, br as EventsRangeEvent, bs as EventsRangeOccurrence, bt as EventsRangeParams, bu as EventsRangeResponse, bv as EventsTaxonomyItem, I as ExtractArrayType, c$ as FeaturedImagePointerInput, d0 as GetOrderByPaymentIdParams, d1 as LegacyProductSelectionParamEvent, d2 as ListingGroupsParams, d3 as MAX_CART_LINE_ADMISSIONS, d4 as ManagedPaymentNextAction, d5 as ManagedPublicPaymentSession, d6 as MarketDTO, d7 as MediaValue, J as MembershipStatus, K as Money, d8 as NormalizedOptionSwatch, d9 as NormalizedProductSelection, O as OpenCheckoutPaymentState, da as OrderApi, db as OrderApiOptions, dc as OrderByPaymentResult, dd as PRODUCT_PLP_FIND_OPTIONS, de as PRODUCT_UPSERT_READONLY_FIELD_REASON, df as PRODUCT_UPSERT_UNKNOWN_FIELD_REASON, P as PayloadFindResponse, L as PayloadMutationResponse, N as PaymentFailureReason, Q as PaymentNextAction, R as PaymentProviderStatus, S as PaymentReconciliationReason, T as PaymentSessionRole, U as PortOneHostedPaymentMethod, V as PortOnePaymentNextAction, W as PortOnePublicPaymentSession, dg as PrepareFulfillmentOrderParams, dh as PrepareFulfillmentOrderResponse, di as ProductApi, dj as ProductApiOptions, dk as ProductDetailBrand, cg as ProductDetailCatalogResult, dl as ProductDetailCatalogVariant, dm as ProductDetailCategory, dn as ProductDetailImage, dp as ProductDetailImageMedia, dq as ProductDetailMedia, dr as ProductDetailOption, ds as ProductDetailOptionValue, cf as ProductDetailParams, dt as ProductDetailResult, du as ProductDetailTag, dv as ProductDetailUnavailableReason, dw as ProductDetailVariant, dx as ProductDetailVariantOptionValue, dy as ProductDetailVideo, dz as ProductDisplayMediaSource, dA as ProductFallbackLocaleOption, dB as ProductHrefGroup, dC as ProductHrefOptions, dD as ProductHrefProduct, dE as ProductListingCard, dF as ProductListingCardOptions, dG as ProductListingCardPriceRange, dH as ProductListingCardRepresentativeVariant, dI as ProductListingGroup, dJ as ProductListingGroupCatalogSummary, dK as ProductListingGroupCatalogVariant, dL as ProductListingGroupProjection, dM as ProductListingGroupSummary, dN as ProductListingGroupVariant, cj as ProductListingGroupsCatalogItem, dO as ProductListingGroupsCatalogProduct, dP as ProductListingGroupsCatalogResponse, cl as ProductListingGroupsItem, dQ as ProductListingGroupsProduct, dR as ProductListingGroupsResponse, ce as ProductListingPageBaseParams, ch as ProductListingPageCatalogParams, dS as ProductListingPageFilters, ck as ProductListingPageFullParams, cd as ProductListingPageParams, ci as ProductListingPageResult, dT as ProductListingPageSort, dU as ProductListingProductShape, dV as ProductListingSwatch, dW as ProductLocaleOption, dX as ProductLocaleReadParams, dY as ProductLocalizedText, dZ as ProductLocalizedValue, d_ as ProductMediaResolutionSource, d$ as ProductMoneyRange, e0 as ProductOptionMatrix, e1 as ProductOptionMatrixOption, e2 as ProductOptionMatrixValue, e3 as ProductOptionMatrixVariant, e4 as ProductOptionShape, e5 as ProductOptionValueShape, e6 as ProductOptionValueSwatch, e7 as ProductOptionValueSwatchInput, e8 as ProductPriceRange, e9 as ProductSelectionAvailableSwatch, ea as ProductSelectionAvailableValue, eb as ProductSelectionByOptionValue, ec as ProductSelectionCodecError, ed as ProductSelectionCodecOptions, ee as ProductSelectionInput, ef as ProductSelectionMediaPointer, eg as ProductSelectionMediaSource, eh as ProductSelectionOptionValue, ei as ProductSelectionResolution, ej as ProductSelectionResolutionContext, ek as ProductSelectionUrlEmit, el as ProductSelectionVariant, em as ProductUpsertFieldValidationErrorBody, en as ProductUpsertFieldValidationErrorReason, X as ProductUpsertInput, Y as ProductUpsertParams, Z as ProductUpsertResponse, _ as ProductUpsertVariantInput, eo as ProductVariantShape, $ as PublicAttribute, a0 as PublicCaptureEvidence, a1 as PublicCart, a2 as PublicCartItem, a3 as PublicCartItemAdmission, a4 as PublicCartMarket, a5 as PublicCartReference, a6 as PublicCheckout, ep as PublicCheckoutBase, a7 as PublicCheckoutItem, a8 as PublicMediaAsset, a9 as PublicMediaSize, aa as PublicOrder, ab as PublicOrderAmounts, ac as PublicOrderItem, ad as PublicOrderReference, ae as PublicPaymentSession, c4 as PublicReadQueryOptions, af as ReconciliationRequired, ag as RemoveItemParams, eq as RequestOptions, er as ResolveCancelRefundFailedResponse, es as ResolveCancelRefundOutcome, et as ResolveCancelRefundParams, eu as ResolveCancelRefundResponse, ev as ResolveCancelRefundSucceededResponse, ew as ResolveProductDisplayMediaInput, ex as ResolveProductDisplayMediaResult, ey as ResolveProductSelectionMediaInput, ez as ResolveProductSelectionMediaResult, eA as ResolvedCatalogPrice, ah as RetrieveBrowserPaymentSessionParams, ai as RetrieveCartParams, aj as RetrieveCheckoutParams, bI as RetrieveServerCheckoutParams, ak as RetryConfig, eB as ReturnCancellationReasonCode, eC as ReturnItem, eD as ReturnReason, eE as ReturnWithRefundItem, eF as ReturnWithRefundParams, al as RootClient, am as RootCollectionClient, an as RootReadOnlyQueryBuilder, eG as ShippingApi, eH as ShippingApiOptions, ao as ShippingLine, ap as Sort, aq as SpentCheckoutPaymentState, eI as StockCheckParams, eJ as StockCheckResponse, eK as StockCheckResult, eL as StockSnapshotItem, eM as StockSnapshotParams, ar as StorefrontContentListOptions, as as StorefrontContentReference, at as StorefrontGalleryItem, au as StorefrontGalleryItemsListOptions, av as StorefrontGalleryItemsSort, aw as StorefrontLink, ax as StorefrontLinksListOptions, ay as StorefrontLinksSort, az as UpdateCartAttributesParams, aA as UpdateDiscountCodesParams, eN as UpdateFulfillmentParams, aB as UpdateItemParams, eO as UpdateOrderParams, cc as UpdateProfileData, eP as UpdateReturnParams, eQ as ValidateDiscountParams, eR as ValidateDiscountResult, aC as VariantInput, aD as Where, eS as WithIdempotencyKey, eT as buildProductHref, eU as buildProductListingCard, eV as buildProductListingGroupProjection, eW as buildProductListingGroupsByOption, eX as buildProductOptionMatrix, eY as buildProductOptionMatrixFromDetail, eZ as createProductSelectionCodec, e_ as getAvailableOptionValues, e$ as getProductSelectionImages, f0 as getSelectedValueByOptionId, f1 as getVariantAvailableForSale, f2 as getVariantAvailableStock, f3 as isProductUpsertFieldValidationErrorBody, f4 as normalizeProductSelection, f5 as normalizeProductSelectionFromMatrix, f6 as normalizeSelectedValueIds, f7 as parseProductSelection, f8 as projectProductToListingShape, f9 as resolveFeaturedImagePointer, fa as resolveProductDisplayMedia, fb as resolveProductSelection, fc as resolveProductSelectionFromMatrix, fd as resolveProductSelectionMedia, fe as resolveVariantForSelection, ff as selectNext, fg as selectedSwatchMediaItemId, fh as stringifyProductSelection, fi as toShopifyPriceRangeV2 } from './types-Bj8j7VHU.js';
|
|
3
|
-
import { P as Product } from './payload-types-
|
|
4
|
-
export { A as Article, f as ArticleAuthor, g as ArticleCategory, h as ArticleTag, D as Document, I as Image, i as Post, j as PostCategory, T as Tenant, V as Video } from './payload-types-
|
|
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,
|
|
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 { d3 as BaseApi, aF as ServerApiOptions, aI as SubscribeMembershipParams, aJ as SubscribeMembershipResponse, e as CancelMembershipParams, f as CancelMembershipResponse, aK as BillingCustodyParams, aL as BillingCustodyResponse, d4 as ProductDetail, d5 as ProductDetailCatalog, d6 as StockSnapshotResponse, h as ClientConfig, d7 as RootClientWithEvents } from './types-DnRC3nLG.js';
|
|
2
|
+
export { A as AddItemParams, i as ApiQueryOptions, d8 as BillingCustodyWireRequest, d9 as BulkImportFulfillmentsParams, da as BulkImportFulfillmentsResponse, db as CalculateShippingParams, dc as CalculateShippingResult, j as CancelBrowserPaymentSessionParams, dd as CancelOrderParams, de as CancelOrderResponse, df as CancelReasonCode, dg as CartDiscountCode, k as CartMergeParams, l as CartMergeResult, m as CartMineResult, n as CartMutationResult, dh as CartWarning, di as CartWarningCode, o as CheckoutAbandonedReason, p as CheckoutAmounts, q as CheckoutOrderReference, r as CheckoutPaymentSessionRef, s as CheckoutShippingAddress, t as ClearCartParams, al as Client, u as ClientMetadata, g as ClientState, al as ClientType, dj as Comment, C as CommerceClient, dk as CommerceClientOptions, a as CommunityClient, dl as CommunityClientOptions, dm as CommunityComment, dn as CommunityCommentListSort, dp as CommunityPost, dq as CommunityPostCategory, dr as CommunityPostListSort, ds as CommunityPostTag, dt as CommunityPublicAuthorSnapshot, du as CommunityPublicMediaAsset, dv as CommunityPublicReference, dw as CompatibilityProductSelectionParamEvent, b as ContentClient, v as ContentClientOptions, w as CreateCartParams, x as CreateCartResult, y as CreateCheckoutParams, z as CreateCheckoutResult, dx as CreateFulfillmentParams, B as CreatePaymentSessionParams, D as CreatePortOnePaymentSessionParams, dy as CreateReturnParams, bi as CreateServerPaymentSessionParams, bj as CreateServerPortOnePaymentSessionParams, cO as CustomerAuth, dz as CustomerAuthOptions, cQ as CustomerAuthResponse, dA as CustomerAuthorizationUrlInput, dB as CustomerAuthorizationUrlResult, aM as CustomerGroupApi, bm as CustomerGroupApiOptions, bn as CustomerGroupManualSource, bo as CustomerGroupMember, bp as CustomerGroupMemberCommandResponse, bq as CustomerGroupMemberSource, br as CustomerGroupMembershipSource, bs as CustomerGroupMembershipState, cR as CustomerLoginData, d as CustomerMembershipView, c as CustomerNamespace, dC as CustomerOAuth, dD as CustomerOAuthCallbackResult, dE as CustomerOAuthConfig, dF as CustomerOAuthTokenSet, dG as CustomerOrderListOptions, cP as CustomerProfile, cU as CustomerRefreshResponse, cT as CustomerRegisterData, cS as CustomerRegisterResponse, F as CustomerSnapshot, dH as CustomerWithdrawalResult, G as DebugConfig, H as DeepPartial, dI as DiscountApi, dJ as DiscountApiOptions, dK as DiscountErrorReasonCode, bu as EventAdmissionAvailabilityParams, bv as EventAdmissionAvailabilityResponse, bw as EventAdmissionAvailabilityType, bx as EventAdmissionPricePresentment, by as EventGuestCancelParams, bz as EventGuestRegistration, bA as EventGuestRegistrationResponse, bB as EventRegistrationAnswerInput, bC as EventRegistrationAttendeeInput, bD as EventRegistrationPublic, bE as EventRegistrationRegisterParams, bF as EventRegistrationRegisterResponse, bG as EventsCalendarItem, E as EventsClient, bH as EventsClientOptions, bI as EventsDateParam, bJ as EventsExternalSource, bK as EventsLocation, bL as EventsOccurrenceLocation, bM as EventsRangeEvent, bN as EventsRangeOccurrence, bO as EventsRangeParams, bP as EventsRangeResponse, bQ as EventsTaxonomyItem, I as ExtractArrayType, dL as FeaturedImagePointerInput, dM as GetOrderByPaymentIdParams, c1 as GrantCustomerGroupMemberParams, dN as LegacyProductSelectionParamEvent, c4 as ListCustomerGroupMembersParams, c5 as ListCustomerGroupMembersResponse, dO as ListingGroupsParams, dP as MAX_CART_LINE_ADMISSIONS, dQ as ManagedPaymentNextAction, dR as ManagedPublicPaymentSession, dS as MarketDTO, dT as MediaValue, J as MembershipStatus, K as Money, dU as NormalizedOptionSwatch, dV as NormalizedProductSelection, O as OpenCheckoutPaymentState, dW as OrderApi, dX as OrderApiOptions, dY as OrderByPaymentResult, dZ as PRODUCT_PLP_FIND_OPTIONS, d_ as PRODUCT_UPSERT_READONLY_FIELD_REASON, d$ as PRODUCT_UPSERT_UNKNOWN_FIELD_REASON, P as PayloadFindResponse, L as PayloadMutationResponse, N as PaymentFailureReason, Q as PaymentNextAction, R as PaymentProviderStatus, S as PaymentReconciliationReason, T as PaymentSessionRole, U as PortOneHostedPaymentMethod, V as PortOnePaymentNextAction, W as PortOnePublicPaymentSession, e0 as PrepareFulfillmentOrderParams, e1 as PrepareFulfillmentOrderResponse, e2 as ProductApi, e3 as ProductApiOptions, e4 as ProductDetailBrand, cZ as ProductDetailCatalogResult, e5 as ProductDetailCatalogVariant, e6 as ProductDetailCategory, e7 as ProductDetailImage, e8 as ProductDetailImageMedia, e9 as ProductDetailMedia, ea as ProductDetailOption, eb as ProductDetailOptionValue, cY as ProductDetailParams, ec as ProductDetailResult, ed as ProductDetailTag, ee as ProductDetailUnavailableReason, ef as ProductDetailVariant, eg as ProductDetailVariantOptionValue, eh as ProductDetailVideo, ei as ProductDisplayMediaSource, ej as ProductFallbackLocaleOption, ek as ProductHrefGroup, el as ProductHrefOptions, em as ProductHrefProduct, en as ProductListingCard, eo as ProductListingCardOptions, ep as ProductListingCardPriceRange, eq as ProductListingCardRepresentativeVariant, er as ProductListingGroup, es as ProductListingGroupCatalogSummary, et as ProductListingGroupCatalogVariant, eu as ProductListingGroupProjection, ev as ProductListingGroupSummary, ew as ProductListingGroupVariant, d0 as ProductListingGroupsCatalogItem, ex as ProductListingGroupsCatalogProduct, ey as ProductListingGroupsCatalogResponse, d2 as ProductListingGroupsItem, ez as ProductListingGroupsProduct, eA as ProductListingGroupsResponse, cX as ProductListingPageBaseParams, c_ as ProductListingPageCatalogParams, eB as ProductListingPageFilters, d1 as ProductListingPageFullParams, cW as ProductListingPageParams, c$ as ProductListingPageResult, eC as ProductListingPageSort, eD as ProductListingProductShape, eE as ProductListingSwatch, eF as ProductLocaleOption, eG as ProductLocaleReadParams, eH as ProductLocalizedText, eI as ProductLocalizedValue, eJ as ProductMediaResolutionSource, eK as ProductMoneyRange, eL as ProductOptionMatrix, eM as ProductOptionMatrixOption, eN as ProductOptionMatrixValue, eO as ProductOptionMatrixVariant, eP as ProductOptionShape, eQ as ProductOptionValueShape, eR as ProductOptionValueSwatch, eS as ProductOptionValueSwatchInput, eT as ProductPriceRange, eU as ProductSelectionAvailableSwatch, eV as ProductSelectionAvailableValue, eW as ProductSelectionByOptionValue, eX as ProductSelectionCodecError, eY as ProductSelectionCodecOptions, eZ as ProductSelectionInput, e_ as ProductSelectionMediaPointer, e$ as ProductSelectionMediaSource, f0 as ProductSelectionOptionValue, f1 as ProductSelectionResolution, f2 as ProductSelectionResolutionContext, f3 as ProductSelectionUrlEmit, f4 as ProductSelectionVariant, f5 as ProductUpsertFieldValidationErrorBody, f6 as ProductUpsertFieldValidationErrorReason, X as ProductUpsertInput, Y as ProductUpsertParams, Z as ProductUpsertResponse, _ as ProductUpsertVariantInput, f7 as ProductVariantShape, $ as PublicAttribute, a0 as PublicCaptureEvidence, a1 as PublicCart, a2 as PublicCartItem, a3 as PublicCartItemAdmission, a4 as PublicCartMarket, a5 as PublicCartReference, a6 as PublicCheckout, f8 as PublicCheckoutBase, a7 as PublicCheckoutItem, a8 as PublicMediaAsset, a9 as PublicMediaSize, aa as PublicOrder, ab as PublicOrderAmounts, ac as PublicOrderItem, ad as PublicOrderReference, ae as PublicPaymentSession, cN as PublicReadQueryOptions, af as ReconciliationRequired, ag as RemoveItemParams, f9 as RequestOptions, fa as ResolveCancelRefundFailedResponse, fb as ResolveCancelRefundOutcome, fc as ResolveCancelRefundParams, fd as ResolveCancelRefundResponse, fe as ResolveCancelRefundSucceededResponse, ff as ResolveProductDisplayMediaInput, fg as ResolveProductDisplayMediaResult, fh as ResolveProductSelectionMediaInput, fi as ResolveProductSelectionMediaResult, fj as ResolvedCatalogPrice, ah as RetrieveBrowserPaymentSessionParams, ai as RetrieveCartParams, aj as RetrieveCheckoutParams, cl as RetrieveServerCheckoutParams, ak as RetryConfig, fk as ReturnCancellationReasonCode, fl as ReturnItem, fm as ReturnReason, fn as ReturnWithRefundItem, fo as ReturnWithRefundParams, co as RevokeCustomerGroupMemberParams, al as RootClient, am as RootCollectionClient, an as RootReadOnlyQueryBuilder, fp as ShippingApi, fq as ShippingApiOptions, ao as ShippingLine, ap as Sort, aq as SpentCheckoutPaymentState, fr as StockCheckParams, fs as StockCheckResponse, ft as StockCheckResult, fu as StockSnapshotItem, fv as StockSnapshotParams, ar as StorefrontContentListOptions, as as StorefrontContentReference, at as StorefrontGalleryItem, au as StorefrontGalleryItemsListOptions, av as StorefrontGalleryItemsSort, aw as StorefrontLink, ax as StorefrontLinksListOptions, ay as StorefrontLinksSort, az as UpdateCartAttributesParams, aA as UpdateDiscountCodesParams, fw as UpdateFulfillmentParams, aB as UpdateItemParams, fx as UpdateOrderParams, cV as UpdateProfileData, fy as UpdateReturnParams, fz as ValidateDiscountParams, fA as ValidateDiscountResult, aC as VariantInput, fB as VideoPlaybackResponse, aD as Where, fC as WithIdempotencyKey, fD as buildProductHref, fE as buildProductListingCard, fF as buildProductListingGroupProjection, fG as buildProductListingGroupsByOption, fH as buildProductOptionMatrix, fI as buildProductOptionMatrixFromDetail, fJ as createProductSelectionCodec, fK as getAvailableOptionValues, fL as getProductSelectionImages, fM as getSelectedValueByOptionId, fN as getVariantAvailableForSale, fO as getVariantAvailableStock, fP as isProductUpsertFieldValidationErrorBody, fQ as normalizeProductSelection, fR as normalizeProductSelectionFromMatrix, fS as normalizeSelectedValueIds, fT as parseProductSelection, fU as projectProductToListingShape, fV as resolveFeaturedImagePointer, fW as resolveProductDisplayMedia, fX as resolveProductSelection, fY as resolveProductSelectionFromMatrix, fZ as resolveProductSelectionMedia, f_ as resolveVariantForSelection, f$ as selectNext, g0 as selectedSwatchMediaItemId, g1 as stringifyProductSelection, g2 as toShopifyPriceRangeV2 } from './types-DnRC3nLG.js';
|
|
3
|
+
import { P as Product } from './payload-types-BnIET0xU.js';
|
|
4
|
+
export { A as Article, f as ArticleAuthor, g as ArticleCategory, h as ArticleTag, D as Document, I as Image, i as Post, j as PostCategory, T as Tenant, V as Video } from './payload-types-BnIET0xU.js';
|
|
5
|
+
export { C as CollectionType, P as Market, a as Product, b as ProductCollection, c as ProductVariant } from './types-D1y4TgQm.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-1auUEYrl.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-CRxPTDGt.js';
|
|
8
8
|
export { a as RealtimeConnection, R as RealtimeEvent, b as RealtimeListener } from './realtime-D7HtUpqt.js';
|
|
9
9
|
export { a as IMAGE_SIZES, I as ImageData, b as ImageDataSizeEntry, c as ImageDataSizes, d as ImagePalette, e as ImagePlaceholderOptions, g as getImageLqip, f as getImagePalette, h as getImagePlaceholderStyle, i as getImageSrcSet, j as getImageUrl } from './image-BDjHp03R.js';
|
|
10
10
|
export { V as VideoGifOptions, a as VideoThumbnailOptions, g as getVideoGif, b as getVideoMp4Url, c as getVideoStoryboard, d as getVideoStreamUrl, e as getVideoThumbnail } from './video-WR_TFO9a.js';
|
|
11
|
-
export { Analytics, AnalyticsConfig, createAnalytics } from './analytics.js';
|
|
12
11
|
export { ApiError, AuthError, COMMERCE_ERROR_CODES, CommerceErrorCode, CommerceSDKError, ConfigError, ConflictError, GoneError, NetworkError, NotFoundError, PermissionError, RateLimitError, SDKError, ServiceUnavailableError, TimeoutError, UsageLimitError, ValidationError, createAuthError, createConflictError, createNotFoundError, createPermissionError, createRateLimitError, getSDKErrorReason, isApiError, isAuthError, isCommerceSDKError, isConfigError, isConflictError, isGoneError, isNetworkError, isNotFoundError, isPermissionError, isRateLimitError, isSDKError, isServiceUnavailableError, isTimeoutError, isUsageLimitError, isValidationError } from './errors.js';
|
|
13
12
|
|
|
14
13
|
declare function isCommerceIdempotencyKey(value: unknown): value is string;
|
|
@@ -26,9 +25,10 @@ type MembershipApiOptions = ServerApiOptions;
|
|
|
26
25
|
declare class MembershipApi extends BaseApi {
|
|
27
26
|
constructor(options: MembershipApiOptions);
|
|
28
27
|
/**
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
* `
|
|
28
|
+
* Prepare a delegated first charge for a paid Membership, or immediately
|
|
29
|
+
* start a trial. For a paid response, charge through the tenant PSP with
|
|
30
|
+
* `firstCharge.idempotencyKey`, then post the existing signed charge result
|
|
31
|
+
* to activate the membership.
|
|
32
32
|
*
|
|
33
33
|
* `subscribeIntentKey` is used as the HTTP idempotency key so the call is
|
|
34
34
|
* safely retryable.
|
|
@@ -41,6 +41,13 @@ declare class MembershipApi extends BaseApi {
|
|
|
41
41
|
* immediately and revoke membership groups now.
|
|
42
42
|
*/
|
|
43
43
|
cancel(params: CancelMembershipParams): Promise<CancelMembershipResponse>;
|
|
44
|
+
/**
|
|
45
|
+
* Store/read only app-encrypted billing ciphertext for the Membership's
|
|
46
|
+
* method. The tenant server receives the non-secret restore generation from
|
|
47
|
+
* its platform operator's integration configuration; it is not discovered
|
|
48
|
+
* from an unauthenticated endpoint.
|
|
49
|
+
*/
|
|
50
|
+
billingCustody(params: BillingCustodyParams): Promise<BillingCustodyResponse>;
|
|
44
51
|
}
|
|
45
52
|
|
|
46
53
|
type ProductDetailStockMergeStatus = 'complete' | 'partial';
|
|
@@ -71,4 +78,4 @@ declare function resolveRelation<T>(ref: unknown): T | null;
|
|
|
71
78
|
|
|
72
79
|
declare function createClient(options: ClientConfig): RootClientWithEvents;
|
|
73
80
|
|
|
74
|
-
export { BaseApi, CancelMembershipParams, CancelMembershipResponse, ClientConfig, MembershipApi, type MembershipApiOptions, type MergedProductDetailResult, ProductDetail, ProductDetailCatalog, type ProductDetailStockMergeStatus, RootClientWithEvents, ServerApiOptions, StockSnapshotResponse, SubscribeMembershipParams, SubscribeMembershipResponse, assertCommerceIdempotencyKey, createClient, createCommerceIdempotencyKey, formatOrderName, generateOrderNumber, isCommerceIdempotencyKey, mergeProductDetailWithStock, resolveRelation };
|
|
81
|
+
export { BaseApi, BillingCustodyParams, BillingCustodyResponse, CancelMembershipParams, CancelMembershipResponse, ClientConfig, MembershipApi, type MembershipApiOptions, type MergedProductDetailResult, ProductDetail, ProductDetailCatalog, type ProductDetailStockMergeStatus, RootClientWithEvents, ServerApiOptions, StockSnapshotResponse, SubscribeMembershipParams, SubscribeMembershipResponse, assertCommerceIdempotencyKey, createClient, createCommerceIdempotencyKey, formatOrderName, generateOrderNumber, isCommerceIdempotencyKey, mergeProductDetailWithStock, resolveRelation };
|