@cimplify/sdk 0.88.0 → 0.90.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/{chunk-A7NODD4Q.mjs → chunk-2UDEWILL.mjs} +83 -17
- package/dist/{chunk-W5BVGAO6.js → chunk-BN4V4ONE.js} +83 -17
- package/dist/{chunk-6JA4HBBD.js → chunk-JVWFIFQ7.js} +4 -4
- package/dist/{chunk-ROBTTS3Q.js → chunk-KJP4U6L3.js} +28 -1
- package/dist/{chunk-VU5LFNEX.mjs → chunk-NGE37REW.mjs} +2 -2
- package/dist/{chunk-APBLFZ2I.mjs → chunk-NNGKC3MM.mjs} +28 -1
- package/dist/chunk-U4MW6PYU.mjs +23 -0
- package/dist/chunk-XREIZ56K.js +26 -0
- package/dist/{client-D0PrO1-Q.d.ts → client-CR1f94wY.d.ts} +97 -7
- package/dist/{client-B3FBDfTg.d.ts → client-CqpOcbin.d.ts} +2 -2
- package/dist/{client-B-8ceVyt.d.mts → client-DMttx1xk.d.mts} +2 -2
- package/dist/{client-r5VSGFRU.d.mts → client-YiSelM7x.d.mts} +97 -7
- package/dist/{index-C-Pxrzna.d.ts → index-CxTVu0HZ.d.ts} +3 -3
- package/dist/{index-DLulxmF1.d.mts → index-DD9z396M.d.mts} +3 -3
- package/dist/index.d.mts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +17 -10
- package/dist/index.mjs +8 -2
- package/dist/mock/cli.mjs +49 -1
- package/dist/mock/library.js +49 -1
- package/dist/mock/library.mjs +49 -1
- package/dist/mock/msw.js +49 -1
- package/dist/mock/msw.mjs +49 -1
- package/dist/{payment-TnJUoHqL.d.mts → payment-5d8FTA1q.d.mts} +1 -1
- package/dist/{payment-Cfoo9MT7.d.ts → payment-BX7ccIKY.d.ts} +1 -1
- package/dist/{price-CCDSrIsc.d.ts → price-DtfP_Xfq.d.ts} +1 -1
- package/dist/{price-CM0zVSyM.d.mts → price-arl_4Rzn.d.mts} +1 -1
- package/dist/{product-DoA36Eqh.d.mts → product-DZX4QuKS.d.mts} +68 -4
- package/dist/{product-DoA36Eqh.d.ts → product-DZX4QuKS.d.ts} +68 -4
- package/dist/react.d.mts +405 -7
- package/dist/react.d.ts +405 -7
- package/dist/react.js +2345 -74
- package/dist/react.mjs +2323 -72
- package/dist/{server-CI1CUFVu.d.mts → server-BceZMxcK.d.mts} +8 -1
- package/dist/{server-CHfYeTAa.d.ts → server-DoJGSC7L.d.ts} +8 -1
- package/dist/server.d.mts +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/server.js +2 -2
- package/dist/server.mjs +1 -1
- package/dist/styles.css +1 -1
- package/dist/testing/msw.d.mts +2 -2
- package/dist/testing/msw.d.ts +2 -2
- package/dist/testing/msw.js +3 -2
- package/dist/testing/msw.mjs +2 -1
- package/dist/testing/suite.d.mts +6 -6
- package/dist/testing/suite.d.ts +6 -6
- package/dist/testing/suite.js +23 -22
- package/dist/testing/suite.mjs +4 -3
- package/dist/testing.d.mts +5 -5
- package/dist/testing.d.ts +5 -5
- package/dist/testing.js +79 -78
- package/dist/testing.mjs +5 -4
- package/dist/utils.d.mts +4 -4
- package/dist/utils.d.ts +4 -4
- package/package.json +4 -1
- package/registry/chat-widget.json +1 -1
- package/registry/product-customizer.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { V as CimplifyError, S as Category, aZ as Product, f as AddOnWithOptions, aQ as Pagination, bb as ProductWithDetails, b9 as ProductVariant, bF as VariantAxis, bG as VariantAxisSelection, A as AddOn, W as Collection, G as BundleSummary, u as Bundle, a3 as Composite, a1 as ComponentSelectionInput, a8 as CompositePriceResult, U as ChosenPrice, b6 as ProductTaxonomy, bx as TaxonomyWithChildren, ax as EligiblePlansQuery, b1 as ProductBillingPlan, b7 as ProductTimeProfile, b0 as ProductAvailabilityNow, aj as Deal, b2 as ProductDealInfo, ap as DiscountValidation, bu as TagsResponse, ae as CustomAttributeDefinition, af as CustomAttributeValue, bc as PropertyFacet, bw as TaxonomyAttributeTemplate, aJ as KnowledgeArticle, by as UICart, L as CartItem, Q as CartSummary, g as AddToCartInput, N as CartMutationResult, bE as UpdateCartItemInput, ao as DiscountDetails, aO as Money, ad as CurrencyCode, aK as LineConfiguration, bL as VariantDetails, bM as VariantDetailsDTO, a as AddOnDetails, d as AddOnOptionDetails, b as AddOnGroupDetails, D as BundleSelectionData, aa as CompositeSelectionData, ag as CustomerInputValue, bS as components, bk as SchedulingMode, av as DurationUnit, bo as Subscription, bs as SubscriptionWithDetails } from './product-
|
|
2
|
-
import { a as AuthorizationType, c as PaymentMethod, I as InitializePaymentResult, S as SubmitAuthorizationInput, i as PaymentStatusResponse } from './payment-
|
|
1
|
+
import { V as CimplifyError, S as Category, aZ as Product, f as AddOnWithOptions, aQ as Pagination, bb as ProductWithDetails, b9 as ProductVariant, bF as VariantAxis, bG as VariantAxisSelection, A as AddOn, W as Collection, G as BundleSummary, u as Bundle, a3 as Composite, a1 as ComponentSelectionInput, a8 as CompositePriceResult, U as ChosenPrice, b6 as ProductTaxonomy, bx as TaxonomyWithChildren, ax as EligiblePlansQuery, b1 as ProductBillingPlan, b7 as ProductTimeProfile, b0 as ProductAvailabilityNow, aj as Deal, b2 as ProductDealInfo, ap as DiscountValidation, bu as TagsResponse, ae as CustomAttributeDefinition, af as CustomAttributeValue, bc as PropertyFacet, bw as TaxonomyAttributeTemplate, aJ as KnowledgeArticle, by as UICart, L as CartItem, Q as CartSummary, g as AddToCartInput, N as CartMutationResult, bE as UpdateCartItemInput, ao as DiscountDetails, aO as Money, ad as CurrencyCode, aK as LineConfiguration, bL as VariantDetails, bM as VariantDetailsDTO, a as AddOnDetails, d as AddOnOptionDetails, b as AddOnGroupDetails, D as BundleSelectionData, aa as CompositeSelectionData, ag as CustomerInputValue, bS as components, bk as SchedulingMode, av as DurationUnit, bo as Subscription, bs as SubscriptionWithDetails } from './product-DZX4QuKS.js';
|
|
2
|
+
import { a as AuthorizationType, c as PaymentMethod, I as InitializePaymentResult, S as SubmitAuthorizationInput, i as PaymentStatusResponse } from './payment-BX7ccIKY.js';
|
|
3
3
|
|
|
4
4
|
interface RequestContext {
|
|
5
5
|
method: "GET" | "POST" | "PATCH" | "DELETE";
|
|
@@ -2217,6 +2217,15 @@ declare class SchedulingService {
|
|
|
2217
2217
|
hasAvailabilityOn(serviceId: string, date: string): Promise<Result<boolean, CimplifyError>>;
|
|
2218
2218
|
}
|
|
2219
2219
|
|
|
2220
|
+
interface LiteHoursRange {
|
|
2221
|
+
start: string;
|
|
2222
|
+
end: string;
|
|
2223
|
+
}
|
|
2224
|
+
interface LiteDayHours {
|
|
2225
|
+
/** Day of week, 0 = Sunday. */
|
|
2226
|
+
day: number;
|
|
2227
|
+
ranges: LiteHoursRange[];
|
|
2228
|
+
}
|
|
2220
2229
|
interface LiteBootstrapBusiness {
|
|
2221
2230
|
id: string;
|
|
2222
2231
|
name: string;
|
|
@@ -2224,6 +2233,13 @@ interface LiteBootstrapBusiness {
|
|
|
2224
2233
|
logo?: string | null;
|
|
2225
2234
|
currency?: string | null;
|
|
2226
2235
|
is_open: boolean;
|
|
2236
|
+
description?: string | null;
|
|
2237
|
+
phone?: string | null;
|
|
2238
|
+
/** Next opening moment (RFC3339); present when the store is closed. */
|
|
2239
|
+
opens_at?: string | null;
|
|
2240
|
+
/** Current closing moment (RFC3339); present when the store is open. */
|
|
2241
|
+
closes_at?: string | null;
|
|
2242
|
+
hours?: LiteDayHours[];
|
|
2227
2243
|
}
|
|
2228
2244
|
interface LiteBootstrapCategory {
|
|
2229
2245
|
id: string;
|
|
@@ -2232,6 +2248,8 @@ interface LiteBootstrapCategory {
|
|
|
2232
2248
|
}
|
|
2233
2249
|
interface LiteBootstrapLocation {
|
|
2234
2250
|
id: string;
|
|
2251
|
+
name?: string | null;
|
|
2252
|
+
area?: string | null;
|
|
2235
2253
|
}
|
|
2236
2254
|
interface LiteBootstrap {
|
|
2237
2255
|
business: LiteBootstrapBusiness;
|
|
@@ -2480,7 +2498,8 @@ declare class DeliveryService {
|
|
|
2480
2498
|
}
|
|
2481
2499
|
|
|
2482
2500
|
type SenderType = "customer" | "agent" | "system" | "bot";
|
|
2483
|
-
|
|
2501
|
+
/** Mirrors the backend `ContentType` enum — the wire can send any of these. */
|
|
2502
|
+
type ContentType = "text" | "image" | "video" | "audio" | "voice" | "document" | "sticker" | "location" | "contact" | "reaction" | "interactive" | "story_mention" | "share";
|
|
2484
2503
|
interface ChatMessage {
|
|
2485
2504
|
id: string;
|
|
2486
2505
|
sender_type: SenderType;
|
|
@@ -2488,21 +2507,62 @@ interface ChatMessage {
|
|
|
2488
2507
|
content_type: ContentType;
|
|
2489
2508
|
attachments: ChatAttachment[];
|
|
2490
2509
|
metadata: Record<string, unknown>;
|
|
2510
|
+
/** Server-resolved quote context; absent when the message isn't a reply. */
|
|
2511
|
+
reply_to?: ChatReplyContext | null;
|
|
2491
2512
|
created_at: string;
|
|
2492
2513
|
}
|
|
2514
|
+
/**
|
|
2515
|
+
* Self-contained quote payload: the server resolves the reference and ships
|
|
2516
|
+
* the preview, so quotes render on first paint after any reload with zero
|
|
2517
|
+
* client-side lookup. `preview` is prose-only with GenUI fences elided.
|
|
2518
|
+
*/
|
|
2519
|
+
interface ChatReplyContext {
|
|
2520
|
+
id: string;
|
|
2521
|
+
sender_type: SenderType;
|
|
2522
|
+
preview: string;
|
|
2523
|
+
}
|
|
2493
2524
|
interface ChatAttachment {
|
|
2494
2525
|
url: string;
|
|
2495
2526
|
mime_type: string | null;
|
|
2496
2527
|
filename: string | null;
|
|
2528
|
+
size?: number | null;
|
|
2529
|
+
}
|
|
2530
|
+
/**
|
|
2531
|
+
* An upload being sent as an attachment: `upload_id` goes on the wire (the
|
|
2532
|
+
* server stores a durable storage ref and presigns at read time); the rest
|
|
2533
|
+
* renders the optimistic bubble.
|
|
2534
|
+
*/
|
|
2535
|
+
interface ChatUploadAttachment extends ChatAttachment {
|
|
2536
|
+
upload_id: string;
|
|
2497
2537
|
}
|
|
2498
2538
|
interface ChatConversation {
|
|
2499
2539
|
id: string;
|
|
2500
2540
|
status: "open" | "assigned" | "waiting" | "resolved" | "closed";
|
|
2501
2541
|
ai_enabled: boolean;
|
|
2542
|
+
/** The customer asked for a person (or the AI escalated). */
|
|
2543
|
+
needs_human_review?: boolean;
|
|
2502
2544
|
message_count: number;
|
|
2503
2545
|
created_at: string;
|
|
2504
2546
|
last_message_at: string | null;
|
|
2547
|
+
/** Team-wide read watermark; messages at or before it have been seen. */
|
|
2548
|
+
team_read_at?: string | null;
|
|
2505
2549
|
}
|
|
2550
|
+
/** Structured card references an AI reply may carry in `metadata.cards`. */
|
|
2551
|
+
type ChatReplyCard = {
|
|
2552
|
+
kind: "product";
|
|
2553
|
+
id: string;
|
|
2554
|
+
name: string;
|
|
2555
|
+
price?: string | number;
|
|
2556
|
+
image_url?: string;
|
|
2557
|
+
} | {
|
|
2558
|
+
kind: "order";
|
|
2559
|
+
order_id: string;
|
|
2560
|
+
order_number?: string;
|
|
2561
|
+
status?: string;
|
|
2562
|
+
};
|
|
2563
|
+
declare function chatMessageCards(message: {
|
|
2564
|
+
metadata: Record<string, unknown>;
|
|
2565
|
+
}): ChatReplyCard[];
|
|
2506
2566
|
interface ChatConversationResponse {
|
|
2507
2567
|
conversation: ChatConversation;
|
|
2508
2568
|
messages: ChatMessage[];
|
|
@@ -2520,13 +2580,33 @@ declare class SupportService {
|
|
|
2520
2580
|
constructor(client: CimplifyClient);
|
|
2521
2581
|
/** Open (or resume) the customer's widget conversation. */
|
|
2522
2582
|
openConversation(opts?: IdempotencyOption): Promise<Result<ChatConversationResponse, CimplifyError>>;
|
|
2523
|
-
/**
|
|
2524
|
-
|
|
2525
|
-
|
|
2583
|
+
/**
|
|
2584
|
+
* Send a message in the active conversation.
|
|
2585
|
+
*
|
|
2586
|
+
* The idempotency key doubles as the message `client_id`: the backend
|
|
2587
|
+
* dedupes on it, so client retries of the same send never insert twice.
|
|
2588
|
+
* `replyToMessageId` quotes another message by its `ChatMessage.id`; the
|
|
2589
|
+
* server resolves it thread-scoped and echoes the quote as `reply_to`.
|
|
2590
|
+
*/
|
|
2591
|
+
sendMessage(content: string, opts?: IdempotencyOption & {
|
|
2592
|
+
replyToMessageId?: string;
|
|
2593
|
+
attachments?: ChatUploadAttachment[];
|
|
2594
|
+
}): Promise<Result<ChatMessage, CimplifyError>>;
|
|
2595
|
+
/**
|
|
2596
|
+
* Poll for messages. `after` pages forward (live updates); `before` pages
|
|
2597
|
+
* backward for scrollback into older history.
|
|
2598
|
+
*/
|
|
2526
2599
|
getMessages(options?: {
|
|
2527
2600
|
after?: string;
|
|
2601
|
+
before?: string;
|
|
2528
2602
|
limit?: number;
|
|
2529
2603
|
}): Promise<Result<ChatMessage[], CimplifyError>>;
|
|
2604
|
+
/** React to a message in the active conversation by its `ChatMessage.id`. */
|
|
2605
|
+
reactToMessage(messageId: string, emoji: string): Promise<Result<ChatMessage, CimplifyError>>;
|
|
2606
|
+
/** Ask for a person: flags the thread for the merchant's inbox. */
|
|
2607
|
+
requestHuman(opts?: IdempotencyOption): Promise<Result<{
|
|
2608
|
+
requested: boolean;
|
|
2609
|
+
}, CimplifyError>>;
|
|
2530
2610
|
}
|
|
2531
2611
|
|
|
2532
2612
|
declare class CimplifyElements {
|
|
@@ -2726,6 +2806,16 @@ declare class CimplifyClient {
|
|
|
2726
2806
|
resolveBusinessId(): Promise<string>;
|
|
2727
2807
|
private authedFetch;
|
|
2728
2808
|
private loadSessionToken;
|
|
2809
|
+
/**
|
|
2810
|
+
* Mint the session token client-side so the very first request already
|
|
2811
|
+
* carries it. Without this, parallel first-load requests each get a
|
|
2812
|
+
* different server-minted token and last-writer-wins splits the session
|
|
2813
|
+
* (cart writes and chat conversations land on dropped tokens).
|
|
2814
|
+
*
|
|
2815
|
+
* Browser-only: minting on a server-shared client instance would pin
|
|
2816
|
+
* every visitor to one session, so SSR keeps the lazy server-minted flow.
|
|
2817
|
+
*/
|
|
2818
|
+
private mintSessionToken;
|
|
2729
2819
|
private saveSessionToken;
|
|
2730
2820
|
private captureSessionToken;
|
|
2731
2821
|
private getHeaders;
|
|
@@ -2763,4 +2853,4 @@ declare class CimplifyClient {
|
|
|
2763
2853
|
}
|
|
2764
2854
|
declare function createCimplifyClient(config?: CimplifyConfig): CimplifyClient;
|
|
2765
2855
|
|
|
2766
|
-
export { type
|
|
2856
|
+
export { type CheckSlotAvailabilityInput as $, AUTHORIZATION_TYPE as A, type Booking as B, BusinessService as C, type BusinessSettings as D, type BusinessWithLocations as E, CHECKOUT_MODE as F, CHECKOUT_MUTATION as G, CHECKOUT_STEP as H, CONTACT_TYPE as I, type CacheOptions as J, type CancelBookingInput as K, type CancelBookingResult as L, type CancelOrderInput as M, type CancellationPolicy as N, CartOperations as O, CatalogueQueries as P, type CatalogueResult as Q, type CatalogueSnapshot as R, type CategoryInfo as S, type ChatAttachment as T, type ChatConversation as U, type ChatConversationResponse as V, type ChatMessage as W, type ChatReplyCard as X, type ChatReplyContext as Y, type ChatUploadAttachment as Z, type ChatWidgetStarter as _, AUTH_MUTATION as a, type EnrollAndLinkOrderResult as a$, type CheckSlotAvailabilityResult as a0, type CheckoutAddressInfo as a1, type CheckoutCartData as a2, type CheckoutCartItem as a3, type CheckoutCustomerInfo as a4, type CheckoutFormData as a5, type CheckoutInput as a6, type CheckoutMode as a7, type CheckoutOrderType as a8, type CheckoutPaymentMethod as a9, type DeliveryOption as aA, type DeliveryOptionsResponse as aB, DeliveryService as aC, type DepositResult as aD, type DeviceType as aE, type DismissMessageResponse as aF, ELEMENTS_AUTH_CONTACT_TYPES as aG, ELEMENTS_AUTH_MODES as aH, ELEMENTS_AUTH_PROMPTS as aI, ELEMENT_TYPES as aJ, EVENT_TYPES as aK, type ElementAppearance as aL, type ElementEventHandler as aM, type ElementEventType as aN, type ElementOptions as aO, type ElementType as aP, type ElementsAuthContactType as aQ, type ElementsAuthMode as aR, type ElementsAuthOptions as aS, type ElementsAuthPrompt as aT, type ElementsCheckoutData as aU, type ElementsCheckoutResult as aV, type ElementsCustomerInfo as aW, type ElementsOptions as aX, type EnrichedOrder as aY, type EnrichedOrderItem as aZ, type EnrollAndLinkOrderInput as a_, type CheckoutResult as aa, CheckoutService as ab, type CheckoutStatus as ac, type CheckoutStatusContext as ad, type CheckoutStep as ae, CimplifyClient as af, type CimplifyConfig as ag, CimplifyElement as ah, CimplifyElements as ai, type ContactType as aj, type ContentType as ak, type CreateAddressInput as al, type CreateMobileMoneyInput as am, type Customer as an, type CustomerAddress as ao, type CustomerBooking as ap, type CustomerBookingServiceItem as aq, type CustomerLinkPreferences as ar, type CustomerMobileMoney as as, type CustomerServicePreferences as at, DEFAULT_COUNTRY as au, DEFAULT_CURRENCY as av, DEVICE_TYPE as aw, type DayAvailability as ax, type DeliveryFeeDetails as ay, type DeliveryFeeResponse as az, type AbortablePromise as b, type OrderLineState as b$, type EnrollmentData as b0, type Err as b1, type FeeBearerType as b2, type FetchQuoteInput as b3, type FulfillmentLink as b4, type FulfillmentStatus as b5, type FulfillmentSummaryDTO as b6, type FulfillmentType as b7, type FxQuote as b8, type FxQuoteRequest as b9, type LocationTaxBehavior as bA, type LocationTaxOverrides as bB, type LocationTimeProfile as bC, type LocationWithDetails as bD, MESSAGE_TYPES as bE, MOBILE_MONEY_PROVIDER as bF, type MobileMoneyData as bG, type MobileMoneyDetails as bH, type MobileMoneyProvider as bI, type NextAction as bJ, ORDER_MUTATION as bK, ORDER_TYPE as bL, type ObservabilityHooks as bM, type Ok as bN, type Order as bO, type OrderCustomerInfo as bP, type OrderDiscountInfo as bQ, type OrderFilter as bR, type OrderFulfillmentSummary as bS, type OrderGroup as bT, type OrderGroupDetails as bU, type OrderGroupPayment as bV, type OrderGroupPaymentState as bW, type OrderGroupPaymentStatus as bX, type OrderGroupPaymentSummary as bY, type OrderGroupStatus as bZ, type OrderHistory as b_, type FxQuoteStatus as ba, type FxRateResponse as bb, FxService as bc, type GetAvailableSlotsInput as bd, type GetDeliveryOptionsParams as be, type GetOrdersOptions as bf, type GetProductsOptions as bg, type GroupOrderInfo as bh, type IframeToParentMessage as bi, InventoryService as bj, LINK_MUTATION as bk, LINK_QUERY as bl, type LifecyclePhase as bm, type LineItem as bn, type LineType as bo, type LinkData as bp, type LinkEnrollResult as bq, LinkService as br, type LinkSession as bs, type LinkStatusResult as bt, type LiteBootstrap as bu, type LiteDayHours as bv, type LiteHoursRange as bw, LiteService as bx, type Location as by, type LocationBooking as bz, type ActivityRecommendation as c, type RevokeSessionResult as c$, type OrderLineStatus as c0, type OrderLocationInfo as c1, type OrderPaymentEvent as c2, type OrderPricingView as c3, OrderQueries as c4, type OrderSplitDetail as c5, type OrderStaffInfo as c6, type OrderStatus as c7, type OrderTimestampsDTO as c8, type OrderType as c9, type QuoteUiMessage as cA, type ReadRequestOptions as cB, type RefreshQuoteInput as cC, type RefreshQuoteResult as cD, type RefundOrderInput as cE, type RelatedCandidate as cF, type RelatedProduct as cG, type RelatedProductsEnrichment as cH, type RelationType as cI, type ReminderMethod as cJ, type ReminderSettings as cK, type ReorderResult as cL, type RequestContext as cM, type RequestErrorEvent as cN, type RequestOptions as cO, type RequestOtpInput as cP, type RequestSource as cQ, type RequestStartEvent as cR, type RequestSuccessEvent as cS, type RescheduleBookingInput as cT, type RescheduleBookingResult as cU, type RescheduleHistoryRecord as cV, type ResourceAssignment as cW, type ResourceInfo as cX, type Result as cY, type RetryEvent as cZ, type RevokeAllSessionsResult as c_, type Origin as ca, type OriginActor as cb, type OriginChannel as cc, type OtpResult as cd, PAYMENT_METHOD as ce, PAYMENT_MUTATION as cf, PAYMENT_STATE as cg, PICKUP_TIME_TYPE as ch, type ParentToIframeMessage as ci, type PaymentInfoDTO as cj, type PaymentMethodInfo as ck, type PaymentState as cl, type PickupTime as cm, type PickupTimeType as cn, type PlaceDetailsResponse as co, PlacesService as cp, type PriceQuote as cq, type PricingOverrides as cr, type ProcessAndResolveOptions as cs, type ProcessCheckoutOptions as ct, type ProcessCheckoutResult as cu, type ProviderResolutionSource as cv, type QuoteBundleSelectionInput as cw, type QuoteCompositeSelectionInput as cx, type QuoteDynamicBuckets as cy, type QuoteStatus as cz, type ActivityRecommendationsResponse as d, type Room as d0, type SchedulingMetadata as d1, type SchedulingResult as d2, SchedulingService as d3, type SenderType as d4, type Service as d5, type ServiceAvailabilityParams as d6, type ServiceAvailabilityResult as d7, type ServiceCharge as d8, type ServiceNotes as d9, type UpdateOrderStatusInput as dA, type UpdateProfileInput as dB, type UploadInitResponse as dC, type UploadResult as dD, UploadService as dE, type VerifyOtpInput as dF, chatMessageCards as dG, combine as dH, combineObject as dI, createCimplifyClient as dJ, createElements as dK, err as dL, flatMap as dM, fromPromise as dN, getOrElse as dO, isErr as dP, isOk as dQ, mapError as dR, mapResult as dS, ok as dT, toNullable as dU, tryCatch as dV, unwrap as dW, type ServiceScheduleRequest as da, type ServiceStatus as db, type SessionActivityData as dc, type SessionChangeEvent as dd, type SessionMessage as de, type SlotResourceInfo as df, type SlotStaffInfo as dg, type Staff as dh, type StaffAssignment as di, type StaffRole as dj, type StaffScheduleItem as dk, type StockLevel as dl, type StockStatus as dm, type StoreCreditBalance as dn, StoreCreditQueries as dp, type StorefrontBootstrap as dq, SubscriptionService as dr, SupportService as ds, type Table as dt, type TimeRange as du, type TimeRanges as dv, type TimeSlot as dw, type TrackCategoryViewOptions as dx, type TrackProductViewOptions as dy, type UpdateAddressInput as dz, ActivityService as e, type ActivityStateResponse as f, type AddressData as g, type AddressInfo as h, type AmountToPay as i, type AuthResponse as j, AuthService as k, type AuthStatus as l, type AuthenticatedCustomer as m, type AuthenticatedData as n, type AutocompletePrediction as o, type AutocompleteResponse as p, type AvailabilityResult as q, type AvailableSlot as r, type BookingModificationType as s, type BookingStatus as t, type BookingWithDetails as u, type BufferTimes as v, type Business as w, type BusinessDetailsDTO as x, type BusinessHours as y, type BusinessPreferences as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { A as AppHandle, C as CreateAppOptions } from './server-
|
|
1
|
+
import { af as CimplifyClient } from './client-CR1f94wY.js';
|
|
2
|
+
import { A as AppHandle, C as CreateAppOptions } from './server-DoJGSC7L.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Test client + fixtures.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { A as AppHandle, C as CreateAppOptions } from './server-
|
|
1
|
+
import { af as CimplifyClient } from './client-YiSelM7x.mjs';
|
|
2
|
+
import { A as AppHandle, C as CreateAppOptions } from './server-BceZMxcK.mjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Test client + fixtures.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { V as CimplifyError, S as Category, aZ as Product, f as AddOnWithOptions, aQ as Pagination, bb as ProductWithDetails, b9 as ProductVariant, bF as VariantAxis, bG as VariantAxisSelection, A as AddOn, W as Collection, G as BundleSummary, u as Bundle, a3 as Composite, a1 as ComponentSelectionInput, a8 as CompositePriceResult, U as ChosenPrice, b6 as ProductTaxonomy, bx as TaxonomyWithChildren, ax as EligiblePlansQuery, b1 as ProductBillingPlan, b7 as ProductTimeProfile, b0 as ProductAvailabilityNow, aj as Deal, b2 as ProductDealInfo, ap as DiscountValidation, bu as TagsResponse, ae as CustomAttributeDefinition, af as CustomAttributeValue, bc as PropertyFacet, bw as TaxonomyAttributeTemplate, aJ as KnowledgeArticle, by as UICart, L as CartItem, Q as CartSummary, g as AddToCartInput, N as CartMutationResult, bE as UpdateCartItemInput, ao as DiscountDetails, aO as Money, ad as CurrencyCode, aK as LineConfiguration, bL as VariantDetails, bM as VariantDetailsDTO, a as AddOnDetails, d as AddOnOptionDetails, b as AddOnGroupDetails, D as BundleSelectionData, aa as CompositeSelectionData, ag as CustomerInputValue, bS as components, bk as SchedulingMode, av as DurationUnit, bo as Subscription, bs as SubscriptionWithDetails } from './product-
|
|
2
|
-
import { a as AuthorizationType, c as PaymentMethod, I as InitializePaymentResult, S as SubmitAuthorizationInput, i as PaymentStatusResponse } from './payment-
|
|
1
|
+
import { V as CimplifyError, S as Category, aZ as Product, f as AddOnWithOptions, aQ as Pagination, bb as ProductWithDetails, b9 as ProductVariant, bF as VariantAxis, bG as VariantAxisSelection, A as AddOn, W as Collection, G as BundleSummary, u as Bundle, a3 as Composite, a1 as ComponentSelectionInput, a8 as CompositePriceResult, U as ChosenPrice, b6 as ProductTaxonomy, bx as TaxonomyWithChildren, ax as EligiblePlansQuery, b1 as ProductBillingPlan, b7 as ProductTimeProfile, b0 as ProductAvailabilityNow, aj as Deal, b2 as ProductDealInfo, ap as DiscountValidation, bu as TagsResponse, ae as CustomAttributeDefinition, af as CustomAttributeValue, bc as PropertyFacet, bw as TaxonomyAttributeTemplate, aJ as KnowledgeArticle, by as UICart, L as CartItem, Q as CartSummary, g as AddToCartInput, N as CartMutationResult, bE as UpdateCartItemInput, ao as DiscountDetails, aO as Money, ad as CurrencyCode, aK as LineConfiguration, bL as VariantDetails, bM as VariantDetailsDTO, a as AddOnDetails, d as AddOnOptionDetails, b as AddOnGroupDetails, D as BundleSelectionData, aa as CompositeSelectionData, ag as CustomerInputValue, bS as components, bk as SchedulingMode, av as DurationUnit, bo as Subscription, bs as SubscriptionWithDetails } from './product-DZX4QuKS.mjs';
|
|
2
|
+
import { a as AuthorizationType, c as PaymentMethod, I as InitializePaymentResult, S as SubmitAuthorizationInput, i as PaymentStatusResponse } from './payment-5d8FTA1q.mjs';
|
|
3
3
|
|
|
4
4
|
interface RequestContext {
|
|
5
5
|
method: "GET" | "POST" | "PATCH" | "DELETE";
|
|
@@ -2217,6 +2217,15 @@ declare class SchedulingService {
|
|
|
2217
2217
|
hasAvailabilityOn(serviceId: string, date: string): Promise<Result<boolean, CimplifyError>>;
|
|
2218
2218
|
}
|
|
2219
2219
|
|
|
2220
|
+
interface LiteHoursRange {
|
|
2221
|
+
start: string;
|
|
2222
|
+
end: string;
|
|
2223
|
+
}
|
|
2224
|
+
interface LiteDayHours {
|
|
2225
|
+
/** Day of week, 0 = Sunday. */
|
|
2226
|
+
day: number;
|
|
2227
|
+
ranges: LiteHoursRange[];
|
|
2228
|
+
}
|
|
2220
2229
|
interface LiteBootstrapBusiness {
|
|
2221
2230
|
id: string;
|
|
2222
2231
|
name: string;
|
|
@@ -2224,6 +2233,13 @@ interface LiteBootstrapBusiness {
|
|
|
2224
2233
|
logo?: string | null;
|
|
2225
2234
|
currency?: string | null;
|
|
2226
2235
|
is_open: boolean;
|
|
2236
|
+
description?: string | null;
|
|
2237
|
+
phone?: string | null;
|
|
2238
|
+
/** Next opening moment (RFC3339); present when the store is closed. */
|
|
2239
|
+
opens_at?: string | null;
|
|
2240
|
+
/** Current closing moment (RFC3339); present when the store is open. */
|
|
2241
|
+
closes_at?: string | null;
|
|
2242
|
+
hours?: LiteDayHours[];
|
|
2227
2243
|
}
|
|
2228
2244
|
interface LiteBootstrapCategory {
|
|
2229
2245
|
id: string;
|
|
@@ -2232,6 +2248,8 @@ interface LiteBootstrapCategory {
|
|
|
2232
2248
|
}
|
|
2233
2249
|
interface LiteBootstrapLocation {
|
|
2234
2250
|
id: string;
|
|
2251
|
+
name?: string | null;
|
|
2252
|
+
area?: string | null;
|
|
2235
2253
|
}
|
|
2236
2254
|
interface LiteBootstrap {
|
|
2237
2255
|
business: LiteBootstrapBusiness;
|
|
@@ -2480,7 +2498,8 @@ declare class DeliveryService {
|
|
|
2480
2498
|
}
|
|
2481
2499
|
|
|
2482
2500
|
type SenderType = "customer" | "agent" | "system" | "bot";
|
|
2483
|
-
|
|
2501
|
+
/** Mirrors the backend `ContentType` enum — the wire can send any of these. */
|
|
2502
|
+
type ContentType = "text" | "image" | "video" | "audio" | "voice" | "document" | "sticker" | "location" | "contact" | "reaction" | "interactive" | "story_mention" | "share";
|
|
2484
2503
|
interface ChatMessage {
|
|
2485
2504
|
id: string;
|
|
2486
2505
|
sender_type: SenderType;
|
|
@@ -2488,21 +2507,62 @@ interface ChatMessage {
|
|
|
2488
2507
|
content_type: ContentType;
|
|
2489
2508
|
attachments: ChatAttachment[];
|
|
2490
2509
|
metadata: Record<string, unknown>;
|
|
2510
|
+
/** Server-resolved quote context; absent when the message isn't a reply. */
|
|
2511
|
+
reply_to?: ChatReplyContext | null;
|
|
2491
2512
|
created_at: string;
|
|
2492
2513
|
}
|
|
2514
|
+
/**
|
|
2515
|
+
* Self-contained quote payload: the server resolves the reference and ships
|
|
2516
|
+
* the preview, so quotes render on first paint after any reload with zero
|
|
2517
|
+
* client-side lookup. `preview` is prose-only with GenUI fences elided.
|
|
2518
|
+
*/
|
|
2519
|
+
interface ChatReplyContext {
|
|
2520
|
+
id: string;
|
|
2521
|
+
sender_type: SenderType;
|
|
2522
|
+
preview: string;
|
|
2523
|
+
}
|
|
2493
2524
|
interface ChatAttachment {
|
|
2494
2525
|
url: string;
|
|
2495
2526
|
mime_type: string | null;
|
|
2496
2527
|
filename: string | null;
|
|
2528
|
+
size?: number | null;
|
|
2529
|
+
}
|
|
2530
|
+
/**
|
|
2531
|
+
* An upload being sent as an attachment: `upload_id` goes on the wire (the
|
|
2532
|
+
* server stores a durable storage ref and presigns at read time); the rest
|
|
2533
|
+
* renders the optimistic bubble.
|
|
2534
|
+
*/
|
|
2535
|
+
interface ChatUploadAttachment extends ChatAttachment {
|
|
2536
|
+
upload_id: string;
|
|
2497
2537
|
}
|
|
2498
2538
|
interface ChatConversation {
|
|
2499
2539
|
id: string;
|
|
2500
2540
|
status: "open" | "assigned" | "waiting" | "resolved" | "closed";
|
|
2501
2541
|
ai_enabled: boolean;
|
|
2542
|
+
/** The customer asked for a person (or the AI escalated). */
|
|
2543
|
+
needs_human_review?: boolean;
|
|
2502
2544
|
message_count: number;
|
|
2503
2545
|
created_at: string;
|
|
2504
2546
|
last_message_at: string | null;
|
|
2547
|
+
/** Team-wide read watermark; messages at or before it have been seen. */
|
|
2548
|
+
team_read_at?: string | null;
|
|
2505
2549
|
}
|
|
2550
|
+
/** Structured card references an AI reply may carry in `metadata.cards`. */
|
|
2551
|
+
type ChatReplyCard = {
|
|
2552
|
+
kind: "product";
|
|
2553
|
+
id: string;
|
|
2554
|
+
name: string;
|
|
2555
|
+
price?: string | number;
|
|
2556
|
+
image_url?: string;
|
|
2557
|
+
} | {
|
|
2558
|
+
kind: "order";
|
|
2559
|
+
order_id: string;
|
|
2560
|
+
order_number?: string;
|
|
2561
|
+
status?: string;
|
|
2562
|
+
};
|
|
2563
|
+
declare function chatMessageCards(message: {
|
|
2564
|
+
metadata: Record<string, unknown>;
|
|
2565
|
+
}): ChatReplyCard[];
|
|
2506
2566
|
interface ChatConversationResponse {
|
|
2507
2567
|
conversation: ChatConversation;
|
|
2508
2568
|
messages: ChatMessage[];
|
|
@@ -2520,13 +2580,33 @@ declare class SupportService {
|
|
|
2520
2580
|
constructor(client: CimplifyClient);
|
|
2521
2581
|
/** Open (or resume) the customer's widget conversation. */
|
|
2522
2582
|
openConversation(opts?: IdempotencyOption): Promise<Result<ChatConversationResponse, CimplifyError>>;
|
|
2523
|
-
/**
|
|
2524
|
-
|
|
2525
|
-
|
|
2583
|
+
/**
|
|
2584
|
+
* Send a message in the active conversation.
|
|
2585
|
+
*
|
|
2586
|
+
* The idempotency key doubles as the message `client_id`: the backend
|
|
2587
|
+
* dedupes on it, so client retries of the same send never insert twice.
|
|
2588
|
+
* `replyToMessageId` quotes another message by its `ChatMessage.id`; the
|
|
2589
|
+
* server resolves it thread-scoped and echoes the quote as `reply_to`.
|
|
2590
|
+
*/
|
|
2591
|
+
sendMessage(content: string, opts?: IdempotencyOption & {
|
|
2592
|
+
replyToMessageId?: string;
|
|
2593
|
+
attachments?: ChatUploadAttachment[];
|
|
2594
|
+
}): Promise<Result<ChatMessage, CimplifyError>>;
|
|
2595
|
+
/**
|
|
2596
|
+
* Poll for messages. `after` pages forward (live updates); `before` pages
|
|
2597
|
+
* backward for scrollback into older history.
|
|
2598
|
+
*/
|
|
2526
2599
|
getMessages(options?: {
|
|
2527
2600
|
after?: string;
|
|
2601
|
+
before?: string;
|
|
2528
2602
|
limit?: number;
|
|
2529
2603
|
}): Promise<Result<ChatMessage[], CimplifyError>>;
|
|
2604
|
+
/** React to a message in the active conversation by its `ChatMessage.id`. */
|
|
2605
|
+
reactToMessage(messageId: string, emoji: string): Promise<Result<ChatMessage, CimplifyError>>;
|
|
2606
|
+
/** Ask for a person: flags the thread for the merchant's inbox. */
|
|
2607
|
+
requestHuman(opts?: IdempotencyOption): Promise<Result<{
|
|
2608
|
+
requested: boolean;
|
|
2609
|
+
}, CimplifyError>>;
|
|
2530
2610
|
}
|
|
2531
2611
|
|
|
2532
2612
|
declare class CimplifyElements {
|
|
@@ -2726,6 +2806,16 @@ declare class CimplifyClient {
|
|
|
2726
2806
|
resolveBusinessId(): Promise<string>;
|
|
2727
2807
|
private authedFetch;
|
|
2728
2808
|
private loadSessionToken;
|
|
2809
|
+
/**
|
|
2810
|
+
* Mint the session token client-side so the very first request already
|
|
2811
|
+
* carries it. Without this, parallel first-load requests each get a
|
|
2812
|
+
* different server-minted token and last-writer-wins splits the session
|
|
2813
|
+
* (cart writes and chat conversations land on dropped tokens).
|
|
2814
|
+
*
|
|
2815
|
+
* Browser-only: minting on a server-shared client instance would pin
|
|
2816
|
+
* every visitor to one session, so SSR keeps the lazy server-minted flow.
|
|
2817
|
+
*/
|
|
2818
|
+
private mintSessionToken;
|
|
2729
2819
|
private saveSessionToken;
|
|
2730
2820
|
private captureSessionToken;
|
|
2731
2821
|
private getHeaders;
|
|
@@ -2763,4 +2853,4 @@ declare class CimplifyClient {
|
|
|
2763
2853
|
}
|
|
2764
2854
|
declare function createCimplifyClient(config?: CimplifyConfig): CimplifyClient;
|
|
2765
2855
|
|
|
2766
|
-
export { type
|
|
2856
|
+
export { type CheckSlotAvailabilityInput as $, AUTHORIZATION_TYPE as A, type Booking as B, BusinessService as C, type BusinessSettings as D, type BusinessWithLocations as E, CHECKOUT_MODE as F, CHECKOUT_MUTATION as G, CHECKOUT_STEP as H, CONTACT_TYPE as I, type CacheOptions as J, type CancelBookingInput as K, type CancelBookingResult as L, type CancelOrderInput as M, type CancellationPolicy as N, CartOperations as O, CatalogueQueries as P, type CatalogueResult as Q, type CatalogueSnapshot as R, type CategoryInfo as S, type ChatAttachment as T, type ChatConversation as U, type ChatConversationResponse as V, type ChatMessage as W, type ChatReplyCard as X, type ChatReplyContext as Y, type ChatUploadAttachment as Z, type ChatWidgetStarter as _, AUTH_MUTATION as a, type EnrollAndLinkOrderResult as a$, type CheckSlotAvailabilityResult as a0, type CheckoutAddressInfo as a1, type CheckoutCartData as a2, type CheckoutCartItem as a3, type CheckoutCustomerInfo as a4, type CheckoutFormData as a5, type CheckoutInput as a6, type CheckoutMode as a7, type CheckoutOrderType as a8, type CheckoutPaymentMethod as a9, type DeliveryOption as aA, type DeliveryOptionsResponse as aB, DeliveryService as aC, type DepositResult as aD, type DeviceType as aE, type DismissMessageResponse as aF, ELEMENTS_AUTH_CONTACT_TYPES as aG, ELEMENTS_AUTH_MODES as aH, ELEMENTS_AUTH_PROMPTS as aI, ELEMENT_TYPES as aJ, EVENT_TYPES as aK, type ElementAppearance as aL, type ElementEventHandler as aM, type ElementEventType as aN, type ElementOptions as aO, type ElementType as aP, type ElementsAuthContactType as aQ, type ElementsAuthMode as aR, type ElementsAuthOptions as aS, type ElementsAuthPrompt as aT, type ElementsCheckoutData as aU, type ElementsCheckoutResult as aV, type ElementsCustomerInfo as aW, type ElementsOptions as aX, type EnrichedOrder as aY, type EnrichedOrderItem as aZ, type EnrollAndLinkOrderInput as a_, type CheckoutResult as aa, CheckoutService as ab, type CheckoutStatus as ac, type CheckoutStatusContext as ad, type CheckoutStep as ae, CimplifyClient as af, type CimplifyConfig as ag, CimplifyElement as ah, CimplifyElements as ai, type ContactType as aj, type ContentType as ak, type CreateAddressInput as al, type CreateMobileMoneyInput as am, type Customer as an, type CustomerAddress as ao, type CustomerBooking as ap, type CustomerBookingServiceItem as aq, type CustomerLinkPreferences as ar, type CustomerMobileMoney as as, type CustomerServicePreferences as at, DEFAULT_COUNTRY as au, DEFAULT_CURRENCY as av, DEVICE_TYPE as aw, type DayAvailability as ax, type DeliveryFeeDetails as ay, type DeliveryFeeResponse as az, type AbortablePromise as b, type OrderLineState as b$, type EnrollmentData as b0, type Err as b1, type FeeBearerType as b2, type FetchQuoteInput as b3, type FulfillmentLink as b4, type FulfillmentStatus as b5, type FulfillmentSummaryDTO as b6, type FulfillmentType as b7, type FxQuote as b8, type FxQuoteRequest as b9, type LocationTaxBehavior as bA, type LocationTaxOverrides as bB, type LocationTimeProfile as bC, type LocationWithDetails as bD, MESSAGE_TYPES as bE, MOBILE_MONEY_PROVIDER as bF, type MobileMoneyData as bG, type MobileMoneyDetails as bH, type MobileMoneyProvider as bI, type NextAction as bJ, ORDER_MUTATION as bK, ORDER_TYPE as bL, type ObservabilityHooks as bM, type Ok as bN, type Order as bO, type OrderCustomerInfo as bP, type OrderDiscountInfo as bQ, type OrderFilter as bR, type OrderFulfillmentSummary as bS, type OrderGroup as bT, type OrderGroupDetails as bU, type OrderGroupPayment as bV, type OrderGroupPaymentState as bW, type OrderGroupPaymentStatus as bX, type OrderGroupPaymentSummary as bY, type OrderGroupStatus as bZ, type OrderHistory as b_, type FxQuoteStatus as ba, type FxRateResponse as bb, FxService as bc, type GetAvailableSlotsInput as bd, type GetDeliveryOptionsParams as be, type GetOrdersOptions as bf, type GetProductsOptions as bg, type GroupOrderInfo as bh, type IframeToParentMessage as bi, InventoryService as bj, LINK_MUTATION as bk, LINK_QUERY as bl, type LifecyclePhase as bm, type LineItem as bn, type LineType as bo, type LinkData as bp, type LinkEnrollResult as bq, LinkService as br, type LinkSession as bs, type LinkStatusResult as bt, type LiteBootstrap as bu, type LiteDayHours as bv, type LiteHoursRange as bw, LiteService as bx, type Location as by, type LocationBooking as bz, type ActivityRecommendation as c, type RevokeSessionResult as c$, type OrderLineStatus as c0, type OrderLocationInfo as c1, type OrderPaymentEvent as c2, type OrderPricingView as c3, OrderQueries as c4, type OrderSplitDetail as c5, type OrderStaffInfo as c6, type OrderStatus as c7, type OrderTimestampsDTO as c8, type OrderType as c9, type QuoteUiMessage as cA, type ReadRequestOptions as cB, type RefreshQuoteInput as cC, type RefreshQuoteResult as cD, type RefundOrderInput as cE, type RelatedCandidate as cF, type RelatedProduct as cG, type RelatedProductsEnrichment as cH, type RelationType as cI, type ReminderMethod as cJ, type ReminderSettings as cK, type ReorderResult as cL, type RequestContext as cM, type RequestErrorEvent as cN, type RequestOptions as cO, type RequestOtpInput as cP, type RequestSource as cQ, type RequestStartEvent as cR, type RequestSuccessEvent as cS, type RescheduleBookingInput as cT, type RescheduleBookingResult as cU, type RescheduleHistoryRecord as cV, type ResourceAssignment as cW, type ResourceInfo as cX, type Result as cY, type RetryEvent as cZ, type RevokeAllSessionsResult as c_, type Origin as ca, type OriginActor as cb, type OriginChannel as cc, type OtpResult as cd, PAYMENT_METHOD as ce, PAYMENT_MUTATION as cf, PAYMENT_STATE as cg, PICKUP_TIME_TYPE as ch, type ParentToIframeMessage as ci, type PaymentInfoDTO as cj, type PaymentMethodInfo as ck, type PaymentState as cl, type PickupTime as cm, type PickupTimeType as cn, type PlaceDetailsResponse as co, PlacesService as cp, type PriceQuote as cq, type PricingOverrides as cr, type ProcessAndResolveOptions as cs, type ProcessCheckoutOptions as ct, type ProcessCheckoutResult as cu, type ProviderResolutionSource as cv, type QuoteBundleSelectionInput as cw, type QuoteCompositeSelectionInput as cx, type QuoteDynamicBuckets as cy, type QuoteStatus as cz, type ActivityRecommendationsResponse as d, type Room as d0, type SchedulingMetadata as d1, type SchedulingResult as d2, SchedulingService as d3, type SenderType as d4, type Service as d5, type ServiceAvailabilityParams as d6, type ServiceAvailabilityResult as d7, type ServiceCharge as d8, type ServiceNotes as d9, type UpdateOrderStatusInput as dA, type UpdateProfileInput as dB, type UploadInitResponse as dC, type UploadResult as dD, UploadService as dE, type VerifyOtpInput as dF, chatMessageCards as dG, combine as dH, combineObject as dI, createCimplifyClient as dJ, createElements as dK, err as dL, flatMap as dM, fromPromise as dN, getOrElse as dO, isErr as dP, isOk as dQ, mapError as dR, mapResult as dS, ok as dT, toNullable as dU, tryCatch as dV, unwrap as dW, type ServiceScheduleRequest as da, type ServiceStatus as db, type SessionActivityData as dc, type SessionChangeEvent as dd, type SessionMessage as de, type SlotResourceInfo as df, type SlotStaffInfo as dg, type Staff as dh, type StaffAssignment as di, type StaffRole as dj, type StaffScheduleItem as dk, type StockLevel as dl, type StockStatus as dm, type StoreCreditBalance as dn, StoreCreditQueries as dp, type StorefrontBootstrap as dq, SubscriptionService as dr, SupportService as ds, type Table as dt, type TimeRange as du, type TimeRanges as dv, type TimeSlot as dw, type TrackCategoryViewOptions as dx, type TrackProductViewOptions as dy, type UpdateAddressInput as dz, ActivityService as e, type ActivityStateResponse as f, type AddressData as g, type AddressInfo as h, type AmountToPay as i, type AuthResponse as j, AuthService as k, type AuthStatus as l, type AuthenticatedCustomer as m, type AuthenticatedData as n, type AutocompletePrediction as o, type AutocompleteResponse as p, type AvailabilityResult as q, type AvailableSlot as r, type BookingModificationType as s, type BookingStatus as t, type BookingWithDetails as u, type BufferTimes as v, type Business as w, type BusinessDetailsDTO as x, type BusinessHours as y, type BusinessPreferences as z };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { aO as Money, ad as CurrencyCode, aX as PricePathTaxInfo, aZ as Product, bb as ProductWithDetails, be as QuantityPricingTier } from './product-
|
|
2
|
-
import { P as ProductWithPrice } from './price-
|
|
3
|
-
import { b as PaymentErrorDetails, g as PaymentResponse, i as PaymentStatusResponse } from './payment-
|
|
1
|
+
import { aO as Money, ad as CurrencyCode, aX as PricePathTaxInfo, aZ as Product, bb as ProductWithDetails, be as QuantityPricingTier } from './product-DZX4QuKS.js';
|
|
2
|
+
import { P as ProductWithPrice } from './price-DtfP_Xfq.js';
|
|
3
|
+
import { b as PaymentErrorDetails, g as PaymentResponse, i as PaymentStatusResponse } from './payment-BX7ccIKY.js';
|
|
4
4
|
import { CountryCode } from 'libphonenumber-js';
|
|
5
5
|
|
|
6
6
|
declare const CURRENCY_SYMBOLS: Record<string, string>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { aO as Money, ad as CurrencyCode, aX as PricePathTaxInfo, aZ as Product, bb as ProductWithDetails, be as QuantityPricingTier } from './product-
|
|
2
|
-
import { P as ProductWithPrice } from './price-
|
|
3
|
-
import { b as PaymentErrorDetails, g as PaymentResponse, i as PaymentStatusResponse } from './payment-
|
|
1
|
+
import { aO as Money, ad as CurrencyCode, aX as PricePathTaxInfo, aZ as Product, bb as ProductWithDetails, be as QuantityPricingTier } from './product-DZX4QuKS.mjs';
|
|
2
|
+
import { P as ProductWithPrice } from './price-arl_4Rzn.mjs';
|
|
3
|
+
import { b as PaymentErrorDetails, g as PaymentResponse, i as PaymentStatusResponse } from './payment-5d8FTA1q.mjs';
|
|
4
4
|
import { CountryCode } from 'libphonenumber-js';
|
|
5
5
|
|
|
6
6
|
declare const CURRENCY_SYMBOLS: Record<string, string>;
|
package/dist/index.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { A as AUTHORIZATION_TYPE, a as AUTH_MUTATION, b as AbortablePromise, c as ActivityRecommendation, d as ActivityRecommendationsResponse, e as ActivityService, f as ActivityStateResponse, g as AddressData, h as AddressInfo, i as AmountToPay, j as AuthResponse, k as AuthService, l as AuthStatus, m as AuthenticatedCustomer, n as AuthenticatedData, o as AutocompletePrediction, p as AutocompleteResponse, q as AvailabilityResult, r as AvailableSlot, B as Booking, s as BookingModificationType, t as BookingStatus, u as BookingWithDetails, v as BufferTimes, w as Business, x as BusinessDetailsDTO, y as BusinessHours, z as BusinessPreferences, C as BusinessService, D as BusinessSettings, E as BusinessWithLocations, F as CHECKOUT_MODE, G as CHECKOUT_MUTATION, H as CHECKOUT_STEP, I as CONTACT_TYPE, J as CacheOptions, K as CancelBookingInput, L as CancelBookingResult, M as CancelOrderInput, N as CancellationPolicy, O as CartOperations, P as CatalogueQueries, Q as CatalogueResult, R as CatalogueSnapshot, S as CategoryInfo, T as ChatAttachment, U as ChatConversation, V as ChatConversationResponse, W as ChatMessage, X as
|
|
2
|
-
import { bb as ProductWithDetails, j as ApiError } from './product-
|
|
3
|
-
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 AddressValue, i as AdjustmentType, k as AppliedDiscount, l as AttributeAppliesTo, m as AttributeType, n as AttributeValidationRules, o as AttributeVisibility, B as BOUNDARY_KIND, p as BenefitType, q as BillingFrequency, r as BillingMarkupType, s as BillingPlanType, t as BoundaryKind, u as Bundle, v as BundleComponentData, w as BundleComponentInfo, x as BundleComponentVariantView, y as BundleComponentView, z as BundlePriceType, C as BundleProduct, D as BundleSelectionData, E as BundleSelectionInput, F as BundleStoredSelection, G as BundleSummary, H as BundleWithDetails, I as Cart, J as CartAddOn, K as CartChannel, L as CartItem, M as CartItemDetails, N as CartMutationResult, O as CartNotice, P as CartStatus, Q as CartSummary, R as CartTotals, S as Category, T as CategorySummary, U as ChosenPrice, V as CimplifyError, W as Collection, X as CollectionProduct, Y as CollectionSummary, Z as ComponentGroup, _ as ComponentGroupWithComponents, $ as ComponentPriceBreakdown, a0 as ComponentSchedulingData, a1 as ComponentSelectionInput, a2 as ComponentSourceType, a3 as Composite, a4 as CompositeComponent, a5 as CompositeComponentView, a6 as CompositeGroupView, a7 as CompositePriceBreakdown, a8 as CompositePriceResult, a9 as CompositePricingMode, aa as CompositeSelectionData, a1 as CompositeSelectionInput, ab as CompositeStoredSelection, ac as CompositeWithDetails, ad as CurrencyCode, ae as CustomAttributeDefinition, af as CustomAttributeValue, ag as CustomerInputValue, ah as DURATION_UNIT, ai as DateRangeValue, aj as Deal, ak as DealBenefitType, al as DepositType, am as DigitalProductType, an as DiscountBreakdown, ao as DiscountDetails, ap as DiscountValidation, aq as DisplayAddOn, ar as DisplayAddOnOption, as as DisplayCart, at as DisplayCartItem, au as DisplayMode, av as DurationUnit, aw as ERROR_HINTS, ax as EligiblePlansQuery, ay as ErrorCode, az as ErrorCodeType, aA as ErrorHint, aB as FacetValue, aC as FormattedPlanOption, aD as GroupPricingBehavior, aE as INPUT_FIELD_TYPE, aF as IdempotencyMismatchError, aG as InputFieldType, aH as InputFieldValidation, aI as InventoryType, aJ as KnowledgeArticle, aK as LineConfiguration, aL as LocationProductPrice, aM as LocationValue, aN as MeasurementValue, aO as Money, aP as PRODUCT_TYPE, aQ as Pagination, aR as PaginationParams, aS as PhoneValue, aT as Price, aU as PriceAdjustment, aV as PriceDecisionPath, aW as PriceEntryType, aX as PricePathTaxInfo, aY as PriceSource, aZ as Product, a_ as ProductAddOn, a$ as ProductAvailability, b0 as ProductAvailabilityNow, b1 as ProductBillingPlan, b2 as ProductDealInfo, b3 as ProductInputField, b4 as ProductProperty, b5 as ProductRenderHint, b6 as ProductTaxonomy, b7 as ProductTimeProfile, b8 as ProductType, b9 as ProductVariant, ba as ProductVariantValue, bc as PropertyFacet, bd as PropertySource, be as QuantityPricingTier, bf as RENDER_HINT, bg as RelatedProductView, bh as SaleCapInfo, bi as SaleInfo, bj as SalesChannel, bk as SchedulingMode, bl as SelectedAddOnOption, bm as SemanticKind, bn as SignatureValue, bo as Subscription, bp as SubscriptionInvoice, bq as SubscriptionItem, br as SubscriptionStatus, bs as SubscriptionWithDetails, bt as Tag, bu as TagsResponse, bv as TaxPathComponent, bw as TaxonomyAttributeTemplate, bx as TaxonomyWithChildren, by as UICart, bz as UICartBusiness, bA as UICartCustomer, bB as UICartLocation, bC as UICartPricing, bD as UpcomingSale, bE as UpdateCartItemInput, bF as VariantAxis, bG as VariantAxisSelection, bH as VariantAxisValue, bI as VariantAxisValueView, bJ as VariantAxisView, bK as VariantAxisWithValues, bL as VariantDetails, bM as VariantDetailsDTO, bN as VariantDisplayAttribute, bO as VariantLocationAvailability, bP as VariantStrategy, bQ as VariantView, bR as ZERO, bT as currencyCode, bU as enrichError, bV as getErrorHint, bW as isCimplifyError, bX as isIdempotencyMismatchError, bY as isQuoteConflictRequiringConsent, bZ as isQuoteError, b_ as isRetryableError, b$ as isSupportedCurrency, c0 as money, c1 as moneyFromNumber } from './product-
|
|
4
|
-
export { C as CURRENCY_SYMBOLS, M as MOBILE_MONEY_PROVIDERS, c as categorizePaymentError, d as detectMobileMoneyProvider, f as formatMoney, a as formatNumberCompact, b as formatPrice, e as formatPriceAdjustment, g as formatPriceCompact, h as formatPriceRange, i as formatPriceWithTax, j as formatProductPrice, k as getBasePrice, l as getCurrencySymbol, m as getDiscountPercentage, n as getDisplayPrice, o as getMarkupPercentage, p as getPriceRange, q as getProductCurrency, r as getTaxAmount, s as getUnitPriceAtQuantity, t as hasTaxInfo, u as isOnSale, v as isPaymentStatusFailure, w as isPaymentStatusRequiresAction, x as isPaymentStatusSuccess, y as isTaxInclusive, z as isValidPhoneForContext, A as normalizePaymentResponse, B as normalizePhoneToE164, D as normalizeStatusResponse, E as parsePrice, F as resolvePhoneCountryCode } from './index-
|
|
1
|
+
export { A as AUTHORIZATION_TYPE, a as AUTH_MUTATION, b as AbortablePromise, c as ActivityRecommendation, d as ActivityRecommendationsResponse, e as ActivityService, f as ActivityStateResponse, g as AddressData, h as AddressInfo, i as AmountToPay, j as AuthResponse, k as AuthService, l as AuthStatus, m as AuthenticatedCustomer, n as AuthenticatedData, o as AutocompletePrediction, p as AutocompleteResponse, q as AvailabilityResult, r as AvailableSlot, B as Booking, s as BookingModificationType, t as BookingStatus, u as BookingWithDetails, v as BufferTimes, w as Business, x as BusinessDetailsDTO, y as BusinessHours, z as BusinessPreferences, C as BusinessService, D as BusinessSettings, E as BusinessWithLocations, F as CHECKOUT_MODE, G as CHECKOUT_MUTATION, H as CHECKOUT_STEP, I as CONTACT_TYPE, J as CacheOptions, K as CancelBookingInput, L as CancelBookingResult, M as CancelOrderInput, N as CancellationPolicy, O as CartOperations, P as CatalogueQueries, Q as CatalogueResult, R as CatalogueSnapshot, S as CategoryInfo, T as ChatAttachment, U as ChatConversation, V as ChatConversationResponse, W as ChatMessage, X as ChatReplyCard, Y as ChatReplyContext, Z as ChatUploadAttachment, _ as ChatWidgetStarter, $ as CheckSlotAvailabilityInput, a0 as CheckSlotAvailabilityResult, a1 as CheckoutAddressInfo, a2 as CheckoutCartData, a3 as CheckoutCartItem, a4 as CheckoutCustomerInfo, a5 as CheckoutFormData, a6 as CheckoutInput, a7 as CheckoutMode, ab as CheckoutOperations, a8 as CheckoutOrderType, a9 as CheckoutPaymentMethod, aa as CheckoutResult, ab as CheckoutService, ac as CheckoutStatus, ad as CheckoutStatusContext, ae as CheckoutStep, af as CimplifyClient, ag as CimplifyConfig, ah as CimplifyElement, ai as CimplifyElements, aj as ContactType, ak as ContentType, al as CreateAddressInput, am as CreateMobileMoneyInput, an as Customer, ao as CustomerAddress, ap as CustomerBooking, aq as CustomerBookingServiceItem, ar as CustomerLinkPreferences, as as CustomerMobileMoney, at as CustomerServicePreferences, au as DEFAULT_COUNTRY, av as DEFAULT_CURRENCY, aw as DEVICE_TYPE, ax as DayAvailability, ay as DeliveryFeeDetails, az as DeliveryFeeResponse, aA as DeliveryOption, aB as DeliveryOptionsResponse, aC as DeliveryService, aD as DepositResult, aE as DeviceType, aF as DismissMessageResponse, aG as ELEMENTS_AUTH_CONTACT_TYPES, aH as ELEMENTS_AUTH_MODES, aI as ELEMENTS_AUTH_PROMPTS, aJ as ELEMENT_TYPES, aK as EVENT_TYPES, aL as ElementAppearance, aM as ElementEventHandler, aN as ElementEventType, aO as ElementOptions, aP as ElementType, aQ as ElementsAuthContactType, aR as ElementsAuthMode, aS as ElementsAuthOptions, aT as ElementsAuthPrompt, aU as ElementsCheckoutData, aV as ElementsCheckoutResult, aW as ElementsCustomerInfo, aX as ElementsOptions, aY as EnrichedOrder, aZ as EnrichedOrderItem, a_ as EnrollAndLinkOrderInput, a$ as EnrollAndLinkOrderResult, b0 as EnrollmentData, b1 as Err, b2 as FeeBearerType, b3 as FetchQuoteInput, b4 as FulfillmentLink, b5 as FulfillmentStatus, b6 as FulfillmentSummaryDTO, b7 as FulfillmentType, b8 as FxQuote, b9 as FxQuoteRequest, ba as FxQuoteStatus, bb as FxRateResponse, bc as FxService, bd as GetAvailableSlotsInput, be as GetDeliveryOptionsParams, bf as GetOrdersOptions, bg as GetProductsOptions, bh as GroupOrderInfo, bi as IframeToParentMessage, bj as InventoryService, bk as LINK_MUTATION, bl as LINK_QUERY, bm as LifecyclePhase, bn as LineItem, bo as LineType, bp as LinkData, bq as LinkEnrollResult, br as LinkService, bs as LinkSession, bt as LinkStatusResult, bu as LiteBootstrap, bv as LiteDayHours, bw as LiteHoursRange, bx as LiteService, by as Location, bz as LocationBooking, bA as LocationTaxBehavior, bB as LocationTaxOverrides, bC as LocationTimeProfile, bD as LocationWithDetails, bE as MESSAGE_TYPES, bF as MOBILE_MONEY_PROVIDER, bG as MobileMoneyData, bH as MobileMoneyDetails, bI as MobileMoneyProvider, bJ as NextAction, bK as ORDER_MUTATION, bL as ORDER_TYPE, bM as ObservabilityHooks, bN as Ok, bO as Order, bP as OrderCustomerInfo, bQ as OrderDiscountInfo, bR as OrderFilter, bS as OrderFulfillmentSummary, bT as OrderGroup, bU as OrderGroupDetails, bV as OrderGroupPayment, bW as OrderGroupPaymentState, bX as OrderGroupPaymentStatus, bY as OrderGroupPaymentSummary, bZ as OrderGroupStatus, b_ as OrderHistory, b$ as OrderLineState, c0 as OrderLineStatus, c1 as OrderLocationInfo, c2 as OrderPaymentEvent, c3 as OrderPricingView, c4 as OrderQueries, c5 as OrderSplitDetail, c6 as OrderStaffInfo, c7 as OrderStatus, c8 as OrderTimestampsDTO, c9 as OrderType, ca as Origin, cb as OriginActor, cc as OriginChannel, cd as OtpResult, ce as PAYMENT_METHOD, cf as PAYMENT_MUTATION, cg as PAYMENT_STATE, ch as PICKUP_TIME_TYPE, ci as ParentToIframeMessage, cj as PaymentInfoDTO, ck as PaymentMethodInfo, cl as PaymentState, cm as PickupTime, cn as PickupTimeType, co as PlaceDetailsResponse, cp as PlacesService, cq as PriceQuote, cr as PricingOverrides, cs as ProcessAndResolveOptions, ct as ProcessCheckoutOptions, cu as ProcessCheckoutResult, cv as ProviderResolutionSource, cw as QuoteBundleSelectionInput, cx as QuoteCompositeSelectionInput, cy as QuoteDynamicBuckets, cz as QuoteStatus, cA as QuoteUiMessage, cB as ReadRequestOptions, cC as RefreshQuoteInput, cD as RefreshQuoteResult, cE as RefundOrderInput, cF as RelatedCandidate, cG as RelatedProduct, cH as RelatedProductsEnrichment, cI as RelationType, cJ as ReminderMethod, cK as ReminderSettings, cL as ReorderResult, cM as RequestContext, cN as RequestErrorEvent, cO as RequestOptions, cP as RequestOtpInput, cQ as RequestSource, cR as RequestStartEvent, cS as RequestSuccessEvent, cT as RescheduleBookingInput, cU as RescheduleBookingResult, cV as RescheduleHistoryRecord, cW as ResourceAssignment, cX as ResourceInfo, cY as Result, cZ as RetryEvent, c_ as RevokeAllSessionsResult, c$ as RevokeSessionResult, d0 as Room, d1 as SchedulingMetadata, d2 as SchedulingResult, d3 as SchedulingService, d4 as SenderType, d5 as Service, d6 as ServiceAvailabilityParams, d7 as ServiceAvailabilityResult, d8 as ServiceCharge, d9 as ServiceNotes, da as ServiceScheduleRequest, db as ServiceStatus, dc as SessionActivityData, dd as SessionChangeEvent, de as SessionMessage, df as SlotResourceInfo, dg as SlotStaffInfo, dh as Staff, di as StaffAssignment, dj as StaffRole, dk as StaffScheduleItem, dl as StockLevel, dm as StockStatus, dn as StoreCreditBalance, dp as StoreCreditQueries, dq as StorefrontBootstrap, dr as SubscriptionService, ds as SupportService, dt as Table, du as TimeRange, dv as TimeRanges, dw as TimeSlot, dx as TrackCategoryViewOptions, dy as TrackProductViewOptions, dz as UpdateAddressInput, dA as UpdateOrderStatusInput, dB as UpdateProfileInput, dC as UploadInitResponse, dD as UploadResult, dE as UploadService, dF as VerifyOtpInput, dG as chatMessageCards, dH as combine, dI as combineObject, dJ as createCimplifyClient, dK as createElements, dL as err, dM as flatMap, dN as fromPromise, dO as getOrElse, dP as isErr, dQ as isOk, dR as mapError, dS as mapResult, dT as ok, dU as toNullable, dV as tryCatch, dW as unwrap } from './client-YiSelM7x.mjs';
|
|
2
|
+
import { bb as ProductWithDetails, j as ApiError } from './product-DZX4QuKS.mjs';
|
|
3
|
+
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 AddressValue, i as AdjustmentType, k as AppliedDiscount, l as AttributeAppliesTo, m as AttributeType, n as AttributeValidationRules, o as AttributeVisibility, B as BOUNDARY_KIND, p as BenefitType, q as BillingFrequency, r as BillingMarkupType, s as BillingPlanType, t as BoundaryKind, u as Bundle, v as BundleComponentData, w as BundleComponentInfo, x as BundleComponentVariantView, y as BundleComponentView, z as BundlePriceType, C as BundleProduct, D as BundleSelectionData, E as BundleSelectionInput, F as BundleStoredSelection, G as BundleSummary, H as BundleWithDetails, I as Cart, J as CartAddOn, K as CartChannel, L as CartItem, M as CartItemDetails, N as CartMutationResult, O as CartNotice, P as CartStatus, Q as CartSummary, R as CartTotals, S as Category, T as CategorySummary, U as ChosenPrice, V as CimplifyError, W as Collection, X as CollectionProduct, Y as CollectionSummary, Z as ComponentGroup, _ as ComponentGroupWithComponents, $ as ComponentPriceBreakdown, a0 as ComponentSchedulingData, a1 as ComponentSelectionInput, a2 as ComponentSourceType, a3 as Composite, a4 as CompositeComponent, a5 as CompositeComponentView, a6 as CompositeGroupView, a7 as CompositePriceBreakdown, a8 as CompositePriceResult, a9 as CompositePricingMode, aa as CompositeSelectionData, a1 as CompositeSelectionInput, ab as CompositeStoredSelection, ac as CompositeWithDetails, ad as CurrencyCode, ae as CustomAttributeDefinition, af as CustomAttributeValue, ag as CustomerInputValue, ah as DURATION_UNIT, ai as DateRangeValue, aj as Deal, ak as DealBenefitType, al as DepositType, am as DigitalProductType, an as DiscountBreakdown, ao as DiscountDetails, ap as DiscountValidation, aq as DisplayAddOn, ar as DisplayAddOnOption, as as DisplayCart, at as DisplayCartItem, au as DisplayMode, av as DurationUnit, aw as ERROR_HINTS, ax as EligiblePlansQuery, ay as ErrorCode, az as ErrorCodeType, aA as ErrorHint, aB as FacetValue, aC as FormattedPlanOption, aD as GroupPricingBehavior, aE as INPUT_FIELD_TYPE, aF as IdempotencyMismatchError, aG as InputFieldType, aH as InputFieldValidation, aI as InventoryType, aJ as KnowledgeArticle, aK as LineConfiguration, aL as LocationProductPrice, aM as LocationValue, aN as MeasurementValue, aO as Money, aP as PRODUCT_TYPE, aQ as Pagination, aR as PaginationParams, aS as PhoneValue, aT as Price, aU as PriceAdjustment, aV as PriceDecisionPath, aW as PriceEntryType, aX as PricePathTaxInfo, aY as PriceSource, aZ as Product, a_ as ProductAddOn, a$ as ProductAvailability, b0 as ProductAvailabilityNow, b1 as ProductBillingPlan, b2 as ProductDealInfo, b3 as ProductInputField, b4 as ProductProperty, b5 as ProductRenderHint, b6 as ProductTaxonomy, b7 as ProductTimeProfile, b8 as ProductType, b9 as ProductVariant, ba as ProductVariantValue, bc as PropertyFacet, bd as PropertySource, be as QuantityPricingTier, bf as RENDER_HINT, bg as RelatedProductView, bh as SaleCapInfo, bi as SaleInfo, bj as SalesChannel, bk as SchedulingMode, bl as SelectedAddOnOption, bm as SemanticKind, bn as SignatureValue, bo as Subscription, bp as SubscriptionInvoice, bq as SubscriptionItem, br as SubscriptionStatus, bs as SubscriptionWithDetails, bt as Tag, bu as TagsResponse, bv as TaxPathComponent, bw as TaxonomyAttributeTemplate, bx as TaxonomyWithChildren, by as UICart, bz as UICartBusiness, bA as UICartCustomer, bB as UICartLocation, bC as UICartPricing, bD as UpcomingSale, bE as UpdateCartItemInput, bF as VariantAxis, bG as VariantAxisSelection, bH as VariantAxisValue, bI as VariantAxisValueView, bJ as VariantAxisView, bK as VariantAxisWithValues, bL as VariantDetails, bM as VariantDetailsDTO, bN as VariantDisplayAttribute, bO as VariantLocationAvailability, bP as VariantStrategy, bQ as VariantView, bR as ZERO, bT as currencyCode, bU as enrichError, bV as getErrorHint, bW as isCimplifyError, bX as isIdempotencyMismatchError, bY as isQuoteConflictRequiringConsent, bZ as isQuoteError, b_ as isRetryableError, b$ as isSupportedCurrency, c0 as money, c1 as moneyFromNumber } from './product-DZX4QuKS.mjs';
|
|
4
|
+
export { C as CURRENCY_SYMBOLS, M as MOBILE_MONEY_PROVIDERS, c as categorizePaymentError, d as detectMobileMoneyProvider, f as formatMoney, a as formatNumberCompact, b as formatPrice, e as formatPriceAdjustment, g as formatPriceCompact, h as formatPriceRange, i as formatPriceWithTax, j as formatProductPrice, k as getBasePrice, l as getCurrencySymbol, m as getDiscountPercentage, n as getDisplayPrice, o as getMarkupPercentage, p as getPriceRange, q as getProductCurrency, r as getTaxAmount, s as getUnitPriceAtQuantity, t as hasTaxInfo, u as isOnSale, v as isPaymentStatusFailure, w as isPaymentStatusRequiresAction, x as isPaymentStatusSuccess, y as isTaxInclusive, z as isValidPhoneForContext, A as normalizePaymentResponse, B as normalizePhoneToE164, D as normalizeStatusResponse, E as parsePrice, F as resolvePhoneCountryCode } from './index-DD9z396M.mjs';
|
|
5
5
|
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';
|
|
6
|
-
export { A as AddressAuthorizationData, a as AuthorizationType, I as InitializePaymentResult, P as Payment, b as PaymentErrorDetails, c as PaymentMethod, d as PaymentMethodType, e as PaymentProcessingState, f as PaymentProvider, g as PaymentResponse, h as PaymentStatus, i as PaymentStatusResponse, S as SubmitAuthorizationInput } from './payment-
|
|
7
|
-
export { F as FormatCompactOptions, a as FormatPriceOptions, P as ProductWithPrice } from './price-
|
|
6
|
+
export { A as AddressAuthorizationData, a as AuthorizationType, I as InitializePaymentResult, P as Payment, b as PaymentErrorDetails, c as PaymentMethod, d as PaymentMethodType, e as PaymentProcessingState, f as PaymentProvider, g as PaymentResponse, h as PaymentStatus, i as PaymentStatusResponse, S as SubmitAuthorizationInput } from './payment-5d8FTA1q.mjs';
|
|
7
|
+
export { F as FormatCompactOptions, a as FormatPriceOptions, P as ProductWithPrice } from './price-arl_4Rzn.mjs';
|
|
8
8
|
export { generateIdempotencyKey } from './advanced.mjs';
|
|
9
9
|
import 'libphonenumber-js';
|
|
10
10
|
|