@cimplify/sdk 0.29.0 → 0.31.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 +2 -2
- package/dist/advanced.d.ts +2 -2
- package/dist/{chunk-REXW2PET.mjs → chunk-46BDUSJX.mjs} +46 -1
- package/dist/{chunk-R4AKAGZQ.js → chunk-6HCBOIZ4.js} +46 -0
- package/dist/{index-Cjfczg2W.d.ts → index-BHVJgyqM.d.ts} +2 -2
- package/dist/{index-DijjnO-u.d.mts → index-BpyFcJVv.d.ts} +92 -15
- package/dist/{index-D4-b5OZO.d.mts → index-D4oNCc37.d.mts} +2 -2
- package/dist/{index-DwvzjdGi.d.ts → index-m8zGQUda.d.mts} +92 -15
- package/dist/index.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +17 -13
- package/dist/index.mjs +1 -1
- package/dist/{payment-BeLHpQMo.d.ts → payment-DnU_eLuT.d.mts} +19 -3
- package/dist/{payment-BeLHpQMo.d.mts → payment-DnU_eLuT.d.ts} +19 -3
- package/dist/{price-Dvl1p9AM.d.mts → price-D-hso3np.d.mts} +1 -1
- package/dist/{price-C6gfys5B.d.ts → price-DUVmRTaz.d.ts} +1 -1
- package/dist/react.d.mts +54 -4
- package/dist/react.d.ts +54 -4
- package/dist/react.js +741 -69
- package/dist/react.mjs +696 -26
- package/dist/styles.css +1 -1
- package/dist/utils.d.mts +3 -3
- package/dist/utils.d.ts +3 -3
- package/package.json +1 -1
- package/registry/chat-widget.json +15 -0
- package/registry/index.json +9 -0
- package/registry/product-customizer.json +1 -1
- package/registry/schedule-service-card.json +1 -1
- package/registry/service-product-layout.json +1 -1
- package/registry/subscription-card.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ak as Category, O as Product, ag as AddOnWithOptions, d as Pagination, h as CimplifyError, a5 as ProductWithDetails, a7 as ProductVariant, a9 as VariantAxis, ae as VariantAxisSelection, af as AddOn, am as Collection, ar as BundleSummary, aq as Bundle, aD as Composite, aK as ComponentSelectionInput, aL as CompositePriceResult, C as ChosenPrice, aS as ProductTaxonomy, aT as TaxonomyWithChildren, bY as EligiblePlansQuery, bX as ProductBillingPlan, aR as ProductTimeProfile, aU as ProductAvailabilityNow, aW as Deal, aX as ProductDealInfo, aY as DiscountValidation, a_ as TagsResponse, F as CustomAttributeDefinition, G as CustomAttributeValue, K as PropertyFacet, T as TaxonomyAttributeTemplate, N as KnowledgeArticle, bC as UICart, bn as Cart, bo as CartItem, bG as CartSummary, bE as AddToCartInput, bF as UpdateCartItemInput, ba as DiscountDetails, M as Money, a as CurrencyCode, bm as LineConfiguration, bL as AuthorizationType, bN as PaymentMethod, bP as InitializePaymentResult, bT as SubmitAuthorizationInput, bR as PaymentStatusResponse, S as SchedulingMode, t as DurationUnit, b$ as Subscription, c2 as SubscriptionWithDetails } from './payment-DnU_eLuT.mjs';
|
|
2
2
|
|
|
3
3
|
interface RequestContext {
|
|
4
4
|
method: "GET" | "POST" | "PATCH" | "DELETE";
|
|
@@ -292,7 +292,7 @@ type OrderStatus = "pending" | "created" | "confirmed" | "in_preparation" | "rea
|
|
|
292
292
|
type PaymentState = "not_paid" | "paid" | "partially_refunded" | "refunded";
|
|
293
293
|
type OrderChannel = "qr" | "taker" | "staff" | "web" | "dashboard" | "tap" | "chat";
|
|
294
294
|
type LineType = "product" | "service" | "bundle" | "composite" | "digital";
|
|
295
|
-
type OrderLineState = "pending" | "in_preparation" | "ready" | "served" | "completed" | {
|
|
295
|
+
type OrderLineState = "pending" | "in_preparation" | "checked_out" | "ready" | "served" | "completed" | {
|
|
296
296
|
partially_served: {
|
|
297
297
|
served_quantity: number;
|
|
298
298
|
};
|
|
@@ -309,7 +309,7 @@ interface OrderLineStatus {
|
|
|
309
309
|
last_modified: string;
|
|
310
310
|
modified_by: string;
|
|
311
311
|
}
|
|
312
|
-
type FulfillmentType = "
|
|
312
|
+
type FulfillmentType = "booking" | "shipment" | "order" | "digital";
|
|
313
313
|
type FulfillmentStatus = "pending" | "in_progress" | "completed" | "cancelled";
|
|
314
314
|
interface FulfillmentLink {
|
|
315
315
|
fulfillment_type: FulfillmentType;
|
|
@@ -527,7 +527,7 @@ interface RefundOrderInput {
|
|
|
527
527
|
amount?: Money;
|
|
528
528
|
reason?: string;
|
|
529
529
|
}
|
|
530
|
-
type ServiceStatus = "awaiting_scheduling" | "scheduled" | "deposit_paid" | "confirmed" | "in_progress" | "completed" | "rescheduled" | "no_show" | "cancelled";
|
|
530
|
+
type ServiceStatus = "awaiting_scheduling" | "scheduled" | "deposit_paid" | "confirmed" | "in_progress" | "checked_in" | "checked_out" | "overstay" | "completed" | "rescheduled" | "no_show" | "cancelled";
|
|
531
531
|
type StaffRole = "primary" | "assistant" | "specialist" | "supervisor";
|
|
532
532
|
type ReminderMethod = "sms" | "email" | "push" | "call" | "whatsapp";
|
|
533
533
|
interface CustomerServicePreferences {
|
|
@@ -557,13 +557,15 @@ interface ReminderSettings {
|
|
|
557
557
|
custom_reminder_message?: string;
|
|
558
558
|
}
|
|
559
559
|
interface CancellationPolicy {
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
560
|
+
cancellation_window_minutes: number;
|
|
561
|
+
no_show_deadline_minutes?: number;
|
|
562
|
+
cancellation_notice_days?: number;
|
|
563
|
+
no_show_fee: Money;
|
|
564
|
+
partial_refund_percentage: number;
|
|
565
|
+
max_free_reschedules: number;
|
|
566
|
+
reschedule_fee: Money;
|
|
567
|
+
early_termination_fee?: Money;
|
|
568
|
+
pro_rata_refund: boolean;
|
|
567
569
|
}
|
|
568
570
|
interface ServiceNotes {
|
|
569
571
|
preparation_notes?: string;
|
|
@@ -633,7 +635,7 @@ interface StaffScheduleItem {
|
|
|
633
635
|
service_status: ServiceStatus;
|
|
634
636
|
notes?: string;
|
|
635
637
|
}
|
|
636
|
-
interface
|
|
638
|
+
interface LocationBooking {
|
|
637
639
|
line_item_id: string;
|
|
638
640
|
order_id: string;
|
|
639
641
|
customer_name: string;
|
|
@@ -1433,6 +1435,8 @@ interface Service {
|
|
|
1433
1435
|
name: string;
|
|
1434
1436
|
description?: string;
|
|
1435
1437
|
price?: Money;
|
|
1438
|
+
scheduling_mode?: SchedulingMode;
|
|
1439
|
+
duration_value?: number;
|
|
1436
1440
|
duration_minutes: number;
|
|
1437
1441
|
duration_unit?: DurationUnit;
|
|
1438
1442
|
image_url?: string | null;
|
|
@@ -1488,7 +1492,7 @@ interface DayAvailability {
|
|
|
1488
1492
|
slots: TimeSlot[];
|
|
1489
1493
|
has_availability: boolean;
|
|
1490
1494
|
}
|
|
1491
|
-
type BookingStatus = "pending" | "confirmed" | "in_progress" | "completed" | "cancelled" | "no_show" | string;
|
|
1495
|
+
type BookingStatus = "booked" | "assigned" | "pending" | "confirmed" | "in_progress" | "checked_in" | "checked_out" | "overstay" | "completed" | "cancelled" | "no_show" | string;
|
|
1492
1496
|
interface Booking {
|
|
1493
1497
|
id: string;
|
|
1494
1498
|
service_name: string;
|
|
@@ -1570,9 +1574,10 @@ interface CancelBookingInput {
|
|
|
1570
1574
|
interface CancelBookingResult {
|
|
1571
1575
|
message: string;
|
|
1572
1576
|
}
|
|
1577
|
+
type BookingModificationType = "reschedule" | "extend" | "shorten" | "early_checkout";
|
|
1573
1578
|
interface RescheduleBookingResult {
|
|
1574
1579
|
success: boolean;
|
|
1575
|
-
|
|
1580
|
+
booking_id: string;
|
|
1576
1581
|
old_time: {
|
|
1577
1582
|
start: string;
|
|
1578
1583
|
end: string;
|
|
@@ -1596,11 +1601,33 @@ interface ServiceAvailabilityParams {
|
|
|
1596
1601
|
interface ServiceAvailabilityResult {
|
|
1597
1602
|
service_id: string;
|
|
1598
1603
|
location_id: string;
|
|
1604
|
+
scheduling_mode: SchedulingMode;
|
|
1605
|
+
duration_unit: string;
|
|
1606
|
+
duration_value: number;
|
|
1599
1607
|
start_date: string;
|
|
1600
1608
|
end_date: string;
|
|
1601
1609
|
participant_count: number;
|
|
1602
1610
|
availability: DayAvailability[];
|
|
1603
1611
|
}
|
|
1612
|
+
interface RescheduleHistoryRecord {
|
|
1613
|
+
id: string;
|
|
1614
|
+
booking_id: string;
|
|
1615
|
+
order_id: string;
|
|
1616
|
+
order_item_id?: string | null;
|
|
1617
|
+
old_start_time: string;
|
|
1618
|
+
old_end_time: string;
|
|
1619
|
+
new_start_time: string;
|
|
1620
|
+
new_end_time: string;
|
|
1621
|
+
old_staff_id?: string | null;
|
|
1622
|
+
new_staff_id?: string | null;
|
|
1623
|
+
reason?: string | null;
|
|
1624
|
+
rescheduled_by: string;
|
|
1625
|
+
rescheduled_at: string;
|
|
1626
|
+
modification_type: BookingModificationType;
|
|
1627
|
+
reschedule_type: "customer" | "business" | "system";
|
|
1628
|
+
fee_applied: string | number;
|
|
1629
|
+
metadata?: Record<string, unknown> | null;
|
|
1630
|
+
}
|
|
1604
1631
|
|
|
1605
1632
|
declare class SchedulingService {
|
|
1606
1633
|
private client;
|
|
@@ -1847,6 +1874,53 @@ declare class DeliveryService {
|
|
|
1847
1874
|
getFee(dropoffLat: number, dropoffLng: number, country?: string): Promise<Result<DeliveryFeeResponse, CimplifyError>>;
|
|
1848
1875
|
}
|
|
1849
1876
|
|
|
1877
|
+
type SenderType = "customer" | "agent" | "system" | "bot";
|
|
1878
|
+
type ContentType = "text" | "image" | "video" | "audio" | "document" | "interactive";
|
|
1879
|
+
interface ChatMessage {
|
|
1880
|
+
id: string;
|
|
1881
|
+
sender_type: SenderType;
|
|
1882
|
+
content: string;
|
|
1883
|
+
content_type: ContentType;
|
|
1884
|
+
attachments: ChatAttachment[];
|
|
1885
|
+
metadata: Record<string, unknown>;
|
|
1886
|
+
created_at: string;
|
|
1887
|
+
}
|
|
1888
|
+
interface ChatAttachment {
|
|
1889
|
+
url: string;
|
|
1890
|
+
mime_type: string | null;
|
|
1891
|
+
filename: string | null;
|
|
1892
|
+
}
|
|
1893
|
+
interface ChatConversation {
|
|
1894
|
+
id: string;
|
|
1895
|
+
status: "open" | "assigned" | "waiting" | "resolved" | "closed";
|
|
1896
|
+
ai_enabled: boolean;
|
|
1897
|
+
message_count: number;
|
|
1898
|
+
created_at: string;
|
|
1899
|
+
last_message_at: string | null;
|
|
1900
|
+
}
|
|
1901
|
+
interface ChatConversationResponse {
|
|
1902
|
+
conversation: ChatConversation;
|
|
1903
|
+
messages: ChatMessage[];
|
|
1904
|
+
}
|
|
1905
|
+
interface ChatWidgetStarter {
|
|
1906
|
+
icon?: string;
|
|
1907
|
+
text: string;
|
|
1908
|
+
}
|
|
1909
|
+
|
|
1910
|
+
declare class SupportService {
|
|
1911
|
+
private client;
|
|
1912
|
+
constructor(client: CimplifyClient);
|
|
1913
|
+
/** Open (or resume) the customer's widget conversation. */
|
|
1914
|
+
openConversation(): Promise<Result<ChatConversationResponse, CimplifyError>>;
|
|
1915
|
+
/** Send a message in the active conversation. */
|
|
1916
|
+
sendMessage(content: string): Promise<Result<ChatMessage, CimplifyError>>;
|
|
1917
|
+
/** Poll for new messages since the given cursor. */
|
|
1918
|
+
getMessages(options?: {
|
|
1919
|
+
after?: string;
|
|
1920
|
+
limit?: number;
|
|
1921
|
+
}): Promise<Result<ChatMessage[], CimplifyError>>;
|
|
1922
|
+
}
|
|
1923
|
+
|
|
1850
1924
|
type OrderType = "delivery" | "pickup" | "dine_in";
|
|
1851
1925
|
declare const ELEMENT_TYPES: {
|
|
1852
1926
|
readonly AUTH: "auth";
|
|
@@ -2219,6 +2293,7 @@ declare class CimplifyClient {
|
|
|
2219
2293
|
private _fx?;
|
|
2220
2294
|
private _activity?;
|
|
2221
2295
|
private _delivery?;
|
|
2296
|
+
private _support?;
|
|
2222
2297
|
constructor(config?: CimplifyConfig);
|
|
2223
2298
|
getAccessToken(): string | null;
|
|
2224
2299
|
getPublicKey(): string;
|
|
@@ -2266,8 +2341,10 @@ declare class CimplifyClient {
|
|
|
2266
2341
|
get fx(): FxService;
|
|
2267
2342
|
get activity(): ActivityService;
|
|
2268
2343
|
get delivery(): DeliveryService;
|
|
2344
|
+
get support(): SupportService;
|
|
2345
|
+
buildWsUrl(path: string): string;
|
|
2269
2346
|
elements(businessId?: string, options?: ElementsOptions): CimplifyElements;
|
|
2270
2347
|
}
|
|
2271
2348
|
declare function createCimplifyClient(config?: CimplifyConfig): CimplifyClient;
|
|
2272
2349
|
|
|
2273
|
-
export {
|
|
2350
|
+
export { type ChatConversationResponse as $, AuthService as A, BusinessService as B, CimplifyClient as C, type PlaceDetailsResponse as D, type TrackCategoryViewOptions as E, type FetchQuoteInput as F, type GetProductsOptions as G, type SessionMessage as H, InventoryService as I, type SessionActivityData as J, type ActivityStateResponse as K, LinkService as L, type ActivityRecommendation as M, type ActivityRecommendationsResponse as N, OrderQueries as O, type PriceQuote as P, type QuoteCompositeSelectionInput as Q, type RefreshQuoteInput as R, SubscriptionService as S, type TrackProductViewOptions as T, type UpdateProfileInput as U, type DismissMessageResponse as V, DeliveryService as W, type DeliveryFeeResponse as X, SupportService as Y, type ChatMessage as Z, type ChatConversation as _, type CimplifyConfig as a, fromPromise as a$, type ChatAttachment as a0, type ChatWidgetStarter as a1, type SenderType as a2, type ContentType as a3, type LiteBootstrap as a4, type TableInfo as a5, CimplifyElements as a6, CimplifyElement as a7, createElements as a8, MESSAGE_TYPES as a9, PAYMENT_STATE as aA, PICKUP_TIME_TYPE as aB, MOBILE_MONEY_PROVIDER as aC, AUTHORIZATION_TYPE as aD, DEVICE_TYPE as aE, CONTACT_TYPE as aF, LINK_QUERY as aG, LINK_MUTATION as aH, AUTH_MUTATION as aI, CHECKOUT_MUTATION as aJ, PAYMENT_MUTATION as aK, ORDER_MUTATION as aL, DEFAULT_CURRENCY as aM, DEFAULT_COUNTRY as aN, type Result as aO, type Ok as aP, type Err as aQ, ok as aR, err as aS, isOk as aT, isErr as aU, mapResult as aV, mapError as aW, flatMap as aX, getOrElse as aY, unwrap as aZ, toNullable as a_, EVENT_TYPES as aa, ELEMENT_TYPES as ab, type ElementsOptions as ac, type ElementOptions as ad, type ElementType as ae, type ElementEventType as af, type CheckoutMode as ag, type CheckoutOrderType as ah, type CheckoutPaymentMethod as ai, type CheckoutStep as aj, type CheckoutFormData as ak, type CheckoutResult as al, type NextAction as am, type ProcessCheckoutOptions as an, type ProcessCheckoutResult as ao, type ProcessAndResolveOptions as ap, type CheckoutStatus as aq, type CheckoutStatusContext as ar, type AbortablePromise as as, type MobileMoneyProvider as at, type DeviceType as au, type ContactType as av, CHECKOUT_MODE as aw, ORDER_TYPE as ax, PAYMENT_METHOD as ay, CHECKOUT_STEP as az, CatalogueQueries as b, type TimeRange as b$, tryCatch as b0, combine as b1, combineObject as b2, type CatalogueResult as b3, type CatalogueSnapshot as b4, type OrderStatus as b5, type PaymentState as b6, type OrderChannel as b7, type LineType as b8, type OrderLineState as b9, type ReminderMethod as bA, type CustomerServicePreferences as bB, type BufferTimes as bC, type ReminderSettings as bD, type CancellationPolicy as bE, type ServiceNotes as bF, type PricingOverrides as bG, type SchedulingMetadata as bH, type StaffAssignment as bI, type ResourceAssignment as bJ, type SchedulingResult as bK, type DepositResult as bL, type ServiceScheduleRequest as bM, type StaffScheduleItem as bN, type LocationBooking as bO, type ProviderResolutionSource as bP, type DeliveryFeeDetails as bQ, type RelationType as bR, type RelatedProduct as bS, type RelatedCandidate as bT, type RelatedProductsEnrichment as bU, type BusinessType as bV, type BusinessPreferences as bW, type Business as bX, type LocationTaxBehavior as bY, type LocationTaxOverrides as bZ, type Location as b_, type OrderLineStatus as ba, type FulfillmentType as bb, type FulfillmentStatus as bc, type FulfillmentLink as bd, type OrderFulfillmentSummary as be, type FeeBearerType as bf, type AmountToPay as bg, type LineItem as bh, type Order as bi, type OrderHistory as bj, type OrderGroupStatus as bk, type OrderGroupPaymentState as bl, type OrderGroupPaymentStatus as bm, type OrderGroup as bn, type OrderGroupPayment as bo, type OrderSplitDetail as bp, type OrderGroupPaymentSummary as bq, type OrderGroupDetails as br, type OrderPaymentEvent as bs, type OrderFilter as bt, type CheckoutInput as bu, type UpdateOrderStatusInput as bv, type CancelOrderInput as bw, type RefundOrderInput as bx, type ServiceStatus as by, type StaffRole as bz, createCimplifyClient as c, type CheckoutAddressInfo as c$, type TimeRanges as c0, type LocationTimeProfile as c1, type Table as c2, type Room as c3, type ServiceCharge as c4, type StorefrontBootstrap as c5, type BusinessWithLocations as c6, type LocationWithDetails as c7, type BusinessSettings as c8, type BusinessHours as c9, type ProductStock as cA, type VariantStock as cB, type LocationStock as cC, type AvailabilityResult as cD, type Customer as cE, type CustomerAddress as cF, type CustomerMobileMoney as cG, type CustomerLinkPreferences as cH, type LinkData as cI, type CreateAddressInput as cJ, type UpdateAddressInput as cK, type CreateMobileMoneyInput as cL, type EnrollmentData as cM, type AddressData as cN, type MobileMoneyData as cO, type EnrollAndLinkOrderInput as cP, type LinkStatusResult as cQ, type LinkEnrollResult as cR, type EnrollAndLinkOrderResult as cS, type LinkSession as cT, type RevokeSessionResult as cU, type RevokeAllSessionsResult as cV, type RequestOtpInput as cW, type VerifyOtpInput as cX, type AuthResponse as cY, type PickupTimeType as cZ, type PickupTime as c_, type CategoryInfo as ca, type Service as cb, type Staff as cc, type TimeSlot as cd, type SlotResourceInfo as ce, type SlotStaffInfo as cf, type AvailableSlot as cg, type DayAvailability as ch, type BookingStatus as ci, type Booking as cj, type BookingWithDetails as ck, type CustomerBookingServiceItem as cl, type CustomerBooking as cm, type GetAvailableSlotsInput as cn, type CheckSlotAvailabilityInput as co, type CheckSlotAvailabilityResult as cp, type RescheduleBookingInput as cq, type CancelBookingInput as cr, type CancelBookingResult as cs, type BookingModificationType as ct, type RescheduleBookingResult as cu, type ServiceAvailabilityParams as cv, type ServiceAvailabilityResult as cw, type RescheduleHistoryRecord as cx, type StockStatus as cy, type StockLevel as cz, type QuoteBundleSelectionInput as d, type MobileMoneyDetails as d0, type CheckoutCustomerInfo as d1, type FxQuoteRequest as d2, type FxQuote as d3, type FxRateResponse as d4, type RequestContext as d5, type RequestStartEvent as d6, type RequestSuccessEvent as d7, type RequestErrorEvent as d8, type RetryEvent as d9, type SessionChangeEvent as da, type ObservabilityHooks as db, type OrderType as dc, type ElementAppearance as dd, type AddressInfo as de, type PaymentMethodInfo as df, type AuthenticatedCustomer as dg, type ElementsCustomerInfo as dh, type AuthenticatedData as di, type ElementsCheckoutData as dj, type ElementsCheckoutResult as dk, type CheckoutCartItem as dl, type CheckoutCartData as dm, type ParentToIframeMessage as dn, type IframeToParentMessage as dp, type ElementEventHandler as dq, type QuoteStatus as e, type QuoteDynamicBuckets as f, type QuoteUiMessage as g, type RequestSource as h, type RefreshQuoteResult as i, CartOperations as j, type ReorderResult as k, CheckoutService as l, generateIdempotencyKey as m, type GetOrdersOptions as n, type AuthStatus as o, type OtpResult as p, SchedulingService as q, LiteService as r, FxService as s, ActivityService as t, UploadService as u, type UploadResult as v, type UploadInitResponse as w, PlacesService as x, type AutocompletePrediction as y, type AutocompleteResponse as z };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export {
|
|
2
|
-
import { A as ApiError } from './payment-
|
|
3
|
-
export {
|
|
4
|
-
export { C as CURRENCY_SYMBOLS, M as MOBILE_MONEY_PROVIDERS, v as categorizePaymentError, B as detectMobileMoneyProvider, c as formatMoney, d as formatNumberCompact, f as formatPrice, a as formatPriceAdjustment, b as formatPriceCompact, u as formatPriceRange, j as formatPriceWithTax, e as formatProductPrice, m as getBasePrice, k as getCurrencySymbol, o as getDiscountPercentage, l as getDisplayPrice, q as getMarkupPercentage, t as getPriceRange, r as getProductCurrency, g as getTaxAmount, s as getUnitPriceAtQuantity, h as hasTaxInfo, n as isOnSale, y as isPaymentStatusFailure, z as isPaymentStatusRequiresAction, A as isPaymentStatusSuccess, i as isTaxInclusive, F as isValidPhoneForContext, w as normalizePaymentResponse, D as normalizePhoneToE164, x as normalizeStatusResponse, p as parsePrice, E as resolvePhoneCountryCode } from './index-
|
|
1
|
+
export { aD as AUTHORIZATION_TYPE, aI as AUTH_MUTATION, as as AbortablePromise, M as ActivityRecommendation, N as ActivityRecommendationsResponse, t as ActivityService, K as ActivityStateResponse, cN as AddressData, de as AddressInfo, bg as AmountToPay, cY as AuthResponse, A as AuthService, o as AuthStatus, dg as AuthenticatedCustomer, di as AuthenticatedData, y as AutocompletePrediction, z as AutocompleteResponse, cD as AvailabilityResult, cg as AvailableSlot, cj as Booking, ct as BookingModificationType, ci as BookingStatus, ck as BookingWithDetails, bC as BufferTimes, bX as Business, c9 as BusinessHours, bW as BusinessPreferences, B as BusinessService, c8 as BusinessSettings, bV as BusinessType, c6 as BusinessWithLocations, aw as CHECKOUT_MODE, aJ as CHECKOUT_MUTATION, az as CHECKOUT_STEP, aF as CONTACT_TYPE, cr as CancelBookingInput, cs as CancelBookingResult, bw as CancelOrderInput, bE as CancellationPolicy, j as CartOperations, b as CatalogueQueries, b3 as CatalogueResult, b4 as CatalogueSnapshot, ca as CategoryInfo, a0 as ChatAttachment, _ as ChatConversation, $ as ChatConversationResponse, Z as ChatMessage, a1 as ChatWidgetStarter, co as CheckSlotAvailabilityInput, cp as CheckSlotAvailabilityResult, c$ as CheckoutAddressInfo, dm as CheckoutCartData, dl as CheckoutCartItem, d1 as CheckoutCustomerInfo, ak as CheckoutFormData, bu as CheckoutInput, ag as CheckoutMode, l as CheckoutOperations, ah as CheckoutOrderType, ai as CheckoutPaymentMethod, al as CheckoutResult, l as CheckoutService, aq as CheckoutStatus, ar as CheckoutStatusContext, aj as CheckoutStep, C as CimplifyClient, a as CimplifyConfig, a7 as CimplifyElement, a6 as CimplifyElements, av as ContactType, a3 as ContentType, cJ as CreateAddressInput, cL as CreateMobileMoneyInput, cE as Customer, cF as CustomerAddress, cm as CustomerBooking, cl as CustomerBookingServiceItem, cH as CustomerLinkPreferences, cG as CustomerMobileMoney, bB as CustomerServicePreferences, aN as DEFAULT_COUNTRY, aM as DEFAULT_CURRENCY, aE as DEVICE_TYPE, ch as DayAvailability, bQ as DeliveryFeeDetails, X as DeliveryFeeResponse, W as DeliveryService, bL as DepositResult, au as DeviceType, V as DismissMessageResponse, ab as ELEMENT_TYPES, aa as EVENT_TYPES, dd as ElementAppearance, dq as ElementEventHandler, af as ElementEventType, ad as ElementOptions, ae as ElementType, dj as ElementsCheckoutData, dk as ElementsCheckoutResult, dh as ElementsCustomerInfo, ac as ElementsOptions, cP as EnrollAndLinkOrderInput, cS as EnrollAndLinkOrderResult, cM as EnrollmentData, aQ as Err, bf as FeeBearerType, F as FetchQuoteInput, bd as FulfillmentLink, bc as FulfillmentStatus, bb as FulfillmentType, d3 as FxQuote, d2 as FxQuoteRequest, d4 as FxRateResponse, s as FxService, cn as GetAvailableSlotsInput, n as GetOrdersOptions, G as GetProductsOptions, dp as IframeToParentMessage, I as InventoryService, aH as LINK_MUTATION, aG as LINK_QUERY, bh as LineItem, b8 as LineType, cI as LinkData, cR as LinkEnrollResult, L as LinkService, cT as LinkSession, cQ as LinkStatusResult, a4 as LiteBootstrap, r as LiteService, b_ as Location, bO as LocationBooking, cC as LocationStock, bY as LocationTaxBehavior, bZ as LocationTaxOverrides, c1 as LocationTimeProfile, c7 as LocationWithDetails, a9 as MESSAGE_TYPES, aC as MOBILE_MONEY_PROVIDER, cO as MobileMoneyData, d0 as MobileMoneyDetails, at as MobileMoneyProvider, am as NextAction, aL as ORDER_MUTATION, ax as ORDER_TYPE, db as ObservabilityHooks, aP as Ok, bi as Order, b7 as OrderChannel, bt as OrderFilter, be as OrderFulfillmentSummary, bn as OrderGroup, br as OrderGroupDetails, bo as OrderGroupPayment, bl as OrderGroupPaymentState, bm as OrderGroupPaymentStatus, bq as OrderGroupPaymentSummary, bk as OrderGroupStatus, bj as OrderHistory, b9 as OrderLineState, ba as OrderLineStatus, bs as OrderPaymentEvent, O as OrderQueries, bp as OrderSplitDetail, b5 as OrderStatus, dc as OrderType, p as OtpResult, ay as PAYMENT_METHOD, aK as PAYMENT_MUTATION, aA as PAYMENT_STATE, aB as PICKUP_TIME_TYPE, dn as ParentToIframeMessage, df as PaymentMethodInfo, b6 as PaymentState, c_ as PickupTime, cZ as PickupTimeType, D as PlaceDetailsResponse, x as PlacesService, P as PriceQuote, bG as PricingOverrides, ap as ProcessAndResolveOptions, an as ProcessCheckoutOptions, ao as ProcessCheckoutResult, cA as ProductStock, bP as ProviderResolutionSource, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, f as QuoteDynamicBuckets, e as QuoteStatus, g as QuoteUiMessage, R as RefreshQuoteInput, i as RefreshQuoteResult, bx as RefundOrderInput, bT as RelatedCandidate, bS as RelatedProduct, bU as RelatedProductsEnrichment, bR as RelationType, bA as ReminderMethod, bD as ReminderSettings, k as ReorderResult, d5 as RequestContext, d8 as RequestErrorEvent, cW as RequestOtpInput, h as RequestSource, d6 as RequestStartEvent, d7 as RequestSuccessEvent, cq as RescheduleBookingInput, cu as RescheduleBookingResult, cx as RescheduleHistoryRecord, bJ as ResourceAssignment, aO as Result, d9 as RetryEvent, cV as RevokeAllSessionsResult, cU as RevokeSessionResult, c3 as Room, bH as SchedulingMetadata, bK as SchedulingResult, q as SchedulingService, a2 as SenderType, cb as Service, cv as ServiceAvailabilityParams, cw as ServiceAvailabilityResult, c4 as ServiceCharge, bF as ServiceNotes, bM as ServiceScheduleRequest, by as ServiceStatus, J as SessionActivityData, da as SessionChangeEvent, H as SessionMessage, ce as SlotResourceInfo, cf as SlotStaffInfo, cc as Staff, bI as StaffAssignment, bz as StaffRole, bN as StaffScheduleItem, cz as StockLevel, cy as StockStatus, c5 as StorefrontBootstrap, S as SubscriptionService, Y as SupportService, c2 as Table, a5 as TableInfo, b$ as TimeRange, c0 as TimeRanges, cd as TimeSlot, E as TrackCategoryViewOptions, T as TrackProductViewOptions, cK as UpdateAddressInput, bv as UpdateOrderStatusInput, U as UpdateProfileInput, w as UploadInitResponse, v as UploadResult, u as UploadService, cB as VariantStock, cX as VerifyOtpInput, b1 as combine, b2 as combineObject, c as createCimplifyClient, a8 as createElements, aS as err, aX as flatMap, a$ as fromPromise, m as generateIdempotencyKey, aY as getOrElse, aU as isErr, aT as isOk, aW as mapError, aV as mapResult, aR as ok, a_ as toNullable, b0 as tryCatch, aZ as unwrap } from './index-m8zGQUda.mjs';
|
|
2
|
+
import { A as ApiError } from './payment-DnU_eLuT.mjs';
|
|
3
|
+
export { af as AddOn, bc as AddOnDetails, bz as AddOnGroupDetails, ah as AddOnOption, by as AddOnOptionDetails, ai as AddOnOptionPrice, ag as AddOnWithOptions, bE as AddToCartInput, bK as AddressAuthorizationData, W as AddressValue, b2 as AdjustmentType, b8 as AppliedDiscount, x as AttributeAppliesTo, w as AttributeType, B as AttributeValidationRules, y as AttributeVisibility, bL as AuthorizationType, b7 as BenefitType, bU as BillingFrequency, bW as BillingMarkupType, bV as BillingPlanType, aq as Bundle, au as BundleComponentData, av as BundleComponentInfo, ax as BundleComponentVariantView, aw as BundleComponentView, ap as BundlePriceType, as as BundleProduct, bi as BundleSelectionData, bf as BundleSelectionInput, bh as BundleStoredSelection, ar as BundleSummary, at as BundleWithDetails, bn as Cart, bd as CartAddOn, b0 as CartChannel, bo as CartItem, bB as CartItemDetails, a$ as CartStatus, bG as CartSummary, bp as CartTotals, ak as Category, al as CategorySummary, C as ChosenPrice, h as CimplifyError, am as Collection, ao as CollectionProduct, an as CollectionSummary, aF as ComponentGroup, aG as ComponentGroupWithComponents, aM as ComponentPriceBreakdown, bg as ComponentSchedulingData, aK as ComponentSelectionInput, aC as ComponentSourceType, aD as Composite, aJ as CompositeComponent, aI as CompositeComponentView, aH as CompositeGroupView, bk as CompositePriceBreakdown, aL as CompositePriceResult, aA as CompositePricingMode, bl as CompositeSelectionData, aK as CompositeSelectionInput, bj as CompositeStoredSelection, aE as CompositeWithDetails, a as CurrencyCode, F as CustomAttributeDefinition, G as CustomAttributeValue, a2 as CustomerInputValue, u as DURATION_UNIT, Y as DateRangeValue, aW as Deal, aV as DealBenefitType, s as DepositType, r as DigitalProductType, b9 as DiscountBreakdown, ba as DiscountDetails, aY as DiscountValidation, bs as DisplayAddOn, bt as DisplayAddOnOption, bq as DisplayCart, br as DisplayCartItem, D as DisplayMode, t as DurationUnit, g as ERROR_HINTS, bY as EligiblePlansQuery, E as ErrorCode, e as ErrorCodeType, f as ErrorHint, L as FacetValue, bZ as FormattedPlanOption, aB as GroupPricingBehavior, U as INPUT_FIELD_TYPE, bP as InitializePaymentResult, Q as InputFieldType, a0 as InputFieldValidation, I as InventoryType, N as KnowledgeArticle, bm as LineConfiguration, aP as LocationProductPrice, _ as LocationValue, z as MeasurementValue, M as Money, p as PRODUCT_TYPE, d as Pagination, P as PaginationParams, bO as Payment, bS as PaymentErrorDetails, bN as PaymentMethod, bJ as PaymentMethodType, bM as PaymentProcessingState, bI as PaymentProvider, bQ as PaymentResponse, bH as PaymentStatus, bR as PaymentStatusResponse, X as PhoneValue, aO as Price, b3 as PriceAdjustment, b6 as PriceDecisionPath, aN as PriceEntryType, b5 as PricePathTaxInfo, b1 as PriceSource, O as Product, aj as ProductAddOn, aQ as ProductAvailability, aU as ProductAvailabilityNow, bX as ProductBillingPlan, aX as ProductDealInfo, a1 as ProductInputField, J as ProductProperty, q as ProductRenderHint, aS as ProductTaxonomy, aR as ProductTimeProfile, o as ProductType, a7 as ProductVariant, ac as ProductVariantValue, a5 as ProductWithDetails, K as PropertyFacet, H as PropertySource, a3 as QuantityPricingTier, R as RENDER_HINT, a4 as RelatedProductView, v as SalesChannel, S as SchedulingMode, bb as SelectedAddOnOption, $ as SignatureValue, bT as SubmitAuthorizationInput, b$ as Subscription, c1 as SubscriptionInvoice, c0 as SubscriptionItem, b_ as SubscriptionStatus, c2 as SubscriptionWithDetails, aZ as Tag, a_ as TagsResponse, b4 as TaxPathComponent, T as TaxonomyAttributeTemplate, aT as TaxonomyWithChildren, bC as UICart, bu as UICartBusiness, bw as UICartCustomer, bv as UICartLocation, bx as UICartPricing, bD as UICartResponse, bF as UpdateCartItemInput, a9 as VariantAxis, ae as VariantAxisSelection, ab as VariantAxisValue, az as VariantAxisValueView, ay as VariantAxisView, aa as VariantAxisWithValues, be as VariantDetails, bA as VariantDetailsDTO, a8 as VariantDisplayAttribute, ad as VariantLocationAvailability, V as VariantStrategy, a6 as VariantView, Z as ZERO, c as currencyCode, l as enrichError, k as getErrorHint, j as isCimplifyError, n as isRetryableError, i as isSupportedCurrency, m as money, b as moneyFromNumber } from './payment-DnU_eLuT.mjs';
|
|
4
|
+
export { C as CURRENCY_SYMBOLS, M as MOBILE_MONEY_PROVIDERS, v as categorizePaymentError, B as detectMobileMoneyProvider, c as formatMoney, d as formatNumberCompact, f as formatPrice, a as formatPriceAdjustment, b as formatPriceCompact, u as formatPriceRange, j as formatPriceWithTax, e as formatProductPrice, m as getBasePrice, k as getCurrencySymbol, o as getDiscountPercentage, l as getDisplayPrice, q as getMarkupPercentage, t as getPriceRange, r as getProductCurrency, g as getTaxAmount, s as getUnitPriceAtQuantity, h as hasTaxInfo, n as isOnSale, y as isPaymentStatusFailure, z as isPaymentStatusRequiresAction, A as isPaymentStatusSuccess, i as isTaxInclusive, F as isValidPhoneForContext, w as normalizePaymentResponse, D as normalizePhoneToE164, x as normalizeStatusResponse, p as parsePrice, E as resolvePhoneCountryCode } from './index-D4oNCc37.mjs';
|
|
5
5
|
export { c as AdConfig, e as AdContextValue, d as AdCreative, a as AdPosition, A as AdSlot, b as AdTheme, g as getVariantDisplayName } from './ads-BxbWrwqp.mjs';
|
|
6
|
-
export { a as FormatCompactOptions, F as FormatPriceOptions, P as ProductWithPrice } from './price-
|
|
6
|
+
export { a as FormatCompactOptions, F as FormatPriceOptions, P as ProductWithPrice } from './price-D-hso3np.mjs';
|
|
7
7
|
import 'libphonenumber-js';
|
|
8
8
|
|
|
9
9
|
interface CustomerGroup {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export {
|
|
2
|
-
import { A as ApiError } from './payment-
|
|
3
|
-
export {
|
|
4
|
-
export { C as CURRENCY_SYMBOLS, M as MOBILE_MONEY_PROVIDERS, v as categorizePaymentError, B as detectMobileMoneyProvider, c as formatMoney, d as formatNumberCompact, f as formatPrice, a as formatPriceAdjustment, b as formatPriceCompact, u as formatPriceRange, j as formatPriceWithTax, e as formatProductPrice, m as getBasePrice, k as getCurrencySymbol, o as getDiscountPercentage, l as getDisplayPrice, q as getMarkupPercentage, t as getPriceRange, r as getProductCurrency, g as getTaxAmount, s as getUnitPriceAtQuantity, h as hasTaxInfo, n as isOnSale, y as isPaymentStatusFailure, z as isPaymentStatusRequiresAction, A as isPaymentStatusSuccess, i as isTaxInclusive, F as isValidPhoneForContext, w as normalizePaymentResponse, D as normalizePhoneToE164, x as normalizeStatusResponse, p as parsePrice, E as resolvePhoneCountryCode } from './index-
|
|
1
|
+
export { aD as AUTHORIZATION_TYPE, aI as AUTH_MUTATION, as as AbortablePromise, M as ActivityRecommendation, N as ActivityRecommendationsResponse, t as ActivityService, K as ActivityStateResponse, cN as AddressData, de as AddressInfo, bg as AmountToPay, cY as AuthResponse, A as AuthService, o as AuthStatus, dg as AuthenticatedCustomer, di as AuthenticatedData, y as AutocompletePrediction, z as AutocompleteResponse, cD as AvailabilityResult, cg as AvailableSlot, cj as Booking, ct as BookingModificationType, ci as BookingStatus, ck as BookingWithDetails, bC as BufferTimes, bX as Business, c9 as BusinessHours, bW as BusinessPreferences, B as BusinessService, c8 as BusinessSettings, bV as BusinessType, c6 as BusinessWithLocations, aw as CHECKOUT_MODE, aJ as CHECKOUT_MUTATION, az as CHECKOUT_STEP, aF as CONTACT_TYPE, cr as CancelBookingInput, cs as CancelBookingResult, bw as CancelOrderInput, bE as CancellationPolicy, j as CartOperations, b as CatalogueQueries, b3 as CatalogueResult, b4 as CatalogueSnapshot, ca as CategoryInfo, a0 as ChatAttachment, _ as ChatConversation, $ as ChatConversationResponse, Z as ChatMessage, a1 as ChatWidgetStarter, co as CheckSlotAvailabilityInput, cp as CheckSlotAvailabilityResult, c$ as CheckoutAddressInfo, dm as CheckoutCartData, dl as CheckoutCartItem, d1 as CheckoutCustomerInfo, ak as CheckoutFormData, bu as CheckoutInput, ag as CheckoutMode, l as CheckoutOperations, ah as CheckoutOrderType, ai as CheckoutPaymentMethod, al as CheckoutResult, l as CheckoutService, aq as CheckoutStatus, ar as CheckoutStatusContext, aj as CheckoutStep, C as CimplifyClient, a as CimplifyConfig, a7 as CimplifyElement, a6 as CimplifyElements, av as ContactType, a3 as ContentType, cJ as CreateAddressInput, cL as CreateMobileMoneyInput, cE as Customer, cF as CustomerAddress, cm as CustomerBooking, cl as CustomerBookingServiceItem, cH as CustomerLinkPreferences, cG as CustomerMobileMoney, bB as CustomerServicePreferences, aN as DEFAULT_COUNTRY, aM as DEFAULT_CURRENCY, aE as DEVICE_TYPE, ch as DayAvailability, bQ as DeliveryFeeDetails, X as DeliveryFeeResponse, W as DeliveryService, bL as DepositResult, au as DeviceType, V as DismissMessageResponse, ab as ELEMENT_TYPES, aa as EVENT_TYPES, dd as ElementAppearance, dq as ElementEventHandler, af as ElementEventType, ad as ElementOptions, ae as ElementType, dj as ElementsCheckoutData, dk as ElementsCheckoutResult, dh as ElementsCustomerInfo, ac as ElementsOptions, cP as EnrollAndLinkOrderInput, cS as EnrollAndLinkOrderResult, cM as EnrollmentData, aQ as Err, bf as FeeBearerType, F as FetchQuoteInput, bd as FulfillmentLink, bc as FulfillmentStatus, bb as FulfillmentType, d3 as FxQuote, d2 as FxQuoteRequest, d4 as FxRateResponse, s as FxService, cn as GetAvailableSlotsInput, n as GetOrdersOptions, G as GetProductsOptions, dp as IframeToParentMessage, I as InventoryService, aH as LINK_MUTATION, aG as LINK_QUERY, bh as LineItem, b8 as LineType, cI as LinkData, cR as LinkEnrollResult, L as LinkService, cT as LinkSession, cQ as LinkStatusResult, a4 as LiteBootstrap, r as LiteService, b_ as Location, bO as LocationBooking, cC as LocationStock, bY as LocationTaxBehavior, bZ as LocationTaxOverrides, c1 as LocationTimeProfile, c7 as LocationWithDetails, a9 as MESSAGE_TYPES, aC as MOBILE_MONEY_PROVIDER, cO as MobileMoneyData, d0 as MobileMoneyDetails, at as MobileMoneyProvider, am as NextAction, aL as ORDER_MUTATION, ax as ORDER_TYPE, db as ObservabilityHooks, aP as Ok, bi as Order, b7 as OrderChannel, bt as OrderFilter, be as OrderFulfillmentSummary, bn as OrderGroup, br as OrderGroupDetails, bo as OrderGroupPayment, bl as OrderGroupPaymentState, bm as OrderGroupPaymentStatus, bq as OrderGroupPaymentSummary, bk as OrderGroupStatus, bj as OrderHistory, b9 as OrderLineState, ba as OrderLineStatus, bs as OrderPaymentEvent, O as OrderQueries, bp as OrderSplitDetail, b5 as OrderStatus, dc as OrderType, p as OtpResult, ay as PAYMENT_METHOD, aK as PAYMENT_MUTATION, aA as PAYMENT_STATE, aB as PICKUP_TIME_TYPE, dn as ParentToIframeMessage, df as PaymentMethodInfo, b6 as PaymentState, c_ as PickupTime, cZ as PickupTimeType, D as PlaceDetailsResponse, x as PlacesService, P as PriceQuote, bG as PricingOverrides, ap as ProcessAndResolveOptions, an as ProcessCheckoutOptions, ao as ProcessCheckoutResult, cA as ProductStock, bP as ProviderResolutionSource, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, f as QuoteDynamicBuckets, e as QuoteStatus, g as QuoteUiMessage, R as RefreshQuoteInput, i as RefreshQuoteResult, bx as RefundOrderInput, bT as RelatedCandidate, bS as RelatedProduct, bU as RelatedProductsEnrichment, bR as RelationType, bA as ReminderMethod, bD as ReminderSettings, k as ReorderResult, d5 as RequestContext, d8 as RequestErrorEvent, cW as RequestOtpInput, h as RequestSource, d6 as RequestStartEvent, d7 as RequestSuccessEvent, cq as RescheduleBookingInput, cu as RescheduleBookingResult, cx as RescheduleHistoryRecord, bJ as ResourceAssignment, aO as Result, d9 as RetryEvent, cV as RevokeAllSessionsResult, cU as RevokeSessionResult, c3 as Room, bH as SchedulingMetadata, bK as SchedulingResult, q as SchedulingService, a2 as SenderType, cb as Service, cv as ServiceAvailabilityParams, cw as ServiceAvailabilityResult, c4 as ServiceCharge, bF as ServiceNotes, bM as ServiceScheduleRequest, by as ServiceStatus, J as SessionActivityData, da as SessionChangeEvent, H as SessionMessage, ce as SlotResourceInfo, cf as SlotStaffInfo, cc as Staff, bI as StaffAssignment, bz as StaffRole, bN as StaffScheduleItem, cz as StockLevel, cy as StockStatus, c5 as StorefrontBootstrap, S as SubscriptionService, Y as SupportService, c2 as Table, a5 as TableInfo, b$ as TimeRange, c0 as TimeRanges, cd as TimeSlot, E as TrackCategoryViewOptions, T as TrackProductViewOptions, cK as UpdateAddressInput, bv as UpdateOrderStatusInput, U as UpdateProfileInput, w as UploadInitResponse, v as UploadResult, u as UploadService, cB as VariantStock, cX as VerifyOtpInput, b1 as combine, b2 as combineObject, c as createCimplifyClient, a8 as createElements, aS as err, aX as flatMap, a$ as fromPromise, m as generateIdempotencyKey, aY as getOrElse, aU as isErr, aT as isOk, aW as mapError, aV as mapResult, aR as ok, a_ as toNullable, b0 as tryCatch, aZ as unwrap } from './index-BpyFcJVv.js';
|
|
2
|
+
import { A as ApiError } from './payment-DnU_eLuT.js';
|
|
3
|
+
export { af as AddOn, bc as AddOnDetails, bz as AddOnGroupDetails, ah as AddOnOption, by as AddOnOptionDetails, ai as AddOnOptionPrice, ag as AddOnWithOptions, bE as AddToCartInput, bK as AddressAuthorizationData, W as AddressValue, b2 as AdjustmentType, b8 as AppliedDiscount, x as AttributeAppliesTo, w as AttributeType, B as AttributeValidationRules, y as AttributeVisibility, bL as AuthorizationType, b7 as BenefitType, bU as BillingFrequency, bW as BillingMarkupType, bV as BillingPlanType, aq as Bundle, au as BundleComponentData, av as BundleComponentInfo, ax as BundleComponentVariantView, aw as BundleComponentView, ap as BundlePriceType, as as BundleProduct, bi as BundleSelectionData, bf as BundleSelectionInput, bh as BundleStoredSelection, ar as BundleSummary, at as BundleWithDetails, bn as Cart, bd as CartAddOn, b0 as CartChannel, bo as CartItem, bB as CartItemDetails, a$ as CartStatus, bG as CartSummary, bp as CartTotals, ak as Category, al as CategorySummary, C as ChosenPrice, h as CimplifyError, am as Collection, ao as CollectionProduct, an as CollectionSummary, aF as ComponentGroup, aG as ComponentGroupWithComponents, aM as ComponentPriceBreakdown, bg as ComponentSchedulingData, aK as ComponentSelectionInput, aC as ComponentSourceType, aD as Composite, aJ as CompositeComponent, aI as CompositeComponentView, aH as CompositeGroupView, bk as CompositePriceBreakdown, aL as CompositePriceResult, aA as CompositePricingMode, bl as CompositeSelectionData, aK as CompositeSelectionInput, bj as CompositeStoredSelection, aE as CompositeWithDetails, a as CurrencyCode, F as CustomAttributeDefinition, G as CustomAttributeValue, a2 as CustomerInputValue, u as DURATION_UNIT, Y as DateRangeValue, aW as Deal, aV as DealBenefitType, s as DepositType, r as DigitalProductType, b9 as DiscountBreakdown, ba as DiscountDetails, aY as DiscountValidation, bs as DisplayAddOn, bt as DisplayAddOnOption, bq as DisplayCart, br as DisplayCartItem, D as DisplayMode, t as DurationUnit, g as ERROR_HINTS, bY as EligiblePlansQuery, E as ErrorCode, e as ErrorCodeType, f as ErrorHint, L as FacetValue, bZ as FormattedPlanOption, aB as GroupPricingBehavior, U as INPUT_FIELD_TYPE, bP as InitializePaymentResult, Q as InputFieldType, a0 as InputFieldValidation, I as InventoryType, N as KnowledgeArticle, bm as LineConfiguration, aP as LocationProductPrice, _ as LocationValue, z as MeasurementValue, M as Money, p as PRODUCT_TYPE, d as Pagination, P as PaginationParams, bO as Payment, bS as PaymentErrorDetails, bN as PaymentMethod, bJ as PaymentMethodType, bM as PaymentProcessingState, bI as PaymentProvider, bQ as PaymentResponse, bH as PaymentStatus, bR as PaymentStatusResponse, X as PhoneValue, aO as Price, b3 as PriceAdjustment, b6 as PriceDecisionPath, aN as PriceEntryType, b5 as PricePathTaxInfo, b1 as PriceSource, O as Product, aj as ProductAddOn, aQ as ProductAvailability, aU as ProductAvailabilityNow, bX as ProductBillingPlan, aX as ProductDealInfo, a1 as ProductInputField, J as ProductProperty, q as ProductRenderHint, aS as ProductTaxonomy, aR as ProductTimeProfile, o as ProductType, a7 as ProductVariant, ac as ProductVariantValue, a5 as ProductWithDetails, K as PropertyFacet, H as PropertySource, a3 as QuantityPricingTier, R as RENDER_HINT, a4 as RelatedProductView, v as SalesChannel, S as SchedulingMode, bb as SelectedAddOnOption, $ as SignatureValue, bT as SubmitAuthorizationInput, b$ as Subscription, c1 as SubscriptionInvoice, c0 as SubscriptionItem, b_ as SubscriptionStatus, c2 as SubscriptionWithDetails, aZ as Tag, a_ as TagsResponse, b4 as TaxPathComponent, T as TaxonomyAttributeTemplate, aT as TaxonomyWithChildren, bC as UICart, bu as UICartBusiness, bw as UICartCustomer, bv as UICartLocation, bx as UICartPricing, bD as UICartResponse, bF as UpdateCartItemInput, a9 as VariantAxis, ae as VariantAxisSelection, ab as VariantAxisValue, az as VariantAxisValueView, ay as VariantAxisView, aa as VariantAxisWithValues, be as VariantDetails, bA as VariantDetailsDTO, a8 as VariantDisplayAttribute, ad as VariantLocationAvailability, V as VariantStrategy, a6 as VariantView, Z as ZERO, c as currencyCode, l as enrichError, k as getErrorHint, j as isCimplifyError, n as isRetryableError, i as isSupportedCurrency, m as money, b as moneyFromNumber } from './payment-DnU_eLuT.js';
|
|
4
|
+
export { C as CURRENCY_SYMBOLS, M as MOBILE_MONEY_PROVIDERS, v as categorizePaymentError, B as detectMobileMoneyProvider, c as formatMoney, d as formatNumberCompact, f as formatPrice, a as formatPriceAdjustment, b as formatPriceCompact, u as formatPriceRange, j as formatPriceWithTax, e as formatProductPrice, m as getBasePrice, k as getCurrencySymbol, o as getDiscountPercentage, l as getDisplayPrice, q as getMarkupPercentage, t as getPriceRange, r as getProductCurrency, g as getTaxAmount, s as getUnitPriceAtQuantity, h as hasTaxInfo, n as isOnSale, y as isPaymentStatusFailure, z as isPaymentStatusRequiresAction, A as isPaymentStatusSuccess, i as isTaxInclusive, F as isValidPhoneForContext, w as normalizePaymentResponse, D as normalizePhoneToE164, x as normalizeStatusResponse, p as parsePrice, E as resolvePhoneCountryCode } from './index-BHVJgyqM.js';
|
|
5
5
|
export { c as AdConfig, e as AdContextValue, d as AdCreative, a as AdPosition, A as AdSlot, b as AdTheme, g as getVariantDisplayName } from './ads-BxbWrwqp.js';
|
|
6
|
-
export { a as FormatCompactOptions, F as FormatPriceOptions, P as ProductWithPrice } from './price-
|
|
6
|
+
export { a as FormatCompactOptions, F as FormatPriceOptions, P as ProductWithPrice } from './price-DUVmRTaz.js';
|
|
7
7
|
import 'libphonenumber-js';
|
|
8
8
|
|
|
9
9
|
interface CustomerGroup {
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk6HCBOIZ4_js = require('./chunk-6HCBOIZ4.js');
|
|
4
4
|
var chunkL5GKVQVJ_js = require('./chunk-L5GKVQVJ.js');
|
|
5
5
|
var chunk2CGA3MUW_js = require('./chunk-2CGA3MUW.js');
|
|
6
6
|
var chunkPEDLCL72_js = require('./chunk-PEDLCL72.js');
|
|
@@ -9,51 +9,55 @@ var chunkPEDLCL72_js = require('./chunk-PEDLCL72.js');
|
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, "ActivityService", {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunk6HCBOIZ4_js.ActivityService; }
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "CimplifyClient", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunk6HCBOIZ4_js.CimplifyClient; }
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "DURATION_UNIT", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunk6HCBOIZ4_js.DURATION_UNIT; }
|
|
21
21
|
});
|
|
22
22
|
Object.defineProperty(exports, "DeliveryService", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunk6HCBOIZ4_js.DeliveryService; }
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(exports, "INPUT_FIELD_TYPE", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunk6HCBOIZ4_js.INPUT_FIELD_TYPE; }
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "PRODUCT_TYPE", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunk6HCBOIZ4_js.PRODUCT_TYPE; }
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(exports, "PlacesService", {
|
|
35
35
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunk6HCBOIZ4_js.PlacesService; }
|
|
37
37
|
});
|
|
38
38
|
Object.defineProperty(exports, "RENDER_HINT", {
|
|
39
39
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunk6HCBOIZ4_js.RENDER_HINT; }
|
|
41
41
|
});
|
|
42
42
|
Object.defineProperty(exports, "SubscriptionService", {
|
|
43
43
|
enumerable: true,
|
|
44
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunk6HCBOIZ4_js.SubscriptionService; }
|
|
45
|
+
});
|
|
46
|
+
Object.defineProperty(exports, "SupportService", {
|
|
47
|
+
enumerable: true,
|
|
48
|
+
get: function () { return chunk6HCBOIZ4_js.SupportService; }
|
|
45
49
|
});
|
|
46
50
|
Object.defineProperty(exports, "UploadService", {
|
|
47
51
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
52
|
+
get: function () { return chunk6HCBOIZ4_js.UploadService; }
|
|
49
53
|
});
|
|
50
54
|
Object.defineProperty(exports, "createCimplifyClient", {
|
|
51
55
|
enumerable: true,
|
|
52
|
-
get: function () { return
|
|
56
|
+
get: function () { return chunk6HCBOIZ4_js.createCimplifyClient; }
|
|
53
57
|
});
|
|
54
58
|
Object.defineProperty(exports, "getVariantDisplayName", {
|
|
55
59
|
enumerable: true,
|
|
56
|
-
get: function () { return
|
|
60
|
+
get: function () { return chunk6HCBOIZ4_js.getVariantDisplayName; }
|
|
57
61
|
});
|
|
58
62
|
Object.defineProperty(exports, "isValidPhoneForContext", {
|
|
59
63
|
enumerable: true,
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ActivityService, CimplifyClient, DURATION_UNIT, DeliveryService, INPUT_FIELD_TYPE, PRODUCT_TYPE, PlacesService, RENDER_HINT, SubscriptionService, UploadService, createCimplifyClient, getVariantDisplayName } from './chunk-
|
|
1
|
+
export { ActivityService, CimplifyClient, DURATION_UNIT, DeliveryService, INPUT_FIELD_TYPE, PRODUCT_TYPE, PlacesService, RENDER_HINT, SubscriptionService, SupportService, UploadService, createCimplifyClient, getVariantDisplayName } from './chunk-46BDUSJX.mjs';
|
|
2
2
|
export { isValidPhoneForContext, normalizePhoneToE164, resolvePhoneCountryCode } from './chunk-YOIVZ6OA.mjs';
|
|
3
3
|
export { AUTHORIZATION_TYPE, AUTH_MUTATION, AuthService, BusinessService, CHECKOUT_MODE, CHECKOUT_MUTATION, CHECKOUT_STEP, CONTACT_TYPE, CartOperations, CatalogueQueries, CheckoutService as CheckoutOperations, CheckoutService, CimplifyElement, CimplifyElements, DEFAULT_COUNTRY, DEFAULT_CURRENCY, DEVICE_TYPE, ELEMENT_TYPES, EVENT_TYPES, FxService, InventoryService, LINK_MUTATION, LINK_QUERY, LinkService, LiteService, MESSAGE_TYPES, MOBILE_MONEY_PROVIDER, ORDER_MUTATION, ORDER_TYPE, OrderQueries, PAYMENT_METHOD, PAYMENT_MUTATION, PAYMENT_STATE, PICKUP_TIME_TYPE, SchedulingService, combine, combineObject, createElements, err, flatMap, fromPromise, generateIdempotencyKey, getOrElse, isErr, isOk, mapError, mapResult, ok, toNullable, tryCatch, unwrap } from './chunk-3J4PPSMI.mjs';
|
|
4
4
|
export { CURRENCY_SYMBOLS, CimplifyError, ERROR_HINTS, ErrorCode, MOBILE_MONEY_PROVIDERS, ZERO, categorizePaymentError, currencyCode, detectMobileMoneyProvider, enrichError, formatMoney, formatNumberCompact, formatPrice, formatPriceAdjustment, formatPriceCompact, formatPriceRange, formatPriceWithTax, formatProductPrice, getBasePrice, getCurrencySymbol, getDiscountPercentage, getDisplayPrice, getErrorHint, getMarkupPercentage, getPriceRange, getProductCurrency, getTaxAmount, getUnitPriceAtQuantity, hasTaxInfo, isCimplifyError, isOnSale, isPaymentStatusFailure, isPaymentStatusRequiresAction, isPaymentStatusSuccess, isRetryableError, isSupportedCurrency, isTaxInclusive, money, moneyFromNumber, normalizePaymentResponse, normalizeStatusResponse, parsePrice } from './chunk-E3HC2YAE.mjs';
|
|
@@ -211,7 +211,8 @@ interface ComponentSchedulingData {
|
|
|
211
211
|
scheduled_end?: string;
|
|
212
212
|
service_status: string;
|
|
213
213
|
confirmation_code?: string;
|
|
214
|
-
|
|
214
|
+
booking_id?: string;
|
|
215
|
+
primary_resource_id?: string;
|
|
215
216
|
}
|
|
216
217
|
interface BundleStoredSelection {
|
|
217
218
|
component_id: string;
|
|
@@ -267,6 +268,7 @@ type LineConfiguration = {
|
|
|
267
268
|
confirmation_code?: string;
|
|
268
269
|
service_status?: string;
|
|
269
270
|
primary_staff_id?: string;
|
|
271
|
+
primary_resource_id?: string;
|
|
270
272
|
scheduling_metadata?: Record<string, unknown>;
|
|
271
273
|
} | {
|
|
272
274
|
type: "bundle";
|
|
@@ -583,7 +585,7 @@ interface CartSummary {
|
|
|
583
585
|
currency: CurrencyCode;
|
|
584
586
|
}
|
|
585
587
|
|
|
586
|
-
type BillingFrequency = "weekly" | "monthly" | "quarterly" | "annually";
|
|
588
|
+
type BillingFrequency = "weekly" | "biweekly" | "monthly" | "quarterly" | "annually";
|
|
587
589
|
type BillingPlanType = "subscription" | "installment";
|
|
588
590
|
type BillingMarkupType = "fixed" | "percentage";
|
|
589
591
|
interface ProductBillingPlan {
|
|
@@ -692,6 +694,7 @@ type InventoryType = "one_to_one" | "composition" | "none";
|
|
|
692
694
|
type VariantStrategy = "fetch_all" | "use_axes";
|
|
693
695
|
type DigitalProductType = "download" | "license" | "event_ticket" | "access_pass" | "gift_code";
|
|
694
696
|
type DepositType = "none" | "fixed" | "percentage";
|
|
697
|
+
type SchedulingMode = "intraday" | "multi_day";
|
|
695
698
|
type DurationUnit = "minutes" | "hours" | "days" | "nights" | "weeks" | "months" | "years";
|
|
696
699
|
declare const DURATION_UNIT: {
|
|
697
700
|
Minutes: "minutes";
|
|
@@ -857,6 +860,8 @@ interface Product {
|
|
|
857
860
|
code_type?: string;
|
|
858
861
|
code_value?: Money;
|
|
859
862
|
code_currency?: CurrencyCode;
|
|
863
|
+
scheduling_mode?: SchedulingMode;
|
|
864
|
+
duration_value?: number;
|
|
860
865
|
duration_minutes?: number;
|
|
861
866
|
duration_unit?: DurationUnit;
|
|
862
867
|
preparation_time_minutes?: number;
|
|
@@ -868,6 +873,13 @@ interface Product {
|
|
|
868
873
|
deposit_amount?: Money;
|
|
869
874
|
cancellation_window_minutes?: number;
|
|
870
875
|
no_show_fee?: Money;
|
|
876
|
+
partial_refund_percentage?: number;
|
|
877
|
+
max_free_reschedules?: number;
|
|
878
|
+
reschedule_fee?: Money;
|
|
879
|
+
no_show_deadline_minutes?: number;
|
|
880
|
+
cancellation_notice_days?: number;
|
|
881
|
+
early_termination_fee?: Money;
|
|
882
|
+
pro_rata_refund?: boolean;
|
|
871
883
|
requires_specific_staff?: boolean;
|
|
872
884
|
requires_specific_resource?: boolean;
|
|
873
885
|
hs_code?: string;
|
|
@@ -1014,6 +1026,8 @@ interface VariantView {
|
|
|
1014
1026
|
axis_selections?: Record<string, string>;
|
|
1015
1027
|
display_attributes?: VariantDisplayAttribute[];
|
|
1016
1028
|
images?: string[];
|
|
1029
|
+
scheduling_mode?: SchedulingMode;
|
|
1030
|
+
duration_value?: number;
|
|
1017
1031
|
duration_minutes?: number;
|
|
1018
1032
|
duration_unit?: DurationUnit;
|
|
1019
1033
|
skill_level_required?: string;
|
|
@@ -1047,6 +1061,8 @@ interface ProductVariant {
|
|
|
1047
1061
|
barcode?: string;
|
|
1048
1062
|
download_url?: string;
|
|
1049
1063
|
metadata?: Record<string, unknown>;
|
|
1064
|
+
scheduling_mode?: SchedulingMode;
|
|
1065
|
+
duration_value?: number;
|
|
1050
1066
|
duration_minutes?: number;
|
|
1051
1067
|
duration_unit?: DurationUnit;
|
|
1052
1068
|
max_downloads?: number;
|
|
@@ -1607,4 +1623,4 @@ interface SubmitAuthorizationInput {
|
|
|
1607
1623
|
value: string;
|
|
1608
1624
|
}
|
|
1609
1625
|
|
|
1610
|
-
export { type
|
|
1626
|
+
export { type SignatureValue as $, type ApiError as A, type AttributeValidationRules as B, type ChosenPrice as C, type DisplayMode as D, ErrorCode as E, type CustomAttributeDefinition as F, type CustomAttributeValue as G, type PropertySource as H, type InventoryType as I, type ProductProperty as J, type PropertyFacet as K, type FacetValue as L, type Money as M, type KnowledgeArticle as N, type Product as O, type PaginationParams as P, type InputFieldType as Q, RENDER_HINT as R, type SchedulingMode as S, type TaxonomyAttributeTemplate as T, INPUT_FIELD_TYPE as U, type VariantStrategy as V, type AddressValue as W, type PhoneValue as X, type DateRangeValue as Y, ZERO as Z, type LocationValue as _, type CurrencyCode as a, type CartStatus as a$, type InputFieldValidation as a0, type ProductInputField as a1, type CustomerInputValue as a2, type QuantityPricingTier as a3, type RelatedProductView as a4, type ProductWithDetails as a5, type VariantView as a6, type ProductVariant as a7, type VariantDisplayAttribute as a8, type VariantAxis as a9, type CompositePricingMode as aA, type GroupPricingBehavior as aB, type ComponentSourceType as aC, type Composite as aD, type CompositeWithDetails as aE, type ComponentGroup as aF, type ComponentGroupWithComponents as aG, type CompositeGroupView as aH, type CompositeComponentView as aI, type CompositeComponent as aJ, type ComponentSelectionInput as aK, type CompositePriceResult as aL, type ComponentPriceBreakdown as aM, type PriceEntryType as aN, type Price as aO, type LocationProductPrice as aP, type ProductAvailability as aQ, type ProductTimeProfile as aR, type ProductTaxonomy as aS, type TaxonomyWithChildren as aT, type ProductAvailabilityNow as aU, type DealBenefitType as aV, type Deal as aW, type ProductDealInfo as aX, type DiscountValidation as aY, type Tag as aZ, type TagsResponse as a_, type VariantAxisWithValues as aa, type VariantAxisValue as ab, type ProductVariantValue as ac, type VariantLocationAvailability as ad, type VariantAxisSelection as ae, type AddOn as af, type AddOnWithOptions as ag, type AddOnOption as ah, type AddOnOptionPrice as ai, type ProductAddOn as aj, type Category as ak, type CategorySummary as al, type Collection as am, type CollectionSummary as an, type CollectionProduct as ao, type BundlePriceType as ap, type Bundle as aq, type BundleSummary as ar, type BundleProduct as as, type BundleWithDetails as at, type BundleComponentData as au, type BundleComponentInfo as av, type BundleComponentView as aw, type BundleComponentVariantView as ax, type VariantAxisView as ay, type VariantAxisValueView as az, moneyFromNumber as b, type Subscription as b$, type CartChannel as b0, type PriceSource as b1, type AdjustmentType as b2, type PriceAdjustment as b3, type TaxPathComponent as b4, type PricePathTaxInfo as b5, type PriceDecisionPath as b6, type BenefitType as b7, type AppliedDiscount as b8, type DiscountBreakdown as b9, type VariantDetailsDTO as bA, type CartItemDetails as bB, type UICart as bC, type UICartResponse as bD, type AddToCartInput as bE, type UpdateCartItemInput as bF, type CartSummary as bG, type PaymentStatus as bH, type PaymentProvider as bI, type PaymentMethodType as bJ, type AddressAuthorizationData as bK, type AuthorizationType as bL, type PaymentProcessingState as bM, type PaymentMethod as bN, type Payment as bO, type InitializePaymentResult as bP, type PaymentResponse as bQ, type PaymentStatusResponse as bR, type PaymentErrorDetails as bS, type SubmitAuthorizationInput as bT, type BillingFrequency as bU, type BillingPlanType as bV, type BillingMarkupType as bW, type ProductBillingPlan as bX, type EligiblePlansQuery as bY, type FormattedPlanOption as bZ, type SubscriptionStatus as b_, type DiscountDetails as ba, type SelectedAddOnOption as bb, type AddOnDetails as bc, type CartAddOn as bd, type VariantDetails as be, type BundleSelectionInput as bf, type ComponentSchedulingData as bg, type BundleStoredSelection as bh, type BundleSelectionData as bi, type CompositeStoredSelection as bj, type CompositePriceBreakdown as bk, type CompositeSelectionData as bl, type LineConfiguration as bm, type Cart as bn, type CartItem as bo, type CartTotals as bp, type DisplayCart as bq, type DisplayCartItem as br, type DisplayAddOn as bs, type DisplayAddOnOption as bt, type UICartBusiness as bu, type UICartLocation as bv, type UICartCustomer as bw, type UICartPricing as bx, type AddOnOptionDetails as by, type AddOnGroupDetails as bz, currencyCode as c, type SubscriptionItem as c0, type SubscriptionInvoice as c1, type SubscriptionWithDetails as c2, type Pagination as d, type ErrorCodeType as e, type ErrorHint as f, ERROR_HINTS as g, CimplifyError as h, isSupportedCurrency as i, isCimplifyError as j, getErrorHint as k, enrichError as l, money as m, isRetryableError as n, type ProductType as o, PRODUCT_TYPE as p, type ProductRenderHint as q, type DigitalProductType as r, type DepositType as s, type DurationUnit as t, DURATION_UNIT as u, type SalesChannel as v, type AttributeType as w, type AttributeAppliesTo as x, type AttributeVisibility as y, type MeasurementValue as z };
|