@01.software/sdk 0.35.0 → 0.37.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 (80) hide show
  1. package/README.md +71 -6
  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 +94 -114
  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 +94 -114
  19. package/dist/client.js.map +1 -1
  20. package/dist/{collection-client-DkREjhQ9.d.ts → collection-client-DyELGUcL.d.ts} +3 -3
  21. package/dist/{collection-client-CR2B8c1v.d.cts → collection-client-zOmnxwdA.d.cts} +3 -3
  22. package/dist/{const-CdqCauHQ.d.ts → const-CK_FPaIn.d.cts} +3 -3
  23. package/dist/{const-BTvdrXtY.d.cts → const-Dqz05oaG.d.ts} +3 -3
  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-DK8_NXkh.d.ts → index-DRJs7QIh.d.cts} +9 -6
  27. package/dist/{index-CjA3U6X3.d.cts → index-DTqoUZk_.d.ts} +9 -6
  28. package/dist/index.cjs +229 -136
  29. package/dist/index.cjs.map +1 -1
  30. package/dist/index.d.cts +10 -9
  31. package/dist/index.d.ts +10 -9
  32. package/dist/index.js +229 -136
  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-C7tb7Xbs.d.cts → payload-types-CREOjFNT.d.cts} +281 -128
  39. package/dist/{payload-types-C7tb7Xbs.d.ts → payload-types-CREOjFNT.d.ts} +281 -128
  40. package/dist/query.cjs +5 -3
  41. package/dist/query.cjs.map +1 -1
  42. package/dist/query.d.cts +5 -5
  43. package/dist/query.d.ts +5 -5
  44. package/dist/query.js +5 -3
  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 +99 -69
  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 +99 -69
  53. package/dist/server.js.map +1 -1
  54. package/dist/{types-DDhtZI6E.d.cts → types-BWMUr3Zw.d.cts} +274 -84
  55. package/dist/{types-Bx558PU6.d.cts → types-BkZNhuBh.d.cts} +1 -1
  56. package/dist/{types-1ylMrCuW.d.ts → types-CxzWHspI.d.ts} +1 -1
  57. package/dist/{types-Byo_Rty4.d.ts → types-DMvVHdb1.d.ts} +274 -84
  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
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-DDhtZI6E.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 ListingGroupingEmptyReason, b0 as ListingGroupingState, b1 as ListingGroupsParams, b2 as ListingPrimaryImageFallbackInput, b3 as MediaValue, b4 as NormalizedOptionSwatch, b5 as NormalizedProductSelection, b6 as OrderApi, b7 as OrderApiOptions, b8 as PRODUCT_UPSERT_READONLY_FIELD_REASON, b9 as PRODUCT_UPSERT_UNKNOWN_FIELD_REASON, P as PayloadFindResponse, h as PayloadMutationResponse, ba as ProductApi, bb as ProductApiOptions, bc as ProductDetailBrand, bd as ProductDetailCatalogListing, be as ProductDetailCatalogResult, bf as ProductDetailCatalogVariant, bg as ProductDetailCategory, bh as ProductDetailImage, bi as ProductDetailImageMedia, bj as ProductDetailListing, bk as ProductDetailMedia, bl as ProductDetailOption, bm as ProductDetailOptionValue, ag as ProductDetailParams, ah as ProductDetailResult, bn as ProductDetailTag, bo as ProductDetailUnavailableReason, bp as ProductDetailVariant, bq as ProductDetailVariantOptionValue, br as ProductDetailVideo, bs as ProductHrefGroup, bt as ProductHrefOptions, bu as ProductHrefProduct, bv as ProductListingCard, bw as ProductListingCardOptions, bx as ProductListingCardPriceRange, by as ProductListingCardRepresentativeVariant, bz as ProductListingGroup, bA as ProductListingGroupSummary, bB as ProductListingGroupVariant, ai as ProductListingGroupsItem, bC as ProductListingGroupsProduct, bD as ProductListingGroupsResponse, bE as ProductListingProductShape, bF as ProductListingProjection, bG as ProductListingSwatch, bH as ProductMediaResolutionSource, bI as ProductOptionMatrix, bJ as ProductOptionMatrixOption, bK as ProductOptionMatrixValue, bL as ProductOptionMatrixVariant, bM as ProductOptionShape, bN as ProductOptionValueShape, bO as ProductOptionValueSwatch, bP as ProductOptionValueSwatchInput, bQ as ProductSelectionAvailableSwatch, bR as ProductSelectionAvailableValue, bS as ProductSelectionByOptionValue, bT as ProductSelectionCodecError, bU as ProductSelectionCodecOptions, bV as ProductSelectionInput, bW as ProductSelectionOptionValue, bX as ProductSelectionResolution, bY as ProductSelectionResolutionContext, bZ as ProductSelectionUrlEmit, b_ as ProductSelectionVariant, b$ as ProductUpsertFieldValidationErrorBody, c0 as ProductUpsertFieldValidationErrorReason, c1 as ProductVariantShape, c2 as RemoveDiscountParams, c3 as RemoveItemParams, c4 as RequestOptions, c5 as ResolveProductDisplayMediaInput, c6 as ResolveProductDisplayMediaResult, R as RetryConfig, c7 as ReturnItem, c8 as ReturnReason, c9 as ReturnWithRefundItem, ca as ReturnWithRefundParams, i as RootClient, j as RootCollectionClient, k as RootReadOnlyQueryBuilder, l as ServerApiOptions, cb as ShippingApi, cc as ShippingApiOptions, S as Sort, cd as StockCheckParams, ce as StockCheckResponse, cf as StockCheckResult, cg as StockSnapshotItem, ch as StockSnapshotParams, ci as UpdateFulfillmentParams, cj as UpdateItemParams, ck as UpdateOrderParams, af as UpdateProfileData, cl as UpdateReturnParams, cm as UpdateTransactionParams, cn as ValidateDiscountParams, co as ValidateDiscountResult, W as Where, cp as WithIdempotencyKey, cq as buildProductHref, cr as buildProductListingCard, cs as buildProductListingGroupsByOption, ct as buildProductListingProjection, cu as buildProductOptionMatrix, cv as buildProductOptionMatrixFromDetail, cw as createProductSelectionCodec, cx as getAvailableOptionValues, cy as getProductSelectionImages, cz as getSelectedValueByOptionId, cA as isProductUpsertFieldValidationErrorBody, cB as normalizeProductSelection, cC as normalizeProductSelectionFromMatrix, cD as normalizeSelectedValueIds, cE as parseProductSelection, cF as resolveListingPrimaryImagePointer, cG as resolveProductDisplayMedia, cH as resolveProductSelection, cI as resolveProductSelectionFromMatrix, cJ as resolveProductSelectionMedia, cK as resolveVariantForSelection, cL as selectNext, cM as selectedSwatchMediaItemId, cN as stringifyProductSelection } from './types-DDhtZI6E.cjs';
3
- import { P as Product } from './payload-types-C7tb7Xbs.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-C7tb7Xbs.cjs';
5
- export { C as CollectionType, P as Product, a as ProductCollection } from './types-Bx558PU6.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-CjA3U6X3.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-BTvdrXtY.cjs';
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-BWMUr3Zw.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_PLP_FIND_OPTIONS, b7 as PRODUCT_UPSERT_READONLY_FIELD_REASON, b8 as PRODUCT_UPSERT_UNKNOWN_FIELD_REASON, P as PayloadFindResponse, h as PayloadMutationResponse, b9 as PrepareFulfillmentOrderParams, ba as PrepareFulfillmentOrderResponse, bb as ProductApi, bc as ProductApiOptions, bd as ProductDetailBrand, be as ProductDetailCatalogListing, bf as ProductDetailCatalogResult, bg as ProductDetailCatalogVariant, bh as ProductDetailCategory, bi as ProductDetailImage, bj as ProductDetailImageMedia, bk as ProductDetailListing, bl as ProductDetailMedia, bm as ProductDetailOption, bn as ProductDetailOptionValue, ag as ProductDetailParams, ah as ProductDetailResult, bo as ProductDetailTag, bp as ProductDetailUnavailableReason, bq as ProductDetailVariant, br as ProductDetailVariantOptionValue, bs as ProductDetailVideo, bt as ProductHrefGroup, bu as ProductHrefOptions, bv as ProductHrefProduct, bw as ProductListingCard, bx as ProductListingCardOptions, by as ProductListingCardPriceRange, bz as ProductListingCardRepresentativeVariant, bA as ProductListingGroup, bB as ProductListingGroupSummary, bC as ProductListingGroupVariant, ai as ProductListingGroupsItem, bD as ProductListingGroupsProduct, bE as ProductListingGroupsResponse, bF as ProductListingProductShape, bG as ProductListingProjection, bH as ProductListingSwatch, bI as ProductMediaResolutionSource, bJ as ProductOptionMatrix, bK as ProductOptionMatrixOption, bL as ProductOptionMatrixValue, bM as ProductOptionMatrixVariant, bN as ProductOptionShape, bO as ProductOptionValueShape, bP as ProductOptionValueSwatch, bQ as ProductOptionValueSwatchInput, bR as ProductSelectionAvailableSwatch, bS as ProductSelectionAvailableValue, bT as ProductSelectionByOptionValue, bU as ProductSelectionCodecError, bV as ProductSelectionCodecOptions, bW as ProductSelectionInput, bX as ProductSelectionOptionValue, bY as ProductSelectionResolution, bZ as ProductSelectionResolutionContext, b_ as ProductSelectionUrlEmit, b$ as ProductSelectionVariant, c0 as ProductUpsertFieldValidationErrorBody, c1 as ProductUpsertFieldValidationErrorReason, c2 as ProductVariantShape, c3 as RemoveDiscountParams, c4 as RemoveItemParams, c5 as RequestOptions, c6 as ResolveCancelRefundFailedResponse, c7 as ResolveCancelRefundOutcome, c8 as ResolveCancelRefundParams, c9 as ResolveCancelRefundResponse, ca as ResolveCancelRefundSucceededResponse, cb as ResolveProductDisplayMediaInput, cc as ResolveProductDisplayMediaResult, R as RetryConfig, cd as ReturnItem, ce as ReturnReason, cf as ReturnWithRefundItem, cg as ReturnWithRefundParams, i as RootClient, j as RootCollectionClient, k as RootReadOnlyQueryBuilder, l as ServerApiOptions, ch as ShippingApi, ci as ShippingApiOptions, S as Sort, cj as StockCheckParams, ck as StockCheckResponse, cl as StockCheckResult, cm as StockSnapshotItem, cn as StockSnapshotParams, co as UpdateFulfillmentParams, cp as UpdateItemParams, cq as UpdateOrderParams, af as UpdateProfileData, cr as UpdateReturnParams, cs as UpdateTransactionParams, ct as ValidateDiscountParams, cu as ValidateDiscountResult, W as Where, cv as WithIdempotencyKey, cw as buildProductHref, cx as buildProductListingCard, cy as buildProductListingGroupsByOption, cz as buildProductListingProjection, cA as buildProductOptionMatrix, cB as buildProductOptionMatrixFromDetail, cC as createProductSelectionCodec, cD as getAvailableOptionValues, cE as getProductSelectionImages, cF as getSelectedValueByOptionId, cG as isProductUpsertFieldValidationErrorBody, cH as normalizeProductSelection, cI as normalizeProductSelectionFromMatrix, cJ as normalizeSelectedValueIds, cK as parseProductSelection, cL as resolveListingPrimaryImagePointer, cM as resolveProductDisplayMedia, cN as resolveProductSelection, cO as resolveProductSelectionFromMatrix, cP as resolveProductSelectionMedia, cQ as resolveVariantForSelection, cR as selectNext, cS as selectedSwatchMediaItemId, cT as stringifyProductSelection, cU as toShopifyPriceRangeV2 } from './types-BWMUr3Zw.cjs';
3
+ import { P as Product } from './payload-types-CREOjFNT.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-CREOjFNT.cjs';
5
+ export { C as CollectionType, P as Product, a as ProductCollection } from './types-BkZNhuBh.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-DRJs7QIh.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-CK_FPaIn.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';
@@ -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-Byo_Rty4.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 ListingGroupingEmptyReason, b0 as ListingGroupingState, b1 as ListingGroupsParams, b2 as ListingPrimaryImageFallbackInput, b3 as MediaValue, b4 as NormalizedOptionSwatch, b5 as NormalizedProductSelection, b6 as OrderApi, b7 as OrderApiOptions, b8 as PRODUCT_UPSERT_READONLY_FIELD_REASON, b9 as PRODUCT_UPSERT_UNKNOWN_FIELD_REASON, P as PayloadFindResponse, h as PayloadMutationResponse, ba as ProductApi, bb as ProductApiOptions, bc as ProductDetailBrand, bd as ProductDetailCatalogListing, be as ProductDetailCatalogResult, bf as ProductDetailCatalogVariant, bg as ProductDetailCategory, bh as ProductDetailImage, bi as ProductDetailImageMedia, bj as ProductDetailListing, bk as ProductDetailMedia, bl as ProductDetailOption, bm as ProductDetailOptionValue, ag as ProductDetailParams, ah as ProductDetailResult, bn as ProductDetailTag, bo as ProductDetailUnavailableReason, bp as ProductDetailVariant, bq as ProductDetailVariantOptionValue, br as ProductDetailVideo, bs as ProductHrefGroup, bt as ProductHrefOptions, bu as ProductHrefProduct, bv as ProductListingCard, bw as ProductListingCardOptions, bx as ProductListingCardPriceRange, by as ProductListingCardRepresentativeVariant, bz as ProductListingGroup, bA as ProductListingGroupSummary, bB as ProductListingGroupVariant, ai as ProductListingGroupsItem, bC as ProductListingGroupsProduct, bD as ProductListingGroupsResponse, bE as ProductListingProductShape, bF as ProductListingProjection, bG as ProductListingSwatch, bH as ProductMediaResolutionSource, bI as ProductOptionMatrix, bJ as ProductOptionMatrixOption, bK as ProductOptionMatrixValue, bL as ProductOptionMatrixVariant, bM as ProductOptionShape, bN as ProductOptionValueShape, bO as ProductOptionValueSwatch, bP as ProductOptionValueSwatchInput, bQ as ProductSelectionAvailableSwatch, bR as ProductSelectionAvailableValue, bS as ProductSelectionByOptionValue, bT as ProductSelectionCodecError, bU as ProductSelectionCodecOptions, bV as ProductSelectionInput, bW as ProductSelectionOptionValue, bX as ProductSelectionResolution, bY as ProductSelectionResolutionContext, bZ as ProductSelectionUrlEmit, b_ as ProductSelectionVariant, b$ as ProductUpsertFieldValidationErrorBody, c0 as ProductUpsertFieldValidationErrorReason, c1 as ProductVariantShape, c2 as RemoveDiscountParams, c3 as RemoveItemParams, c4 as RequestOptions, c5 as ResolveProductDisplayMediaInput, c6 as ResolveProductDisplayMediaResult, R as RetryConfig, c7 as ReturnItem, c8 as ReturnReason, c9 as ReturnWithRefundItem, ca as ReturnWithRefundParams, i as RootClient, j as RootCollectionClient, k as RootReadOnlyQueryBuilder, l as ServerApiOptions, cb as ShippingApi, cc as ShippingApiOptions, S as Sort, cd as StockCheckParams, ce as StockCheckResponse, cf as StockCheckResult, cg as StockSnapshotItem, ch as StockSnapshotParams, ci as UpdateFulfillmentParams, cj as UpdateItemParams, ck as UpdateOrderParams, af as UpdateProfileData, cl as UpdateReturnParams, cm as UpdateTransactionParams, cn as ValidateDiscountParams, co as ValidateDiscountResult, W as Where, cp as WithIdempotencyKey, cq as buildProductHref, cr as buildProductListingCard, cs as buildProductListingGroupsByOption, ct as buildProductListingProjection, cu as buildProductOptionMatrix, cv as buildProductOptionMatrixFromDetail, cw as createProductSelectionCodec, cx as getAvailableOptionValues, cy as getProductSelectionImages, cz as getSelectedValueByOptionId, cA as isProductUpsertFieldValidationErrorBody, cB as normalizeProductSelection, cC as normalizeProductSelectionFromMatrix, cD as normalizeSelectedValueIds, cE as parseProductSelection, cF as resolveListingPrimaryImagePointer, cG as resolveProductDisplayMedia, cH as resolveProductSelection, cI as resolveProductSelectionFromMatrix, cJ as resolveProductSelectionMedia, cK as resolveVariantForSelection, cL as selectNext, cM as selectedSwatchMediaItemId, cN as stringifyProductSelection } from './types-Byo_Rty4.js';
3
- import { P as Product } from './payload-types-C7tb7Xbs.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-C7tb7Xbs.js';
5
- export { C as CollectionType, P as Product, a as ProductCollection } from './types-1ylMrCuW.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-DK8_NXkh.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-CdqCauHQ.js';
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-DMvVHdb1.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_PLP_FIND_OPTIONS, b7 as PRODUCT_UPSERT_READONLY_FIELD_REASON, b8 as PRODUCT_UPSERT_UNKNOWN_FIELD_REASON, P as PayloadFindResponse, h as PayloadMutationResponse, b9 as PrepareFulfillmentOrderParams, ba as PrepareFulfillmentOrderResponse, bb as ProductApi, bc as ProductApiOptions, bd as ProductDetailBrand, be as ProductDetailCatalogListing, bf as ProductDetailCatalogResult, bg as ProductDetailCatalogVariant, bh as ProductDetailCategory, bi as ProductDetailImage, bj as ProductDetailImageMedia, bk as ProductDetailListing, bl as ProductDetailMedia, bm as ProductDetailOption, bn as ProductDetailOptionValue, ag as ProductDetailParams, ah as ProductDetailResult, bo as ProductDetailTag, bp as ProductDetailUnavailableReason, bq as ProductDetailVariant, br as ProductDetailVariantOptionValue, bs as ProductDetailVideo, bt as ProductHrefGroup, bu as ProductHrefOptions, bv as ProductHrefProduct, bw as ProductListingCard, bx as ProductListingCardOptions, by as ProductListingCardPriceRange, bz as ProductListingCardRepresentativeVariant, bA as ProductListingGroup, bB as ProductListingGroupSummary, bC as ProductListingGroupVariant, ai as ProductListingGroupsItem, bD as ProductListingGroupsProduct, bE as ProductListingGroupsResponse, bF as ProductListingProductShape, bG as ProductListingProjection, bH as ProductListingSwatch, bI as ProductMediaResolutionSource, bJ as ProductOptionMatrix, bK as ProductOptionMatrixOption, bL as ProductOptionMatrixValue, bM as ProductOptionMatrixVariant, bN as ProductOptionShape, bO as ProductOptionValueShape, bP as ProductOptionValueSwatch, bQ as ProductOptionValueSwatchInput, bR as ProductSelectionAvailableSwatch, bS as ProductSelectionAvailableValue, bT as ProductSelectionByOptionValue, bU as ProductSelectionCodecError, bV as ProductSelectionCodecOptions, bW as ProductSelectionInput, bX as ProductSelectionOptionValue, bY as ProductSelectionResolution, bZ as ProductSelectionResolutionContext, b_ as ProductSelectionUrlEmit, b$ as ProductSelectionVariant, c0 as ProductUpsertFieldValidationErrorBody, c1 as ProductUpsertFieldValidationErrorReason, c2 as ProductVariantShape, c3 as RemoveDiscountParams, c4 as RemoveItemParams, c5 as RequestOptions, c6 as ResolveCancelRefundFailedResponse, c7 as ResolveCancelRefundOutcome, c8 as ResolveCancelRefundParams, c9 as ResolveCancelRefundResponse, ca as ResolveCancelRefundSucceededResponse, cb as ResolveProductDisplayMediaInput, cc as ResolveProductDisplayMediaResult, R as RetryConfig, cd as ReturnItem, ce as ReturnReason, cf as ReturnWithRefundItem, cg as ReturnWithRefundParams, i as RootClient, j as RootCollectionClient, k as RootReadOnlyQueryBuilder, l as ServerApiOptions, ch as ShippingApi, ci as ShippingApiOptions, S as Sort, cj as StockCheckParams, ck as StockCheckResponse, cl as StockCheckResult, cm as StockSnapshotItem, cn as StockSnapshotParams, co as UpdateFulfillmentParams, cp as UpdateItemParams, cq as UpdateOrderParams, af as UpdateProfileData, cr as UpdateReturnParams, cs as UpdateTransactionParams, ct as ValidateDiscountParams, cu as ValidateDiscountResult, W as Where, cv as WithIdempotencyKey, cw as buildProductHref, cx as buildProductListingCard, cy as buildProductListingGroupsByOption, cz as buildProductListingProjection, cA as buildProductOptionMatrix, cB as buildProductOptionMatrixFromDetail, cC as createProductSelectionCodec, cD as getAvailableOptionValues, cE as getProductSelectionImages, cF as getSelectedValueByOptionId, cG as isProductUpsertFieldValidationErrorBody, cH as normalizeProductSelection, cI as normalizeProductSelectionFromMatrix, cJ as normalizeSelectedValueIds, cK as parseProductSelection, cL as resolveListingPrimaryImagePointer, cM as resolveProductDisplayMedia, cN as resolveProductSelection, cO as resolveProductSelectionFromMatrix, cP as resolveProductSelectionMedia, cQ as resolveVariantForSelection, cR as selectNext, cS as selectedSwatchMediaItemId, cT as stringifyProductSelection, cU as toShopifyPriceRangeV2 } from './types-DMvVHdb1.js';
3
+ import { P as Product } from './payload-types-CREOjFNT.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-CREOjFNT.js';
5
+ export { C as CollectionType, P as Product, a as ProductCollection } from './types-CxzWHspI.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-DTqoUZk_.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-Dqz05oaG.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';
@@ -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