@cimplify/sdk 0.102.0 → 0.104.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 +3 -3
- package/dist/advanced.d.ts +3 -3
- package/dist/advanced.js +23 -22
- package/dist/advanced.mjs +4 -3
- package/dist/{chunk-DCMXUKDQ.mjs → chunk-2WPVUIHX.mjs} +455 -105
- package/dist/{chunk-NIOUSKQQ.js → chunk-4BKOKHE3.js} +9 -0
- package/dist/{chunk-YDA46OZ6.js → chunk-5BDYDZ4U.js} +722 -90
- package/dist/{chunk-4KNFBPV2.mjs → chunk-5RT4HYMP.mjs} +61 -15
- package/dist/{chunk-WMEC5JWN.js → chunk-7PDEX54K.js} +50 -13
- package/dist/chunk-CNN7Z2IP.js +125 -0
- package/dist/{chunk-DLW3RWRK.mjs → chunk-DYIAX3WI.mjs} +46 -12
- package/dist/{chunk-LOWSMGRT.js → chunk-E4K2VQDD.js} +64 -16
- package/dist/chunk-GOHSXBKW.mjs +105 -0
- package/dist/{chunk-O3YUHLZL.mjs → chunk-H3RATH4B.mjs} +9 -0
- package/dist/{chunk-YER7DIOM.js → chunk-IQFFSKE2.js} +753 -594
- package/dist/{chunk-Z3K2D3TE.mjs → chunk-OCCNG6MO.mjs} +735 -558
- package/dist/{chunk-DKLHCZ5M.mjs → chunk-OKADBZAI.mjs} +652 -25
- package/dist/{chunk-EAZGA7LD.js → chunk-YVAEY3VC.js} +457 -107
- package/dist/{client-nsiMwuC1.d.ts → client-BVNWjk6W.d.ts} +2 -2
- package/dist/{client-B40KFazg.d.ts → client-BuLcOWLv.d.ts} +202 -319
- package/dist/{client-BizGfqB7.d.mts → client-D5AoobFc.d.mts} +202 -319
- package/dist/{client-BdErclfU.d.mts → client-fM716k7G.d.mts} +2 -2
- package/dist/{index-DpmnI__D.d.mts → index-BtcoqrY1.d.ts} +14 -4
- package/dist/{index-nEyXWIyR.d.ts → index-D7Tf3v7c.d.mts} +14 -4
- package/dist/index.d.mts +83 -8
- package/dist/index.d.ts +83 -8
- package/dist/index.js +203 -169
- package/dist/index.mjs +7 -5
- package/dist/link-D9iSVxt5.d.mts +308 -0
- package/dist/link-D9iSVxt5.d.ts +308 -0
- package/dist/mock/cli.mjs +463 -104
- package/dist/mock/library.js +463 -104
- package/dist/mock/library.mjs +463 -104
- package/dist/mock/msw.js +463 -104
- package/dist/mock/msw.mjs +463 -104
- package/dist/{product-Byf0unSy.d.mts → payment-g0HFkEDU.d.mts} +708 -61
- package/dist/{product-Byf0unSy.d.ts → payment-g0HFkEDU.d.ts} +708 -61
- package/dist/{price-BstChV9a.d.ts → price-BLIeAb8K.d.ts} +1 -1
- package/dist/{price-CS4E5zLS.d.mts → price-Czq_cTC_.d.mts} +1 -1
- package/dist/react.d.mts +4 -4
- package/dist/react.d.ts +4 -4
- package/dist/react.js +194 -169
- package/dist/react.mjs +55 -30
- package/dist/{server-DqbZh8Bk.d.mts → server-BkVhOIwn.d.mts} +14 -10
- package/dist/{server-Cj40R2ZD.d.ts → server-DKK_D-PP.d.ts} +14 -10
- package/dist/server.d.mts +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/server.js +12 -10
- package/dist/server.mjs +6 -4
- package/dist/testing/msw.d.mts +2 -2
- package/dist/testing/msw.d.ts +2 -2
- package/dist/testing/msw.js +4 -3
- package/dist/testing/msw.mjs +3 -2
- package/dist/testing/suite.d.mts +6 -6
- package/dist/testing/suite.d.ts +6 -6
- package/dist/testing/suite.js +26 -25
- package/dist/testing/suite.mjs +7 -6
- package/dist/testing.d.mts +195 -56
- package/dist/testing.d.ts +195 -56
- package/dist/testing.js +95 -82
- package/dist/testing.mjs +14 -9
- package/dist/utils.d.mts +4 -4
- package/dist/utils.d.ts +4 -4
- package/dist/utils.js +37 -29
- package/dist/utils.mjs +2 -2
- package/package.json +7 -1
- package/registry/chat-widget.json +1 -1
- package/dist/payment-l0rkieEQ.d.mts +0 -113
- package/dist/payment-vzNnIi1n.d.ts +0 -113
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { A as AppHandle, C as CreateAppOptions } from './server-
|
|
1
|
+
import { ac as CimplifyClient } from './client-D5AoobFc.mjs';
|
|
2
|
+
import { A as AppHandle, C as CreateAppOptions } from './server-BkVhOIwn.mjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Test client + fixtures.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { P as ProductWithPrice } from './price-
|
|
3
|
-
import {
|
|
1
|
+
import { aU as Money, af as CurrencyCode, bc as PricePathTaxInfo, be as Product, bs as ProductWithDetails, bv as QuantityPricingTier, a$ as PaymentErrorDetails, b4 as PaymentResponse, b6 as PaymentStatusResponse } from './payment-g0HFkEDU.js';
|
|
2
|
+
import { P as ProductWithPrice } from './price-BLIeAb8K.js';
|
|
3
|
+
import { z as MobileMoneyProvider } from './link-D9iSVxt5.js';
|
|
4
4
|
import { CountryCode } from 'libphonenumber-js';
|
|
5
5
|
|
|
6
6
|
declare const CURRENCY_SYMBOLS: Record<string, string>;
|
|
@@ -40,6 +40,7 @@ declare function formatPriceRange(min: number, max: number, currency?: CurrencyC
|
|
|
40
40
|
|
|
41
41
|
declare function categorizePaymentError(error: Error, errorCode?: string): PaymentErrorDetails;
|
|
42
42
|
declare function normalizePaymentResponse(response: unknown): PaymentResponse;
|
|
43
|
+
declare const PAYMENT_TERMINAL_FAILURE_STATUSES: readonly ["failed", "cancelled", "voided", "abandoned", "refunded", "refund_pending", "reversed", "disputed"];
|
|
43
44
|
declare function isPaymentStatusSuccess(status: string | undefined): boolean;
|
|
44
45
|
declare function isPaymentStatusFailure(status: string | undefined): boolean;
|
|
45
46
|
declare function isPaymentStatusRequiresAction(status: string | undefined): boolean;
|
|
@@ -58,6 +59,15 @@ declare const MOBILE_MONEY_PROVIDERS: {
|
|
|
58
59
|
readonly prefix: readonly ["026", "027", "056", "057"];
|
|
59
60
|
};
|
|
60
61
|
};
|
|
62
|
+
type CanonicalMobileMoneyProvider = Extract<MobileMoneyProvider, "mtn" | "telecel" | "airteltigo" | "mpesa">;
|
|
63
|
+
/** Normalize route-catalog and legacy network aliases to storefront provider codes. */
|
|
64
|
+
declare function canonicalMobileMoneyProvider(provider: string | null | undefined): CanonicalMobileMoneyProvider | null;
|
|
65
|
+
/**
|
|
66
|
+
* Validate an external payment-authorization URL before browser navigation.
|
|
67
|
+
* Provider payloads are data, not executable navigation instructions: only
|
|
68
|
+
* HTTPS is accepted outside local development.
|
|
69
|
+
*/
|
|
70
|
+
declare function paymentAuthorizationUrl(value: unknown): string | null;
|
|
61
71
|
declare function detectMobileMoneyProvider(phoneNumber: string): "mtn" | "vodafone" | "airtel" | null;
|
|
62
72
|
|
|
63
73
|
interface PhoneNormalizationOptions {
|
|
@@ -68,4 +78,4 @@ declare function resolvePhoneCountryCode(options?: PhoneNormalizationOptions): C
|
|
|
68
78
|
declare function normalizePhoneToE164(raw: string, options?: PhoneNormalizationOptions): string | null;
|
|
69
79
|
declare function isValidPhoneForContext(raw: string, options?: PhoneNormalizationOptions): boolean;
|
|
70
80
|
|
|
71
|
-
export {
|
|
81
|
+
export { isTaxInclusive as A, isValidPhoneForContext as B, CURRENCY_SYMBOLS as C, normalizePaymentResponse as D, normalizePhoneToE164 as E, normalizeStatusResponse as F, parsePrice as G, paymentAuthorizationUrl as H, resolvePhoneCountryCode as I, MOBILE_MONEY_PROVIDERS as M, PAYMENT_TERMINAL_FAILURE_STATUSES as P, type CanonicalMobileMoneyProvider as a, categorizePaymentError as b, canonicalMobileMoneyProvider as c, detectMobileMoneyProvider as d, formatNumberCompact as e, formatMoney as f, formatPrice as g, formatPriceAdjustment as h, formatPriceCompact as i, formatPriceRange as j, formatPriceWithTax as k, formatProductPrice as l, getBasePrice as m, getCurrencySymbol as n, getDiscountPercentage as o, getDisplayPrice as p, getMarkupPercentage as q, getPriceRange as r, getProductCurrency as s, getTaxAmount as t, getUnitPriceAtQuantity as u, hasTaxInfo as v, isOnSale as w, isPaymentStatusFailure as x, isPaymentStatusRequiresAction as y, isPaymentStatusSuccess as z };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { P as ProductWithPrice } from './price-
|
|
3
|
-
import {
|
|
1
|
+
import { aU as Money, af as CurrencyCode, bc as PricePathTaxInfo, be as Product, bs as ProductWithDetails, bv as QuantityPricingTier, a$ as PaymentErrorDetails, b4 as PaymentResponse, b6 as PaymentStatusResponse } from './payment-g0HFkEDU.mjs';
|
|
2
|
+
import { P as ProductWithPrice } from './price-Czq_cTC_.mjs';
|
|
3
|
+
import { z as MobileMoneyProvider } from './link-D9iSVxt5.mjs';
|
|
4
4
|
import { CountryCode } from 'libphonenumber-js';
|
|
5
5
|
|
|
6
6
|
declare const CURRENCY_SYMBOLS: Record<string, string>;
|
|
@@ -40,6 +40,7 @@ declare function formatPriceRange(min: number, max: number, currency?: CurrencyC
|
|
|
40
40
|
|
|
41
41
|
declare function categorizePaymentError(error: Error, errorCode?: string): PaymentErrorDetails;
|
|
42
42
|
declare function normalizePaymentResponse(response: unknown): PaymentResponse;
|
|
43
|
+
declare const PAYMENT_TERMINAL_FAILURE_STATUSES: readonly ["failed", "cancelled", "voided", "abandoned", "refunded", "refund_pending", "reversed", "disputed"];
|
|
43
44
|
declare function isPaymentStatusSuccess(status: string | undefined): boolean;
|
|
44
45
|
declare function isPaymentStatusFailure(status: string | undefined): boolean;
|
|
45
46
|
declare function isPaymentStatusRequiresAction(status: string | undefined): boolean;
|
|
@@ -58,6 +59,15 @@ declare const MOBILE_MONEY_PROVIDERS: {
|
|
|
58
59
|
readonly prefix: readonly ["026", "027", "056", "057"];
|
|
59
60
|
};
|
|
60
61
|
};
|
|
62
|
+
type CanonicalMobileMoneyProvider = Extract<MobileMoneyProvider, "mtn" | "telecel" | "airteltigo" | "mpesa">;
|
|
63
|
+
/** Normalize route-catalog and legacy network aliases to storefront provider codes. */
|
|
64
|
+
declare function canonicalMobileMoneyProvider(provider: string | null | undefined): CanonicalMobileMoneyProvider | null;
|
|
65
|
+
/**
|
|
66
|
+
* Validate an external payment-authorization URL before browser navigation.
|
|
67
|
+
* Provider payloads are data, not executable navigation instructions: only
|
|
68
|
+
* HTTPS is accepted outside local development.
|
|
69
|
+
*/
|
|
70
|
+
declare function paymentAuthorizationUrl(value: unknown): string | null;
|
|
61
71
|
declare function detectMobileMoneyProvider(phoneNumber: string): "mtn" | "vodafone" | "airtel" | null;
|
|
62
72
|
|
|
63
73
|
interface PhoneNormalizationOptions {
|
|
@@ -68,4 +78,4 @@ declare function resolvePhoneCountryCode(options?: PhoneNormalizationOptions): C
|
|
|
68
78
|
declare function normalizePhoneToE164(raw: string, options?: PhoneNormalizationOptions): string | null;
|
|
69
79
|
declare function isValidPhoneForContext(raw: string, options?: PhoneNormalizationOptions): boolean;
|
|
70
80
|
|
|
71
|
-
export {
|
|
81
|
+
export { isTaxInclusive as A, isValidPhoneForContext as B, CURRENCY_SYMBOLS as C, normalizePaymentResponse as D, normalizePhoneToE164 as E, normalizeStatusResponse as F, parsePrice as G, paymentAuthorizationUrl as H, resolvePhoneCountryCode as I, MOBILE_MONEY_PROVIDERS as M, PAYMENT_TERMINAL_FAILURE_STATUSES as P, type CanonicalMobileMoneyProvider as a, categorizePaymentError as b, canonicalMobileMoneyProvider as c, detectMobileMoneyProvider as d, formatNumberCompact as e, formatMoney as f, formatPrice as g, formatPriceAdjustment as h, formatPriceCompact as i, formatPriceRange as j, formatPriceWithTax as k, formatProductPrice as l, getBasePrice as m, getCurrencySymbol as n, getDiscountPercentage as o, getDisplayPrice as p, getMarkupPercentage as q, getPriceRange as r, getProductCurrency as s, getTaxAmount as t, getUnitPriceAtQuantity as u, hasTaxInfo as v, isOnSale as w, isPaymentStatusFailure as x, isPaymentStatusRequiresAction as y, isPaymentStatusSuccess as z };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,14 +1,89 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { A as
|
|
3
|
-
import {
|
|
4
|
-
export { A as AddOn, a as AddOnDetails, b as AddOnGroupDetails, c as AddOnOption, d as AddOnOptionDetails, e as AddOnOptionPrice, f as AddOnWithOptions, g as AddToCartInput, h as
|
|
5
|
-
export {
|
|
1
|
+
import { bV as PaymentAuthorizationAdapter, bX as PaymentAuthorizationContext, bY as PaymentAuthorizationOutcome, R as ChatReplyCard } from './client-D5AoobFc.mjs';
|
|
2
|
+
export { A as AbortablePromise, a as ActivityRecommendation, b as ActivityRecommendationsResponse, c as ActivityService, d as ActivityStateResponse, e as AddressInfo, f as AmountToPay, g as AuthService, h as AuthStatus, i as AuthenticatedCustomer, j as AuthenticatedData, k as AuthorizeCardPopupOptions, l as AutocompletePrediction, m as AutocompleteResponse, n as AvailabilityResult, o as AvailableSlot, B as Booking, p as BookingModificationType, q as BookingStatus, r as BookingWithDetails, s as BufferTimes, t as Business, u as BusinessDetailsDTO, v as BusinessHours, w as BusinessPreferences, x as BusinessService, y as BusinessSettings, z as BusinessWithLocations, C as CacheOptions, D as CancelBookingInput, E as CancelBookingResult, F as CancelOrderInput, G as CancellationPolicy, H as CardPopupAction, I as CartOperations, J as CatalogueQueries, K as CatalogueResult, L as CatalogueSnapshot, M as CategoryInfo, N as ChatAttachment, O as ChatConversation, P as ChatConversationResponse, Q as ChatMessage, S as ChatReplyContext, T as ChatUploadAttachment, U as ChatWidgetStarter, V as CheckSlotAvailabilityInput, W as CheckSlotAvailabilityResult, X as CheckoutAddressInfo, Y as CheckoutCartData, Z as CheckoutCartItem, _ as CheckoutCollectionMethod, $ as CheckoutCollectionOption, a0 as CheckoutCollectionOptions, a1 as CheckoutCustomerInfo, a2 as CheckoutFormData, a3 as CheckoutInput, a4 as CheckoutMode, a8 as CheckoutOperations, a5 as CheckoutOrderType, a6 as CheckoutPaymentMethod, a7 as CheckoutResult, a8 as CheckoutService, a9 as CheckoutStatus, aa as CheckoutStatusContext, ab as CheckoutStep, ac as CimplifyClient, ad as CimplifyConfig, ae as CimplifyElement, af as CimplifyElements, ag as ClaimConversationResult, ah as ClaimExternalChatsResult, ai as ContentType, aj as CustomerBooking, ak as CustomerBookingServiceItem, al as CustomerServicePreferences, am as DayAvailability, an as DeliveryFeeDetails, ao as DeliveryFeeResponse, ap as DeliveryFeeStatus, aq as DeliveryOption, ar as DeliveryOptionsQuery, as as DeliveryOptionsResponse, at as DeliveryService, au as DepositResult, av as DismissMessageResponse, aw as ELEMENTS_AUTH_CONTACT_TYPES, ax as ELEMENTS_AUTH_MODES, ay as ELEMENTS_AUTH_PROMPTS, az as ELEMENT_TYPES, aA as EVENT_TYPES, aB as ElementAppearance, aC as ElementEventHandler, aD as ElementEventType, aE as ElementOptions, aF as ElementType, aG as ElementsAuthContactType, aH as ElementsAuthMode, aI as ElementsAuthOptions, aJ as ElementsAuthPrompt, aK as ElementsCheckoutData, aL as ElementsCheckoutResult, aM as ElementsCustomerInfo, aN as ElementsOptions, aO as EnrichedOrder, aP as EnrichedOrderItem, aQ as Err, aR as ExternalChatClaimAttempt, aS as ExternalChatClaimDisposition, aT as FeeBearerType, aU as FetchQuoteInput, aV as FulfillmentLink, aW as FulfillmentStatus, aX as FulfillmentSummaryDTO, aY as FulfillmentType, aZ as FxQuote, a_ as FxQuoteRequest, a$ as FxQuoteStatus, b0 as FxRateResponse, b1 as FxService, b2 as GetAvailableSlotsInput, b3 as GetDeliveryOptionsParams, b4 as GetOrdersOptions, b5 as GetProductsOptions, b6 as GroupOrderInfo, b7 as IframeToParentMessage, b8 as InventoryService, b9 as LifecyclePhase, ba as LineItem, bb as LineType, bc as LinkService, bd as LiteBootstrap, be as LiteDayHours, bf as LiteHoursRange, bg as LiteService, bh as Location, bi as LocationBooking, bj as LocationTaxBehavior, bk as LocationTaxOverrides, bl as LocationTimeProfile, bm as LocationWithDetails, bn as MESSAGE_TYPES, bo as MobileMoneyDetails, bp as NextAction, bq as ObservabilityHooks, br as Ok, bs as Order, bt as OrderCustomerInfo, bu as OrderDiscountInfo, bv as OrderFilter, bw as OrderFulfillmentSummary, bx as OrderGroup, by as OrderGroupDetails, bz as OrderGroupPayment, bA as OrderGroupPaymentState, bB as OrderGroupPaymentStatus, bC as OrderGroupPaymentSummary, bD as OrderGroupStatus, bE as OrderHistory, bF as OrderLineState, bG as OrderLineStatus, bH as OrderLocationInfo, bI as OrderPaymentEvent, bJ as OrderPricingView, bK as OrderQueries, bL as OrderSplitDetail, bM as OrderStaffInfo, bN as OrderStatus, bO as OrderTimestampsDTO, bP as OrderType, bQ as Origin, bR as OriginActor, bS as OriginChannel, bT as OtpResult, bU as ParentToIframeMessage, bW as PaymentAuthorizationAdapterRegistry, bZ as PaymentInfoDTO, b_ as PaymentMethodInfo, b$ as PaymentState, c0 as PickupTime, c1 as PickupTimeType, c2 as PlaceDetailsResponse, c3 as PlacesService, c4 as PriceQuote, c5 as PricingOverrides, c6 as ProcessAndResolveOptions, c7 as ProcessCheckoutOptions, c8 as ProcessCheckoutResult, c9 as ProviderResolutionSource, ca as QuoteBundleSelectionInput, cb as QuoteCompositeSelectionInput, cc as QuoteDynamicBuckets, cd as QuoteStatus, ce as QuoteUiMessage, cf as ReadRequestOptions, cg as RefreshQuoteInput, ch as RefreshQuoteResult, ci as RefundOrderInput, cj as RelatedCandidate, ck as RelatedProduct, cl as RelatedProductsEnrichment, cm as RelationType, cn as ReminderMethod, co as ReminderSettings, cp as ReorderResult, cq as RequestContext, cr as RequestErrorEvent, cs as RequestOptions, ct as RequestSource, cu as RequestStartEvent, cv as RequestSuccessEvent, cw as RescheduleBookingInput, cx as RescheduleBookingResult, cy as RescheduleHistoryRecord, cz as ResourceAssignment, cA as ResourceInfo, cB as Result, cC as RetryEvent, cD as Room, cE as SchedulingMetadata, cF as SchedulingResult, cG as SchedulingService, cH as SenderType, cI as Service, cJ as ServiceAvailabilityParams, cK as ServiceAvailabilityResult, cL as ServiceCharge, cM as ServiceNotes, cN as ServiceScheduleRequest, cO as ServiceStatus, cP as SessionActivityData, cQ as SessionChangeEvent, cR as SessionMessage, cS as SlotResourceInfo, cT as SlotStaffInfo, cU as Staff, cV as StaffAssignment, cW as StaffRole, cX as StaffScheduleItem, cY as StockLevel, cZ as StockStatus, c_ as StoreCreditBalance, c$ as StoreCreditQueries, d0 as StorefrontBootstrap, d1 as SubscriptionService, d2 as SupportService, d3 as Table, d4 as TimeRange, d5 as TimeRanges, d6 as TimeSlot, d7 as TrackCategoryViewOptions, d8 as TrackProductViewOptions, d9 as UpdateOrderStatusInput, da as UpdateProfileInput, db as UploadInitResponse, dc as UploadResult, dd as UploadService, de as combine, df as combineObject, dg as createCimplifyClient, dh as createDefaultPaymentAuthorizationAdapterRegistry, di as createElements, dj as err, dk as flatMap, dl as fromPromise, dm as getOrElse, dn as isErr, dp as isOk, dq as mapError, dr as mapResult, ds as ok, dt as toNullable, du as tryCatch, dv as unwrap } from './client-D5AoobFc.mjs';
|
|
3
|
+
import { bs as ProductWithDetails, bO as TaxPriceDisplayMode, be as Product, aA as DurationUnit, k as ApiError } from './payment-g0HFkEDU.mjs';
|
|
4
|
+
export { A as AddOn, a as AddOnDetails, b as AddOnGroupDetails, c as AddOnOption, d as AddOnOptionDetails, e as AddOnOptionPrice, f as AddOnWithOptions, g as AddToCartInput, h as AddressAuthorizationData, i as AddressValue, j as AdjustmentType, l as AppliedDiscount, m as AttributeAppliesTo, n as AttributeType, o as AttributeValidationRules, p as AttributeVisibility, q as AuthorizationType, B as BOUNDARY_KIND, r as BenefitType, s as BillingFrequency, t as BillingMarkupType, u as BillingPlanType, v as BoundaryKind, w as Bundle, x as BundleComponentData, y as BundleComponentInfo, z as BundleComponentVariantView, C as BundleComponentView, D as BundlePriceType, E as BundleProduct, F as BundleSelectionData, G as BundleSelectionInput, H as BundleStoredSelection, I as BundleSummary, J as BundleWithDetails, K as Cart, L as CartAddOn, M as CartChannel, N as CartItem, O as CartItemDetails, P as CartMutationResult, Q as CartNotice, R as CartStatus, S as CartSummary, T as CartTotals, U as Category, V as CategorySummary, W as ChosenPrice, X as CimplifyError, Y as Collection, Z as CollectionProduct, _ as CollectionSummary, $ as ComponentGroup, a0 as ComponentGroupWithComponents, a1 as ComponentPriceBreakdown, a2 as ComponentSchedulingData, a3 as ComponentSelectionInput, a4 as ComponentSourceType, a5 as Composite, a6 as CompositeComponent, a7 as CompositeComponentView, a8 as CompositeGroupView, a9 as CompositePriceBreakdown, aa as CompositePriceResult, ab as CompositePricingMode, ac as CompositeSelectionData, a3 as CompositeSelectionInput, ad as CompositeStoredSelection, ae as CompositeWithDetails, af as CurrencyCode, ag as CustomAttributeDefinition, ah as CustomAttributeValue, ai as CustomerInputValue, aj as DURATION_UNIT, ak as DateRangeValue, al as Deal, am as DealBenefitType, an as DepositType, ao as DestinationQuote, ap as DestinationQuoteAddress, aq as DestinationQuoteInput, ar as DigitalProductType, as as DiscountBreakdown, at as DiscountDetails, au as DiscountValidation, av as DisplayAddOn, aw as DisplayAddOnOption, ax as DisplayCart, ay as DisplayCartItem, az as DisplayMode, aB as ERROR_HINTS, aC as EligiblePlansQuery, aD as ErrorCode, aE as ErrorCodeType, aF as ErrorHint, aG as FacetValue, aH as FormattedPlanOption, aI as GroupPricingBehavior, aJ as INPUT_FIELD_TYPE, aK as IdempotencyMismatchError, aL as InitializePaymentResult, aM as InputFieldType, aN as InputFieldValidation, aO as InventoryType, aP as KnowledgeArticle, aQ as LineConfiguration, aR as LocationProductPrice, aS as LocationValue, aT as MeasurementValue, aU as Money, aV as PRODUCT_TYPE, aW as Pagination, aX as PaginationParams, aY as Payment, aZ as PaymentAuthorizationKind, a_ as PaymentAuthorizationSubmission, a$ as PaymentErrorDetails, b0 as PaymentMethod, b1 as PaymentMethodType, b2 as PaymentProcessingState, b3 as PaymentProvider, b4 as PaymentResponse, b5 as PaymentStatus, b6 as PaymentStatusResponse, b7 as PhoneValue, b8 as Price, b9 as PriceAdjustment, ba as PriceDecisionPath, bb as PriceEntryType, bc as PricePathTaxInfo, bd as PriceSource, bf as ProductAddOn, bg as ProductAvailability, bh as ProductAvailabilityNow, bi as ProductBillingPlan, bj as ProductDealInfo, bk as ProductInputField, bl as ProductProperty, bm as ProductRenderHint, bn as ProductTaxonomy, bo as ProductTimeProfile, bp as ProductType, bq as ProductVariant, br as ProductVariantValue, bt as PropertyFacet, bu as PropertySource, bv as QuantityPricingTier, bw as RENDER_HINT, bx as RelatedProductView, by as SaleCapInfo, bz as SaleInfo, bA as SalesChannel, bB as SchedulingMode, bC as SelectedAddOnOption, bD as SemanticKind, bE as SignatureValue, bF as SubmitAuthorizationInput, bG as Subscription, bH as SubscriptionInvoice, bI as SubscriptionItem, bJ as SubscriptionStatus, bK as SubscriptionWithDetails, bL as Tag, bM as TagsResponse, bN as TaxPathComponent, bP as TaxonomyAttributeTemplate, bQ as TaxonomyWithChildren, bR as UICart, bS as UICartBusiness, bT as UICartCustomer, bU as UICartLocation, bV as UICartPricing, bW as UpcomingSale, bX as UpdateCartItemInput, bY as VariantAxis, bZ as VariantAxisSelection, b_ as VariantAxisValue, b$ as VariantAxisValueView, c0 as VariantAxisView, c1 as VariantAxisWithValues, c2 as VariantDetails, c3 as VariantDetailsDTO, c4 as VariantDisplayAttribute, c5 as VariantLocationAvailability, c6 as VariantStrategy, c7 as VariantView, c8 as ZERO, ca as currencyCode, cb as enrichError, cc as getErrorHint, cd as isCimplifyError, ce as isIdempotencyMismatchError, cf as isQuoteConflictRequiringConsent, cg as isQuoteError, ch as isRetryableError, ci as isSupportedCurrency, cj as money, ck as moneyFromNumber } from './payment-g0HFkEDU.mjs';
|
|
5
|
+
export { A as AUTHORIZATION_TYPE, a as AUTH_MUTATION, b as AddressData, c as AuthResponse, C as CHECKOUT_MODE, d as CHECKOUT_MUTATION, e as CHECKOUT_STEP, f as CONTACT_TYPE, g as ContactType, h as CreateAddressInput, i as CreateMobileMoneyInput, j as Customer, k as CustomerAddress, l as CustomerLinkPreferences, m as CustomerMobileMoney, D as DEFAULT_COUNTRY, n as DEFAULT_CURRENCY, o as DEVICE_TYPE, p as DeviceType, E as EnrollAndLinkOrderInput, q as EnrollAndLinkOrderResult, r as EnrollmentData, L as LINK_MUTATION, s as LINK_QUERY, t as LinkData, u as LinkEnrollResult, v as LinkSession, w as LinkStatusResult, M as MAX_PAYMENT_AUTHORIZATION_STEPS, x as MOBILE_MONEY_PROVIDER, y as MobileMoneyData, z as MobileMoneyProvider, O as ORDER_MUTATION, B as ORDER_TYPE, P as PAYMENT_METHOD, F as PAYMENT_MUTATION, G as PAYMENT_STATE, H as PICKUP_TIME_TYPE, R as RequestOtpInput, I as RequestOtpResult, J as RevokeAllSessionsResult, K as RevokeSessionResult, U as UpdateAddressInput, V as VerifyOtpInput } from './link-D9iSVxt5.mjs';
|
|
6
|
+
export { C as CURRENCY_SYMBOLS, a as CanonicalMobileMoneyProvider, M as MOBILE_MONEY_PROVIDERS, P as PAYMENT_TERMINAL_FAILURE_STATUSES, c as canonicalMobileMoneyProvider, b as categorizePaymentError, d as detectMobileMoneyProvider, f as formatMoney, e as formatNumberCompact, g as formatPrice, h as formatPriceAdjustment, i as formatPriceCompact, j as formatPriceRange, k as formatPriceWithTax, l as formatProductPrice, m as getBasePrice, n as getCurrencySymbol, o as getDiscountPercentage, p as getDisplayPrice, q as getMarkupPercentage, r as getPriceRange, s as getProductCurrency, t as getTaxAmount, u as getUnitPriceAtQuantity, v as hasTaxInfo, w as isOnSale, x as isPaymentStatusFailure, y as isPaymentStatusRequiresAction, z as isPaymentStatusSuccess, A as isTaxInclusive, B as isValidPhoneForContext, D as normalizePaymentResponse, E as normalizePhoneToE164, F as normalizeStatusResponse, G as parsePrice, H as paymentAuthorizationUrl, I as resolvePhoneCountryCode } from './index-D7Tf3v7c.mjs';
|
|
6
7
|
export { A as AdConfig, a as AdContextValue, b as AdCreative, c as AdPosition, d as AdSlot, e as AdTheme, S as SignInOptions, g as getVariantDisplayName, s as startSignIn } from './sign-in-DQlIdqsi.mjs';
|
|
7
|
-
export {
|
|
8
|
-
export { F as FormatCompactOptions, a as FormatPriceOptions, P as ProductWithPrice } from './price-CS4E5zLS.mjs';
|
|
8
|
+
export { F as FormatCompactOptions, a as FormatPriceOptions, P as ProductWithPrice } from './price-Czq_cTC_.mjs';
|
|
9
9
|
export { generateIdempotencyKey } from './advanced.mjs';
|
|
10
10
|
import 'libphonenumber-js';
|
|
11
11
|
|
|
12
|
+
interface PaystackPopupOptions {
|
|
13
|
+
key: string;
|
|
14
|
+
email: string;
|
|
15
|
+
amount?: number;
|
|
16
|
+
currency?: string;
|
|
17
|
+
reference?: string;
|
|
18
|
+
accessCode?: string;
|
|
19
|
+
}
|
|
20
|
+
interface PaystackPopupResult {
|
|
21
|
+
success: boolean;
|
|
22
|
+
reference?: string;
|
|
23
|
+
error?: string;
|
|
24
|
+
}
|
|
25
|
+
type PaystackPopup = (options: PaystackPopupOptions, signal?: AbortSignal) => Promise<PaystackPopupResult>;
|
|
26
|
+
/** Built-in adapter for Paystack Inline. */
|
|
27
|
+
declare class PaystackAuthorizationAdapter implements PaymentAuthorizationAdapter {
|
|
28
|
+
private readonly openPopup;
|
|
29
|
+
readonly provider = "paystack";
|
|
30
|
+
constructor(openPopup?: PaystackPopup);
|
|
31
|
+
authorize(context: PaymentAuthorizationContext): Promise<PaymentAuthorizationOutcome>;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
interface StripeErrorLike {
|
|
35
|
+
type?: string;
|
|
36
|
+
code?: string;
|
|
37
|
+
message?: string;
|
|
38
|
+
}
|
|
39
|
+
interface StripePaymentIntentLike {
|
|
40
|
+
id?: string;
|
|
41
|
+
status?: string;
|
|
42
|
+
}
|
|
43
|
+
interface StripePaymentElementLike {
|
|
44
|
+
mount(target: HTMLElement): void;
|
|
45
|
+
destroy?: () => void;
|
|
46
|
+
unmount?: () => void;
|
|
47
|
+
on?: (event: string, handler: (event?: {
|
|
48
|
+
error?: StripeErrorLike;
|
|
49
|
+
}) => void) => void;
|
|
50
|
+
}
|
|
51
|
+
interface StripeElementsLike {
|
|
52
|
+
create(type: "payment", options?: Record<string, unknown>): StripePaymentElementLike;
|
|
53
|
+
submit?: () => Promise<{
|
|
54
|
+
error?: StripeErrorLike;
|
|
55
|
+
}>;
|
|
56
|
+
}
|
|
57
|
+
interface StripeLike {
|
|
58
|
+
elements(options: {
|
|
59
|
+
clientSecret: string;
|
|
60
|
+
}): StripeElementsLike;
|
|
61
|
+
confirmPayment(options: {
|
|
62
|
+
elements: StripeElementsLike;
|
|
63
|
+
confirmParams: {
|
|
64
|
+
return_url: string;
|
|
65
|
+
};
|
|
66
|
+
redirect: "if_required";
|
|
67
|
+
}): Promise<{
|
|
68
|
+
error?: StripeErrorLike;
|
|
69
|
+
paymentIntent?: StripePaymentIntentLike;
|
|
70
|
+
}>;
|
|
71
|
+
}
|
|
72
|
+
type StripeLoader = (publicKey: string, options?: {
|
|
73
|
+
stripeAccount?: string;
|
|
74
|
+
}) => Promise<StripeLike | null>;
|
|
75
|
+
/**
|
|
76
|
+
* Stripe card adapter backed by the Payment Element. It reports only that the
|
|
77
|
+
* provider interaction was submitted; CheckoutResolver still polls Cimplify
|
|
78
|
+
* before returning checkout success.
|
|
79
|
+
*/
|
|
80
|
+
declare class StripeAuthorizationAdapter implements PaymentAuthorizationAdapter {
|
|
81
|
+
private readonly loadStripe;
|
|
82
|
+
readonly provider = "stripe";
|
|
83
|
+
constructor(loadStripe?: StripeLoader);
|
|
84
|
+
authorize(context: PaymentAuthorizationContext): Promise<PaymentAuthorizationOutcome>;
|
|
85
|
+
}
|
|
86
|
+
|
|
12
87
|
interface GalleryImage {
|
|
13
88
|
url: string;
|
|
14
89
|
/** null = product-level image; otherwise the variant it belongs to. */
|
|
@@ -174,4 +249,4 @@ interface AssetUrlOptions extends AssetTransform {
|
|
|
174
249
|
declare function assetUrl(path: string, opts?: AssetUrlOptions): string;
|
|
175
250
|
declare function isCimplifyAsset(src: string, base?: string): boolean;
|
|
176
251
|
|
|
177
|
-
export { ApiError, type ApiResponse, type AssetTransform, type AssetUrlOptions, CIMPLIFY_CDN_HOSTS, ChatReplyCard, type CustomerGroup, type CustomerPricingInfo, DEFAULT_CDN_BASE_URL, DurationUnit, type FrontendContext, type GalleryImage, type MutationRequest, type PriceListItem, Product, ProductWithDetails, type QuantityBreak, type QueryRequest, type ResolvedQuantityBreak, type ResponseMetadata, type SilentSignInOptions, type SilentSignInResult, TaxPriceDisplayMode, allGalleryImages, assetUrl, chatMessageCards, displaysGrossPrices, isCimplifyAsset, isMultiDayService, priceBasisLabel, resolveGallery, serviceBillingMultiplier, signInSilent, stayLength, stayPeriods };
|
|
252
|
+
export { ApiError, type ApiResponse, type AssetTransform, type AssetUrlOptions, CIMPLIFY_CDN_HOSTS, ChatReplyCard, type CustomerGroup, type CustomerPricingInfo, DEFAULT_CDN_BASE_URL, DurationUnit, type FrontendContext, type GalleryImage, type MutationRequest, PaymentAuthorizationAdapter, PaymentAuthorizationContext, PaymentAuthorizationOutcome, PaystackAuthorizationAdapter, type PaystackPopup, type PaystackPopupOptions, type PaystackPopupResult, type PriceListItem, Product, ProductWithDetails, type QuantityBreak, type QueryRequest, type ResolvedQuantityBreak, type ResponseMetadata, type SilentSignInOptions, type SilentSignInResult, StripeAuthorizationAdapter, type StripeLike, type StripeLoader, TaxPriceDisplayMode, allGalleryImages, assetUrl, chatMessageCards, displaysGrossPrices, isCimplifyAsset, isMultiDayService, priceBasisLabel, resolveGallery, serviceBillingMultiplier, signInSilent, stayLength, stayPeriods };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,89 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { A as
|
|
3
|
-
import {
|
|
4
|
-
export { A as AddOn, a as AddOnDetails, b as AddOnGroupDetails, c as AddOnOption, d as AddOnOptionDetails, e as AddOnOptionPrice, f as AddOnWithOptions, g as AddToCartInput, h as
|
|
5
|
-
export {
|
|
1
|
+
import { bV as PaymentAuthorizationAdapter, bX as PaymentAuthorizationContext, bY as PaymentAuthorizationOutcome, R as ChatReplyCard } from './client-BuLcOWLv.js';
|
|
2
|
+
export { A as AbortablePromise, a as ActivityRecommendation, b as ActivityRecommendationsResponse, c as ActivityService, d as ActivityStateResponse, e as AddressInfo, f as AmountToPay, g as AuthService, h as AuthStatus, i as AuthenticatedCustomer, j as AuthenticatedData, k as AuthorizeCardPopupOptions, l as AutocompletePrediction, m as AutocompleteResponse, n as AvailabilityResult, o as AvailableSlot, B as Booking, p as BookingModificationType, q as BookingStatus, r as BookingWithDetails, s as BufferTimes, t as Business, u as BusinessDetailsDTO, v as BusinessHours, w as BusinessPreferences, x as BusinessService, y as BusinessSettings, z as BusinessWithLocations, C as CacheOptions, D as CancelBookingInput, E as CancelBookingResult, F as CancelOrderInput, G as CancellationPolicy, H as CardPopupAction, I as CartOperations, J as CatalogueQueries, K as CatalogueResult, L as CatalogueSnapshot, M as CategoryInfo, N as ChatAttachment, O as ChatConversation, P as ChatConversationResponse, Q as ChatMessage, S as ChatReplyContext, T as ChatUploadAttachment, U as ChatWidgetStarter, V as CheckSlotAvailabilityInput, W as CheckSlotAvailabilityResult, X as CheckoutAddressInfo, Y as CheckoutCartData, Z as CheckoutCartItem, _ as CheckoutCollectionMethod, $ as CheckoutCollectionOption, a0 as CheckoutCollectionOptions, a1 as CheckoutCustomerInfo, a2 as CheckoutFormData, a3 as CheckoutInput, a4 as CheckoutMode, a8 as CheckoutOperations, a5 as CheckoutOrderType, a6 as CheckoutPaymentMethod, a7 as CheckoutResult, a8 as CheckoutService, a9 as CheckoutStatus, aa as CheckoutStatusContext, ab as CheckoutStep, ac as CimplifyClient, ad as CimplifyConfig, ae as CimplifyElement, af as CimplifyElements, ag as ClaimConversationResult, ah as ClaimExternalChatsResult, ai as ContentType, aj as CustomerBooking, ak as CustomerBookingServiceItem, al as CustomerServicePreferences, am as DayAvailability, an as DeliveryFeeDetails, ao as DeliveryFeeResponse, ap as DeliveryFeeStatus, aq as DeliveryOption, ar as DeliveryOptionsQuery, as as DeliveryOptionsResponse, at as DeliveryService, au as DepositResult, av as DismissMessageResponse, aw as ELEMENTS_AUTH_CONTACT_TYPES, ax as ELEMENTS_AUTH_MODES, ay as ELEMENTS_AUTH_PROMPTS, az as ELEMENT_TYPES, aA as EVENT_TYPES, aB as ElementAppearance, aC as ElementEventHandler, aD as ElementEventType, aE as ElementOptions, aF as ElementType, aG as ElementsAuthContactType, aH as ElementsAuthMode, aI as ElementsAuthOptions, aJ as ElementsAuthPrompt, aK as ElementsCheckoutData, aL as ElementsCheckoutResult, aM as ElementsCustomerInfo, aN as ElementsOptions, aO as EnrichedOrder, aP as EnrichedOrderItem, aQ as Err, aR as ExternalChatClaimAttempt, aS as ExternalChatClaimDisposition, aT as FeeBearerType, aU as FetchQuoteInput, aV as FulfillmentLink, aW as FulfillmentStatus, aX as FulfillmentSummaryDTO, aY as FulfillmentType, aZ as FxQuote, a_ as FxQuoteRequest, a$ as FxQuoteStatus, b0 as FxRateResponse, b1 as FxService, b2 as GetAvailableSlotsInput, b3 as GetDeliveryOptionsParams, b4 as GetOrdersOptions, b5 as GetProductsOptions, b6 as GroupOrderInfo, b7 as IframeToParentMessage, b8 as InventoryService, b9 as LifecyclePhase, ba as LineItem, bb as LineType, bc as LinkService, bd as LiteBootstrap, be as LiteDayHours, bf as LiteHoursRange, bg as LiteService, bh as Location, bi as LocationBooking, bj as LocationTaxBehavior, bk as LocationTaxOverrides, bl as LocationTimeProfile, bm as LocationWithDetails, bn as MESSAGE_TYPES, bo as MobileMoneyDetails, bp as NextAction, bq as ObservabilityHooks, br as Ok, bs as Order, bt as OrderCustomerInfo, bu as OrderDiscountInfo, bv as OrderFilter, bw as OrderFulfillmentSummary, bx as OrderGroup, by as OrderGroupDetails, bz as OrderGroupPayment, bA as OrderGroupPaymentState, bB as OrderGroupPaymentStatus, bC as OrderGroupPaymentSummary, bD as OrderGroupStatus, bE as OrderHistory, bF as OrderLineState, bG as OrderLineStatus, bH as OrderLocationInfo, bI as OrderPaymentEvent, bJ as OrderPricingView, bK as OrderQueries, bL as OrderSplitDetail, bM as OrderStaffInfo, bN as OrderStatus, bO as OrderTimestampsDTO, bP as OrderType, bQ as Origin, bR as OriginActor, bS as OriginChannel, bT as OtpResult, bU as ParentToIframeMessage, bW as PaymentAuthorizationAdapterRegistry, bZ as PaymentInfoDTO, b_ as PaymentMethodInfo, b$ as PaymentState, c0 as PickupTime, c1 as PickupTimeType, c2 as PlaceDetailsResponse, c3 as PlacesService, c4 as PriceQuote, c5 as PricingOverrides, c6 as ProcessAndResolveOptions, c7 as ProcessCheckoutOptions, c8 as ProcessCheckoutResult, c9 as ProviderResolutionSource, ca as QuoteBundleSelectionInput, cb as QuoteCompositeSelectionInput, cc as QuoteDynamicBuckets, cd as QuoteStatus, ce as QuoteUiMessage, cf as ReadRequestOptions, cg as RefreshQuoteInput, ch as RefreshQuoteResult, ci as RefundOrderInput, cj as RelatedCandidate, ck as RelatedProduct, cl as RelatedProductsEnrichment, cm as RelationType, cn as ReminderMethod, co as ReminderSettings, cp as ReorderResult, cq as RequestContext, cr as RequestErrorEvent, cs as RequestOptions, ct as RequestSource, cu as RequestStartEvent, cv as RequestSuccessEvent, cw as RescheduleBookingInput, cx as RescheduleBookingResult, cy as RescheduleHistoryRecord, cz as ResourceAssignment, cA as ResourceInfo, cB as Result, cC as RetryEvent, cD as Room, cE as SchedulingMetadata, cF as SchedulingResult, cG as SchedulingService, cH as SenderType, cI as Service, cJ as ServiceAvailabilityParams, cK as ServiceAvailabilityResult, cL as ServiceCharge, cM as ServiceNotes, cN as ServiceScheduleRequest, cO as ServiceStatus, cP as SessionActivityData, cQ as SessionChangeEvent, cR as SessionMessage, cS as SlotResourceInfo, cT as SlotStaffInfo, cU as Staff, cV as StaffAssignment, cW as StaffRole, cX as StaffScheduleItem, cY as StockLevel, cZ as StockStatus, c_ as StoreCreditBalance, c$ as StoreCreditQueries, d0 as StorefrontBootstrap, d1 as SubscriptionService, d2 as SupportService, d3 as Table, d4 as TimeRange, d5 as TimeRanges, d6 as TimeSlot, d7 as TrackCategoryViewOptions, d8 as TrackProductViewOptions, d9 as UpdateOrderStatusInput, da as UpdateProfileInput, db as UploadInitResponse, dc as UploadResult, dd as UploadService, de as combine, df as combineObject, dg as createCimplifyClient, dh as createDefaultPaymentAuthorizationAdapterRegistry, di as createElements, dj as err, dk as flatMap, dl as fromPromise, dm as getOrElse, dn as isErr, dp as isOk, dq as mapError, dr as mapResult, ds as ok, dt as toNullable, du as tryCatch, dv as unwrap } from './client-BuLcOWLv.js';
|
|
3
|
+
import { bs as ProductWithDetails, bO as TaxPriceDisplayMode, be as Product, aA as DurationUnit, k as ApiError } from './payment-g0HFkEDU.js';
|
|
4
|
+
export { A as AddOn, a as AddOnDetails, b as AddOnGroupDetails, c as AddOnOption, d as AddOnOptionDetails, e as AddOnOptionPrice, f as AddOnWithOptions, g as AddToCartInput, h as AddressAuthorizationData, i as AddressValue, j as AdjustmentType, l as AppliedDiscount, m as AttributeAppliesTo, n as AttributeType, o as AttributeValidationRules, p as AttributeVisibility, q as AuthorizationType, B as BOUNDARY_KIND, r as BenefitType, s as BillingFrequency, t as BillingMarkupType, u as BillingPlanType, v as BoundaryKind, w as Bundle, x as BundleComponentData, y as BundleComponentInfo, z as BundleComponentVariantView, C as BundleComponentView, D as BundlePriceType, E as BundleProduct, F as BundleSelectionData, G as BundleSelectionInput, H as BundleStoredSelection, I as BundleSummary, J as BundleWithDetails, K as Cart, L as CartAddOn, M as CartChannel, N as CartItem, O as CartItemDetails, P as CartMutationResult, Q as CartNotice, R as CartStatus, S as CartSummary, T as CartTotals, U as Category, V as CategorySummary, W as ChosenPrice, X as CimplifyError, Y as Collection, Z as CollectionProduct, _ as CollectionSummary, $ as ComponentGroup, a0 as ComponentGroupWithComponents, a1 as ComponentPriceBreakdown, a2 as ComponentSchedulingData, a3 as ComponentSelectionInput, a4 as ComponentSourceType, a5 as Composite, a6 as CompositeComponent, a7 as CompositeComponentView, a8 as CompositeGroupView, a9 as CompositePriceBreakdown, aa as CompositePriceResult, ab as CompositePricingMode, ac as CompositeSelectionData, a3 as CompositeSelectionInput, ad as CompositeStoredSelection, ae as CompositeWithDetails, af as CurrencyCode, ag as CustomAttributeDefinition, ah as CustomAttributeValue, ai as CustomerInputValue, aj as DURATION_UNIT, ak as DateRangeValue, al as Deal, am as DealBenefitType, an as DepositType, ao as DestinationQuote, ap as DestinationQuoteAddress, aq as DestinationQuoteInput, ar as DigitalProductType, as as DiscountBreakdown, at as DiscountDetails, au as DiscountValidation, av as DisplayAddOn, aw as DisplayAddOnOption, ax as DisplayCart, ay as DisplayCartItem, az as DisplayMode, aB as ERROR_HINTS, aC as EligiblePlansQuery, aD as ErrorCode, aE as ErrorCodeType, aF as ErrorHint, aG as FacetValue, aH as FormattedPlanOption, aI as GroupPricingBehavior, aJ as INPUT_FIELD_TYPE, aK as IdempotencyMismatchError, aL as InitializePaymentResult, aM as InputFieldType, aN as InputFieldValidation, aO as InventoryType, aP as KnowledgeArticle, aQ as LineConfiguration, aR as LocationProductPrice, aS as LocationValue, aT as MeasurementValue, aU as Money, aV as PRODUCT_TYPE, aW as Pagination, aX as PaginationParams, aY as Payment, aZ as PaymentAuthorizationKind, a_ as PaymentAuthorizationSubmission, a$ as PaymentErrorDetails, b0 as PaymentMethod, b1 as PaymentMethodType, b2 as PaymentProcessingState, b3 as PaymentProvider, b4 as PaymentResponse, b5 as PaymentStatus, b6 as PaymentStatusResponse, b7 as PhoneValue, b8 as Price, b9 as PriceAdjustment, ba as PriceDecisionPath, bb as PriceEntryType, bc as PricePathTaxInfo, bd as PriceSource, bf as ProductAddOn, bg as ProductAvailability, bh as ProductAvailabilityNow, bi as ProductBillingPlan, bj as ProductDealInfo, bk as ProductInputField, bl as ProductProperty, bm as ProductRenderHint, bn as ProductTaxonomy, bo as ProductTimeProfile, bp as ProductType, bq as ProductVariant, br as ProductVariantValue, bt as PropertyFacet, bu as PropertySource, bv as QuantityPricingTier, bw as RENDER_HINT, bx as RelatedProductView, by as SaleCapInfo, bz as SaleInfo, bA as SalesChannel, bB as SchedulingMode, bC as SelectedAddOnOption, bD as SemanticKind, bE as SignatureValue, bF as SubmitAuthorizationInput, bG as Subscription, bH as SubscriptionInvoice, bI as SubscriptionItem, bJ as SubscriptionStatus, bK as SubscriptionWithDetails, bL as Tag, bM as TagsResponse, bN as TaxPathComponent, bP as TaxonomyAttributeTemplate, bQ as TaxonomyWithChildren, bR as UICart, bS as UICartBusiness, bT as UICartCustomer, bU as UICartLocation, bV as UICartPricing, bW as UpcomingSale, bX as UpdateCartItemInput, bY as VariantAxis, bZ as VariantAxisSelection, b_ as VariantAxisValue, b$ as VariantAxisValueView, c0 as VariantAxisView, c1 as VariantAxisWithValues, c2 as VariantDetails, c3 as VariantDetailsDTO, c4 as VariantDisplayAttribute, c5 as VariantLocationAvailability, c6 as VariantStrategy, c7 as VariantView, c8 as ZERO, ca as currencyCode, cb as enrichError, cc as getErrorHint, cd as isCimplifyError, ce as isIdempotencyMismatchError, cf as isQuoteConflictRequiringConsent, cg as isQuoteError, ch as isRetryableError, ci as isSupportedCurrency, cj as money, ck as moneyFromNumber } from './payment-g0HFkEDU.js';
|
|
5
|
+
export { A as AUTHORIZATION_TYPE, a as AUTH_MUTATION, b as AddressData, c as AuthResponse, C as CHECKOUT_MODE, d as CHECKOUT_MUTATION, e as CHECKOUT_STEP, f as CONTACT_TYPE, g as ContactType, h as CreateAddressInput, i as CreateMobileMoneyInput, j as Customer, k as CustomerAddress, l as CustomerLinkPreferences, m as CustomerMobileMoney, D as DEFAULT_COUNTRY, n as DEFAULT_CURRENCY, o as DEVICE_TYPE, p as DeviceType, E as EnrollAndLinkOrderInput, q as EnrollAndLinkOrderResult, r as EnrollmentData, L as LINK_MUTATION, s as LINK_QUERY, t as LinkData, u as LinkEnrollResult, v as LinkSession, w as LinkStatusResult, M as MAX_PAYMENT_AUTHORIZATION_STEPS, x as MOBILE_MONEY_PROVIDER, y as MobileMoneyData, z as MobileMoneyProvider, O as ORDER_MUTATION, B as ORDER_TYPE, P as PAYMENT_METHOD, F as PAYMENT_MUTATION, G as PAYMENT_STATE, H as PICKUP_TIME_TYPE, R as RequestOtpInput, I as RequestOtpResult, J as RevokeAllSessionsResult, K as RevokeSessionResult, U as UpdateAddressInput, V as VerifyOtpInput } from './link-D9iSVxt5.js';
|
|
6
|
+
export { C as CURRENCY_SYMBOLS, a as CanonicalMobileMoneyProvider, M as MOBILE_MONEY_PROVIDERS, P as PAYMENT_TERMINAL_FAILURE_STATUSES, c as canonicalMobileMoneyProvider, b as categorizePaymentError, d as detectMobileMoneyProvider, f as formatMoney, e as formatNumberCompact, g as formatPrice, h as formatPriceAdjustment, i as formatPriceCompact, j as formatPriceRange, k as formatPriceWithTax, l as formatProductPrice, m as getBasePrice, n as getCurrencySymbol, o as getDiscountPercentage, p as getDisplayPrice, q as getMarkupPercentage, r as getPriceRange, s as getProductCurrency, t as getTaxAmount, u as getUnitPriceAtQuantity, v as hasTaxInfo, w as isOnSale, x as isPaymentStatusFailure, y as isPaymentStatusRequiresAction, z as isPaymentStatusSuccess, A as isTaxInclusive, B as isValidPhoneForContext, D as normalizePaymentResponse, E as normalizePhoneToE164, F as normalizeStatusResponse, G as parsePrice, H as paymentAuthorizationUrl, I as resolvePhoneCountryCode } from './index-BtcoqrY1.js';
|
|
6
7
|
export { A as AdConfig, a as AdContextValue, b as AdCreative, c as AdPosition, d as AdSlot, e as AdTheme, S as SignInOptions, g as getVariantDisplayName, s as startSignIn } from './sign-in-DQlIdqsi.js';
|
|
7
|
-
export {
|
|
8
|
-
export { F as FormatCompactOptions, a as FormatPriceOptions, P as ProductWithPrice } from './price-BstChV9a.js';
|
|
8
|
+
export { F as FormatCompactOptions, a as FormatPriceOptions, P as ProductWithPrice } from './price-BLIeAb8K.js';
|
|
9
9
|
export { generateIdempotencyKey } from './advanced.js';
|
|
10
10
|
import 'libphonenumber-js';
|
|
11
11
|
|
|
12
|
+
interface PaystackPopupOptions {
|
|
13
|
+
key: string;
|
|
14
|
+
email: string;
|
|
15
|
+
amount?: number;
|
|
16
|
+
currency?: string;
|
|
17
|
+
reference?: string;
|
|
18
|
+
accessCode?: string;
|
|
19
|
+
}
|
|
20
|
+
interface PaystackPopupResult {
|
|
21
|
+
success: boolean;
|
|
22
|
+
reference?: string;
|
|
23
|
+
error?: string;
|
|
24
|
+
}
|
|
25
|
+
type PaystackPopup = (options: PaystackPopupOptions, signal?: AbortSignal) => Promise<PaystackPopupResult>;
|
|
26
|
+
/** Built-in adapter for Paystack Inline. */
|
|
27
|
+
declare class PaystackAuthorizationAdapter implements PaymentAuthorizationAdapter {
|
|
28
|
+
private readonly openPopup;
|
|
29
|
+
readonly provider = "paystack";
|
|
30
|
+
constructor(openPopup?: PaystackPopup);
|
|
31
|
+
authorize(context: PaymentAuthorizationContext): Promise<PaymentAuthorizationOutcome>;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
interface StripeErrorLike {
|
|
35
|
+
type?: string;
|
|
36
|
+
code?: string;
|
|
37
|
+
message?: string;
|
|
38
|
+
}
|
|
39
|
+
interface StripePaymentIntentLike {
|
|
40
|
+
id?: string;
|
|
41
|
+
status?: string;
|
|
42
|
+
}
|
|
43
|
+
interface StripePaymentElementLike {
|
|
44
|
+
mount(target: HTMLElement): void;
|
|
45
|
+
destroy?: () => void;
|
|
46
|
+
unmount?: () => void;
|
|
47
|
+
on?: (event: string, handler: (event?: {
|
|
48
|
+
error?: StripeErrorLike;
|
|
49
|
+
}) => void) => void;
|
|
50
|
+
}
|
|
51
|
+
interface StripeElementsLike {
|
|
52
|
+
create(type: "payment", options?: Record<string, unknown>): StripePaymentElementLike;
|
|
53
|
+
submit?: () => Promise<{
|
|
54
|
+
error?: StripeErrorLike;
|
|
55
|
+
}>;
|
|
56
|
+
}
|
|
57
|
+
interface StripeLike {
|
|
58
|
+
elements(options: {
|
|
59
|
+
clientSecret: string;
|
|
60
|
+
}): StripeElementsLike;
|
|
61
|
+
confirmPayment(options: {
|
|
62
|
+
elements: StripeElementsLike;
|
|
63
|
+
confirmParams: {
|
|
64
|
+
return_url: string;
|
|
65
|
+
};
|
|
66
|
+
redirect: "if_required";
|
|
67
|
+
}): Promise<{
|
|
68
|
+
error?: StripeErrorLike;
|
|
69
|
+
paymentIntent?: StripePaymentIntentLike;
|
|
70
|
+
}>;
|
|
71
|
+
}
|
|
72
|
+
type StripeLoader = (publicKey: string, options?: {
|
|
73
|
+
stripeAccount?: string;
|
|
74
|
+
}) => Promise<StripeLike | null>;
|
|
75
|
+
/**
|
|
76
|
+
* Stripe card adapter backed by the Payment Element. It reports only that the
|
|
77
|
+
* provider interaction was submitted; CheckoutResolver still polls Cimplify
|
|
78
|
+
* before returning checkout success.
|
|
79
|
+
*/
|
|
80
|
+
declare class StripeAuthorizationAdapter implements PaymentAuthorizationAdapter {
|
|
81
|
+
private readonly loadStripe;
|
|
82
|
+
readonly provider = "stripe";
|
|
83
|
+
constructor(loadStripe?: StripeLoader);
|
|
84
|
+
authorize(context: PaymentAuthorizationContext): Promise<PaymentAuthorizationOutcome>;
|
|
85
|
+
}
|
|
86
|
+
|
|
12
87
|
interface GalleryImage {
|
|
13
88
|
url: string;
|
|
14
89
|
/** null = product-level image; otherwise the variant it belongs to. */
|
|
@@ -174,4 +249,4 @@ interface AssetUrlOptions extends AssetTransform {
|
|
|
174
249
|
declare function assetUrl(path: string, opts?: AssetUrlOptions): string;
|
|
175
250
|
declare function isCimplifyAsset(src: string, base?: string): boolean;
|
|
176
251
|
|
|
177
|
-
export { ApiError, type ApiResponse, type AssetTransform, type AssetUrlOptions, CIMPLIFY_CDN_HOSTS, ChatReplyCard, type CustomerGroup, type CustomerPricingInfo, DEFAULT_CDN_BASE_URL, DurationUnit, type FrontendContext, type GalleryImage, type MutationRequest, type PriceListItem, Product, ProductWithDetails, type QuantityBreak, type QueryRequest, type ResolvedQuantityBreak, type ResponseMetadata, type SilentSignInOptions, type SilentSignInResult, TaxPriceDisplayMode, allGalleryImages, assetUrl, chatMessageCards, displaysGrossPrices, isCimplifyAsset, isMultiDayService, priceBasisLabel, resolveGallery, serviceBillingMultiplier, signInSilent, stayLength, stayPeriods };
|
|
252
|
+
export { ApiError, type ApiResponse, type AssetTransform, type AssetUrlOptions, CIMPLIFY_CDN_HOSTS, ChatReplyCard, type CustomerGroup, type CustomerPricingInfo, DEFAULT_CDN_BASE_URL, DurationUnit, type FrontendContext, type GalleryImage, type MutationRequest, PaymentAuthorizationAdapter, PaymentAuthorizationContext, PaymentAuthorizationOutcome, PaystackAuthorizationAdapter, type PaystackPopup, type PaystackPopupOptions, type PaystackPopupResult, type PriceListItem, Product, ProductWithDetails, type QuantityBreak, type QueryRequest, type ResolvedQuantityBreak, type ResponseMetadata, type SilentSignInOptions, type SilentSignInResult, StripeAuthorizationAdapter, type StripeLike, type StripeLoader, TaxPriceDisplayMode, allGalleryImages, assetUrl, chatMessageCards, displaysGrossPrices, isCimplifyAsset, isMultiDayService, priceBasisLabel, resolveGallery, serviceBillingMultiplier, signInSilent, stayLength, stayPeriods };
|