@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.
Files changed (82) hide show
  1. package/README.md +142 -55
  2. package/dist/analytics/react.cjs +33 -9
  3. package/dist/analytics/react.cjs.map +1 -1
  4. package/dist/analytics/react.d.cts +1 -1
  5. package/dist/analytics/react.d.ts +1 -1
  6. package/dist/analytics/react.js +33 -9
  7. package/dist/analytics/react.js.map +1 -1
  8. package/dist/analytics.cjs +30 -8
  9. package/dist/analytics.cjs.map +1 -1
  10. package/dist/analytics.d.cts +6 -0
  11. package/dist/analytics.d.ts +6 -0
  12. package/dist/analytics.js +30 -8
  13. package/dist/analytics.js.map +1 -1
  14. package/dist/client.cjs +150 -207
  15. package/dist/client.cjs.map +1 -1
  16. package/dist/client.d.cts +6 -6
  17. package/dist/client.d.ts +6 -6
  18. package/dist/client.js +150 -207
  19. package/dist/client.js.map +1 -1
  20. package/dist/{collection-client-Cv0D2w1Q.d.cts → collection-client-B0J9wMNE.d.cts} +5 -5
  21. package/dist/{collection-client-Bq5Zd7p7.d.ts → collection-client-BroIWHY1.d.ts} +5 -5
  22. package/dist/const-6XHz_jej.d.ts +32 -0
  23. package/dist/const-B5KT72c7.d.cts +32 -0
  24. package/dist/{image-BDz2-AaO.d.cts → image-BDjHp03R.d.cts} +13 -9
  25. package/dist/{image-BDz2-AaO.d.ts → image-BDjHp03R.d.ts} +13 -9
  26. package/dist/{index-DTSXUYkr.d.ts → index-BOLQxveo.d.cts} +9 -6
  27. package/dist/{index-BHDKJ6B3.d.cts → index-CSwR2HSg.d.ts} +9 -6
  28. package/dist/index.cjs +256 -244
  29. package/dist/index.cjs.map +1 -1
  30. package/dist/index.d.cts +12 -11
  31. package/dist/index.d.ts +12 -11
  32. package/dist/index.js +256 -244
  33. package/dist/index.js.map +1 -1
  34. package/dist/metadata.cjs +5 -3
  35. package/dist/metadata.cjs.map +1 -1
  36. package/dist/metadata.js +5 -3
  37. package/dist/metadata.js.map +1 -1
  38. package/dist/{payload-types-BCui2Oml.d.cts → payload-types-m3jjhxk9.d.cts} +669 -184
  39. package/dist/{payload-types-BCui2Oml.d.ts → payload-types-m3jjhxk9.d.ts} +669 -184
  40. package/dist/query.cjs +3 -1033
  41. package/dist/query.cjs.map +1 -1
  42. package/dist/query.d.cts +13 -13
  43. package/dist/query.d.ts +13 -13
  44. package/dist/query.js +3 -1033
  45. package/dist/query.js.map +1 -1
  46. package/dist/realtime.d.cts +2 -2
  47. package/dist/realtime.d.ts +2 -2
  48. package/dist/server.cjs +121 -85
  49. package/dist/server.cjs.map +1 -1
  50. package/dist/server.d.cts +7 -7
  51. package/dist/server.d.ts +7 -7
  52. package/dist/server.js +121 -85
  53. package/dist/server.js.map +1 -1
  54. package/dist/{types-Dib-zdK6.d.cts → types-CIGscmus.d.cts} +1471 -1100
  55. package/dist/{types-3qV6sY7T.d.ts → types-Cmrd1ezc.d.ts} +1 -15
  56. package/dist/{types-CEzLf3PX.d.cts → types-D0ubzQw0.d.cts} +1 -15
  57. package/dist/{types-DK9EnLwJ.d.ts → types-D2xYdz4P.d.ts} +1471 -1100
  58. package/dist/ui/canvas.cjs +15 -5
  59. package/dist/ui/canvas.cjs.map +1 -1
  60. package/dist/ui/canvas.d.cts +1 -1
  61. package/dist/ui/canvas.d.ts +1 -1
  62. package/dist/ui/canvas.js +15 -5
  63. package/dist/ui/canvas.js.map +1 -1
  64. package/dist/ui/form.d.cts +1 -1
  65. package/dist/ui/form.d.ts +1 -1
  66. package/dist/ui/image.cjs +15 -5
  67. package/dist/ui/image.cjs.map +1 -1
  68. package/dist/ui/image.d.cts +1 -1
  69. package/dist/ui/image.d.ts +1 -1
  70. package/dist/ui/image.js +15 -5
  71. package/dist/ui/image.js.map +1 -1
  72. package/dist/ui/video.d.cts +1 -1
  73. package/dist/ui/video.d.ts +1 -1
  74. package/dist/webhook.cjs +5 -1
  75. package/dist/webhook.cjs.map +1 -1
  76. package/dist/webhook.d.cts +4 -4
  77. package/dist/webhook.d.ts +4 -4
  78. package/dist/webhook.js +5 -1
  79. package/dist/webhook.js.map +1 -1
  80. package/package.json +3 -3
  81. package/dist/const-BDUKFP9w.d.ts +0 -32
  82. package/dist/const-DVcM7Ac_.d.cts +0 -32
package/dist/index.d.cts CHANGED
@@ -1,12 +1,12 @@
1
- import { aj as ProductDetail, ak as ProductDetailCatalog, al as StockSnapshotResponse, am as ProductSelectionMediaSource, an as ProductDisplayMediaSource, ao as ResolveProductSelectionMediaInput, ap as ResolveProductSelectionMediaResult, aq as ProductSelectionMediaPointer, d as ClientConfig, ar as RootClientWithEvents } from './types-Dib-zdK6.cjs';
2
- export { as as AddItemParams, A as ApiQueryOptions, at as ApplyDiscountParams, B as BaseApi, au as BulkImportFulfillmentsParams, av as BulkImportFulfillmentsResponse, aw as CalculateShippingParams, ax as CalculateShippingResult, ay as CancelOrderParams, az as CancelOrderReconciliationStatus, aA as CancelOrderResponse, aB as CancelReasonCode, aC as CartApi, aD as CartApiOptions, aE as CheckoutParams, aF as ClearCartParams, i as Client, e as ClientMetadata, c as ClientState, i as ClientType, aG as Comment, C as CommerceClient, aH as CommerceClientOptions, a as CommunityClient, aI as CommunityClientOptions, aJ as CommunityComment, aK as CommunityCommentListSort, aL as CommunityPost, aM as CommunityPostCategory, aN as CommunityPostListSort, aO as CommunityPostTag, aP as CompatibilityProductSelectionParamEvent, aQ as ConfirmPaymentParams, aR as ConfirmPaymentResponse, aS as CreateFulfillmentParams, aT as CreateOrderItem, aU as CreateOrderParams, aV as CreateReturnParams, a8 as CustomerAuth, aW as CustomerAuthOptions, aa as CustomerAuthResponse, ab as CustomerLoginData, b as CustomerNamespace, a9 as CustomerProfile, ae as CustomerRefreshResponse, ad as CustomerRegisterData, ac as CustomerRegisterResponse, aX as CustomerSnapshot, D as DebugConfig, f as DeepPartial, aY as DiscountApi, aZ as DiscountApiOptions, t as EventGuestCancelParams, u as EventGuestRegistration, v as EventGuestRegistrationResponse, w as EventRegistrationAnswerInput, x as EventRegistrationAttendeeInput, y as EventRegistrationPublic, z as EventRegistrationRegisterParams, F as EventRegistrationRegisterResponse, G as EventsCalendarItem, E as EventsClient, H as EventsClientOptions, I as EventsDateParam, J as EventsExternalSource, K as EventsLocation, L as EventsOccurrenceLocation, M as EventsRangeEvent, N as EventsRangeOccurrence, O as EventsRangeParams, Q as EventsRangeResponse, V as EventsTaxonomyItem, g as ExtractArrayType, a_ as LegacyProductSelectionParamEvent, a$ as ListingGroupsParams, b0 as ListingPrimaryImageFallbackInput, b1 as MediaValue, b2 as NormalizedOptionSwatch, b3 as NormalizedProductSelection, b4 as OrderApi, b5 as OrderApiOptions, b6 as PRODUCT_UPSERT_READONLY_FIELD_REASON, b7 as PRODUCT_UPSERT_UNKNOWN_FIELD_REASON, P as PayloadFindResponse, h as PayloadMutationResponse, b8 as ProductApi, b9 as ProductApiOptions, ba as ProductDetailBrand, bb as ProductDetailCatalogListing, bc as ProductDetailCatalogResult, bd as ProductDetailCatalogVariant, be as ProductDetailCategory, bf as ProductDetailImage, bg as ProductDetailImageMedia, bh as ProductDetailListing, bi as ProductDetailMedia, bj as ProductDetailOption, bk as ProductDetailOptionValue, ag as ProductDetailParams, ah as ProductDetailResult, bl as ProductDetailTag, bm as ProductDetailUnavailableReason, bn as ProductDetailVariant, bo as ProductDetailVariantOptionValue, bp as ProductDetailVideo, bq as ProductHrefGroup, br as ProductHrefOptions, bs as ProductHrefProduct, bt as ProductListingCard, bu as ProductListingCardOptions, bv as ProductListingCardPriceRange, bw as ProductListingCardRepresentativeVariant, bx as ProductListingGroup, by as ProductListingGroupSummary, bz as ProductListingGroupVariant, ai as ProductListingGroupsItem, bA as ProductListingGroupsProduct, bB as ProductListingGroupsResponse, bC as ProductListingProductShape, bD as ProductListingProjection, bE as ProductListingSwatch, bF as ProductMediaResolutionSource, bG as ProductOptionMatrix, bH as ProductOptionMatrixOption, bI as ProductOptionMatrixValue, bJ as ProductOptionMatrixVariant, bK as ProductOptionShape, bL as ProductOptionValueShape, bM as ProductOptionValueSwatch, bN as ProductOptionValueSwatchInput, bO as ProductSelectionAvailableSwatch, bP as ProductSelectionAvailableValue, bQ as ProductSelectionByOptionValue, bR as ProductSelectionCodecError, bS as ProductSelectionCodecOptions, bT as ProductSelectionInput, bU as ProductSelectionOptionValue, bV as ProductSelectionResolution, bW as ProductSelectionResolutionContext, bX as ProductSelectionUrlEmit, bY as ProductSelectionVariant, bZ as ProductUpsertFieldValidationErrorBody, b_ as ProductUpsertFieldValidationErrorReason, b$ as ProductVariantShape, c0 as RemoveDiscountParams, c1 as RemoveItemParams, c2 as RequestOptions, c3 as ResolveCancelRefundFailedResponse, c4 as ResolveCancelRefundOutcome, c5 as ResolveCancelRefundParams, c6 as ResolveCancelRefundResponse, c7 as ResolveCancelRefundSucceededResponse, c8 as ResolveProductDisplayMediaInput, c9 as ResolveProductDisplayMediaResult, R as RetryConfig, ca as ReturnItem, cb as ReturnReason, cc as ReturnWithRefundItem, cd as ReturnWithRefundParams, i as RootClient, j as RootCollectionClient, k as RootReadOnlyQueryBuilder, l as ServerApiOptions, ce as ShippingApi, cf as ShippingApiOptions, S as Sort, cg as StockCheckParams, ch as StockCheckResponse, ci as StockCheckResult, cj as StockSnapshotItem, ck as StockSnapshotParams, cl as UpdateFulfillmentParams, cm as UpdateItemParams, cn as UpdateOrderParams, af as UpdateProfileData, co as UpdateReturnParams, cp as UpdateTransactionParams, cq as ValidateDiscountParams, cr as ValidateDiscountResult, W as Where, cs as WithIdempotencyKey, ct as buildProductHref, cu as buildProductListingCard, cv as buildProductListingGroupsByOption, cw as buildProductListingProjection, cx as buildProductOptionMatrix, cy as buildProductOptionMatrixFromDetail, cz as createProductSelectionCodec, cA as getAvailableOptionValues, cB as getProductSelectionImages, cC as getSelectedValueByOptionId, cD as isProductUpsertFieldValidationErrorBody, cE as normalizeProductSelection, cF as normalizeProductSelectionFromMatrix, cG as normalizeSelectedValueIds, cH as parseProductSelection, cI as resolveListingPrimaryImagePointer, cJ as resolveProductDisplayMedia, cK as resolveProductSelection, cL as resolveProductSelectionFromMatrix, cM as resolveProductSelectionMedia, cN as resolveVariantForSelection, cO as selectNext, cP as selectedSwatchMediaItemId, cQ as stringifyProductSelection, cR as toShopifyPriceRangeV2 } from './types-Dib-zdK6.cjs';
3
- import { P as Product } from './payload-types-BCui2Oml.cjs';
4
- export { A as Article, f as ArticleAuthor, g as ArticleCategory, h as ArticleTag, i as Cart, j as CartItem, D as Document, I as Image, O as Order, c as Post, k as PostCategory, l as ProductVariant, T as Tenant, V as Video } from './payload-types-BCui2Oml.cjs';
5
- export { C as CollectionType, P as Product, a as ProductCollection } from './types-CEzLf3PX.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 CommerceNotificationEventName, m as CommerceNotificationSource, n as CommerceNotificationSourceCollection, o as CommerceNotificationWebhookEvent, p as CustomerAuthWebhookEvent, q as CustomerAuthWebhookHandlers, r as CustomerPasswordResetWebhookData, s as CustomerPasswordResetWebhookEvent, O as ORDER_CHANGED_EVENT_TYPE, t as OrderChangedWebhookEvent, W as WebhookChange, u as WebhookCommerceNotificationChange, v as WebhookEvent, w as WebhookHandler, x as WebhookKnownOperation, y as WebhookOperation, z as WebhookOptions, A as WebhookOrderChange, B as WebhookOrderMoved, D as WebhookOrderScope, E as createCommerceEmailWebhookHandler, F as createCustomerAuthWebhookHandler, G as createTypedWebhookHandler, H as defineCommerceEmailConfig, I as getCommerceNotificationIdempotencyKey, J as handleWebhook, K as isCommerceNotificationWebhookEvent, L as isCustomerPasswordResetWebhookEvent, M as isOrderChangedWebhookEvent, N as isValidWebhookEvent, P as isWebhookCollection, Q as isWebhookOperation } from './index-BHDKJ6B3.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-DVcM7Ac_.cjs';
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 ImagePalette, c as ImagePlaceholderOptions, g as getImageLqip, d as getImagePalette, e as getImagePlaceholderStyle, f as getImageSrcSet, h as getImageUrl } from './image-BDz2-AaO.cjs';
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 0016. Prefer
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 0016 replaces media sets with variant `images[]` subsets. */
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 const resolveRelation: <T>(ref: T | string | number | null | undefined) => T | null;
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 { aj as ProductDetail, ak as ProductDetailCatalog, al as StockSnapshotResponse, am as ProductSelectionMediaSource, an as ProductDisplayMediaSource, ao as ResolveProductSelectionMediaInput, ap as ResolveProductSelectionMediaResult, aq as ProductSelectionMediaPointer, d as ClientConfig, ar as RootClientWithEvents } from './types-DK9EnLwJ.js';
2
- export { as as AddItemParams, A as ApiQueryOptions, at as ApplyDiscountParams, B as BaseApi, au as BulkImportFulfillmentsParams, av as BulkImportFulfillmentsResponse, aw as CalculateShippingParams, ax as CalculateShippingResult, ay as CancelOrderParams, az as CancelOrderReconciliationStatus, aA as CancelOrderResponse, aB as CancelReasonCode, aC as CartApi, aD as CartApiOptions, aE as CheckoutParams, aF as ClearCartParams, i as Client, e as ClientMetadata, c as ClientState, i as ClientType, aG as Comment, C as CommerceClient, aH as CommerceClientOptions, a as CommunityClient, aI as CommunityClientOptions, aJ as CommunityComment, aK as CommunityCommentListSort, aL as CommunityPost, aM as CommunityPostCategory, aN as CommunityPostListSort, aO as CommunityPostTag, aP as CompatibilityProductSelectionParamEvent, aQ as ConfirmPaymentParams, aR as ConfirmPaymentResponse, aS as CreateFulfillmentParams, aT as CreateOrderItem, aU as CreateOrderParams, aV as CreateReturnParams, a8 as CustomerAuth, aW as CustomerAuthOptions, aa as CustomerAuthResponse, ab as CustomerLoginData, b as CustomerNamespace, a9 as CustomerProfile, ae as CustomerRefreshResponse, ad as CustomerRegisterData, ac as CustomerRegisterResponse, aX as CustomerSnapshot, D as DebugConfig, f as DeepPartial, aY as DiscountApi, aZ as DiscountApiOptions, t as EventGuestCancelParams, u as EventGuestRegistration, v as EventGuestRegistrationResponse, w as EventRegistrationAnswerInput, x as EventRegistrationAttendeeInput, y as EventRegistrationPublic, z as EventRegistrationRegisterParams, F as EventRegistrationRegisterResponse, G as EventsCalendarItem, E as EventsClient, H as EventsClientOptions, I as EventsDateParam, J as EventsExternalSource, K as EventsLocation, L as EventsOccurrenceLocation, M as EventsRangeEvent, N as EventsRangeOccurrence, O as EventsRangeParams, Q as EventsRangeResponse, V as EventsTaxonomyItem, g as ExtractArrayType, a_ as LegacyProductSelectionParamEvent, a$ as ListingGroupsParams, b0 as ListingPrimaryImageFallbackInput, b1 as MediaValue, b2 as NormalizedOptionSwatch, b3 as NormalizedProductSelection, b4 as OrderApi, b5 as OrderApiOptions, b6 as PRODUCT_UPSERT_READONLY_FIELD_REASON, b7 as PRODUCT_UPSERT_UNKNOWN_FIELD_REASON, P as PayloadFindResponse, h as PayloadMutationResponse, b8 as ProductApi, b9 as ProductApiOptions, ba as ProductDetailBrand, bb as ProductDetailCatalogListing, bc as ProductDetailCatalogResult, bd as ProductDetailCatalogVariant, be as ProductDetailCategory, bf as ProductDetailImage, bg as ProductDetailImageMedia, bh as ProductDetailListing, bi as ProductDetailMedia, bj as ProductDetailOption, bk as ProductDetailOptionValue, ag as ProductDetailParams, ah as ProductDetailResult, bl as ProductDetailTag, bm as ProductDetailUnavailableReason, bn as ProductDetailVariant, bo as ProductDetailVariantOptionValue, bp as ProductDetailVideo, bq as ProductHrefGroup, br as ProductHrefOptions, bs as ProductHrefProduct, bt as ProductListingCard, bu as ProductListingCardOptions, bv as ProductListingCardPriceRange, bw as ProductListingCardRepresentativeVariant, bx as ProductListingGroup, by as ProductListingGroupSummary, bz as ProductListingGroupVariant, ai as ProductListingGroupsItem, bA as ProductListingGroupsProduct, bB as ProductListingGroupsResponse, bC as ProductListingProductShape, bD as ProductListingProjection, bE as ProductListingSwatch, bF as ProductMediaResolutionSource, bG as ProductOptionMatrix, bH as ProductOptionMatrixOption, bI as ProductOptionMatrixValue, bJ as ProductOptionMatrixVariant, bK as ProductOptionShape, bL as ProductOptionValueShape, bM as ProductOptionValueSwatch, bN as ProductOptionValueSwatchInput, bO as ProductSelectionAvailableSwatch, bP as ProductSelectionAvailableValue, bQ as ProductSelectionByOptionValue, bR as ProductSelectionCodecError, bS as ProductSelectionCodecOptions, bT as ProductSelectionInput, bU as ProductSelectionOptionValue, bV as ProductSelectionResolution, bW as ProductSelectionResolutionContext, bX as ProductSelectionUrlEmit, bY as ProductSelectionVariant, bZ as ProductUpsertFieldValidationErrorBody, b_ as ProductUpsertFieldValidationErrorReason, b$ as ProductVariantShape, c0 as RemoveDiscountParams, c1 as RemoveItemParams, c2 as RequestOptions, c3 as ResolveCancelRefundFailedResponse, c4 as ResolveCancelRefundOutcome, c5 as ResolveCancelRefundParams, c6 as ResolveCancelRefundResponse, c7 as ResolveCancelRefundSucceededResponse, c8 as ResolveProductDisplayMediaInput, c9 as ResolveProductDisplayMediaResult, R as RetryConfig, ca as ReturnItem, cb as ReturnReason, cc as ReturnWithRefundItem, cd as ReturnWithRefundParams, i as RootClient, j as RootCollectionClient, k as RootReadOnlyQueryBuilder, l as ServerApiOptions, ce as ShippingApi, cf as ShippingApiOptions, S as Sort, cg as StockCheckParams, ch as StockCheckResponse, ci as StockCheckResult, cj as StockSnapshotItem, ck as StockSnapshotParams, cl as UpdateFulfillmentParams, cm as UpdateItemParams, cn as UpdateOrderParams, af as UpdateProfileData, co as UpdateReturnParams, cp as UpdateTransactionParams, cq as ValidateDiscountParams, cr as ValidateDiscountResult, W as Where, cs as WithIdempotencyKey, ct as buildProductHref, cu as buildProductListingCard, cv as buildProductListingGroupsByOption, cw as buildProductListingProjection, cx as buildProductOptionMatrix, cy as buildProductOptionMatrixFromDetail, cz as createProductSelectionCodec, cA as getAvailableOptionValues, cB as getProductSelectionImages, cC as getSelectedValueByOptionId, cD as isProductUpsertFieldValidationErrorBody, cE as normalizeProductSelection, cF as normalizeProductSelectionFromMatrix, cG as normalizeSelectedValueIds, cH as parseProductSelection, cI as resolveListingPrimaryImagePointer, cJ as resolveProductDisplayMedia, cK as resolveProductSelection, cL as resolveProductSelectionFromMatrix, cM as resolveProductSelectionMedia, cN as resolveVariantForSelection, cO as selectNext, cP as selectedSwatchMediaItemId, cQ as stringifyProductSelection, cR as toShopifyPriceRangeV2 } from './types-DK9EnLwJ.js';
3
- import { P as Product } from './payload-types-BCui2Oml.js';
4
- export { A as Article, f as ArticleAuthor, g as ArticleCategory, h as ArticleTag, i as Cart, j as CartItem, D as Document, I as Image, O as Order, c as Post, k as PostCategory, l as ProductVariant, T as Tenant, V as Video } from './payload-types-BCui2Oml.js';
5
- export { C as CollectionType, P as Product, a as ProductCollection } from './types-3qV6sY7T.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 CommerceNotificationEventName, m as CommerceNotificationSource, n as CommerceNotificationSourceCollection, o as CommerceNotificationWebhookEvent, p as CustomerAuthWebhookEvent, q as CustomerAuthWebhookHandlers, r as CustomerPasswordResetWebhookData, s as CustomerPasswordResetWebhookEvent, O as ORDER_CHANGED_EVENT_TYPE, t as OrderChangedWebhookEvent, W as WebhookChange, u as WebhookCommerceNotificationChange, v as WebhookEvent, w as WebhookHandler, x as WebhookKnownOperation, y as WebhookOperation, z as WebhookOptions, A as WebhookOrderChange, B as WebhookOrderMoved, D as WebhookOrderScope, E as createCommerceEmailWebhookHandler, F as createCustomerAuthWebhookHandler, G as createTypedWebhookHandler, H as defineCommerceEmailConfig, I as getCommerceNotificationIdempotencyKey, J as handleWebhook, K as isCommerceNotificationWebhookEvent, L as isCustomerPasswordResetWebhookEvent, M as isOrderChangedWebhookEvent, N as isValidWebhookEvent, P as isWebhookCollection, Q as isWebhookOperation } from './index-DTSXUYkr.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-BDUKFP9w.js';
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 ImagePalette, c as ImagePlaceholderOptions, g as getImageLqip, d as getImagePalette, e as getImagePlaceholderStyle, f as getImageSrcSet, h as getImageUrl } from './image-BDz2-AaO.js';
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 0016. Prefer
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 0016 replaces media sets with variant `images[]` subsets. */
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 const resolveRelation: <T>(ref: T | string | number | null | undefined) => T | null;
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