@01.software/sdk 0.45.0 → 0.46.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 +14 -0
- package/MIGRATION.md +19 -0
- package/README.md +49 -4
- package/dist/client.cjs +13 -0
- 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 +13 -0
- package/dist/client.js.map +1 -1
- package/dist/{collection-client-Ckfusuee.d.ts → collection-client-BEGXnfQe.d.ts} +4 -4
- package/dist/{collection-client-BSo7VXQE.d.cts → collection-client-L2rEgBaR.d.cts} +4 -4
- package/dist/{const-CaPq2AE4.d.ts → const-GYVwlXLr.d.ts} +1 -1
- package/dist/{const-BAG0MH0u.d.cts → const-y0eipvnQ.d.cts} +1 -1
- package/dist/{index-BNICJxBL.d.ts → index-Bei4WlVw.d.ts} +3 -3
- package/dist/{index-YGrZrxNn.d.cts → index-BfYL6Qb1.d.cts} +3 -3
- package/dist/index.cjs +13 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +13 -0
- package/dist/index.js.map +1 -1
- package/dist/{payload-types-CJZuXcgF.d.cts → payload-types-3WNyC0gk.d.cts} +5 -0
- package/dist/{payload-types-CJZuXcgF.d.ts → payload-types-3WNyC0gk.d.ts} +5 -0
- package/dist/query.cjs +8 -0
- 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 +8 -0
- 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 +99 -1
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +7 -7
- package/dist/server.d.ts +7 -7
- package/dist/server.js +99 -1
- package/dist/server.js.map +1 -1
- package/dist/{types-D5p7-m1l.d.cts → types-CAicTn-o.d.cts} +2 -2
- package/dist/{types-C4WuJfw7.d.cts → types-CDJ2M-MJ.d.cts} +43 -4
- package/dist/{types-BC6rVmJa.d.ts → types-DpSyNTxy.d.ts} +2 -2
- package/dist/{types-BlOvjoTX.d.ts → types-mIROvhhP.d.ts} +43 -4
- 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 +4 -4
- package/dist/webhook.d.ts +4 -4
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { A as AddItemParams, i as ApiQueryOptions,
|
|
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, t as CustomerPasswordResetWebhookData, u as CustomerPasswordResetWebhookEvent, O as ORDER_CHANGED_EVENT_TYPE, v as OrderChangedWebhookEvent, W as WebhookChange, w as WebhookCommerceNotificationChange, x as WebhookEvent, y as WebhookHandler, z as WebhookKnownOperation, A as WebhookOperation, B as WebhookOptions, D as WebhookOrderChange, E as WebhookOrderMoved, F as WebhookOrderScope, G as createCommerceEmailWebhookHandler, H as createCommerceNotificationWebhookHandler, I as createCustomerAuthWebhookHandler, J as createTypedWebhookHandler, K as defineCommerceEmailConfig, L as getCommerceNotificationIdempotencyKey, M as handleWebhook, N as isCommerceNotificationWebhookEvent, P as isCustomerPasswordResetWebhookEvent, Q as isOrderChangedWebhookEvent, R as isValidWebhookEvent, S as isWebhookCollection, T as isWebhookOperation } from './index-
|
|
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 { c4 as BaseApi, aB as ServerApiOptions, aE as SubscribeMembershipParams, aF as SubscribeMembershipResponse, e as CancelMembershipParams, f as CancelMembershipResponse, c5 as ProductDetail, c6 as ProductDetailCatalog, c7 as StockSnapshotResponse, c8 as ProductSelectionMediaSource, c9 as ProductDisplayMediaSource, ca as ResolveProductSelectionMediaInput, cb as ResolveProductSelectionMediaResult, cc as ProductSelectionMediaPointer, h as ClientConfig, cd as RootClientWithEvents } from './types-CDJ2M-MJ.cjs';
|
|
2
|
+
export { A as AddItemParams, i as ApiQueryOptions, ce as BulkImportFulfillmentsParams, cf as BulkImportFulfillmentsResponse, cg as CalculateShippingParams, ch as CalculateShippingResult, j as CancelBrowserPaymentSessionParams, ci as CancelOrderParams, cj as CancelOrderResponse, ck as CancelReasonCode, cl as CartDiscountCode, k as CartMergeParams, l as CartMergeResult, m as CartMineResult, n as CartMutationResult, cm as CartWarning, cn as CartWarningCode, o as CheckoutAbandonedReason, p as CheckoutAmounts, q as CheckoutOrderReference, r as CheckoutPaymentSessionRef, s as CheckoutShippingAddress, t as ClearCartParams, ah as Client, u as ClientMetadata, g as ClientState, ah as ClientType, co as Comment, C as CommerceClient, cp as CommerceClientOptions, a as CommunityClient, cq as CommunityClientOptions, cr as CommunityComment, cs as CommunityCommentListSort, ct as CommunityPost, cu as CommunityPostCategory, cv as CommunityPostListSort, cw as CommunityPostTag, cx as CommunityPublicAuthorSnapshot, cy as CommunityPublicMediaAsset, cz as CommunityPublicReference, cA as CompatibilityProductSelectionParamEvent, b as ContentClient, v as ContentClientOptions, w as CreateCartParams, x as CreateCartResult, y as CreateCheckoutParams, z as CreateCheckoutResult, cB as CreateFulfillmentParams, B as CreatePaymentSessionParams, cC as CreateReturnParams, bP as CustomerAuth, cD as CustomerAuthOptions, bR as CustomerAuthResponse, cE as CustomerAuthorizationUrlInput, cF as CustomerAuthorizationUrlResult, bS as CustomerLoginData, d as CustomerMembershipView, c as CustomerNamespace, cG as CustomerOAuth, cH as CustomerOAuthCallbackResult, cI as CustomerOAuthConfig, cJ as CustomerOAuthTokenSet, cK as CustomerOrderListOptions, bQ as CustomerProfile, bV as CustomerRefreshResponse, bU as CustomerRegisterData, bT as CustomerRegisterResponse, D as CustomerSnapshot, F as DebugConfig, G as DeepPartial, cL as DiscountApi, cM as DiscountApiOptions, cN as DiscountErrorReasonCode, b3 as EventAdmissionAvailabilityParams, b4 as EventAdmissionAvailabilityResponse, b5 as EventAdmissionAvailabilityType, b6 as EventAdmissionPricePresentment, b7 as EventGuestCancelParams, b8 as EventGuestRegistration, b9 as EventGuestRegistrationResponse, ba as EventRegistrationAnswerInput, bb as EventRegistrationAttendeeInput, bc as EventRegistrationPublic, bd as EventRegistrationRegisterParams, be as EventRegistrationRegisterResponse, bf as EventsCalendarItem, E as EventsClient, bg as EventsClientOptions, bh as EventsDateParam, bi as EventsExternalSource, bj as EventsLocation, bk as EventsOccurrenceLocation, bl as EventsRangeEvent, bm as EventsRangeOccurrence, bn as EventsRangeParams, bo as EventsRangeResponse, bp as EventsTaxonomyItem, H as ExtractArrayType, cO as FeaturedImagePointerInput, cP as GetOrderByPaymentIdParams, cQ as LegacyProductSelectionParamEvent, cR as ListingGroupsParams, cS as MAX_CART_LINE_ADMISSIONS, cT as MarketDTO, cU as MediaValue, I as MembershipStatus, J as Money, cV as NormalizedOptionSwatch, cW as NormalizedProductSelection, O as OpenCheckoutPaymentState, cX as OrderApi, cY as OrderApiOptions, cZ as OrderByPaymentResult, c_ as PRODUCT_PLP_FIND_OPTIONS, c$ as PRODUCT_UPSERT_READONLY_FIELD_REASON, d0 as PRODUCT_UPSERT_UNKNOWN_FIELD_REASON, P as PayloadFindResponse, K as PayloadMutationResponse, L as PaymentFailureReason, N as PaymentNextAction, Q as PaymentProviderStatus, R as PaymentReconciliationReason, S as PaymentSessionRole, d1 as PrepareFulfillmentOrderParams, d2 as PrepareFulfillmentOrderResponse, d3 as ProductApi, d4 as ProductApiOptions, d5 as ProductDetailBrand, b_ as ProductDetailCatalogResult, d6 as ProductDetailCatalogVariant, d7 as ProductDetailCategory, d8 as ProductDetailImage, d9 as ProductDetailImageMedia, da as ProductDetailMedia, db as ProductDetailOption, dc as ProductDetailOptionValue, bZ as ProductDetailParams, dd as ProductDetailResult, de as ProductDetailTag, df as ProductDetailUnavailableReason, dg as ProductDetailVariant, dh as ProductDetailVariantOptionValue, di as ProductDetailVideo, dj as ProductFallbackLocaleOption, dk as ProductHrefGroup, dl as ProductHrefOptions, dm as ProductHrefProduct, dn as ProductListingCard, dp as ProductListingCardOptions, dq as ProductListingCardPriceRange, dr as ProductListingCardRepresentativeVariant, ds as ProductListingGroup, dt as ProductListingGroupCatalogSummary, du as ProductListingGroupCatalogVariant, dv as ProductListingGroupProjection, dw as ProductListingGroupSummary, dx as ProductListingGroupVariant, c1 as ProductListingGroupsCatalogItem, dy as ProductListingGroupsCatalogProduct, dz as ProductListingGroupsCatalogResponse, c3 as ProductListingGroupsItem, dA as ProductListingGroupsProduct, dB as ProductListingGroupsResponse, bY as ProductListingPageBaseParams, b$ as ProductListingPageCatalogParams, dC as ProductListingPageFilters, c2 as ProductListingPageFullParams, bX as ProductListingPageParams, c0 as ProductListingPageResult, dD as ProductListingPageSort, dE as ProductListingProductShape, dF as ProductListingSwatch, dG as ProductLocaleOption, dH as ProductLocaleReadParams, dI as ProductLocalizedText, dJ as ProductLocalizedValue, dK as ProductMediaResolutionSource, dL as ProductMoneyRange, dM as ProductOptionMatrix, dN as ProductOptionMatrixOption, dO as ProductOptionMatrixValue, dP as ProductOptionMatrixVariant, dQ as ProductOptionShape, dR as ProductOptionValueShape, dS as ProductOptionValueSwatch, dT as ProductOptionValueSwatchInput, dU as ProductPriceRange, dV as ProductSelectionAvailableSwatch, dW as ProductSelectionAvailableValue, dX as ProductSelectionByOptionValue, dY as ProductSelectionCodecError, dZ as ProductSelectionCodecOptions, d_ as ProductSelectionInput, d$ as ProductSelectionOptionValue, e0 as ProductSelectionResolution, e1 as ProductSelectionResolutionContext, e2 as ProductSelectionUrlEmit, e3 as ProductSelectionVariant, e4 as ProductUpsertFieldValidationErrorBody, e5 as ProductUpsertFieldValidationErrorReason, T as ProductUpsertInput, U as ProductUpsertParams, V as ProductUpsertResponse, W as ProductUpsertVariantInput, e6 as ProductVariantShape, X as PublicAttribute, Y as PublicCaptureEvidence, Z as PublicCart, _ as PublicCartItem, $ as PublicCartItemAdmission, a0 as PublicCartMarket, a1 as PublicCartReference, a2 as PublicCheckout, e7 as PublicCheckoutBase, a3 as PublicCheckoutItem, a4 as PublicMediaAsset, a5 as PublicMediaSize, a6 as PublicOrder, a7 as PublicOrderAmounts, a8 as PublicOrderItem, a9 as PublicOrderReference, aa as PublicPaymentSession, bO as PublicReadQueryOptions, ab as ReconciliationRequired, ac as RemoveItemParams, e8 as RequestOptions, e9 as ResolveCancelRefundFailedResponse, ea as ResolveCancelRefundOutcome, eb as ResolveCancelRefundParams, ec as ResolveCancelRefundResponse, ed as ResolveCancelRefundSucceededResponse, ee as ResolveProductDisplayMediaInput, ef as ResolveProductDisplayMediaResult, eg as ResolvedCatalogPrice, ad as RetrieveBrowserPaymentSessionParams, ae as RetrieveCartParams, af as RetrieveCheckoutParams, bt as RetrieveServerCheckoutParams, ag as RetryConfig, eh as ReturnCancellationReasonCode, ei as ReturnItem, ej as ReturnReason, ek as ReturnWithRefundItem, el as ReturnWithRefundParams, ah as RootClient, ai as RootCollectionClient, aj as RootReadOnlyQueryBuilder, em as ShippingApi, en as ShippingApiOptions, ak as ShippingLine, al as Sort, am as SpentCheckoutPaymentState, eo as StockCheckParams, ep as StockCheckResponse, eq as StockCheckResult, er as StockSnapshotItem, es as StockSnapshotParams, an as StorefrontContentListOptions, ao as StorefrontContentReference, ap as StorefrontGalleryItem, aq as StorefrontGalleryItemsListOptions, ar as StorefrontGalleryItemsSort, as as StorefrontLink, at as StorefrontLinksListOptions, au as StorefrontLinksSort, av as UpdateCartAttributesParams, aw as UpdateDiscountCodesParams, et as UpdateFulfillmentParams, ax as UpdateItemParams, eu as UpdateOrderParams, bW as UpdateProfileData, ev as UpdateReturnParams, ew as ValidateDiscountParams, ex as ValidateDiscountResult, ay as VariantInput, az as Where, ey as WithIdempotencyKey, ez as buildProductHref, eA as buildProductListingCard, eB as buildProductListingGroupProjection, eC as buildProductListingGroupsByOption, eD as buildProductOptionMatrix, eE as buildProductOptionMatrixFromDetail, eF as createProductSelectionCodec, eG as getAvailableOptionValues, eH as getProductSelectionImages, eI as getSelectedValueByOptionId, eJ as getVariantAvailableForSale, eK as getVariantAvailableStock, eL as isProductUpsertFieldValidationErrorBody, eM as normalizeProductSelection, eN as normalizeProductSelectionFromMatrix, eO as normalizeSelectedValueIds, eP as parseProductSelection, eQ as projectProductToListingShape, eR as resolveFeaturedImagePointer, eS as resolveProductDisplayMedia, eT as resolveProductSelection, eU as resolveProductSelectionFromMatrix, eV as resolveProductSelectionMedia, eW as resolveVariantForSelection, eX as selectNext, eY as selectedSwatchMediaItemId, eZ as stringifyProductSelection, e_ as toShopifyPriceRangeV2 } from './types-CDJ2M-MJ.cjs';
|
|
3
|
+
import { P as Product } from './payload-types-3WNyC0gk.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-3WNyC0gk.cjs';
|
|
5
|
+
export { C as CollectionType, P as Market, a as Product, b as ProductCollection, c as ProductVariant } from './types-CAicTn-o.cjs';
|
|
6
|
+
export { C as COMMERCE_NOTIFICATION_EVENTS, a as COMMERCE_NOTIFICATION_EVENT_TYPE, b as COMMERCE_NOTIFICATION_OPERATION, c as CUSTOMER_PASSWORD_RESET_OPERATION, d as CollectionWebhookOperation, e as CommerceEmailChannel, f as CommerceEmailConfig, g as CommerceEmailEventConfig, h as CommerceEmailEventHandlers, i as CommerceEmailHandlerContext, j as CommerceNotification, k as CommerceNotificationData, l as CommerceNotificationEventHandlers, m as CommerceNotificationEventName, n as CommerceNotificationHandlerContext, o as CommerceNotificationSource, p as CommerceNotificationSourceCollection, q as CommerceNotificationWebhookEvent, r as CustomerAuthWebhookEvent, s as CustomerAuthWebhookHandlers, t as CustomerPasswordResetWebhookData, u as CustomerPasswordResetWebhookEvent, O as ORDER_CHANGED_EVENT_TYPE, v as OrderChangedWebhookEvent, W as WebhookChange, w as WebhookCommerceNotificationChange, x as WebhookEvent, y as WebhookHandler, z as WebhookKnownOperation, A as WebhookOperation, B as WebhookOptions, D as WebhookOrderChange, E as WebhookOrderMoved, F as WebhookOrderScope, G as createCommerceEmailWebhookHandler, H as createCommerceNotificationWebhookHandler, I as createCustomerAuthWebhookHandler, J as createTypedWebhookHandler, K as defineCommerceEmailConfig, L as getCommerceNotificationIdempotencyKey, M as handleWebhook, N as isCommerceNotificationWebhookEvent, P as isCustomerPasswordResetWebhookEvent, Q as isOrderChangedWebhookEvent, R as isValidWebhookEvent, S as isWebhookCollection, T as isWebhookOperation } from './index-BfYL6Qb1.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-y0eipvnQ.cjs';
|
|
8
8
|
export { a as RealtimeConnection, R as RealtimeEvent, b as RealtimeListener } from './realtime-D7HtUpqt.cjs';
|
|
9
9
|
export { a as IMAGE_SIZES, I as ImageData, b as ImageDataSizeEntry, c as ImageDataSizes, d as ImagePalette, e as ImagePlaceholderOptions, g as getImageLqip, f as getImagePalette, h as getImagePlaceholderStyle, i as getImageSrcSet, j as getImageUrl } from './image-BDjHp03R.cjs';
|
|
10
10
|
export { V as VideoGifOptions, a as VideoThumbnailOptions, g as getVideoGif, b as getVideoMp4Url, c as getVideoStoryboard, d as getVideoStreamUrl, e as getVideoThumbnail } from './video-WR_TFO9a.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { A as AddItemParams, i as ApiQueryOptions,
|
|
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, t as CustomerPasswordResetWebhookData, u as CustomerPasswordResetWebhookEvent, O as ORDER_CHANGED_EVENT_TYPE, v as OrderChangedWebhookEvent, W as WebhookChange, w as WebhookCommerceNotificationChange, x as WebhookEvent, y as WebhookHandler, z as WebhookKnownOperation, A as WebhookOperation, B as WebhookOptions, D as WebhookOrderChange, E as WebhookOrderMoved, F as WebhookOrderScope, G as createCommerceEmailWebhookHandler, H as createCommerceNotificationWebhookHandler, I as createCustomerAuthWebhookHandler, J as createTypedWebhookHandler, K as defineCommerceEmailConfig, L as getCommerceNotificationIdempotencyKey, M as handleWebhook, N as isCommerceNotificationWebhookEvent, P as isCustomerPasswordResetWebhookEvent, Q as isOrderChangedWebhookEvent, R as isValidWebhookEvent, S as isWebhookCollection, T as isWebhookOperation } from './index-
|
|
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 { c4 as BaseApi, aB as ServerApiOptions, aE as SubscribeMembershipParams, aF as SubscribeMembershipResponse, e as CancelMembershipParams, f as CancelMembershipResponse, c5 as ProductDetail, c6 as ProductDetailCatalog, c7 as StockSnapshotResponse, c8 as ProductSelectionMediaSource, c9 as ProductDisplayMediaSource, ca as ResolveProductSelectionMediaInput, cb as ResolveProductSelectionMediaResult, cc as ProductSelectionMediaPointer, h as ClientConfig, cd as RootClientWithEvents } from './types-mIROvhhP.js';
|
|
2
|
+
export { A as AddItemParams, i as ApiQueryOptions, ce as BulkImportFulfillmentsParams, cf as BulkImportFulfillmentsResponse, cg as CalculateShippingParams, ch as CalculateShippingResult, j as CancelBrowserPaymentSessionParams, ci as CancelOrderParams, cj as CancelOrderResponse, ck as CancelReasonCode, cl as CartDiscountCode, k as CartMergeParams, l as CartMergeResult, m as CartMineResult, n as CartMutationResult, cm as CartWarning, cn as CartWarningCode, o as CheckoutAbandonedReason, p as CheckoutAmounts, q as CheckoutOrderReference, r as CheckoutPaymentSessionRef, s as CheckoutShippingAddress, t as ClearCartParams, ah as Client, u as ClientMetadata, g as ClientState, ah as ClientType, co as Comment, C as CommerceClient, cp as CommerceClientOptions, a as CommunityClient, cq as CommunityClientOptions, cr as CommunityComment, cs as CommunityCommentListSort, ct as CommunityPost, cu as CommunityPostCategory, cv as CommunityPostListSort, cw as CommunityPostTag, cx as CommunityPublicAuthorSnapshot, cy as CommunityPublicMediaAsset, cz as CommunityPublicReference, cA as CompatibilityProductSelectionParamEvent, b as ContentClient, v as ContentClientOptions, w as CreateCartParams, x as CreateCartResult, y as CreateCheckoutParams, z as CreateCheckoutResult, cB as CreateFulfillmentParams, B as CreatePaymentSessionParams, cC as CreateReturnParams, bP as CustomerAuth, cD as CustomerAuthOptions, bR as CustomerAuthResponse, cE as CustomerAuthorizationUrlInput, cF as CustomerAuthorizationUrlResult, bS as CustomerLoginData, d as CustomerMembershipView, c as CustomerNamespace, cG as CustomerOAuth, cH as CustomerOAuthCallbackResult, cI as CustomerOAuthConfig, cJ as CustomerOAuthTokenSet, cK as CustomerOrderListOptions, bQ as CustomerProfile, bV as CustomerRefreshResponse, bU as CustomerRegisterData, bT as CustomerRegisterResponse, D as CustomerSnapshot, F as DebugConfig, G as DeepPartial, cL as DiscountApi, cM as DiscountApiOptions, cN as DiscountErrorReasonCode, b3 as EventAdmissionAvailabilityParams, b4 as EventAdmissionAvailabilityResponse, b5 as EventAdmissionAvailabilityType, b6 as EventAdmissionPricePresentment, b7 as EventGuestCancelParams, b8 as EventGuestRegistration, b9 as EventGuestRegistrationResponse, ba as EventRegistrationAnswerInput, bb as EventRegistrationAttendeeInput, bc as EventRegistrationPublic, bd as EventRegistrationRegisterParams, be as EventRegistrationRegisterResponse, bf as EventsCalendarItem, E as EventsClient, bg as EventsClientOptions, bh as EventsDateParam, bi as EventsExternalSource, bj as EventsLocation, bk as EventsOccurrenceLocation, bl as EventsRangeEvent, bm as EventsRangeOccurrence, bn as EventsRangeParams, bo as EventsRangeResponse, bp as EventsTaxonomyItem, H as ExtractArrayType, cO as FeaturedImagePointerInput, cP as GetOrderByPaymentIdParams, cQ as LegacyProductSelectionParamEvent, cR as ListingGroupsParams, cS as MAX_CART_LINE_ADMISSIONS, cT as MarketDTO, cU as MediaValue, I as MembershipStatus, J as Money, cV as NormalizedOptionSwatch, cW as NormalizedProductSelection, O as OpenCheckoutPaymentState, cX as OrderApi, cY as OrderApiOptions, cZ as OrderByPaymentResult, c_ as PRODUCT_PLP_FIND_OPTIONS, c$ as PRODUCT_UPSERT_READONLY_FIELD_REASON, d0 as PRODUCT_UPSERT_UNKNOWN_FIELD_REASON, P as PayloadFindResponse, K as PayloadMutationResponse, L as PaymentFailureReason, N as PaymentNextAction, Q as PaymentProviderStatus, R as PaymentReconciliationReason, S as PaymentSessionRole, d1 as PrepareFulfillmentOrderParams, d2 as PrepareFulfillmentOrderResponse, d3 as ProductApi, d4 as ProductApiOptions, d5 as ProductDetailBrand, b_ as ProductDetailCatalogResult, d6 as ProductDetailCatalogVariant, d7 as ProductDetailCategory, d8 as ProductDetailImage, d9 as ProductDetailImageMedia, da as ProductDetailMedia, db as ProductDetailOption, dc as ProductDetailOptionValue, bZ as ProductDetailParams, dd as ProductDetailResult, de as ProductDetailTag, df as ProductDetailUnavailableReason, dg as ProductDetailVariant, dh as ProductDetailVariantOptionValue, di as ProductDetailVideo, dj as ProductFallbackLocaleOption, dk as ProductHrefGroup, dl as ProductHrefOptions, dm as ProductHrefProduct, dn as ProductListingCard, dp as ProductListingCardOptions, dq as ProductListingCardPriceRange, dr as ProductListingCardRepresentativeVariant, ds as ProductListingGroup, dt as ProductListingGroupCatalogSummary, du as ProductListingGroupCatalogVariant, dv as ProductListingGroupProjection, dw as ProductListingGroupSummary, dx as ProductListingGroupVariant, c1 as ProductListingGroupsCatalogItem, dy as ProductListingGroupsCatalogProduct, dz as ProductListingGroupsCatalogResponse, c3 as ProductListingGroupsItem, dA as ProductListingGroupsProduct, dB as ProductListingGroupsResponse, bY as ProductListingPageBaseParams, b$ as ProductListingPageCatalogParams, dC as ProductListingPageFilters, c2 as ProductListingPageFullParams, bX as ProductListingPageParams, c0 as ProductListingPageResult, dD as ProductListingPageSort, dE as ProductListingProductShape, dF as ProductListingSwatch, dG as ProductLocaleOption, dH as ProductLocaleReadParams, dI as ProductLocalizedText, dJ as ProductLocalizedValue, dK as ProductMediaResolutionSource, dL as ProductMoneyRange, dM as ProductOptionMatrix, dN as ProductOptionMatrixOption, dO as ProductOptionMatrixValue, dP as ProductOptionMatrixVariant, dQ as ProductOptionShape, dR as ProductOptionValueShape, dS as ProductOptionValueSwatch, dT as ProductOptionValueSwatchInput, dU as ProductPriceRange, dV as ProductSelectionAvailableSwatch, dW as ProductSelectionAvailableValue, dX as ProductSelectionByOptionValue, dY as ProductSelectionCodecError, dZ as ProductSelectionCodecOptions, d_ as ProductSelectionInput, d$ as ProductSelectionOptionValue, e0 as ProductSelectionResolution, e1 as ProductSelectionResolutionContext, e2 as ProductSelectionUrlEmit, e3 as ProductSelectionVariant, e4 as ProductUpsertFieldValidationErrorBody, e5 as ProductUpsertFieldValidationErrorReason, T as ProductUpsertInput, U as ProductUpsertParams, V as ProductUpsertResponse, W as ProductUpsertVariantInput, e6 as ProductVariantShape, X as PublicAttribute, Y as PublicCaptureEvidence, Z as PublicCart, _ as PublicCartItem, $ as PublicCartItemAdmission, a0 as PublicCartMarket, a1 as PublicCartReference, a2 as PublicCheckout, e7 as PublicCheckoutBase, a3 as PublicCheckoutItem, a4 as PublicMediaAsset, a5 as PublicMediaSize, a6 as PublicOrder, a7 as PublicOrderAmounts, a8 as PublicOrderItem, a9 as PublicOrderReference, aa as PublicPaymentSession, bO as PublicReadQueryOptions, ab as ReconciliationRequired, ac as RemoveItemParams, e8 as RequestOptions, e9 as ResolveCancelRefundFailedResponse, ea as ResolveCancelRefundOutcome, eb as ResolveCancelRefundParams, ec as ResolveCancelRefundResponse, ed as ResolveCancelRefundSucceededResponse, ee as ResolveProductDisplayMediaInput, ef as ResolveProductDisplayMediaResult, eg as ResolvedCatalogPrice, ad as RetrieveBrowserPaymentSessionParams, ae as RetrieveCartParams, af as RetrieveCheckoutParams, bt as RetrieveServerCheckoutParams, ag as RetryConfig, eh as ReturnCancellationReasonCode, ei as ReturnItem, ej as ReturnReason, ek as ReturnWithRefundItem, el as ReturnWithRefundParams, ah as RootClient, ai as RootCollectionClient, aj as RootReadOnlyQueryBuilder, em as ShippingApi, en as ShippingApiOptions, ak as ShippingLine, al as Sort, am as SpentCheckoutPaymentState, eo as StockCheckParams, ep as StockCheckResponse, eq as StockCheckResult, er as StockSnapshotItem, es as StockSnapshotParams, an as StorefrontContentListOptions, ao as StorefrontContentReference, ap as StorefrontGalleryItem, aq as StorefrontGalleryItemsListOptions, ar as StorefrontGalleryItemsSort, as as StorefrontLink, at as StorefrontLinksListOptions, au as StorefrontLinksSort, av as UpdateCartAttributesParams, aw as UpdateDiscountCodesParams, et as UpdateFulfillmentParams, ax as UpdateItemParams, eu as UpdateOrderParams, bW as UpdateProfileData, ev as UpdateReturnParams, ew as ValidateDiscountParams, ex as ValidateDiscountResult, ay as VariantInput, az as Where, ey as WithIdempotencyKey, ez as buildProductHref, eA as buildProductListingCard, eB as buildProductListingGroupProjection, eC as buildProductListingGroupsByOption, eD as buildProductOptionMatrix, eE as buildProductOptionMatrixFromDetail, eF as createProductSelectionCodec, eG as getAvailableOptionValues, eH as getProductSelectionImages, eI as getSelectedValueByOptionId, eJ as getVariantAvailableForSale, eK as getVariantAvailableStock, eL as isProductUpsertFieldValidationErrorBody, eM as normalizeProductSelection, eN as normalizeProductSelectionFromMatrix, eO as normalizeSelectedValueIds, eP as parseProductSelection, eQ as projectProductToListingShape, eR as resolveFeaturedImagePointer, eS as resolveProductDisplayMedia, eT as resolveProductSelection, eU as resolveProductSelectionFromMatrix, eV as resolveProductSelectionMedia, eW as resolveVariantForSelection, eX as selectNext, eY as selectedSwatchMediaItemId, eZ as stringifyProductSelection, e_ as toShopifyPriceRangeV2 } from './types-mIROvhhP.js';
|
|
3
|
+
import { P as Product } from './payload-types-3WNyC0gk.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-3WNyC0gk.js';
|
|
5
|
+
export { C as CollectionType, P as Market, a as Product, b as ProductCollection, c as ProductVariant } from './types-DpSyNTxy.js';
|
|
6
|
+
export { C as COMMERCE_NOTIFICATION_EVENTS, a as COMMERCE_NOTIFICATION_EVENT_TYPE, b as COMMERCE_NOTIFICATION_OPERATION, c as CUSTOMER_PASSWORD_RESET_OPERATION, d as CollectionWebhookOperation, e as CommerceEmailChannel, f as CommerceEmailConfig, g as CommerceEmailEventConfig, h as CommerceEmailEventHandlers, i as CommerceEmailHandlerContext, j as CommerceNotification, k as CommerceNotificationData, l as CommerceNotificationEventHandlers, m as CommerceNotificationEventName, n as CommerceNotificationHandlerContext, o as CommerceNotificationSource, p as CommerceNotificationSourceCollection, q as CommerceNotificationWebhookEvent, r as CustomerAuthWebhookEvent, s as CustomerAuthWebhookHandlers, t as CustomerPasswordResetWebhookData, u as CustomerPasswordResetWebhookEvent, O as ORDER_CHANGED_EVENT_TYPE, v as OrderChangedWebhookEvent, W as WebhookChange, w as WebhookCommerceNotificationChange, x as WebhookEvent, y as WebhookHandler, z as WebhookKnownOperation, A as WebhookOperation, B as WebhookOptions, D as WebhookOrderChange, E as WebhookOrderMoved, F as WebhookOrderScope, G as createCommerceEmailWebhookHandler, H as createCommerceNotificationWebhookHandler, I as createCustomerAuthWebhookHandler, J as createTypedWebhookHandler, K as defineCommerceEmailConfig, L as getCommerceNotificationIdempotencyKey, M as handleWebhook, N as isCommerceNotificationWebhookEvent, P as isCustomerPasswordResetWebhookEvent, Q as isOrderChangedWebhookEvent, R as isValidWebhookEvent, S as isWebhookCollection, T as isWebhookOperation } from './index-Bei4WlVw.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-GYVwlXLr.js';
|
|
8
8
|
export { a as RealtimeConnection, R as RealtimeEvent, b as RealtimeListener } from './realtime-D7HtUpqt.js';
|
|
9
9
|
export { a as IMAGE_SIZES, I as ImageData, b as ImageDataSizeEntry, c as ImageDataSizes, d as ImagePalette, e as ImagePlaceholderOptions, g as getImageLqip, f as getImagePalette, h as getImagePlaceholderStyle, i as getImageSrcSet, j as getImageUrl } from './image-BDjHp03R.js';
|
|
10
10
|
export { V as VideoGifOptions, a as VideoThumbnailOptions, g as getVideoGif, b as getVideoMp4Url, c as getVideoStoryboard, d as getVideoStreamUrl, e as getVideoThumbnail } from './video-WR_TFO9a.js';
|
package/dist/index.js
CHANGED
|
@@ -420,6 +420,11 @@ function redactSensitiveHeaders(headers) {
|
|
|
420
420
|
redacted["x-preview-token"]
|
|
421
421
|
);
|
|
422
422
|
}
|
|
423
|
+
if (redacted["x-custom-payment-signature"]) {
|
|
424
|
+
redacted["x-custom-payment-signature"] = redactSensitiveHeader(
|
|
425
|
+
redacted["x-custom-payment-signature"]
|
|
426
|
+
);
|
|
427
|
+
}
|
|
423
428
|
return redacted;
|
|
424
429
|
}
|
|
425
430
|
function getErrorSuggestion(status) {
|
|
@@ -1420,6 +1425,14 @@ var COMMERCE_ENDPOINTS = {
|
|
|
1420
1425
|
create: endpoint("POST", "/api/payment-sessions/create"),
|
|
1421
1426
|
retrieve: endpoint("POST", "/api/payment-sessions/retrieve"),
|
|
1422
1427
|
cancel: endpoint("POST", "/api/payment-sessions/cancel"),
|
|
1428
|
+
custom: {
|
|
1429
|
+
create: sharedEndpoint(
|
|
1430
|
+
COMMERCE_ENDPOINT_OPERATIONS.paymentSessions.custom.create
|
|
1431
|
+
),
|
|
1432
|
+
confirm: sharedEndpoint(
|
|
1433
|
+
COMMERCE_ENDPOINT_OPERATIONS.paymentSessions.custom.confirm
|
|
1434
|
+
)
|
|
1435
|
+
},
|
|
1423
1436
|
server: {
|
|
1424
1437
|
create: endpoint("POST", "/api/payment-sessions/server/create"),
|
|
1425
1438
|
retrieve: endpoint("POST", "/api/payment-sessions/server/retrieve"),
|