@01.software/sdk 0.36.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.
- package/README.md +71 -6
- 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 +94 -114
- 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 +94 -114
- package/dist/client.js.map +1 -1
- package/dist/{collection-client-Bq5Zd7p7.d.ts → collection-client-DyELGUcL.d.ts} +3 -3
- package/dist/{collection-client-Cv0D2w1Q.d.cts → collection-client-zOmnxwdA.d.cts} +3 -3
- package/dist/{const-DVcM7Ac_.d.cts → const-CK_FPaIn.d.cts} +3 -3
- package/dist/{const-BDUKFP9w.d.ts → const-Dqz05oaG.d.ts} +3 -3
- 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-DRJs7QIh.d.cts} +9 -6
- package/dist/{index-BHDKJ6B3.d.cts → index-DTqoUZk_.d.ts} +9 -6
- package/dist/index.cjs +172 -132
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -9
- package/dist/index.d.ts +10 -9
- package/dist/index.js +172 -132
- 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-CREOjFNT.d.cts} +281 -108
- package/dist/{payload-types-BCui2Oml.d.ts → payload-types-CREOjFNT.d.ts} +281 -108
- package/dist/query.cjs +5 -3
- package/dist/query.cjs.map +1 -1
- package/dist/query.d.cts +5 -5
- package/dist/query.d.ts +5 -5
- package/dist/query.js +5 -3
- package/dist/query.js.map +1 -1
- package/dist/realtime.d.cts +2 -2
- package/dist/realtime.d.ts +2 -2
- package/dist/server.cjs +84 -69
- 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 +84 -69
- package/dist/server.js.map +1 -1
- package/dist/{types-Dib-zdK6.d.cts → types-BWMUr3Zw.d.cts} +195 -71
- package/dist/{types-CEzLf3PX.d.cts → types-BkZNhuBh.d.cts} +1 -1
- package/dist/{types-3qV6sY7T.d.ts → types-CxzWHspI.d.ts} +1 -1
- package/dist/{types-DK9EnLwJ.d.ts → types-DMvVHdb1.d.ts} +195 -71
- 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 +1 -1
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-
|
|
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
|
|
3
|
-
import { P as Product } from './payload-types-
|
|
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-
|
|
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 { 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
|
|
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
|
|
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-
|
|
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
|
|
3
|
-
import { P as Product } from './payload-types-
|
|
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-
|
|
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 { 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
|
|
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
|
|
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
|
|