@01.software/sdk 0.36.0 → 0.38.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/README.md +142 -55
- package/dist/analytics/react.cjs +33 -9
- package/dist/analytics/react.cjs.map +1 -1
- package/dist/analytics/react.d.cts +1 -1
- package/dist/analytics/react.d.ts +1 -1
- package/dist/analytics/react.js +33 -9
- package/dist/analytics/react.js.map +1 -1
- package/dist/analytics.cjs +30 -8
- package/dist/analytics.cjs.map +1 -1
- package/dist/analytics.d.cts +6 -0
- package/dist/analytics.d.ts +6 -0
- package/dist/analytics.js +30 -8
- package/dist/analytics.js.map +1 -1
- package/dist/client.cjs +150 -207
- 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 +150 -207
- package/dist/client.js.map +1 -1
- package/dist/{collection-client-Cv0D2w1Q.d.cts → collection-client-B0J9wMNE.d.cts} +5 -5
- package/dist/{collection-client-Bq5Zd7p7.d.ts → collection-client-BroIWHY1.d.ts} +5 -5
- package/dist/const-6XHz_jej.d.ts +32 -0
- package/dist/const-B5KT72c7.d.cts +32 -0
- package/dist/{image-BDz2-AaO.d.cts → image-BDjHp03R.d.cts} +13 -9
- package/dist/{image-BDz2-AaO.d.ts → image-BDjHp03R.d.ts} +13 -9
- package/dist/{index-DTSXUYkr.d.ts → index-BOLQxveo.d.cts} +9 -6
- package/dist/{index-BHDKJ6B3.d.cts → index-CSwR2HSg.d.ts} +9 -6
- package/dist/index.cjs +256 -244
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -11
- package/dist/index.d.ts +12 -11
- package/dist/index.js +256 -244
- package/dist/index.js.map +1 -1
- package/dist/metadata.cjs +5 -3
- package/dist/metadata.cjs.map +1 -1
- package/dist/metadata.js +5 -3
- package/dist/metadata.js.map +1 -1
- package/dist/{payload-types-BCui2Oml.d.cts → payload-types-m3jjhxk9.d.cts} +669 -184
- package/dist/{payload-types-BCui2Oml.d.ts → payload-types-m3jjhxk9.d.ts} +669 -184
- package/dist/query.cjs +3 -1033
- package/dist/query.cjs.map +1 -1
- package/dist/query.d.cts +13 -13
- package/dist/query.d.ts +13 -13
- package/dist/query.js +3 -1033
- 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 +121 -85
- 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 +121 -85
- package/dist/server.js.map +1 -1
- package/dist/{types-Dib-zdK6.d.cts → types-CIGscmus.d.cts} +1471 -1100
- package/dist/{types-3qV6sY7T.d.ts → types-Cmrd1ezc.d.ts} +1 -15
- package/dist/{types-CEzLf3PX.d.cts → types-D0ubzQw0.d.cts} +1 -15
- package/dist/{types-DK9EnLwJ.d.ts → types-D2xYdz4P.d.ts} +1471 -1100
- package/dist/ui/canvas.cjs +15 -5
- package/dist/ui/canvas.cjs.map +1 -1
- package/dist/ui/canvas.d.cts +1 -1
- package/dist/ui/canvas.d.ts +1 -1
- package/dist/ui/canvas.js +15 -5
- package/dist/ui/canvas.js.map +1 -1
- package/dist/ui/form.d.cts +1 -1
- package/dist/ui/form.d.ts +1 -1
- package/dist/ui/image.cjs +15 -5
- package/dist/ui/image.cjs.map +1 -1
- package/dist/ui/image.d.cts +1 -1
- package/dist/ui/image.d.ts +1 -1
- package/dist/ui/image.js +15 -5
- package/dist/ui/image.js.map +1 -1
- package/dist/ui/video.d.cts +1 -1
- package/dist/ui/video.d.ts +1 -1
- package/dist/webhook.cjs +5 -1
- package/dist/webhook.cjs.map +1 -1
- package/dist/webhook.d.cts +4 -4
- package/dist/webhook.d.ts +4 -4
- package/dist/webhook.js +5 -1
- package/dist/webhook.js.map +1 -1
- package/package.json +3 -3
- package/dist/const-BDUKFP9w.d.ts +0 -32
- package/dist/const-DVcM7Ac_.d.cts +0 -32
package/dist/index.d.cts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
import { P as Product } from './payload-types-
|
|
4
|
-
export { A as Article,
|
|
5
|
-
export { C as CollectionType, P as Product, a as ProductCollection } 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
|
|
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 { az as ProductDetail, aA as ProductDetailCatalog, aB as StockSnapshotResponse, aC as ProductSelectionMediaSource, aD as ProductDisplayMediaSource, aE as ResolveProductSelectionMediaInput, aF as ResolveProductSelectionMediaResult, aG as ProductSelectionMediaPointer, d as ClientConfig, aH as RootClientWithEvents } from './types-CIGscmus.cjs';
|
|
2
|
+
export { A as AddItemParams, e as ApiQueryOptions, f as ApplyDiscountParams, B as BaseApi, aI as BulkImportFulfillmentsParams, aJ as BulkImportFulfillmentsResponse, aK as CalculateShippingParams, aL as CalculateShippingResult, aM as CancelOrderParams, aN as CancelOrderReconciliationStatus, aO as CancelOrderResponse, aP as CancelReasonCode, aQ as CartApi, aR as CartApiOptions, g as CheckoutParams, h as ClearCartParams, w as Client, i as ClientMetadata, c as ClientState, w as ClientType, aS as Comment, C as CommerceClient, aT as CommerceClientOptions, a as CommunityClient, aU as CommunityClientOptions, aV as CommunityComment, aW as CommunityCommentListSort, aX as CommunityPost, aY as CommunityPostCategory, aZ as CommunityPostListSort, a_ as CommunityPostTag, a$ as CommunityPublicAuthorSnapshot, b0 as CommunityPublicMediaAsset, b1 as CommunityPublicReference, b2 as CompatibilityProductSelectionParamEvent, b3 as ConfirmPaymentParams, b4 as ConfirmPaymentResponse, b5 as CreateFulfillmentParams, b6 as CreateOrderItem, b7 as CreateOrderParams, b8 as CreateReturnParams, an as CustomerAuth, b9 as CustomerAuthOptions, ap as CustomerAuthResponse, aq as CustomerLoginData, b as CustomerNamespace, ao as CustomerProfile, at as CustomerRefreshResponse, as as CustomerRegisterData, ar as CustomerRegisterResponse, ba as CustomerSnapshot, D as DebugConfig, j as DeepPartial, bb as DiscountApi, bc as DiscountApiOptions, N as EventGuestCancelParams, O as EventGuestRegistration, Q as EventGuestRegistrationResponse, V as EventRegistrationAnswerInput, X as EventRegistrationAttendeeInput, Y as EventRegistrationPublic, Z as EventRegistrationRegisterParams, _ as EventRegistrationRegisterResponse, $ as EventsCalendarItem, E as EventsClient, a0 as EventsClientOptions, a1 as EventsDateParam, a2 as EventsExternalSource, a3 as EventsLocation, a4 as EventsOccurrenceLocation, a5 as EventsRangeEvent, a6 as EventsRangeOccurrence, a7 as EventsRangeParams, a8 as EventsRangeResponse, a9 as EventsTaxonomyItem, k as ExtractArrayType, bd as LegacyProductSelectionParamEvent, be as ListingGroupsParams, bf as ListingPrimaryImageFallbackInput, bg as MediaValue, bh as NormalizedOptionSwatch, bi as NormalizedProductSelection, bj as OrderApi, bk as OrderApiOptions, bl as PRODUCT_PLP_FIND_OPTIONS, bm as PRODUCT_UPSERT_READONLY_FIELD_REASON, bn as PRODUCT_UPSERT_UNKNOWN_FIELD_REASON, P as PayloadFindResponse, l as PayloadMutationResponse, bo as PrepareFulfillmentOrderParams, bp as PrepareFulfillmentOrderResponse, bq as ProductApi, br as ProductApiOptions, bs as ProductDetailBrand, bt as ProductDetailCatalogListing, bu as ProductDetailCatalogResult, bv as ProductDetailCatalogVariant, bw as ProductDetailCategory, bx as ProductDetailImage, by as ProductDetailImageMedia, bz as ProductDetailListing, bA as ProductDetailMedia, bB as ProductDetailOption, bC as ProductDetailOptionValue, av as ProductDetailParams, aw as ProductDetailResult, bD as ProductDetailTag, bE as ProductDetailUnavailableReason, bF as ProductDetailVariant, bG as ProductDetailVariantOptionValue, bH as ProductDetailVideo, bI as ProductHrefGroup, bJ as ProductHrefOptions, bK as ProductHrefProduct, bL as ProductListingCard, bM as ProductListingCardOptions, bN as ProductListingCardPriceRange, bO as ProductListingCardRepresentativeVariant, bP as ProductListingGroup, bQ as ProductListingGroupCatalogSummary, bR as ProductListingGroupCatalogVariant, bS as ProductListingGroupSummary, bT as ProductListingGroupVariant, ay as ProductListingGroupsCatalogItem, bU as ProductListingGroupsCatalogProduct, bV as ProductListingGroupsCatalogResponse, ax as ProductListingGroupsItem, bW as ProductListingGroupsProduct, bX as ProductListingGroupsResponse, bY as ProductListingProductShape, bZ as ProductListingProjection, b_ as ProductListingSwatch, b$ as ProductMediaResolutionSource, c0 as ProductOptionMatrix, c1 as ProductOptionMatrixOption, c2 as ProductOptionMatrixValue, c3 as ProductOptionMatrixVariant, c4 as ProductOptionShape, c5 as ProductOptionValueShape, c6 as ProductOptionValueSwatch, c7 as ProductOptionValueSwatchInput, c8 as ProductSelectionAvailableSwatch, c9 as ProductSelectionAvailableValue, ca as ProductSelectionByOptionValue, cb as ProductSelectionCodecError, cc as ProductSelectionCodecOptions, cd as ProductSelectionInput, ce as ProductSelectionOptionValue, cf as ProductSelectionResolution, cg as ProductSelectionResolutionContext, ch as ProductSelectionUrlEmit, ci as ProductSelectionVariant, cj as ProductUpsertFieldValidationErrorBody, ck as ProductUpsertFieldValidationErrorReason, cl as ProductVariantShape, m as PublicCart, n as PublicCartItem, o as PublicCartReference, p as PublicMediaAsset, q as PublicMediaSize, r as PublicOrder, s as PublicOrderItem, t as PublicOrderReference, R as RemoveDiscountParams, u as RemoveItemParams, cm as RequestOptions, cn as ResolveCancelRefundFailedResponse, co as ResolveCancelRefundOutcome, cp as ResolveCancelRefundParams, cq as ResolveCancelRefundResponse, cr as ResolveCancelRefundSucceededResponse, cs as ResolveProductDisplayMediaInput, ct as ResolveProductDisplayMediaResult, v as RetryConfig, cu as ReturnItem, cv as ReturnReason, cw as ReturnWithRefundItem, cx as ReturnWithRefundParams, w as RootClient, x as RootCollectionClient, y as RootReadOnlyQueryBuilder, z as ServerApiOptions, cy as ShippingApi, cz as ShippingApiOptions, S as Sort, cA as StockCheckParams, cB as StockCheckResponse, cC as StockCheckResult, cD as StockSnapshotItem, cE as StockSnapshotParams, cF as UpdateFulfillmentParams, U as UpdateItemParams, cG as UpdateOrderParams, au as UpdateProfileData, cH as UpdateReturnParams, cI as UpdateTransactionParams, cJ as ValidateDiscountParams, cK as ValidateDiscountResult, W as Where, cL as WithIdempotencyKey, cM as buildProductHref, cN as buildProductListingCard, cO as buildProductListingGroupsByOption, cP as buildProductListingProjection, cQ as buildProductOptionMatrix, cR as buildProductOptionMatrixFromDetail, cS as createProductSelectionCodec, cT as getAvailableOptionValues, cU as getProductSelectionImages, cV as getSelectedValueByOptionId, cW as isProductUpsertFieldValidationErrorBody, cX as normalizeProductSelection, cY as normalizeProductSelectionFromMatrix, cZ as normalizeSelectedValueIds, c_ as parseProductSelection, c$ as resolveListingPrimaryImagePointer, d0 as resolveProductDisplayMedia, d1 as resolveProductSelection, d2 as resolveProductSelectionFromMatrix, d3 as resolveProductSelectionMedia, d4 as resolveVariantForSelection, d5 as selectNext, d6 as selectedSwatchMediaItemId, d7 as stringifyProductSelection, d8 as toShopifyPriceRangeV2 } from './types-CIGscmus.cjs';
|
|
3
|
+
import { P as Product } from './payload-types-m3jjhxk9.cjs';
|
|
4
|
+
export { A as Article, d as ArticleAuthor, e as ArticleCategory, f as ArticleTag, g as Cart, h as CartItem, D as Document, I as Image, O as Order, i as Post, j as PostCategory, k as ProductVariant, T as Tenant, V as Video } from './payload-types-m3jjhxk9.cjs';
|
|
5
|
+
export { C as CollectionType, P as Product, a as ProductCollection } from './types-D0ubzQw0.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-BOLQxveo.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-B5KT72c7.cjs';
|
|
8
8
|
export { a as RealtimeConnection, R as RealtimeEvent, b as RealtimeListener } from './realtime-D7HtUpqt.cjs';
|
|
9
|
-
export { a as IMAGE_SIZES, I as ImageData, b as
|
|
9
|
+
export { a as IMAGE_SIZES, I as ImageData, b as ImageDataSizeEntry, c as ImageDataSizes, d as ImagePalette, e as ImagePlaceholderOptions, g as getImageLqip, f as getImagePalette, h as getImagePlaceholderStyle, i as getImageSrcSet, j as getImageUrl } from './image-BDjHp03R.cjs';
|
|
10
10
|
export { V as VideoGifOptions, a as VideoThumbnailOptions, g as getVideoGif, b as getVideoMp4Url, c as getVideoStoryboard, d as getVideoStreamUrl, e as getVideoThumbnail } from './video-WR_TFO9a.cjs';
|
|
11
11
|
export { Analytics, AnalyticsConfig, createAnalytics } from './analytics.cjs';
|
|
12
12
|
export { ApiError, AuthError, ConfigError, ConflictError, GoneError, NetworkError, NotFoundError, PermissionError, RateLimitError, SDKError, ServiceUnavailableError, TimeoutError, UsageLimitError, ValidationError, createAuthError, createConflictError, createNotFoundError, createPermissionError, createRateLimitError, isApiError, isAuthError, isConfigError, isConflictError, isGoneError, isNetworkError, isNotFoundError, isPermissionError, isRateLimitError, isSDKError, isServiceUnavailableError, isTimeoutError, isUsageLimitError, isValidationError } from './errors.cjs';
|
|
@@ -38,14 +38,14 @@ type ResolveProductMediaResult<TMedia> = Omit<ResolveProductSelectionMediaResult
|
|
|
38
38
|
source: MediaPointerSource;
|
|
39
39
|
};
|
|
40
40
|
/**
|
|
41
|
-
* @deprecated One-release shim for ADR
|
|
41
|
+
* @deprecated One-release shim for ADR 0025. Prefer
|
|
42
42
|
* `resolveProductSelectionMedia()`. Legacy direct-media fallbacks are ignored;
|
|
43
43
|
* callers fall through to product display media (`resolveProductDisplayMedia`)
|
|
44
44
|
* or `none`.
|
|
45
45
|
*/
|
|
46
46
|
declare function resolveProductMedia<TMedia>(input: ResolveProductMediaInput<TMedia>): ResolveProductMediaResult<TMedia>;
|
|
47
47
|
|
|
48
|
-
/** @deprecated ADR
|
|
48
|
+
/** @deprecated ADR 0025 replaces media sets with variant `images[]` subsets. */
|
|
49
49
|
type ProductMediaSetMatchType = 'default' | 'option-values' | 'exact-variant';
|
|
50
50
|
/** @deprecated Use `ResolveProductSelectionMediaInput` and variant `images[]`. */
|
|
51
51
|
type ProductMediaSetInput = {
|
|
@@ -92,7 +92,8 @@ declare const formatOrderName: (items: OrderItem[]) => string;
|
|
|
92
92
|
* @param ref - The relation field value (T, string, number, null, or undefined)
|
|
93
93
|
* @returns The resolved document object, or null if not populated
|
|
94
94
|
*/
|
|
95
|
-
declare
|
|
95
|
+
declare function resolveRelation<T>(ref: T | string | number | null | undefined): T | null;
|
|
96
|
+
declare function resolveRelation<T>(ref: unknown): T | null;
|
|
96
97
|
|
|
97
98
|
declare function createClient(options: ClientConfig): RootClientWithEvents;
|
|
98
99
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
import { P as Product } from './payload-types-
|
|
4
|
-
export { A as Article,
|
|
5
|
-
export { C as CollectionType, P as Product, a as ProductCollection } 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
|
|
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 { az as ProductDetail, aA as ProductDetailCatalog, aB as StockSnapshotResponse, aC as ProductSelectionMediaSource, aD as ProductDisplayMediaSource, aE as ResolveProductSelectionMediaInput, aF as ResolveProductSelectionMediaResult, aG as ProductSelectionMediaPointer, d as ClientConfig, aH as RootClientWithEvents } from './types-D2xYdz4P.js';
|
|
2
|
+
export { A as AddItemParams, e as ApiQueryOptions, f as ApplyDiscountParams, B as BaseApi, aI as BulkImportFulfillmentsParams, aJ as BulkImportFulfillmentsResponse, aK as CalculateShippingParams, aL as CalculateShippingResult, aM as CancelOrderParams, aN as CancelOrderReconciliationStatus, aO as CancelOrderResponse, aP as CancelReasonCode, aQ as CartApi, aR as CartApiOptions, g as CheckoutParams, h as ClearCartParams, w as Client, i as ClientMetadata, c as ClientState, w as ClientType, aS as Comment, C as CommerceClient, aT as CommerceClientOptions, a as CommunityClient, aU as CommunityClientOptions, aV as CommunityComment, aW as CommunityCommentListSort, aX as CommunityPost, aY as CommunityPostCategory, aZ as CommunityPostListSort, a_ as CommunityPostTag, a$ as CommunityPublicAuthorSnapshot, b0 as CommunityPublicMediaAsset, b1 as CommunityPublicReference, b2 as CompatibilityProductSelectionParamEvent, b3 as ConfirmPaymentParams, b4 as ConfirmPaymentResponse, b5 as CreateFulfillmentParams, b6 as CreateOrderItem, b7 as CreateOrderParams, b8 as CreateReturnParams, an as CustomerAuth, b9 as CustomerAuthOptions, ap as CustomerAuthResponse, aq as CustomerLoginData, b as CustomerNamespace, ao as CustomerProfile, at as CustomerRefreshResponse, as as CustomerRegisterData, ar as CustomerRegisterResponse, ba as CustomerSnapshot, D as DebugConfig, j as DeepPartial, bb as DiscountApi, bc as DiscountApiOptions, N as EventGuestCancelParams, O as EventGuestRegistration, Q as EventGuestRegistrationResponse, V as EventRegistrationAnswerInput, X as EventRegistrationAttendeeInput, Y as EventRegistrationPublic, Z as EventRegistrationRegisterParams, _ as EventRegistrationRegisterResponse, $ as EventsCalendarItem, E as EventsClient, a0 as EventsClientOptions, a1 as EventsDateParam, a2 as EventsExternalSource, a3 as EventsLocation, a4 as EventsOccurrenceLocation, a5 as EventsRangeEvent, a6 as EventsRangeOccurrence, a7 as EventsRangeParams, a8 as EventsRangeResponse, a9 as EventsTaxonomyItem, k as ExtractArrayType, bd as LegacyProductSelectionParamEvent, be as ListingGroupsParams, bf as ListingPrimaryImageFallbackInput, bg as MediaValue, bh as NormalizedOptionSwatch, bi as NormalizedProductSelection, bj as OrderApi, bk as OrderApiOptions, bl as PRODUCT_PLP_FIND_OPTIONS, bm as PRODUCT_UPSERT_READONLY_FIELD_REASON, bn as PRODUCT_UPSERT_UNKNOWN_FIELD_REASON, P as PayloadFindResponse, l as PayloadMutationResponse, bo as PrepareFulfillmentOrderParams, bp as PrepareFulfillmentOrderResponse, bq as ProductApi, br as ProductApiOptions, bs as ProductDetailBrand, bt as ProductDetailCatalogListing, bu as ProductDetailCatalogResult, bv as ProductDetailCatalogVariant, bw as ProductDetailCategory, bx as ProductDetailImage, by as ProductDetailImageMedia, bz as ProductDetailListing, bA as ProductDetailMedia, bB as ProductDetailOption, bC as ProductDetailOptionValue, av as ProductDetailParams, aw as ProductDetailResult, bD as ProductDetailTag, bE as ProductDetailUnavailableReason, bF as ProductDetailVariant, bG as ProductDetailVariantOptionValue, bH as ProductDetailVideo, bI as ProductHrefGroup, bJ as ProductHrefOptions, bK as ProductHrefProduct, bL as ProductListingCard, bM as ProductListingCardOptions, bN as ProductListingCardPriceRange, bO as ProductListingCardRepresentativeVariant, bP as ProductListingGroup, bQ as ProductListingGroupCatalogSummary, bR as ProductListingGroupCatalogVariant, bS as ProductListingGroupSummary, bT as ProductListingGroupVariant, ay as ProductListingGroupsCatalogItem, bU as ProductListingGroupsCatalogProduct, bV as ProductListingGroupsCatalogResponse, ax as ProductListingGroupsItem, bW as ProductListingGroupsProduct, bX as ProductListingGroupsResponse, bY as ProductListingProductShape, bZ as ProductListingProjection, b_ as ProductListingSwatch, b$ as ProductMediaResolutionSource, c0 as ProductOptionMatrix, c1 as ProductOptionMatrixOption, c2 as ProductOptionMatrixValue, c3 as ProductOptionMatrixVariant, c4 as ProductOptionShape, c5 as ProductOptionValueShape, c6 as ProductOptionValueSwatch, c7 as ProductOptionValueSwatchInput, c8 as ProductSelectionAvailableSwatch, c9 as ProductSelectionAvailableValue, ca as ProductSelectionByOptionValue, cb as ProductSelectionCodecError, cc as ProductSelectionCodecOptions, cd as ProductSelectionInput, ce as ProductSelectionOptionValue, cf as ProductSelectionResolution, cg as ProductSelectionResolutionContext, ch as ProductSelectionUrlEmit, ci as ProductSelectionVariant, cj as ProductUpsertFieldValidationErrorBody, ck as ProductUpsertFieldValidationErrorReason, cl as ProductVariantShape, m as PublicCart, n as PublicCartItem, o as PublicCartReference, p as PublicMediaAsset, q as PublicMediaSize, r as PublicOrder, s as PublicOrderItem, t as PublicOrderReference, R as RemoveDiscountParams, u as RemoveItemParams, cm as RequestOptions, cn as ResolveCancelRefundFailedResponse, co as ResolveCancelRefundOutcome, cp as ResolveCancelRefundParams, cq as ResolveCancelRefundResponse, cr as ResolveCancelRefundSucceededResponse, cs as ResolveProductDisplayMediaInput, ct as ResolveProductDisplayMediaResult, v as RetryConfig, cu as ReturnItem, cv as ReturnReason, cw as ReturnWithRefundItem, cx as ReturnWithRefundParams, w as RootClient, x as RootCollectionClient, y as RootReadOnlyQueryBuilder, z as ServerApiOptions, cy as ShippingApi, cz as ShippingApiOptions, S as Sort, cA as StockCheckParams, cB as StockCheckResponse, cC as StockCheckResult, cD as StockSnapshotItem, cE as StockSnapshotParams, cF as UpdateFulfillmentParams, U as UpdateItemParams, cG as UpdateOrderParams, au as UpdateProfileData, cH as UpdateReturnParams, cI as UpdateTransactionParams, cJ as ValidateDiscountParams, cK as ValidateDiscountResult, W as Where, cL as WithIdempotencyKey, cM as buildProductHref, cN as buildProductListingCard, cO as buildProductListingGroupsByOption, cP as buildProductListingProjection, cQ as buildProductOptionMatrix, cR as buildProductOptionMatrixFromDetail, cS as createProductSelectionCodec, cT as getAvailableOptionValues, cU as getProductSelectionImages, cV as getSelectedValueByOptionId, cW as isProductUpsertFieldValidationErrorBody, cX as normalizeProductSelection, cY as normalizeProductSelectionFromMatrix, cZ as normalizeSelectedValueIds, c_ as parseProductSelection, c$ as resolveListingPrimaryImagePointer, d0 as resolveProductDisplayMedia, d1 as resolveProductSelection, d2 as resolveProductSelectionFromMatrix, d3 as resolveProductSelectionMedia, d4 as resolveVariantForSelection, d5 as selectNext, d6 as selectedSwatchMediaItemId, d7 as stringifyProductSelection, d8 as toShopifyPriceRangeV2 } from './types-D2xYdz4P.js';
|
|
3
|
+
import { P as Product } from './payload-types-m3jjhxk9.js';
|
|
4
|
+
export { A as Article, d as ArticleAuthor, e as ArticleCategory, f as ArticleTag, g as Cart, h as CartItem, D as Document, I as Image, O as Order, i as Post, j as PostCategory, k as ProductVariant, T as Tenant, V as Video } from './payload-types-m3jjhxk9.js';
|
|
5
|
+
export { C as CollectionType, P as Product, a as ProductCollection } from './types-Cmrd1ezc.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-CSwR2HSg.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-6XHz_jej.js';
|
|
8
8
|
export { a as RealtimeConnection, R as RealtimeEvent, b as RealtimeListener } from './realtime-D7HtUpqt.js';
|
|
9
|
-
export { a as IMAGE_SIZES, I as ImageData, b as
|
|
9
|
+
export { a as IMAGE_SIZES, I as ImageData, b as ImageDataSizeEntry, c as ImageDataSizes, d as ImagePalette, e as ImagePlaceholderOptions, g as getImageLqip, f as getImagePalette, h as getImagePlaceholderStyle, i as getImageSrcSet, j as getImageUrl } from './image-BDjHp03R.js';
|
|
10
10
|
export { V as VideoGifOptions, a as VideoThumbnailOptions, g as getVideoGif, b as getVideoMp4Url, c as getVideoStoryboard, d as getVideoStreamUrl, e as getVideoThumbnail } from './video-WR_TFO9a.js';
|
|
11
11
|
export { Analytics, AnalyticsConfig, createAnalytics } from './analytics.js';
|
|
12
12
|
export { ApiError, AuthError, ConfigError, ConflictError, GoneError, NetworkError, NotFoundError, PermissionError, RateLimitError, SDKError, ServiceUnavailableError, TimeoutError, UsageLimitError, ValidationError, createAuthError, createConflictError, createNotFoundError, createPermissionError, createRateLimitError, isApiError, isAuthError, isConfigError, isConflictError, isGoneError, isNetworkError, isNotFoundError, isPermissionError, isRateLimitError, isSDKError, isServiceUnavailableError, isTimeoutError, isUsageLimitError, isValidationError } from './errors.js';
|
|
@@ -38,14 +38,14 @@ type ResolveProductMediaResult<TMedia> = Omit<ResolveProductSelectionMediaResult
|
|
|
38
38
|
source: MediaPointerSource;
|
|
39
39
|
};
|
|
40
40
|
/**
|
|
41
|
-
* @deprecated One-release shim for ADR
|
|
41
|
+
* @deprecated One-release shim for ADR 0025. Prefer
|
|
42
42
|
* `resolveProductSelectionMedia()`. Legacy direct-media fallbacks are ignored;
|
|
43
43
|
* callers fall through to product display media (`resolveProductDisplayMedia`)
|
|
44
44
|
* or `none`.
|
|
45
45
|
*/
|
|
46
46
|
declare function resolveProductMedia<TMedia>(input: ResolveProductMediaInput<TMedia>): ResolveProductMediaResult<TMedia>;
|
|
47
47
|
|
|
48
|
-
/** @deprecated ADR
|
|
48
|
+
/** @deprecated ADR 0025 replaces media sets with variant `images[]` subsets. */
|
|
49
49
|
type ProductMediaSetMatchType = 'default' | 'option-values' | 'exact-variant';
|
|
50
50
|
/** @deprecated Use `ResolveProductSelectionMediaInput` and variant `images[]`. */
|
|
51
51
|
type ProductMediaSetInput = {
|
|
@@ -92,7 +92,8 @@ declare const formatOrderName: (items: OrderItem[]) => string;
|
|
|
92
92
|
* @param ref - The relation field value (T, string, number, null, or undefined)
|
|
93
93
|
* @returns The resolved document object, or null if not populated
|
|
94
94
|
*/
|
|
95
|
-
declare
|
|
95
|
+
declare function resolveRelation<T>(ref: T | string | number | null | undefined): T | null;
|
|
96
|
+
declare function resolveRelation<T>(ref: unknown): T | null;
|
|
96
97
|
|
|
97
98
|
declare function createClient(options: ClientConfig): RootClientWithEvents;
|
|
98
99
|
|