@cimplify/sdk 0.50.2 → 0.51.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/dist/advanced.d.mts +1 -1
- package/dist/advanced.d.ts +1 -1
- package/dist/advanced.js +20 -20
- package/dist/advanced.mjs +1 -1
- package/dist/{chunk-D22UVSFN.js → chunk-CAG3TEXO.js} +2 -2
- package/dist/{chunk-CYGLTD7D.js → chunk-FJQC4VSN.js} +54 -43
- package/dist/{chunk-OFNVLUH4.mjs → chunk-FXACV333.mjs} +56 -53
- package/dist/{chunk-MBR2DBEN.mjs → chunk-GUZXQSGI.mjs} +20 -9
- package/dist/{chunk-24FK7VFL.mjs → chunk-QCS6D4XW.mjs} +1 -1
- package/dist/{chunk-DR4UPU6P.js → chunk-VOWMB2KR.js} +56 -53
- package/dist/{client-B8tJnOde.d.ts → client-B6x53-Al.d.ts} +45 -27
- package/dist/{client-BqCAm5vI.d.mts → client-BbrCopIS.d.mts} +1 -1
- package/dist/{client-BdbvMtOU.d.ts → client-BvEjhvwq.d.ts} +1 -1
- package/dist/{client-BZZK1txR.d.mts → client-CF2pmEE9.d.mts} +45 -27
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +61 -61
- package/dist/index.mjs +2 -2
- package/dist/react.d.mts +1 -1
- package/dist/react.d.ts +1 -1
- package/dist/react.js +16 -16
- package/dist/react.mjs +2 -2
- package/dist/server.d.mts +18 -10
- package/dist/server.d.ts +18 -10
- package/dist/server.js +3 -3
- package/dist/server.mjs +2 -2
- package/dist/testing/suite.d.mts +2 -2
- package/dist/testing/suite.d.ts +2 -2
- package/dist/testing/suite.js +22 -22
- package/dist/testing/suite.mjs +3 -3
- package/dist/testing.d.mts +2 -2
- package/dist/testing.d.ts +2 -2
- package/dist/testing.js +78 -78
- package/dist/testing.mjs +4 -4
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { aF as AUTHORIZATION_TYPE, aK as AUTH_MUTATION, au as AbortablePromise, V as ActivityRecommendation, W as ActivityRecommendationsResponse, v as ActivityService, N as ActivityStateResponse, cM as AddressData, dd as AddressInfo, bi as AmountToPay, cX as AuthResponse, A as AuthService, q as AuthStatus, df as AuthenticatedCustomer, dh as AuthenticatedData, D as AutocompletePrediction, E as AutocompleteResponse, cC as AvailabilityResult, ci as AvailableSlot, cl as Booking, cv as BookingModificationType, ck as BookingStatus, cm as BookingWithDetails, bE as BufferTimes, bZ as Business, cb as BusinessHours, bY as BusinessPreferences, B as BusinessService, ca as BusinessSettings, bX as BusinessType, c8 as BusinessWithLocations, ay as CHECKOUT_MODE, aL as CHECKOUT_MUTATION, aB as CHECKOUT_STEP, aH as CONTACT_TYPE, d as CacheOptions, ct as CancelBookingInput, cu as CancelBookingResult, by as CancelOrderInput, bG as CancellationPolicy, m as CartOperations, e as CatalogueQueries, b5 as CatalogueResult, b6 as CatalogueSnapshot, cc as CategoryInfo, a2 as ChatAttachment, a0 as ChatConversation, a1 as ChatConversationResponse, $ as ChatMessage, a3 as ChatWidgetStarter, cq as CheckSlotAvailabilityInput, cr as CheckSlotAvailabilityResult, c_ as CheckoutAddressInfo, dl as CheckoutCartData, dk as CheckoutCartItem, d0 as CheckoutCustomerInfo, am as CheckoutFormData, bw as CheckoutInput, ai as CheckoutMode, o as CheckoutOperations, aj as CheckoutOrderType, ak as CheckoutPaymentMethod, an as CheckoutResult, o as CheckoutService, as as CheckoutStatus, at as CheckoutStatusContext, al as CheckoutStep, C as CimplifyClient, a as CimplifyConfig, a9 as CimplifyElement, a8 as CimplifyElements, ax as ContactType, a5 as ContentType, cI as CreateAddressInput, cK as CreateMobileMoneyInput, cD as Customer, cE as CustomerAddress, co as CustomerBooking, cn as CustomerBookingServiceItem, cG as CustomerLinkPreferences, cF as CustomerMobileMoney, bD as CustomerServicePreferences, aP as DEFAULT_COUNTRY, aO as DEFAULT_CURRENCY, aG as DEVICE_TYPE, cj as DayAvailability, bS as DeliveryFeeDetails, Z as DeliveryFeeResponse, Y as DeliveryService, bN as DepositResult, aw as DeviceType, X as DismissMessageResponse, ad as ELEMENT_TYPES, ac as EVENT_TYPES, dc as ElementAppearance, dp as ElementEventHandler, ah as ElementEventType, af as ElementOptions, ag as ElementType, di as ElementsCheckoutData, dj as ElementsCheckoutResult, dg as ElementsCustomerInfo, ae as ElementsOptions, cO as EnrollAndLinkOrderInput, cR as EnrollAndLinkOrderResult, cL as EnrollmentData, aS as Err, bh as FeeBearerType, F as FetchQuoteInput, bf as FulfillmentLink, be as FulfillmentStatus, bd as FulfillmentType, d2 as FxQuote, d1 as FxQuoteRequest, d3 as FxRateResponse, u as FxService, cp as GetAvailableSlotsInput, p as GetOrdersOptions, G as GetProductsOptions, dn as IframeToParentMessage, I as InventoryService, aJ as LINK_MUTATION, aI as LINK_QUERY, bj as LineItem, ba as LineType, cH as LinkData, cQ as LinkEnrollResult, L as LinkService, cS as LinkSession, cP as LinkStatusResult, a6 as LiteBootstrap, t as LiteService, c0 as Location, bQ as LocationBooking, b_ as LocationTaxBehavior, b$ as LocationTaxOverrides, c3 as LocationTimeProfile, c9 as LocationWithDetails, ab as MESSAGE_TYPES, aE as MOBILE_MONEY_PROVIDER, cN as MobileMoneyData, c$ as MobileMoneyDetails, av as MobileMoneyProvider, ao as NextAction, aN as ORDER_MUTATION, az as ORDER_TYPE, da as ObservabilityHooks, aR as Ok, bk as Order, b9 as OrderChannel, bv as OrderFilter, bg as OrderFulfillmentSummary, bp as OrderGroup, bt as OrderGroupDetails, bq as OrderGroupPayment, bn as OrderGroupPaymentState, bo as OrderGroupPaymentStatus, bs as OrderGroupPaymentSummary, bm as OrderGroupStatus, bl as OrderHistory, bb as OrderLineState, bc as OrderLineStatus, bu as OrderPaymentEvent, O as OrderQueries, br as OrderSplitDetail, b7 as OrderStatus, db as OrderType, r as OtpResult, aA as PAYMENT_METHOD, aM as PAYMENT_MUTATION, aC as PAYMENT_STATE, aD as PICKUP_TIME_TYPE, dm as ParentToIframeMessage, de as PaymentMethodInfo, b8 as PaymentState, cZ as PickupTime, cY as PickupTimeType, H as PlaceDetailsResponse, z as PlacesService, P as PriceQuote, bI as PricingOverrides, ar as ProcessAndResolveOptions, ap as ProcessCheckoutOptions, aq as ProcessCheckoutResult, bR as ProviderResolutionSource, f as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, i as QuoteDynamicBuckets, h as QuoteStatus, j as QuoteUiMessage, b as ReadRequestOptions, g as RefreshQuoteInput, l as RefreshQuoteResult, bz as RefundOrderInput, bV as RelatedCandidate, bU as RelatedProduct, bW as RelatedProductsEnrichment, bT as RelationType, bC as ReminderMethod, bF as ReminderSettings, n as ReorderResult, d4 as RequestContext, d7 as RequestErrorEvent, R as RequestOptions, cV as RequestOtpInput, k as RequestSource, d5 as RequestStartEvent, d6 as RequestSuccessEvent, cs as RescheduleBookingInput, cw as RescheduleBookingResult, cz as RescheduleHistoryRecord, bL as ResourceAssignment, aQ as Result, d8 as RetryEvent, cU as RevokeAllSessionsResult, cT as RevokeSessionResult, c5 as Room, bJ as SchedulingMetadata, bM as SchedulingResult, s as SchedulingService, a4 as SenderType, cd as Service, cx as ServiceAvailabilityParams, cy as ServiceAvailabilityResult, c6 as ServiceCharge, bH as ServiceNotes, bO as ServiceScheduleRequest, bA as ServiceStatus, M as SessionActivityData, d9 as SessionChangeEvent, K as SessionMessage, cg as SlotResourceInfo, ch as SlotStaffInfo, ce as Staff, bK as StaffAssignment, bB as StaffRole, bP as StaffScheduleItem, cB as StockLevel, cA as StockStatus, c7 as StorefrontBootstrap, S as SubscriptionService, _ as SupportService, c4 as Table, a7 as TableInfo, c1 as TimeRange, c2 as TimeRanges, cf as TimeSlot, J as TrackCategoryViewOptions, T as TrackProductViewOptions, cJ as UpdateAddressInput, bx as UpdateOrderStatusInput, U as UpdateProfileInput, y as UploadInitResponse, x as UploadResult, w as UploadService, cW as VerifyOtpInput, b3 as combine, b4 as combineObject, c as createCimplifyClient, aa as createElements, aU as err, aZ as flatMap, b1 as fromPromise, a_ as getOrElse, aW as isErr, aV as isOk, aY as mapError, aX as mapResult, aT as ok, b0 as toNullable, b2 as tryCatch, a$ as unwrap } from './client-CF2pmEE9.mjs';
|
|
2
2
|
import { A as ApiError } from './product-C-xLzh7Q.mjs';
|
|
3
3
|
export { ak as AddOn, bh as AddOnDetails, bE as AddOnGroupDetails, am as AddOnOption, bD as AddOnOptionDetails, an as AddOnOptionPrice, al as AddOnWithOptions, bK as AddToCartInput, $ as AddressValue, b7 as AdjustmentType, bd as AppliedDiscount, F as AttributeAppliesTo, B as AttributeType, J as AttributeValidationRules, G as AttributeVisibility, bc as BenefitType, bN as BillingFrequency, bP as BillingMarkupType, bO as BillingPlanType, av as Bundle, az as BundleComponentData, aA as BundleComponentInfo, aC as BundleComponentVariantView, aB as BundleComponentView, au as BundlePriceType, ax as BundleProduct, bn as BundleSelectionData, bk as BundleSelectionInput, bm as BundleStoredSelection, aw as BundleSummary, ay as BundleWithDetails, bs as Cart, bi as CartAddOn, b5 as CartChannel, bt as CartItem, bG as CartItemDetails, bJ as CartMutationResult, bI as CartNotice, b4 as CartStatus, bM as CartSummary, bu as CartTotals, ap as Category, aq as CategorySummary, C as ChosenPrice, h as CimplifyError, ar as Collection, at as CollectionProduct, as as CollectionSummary, aK as ComponentGroup, aL as ComponentGroupWithComponents, aR as ComponentPriceBreakdown, bl as ComponentSchedulingData, aP as ComponentSelectionInput, aH as ComponentSourceType, aI as Composite, aO as CompositeComponent, aN as CompositeComponentView, aM as CompositeGroupView, bp as CompositePriceBreakdown, aQ as CompositePriceResult, aF as CompositePricingMode, bq as CompositeSelectionData, aP as CompositeSelectionInput, bo as CompositeStoredSelection, aJ as CompositeWithDetails, a as CurrencyCode, K as CustomAttributeDefinition, L as CustomAttributeValue, a7 as CustomerInputValue, y as DURATION_UNIT, a1 as DateRangeValue, a$ as Deal, a_ as DealBenefitType, w as DepositType, v as DigitalProductType, be as DiscountBreakdown, bf as DiscountDetails, b1 as DiscountValidation, bx as DisplayAddOn, by as DisplayAddOnOption, bv as DisplayCart, bw as DisplayCartItem, D as DisplayMode, x as DurationUnit, g as ERROR_HINTS, bR as EligiblePlansQuery, E as ErrorCode, e as ErrorCodeType, f as ErrorHint, T as FacetValue, bS as FormattedPlanOption, aG as GroupPricingBehavior, _ as INPUT_FIELD_TYPE, I as IdempotencyMismatchError, Y as InputFieldType, a4 as InputFieldValidation, u as InventoryType, W as KnowledgeArticle, br as LineConfiguration, aU as LocationProductPrice, a2 as LocationValue, H as MeasurementValue, M as Money, s as PRODUCT_TYPE, d as Pagination, P as PaginationParams, a0 as PhoneValue, aT as Price, b8 as PriceAdjustment, bb as PriceDecisionPath, aS as PriceEntryType, ba as PricePathTaxInfo, b6 as PriceSource, X as Product, ao as ProductAddOn, aV as ProductAvailability, aZ as ProductAvailabilityNow, bQ as ProductBillingPlan, b0 as ProductDealInfo, a6 as ProductInputField, O as ProductProperty, t as ProductRenderHint, aX as ProductTaxonomy, aW as ProductTimeProfile, r as ProductType, ac as ProductVariant, ah as ProductVariantValue, aa as ProductWithDetails, Q as PropertyFacet, N as PropertySource, a8 as QuantityPricingTier, R as RENDER_HINT, a9 as RelatedProductView, z as SalesChannel, S as SchedulingMode, bg as SelectedAddOnOption, a5 as SemanticKind, a3 as SignatureValue, bU as Subscription, bW as SubscriptionInvoice, bV as SubscriptionItem, bT as SubscriptionStatus, bX as SubscriptionWithDetails, b2 as Tag, b3 as TagsResponse, b9 as TaxPathComponent, U as TaxonomyAttributeTemplate, aY as TaxonomyWithChildren, bH as UICart, bz as UICartBusiness, bB as UICartCustomer, bA as UICartLocation, bC as UICartPricing, bL as UpdateCartItemInput, ae as VariantAxis, aj as VariantAxisSelection, ag as VariantAxisValue, aE as VariantAxisValueView, aD as VariantAxisView, af as VariantAxisWithValues, bj as VariantDetails, bF as VariantDetailsDTO, ad as VariantDisplayAttribute, ai as VariantLocationAvailability, V as VariantStrategy, ab as VariantView, Z as ZERO, c as currencyCode, p as enrichError, o as getErrorHint, j as isCimplifyError, n as isIdempotencyMismatchError, l as isQuoteConflictRequiringConsent, k as isQuoteError, q as isRetryableError, i as isSupportedCurrency, m as money, b as moneyFromNumber } from './product-C-xLzh7Q.mjs';
|
|
4
4
|
export { C as CURRENCY_SYMBOLS, M as MOBILE_MONEY_PROVIDERS, v as categorizePaymentError, B as detectMobileMoneyProvider, c as formatMoney, d as formatNumberCompact, f as formatPrice, a as formatPriceAdjustment, b as formatPriceCompact, u as formatPriceRange, j as formatPriceWithTax, e as formatProductPrice, m as getBasePrice, k as getCurrencySymbol, o as getDiscountPercentage, l as getDisplayPrice, q as getMarkupPercentage, t as getPriceRange, r as getProductCurrency, g as getTaxAmount, s as getUnitPriceAtQuantity, h as hasTaxInfo, n as isOnSale, y as isPaymentStatusFailure, z as isPaymentStatusRequiresAction, A as isPaymentStatusSuccess, i as isTaxInclusive, F as isValidPhoneForContext, w as normalizePaymentResponse, D as normalizePhoneToE164, x as normalizeStatusResponse, p as parsePrice, E as resolvePhoneCountryCode } from './index-Bo0NjgR6.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { aF as AUTHORIZATION_TYPE, aK as AUTH_MUTATION, au as AbortablePromise, V as ActivityRecommendation, W as ActivityRecommendationsResponse, v as ActivityService, N as ActivityStateResponse, cM as AddressData, dd as AddressInfo, bi as AmountToPay, cX as AuthResponse, A as AuthService, q as AuthStatus, df as AuthenticatedCustomer, dh as AuthenticatedData, D as AutocompletePrediction, E as AutocompleteResponse, cC as AvailabilityResult, ci as AvailableSlot, cl as Booking, cv as BookingModificationType, ck as BookingStatus, cm as BookingWithDetails, bE as BufferTimes, bZ as Business, cb as BusinessHours, bY as BusinessPreferences, B as BusinessService, ca as BusinessSettings, bX as BusinessType, c8 as BusinessWithLocations, ay as CHECKOUT_MODE, aL as CHECKOUT_MUTATION, aB as CHECKOUT_STEP, aH as CONTACT_TYPE, d as CacheOptions, ct as CancelBookingInput, cu as CancelBookingResult, by as CancelOrderInput, bG as CancellationPolicy, m as CartOperations, e as CatalogueQueries, b5 as CatalogueResult, b6 as CatalogueSnapshot, cc as CategoryInfo, a2 as ChatAttachment, a0 as ChatConversation, a1 as ChatConversationResponse, $ as ChatMessage, a3 as ChatWidgetStarter, cq as CheckSlotAvailabilityInput, cr as CheckSlotAvailabilityResult, c_ as CheckoutAddressInfo, dl as CheckoutCartData, dk as CheckoutCartItem, d0 as CheckoutCustomerInfo, am as CheckoutFormData, bw as CheckoutInput, ai as CheckoutMode, o as CheckoutOperations, aj as CheckoutOrderType, ak as CheckoutPaymentMethod, an as CheckoutResult, o as CheckoutService, as as CheckoutStatus, at as CheckoutStatusContext, al as CheckoutStep, C as CimplifyClient, a as CimplifyConfig, a9 as CimplifyElement, a8 as CimplifyElements, ax as ContactType, a5 as ContentType, cI as CreateAddressInput, cK as CreateMobileMoneyInput, cD as Customer, cE as CustomerAddress, co as CustomerBooking, cn as CustomerBookingServiceItem, cG as CustomerLinkPreferences, cF as CustomerMobileMoney, bD as CustomerServicePreferences, aP as DEFAULT_COUNTRY, aO as DEFAULT_CURRENCY, aG as DEVICE_TYPE, cj as DayAvailability, bS as DeliveryFeeDetails, Z as DeliveryFeeResponse, Y as DeliveryService, bN as DepositResult, aw as DeviceType, X as DismissMessageResponse, ad as ELEMENT_TYPES, ac as EVENT_TYPES, dc as ElementAppearance, dp as ElementEventHandler, ah as ElementEventType, af as ElementOptions, ag as ElementType, di as ElementsCheckoutData, dj as ElementsCheckoutResult, dg as ElementsCustomerInfo, ae as ElementsOptions, cO as EnrollAndLinkOrderInput, cR as EnrollAndLinkOrderResult, cL as EnrollmentData, aS as Err, bh as FeeBearerType, F as FetchQuoteInput, bf as FulfillmentLink, be as FulfillmentStatus, bd as FulfillmentType, d2 as FxQuote, d1 as FxQuoteRequest, d3 as FxRateResponse, u as FxService, cp as GetAvailableSlotsInput, p as GetOrdersOptions, G as GetProductsOptions, dn as IframeToParentMessage, I as InventoryService, aJ as LINK_MUTATION, aI as LINK_QUERY, bj as LineItem, ba as LineType, cH as LinkData, cQ as LinkEnrollResult, L as LinkService, cS as LinkSession, cP as LinkStatusResult, a6 as LiteBootstrap, t as LiteService, c0 as Location, bQ as LocationBooking, b_ as LocationTaxBehavior, b$ as LocationTaxOverrides, c3 as LocationTimeProfile, c9 as LocationWithDetails, ab as MESSAGE_TYPES, aE as MOBILE_MONEY_PROVIDER, cN as MobileMoneyData, c$ as MobileMoneyDetails, av as MobileMoneyProvider, ao as NextAction, aN as ORDER_MUTATION, az as ORDER_TYPE, da as ObservabilityHooks, aR as Ok, bk as Order, b9 as OrderChannel, bv as OrderFilter, bg as OrderFulfillmentSummary, bp as OrderGroup, bt as OrderGroupDetails, bq as OrderGroupPayment, bn as OrderGroupPaymentState, bo as OrderGroupPaymentStatus, bs as OrderGroupPaymentSummary, bm as OrderGroupStatus, bl as OrderHistory, bb as OrderLineState, bc as OrderLineStatus, bu as OrderPaymentEvent, O as OrderQueries, br as OrderSplitDetail, b7 as OrderStatus, db as OrderType, r as OtpResult, aA as PAYMENT_METHOD, aM as PAYMENT_MUTATION, aC as PAYMENT_STATE, aD as PICKUP_TIME_TYPE, dm as ParentToIframeMessage, de as PaymentMethodInfo, b8 as PaymentState, cZ as PickupTime, cY as PickupTimeType, H as PlaceDetailsResponse, z as PlacesService, P as PriceQuote, bI as PricingOverrides, ar as ProcessAndResolveOptions, ap as ProcessCheckoutOptions, aq as ProcessCheckoutResult, bR as ProviderResolutionSource, f as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, i as QuoteDynamicBuckets, h as QuoteStatus, j as QuoteUiMessage, b as ReadRequestOptions, g as RefreshQuoteInput, l as RefreshQuoteResult, bz as RefundOrderInput, bV as RelatedCandidate, bU as RelatedProduct, bW as RelatedProductsEnrichment, bT as RelationType, bC as ReminderMethod, bF as ReminderSettings, n as ReorderResult, d4 as RequestContext, d7 as RequestErrorEvent, R as RequestOptions, cV as RequestOtpInput, k as RequestSource, d5 as RequestStartEvent, d6 as RequestSuccessEvent, cs as RescheduleBookingInput, cw as RescheduleBookingResult, cz as RescheduleHistoryRecord, bL as ResourceAssignment, aQ as Result, d8 as RetryEvent, cU as RevokeAllSessionsResult, cT as RevokeSessionResult, c5 as Room, bJ as SchedulingMetadata, bM as SchedulingResult, s as SchedulingService, a4 as SenderType, cd as Service, cx as ServiceAvailabilityParams, cy as ServiceAvailabilityResult, c6 as ServiceCharge, bH as ServiceNotes, bO as ServiceScheduleRequest, bA as ServiceStatus, M as SessionActivityData, d9 as SessionChangeEvent, K as SessionMessage, cg as SlotResourceInfo, ch as SlotStaffInfo, ce as Staff, bK as StaffAssignment, bB as StaffRole, bP as StaffScheduleItem, cB as StockLevel, cA as StockStatus, c7 as StorefrontBootstrap, S as SubscriptionService, _ as SupportService, c4 as Table, a7 as TableInfo, c1 as TimeRange, c2 as TimeRanges, cf as TimeSlot, J as TrackCategoryViewOptions, T as TrackProductViewOptions, cJ as UpdateAddressInput, bx as UpdateOrderStatusInput, U as UpdateProfileInput, y as UploadInitResponse, x as UploadResult, w as UploadService, cW as VerifyOtpInput, b3 as combine, b4 as combineObject, c as createCimplifyClient, aa as createElements, aU as err, aZ as flatMap, b1 as fromPromise, a_ as getOrElse, aW as isErr, aV as isOk, aY as mapError, aX as mapResult, aT as ok, b0 as toNullable, b2 as tryCatch, a$ as unwrap } from './client-B6x53-Al.js';
|
|
2
2
|
import { A as ApiError } from './product-C-xLzh7Q.js';
|
|
3
3
|
export { ak as AddOn, bh as AddOnDetails, bE as AddOnGroupDetails, am as AddOnOption, bD as AddOnOptionDetails, an as AddOnOptionPrice, al as AddOnWithOptions, bK as AddToCartInput, $ as AddressValue, b7 as AdjustmentType, bd as AppliedDiscount, F as AttributeAppliesTo, B as AttributeType, J as AttributeValidationRules, G as AttributeVisibility, bc as BenefitType, bN as BillingFrequency, bP as BillingMarkupType, bO as BillingPlanType, av as Bundle, az as BundleComponentData, aA as BundleComponentInfo, aC as BundleComponentVariantView, aB as BundleComponentView, au as BundlePriceType, ax as BundleProduct, bn as BundleSelectionData, bk as BundleSelectionInput, bm as BundleStoredSelection, aw as BundleSummary, ay as BundleWithDetails, bs as Cart, bi as CartAddOn, b5 as CartChannel, bt as CartItem, bG as CartItemDetails, bJ as CartMutationResult, bI as CartNotice, b4 as CartStatus, bM as CartSummary, bu as CartTotals, ap as Category, aq as CategorySummary, C as ChosenPrice, h as CimplifyError, ar as Collection, at as CollectionProduct, as as CollectionSummary, aK as ComponentGroup, aL as ComponentGroupWithComponents, aR as ComponentPriceBreakdown, bl as ComponentSchedulingData, aP as ComponentSelectionInput, aH as ComponentSourceType, aI as Composite, aO as CompositeComponent, aN as CompositeComponentView, aM as CompositeGroupView, bp as CompositePriceBreakdown, aQ as CompositePriceResult, aF as CompositePricingMode, bq as CompositeSelectionData, aP as CompositeSelectionInput, bo as CompositeStoredSelection, aJ as CompositeWithDetails, a as CurrencyCode, K as CustomAttributeDefinition, L as CustomAttributeValue, a7 as CustomerInputValue, y as DURATION_UNIT, a1 as DateRangeValue, a$ as Deal, a_ as DealBenefitType, w as DepositType, v as DigitalProductType, be as DiscountBreakdown, bf as DiscountDetails, b1 as DiscountValidation, bx as DisplayAddOn, by as DisplayAddOnOption, bv as DisplayCart, bw as DisplayCartItem, D as DisplayMode, x as DurationUnit, g as ERROR_HINTS, bR as EligiblePlansQuery, E as ErrorCode, e as ErrorCodeType, f as ErrorHint, T as FacetValue, bS as FormattedPlanOption, aG as GroupPricingBehavior, _ as INPUT_FIELD_TYPE, I as IdempotencyMismatchError, Y as InputFieldType, a4 as InputFieldValidation, u as InventoryType, W as KnowledgeArticle, br as LineConfiguration, aU as LocationProductPrice, a2 as LocationValue, H as MeasurementValue, M as Money, s as PRODUCT_TYPE, d as Pagination, P as PaginationParams, a0 as PhoneValue, aT as Price, b8 as PriceAdjustment, bb as PriceDecisionPath, aS as PriceEntryType, ba as PricePathTaxInfo, b6 as PriceSource, X as Product, ao as ProductAddOn, aV as ProductAvailability, aZ as ProductAvailabilityNow, bQ as ProductBillingPlan, b0 as ProductDealInfo, a6 as ProductInputField, O as ProductProperty, t as ProductRenderHint, aX as ProductTaxonomy, aW as ProductTimeProfile, r as ProductType, ac as ProductVariant, ah as ProductVariantValue, aa as ProductWithDetails, Q as PropertyFacet, N as PropertySource, a8 as QuantityPricingTier, R as RENDER_HINT, a9 as RelatedProductView, z as SalesChannel, S as SchedulingMode, bg as SelectedAddOnOption, a5 as SemanticKind, a3 as SignatureValue, bU as Subscription, bW as SubscriptionInvoice, bV as SubscriptionItem, bT as SubscriptionStatus, bX as SubscriptionWithDetails, b2 as Tag, b3 as TagsResponse, b9 as TaxPathComponent, U as TaxonomyAttributeTemplate, aY as TaxonomyWithChildren, bH as UICart, bz as UICartBusiness, bB as UICartCustomer, bA as UICartLocation, bC as UICartPricing, bL as UpdateCartItemInput, ae as VariantAxis, aj as VariantAxisSelection, ag as VariantAxisValue, aE as VariantAxisValueView, aD as VariantAxisView, af as VariantAxisWithValues, bj as VariantDetails, bF as VariantDetailsDTO, ad as VariantDisplayAttribute, ai as VariantLocationAvailability, V as VariantStrategy, ab as VariantView, Z as ZERO, c as currencyCode, p as enrichError, o as getErrorHint, j as isCimplifyError, n as isIdempotencyMismatchError, l as isQuoteConflictRequiringConsent, k as isQuoteError, q as isRetryableError, i as isSupportedCurrency, m as money, b as moneyFromNumber } from './product-C-xLzh7Q.js';
|
|
4
4
|
export { C as CURRENCY_SYMBOLS, M as MOBILE_MONEY_PROVIDERS, v as categorizePaymentError, B as detectMobileMoneyProvider, c as formatMoney, d as formatNumberCompact, f as formatPrice, a as formatPriceAdjustment, b as formatPriceCompact, u as formatPriceRange, j as formatPriceWithTax, e as formatProductPrice, m as getBasePrice, k as getCurrencySymbol, o as getDiscountPercentage, l as getDisplayPrice, q as getMarkupPercentage, t as getPriceRange, r as getProductCurrency, g as getTaxAmount, s as getUnitPriceAtQuantity, h as hasTaxInfo, n as isOnSale, y as isPaymentStatusFailure, z as isPaymentStatusRequiresAction, A as isPaymentStatusSuccess, i as isTaxInclusive, F as isValidPhoneForContext, w as normalizePaymentResponse, D as normalizePhoneToE164, x as normalizeStatusResponse, p as parsePrice, E as resolvePhoneCountryCode } from './index-BAohYhdg.js';
|
package/dist/index.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
var chunkMN4PNKJA_js = require('./chunk-MN4PNKJA.js');
|
|
4
4
|
var chunkL5GKVQVJ_js = require('./chunk-L5GKVQVJ.js');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
5
|
+
var chunkFJQC4VSN_js = require('./chunk-FJQC4VSN.js');
|
|
6
|
+
var chunkVOWMB2KR_js = require('./chunk-VOWMB2KR.js');
|
|
7
7
|
var chunk6RP6OPYO_js = require('./chunk-6RP6OPYO.js');
|
|
8
8
|
var chunkTKOTACKZ_js = require('./chunk-TKOTACKZ.js');
|
|
9
9
|
|
|
@@ -59,239 +59,239 @@ Object.defineProperty(exports, "resolvePhoneCountryCode", {
|
|
|
59
59
|
});
|
|
60
60
|
Object.defineProperty(exports, "ActivityService", {
|
|
61
61
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkFJQC4VSN_js.ActivityService; }
|
|
63
63
|
});
|
|
64
64
|
Object.defineProperty(exports, "CimplifyClient", {
|
|
65
65
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkFJQC4VSN_js.CimplifyClient; }
|
|
67
67
|
});
|
|
68
68
|
Object.defineProperty(exports, "DeliveryService", {
|
|
69
69
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunkFJQC4VSN_js.DeliveryService; }
|
|
71
71
|
});
|
|
72
72
|
Object.defineProperty(exports, "PlacesService", {
|
|
73
73
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunkFJQC4VSN_js.PlacesService; }
|
|
75
75
|
});
|
|
76
76
|
Object.defineProperty(exports, "SubscriptionService", {
|
|
77
77
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunkFJQC4VSN_js.SubscriptionService; }
|
|
79
79
|
});
|
|
80
80
|
Object.defineProperty(exports, "SupportService", {
|
|
81
81
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunkFJQC4VSN_js.SupportService; }
|
|
83
83
|
});
|
|
84
84
|
Object.defineProperty(exports, "UploadService", {
|
|
85
85
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunkFJQC4VSN_js.UploadService; }
|
|
87
87
|
});
|
|
88
88
|
Object.defineProperty(exports, "createCimplifyClient", {
|
|
89
89
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunkFJQC4VSN_js.createCimplifyClient; }
|
|
91
91
|
});
|
|
92
92
|
Object.defineProperty(exports, "AUTHORIZATION_TYPE", {
|
|
93
93
|
enumerable: true,
|
|
94
|
-
get: function () { return
|
|
94
|
+
get: function () { return chunkVOWMB2KR_js.AUTHORIZATION_TYPE; }
|
|
95
95
|
});
|
|
96
96
|
Object.defineProperty(exports, "AUTH_MUTATION", {
|
|
97
97
|
enumerable: true,
|
|
98
|
-
get: function () { return
|
|
98
|
+
get: function () { return chunkVOWMB2KR_js.AUTH_MUTATION; }
|
|
99
99
|
});
|
|
100
100
|
Object.defineProperty(exports, "AuthService", {
|
|
101
101
|
enumerable: true,
|
|
102
|
-
get: function () { return
|
|
102
|
+
get: function () { return chunkVOWMB2KR_js.AuthService; }
|
|
103
103
|
});
|
|
104
104
|
Object.defineProperty(exports, "BusinessService", {
|
|
105
105
|
enumerable: true,
|
|
106
|
-
get: function () { return
|
|
106
|
+
get: function () { return chunkVOWMB2KR_js.BusinessService; }
|
|
107
107
|
});
|
|
108
108
|
Object.defineProperty(exports, "CHECKOUT_MODE", {
|
|
109
109
|
enumerable: true,
|
|
110
|
-
get: function () { return
|
|
110
|
+
get: function () { return chunkVOWMB2KR_js.CHECKOUT_MODE; }
|
|
111
111
|
});
|
|
112
112
|
Object.defineProperty(exports, "CHECKOUT_MUTATION", {
|
|
113
113
|
enumerable: true,
|
|
114
|
-
get: function () { return
|
|
114
|
+
get: function () { return chunkVOWMB2KR_js.CHECKOUT_MUTATION; }
|
|
115
115
|
});
|
|
116
116
|
Object.defineProperty(exports, "CHECKOUT_STEP", {
|
|
117
117
|
enumerable: true,
|
|
118
|
-
get: function () { return
|
|
118
|
+
get: function () { return chunkVOWMB2KR_js.CHECKOUT_STEP; }
|
|
119
119
|
});
|
|
120
120
|
Object.defineProperty(exports, "CONTACT_TYPE", {
|
|
121
121
|
enumerable: true,
|
|
122
|
-
get: function () { return
|
|
122
|
+
get: function () { return chunkVOWMB2KR_js.CONTACT_TYPE; }
|
|
123
123
|
});
|
|
124
124
|
Object.defineProperty(exports, "CartOperations", {
|
|
125
125
|
enumerable: true,
|
|
126
|
-
get: function () { return
|
|
126
|
+
get: function () { return chunkVOWMB2KR_js.CartOperations; }
|
|
127
127
|
});
|
|
128
128
|
Object.defineProperty(exports, "CatalogueQueries", {
|
|
129
129
|
enumerable: true,
|
|
130
|
-
get: function () { return
|
|
130
|
+
get: function () { return chunkVOWMB2KR_js.CatalogueQueries; }
|
|
131
131
|
});
|
|
132
132
|
Object.defineProperty(exports, "CheckoutOperations", {
|
|
133
133
|
enumerable: true,
|
|
134
|
-
get: function () { return
|
|
134
|
+
get: function () { return chunkVOWMB2KR_js.CheckoutService; }
|
|
135
135
|
});
|
|
136
136
|
Object.defineProperty(exports, "CheckoutService", {
|
|
137
137
|
enumerable: true,
|
|
138
|
-
get: function () { return
|
|
138
|
+
get: function () { return chunkVOWMB2KR_js.CheckoutService; }
|
|
139
139
|
});
|
|
140
140
|
Object.defineProperty(exports, "CimplifyElement", {
|
|
141
141
|
enumerable: true,
|
|
142
|
-
get: function () { return
|
|
142
|
+
get: function () { return chunkVOWMB2KR_js.CimplifyElement; }
|
|
143
143
|
});
|
|
144
144
|
Object.defineProperty(exports, "CimplifyElements", {
|
|
145
145
|
enumerable: true,
|
|
146
|
-
get: function () { return
|
|
146
|
+
get: function () { return chunkVOWMB2KR_js.CimplifyElements; }
|
|
147
147
|
});
|
|
148
148
|
Object.defineProperty(exports, "DEFAULT_COUNTRY", {
|
|
149
149
|
enumerable: true,
|
|
150
|
-
get: function () { return
|
|
150
|
+
get: function () { return chunkVOWMB2KR_js.DEFAULT_COUNTRY; }
|
|
151
151
|
});
|
|
152
152
|
Object.defineProperty(exports, "DEFAULT_CURRENCY", {
|
|
153
153
|
enumerable: true,
|
|
154
|
-
get: function () { return
|
|
154
|
+
get: function () { return chunkVOWMB2KR_js.DEFAULT_CURRENCY; }
|
|
155
155
|
});
|
|
156
156
|
Object.defineProperty(exports, "DEVICE_TYPE", {
|
|
157
157
|
enumerable: true,
|
|
158
|
-
get: function () { return
|
|
158
|
+
get: function () { return chunkVOWMB2KR_js.DEVICE_TYPE; }
|
|
159
159
|
});
|
|
160
160
|
Object.defineProperty(exports, "ELEMENT_TYPES", {
|
|
161
161
|
enumerable: true,
|
|
162
|
-
get: function () { return
|
|
162
|
+
get: function () { return chunkVOWMB2KR_js.ELEMENT_TYPES; }
|
|
163
163
|
});
|
|
164
164
|
Object.defineProperty(exports, "EVENT_TYPES", {
|
|
165
165
|
enumerable: true,
|
|
166
|
-
get: function () { return
|
|
166
|
+
get: function () { return chunkVOWMB2KR_js.EVENT_TYPES; }
|
|
167
167
|
});
|
|
168
168
|
Object.defineProperty(exports, "FxService", {
|
|
169
169
|
enumerable: true,
|
|
170
|
-
get: function () { return
|
|
170
|
+
get: function () { return chunkVOWMB2KR_js.FxService; }
|
|
171
171
|
});
|
|
172
172
|
Object.defineProperty(exports, "InventoryService", {
|
|
173
173
|
enumerable: true,
|
|
174
|
-
get: function () { return
|
|
174
|
+
get: function () { return chunkVOWMB2KR_js.InventoryService; }
|
|
175
175
|
});
|
|
176
176
|
Object.defineProperty(exports, "LINK_MUTATION", {
|
|
177
177
|
enumerable: true,
|
|
178
|
-
get: function () { return
|
|
178
|
+
get: function () { return chunkVOWMB2KR_js.LINK_MUTATION; }
|
|
179
179
|
});
|
|
180
180
|
Object.defineProperty(exports, "LINK_QUERY", {
|
|
181
181
|
enumerable: true,
|
|
182
|
-
get: function () { return
|
|
182
|
+
get: function () { return chunkVOWMB2KR_js.LINK_QUERY; }
|
|
183
183
|
});
|
|
184
184
|
Object.defineProperty(exports, "LinkService", {
|
|
185
185
|
enumerable: true,
|
|
186
|
-
get: function () { return
|
|
186
|
+
get: function () { return chunkVOWMB2KR_js.LinkService; }
|
|
187
187
|
});
|
|
188
188
|
Object.defineProperty(exports, "LiteService", {
|
|
189
189
|
enumerable: true,
|
|
190
|
-
get: function () { return
|
|
190
|
+
get: function () { return chunkVOWMB2KR_js.LiteService; }
|
|
191
191
|
});
|
|
192
192
|
Object.defineProperty(exports, "MESSAGE_TYPES", {
|
|
193
193
|
enumerable: true,
|
|
194
|
-
get: function () { return
|
|
194
|
+
get: function () { return chunkVOWMB2KR_js.MESSAGE_TYPES; }
|
|
195
195
|
});
|
|
196
196
|
Object.defineProperty(exports, "MOBILE_MONEY_PROVIDER", {
|
|
197
197
|
enumerable: true,
|
|
198
|
-
get: function () { return
|
|
198
|
+
get: function () { return chunkVOWMB2KR_js.MOBILE_MONEY_PROVIDER; }
|
|
199
199
|
});
|
|
200
200
|
Object.defineProperty(exports, "ORDER_MUTATION", {
|
|
201
201
|
enumerable: true,
|
|
202
|
-
get: function () { return
|
|
202
|
+
get: function () { return chunkVOWMB2KR_js.ORDER_MUTATION; }
|
|
203
203
|
});
|
|
204
204
|
Object.defineProperty(exports, "ORDER_TYPE", {
|
|
205
205
|
enumerable: true,
|
|
206
|
-
get: function () { return
|
|
206
|
+
get: function () { return chunkVOWMB2KR_js.ORDER_TYPE; }
|
|
207
207
|
});
|
|
208
208
|
Object.defineProperty(exports, "OrderQueries", {
|
|
209
209
|
enumerable: true,
|
|
210
|
-
get: function () { return
|
|
210
|
+
get: function () { return chunkVOWMB2KR_js.OrderQueries; }
|
|
211
211
|
});
|
|
212
212
|
Object.defineProperty(exports, "PAYMENT_METHOD", {
|
|
213
213
|
enumerable: true,
|
|
214
|
-
get: function () { return
|
|
214
|
+
get: function () { return chunkVOWMB2KR_js.PAYMENT_METHOD; }
|
|
215
215
|
});
|
|
216
216
|
Object.defineProperty(exports, "PAYMENT_MUTATION", {
|
|
217
217
|
enumerable: true,
|
|
218
|
-
get: function () { return
|
|
218
|
+
get: function () { return chunkVOWMB2KR_js.PAYMENT_MUTATION; }
|
|
219
219
|
});
|
|
220
220
|
Object.defineProperty(exports, "PAYMENT_STATE", {
|
|
221
221
|
enumerable: true,
|
|
222
|
-
get: function () { return
|
|
222
|
+
get: function () { return chunkVOWMB2KR_js.PAYMENT_STATE; }
|
|
223
223
|
});
|
|
224
224
|
Object.defineProperty(exports, "PICKUP_TIME_TYPE", {
|
|
225
225
|
enumerable: true,
|
|
226
|
-
get: function () { return
|
|
226
|
+
get: function () { return chunkVOWMB2KR_js.PICKUP_TIME_TYPE; }
|
|
227
227
|
});
|
|
228
228
|
Object.defineProperty(exports, "SchedulingService", {
|
|
229
229
|
enumerable: true,
|
|
230
|
-
get: function () { return
|
|
230
|
+
get: function () { return chunkVOWMB2KR_js.SchedulingService; }
|
|
231
231
|
});
|
|
232
232
|
Object.defineProperty(exports, "combine", {
|
|
233
233
|
enumerable: true,
|
|
234
|
-
get: function () { return
|
|
234
|
+
get: function () { return chunkVOWMB2KR_js.combine; }
|
|
235
235
|
});
|
|
236
236
|
Object.defineProperty(exports, "combineObject", {
|
|
237
237
|
enumerable: true,
|
|
238
|
-
get: function () { return
|
|
238
|
+
get: function () { return chunkVOWMB2KR_js.combineObject; }
|
|
239
239
|
});
|
|
240
240
|
Object.defineProperty(exports, "createElements", {
|
|
241
241
|
enumerable: true,
|
|
242
|
-
get: function () { return
|
|
242
|
+
get: function () { return chunkVOWMB2KR_js.createElements; }
|
|
243
243
|
});
|
|
244
244
|
Object.defineProperty(exports, "err", {
|
|
245
245
|
enumerable: true,
|
|
246
|
-
get: function () { return
|
|
246
|
+
get: function () { return chunkVOWMB2KR_js.err; }
|
|
247
247
|
});
|
|
248
248
|
Object.defineProperty(exports, "flatMap", {
|
|
249
249
|
enumerable: true,
|
|
250
|
-
get: function () { return
|
|
250
|
+
get: function () { return chunkVOWMB2KR_js.flatMap; }
|
|
251
251
|
});
|
|
252
252
|
Object.defineProperty(exports, "fromPromise", {
|
|
253
253
|
enumerable: true,
|
|
254
|
-
get: function () { return
|
|
254
|
+
get: function () { return chunkVOWMB2KR_js.fromPromise; }
|
|
255
255
|
});
|
|
256
256
|
Object.defineProperty(exports, "generateIdempotencyKey", {
|
|
257
257
|
enumerable: true,
|
|
258
|
-
get: function () { return
|
|
258
|
+
get: function () { return chunkVOWMB2KR_js.generateIdempotencyKey; }
|
|
259
259
|
});
|
|
260
260
|
Object.defineProperty(exports, "getOrElse", {
|
|
261
261
|
enumerable: true,
|
|
262
|
-
get: function () { return
|
|
262
|
+
get: function () { return chunkVOWMB2KR_js.getOrElse; }
|
|
263
263
|
});
|
|
264
264
|
Object.defineProperty(exports, "isErr", {
|
|
265
265
|
enumerable: true,
|
|
266
|
-
get: function () { return
|
|
266
|
+
get: function () { return chunkVOWMB2KR_js.isErr; }
|
|
267
267
|
});
|
|
268
268
|
Object.defineProperty(exports, "isOk", {
|
|
269
269
|
enumerable: true,
|
|
270
|
-
get: function () { return
|
|
270
|
+
get: function () { return chunkVOWMB2KR_js.isOk; }
|
|
271
271
|
});
|
|
272
272
|
Object.defineProperty(exports, "mapError", {
|
|
273
273
|
enumerable: true,
|
|
274
|
-
get: function () { return
|
|
274
|
+
get: function () { return chunkVOWMB2KR_js.mapError; }
|
|
275
275
|
});
|
|
276
276
|
Object.defineProperty(exports, "mapResult", {
|
|
277
277
|
enumerable: true,
|
|
278
|
-
get: function () { return
|
|
278
|
+
get: function () { return chunkVOWMB2KR_js.mapResult; }
|
|
279
279
|
});
|
|
280
280
|
Object.defineProperty(exports, "ok", {
|
|
281
281
|
enumerable: true,
|
|
282
|
-
get: function () { return
|
|
282
|
+
get: function () { return chunkVOWMB2KR_js.ok; }
|
|
283
283
|
});
|
|
284
284
|
Object.defineProperty(exports, "toNullable", {
|
|
285
285
|
enumerable: true,
|
|
286
|
-
get: function () { return
|
|
286
|
+
get: function () { return chunkVOWMB2KR_js.toNullable; }
|
|
287
287
|
});
|
|
288
288
|
Object.defineProperty(exports, "tryCatch", {
|
|
289
289
|
enumerable: true,
|
|
290
|
-
get: function () { return
|
|
290
|
+
get: function () { return chunkVOWMB2KR_js.tryCatch; }
|
|
291
291
|
});
|
|
292
292
|
Object.defineProperty(exports, "unwrap", {
|
|
293
293
|
enumerable: true,
|
|
294
|
-
get: function () { return
|
|
294
|
+
get: function () { return chunkVOWMB2KR_js.unwrap; }
|
|
295
295
|
});
|
|
296
296
|
Object.defineProperty(exports, "CURRENCY_SYMBOLS", {
|
|
297
297
|
enumerable: true,
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { CIMPLIFY_CDN_HOSTS, DEFAULT_CDN_BASE_URL, DURATION_UNIT, INPUT_FIELD_TYPE, PRODUCT_TYPE, RENDER_HINT, assetUrl, getVariantDisplayName, isCimplifyAsset } from './chunk-NRDRVZ62.mjs';
|
|
2
2
|
export { isValidPhoneForContext, normalizePhoneToE164, resolvePhoneCountryCode } from './chunk-YOIVZ6OA.mjs';
|
|
3
|
-
export { ActivityService, CimplifyClient, DeliveryService, PlacesService, SubscriptionService, SupportService, UploadService, createCimplifyClient } from './chunk-
|
|
4
|
-
export { AUTHORIZATION_TYPE, AUTH_MUTATION, AuthService, BusinessService, CHECKOUT_MODE, CHECKOUT_MUTATION, CHECKOUT_STEP, CONTACT_TYPE, CartOperations, CatalogueQueries, CheckoutService as CheckoutOperations, CheckoutService, CimplifyElement, CimplifyElements, DEFAULT_COUNTRY, DEFAULT_CURRENCY, DEVICE_TYPE, ELEMENT_TYPES, EVENT_TYPES, FxService, InventoryService, LINK_MUTATION, LINK_QUERY, LinkService, LiteService, MESSAGE_TYPES, MOBILE_MONEY_PROVIDER, ORDER_MUTATION, ORDER_TYPE, OrderQueries, PAYMENT_METHOD, PAYMENT_MUTATION, PAYMENT_STATE, PICKUP_TIME_TYPE, SchedulingService, combine, combineObject, createElements, err, flatMap, fromPromise, generateIdempotencyKey, getOrElse, isErr, isOk, mapError, mapResult, ok, toNullable, tryCatch, unwrap } from './chunk-
|
|
3
|
+
export { ActivityService, CimplifyClient, DeliveryService, PlacesService, SubscriptionService, SupportService, UploadService, createCimplifyClient } from './chunk-GUZXQSGI.mjs';
|
|
4
|
+
export { AUTHORIZATION_TYPE, AUTH_MUTATION, AuthService, BusinessService, CHECKOUT_MODE, CHECKOUT_MUTATION, CHECKOUT_STEP, CONTACT_TYPE, CartOperations, CatalogueQueries, CheckoutService as CheckoutOperations, CheckoutService, CimplifyElement, CimplifyElements, DEFAULT_COUNTRY, DEFAULT_CURRENCY, DEVICE_TYPE, ELEMENT_TYPES, EVENT_TYPES, FxService, InventoryService, LINK_MUTATION, LINK_QUERY, LinkService, LiteService, MESSAGE_TYPES, MOBILE_MONEY_PROVIDER, ORDER_MUTATION, ORDER_TYPE, OrderQueries, PAYMENT_METHOD, PAYMENT_MUTATION, PAYMENT_STATE, PICKUP_TIME_TYPE, SchedulingService, combine, combineObject, createElements, err, flatMap, fromPromise, generateIdempotencyKey, getOrElse, isErr, isOk, mapError, mapResult, ok, toNullable, tryCatch, unwrap } from './chunk-FXACV333.mjs';
|
|
5
5
|
export { CURRENCY_SYMBOLS, MOBILE_MONEY_PROVIDERS, categorizePaymentError, detectMobileMoneyProvider, formatMoney, formatNumberCompact, formatPrice, formatPriceAdjustment, formatPriceCompact, formatPriceRange, formatPriceWithTax, formatProductPrice, getBasePrice, getCurrencySymbol, getDiscountPercentage, getDisplayPrice, getMarkupPercentage, getPriceRange, getProductCurrency, getTaxAmount, getUnitPriceAtQuantity, hasTaxInfo, isOnSale, isPaymentStatusFailure, isPaymentStatusRequiresAction, isPaymentStatusSuccess, isTaxInclusive, normalizePaymentResponse, normalizeStatusResponse, parsePrice } from './chunk-XY2DFX5K.mjs';
|
|
6
6
|
export { CimplifyError, ERROR_HINTS, ErrorCode, IdempotencyMismatchError, ZERO, currencyCode, enrichError, getErrorHint, isCimplifyError, isIdempotencyMismatchError, isQuoteConflictRequiringConsent, isQuoteError, isRetryableError, isSupportedCurrency, money, moneyFromNumber } from './chunk-Z2AYLZDF.mjs';
|
package/dist/react.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React$1, { ReactNode } from 'react';
|
|
2
2
|
import { A as AdSlot, a as AdPosition, e as AdContextValue } from './ads-BxbWrwqp.mjs';
|
|
3
3
|
export { c as AdConfig, g as getVariantDisplayName } from './ads-BxbWrwqp.mjs';
|
|
4
|
-
import { C as CimplifyClient,
|
|
4
|
+
import { C as CimplifyClient, aq as ProcessCheckoutResult, as as CheckoutStatus, at as CheckoutStatusContext, c0 as Location, bZ as Business, n as ReorderResult, b7 as OrderStatus, bk as Order, f as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, P as PriceQuote, j as QuoteUiMessage, cd as Service, ci as AvailableSlot, cj as DayAvailability, co as CustomerBooking, cu as CancelBookingResult, N as ActivityStateResponse, K as SessionMessage, V as ActivityRecommendation, Z as DeliveryFeeResponse, d3 as FxRateResponse, c7 as StorefrontBootstrap, a3 as ChatWidgetStarter, $ as ChatMessage, ae as ElementsOptions, dh as AuthenticatedData, dd as AddressInfo, de as PaymentMethodInfo, a8 as CimplifyElements, dj as ElementsCheckoutResult, ap as ProcessCheckoutOptions, bj as LineItem, ce as Staff, c5 as Room } from './client-CF2pmEE9.mjs';
|
|
5
5
|
import { a as CurrencyCode, X as Product, d as Pagination, h as CimplifyError, aa as ProductWithDetails, ap as Category, M as Money, bk as BundleSelectionInput, aP as ComponentSelectionInput, bn as BundleSelectionData, bq as CompositeSelectionData, ar as Collection, aX as ProductTaxonomy, aY as TaxonomyWithChildren, aW as ProductTimeProfile, a$ as Deal, b0 as ProductDealInfo, b1 as DiscountValidation, aw as BundleSummary, aQ as CompositePriceResult, bT as SubscriptionStatus, bU as Subscription, bX as SubscriptionWithDetails, K as CustomAttributeDefinition, Q as PropertyFacet, bQ as ProductBillingPlan, ab as VariantView, af as VariantAxisWithValues, al as AddOnWithOptions, aB as BundleComponentView, au as BundlePriceType, aM as CompositeGroupView, bv as DisplayCart, a6 as ProductInputField, S as SchedulingMode, x as DurationUnit, L as CustomAttributeValue, O as ProductProperty, a8 as QuantityPricingTier } from './product-C-xLzh7Q.mjs';
|
|
6
6
|
import { P as ProductWithPrice } from './price-BjehlIhG.mjs';
|
|
7
7
|
import { ClassValue } from 'clsx';
|
package/dist/react.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React$1, { ReactNode } from 'react';
|
|
2
2
|
import { A as AdSlot, a as AdPosition, e as AdContextValue } from './ads-BxbWrwqp.js';
|
|
3
3
|
export { c as AdConfig, g as getVariantDisplayName } from './ads-BxbWrwqp.js';
|
|
4
|
-
import { C as CimplifyClient,
|
|
4
|
+
import { C as CimplifyClient, aq as ProcessCheckoutResult, as as CheckoutStatus, at as CheckoutStatusContext, c0 as Location, bZ as Business, n as ReorderResult, b7 as OrderStatus, bk as Order, f as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, P as PriceQuote, j as QuoteUiMessage, cd as Service, ci as AvailableSlot, cj as DayAvailability, co as CustomerBooking, cu as CancelBookingResult, N as ActivityStateResponse, K as SessionMessage, V as ActivityRecommendation, Z as DeliveryFeeResponse, d3 as FxRateResponse, c7 as StorefrontBootstrap, a3 as ChatWidgetStarter, $ as ChatMessage, ae as ElementsOptions, dh as AuthenticatedData, dd as AddressInfo, de as PaymentMethodInfo, a8 as CimplifyElements, dj as ElementsCheckoutResult, ap as ProcessCheckoutOptions, bj as LineItem, ce as Staff, c5 as Room } from './client-B6x53-Al.js';
|
|
5
5
|
import { a as CurrencyCode, X as Product, d as Pagination, h as CimplifyError, aa as ProductWithDetails, ap as Category, M as Money, bk as BundleSelectionInput, aP as ComponentSelectionInput, bn as BundleSelectionData, bq as CompositeSelectionData, ar as Collection, aX as ProductTaxonomy, aY as TaxonomyWithChildren, aW as ProductTimeProfile, a$ as Deal, b0 as ProductDealInfo, b1 as DiscountValidation, aw as BundleSummary, aQ as CompositePriceResult, bT as SubscriptionStatus, bU as Subscription, bX as SubscriptionWithDetails, K as CustomAttributeDefinition, Q as PropertyFacet, bQ as ProductBillingPlan, ab as VariantView, af as VariantAxisWithValues, al as AddOnWithOptions, aB as BundleComponentView, au as BundlePriceType, aM as CompositeGroupView, bv as DisplayCart, a6 as ProductInputField, S as SchedulingMode, x as DurationUnit, L as CustomAttributeValue, O as ProductProperty, a8 as QuantityPricingTier } from './product-C-xLzh7Q.js';
|
|
6
6
|
import { P as ProductWithPrice } from './price-CWQ5TQmk.js';
|
|
7
7
|
import { ClassValue } from 'clsx';
|
package/dist/react.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var chunkMN4PNKJA_js = require('./chunk-MN4PNKJA.js');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
5
|
+
var chunkFJQC4VSN_js = require('./chunk-FJQC4VSN.js');
|
|
6
|
+
var chunkVOWMB2KR_js = require('./chunk-VOWMB2KR.js');
|
|
7
7
|
var chunk6RP6OPYO_js = require('./chunk-6RP6OPYO.js');
|
|
8
8
|
var chunkTKOTACKZ_js = require('./chunk-TKOTACKZ.js');
|
|
9
9
|
var React10 = require('react');
|
|
@@ -1084,7 +1084,7 @@ var DEFAULT_COUNTRY = "US";
|
|
|
1084
1084
|
function createDefaultClient() {
|
|
1085
1085
|
const processRef = globalThis.process;
|
|
1086
1086
|
const envPublicKey = processRef?.env?.NEXT_PUBLIC_CIMPLIFY_PUBLIC_KEY || "";
|
|
1087
|
-
return
|
|
1087
|
+
return chunkFJQC4VSN_js.createCimplifyClient({ publicKey: envPublicKey });
|
|
1088
1088
|
}
|
|
1089
1089
|
function getStoredLocationId() {
|
|
1090
1090
|
if (typeof window === "undefined" || !window.localStorage) {
|
|
@@ -3519,19 +3519,19 @@ function AuthElement({
|
|
|
3519
3519
|
}, [onReady, onAuthenticated, onRequiresOtp, onError]);
|
|
3520
3520
|
React10.useEffect(() => {
|
|
3521
3521
|
if (!elements || !containerRef.current) return;
|
|
3522
|
-
const element = elements.create(
|
|
3522
|
+
const element = elements.create(chunkVOWMB2KR_js.ELEMENT_TYPES.AUTH, { prefillEmail });
|
|
3523
3523
|
elementRef.current = element;
|
|
3524
|
-
element.on(
|
|
3524
|
+
element.on(chunkVOWMB2KR_js.EVENT_TYPES.READY, () => onReadyRef.current?.());
|
|
3525
3525
|
element.on(
|
|
3526
|
-
|
|
3526
|
+
chunkVOWMB2KR_js.EVENT_TYPES.AUTHENTICATED,
|
|
3527
3527
|
(data) => onAuthenticatedRef.current?.(data)
|
|
3528
3528
|
);
|
|
3529
3529
|
element.on(
|
|
3530
|
-
|
|
3530
|
+
chunkVOWMB2KR_js.EVENT_TYPES.REQUIRES_OTP,
|
|
3531
3531
|
(data) => onRequiresOtpRef.current?.(data)
|
|
3532
3532
|
);
|
|
3533
3533
|
element.on(
|
|
3534
|
-
|
|
3534
|
+
chunkVOWMB2KR_js.EVENT_TYPES.ERROR,
|
|
3535
3535
|
(data) => onErrorRef.current?.(data)
|
|
3536
3536
|
);
|
|
3537
3537
|
element.mount(containerRef.current);
|
|
@@ -3560,15 +3560,15 @@ function AddressElement({
|
|
|
3560
3560
|
}, [onReady, onChange, onError]);
|
|
3561
3561
|
React10.useEffect(() => {
|
|
3562
3562
|
if (!elements || !containerRef.current) return;
|
|
3563
|
-
const element = elements.create(
|
|
3563
|
+
const element = elements.create(chunkVOWMB2KR_js.ELEMENT_TYPES.ADDRESS, { mode });
|
|
3564
3564
|
elementRef.current = element;
|
|
3565
|
-
element.on(
|
|
3565
|
+
element.on(chunkVOWMB2KR_js.EVENT_TYPES.READY, () => onReadyRef.current?.());
|
|
3566
3566
|
element.on(
|
|
3567
|
-
|
|
3567
|
+
chunkVOWMB2KR_js.EVENT_TYPES.CHANGE,
|
|
3568
3568
|
(data) => onChangeRef.current?.(data)
|
|
3569
3569
|
);
|
|
3570
3570
|
element.on(
|
|
3571
|
-
|
|
3571
|
+
chunkVOWMB2KR_js.EVENT_TYPES.ERROR,
|
|
3572
3572
|
(data) => onErrorRef.current?.(data)
|
|
3573
3573
|
);
|
|
3574
3574
|
element.mount(containerRef.current);
|
|
@@ -3598,15 +3598,15 @@ function PaymentElement({
|
|
|
3598
3598
|
}, [onReady, onChange, onError]);
|
|
3599
3599
|
React10.useEffect(() => {
|
|
3600
3600
|
if (!elements || !containerRef.current) return;
|
|
3601
|
-
const element = elements.create(
|
|
3601
|
+
const element = elements.create(chunkVOWMB2KR_js.ELEMENT_TYPES.PAYMENT, { amount, currency });
|
|
3602
3602
|
elementRef.current = element;
|
|
3603
|
-
element.on(
|
|
3603
|
+
element.on(chunkVOWMB2KR_js.EVENT_TYPES.READY, () => onReadyRef.current?.());
|
|
3604
3604
|
element.on(
|
|
3605
|
-
|
|
3605
|
+
chunkVOWMB2KR_js.EVENT_TYPES.CHANGE,
|
|
3606
3606
|
(data) => onChangeRef.current?.(data)
|
|
3607
3607
|
);
|
|
3608
3608
|
element.on(
|
|
3609
|
-
|
|
3609
|
+
chunkVOWMB2KR_js.EVENT_TYPES.ERROR,
|
|
3610
3610
|
(data) => onErrorRef.current?.(data)
|
|
3611
3611
|
);
|
|
3612
3612
|
element.mount(containerRef.current);
|
package/dist/react.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { DURATION_UNIT, getVariantDisplayName, INPUT_FIELD_TYPE, PRODUCT_TYPE, RENDER_HINT } from './chunk-NRDRVZ62.mjs';
|
|
3
3
|
export { getVariantDisplayName } from './chunk-NRDRVZ62.mjs';
|
|
4
|
-
import { createCimplifyClient } from './chunk-
|
|
5
|
-
import { ELEMENT_TYPES, EVENT_TYPES } from './chunk-
|
|
4
|
+
import { createCimplifyClient } from './chunk-GUZXQSGI.mjs';
|
|
5
|
+
import { ELEMENT_TYPES, EVENT_TYPES } from './chunk-FXACV333.mjs';
|
|
6
6
|
import { formatPrice, parsePrice, getUnitPriceAtQuantity, isOnSale, getDiscountPercentage, getBasePrice, getPriceRange, formatPriceRange } from './chunk-XY2DFX5K.mjs';
|
|
7
7
|
import { isSupportedCurrency } from './chunk-Z2AYLZDF.mjs';
|
|
8
8
|
import React10, { createContext, useRef, useState, useCallback, useEffect, useContext, useMemo, useId, useSyncExternalStore } from 'react';
|
package/dist/server.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CimplifyClient } from './client-
|
|
2
|
-
export {
|
|
1
|
+
import { C as CimplifyClient } from './client-CF2pmEE9.mjs';
|
|
2
|
+
export { d as CacheOptions, b as ReadRequestOptions, aQ as Result } from './client-CF2pmEE9.mjs';
|
|
3
3
|
import { IncrementalCache } from '@opennextjs/aws/types/overrides';
|
|
4
4
|
export { ap as Category, h as CimplifyError, ar as Collection, X as Product, aa as ProductWithDetails } from './product-C-xLzh7Q.mjs';
|
|
5
5
|
import './payment-9L_-GWqQ.mjs';
|
|
@@ -28,9 +28,17 @@ interface ServerClientOptions {
|
|
|
28
28
|
*
|
|
29
29
|
* The returned client is the exact same surface the browser uses — every
|
|
30
30
|
* resource (catalogue, cart, checkout, …) and every method works identically.
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
31
|
+
*
|
|
32
|
+
* Caching is Next.js's responsibility. Pass `cacheOptions` per read method
|
|
33
|
+
* (`{ revalidate, tags }`); the SDK forwards them as `next: { revalidate, tags }`
|
|
34
|
+
* on the underlying fetch — Next 16's documented ISR API. Invalidate via the
|
|
35
|
+
* `revalidate*` helpers (also exported from this entry) or the bare
|
|
36
|
+
* `revalidateTag` / `revalidatePath` from `next/cache`.
|
|
37
|
+
*
|
|
38
|
+
* If you have `cacheComponents: true` in `next.config.ts` (Next 16 PPR-style
|
|
39
|
+
* caching), the `'use cache'` + `cacheTag` / `cacheLife` directives work too —
|
|
40
|
+
* but they require a Node-compatible runtime and won't function on Cloudflare
|
|
41
|
+
* Workers. For Workers / WfP storefronts, stay on the ISR (`cacheOptions`) path.
|
|
34
42
|
*
|
|
35
43
|
* Errors continue to flow through `Result<T, CimplifyError>`. Use the SDK's
|
|
36
44
|
* `unwrap()` helper, or `if (!result.ok) notFound()` — whichever is
|
|
@@ -38,13 +46,13 @@ interface ServerClientOptions {
|
|
|
38
46
|
*
|
|
39
47
|
* @example
|
|
40
48
|
* import { getServerClient, tags } from "@cimplify/sdk/server";
|
|
41
|
-
*
|
|
49
|
+
*
|
|
50
|
+
* export const revalidate = 3600;
|
|
42
51
|
*
|
|
43
52
|
* async function getProduct(slug: string) {
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
* const r = await getServerClient().catalogue.getProductBySlug(slug);
|
|
53
|
+
* const r = await getServerClient().catalogue.getProductBySlug(slug, {
|
|
54
|
+
* cacheOptions: { revalidate: 3600, tags: [tags.product(slug)] },
|
|
55
|
+
* });
|
|
48
56
|
* if (!r.ok) throw new Error(r.error.message);
|
|
49
57
|
* return r.value;
|
|
50
58
|
* }
|