@cimplify/sdk 0.80.0 → 0.81.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/advanced.d.mts +1 -1
- package/dist/advanced.d.ts +1 -1
- package/dist/advanced.js +20 -20
- package/dist/advanced.mjs +1 -1
- package/dist/{chunk-3BKMNVTR.mjs → chunk-7BM56JET.mjs} +1 -0
- package/dist/{chunk-FIC5S3KD.mjs → chunk-7PAQR3VC.mjs} +2 -2
- package/dist/{chunk-BNA4GW4D.mjs → chunk-BRVIXGUW.mjs} +60 -0
- package/dist/{chunk-NV445GMS.js → chunk-GFM5JW45.js} +48 -36
- package/dist/{chunk-CV5QMDQS.js → chunk-HPN5R3K2.js} +1 -0
- package/dist/{chunk-KMP4HVA2.js → chunk-IZDJEDR4.js} +4 -4
- package/dist/{chunk-NJGJCQWF.mjs → chunk-NWUEWUX2.mjs} +13 -1
- package/dist/{chunk-OSTOGR4F.js → chunk-SRJEMEVZ.js} +60 -0
- package/dist/{client-D22iSqke.d.ts → client-BmDNlUMx.d.ts} +41 -2
- package/dist/{client-6BNd11sq.d.mts → client-C51FFhDz.d.mts} +2 -2
- package/dist/{client-Czbt-mej.d.mts → client-Cx3WLhMj.d.mts} +41 -2
- package/dist/{client-CuoWlAfH.d.ts → client-Q_m-GkTl.d.ts} +2 -2
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +69 -69
- package/dist/index.mjs +3 -3
- package/dist/mock/cli.mjs +60 -0
- package/dist/mock/library.js +60 -0
- package/dist/mock/library.mjs +60 -0
- package/dist/mock/msw.js +60 -0
- package/dist/mock/msw.mjs +60 -0
- package/dist/react.d.mts +20 -2
- package/dist/react.d.ts +20 -2
- package/dist/react.js +41 -16
- package/dist/react.mjs +27 -3
- package/dist/{server-Daq42vK7.d.ts → server-N4Q24CnO.d.ts} +21 -0
- package/dist/{server-CGO4zneR.d.mts → server-hP9NLtTh.d.mts} +21 -0
- package/dist/server.d.mts +2 -2
- package/dist/server.d.ts +2 -2
- package/dist/server.js +7 -7
- package/dist/server.mjs +2 -2
- package/dist/testing/msw.d.mts +1 -1
- package/dist/testing/msw.d.ts +1 -1
- package/dist/testing/msw.js +2 -2
- package/dist/testing/msw.mjs +1 -1
- package/dist/testing/suite.d.mts +4 -4
- package/dist/testing/suite.d.ts +4 -4
- package/dist/testing/suite.js +23 -23
- package/dist/testing/suite.mjs +4 -4
- package/dist/testing.d.mts +18 -18
- package/dist/testing.d.ts +18 -18
- package/dist/testing.js +79 -79
- package/dist/testing.mjs +5 -5
- package/package.json +1 -1
|
@@ -693,18 +693,22 @@ interface LocationBooking {
|
|
|
693
693
|
assigned_resources: string[];
|
|
694
694
|
service_status: ServiceStatus;
|
|
695
695
|
}
|
|
696
|
-
type ProviderResolutionSource = "
|
|
696
|
+
type ProviderResolutionSource = "zone" | "hint" | "fallback" | "best_price";
|
|
697
697
|
interface DeliveryFeeDetails {
|
|
698
698
|
zone_id: string;
|
|
699
699
|
zone_name: string;
|
|
700
700
|
provider: string;
|
|
701
701
|
provider_resolved_from: ProviderResolutionSource;
|
|
702
|
+
/** Named rate this fee was priced under, if any. */
|
|
703
|
+
rate_id?: string;
|
|
704
|
+
rate_name?: string;
|
|
702
705
|
distance_km: Money;
|
|
703
706
|
base_fee: Money;
|
|
704
707
|
per_km_fee: Money;
|
|
705
708
|
surge_multiplier: Money;
|
|
706
709
|
calculated_fee: Money;
|
|
707
710
|
currency: string;
|
|
711
|
+
free_delivery_applied?: boolean;
|
|
708
712
|
}
|
|
709
713
|
type RelationType = "upsell" | "cross_sell";
|
|
710
714
|
interface RelatedProduct {
|
|
@@ -1056,6 +1060,10 @@ interface CheckoutFormData {
|
|
|
1056
1060
|
customer: CheckoutCustomerInfo;
|
|
1057
1061
|
order_type: CheckoutOrderType;
|
|
1058
1062
|
address_info: CheckoutAddressInfo;
|
|
1063
|
+
/** Named delivery rate the customer selected (from `delivery.getOptions`).
|
|
1064
|
+
* Selection only — the fee is always recomputed server-side. Omit for the
|
|
1065
|
+
* merchant's default option. */
|
|
1066
|
+
delivery_rate_id?: string;
|
|
1059
1067
|
payment_method: string;
|
|
1060
1068
|
mobile_money_details?: MobileMoneyDetails;
|
|
1061
1069
|
special_instructions?: string;
|
|
@@ -2150,10 +2158,41 @@ interface DeliveryFeeResponse {
|
|
|
2150
2158
|
currency: string | null;
|
|
2151
2159
|
details: DeliveryFeeDetails | null;
|
|
2152
2160
|
}
|
|
2161
|
+
/** One entry on the delivery menu for a dropoff — a merchant-named rate
|
|
2162
|
+
* ("Standard", "Express", "Outside Accra") priced for that address, or the
|
|
2163
|
+
* synthesized default when the business has no named rates (`rate_id: null`). */
|
|
2164
|
+
interface DeliveryOption {
|
|
2165
|
+
rate_id: string | null;
|
|
2166
|
+
name: string;
|
|
2167
|
+
description?: string;
|
|
2168
|
+
fee: Money;
|
|
2169
|
+
currency: string;
|
|
2170
|
+
free_delivery_applied: boolean;
|
|
2171
|
+
/** Order value at/above this makes the option free — render "Free over X". */
|
|
2172
|
+
free_over_amount?: Money;
|
|
2173
|
+
eta_min_minutes?: number;
|
|
2174
|
+
eta_max_minutes?: number;
|
|
2175
|
+
/** The option charged when the shopper makes no explicit selection. */
|
|
2176
|
+
is_default: boolean;
|
|
2177
|
+
details: DeliveryFeeDetails;
|
|
2178
|
+
}
|
|
2179
|
+
interface DeliveryOptionsResponse {
|
|
2180
|
+
serviceable: boolean;
|
|
2181
|
+
options: DeliveryOption[];
|
|
2182
|
+
message?: string;
|
|
2183
|
+
}
|
|
2184
|
+
interface GetDeliveryOptionsParams {
|
|
2185
|
+
country?: string;
|
|
2186
|
+
/** Cart goods total — drives free-over thresholds and zone minimums. */
|
|
2187
|
+
orderValue?: Money;
|
|
2188
|
+
}
|
|
2153
2189
|
declare class DeliveryService {
|
|
2154
2190
|
private client;
|
|
2155
2191
|
constructor(client: CimplifyClient);
|
|
2156
2192
|
getFee(dropoffLat: number, dropoffLng: number, country?: string): Promise<Result<DeliveryFeeResponse, CimplifyError>>;
|
|
2193
|
+
/** The full delivery menu for an address. Pass the selected option's
|
|
2194
|
+
* `rate_id` as `delivery_rate_id` when processing checkout. */
|
|
2195
|
+
getOptions(dropoffLat: number, dropoffLng: number, opts?: GetDeliveryOptionsParams): Promise<Result<DeliveryOptionsResponse, CimplifyError>>;
|
|
2157
2196
|
}
|
|
2158
2197
|
|
|
2159
2198
|
type SenderType = "customer" | "agent" | "system" | "bot";
|
|
@@ -2713,4 +2752,4 @@ declare class CimplifyClient {
|
|
|
2713
2752
|
}
|
|
2714
2753
|
declare function createCimplifyClient(config?: CimplifyConfig): CimplifyClient;
|
|
2715
2754
|
|
|
2716
|
-
export { type CheckoutAddressInfo as $, AUTHORIZATION_TYPE as A, type Booking as B, BusinessService as C, type BusinessSettings as D, type BusinessType as E, type BusinessWithLocations as F, CHECKOUT_MODE as G, CHECKOUT_MUTATION as H, CHECKOUT_STEP as I, CONTACT_TYPE as J, type CacheOptions as K, type CancelBookingInput as L, type CancelBookingResult as M, type CancelOrderInput as N, type CancellationPolicy as O, CartOperations as P, CatalogueQueries as Q, type CatalogueResult as R, type CatalogueSnapshot as S, type CategoryInfo as T, type ChatAttachment as U, type ChatConversation as V, type ChatConversationResponse as W, type ChatMessage as X, type ChatWidgetStarter as Y, type CheckSlotAvailabilityInput as Z, type CheckSlotAvailabilityResult as _, AUTH_MUTATION as a, type
|
|
2755
|
+
export { type CheckoutAddressInfo as $, AUTHORIZATION_TYPE as A, type Booking as B, BusinessService as C, type BusinessSettings as D, type BusinessType as E, type BusinessWithLocations as F, CHECKOUT_MODE as G, CHECKOUT_MUTATION as H, CHECKOUT_STEP as I, CONTACT_TYPE as J, type CacheOptions as K, type CancelBookingInput as L, type CancelBookingResult as M, type CancelOrderInput as N, type CancellationPolicy as O, CartOperations as P, CatalogueQueries as Q, type CatalogueResult as R, type CatalogueSnapshot as S, type CategoryInfo as T, type ChatAttachment as U, type ChatConversation as V, type ChatConversationResponse as W, type ChatMessage as X, type ChatWidgetStarter as Y, type CheckSlotAvailabilityInput as Z, type CheckSlotAvailabilityResult as _, AUTH_MUTATION as a, type Err as a$, type CheckoutCartData as a0, type CheckoutCartItem as a1, type CheckoutCustomerInfo as a2, type CheckoutFormData as a3, type CheckoutInput as a4, type CheckoutMode as a5, type CheckoutOrderType as a6, type CheckoutPaymentMethod as a7, type CheckoutResult as a8, CheckoutService as a9, DeliveryService as aA, type DepositResult as aB, type DeviceType as aC, type DismissMessageResponse as aD, ELEMENTS_AUTH_CONTACT_TYPES as aE, ELEMENTS_AUTH_MODES as aF, ELEMENTS_AUTH_PROMPTS as aG, ELEMENT_TYPES as aH, EVENT_TYPES as aI, type ElementAppearance as aJ, type ElementEventHandler as aK, type ElementEventType as aL, type ElementOptions as aM, type ElementType as aN, type ElementsAuthContactType as aO, type ElementsAuthMode as aP, type ElementsAuthOptions as aQ, type ElementsAuthPrompt as aR, type ElementsCheckoutData as aS, type ElementsCheckoutResult as aT, type ElementsCustomerInfo as aU, type ElementsOptions as aV, type EnrichedOrder as aW, type EnrichedOrderItem as aX, type EnrollAndLinkOrderInput as aY, type EnrollAndLinkOrderResult as aZ, type EnrollmentData as a_, type CheckoutStatus as aa, type CheckoutStatusContext as ab, type CheckoutStep as ac, CimplifyClient as ad, type CimplifyConfig as ae, CimplifyElement as af, CimplifyElements as ag, type ContactType as ah, type ContentType as ai, type CreateAddressInput as aj, type CreateMobileMoneyInput as ak, type Customer as al, type CustomerAddress as am, type CustomerBooking as an, type CustomerBookingServiceItem as ao, type CustomerLinkPreferences as ap, type CustomerMobileMoney as aq, type CustomerServicePreferences as ar, DEFAULT_COUNTRY as as, DEFAULT_CURRENCY as at, DEVICE_TYPE as au, type DayAvailability as av, type DeliveryFeeDetails as aw, type DeliveryFeeResponse as ax, type DeliveryOption as ay, type DeliveryOptionsResponse as az, type AbortablePromise as b, OrderQueries as b$, type FeeBearerType as b0, type FetchQuoteInput as b1, type FulfillmentLink as b2, type FulfillmentStatus as b3, type FulfillmentSummaryDTO as b4, type FulfillmentType as b5, type FxQuote as b6, type FxQuoteRequest as b7, type FxRateResponse as b8, FxService as b9, type MobileMoneyData as bA, type MobileMoneyDetails as bB, type MobileMoneyProvider as bC, type NextAction as bD, ORDER_MUTATION as bE, ORDER_TYPE as bF, type ObservabilityHooks as bG, type Ok as bH, type Order as bI, type OrderChannel as bJ, type OrderCustomerInfo as bK, type OrderDiscountInfo as bL, type OrderFilter as bM, type OrderFulfillmentSummary as bN, type OrderGroup as bO, type OrderGroupDetails as bP, type OrderGroupPayment as bQ, type OrderGroupPaymentState as bR, type OrderGroupPaymentStatus as bS, type OrderGroupPaymentSummary as bT, type OrderGroupStatus as bU, type OrderHistory as bV, type OrderLineState as bW, type OrderLineStatus as bX, type OrderLocationInfo as bY, type OrderPaymentEvent as bZ, type OrderPricingView as b_, type GetAvailableSlotsInput as ba, type GetDeliveryOptionsParams as bb, type GetOrdersOptions as bc, type GetProductsOptions as bd, type GroupOrderInfo as be, type IframeToParentMessage as bf, InventoryService as bg, LINK_MUTATION as bh, LINK_QUERY as bi, type LineItem as bj, type LineType as bk, type LinkData as bl, type LinkEnrollResult as bm, LinkService as bn, type LinkSession as bo, type LinkStatusResult as bp, type LiteBootstrap as bq, LiteService as br, type Location as bs, type LocationBooking as bt, type LocationTaxBehavior as bu, type LocationTaxOverrides as bv, type LocationTimeProfile as bw, type LocationWithDetails as bx, MESSAGE_TYPES as by, MOBILE_MONEY_PROVIDER as bz, type ActivityRecommendation as c, type ServiceCharge as c$, type OrderSplitDetail as c0, type OrderStaffInfo as c1, type OrderStatus as c2, type OrderTimestampsDTO as c3, type OrderType as c4, type OtpResult as c5, PAYMENT_METHOD as c6, PAYMENT_MUTATION as c7, PAYMENT_STATE as c8, PICKUP_TIME_TYPE as c9, type RelationType as cA, type ReminderMethod as cB, type ReminderSettings as cC, type ReorderResult as cD, type RequestContext as cE, type RequestErrorEvent as cF, type RequestOptions as cG, type RequestOtpInput as cH, type RequestSource as cI, type RequestStartEvent as cJ, type RequestSuccessEvent as cK, type RescheduleBookingInput as cL, type RescheduleBookingResult as cM, type RescheduleHistoryRecord as cN, type ResourceAssignment as cO, type Result as cP, type RetryEvent as cQ, type RevokeAllSessionsResult as cR, type RevokeSessionResult as cS, type Room as cT, type SchedulingMetadata as cU, type SchedulingResult as cV, SchedulingService as cW, type SenderType as cX, type Service as cY, type ServiceAvailabilityParams as cZ, type ServiceAvailabilityResult as c_, type ParentToIframeMessage as ca, type PaymentInfoDTO as cb, type PaymentMethodInfo as cc, type PaymentState as cd, type PickupTime as ce, type PickupTimeType as cf, type PlaceDetailsResponse as cg, PlacesService as ch, type PriceQuote as ci, type PricingOverrides as cj, type ProcessAndResolveOptions as ck, type ProcessCheckoutOptions as cl, type ProcessCheckoutResult as cm, type ProviderResolutionSource as cn, type QuoteBundleSelectionInput as co, type QuoteCompositeSelectionInput as cp, type QuoteDynamicBuckets as cq, type QuoteStatus as cr, type QuoteUiMessage as cs, type ReadRequestOptions as ct, type RefreshQuoteInput as cu, type RefreshQuoteResult as cv, type RefundOrderInput as cw, type RelatedCandidate as cx, type RelatedProduct as cy, type RelatedProductsEnrichment as cz, type ActivityRecommendationsResponse as d, type ServiceNotes as d0, type ServiceScheduleRequest as d1, type ServiceStatus as d2, type SessionActivityData as d3, type SessionChangeEvent as d4, type SessionMessage as d5, type SlotResourceInfo as d6, type SlotStaffInfo as d7, type Staff as d8, type StaffAssignment as d9, createCimplifyClient as dA, createElements as dB, err as dC, flatMap as dD, fromPromise as dE, getOrElse as dF, isErr as dG, isOk as dH, mapError as dI, mapResult as dJ, ok as dK, toNullable as dL, tryCatch as dM, unwrap as dN, type StaffRole as da, type StaffScheduleItem as db, type StockLevel as dc, type StockStatus as dd, type StoreCreditBalance as de, StoreCreditQueries as df, type StorefrontBootstrap as dg, SubscriptionService as dh, SupportService as di, type Table as dj, type TableInfo as dk, type TimeRange as dl, type TimeRanges as dm, type TimeSlot as dn, type TrackCategoryViewOptions as dp, type TrackProductViewOptions as dq, type UpdateAddressInput as dr, type UpdateOrderStatusInput as ds, type UpdateProfileInput as dt, type UploadInitResponse as du, type UploadResult as dv, UploadService as dw, type VerifyOtpInput as dx, combine as dy, combineObject 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 { ad as CimplifyClient } from './client-
|
|
2
|
-
import { A as AppHandle, C as CreateAppOptions } from './server-
|
|
1
|
+
import { ad as CimplifyClient } from './client-Cx3WLhMj.mjs';
|
|
2
|
+
import { A as AppHandle, C as CreateAppOptions } from './server-hP9NLtTh.mjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Test client + fixtures.
|
|
@@ -693,18 +693,22 @@ interface LocationBooking {
|
|
|
693
693
|
assigned_resources: string[];
|
|
694
694
|
service_status: ServiceStatus;
|
|
695
695
|
}
|
|
696
|
-
type ProviderResolutionSource = "
|
|
696
|
+
type ProviderResolutionSource = "zone" | "hint" | "fallback" | "best_price";
|
|
697
697
|
interface DeliveryFeeDetails {
|
|
698
698
|
zone_id: string;
|
|
699
699
|
zone_name: string;
|
|
700
700
|
provider: string;
|
|
701
701
|
provider_resolved_from: ProviderResolutionSource;
|
|
702
|
+
/** Named rate this fee was priced under, if any. */
|
|
703
|
+
rate_id?: string;
|
|
704
|
+
rate_name?: string;
|
|
702
705
|
distance_km: Money;
|
|
703
706
|
base_fee: Money;
|
|
704
707
|
per_km_fee: Money;
|
|
705
708
|
surge_multiplier: Money;
|
|
706
709
|
calculated_fee: Money;
|
|
707
710
|
currency: string;
|
|
711
|
+
free_delivery_applied?: boolean;
|
|
708
712
|
}
|
|
709
713
|
type RelationType = "upsell" | "cross_sell";
|
|
710
714
|
interface RelatedProduct {
|
|
@@ -1056,6 +1060,10 @@ interface CheckoutFormData {
|
|
|
1056
1060
|
customer: CheckoutCustomerInfo;
|
|
1057
1061
|
order_type: CheckoutOrderType;
|
|
1058
1062
|
address_info: CheckoutAddressInfo;
|
|
1063
|
+
/** Named delivery rate the customer selected (from `delivery.getOptions`).
|
|
1064
|
+
* Selection only — the fee is always recomputed server-side. Omit for the
|
|
1065
|
+
* merchant's default option. */
|
|
1066
|
+
delivery_rate_id?: string;
|
|
1059
1067
|
payment_method: string;
|
|
1060
1068
|
mobile_money_details?: MobileMoneyDetails;
|
|
1061
1069
|
special_instructions?: string;
|
|
@@ -2150,10 +2158,41 @@ interface DeliveryFeeResponse {
|
|
|
2150
2158
|
currency: string | null;
|
|
2151
2159
|
details: DeliveryFeeDetails | null;
|
|
2152
2160
|
}
|
|
2161
|
+
/** One entry on the delivery menu for a dropoff — a merchant-named rate
|
|
2162
|
+
* ("Standard", "Express", "Outside Accra") priced for that address, or the
|
|
2163
|
+
* synthesized default when the business has no named rates (`rate_id: null`). */
|
|
2164
|
+
interface DeliveryOption {
|
|
2165
|
+
rate_id: string | null;
|
|
2166
|
+
name: string;
|
|
2167
|
+
description?: string;
|
|
2168
|
+
fee: Money;
|
|
2169
|
+
currency: string;
|
|
2170
|
+
free_delivery_applied: boolean;
|
|
2171
|
+
/** Order value at/above this makes the option free — render "Free over X". */
|
|
2172
|
+
free_over_amount?: Money;
|
|
2173
|
+
eta_min_minutes?: number;
|
|
2174
|
+
eta_max_minutes?: number;
|
|
2175
|
+
/** The option charged when the shopper makes no explicit selection. */
|
|
2176
|
+
is_default: boolean;
|
|
2177
|
+
details: DeliveryFeeDetails;
|
|
2178
|
+
}
|
|
2179
|
+
interface DeliveryOptionsResponse {
|
|
2180
|
+
serviceable: boolean;
|
|
2181
|
+
options: DeliveryOption[];
|
|
2182
|
+
message?: string;
|
|
2183
|
+
}
|
|
2184
|
+
interface GetDeliveryOptionsParams {
|
|
2185
|
+
country?: string;
|
|
2186
|
+
/** Cart goods total — drives free-over thresholds and zone minimums. */
|
|
2187
|
+
orderValue?: Money;
|
|
2188
|
+
}
|
|
2153
2189
|
declare class DeliveryService {
|
|
2154
2190
|
private client;
|
|
2155
2191
|
constructor(client: CimplifyClient);
|
|
2156
2192
|
getFee(dropoffLat: number, dropoffLng: number, country?: string): Promise<Result<DeliveryFeeResponse, CimplifyError>>;
|
|
2193
|
+
/** The full delivery menu for an address. Pass the selected option's
|
|
2194
|
+
* `rate_id` as `delivery_rate_id` when processing checkout. */
|
|
2195
|
+
getOptions(dropoffLat: number, dropoffLng: number, opts?: GetDeliveryOptionsParams): Promise<Result<DeliveryOptionsResponse, CimplifyError>>;
|
|
2157
2196
|
}
|
|
2158
2197
|
|
|
2159
2198
|
type SenderType = "customer" | "agent" | "system" | "bot";
|
|
@@ -2713,4 +2752,4 @@ declare class CimplifyClient {
|
|
|
2713
2752
|
}
|
|
2714
2753
|
declare function createCimplifyClient(config?: CimplifyConfig): CimplifyClient;
|
|
2715
2754
|
|
|
2716
|
-
export { type CheckoutAddressInfo as $, AUTHORIZATION_TYPE as A, type Booking as B, BusinessService as C, type BusinessSettings as D, type BusinessType as E, type BusinessWithLocations as F, CHECKOUT_MODE as G, CHECKOUT_MUTATION as H, CHECKOUT_STEP as I, CONTACT_TYPE as J, type CacheOptions as K, type CancelBookingInput as L, type CancelBookingResult as M, type CancelOrderInput as N, type CancellationPolicy as O, CartOperations as P, CatalogueQueries as Q, type CatalogueResult as R, type CatalogueSnapshot as S, type CategoryInfo as T, type ChatAttachment as U, type ChatConversation as V, type ChatConversationResponse as W, type ChatMessage as X, type ChatWidgetStarter as Y, type CheckSlotAvailabilityInput as Z, type CheckSlotAvailabilityResult as _, AUTH_MUTATION as a, type
|
|
2755
|
+
export { type CheckoutAddressInfo as $, AUTHORIZATION_TYPE as A, type Booking as B, BusinessService as C, type BusinessSettings as D, type BusinessType as E, type BusinessWithLocations as F, CHECKOUT_MODE as G, CHECKOUT_MUTATION as H, CHECKOUT_STEP as I, CONTACT_TYPE as J, type CacheOptions as K, type CancelBookingInput as L, type CancelBookingResult as M, type CancelOrderInput as N, type CancellationPolicy as O, CartOperations as P, CatalogueQueries as Q, type CatalogueResult as R, type CatalogueSnapshot as S, type CategoryInfo as T, type ChatAttachment as U, type ChatConversation as V, type ChatConversationResponse as W, type ChatMessage as X, type ChatWidgetStarter as Y, type CheckSlotAvailabilityInput as Z, type CheckSlotAvailabilityResult as _, AUTH_MUTATION as a, type Err as a$, type CheckoutCartData as a0, type CheckoutCartItem as a1, type CheckoutCustomerInfo as a2, type CheckoutFormData as a3, type CheckoutInput as a4, type CheckoutMode as a5, type CheckoutOrderType as a6, type CheckoutPaymentMethod as a7, type CheckoutResult as a8, CheckoutService as a9, DeliveryService as aA, type DepositResult as aB, type DeviceType as aC, type DismissMessageResponse as aD, ELEMENTS_AUTH_CONTACT_TYPES as aE, ELEMENTS_AUTH_MODES as aF, ELEMENTS_AUTH_PROMPTS as aG, ELEMENT_TYPES as aH, EVENT_TYPES as aI, type ElementAppearance as aJ, type ElementEventHandler as aK, type ElementEventType as aL, type ElementOptions as aM, type ElementType as aN, type ElementsAuthContactType as aO, type ElementsAuthMode as aP, type ElementsAuthOptions as aQ, type ElementsAuthPrompt as aR, type ElementsCheckoutData as aS, type ElementsCheckoutResult as aT, type ElementsCustomerInfo as aU, type ElementsOptions as aV, type EnrichedOrder as aW, type EnrichedOrderItem as aX, type EnrollAndLinkOrderInput as aY, type EnrollAndLinkOrderResult as aZ, type EnrollmentData as a_, type CheckoutStatus as aa, type CheckoutStatusContext as ab, type CheckoutStep as ac, CimplifyClient as ad, type CimplifyConfig as ae, CimplifyElement as af, CimplifyElements as ag, type ContactType as ah, type ContentType as ai, type CreateAddressInput as aj, type CreateMobileMoneyInput as ak, type Customer as al, type CustomerAddress as am, type CustomerBooking as an, type CustomerBookingServiceItem as ao, type CustomerLinkPreferences as ap, type CustomerMobileMoney as aq, type CustomerServicePreferences as ar, DEFAULT_COUNTRY as as, DEFAULT_CURRENCY as at, DEVICE_TYPE as au, type DayAvailability as av, type DeliveryFeeDetails as aw, type DeliveryFeeResponse as ax, type DeliveryOption as ay, type DeliveryOptionsResponse as az, type AbortablePromise as b, OrderQueries as b$, type FeeBearerType as b0, type FetchQuoteInput as b1, type FulfillmentLink as b2, type FulfillmentStatus as b3, type FulfillmentSummaryDTO as b4, type FulfillmentType as b5, type FxQuote as b6, type FxQuoteRequest as b7, type FxRateResponse as b8, FxService as b9, type MobileMoneyData as bA, type MobileMoneyDetails as bB, type MobileMoneyProvider as bC, type NextAction as bD, ORDER_MUTATION as bE, ORDER_TYPE as bF, type ObservabilityHooks as bG, type Ok as bH, type Order as bI, type OrderChannel as bJ, type OrderCustomerInfo as bK, type OrderDiscountInfo as bL, type OrderFilter as bM, type OrderFulfillmentSummary as bN, type OrderGroup as bO, type OrderGroupDetails as bP, type OrderGroupPayment as bQ, type OrderGroupPaymentState as bR, type OrderGroupPaymentStatus as bS, type OrderGroupPaymentSummary as bT, type OrderGroupStatus as bU, type OrderHistory as bV, type OrderLineState as bW, type OrderLineStatus as bX, type OrderLocationInfo as bY, type OrderPaymentEvent as bZ, type OrderPricingView as b_, type GetAvailableSlotsInput as ba, type GetDeliveryOptionsParams as bb, type GetOrdersOptions as bc, type GetProductsOptions as bd, type GroupOrderInfo as be, type IframeToParentMessage as bf, InventoryService as bg, LINK_MUTATION as bh, LINK_QUERY as bi, type LineItem as bj, type LineType as bk, type LinkData as bl, type LinkEnrollResult as bm, LinkService as bn, type LinkSession as bo, type LinkStatusResult as bp, type LiteBootstrap as bq, LiteService as br, type Location as bs, type LocationBooking as bt, type LocationTaxBehavior as bu, type LocationTaxOverrides as bv, type LocationTimeProfile as bw, type LocationWithDetails as bx, MESSAGE_TYPES as by, MOBILE_MONEY_PROVIDER as bz, type ActivityRecommendation as c, type ServiceCharge as c$, type OrderSplitDetail as c0, type OrderStaffInfo as c1, type OrderStatus as c2, type OrderTimestampsDTO as c3, type OrderType as c4, type OtpResult as c5, PAYMENT_METHOD as c6, PAYMENT_MUTATION as c7, PAYMENT_STATE as c8, PICKUP_TIME_TYPE as c9, type RelationType as cA, type ReminderMethod as cB, type ReminderSettings as cC, type ReorderResult as cD, type RequestContext as cE, type RequestErrorEvent as cF, type RequestOptions as cG, type RequestOtpInput as cH, type RequestSource as cI, type RequestStartEvent as cJ, type RequestSuccessEvent as cK, type RescheduleBookingInput as cL, type RescheduleBookingResult as cM, type RescheduleHistoryRecord as cN, type ResourceAssignment as cO, type Result as cP, type RetryEvent as cQ, type RevokeAllSessionsResult as cR, type RevokeSessionResult as cS, type Room as cT, type SchedulingMetadata as cU, type SchedulingResult as cV, SchedulingService as cW, type SenderType as cX, type Service as cY, type ServiceAvailabilityParams as cZ, type ServiceAvailabilityResult as c_, type ParentToIframeMessage as ca, type PaymentInfoDTO as cb, type PaymentMethodInfo as cc, type PaymentState as cd, type PickupTime as ce, type PickupTimeType as cf, type PlaceDetailsResponse as cg, PlacesService as ch, type PriceQuote as ci, type PricingOverrides as cj, type ProcessAndResolveOptions as ck, type ProcessCheckoutOptions as cl, type ProcessCheckoutResult as cm, type ProviderResolutionSource as cn, type QuoteBundleSelectionInput as co, type QuoteCompositeSelectionInput as cp, type QuoteDynamicBuckets as cq, type QuoteStatus as cr, type QuoteUiMessage as cs, type ReadRequestOptions as ct, type RefreshQuoteInput as cu, type RefreshQuoteResult as cv, type RefundOrderInput as cw, type RelatedCandidate as cx, type RelatedProduct as cy, type RelatedProductsEnrichment as cz, type ActivityRecommendationsResponse as d, type ServiceNotes as d0, type ServiceScheduleRequest as d1, type ServiceStatus as d2, type SessionActivityData as d3, type SessionChangeEvent as d4, type SessionMessage as d5, type SlotResourceInfo as d6, type SlotStaffInfo as d7, type Staff as d8, type StaffAssignment as d9, createCimplifyClient as dA, createElements as dB, err as dC, flatMap as dD, fromPromise as dE, getOrElse as dF, isErr as dG, isOk as dH, mapError as dI, mapResult as dJ, ok as dK, toNullable as dL, tryCatch as dM, unwrap as dN, type StaffRole as da, type StaffScheduleItem as db, type StockLevel as dc, type StockStatus as dd, type StoreCreditBalance as de, StoreCreditQueries as df, type StorefrontBootstrap as dg, SubscriptionService as dh, SupportService as di, type Table as dj, type TableInfo as dk, type TimeRange as dl, type TimeRanges as dm, type TimeSlot as dn, type TrackCategoryViewOptions as dp, type TrackProductViewOptions as dq, type UpdateAddressInput as dr, type UpdateOrderStatusInput as ds, type UpdateProfileInput as dt, type UploadInitResponse as du, type UploadResult as dv, UploadService as dw, type VerifyOtpInput as dx, combine as dy, combineObject 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 { ad as CimplifyClient } from './client-
|
|
2
|
-
import { A as AppHandle, C as CreateAppOptions } from './server-
|
|
1
|
+
import { ad as CimplifyClient } from './client-BmDNlUMx.js';
|
|
2
|
+
import { A as AppHandle, C as CreateAppOptions } from './server-N4Q24CnO.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Test client + fixtures.
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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 BusinessType, F as BusinessWithLocations, G as CHECKOUT_MODE, H as CHECKOUT_MUTATION, I as CHECKOUT_STEP, J as CONTACT_TYPE, K as CacheOptions, L as CancelBookingInput, M as CancelBookingResult, N as CancelOrderInput, O as CancellationPolicy, P as CartOperations, Q as CatalogueQueries, R as CatalogueResult, S as CatalogueSnapshot, T as CategoryInfo, U as ChatAttachment, V as ChatConversation, W as ChatConversationResponse, X as ChatMessage, Y as ChatWidgetStarter, Z as CheckSlotAvailabilityInput, _ as CheckSlotAvailabilityResult, $ as CheckoutAddressInfo, a0 as CheckoutCartData, a1 as CheckoutCartItem, a2 as CheckoutCustomerInfo, a3 as CheckoutFormData, a4 as CheckoutInput, a5 as CheckoutMode, a9 as CheckoutOperations, a6 as CheckoutOrderType, a7 as CheckoutPaymentMethod, a8 as CheckoutResult, a9 as CheckoutService, aa as CheckoutStatus, ab as CheckoutStatusContext, ac as CheckoutStep, ad as CimplifyClient, ae as CimplifyConfig, af as CimplifyElement, ag as CimplifyElements, ah as ContactType, ai as ContentType, aj as CreateAddressInput, ak as CreateMobileMoneyInput, al as Customer, am as CustomerAddress, an as CustomerBooking, ao as CustomerBookingServiceItem, ap as CustomerLinkPreferences, aq as CustomerMobileMoney, ar as CustomerServicePreferences, as as DEFAULT_COUNTRY, at as DEFAULT_CURRENCY, au as DEVICE_TYPE, av as DayAvailability, aw as DeliveryFeeDetails, ax as DeliveryFeeResponse, ay as
|
|
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 BusinessType, F as BusinessWithLocations, G as CHECKOUT_MODE, H as CHECKOUT_MUTATION, I as CHECKOUT_STEP, J as CONTACT_TYPE, K as CacheOptions, L as CancelBookingInput, M as CancelBookingResult, N as CancelOrderInput, O as CancellationPolicy, P as CartOperations, Q as CatalogueQueries, R as CatalogueResult, S as CatalogueSnapshot, T as CategoryInfo, U as ChatAttachment, V as ChatConversation, W as ChatConversationResponse, X as ChatMessage, Y as ChatWidgetStarter, Z as CheckSlotAvailabilityInput, _ as CheckSlotAvailabilityResult, $ as CheckoutAddressInfo, a0 as CheckoutCartData, a1 as CheckoutCartItem, a2 as CheckoutCustomerInfo, a3 as CheckoutFormData, a4 as CheckoutInput, a5 as CheckoutMode, a9 as CheckoutOperations, a6 as CheckoutOrderType, a7 as CheckoutPaymentMethod, a8 as CheckoutResult, a9 as CheckoutService, aa as CheckoutStatus, ab as CheckoutStatusContext, ac as CheckoutStep, ad as CimplifyClient, ae as CimplifyConfig, af as CimplifyElement, ag as CimplifyElements, ah as ContactType, ai as ContentType, aj as CreateAddressInput, ak as CreateMobileMoneyInput, al as Customer, am as CustomerAddress, an as CustomerBooking, ao as CustomerBookingServiceItem, ap as CustomerLinkPreferences, aq as CustomerMobileMoney, ar as CustomerServicePreferences, as as DEFAULT_COUNTRY, at as DEFAULT_CURRENCY, au as DEVICE_TYPE, av as DayAvailability, aw as DeliveryFeeDetails, ax as DeliveryFeeResponse, ay as DeliveryOption, az as DeliveryOptionsResponse, aA as DeliveryService, aB as DepositResult, aC as DeviceType, aD as DismissMessageResponse, aE as ELEMENTS_AUTH_CONTACT_TYPES, aF as ELEMENTS_AUTH_MODES, aG as ELEMENTS_AUTH_PROMPTS, aH as ELEMENT_TYPES, aI as EVENT_TYPES, aJ as ElementAppearance, aK as ElementEventHandler, aL as ElementEventType, aM as ElementOptions, aN as ElementType, aO as ElementsAuthContactType, aP as ElementsAuthMode, aQ as ElementsAuthOptions, aR as ElementsAuthPrompt, aS as ElementsCheckoutData, aT as ElementsCheckoutResult, aU as ElementsCustomerInfo, aV as ElementsOptions, aW as EnrichedOrder, aX as EnrichedOrderItem, aY as EnrollAndLinkOrderInput, aZ as EnrollAndLinkOrderResult, a_ as EnrollmentData, a$ as Err, b0 as FeeBearerType, b1 as FetchQuoteInput, b2 as FulfillmentLink, b3 as FulfillmentStatus, b4 as FulfillmentSummaryDTO, b5 as FulfillmentType, b6 as FxQuote, b7 as FxQuoteRequest, b8 as FxRateResponse, b9 as FxService, ba as GetAvailableSlotsInput, bb as GetDeliveryOptionsParams, bc as GetOrdersOptions, bd as GetProductsOptions, be as GroupOrderInfo, bf as IframeToParentMessage, bg as InventoryService, bh as LINK_MUTATION, bi as LINK_QUERY, bj as LineItem, bk as LineType, bl as LinkData, bm as LinkEnrollResult, bn as LinkService, bo as LinkSession, bp as LinkStatusResult, bq as LiteBootstrap, br as LiteService, bs as Location, bt as LocationBooking, bu as LocationTaxBehavior, bv as LocationTaxOverrides, bw as LocationTimeProfile, bx as LocationWithDetails, by as MESSAGE_TYPES, bz as MOBILE_MONEY_PROVIDER, bA as MobileMoneyData, bB as MobileMoneyDetails, bC as MobileMoneyProvider, bD as NextAction, bE as ORDER_MUTATION, bF as ORDER_TYPE, bG as ObservabilityHooks, bH as Ok, bI as Order, bJ as OrderChannel, bK as OrderCustomerInfo, bL as OrderDiscountInfo, bM as OrderFilter, bN as OrderFulfillmentSummary, bO as OrderGroup, bP as OrderGroupDetails, bQ as OrderGroupPayment, bR as OrderGroupPaymentState, bS as OrderGroupPaymentStatus, bT as OrderGroupPaymentSummary, bU as OrderGroupStatus, bV as OrderHistory, bW as OrderLineState, bX as OrderLineStatus, bY as OrderLocationInfo, bZ as OrderPaymentEvent, b_ as OrderPricingView, b$ as OrderQueries, c0 as OrderSplitDetail, c1 as OrderStaffInfo, c2 as OrderStatus, c3 as OrderTimestampsDTO, c4 as OrderType, c5 as OtpResult, c6 as PAYMENT_METHOD, c7 as PAYMENT_MUTATION, c8 as PAYMENT_STATE, c9 as PICKUP_TIME_TYPE, ca as ParentToIframeMessage, cb as PaymentInfoDTO, cc as PaymentMethodInfo, cd as PaymentState, ce as PickupTime, cf as PickupTimeType, cg as PlaceDetailsResponse, ch as PlacesService, ci as PriceQuote, cj as PricingOverrides, ck as ProcessAndResolveOptions, cl as ProcessCheckoutOptions, cm as ProcessCheckoutResult, cn as ProviderResolutionSource, co as QuoteBundleSelectionInput, cp as QuoteCompositeSelectionInput, cq as QuoteDynamicBuckets, cr as QuoteStatus, cs as QuoteUiMessage, ct as ReadRequestOptions, cu as RefreshQuoteInput, cv as RefreshQuoteResult, cw as RefundOrderInput, cx as RelatedCandidate, cy as RelatedProduct, cz as RelatedProductsEnrichment, cA as RelationType, cB as ReminderMethod, cC as ReminderSettings, cD as ReorderResult, cE as RequestContext, cF as RequestErrorEvent, cG as RequestOptions, cH as RequestOtpInput, cI as RequestSource, cJ as RequestStartEvent, cK as RequestSuccessEvent, cL as RescheduleBookingInput, cM as RescheduleBookingResult, cN as RescheduleHistoryRecord, cO as ResourceAssignment, cP as Result, cQ as RetryEvent, cR as RevokeAllSessionsResult, cS as RevokeSessionResult, cT as Room, cU as SchedulingMetadata, cV as SchedulingResult, cW as SchedulingService, cX as SenderType, cY as Service, cZ as ServiceAvailabilityParams, c_ as ServiceAvailabilityResult, c$ as ServiceCharge, d0 as ServiceNotes, d1 as ServiceScheduleRequest, d2 as ServiceStatus, d3 as SessionActivityData, d4 as SessionChangeEvent, d5 as SessionMessage, d6 as SlotResourceInfo, d7 as SlotStaffInfo, d8 as Staff, d9 as StaffAssignment, da as StaffRole, db as StaffScheduleItem, dc as StockLevel, dd as StockStatus, de as StoreCreditBalance, df as StoreCreditQueries, dg as StorefrontBootstrap, dh as SubscriptionService, di as SupportService, dj as Table, dk as TableInfo, dl as TimeRange, dm as TimeRanges, dn as TimeSlot, dp as TrackCategoryViewOptions, dq as TrackProductViewOptions, dr as UpdateAddressInput, ds as UpdateOrderStatusInput, dt as UpdateProfileInput, du as UploadInitResponse, dv as UploadResult, dw as UploadService, dx as VerifyOtpInput, dy as combine, dz as combineObject, dA as createCimplifyClient, dB as createElements, dC as err, dD as flatMap, dE as fromPromise, dF as getOrElse, dG as isErr, dH as isOk, dI as mapError, dJ as mapResult, dK as ok, dL as toNullable, dM as tryCatch, dN as unwrap } from './client-Cx3WLhMj.mjs';
|
|
2
2
|
import { b9 as ProductWithDetails, j as ApiError } from './product-BgFOFmQw.mjs';
|
|
3
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 BenefitType, p as BillingFrequency, q as BillingMarkupType, r as BillingPlanType, s as Bundle, t as BundleComponentData, u as BundleComponentInfo, v as BundleComponentVariantView, w as BundleComponentView, x as BundlePriceType, y as BundleProduct, z as BundleSelectionData, C as BundleSelectionInput, D as BundleStoredSelection, E as BundleSummary, F as BundleWithDetails, G as Cart, H as CartAddOn, I as CartChannel, J as CartItem, K as CartItemDetails, L as CartMutationResult, M as CartNotice, N as CartStatus, O as CartSummary, P as CartTotals, Q as Category, R as CategorySummary, S as ChosenPrice, T as CimplifyError, U as Collection, V as CollectionProduct, W as CollectionSummary, X as ComponentGroup, Y as ComponentGroupWithComponents, Z as ComponentPriceBreakdown, _ as ComponentSchedulingData, $ as ComponentSelectionInput, a0 as ComponentSourceType, a1 as Composite, a2 as CompositeComponent, a3 as CompositeComponentView, a4 as CompositeGroupView, a5 as CompositePriceBreakdown, a6 as CompositePriceResult, a7 as CompositePricingMode, a8 as CompositeSelectionData, $ as CompositeSelectionInput, a9 as CompositeStoredSelection, aa as CompositeWithDetails, ab as CurrencyCode, ac as CustomAttributeDefinition, ad as CustomAttributeValue, ae as CustomerInputValue, af as DURATION_UNIT, ag as DateRangeValue, ah as Deal, ai as DealBenefitType, aj as DepositType, ak as DigitalProductType, al as DiscountBreakdown, am as DiscountDetails, an as DiscountValidation, ao as DisplayAddOn, ap as DisplayAddOnOption, aq as DisplayCart, ar as DisplayCartItem, as as DisplayMode, at as DurationUnit, au as ERROR_HINTS, av as EligiblePlansQuery, aw as ErrorCode, ax as ErrorCodeType, ay as ErrorHint, az as FacetValue, aA as FormattedPlanOption, aB as GroupPricingBehavior, aC as INPUT_FIELD_TYPE, aD as IdempotencyMismatchError, aE as InputFieldType, aF as InputFieldValidation, aG as InventoryType, aH as KnowledgeArticle, aI as LineConfiguration, aJ as LocationProductPrice, aK as LocationValue, aL as MeasurementValue, aM as Money, aN as PRODUCT_TYPE, aO as Pagination, aP as PaginationParams, aQ as PhoneValue, aR as Price, aS as PriceAdjustment, aT as PriceDecisionPath, aU as PriceEntryType, aV as PricePathTaxInfo, aW as PriceSource, aX as Product, aY as ProductAddOn, aZ as ProductAvailability, a_ as ProductAvailabilityNow, a$ as ProductBillingPlan, b0 as ProductDealInfo, b1 as ProductInputField, b2 as ProductProperty, b3 as ProductRenderHint, b4 as ProductTaxonomy, b5 as ProductTimeProfile, b6 as ProductType, b7 as ProductVariant, b8 as ProductVariantValue, ba as PropertyFacet, bb as PropertySource, bc as QuantityPricingTier, bd as RENDER_HINT, be as RelatedProductView, bf as SalesChannel, bg as SchedulingMode, bh as SelectedAddOnOption, bi as SemanticKind, bj as SignatureValue, bk as Subscription, bl as SubscriptionInvoice, bm as SubscriptionItem, bn as SubscriptionStatus, bo as SubscriptionWithDetails, bp as Tag, bq as TagsResponse, br as TaxPathComponent, bs as TaxonomyAttributeTemplate, bt as TaxonomyWithChildren, bu as UICart, bv as UICartBusiness, bw as UICartCustomer, bx as UICartLocation, by as UICartPricing, bz as UpdateCartItemInput, bA as VariantAxis, bB as VariantAxisSelection, bC as VariantAxisValue, bD as VariantAxisValueView, bE as VariantAxisView, bF as VariantAxisWithValues, bG as VariantDetails, bH as VariantDetailsDTO, bI as VariantDisplayAttribute, bJ as VariantLocationAvailability, bK as VariantStrategy, bL as VariantView, bM as ZERO, bN as currencyCode, bO as enrichError, bP as getErrorHint, bQ as isCimplifyError, bR as isIdempotencyMismatchError, bS as isQuoteConflictRequiringConsent, bT as isQuoteError, bU as isRetryableError, bV as isSupportedCurrency, bW as money, bX as moneyFromNumber } from './product-BgFOFmQw.mjs';
|
|
4
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-Bu76UyFz.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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 BusinessType, F as BusinessWithLocations, G as CHECKOUT_MODE, H as CHECKOUT_MUTATION, I as CHECKOUT_STEP, J as CONTACT_TYPE, K as CacheOptions, L as CancelBookingInput, M as CancelBookingResult, N as CancelOrderInput, O as CancellationPolicy, P as CartOperations, Q as CatalogueQueries, R as CatalogueResult, S as CatalogueSnapshot, T as CategoryInfo, U as ChatAttachment, V as ChatConversation, W as ChatConversationResponse, X as ChatMessage, Y as ChatWidgetStarter, Z as CheckSlotAvailabilityInput, _ as CheckSlotAvailabilityResult, $ as CheckoutAddressInfo, a0 as CheckoutCartData, a1 as CheckoutCartItem, a2 as CheckoutCustomerInfo, a3 as CheckoutFormData, a4 as CheckoutInput, a5 as CheckoutMode, a9 as CheckoutOperations, a6 as CheckoutOrderType, a7 as CheckoutPaymentMethod, a8 as CheckoutResult, a9 as CheckoutService, aa as CheckoutStatus, ab as CheckoutStatusContext, ac as CheckoutStep, ad as CimplifyClient, ae as CimplifyConfig, af as CimplifyElement, ag as CimplifyElements, ah as ContactType, ai as ContentType, aj as CreateAddressInput, ak as CreateMobileMoneyInput, al as Customer, am as CustomerAddress, an as CustomerBooking, ao as CustomerBookingServiceItem, ap as CustomerLinkPreferences, aq as CustomerMobileMoney, ar as CustomerServicePreferences, as as DEFAULT_COUNTRY, at as DEFAULT_CURRENCY, au as DEVICE_TYPE, av as DayAvailability, aw as DeliveryFeeDetails, ax as DeliveryFeeResponse, ay as
|
|
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 BusinessType, F as BusinessWithLocations, G as CHECKOUT_MODE, H as CHECKOUT_MUTATION, I as CHECKOUT_STEP, J as CONTACT_TYPE, K as CacheOptions, L as CancelBookingInput, M as CancelBookingResult, N as CancelOrderInput, O as CancellationPolicy, P as CartOperations, Q as CatalogueQueries, R as CatalogueResult, S as CatalogueSnapshot, T as CategoryInfo, U as ChatAttachment, V as ChatConversation, W as ChatConversationResponse, X as ChatMessage, Y as ChatWidgetStarter, Z as CheckSlotAvailabilityInput, _ as CheckSlotAvailabilityResult, $ as CheckoutAddressInfo, a0 as CheckoutCartData, a1 as CheckoutCartItem, a2 as CheckoutCustomerInfo, a3 as CheckoutFormData, a4 as CheckoutInput, a5 as CheckoutMode, a9 as CheckoutOperations, a6 as CheckoutOrderType, a7 as CheckoutPaymentMethod, a8 as CheckoutResult, a9 as CheckoutService, aa as CheckoutStatus, ab as CheckoutStatusContext, ac as CheckoutStep, ad as CimplifyClient, ae as CimplifyConfig, af as CimplifyElement, ag as CimplifyElements, ah as ContactType, ai as ContentType, aj as CreateAddressInput, ak as CreateMobileMoneyInput, al as Customer, am as CustomerAddress, an as CustomerBooking, ao as CustomerBookingServiceItem, ap as CustomerLinkPreferences, aq as CustomerMobileMoney, ar as CustomerServicePreferences, as as DEFAULT_COUNTRY, at as DEFAULT_CURRENCY, au as DEVICE_TYPE, av as DayAvailability, aw as DeliveryFeeDetails, ax as DeliveryFeeResponse, ay as DeliveryOption, az as DeliveryOptionsResponse, aA as DeliveryService, aB as DepositResult, aC as DeviceType, aD as DismissMessageResponse, aE as ELEMENTS_AUTH_CONTACT_TYPES, aF as ELEMENTS_AUTH_MODES, aG as ELEMENTS_AUTH_PROMPTS, aH as ELEMENT_TYPES, aI as EVENT_TYPES, aJ as ElementAppearance, aK as ElementEventHandler, aL as ElementEventType, aM as ElementOptions, aN as ElementType, aO as ElementsAuthContactType, aP as ElementsAuthMode, aQ as ElementsAuthOptions, aR as ElementsAuthPrompt, aS as ElementsCheckoutData, aT as ElementsCheckoutResult, aU as ElementsCustomerInfo, aV as ElementsOptions, aW as EnrichedOrder, aX as EnrichedOrderItem, aY as EnrollAndLinkOrderInput, aZ as EnrollAndLinkOrderResult, a_ as EnrollmentData, a$ as Err, b0 as FeeBearerType, b1 as FetchQuoteInput, b2 as FulfillmentLink, b3 as FulfillmentStatus, b4 as FulfillmentSummaryDTO, b5 as FulfillmentType, b6 as FxQuote, b7 as FxQuoteRequest, b8 as FxRateResponse, b9 as FxService, ba as GetAvailableSlotsInput, bb as GetDeliveryOptionsParams, bc as GetOrdersOptions, bd as GetProductsOptions, be as GroupOrderInfo, bf as IframeToParentMessage, bg as InventoryService, bh as LINK_MUTATION, bi as LINK_QUERY, bj as LineItem, bk as LineType, bl as LinkData, bm as LinkEnrollResult, bn as LinkService, bo as LinkSession, bp as LinkStatusResult, bq as LiteBootstrap, br as LiteService, bs as Location, bt as LocationBooking, bu as LocationTaxBehavior, bv as LocationTaxOverrides, bw as LocationTimeProfile, bx as LocationWithDetails, by as MESSAGE_TYPES, bz as MOBILE_MONEY_PROVIDER, bA as MobileMoneyData, bB as MobileMoneyDetails, bC as MobileMoneyProvider, bD as NextAction, bE as ORDER_MUTATION, bF as ORDER_TYPE, bG as ObservabilityHooks, bH as Ok, bI as Order, bJ as OrderChannel, bK as OrderCustomerInfo, bL as OrderDiscountInfo, bM as OrderFilter, bN as OrderFulfillmentSummary, bO as OrderGroup, bP as OrderGroupDetails, bQ as OrderGroupPayment, bR as OrderGroupPaymentState, bS as OrderGroupPaymentStatus, bT as OrderGroupPaymentSummary, bU as OrderGroupStatus, bV as OrderHistory, bW as OrderLineState, bX as OrderLineStatus, bY as OrderLocationInfo, bZ as OrderPaymentEvent, b_ as OrderPricingView, b$ as OrderQueries, c0 as OrderSplitDetail, c1 as OrderStaffInfo, c2 as OrderStatus, c3 as OrderTimestampsDTO, c4 as OrderType, c5 as OtpResult, c6 as PAYMENT_METHOD, c7 as PAYMENT_MUTATION, c8 as PAYMENT_STATE, c9 as PICKUP_TIME_TYPE, ca as ParentToIframeMessage, cb as PaymentInfoDTO, cc as PaymentMethodInfo, cd as PaymentState, ce as PickupTime, cf as PickupTimeType, cg as PlaceDetailsResponse, ch as PlacesService, ci as PriceQuote, cj as PricingOverrides, ck as ProcessAndResolveOptions, cl as ProcessCheckoutOptions, cm as ProcessCheckoutResult, cn as ProviderResolutionSource, co as QuoteBundleSelectionInput, cp as QuoteCompositeSelectionInput, cq as QuoteDynamicBuckets, cr as QuoteStatus, cs as QuoteUiMessage, ct as ReadRequestOptions, cu as RefreshQuoteInput, cv as RefreshQuoteResult, cw as RefundOrderInput, cx as RelatedCandidate, cy as RelatedProduct, cz as RelatedProductsEnrichment, cA as RelationType, cB as ReminderMethod, cC as ReminderSettings, cD as ReorderResult, cE as RequestContext, cF as RequestErrorEvent, cG as RequestOptions, cH as RequestOtpInput, cI as RequestSource, cJ as RequestStartEvent, cK as RequestSuccessEvent, cL as RescheduleBookingInput, cM as RescheduleBookingResult, cN as RescheduleHistoryRecord, cO as ResourceAssignment, cP as Result, cQ as RetryEvent, cR as RevokeAllSessionsResult, cS as RevokeSessionResult, cT as Room, cU as SchedulingMetadata, cV as SchedulingResult, cW as SchedulingService, cX as SenderType, cY as Service, cZ as ServiceAvailabilityParams, c_ as ServiceAvailabilityResult, c$ as ServiceCharge, d0 as ServiceNotes, d1 as ServiceScheduleRequest, d2 as ServiceStatus, d3 as SessionActivityData, d4 as SessionChangeEvent, d5 as SessionMessage, d6 as SlotResourceInfo, d7 as SlotStaffInfo, d8 as Staff, d9 as StaffAssignment, da as StaffRole, db as StaffScheduleItem, dc as StockLevel, dd as StockStatus, de as StoreCreditBalance, df as StoreCreditQueries, dg as StorefrontBootstrap, dh as SubscriptionService, di as SupportService, dj as Table, dk as TableInfo, dl as TimeRange, dm as TimeRanges, dn as TimeSlot, dp as TrackCategoryViewOptions, dq as TrackProductViewOptions, dr as UpdateAddressInput, ds as UpdateOrderStatusInput, dt as UpdateProfileInput, du as UploadInitResponse, dv as UploadResult, dw as UploadService, dx as VerifyOtpInput, dy as combine, dz as combineObject, dA as createCimplifyClient, dB as createElements, dC as err, dD as flatMap, dE as fromPromise, dF as getOrElse, dG as isErr, dH as isOk, dI as mapError, dJ as mapResult, dK as ok, dL as toNullable, dM as tryCatch, dN as unwrap } from './client-BmDNlUMx.js';
|
|
2
2
|
import { b9 as ProductWithDetails, j as ApiError } from './product-BgFOFmQw.js';
|
|
3
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 BenefitType, p as BillingFrequency, q as BillingMarkupType, r as BillingPlanType, s as Bundle, t as BundleComponentData, u as BundleComponentInfo, v as BundleComponentVariantView, w as BundleComponentView, x as BundlePriceType, y as BundleProduct, z as BundleSelectionData, C as BundleSelectionInput, D as BundleStoredSelection, E as BundleSummary, F as BundleWithDetails, G as Cart, H as CartAddOn, I as CartChannel, J as CartItem, K as CartItemDetails, L as CartMutationResult, M as CartNotice, N as CartStatus, O as CartSummary, P as CartTotals, Q as Category, R as CategorySummary, S as ChosenPrice, T as CimplifyError, U as Collection, V as CollectionProduct, W as CollectionSummary, X as ComponentGroup, Y as ComponentGroupWithComponents, Z as ComponentPriceBreakdown, _ as ComponentSchedulingData, $ as ComponentSelectionInput, a0 as ComponentSourceType, a1 as Composite, a2 as CompositeComponent, a3 as CompositeComponentView, a4 as CompositeGroupView, a5 as CompositePriceBreakdown, a6 as CompositePriceResult, a7 as CompositePricingMode, a8 as CompositeSelectionData, $ as CompositeSelectionInput, a9 as CompositeStoredSelection, aa as CompositeWithDetails, ab as CurrencyCode, ac as CustomAttributeDefinition, ad as CustomAttributeValue, ae as CustomerInputValue, af as DURATION_UNIT, ag as DateRangeValue, ah as Deal, ai as DealBenefitType, aj as DepositType, ak as DigitalProductType, al as DiscountBreakdown, am as DiscountDetails, an as DiscountValidation, ao as DisplayAddOn, ap as DisplayAddOnOption, aq as DisplayCart, ar as DisplayCartItem, as as DisplayMode, at as DurationUnit, au as ERROR_HINTS, av as EligiblePlansQuery, aw as ErrorCode, ax as ErrorCodeType, ay as ErrorHint, az as FacetValue, aA as FormattedPlanOption, aB as GroupPricingBehavior, aC as INPUT_FIELD_TYPE, aD as IdempotencyMismatchError, aE as InputFieldType, aF as InputFieldValidation, aG as InventoryType, aH as KnowledgeArticle, aI as LineConfiguration, aJ as LocationProductPrice, aK as LocationValue, aL as MeasurementValue, aM as Money, aN as PRODUCT_TYPE, aO as Pagination, aP as PaginationParams, aQ as PhoneValue, aR as Price, aS as PriceAdjustment, aT as PriceDecisionPath, aU as PriceEntryType, aV as PricePathTaxInfo, aW as PriceSource, aX as Product, aY as ProductAddOn, aZ as ProductAvailability, a_ as ProductAvailabilityNow, a$ as ProductBillingPlan, b0 as ProductDealInfo, b1 as ProductInputField, b2 as ProductProperty, b3 as ProductRenderHint, b4 as ProductTaxonomy, b5 as ProductTimeProfile, b6 as ProductType, b7 as ProductVariant, b8 as ProductVariantValue, ba as PropertyFacet, bb as PropertySource, bc as QuantityPricingTier, bd as RENDER_HINT, be as RelatedProductView, bf as SalesChannel, bg as SchedulingMode, bh as SelectedAddOnOption, bi as SemanticKind, bj as SignatureValue, bk as Subscription, bl as SubscriptionInvoice, bm as SubscriptionItem, bn as SubscriptionStatus, bo as SubscriptionWithDetails, bp as Tag, bq as TagsResponse, br as TaxPathComponent, bs as TaxonomyAttributeTemplate, bt as TaxonomyWithChildren, bu as UICart, bv as UICartBusiness, bw as UICartCustomer, bx as UICartLocation, by as UICartPricing, bz as UpdateCartItemInput, bA as VariantAxis, bB as VariantAxisSelection, bC as VariantAxisValue, bD as VariantAxisValueView, bE as VariantAxisView, bF as VariantAxisWithValues, bG as VariantDetails, bH as VariantDetailsDTO, bI as VariantDisplayAttribute, bJ as VariantLocationAvailability, bK as VariantStrategy, bL as VariantView, bM as ZERO, bN as currencyCode, bO as enrichError, bP as getErrorHint, bQ as isCimplifyError, bR as isIdempotencyMismatchError, bS as isQuoteConflictRequiringConsent, bT as isQuoteError, bU as isRetryableError, bV as isSupportedCurrency, bW as money, bX as moneyFromNumber } from './product-BgFOFmQw.js';
|
|
4
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-Moe4cGMB.js';
|