@cimplify/sdk 0.27.0 → 0.29.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-4JSRPSNA.js → chunk-R4AKAGZQ.js} +162 -0
- package/dist/{chunk-MISITC47.mjs → chunk-REXW2PET.mjs} +159 -1
- package/dist/{index-DBM89ktY.d.ts → index-Cjfczg2W.d.ts} +2 -2
- package/dist/{index-2JxW7TuQ.d.mts → index-D4-b5OZO.d.mts} +2 -2
- package/dist/{index-BAu-zmIP.d.ts → index-DijjnO-u.d.mts} +73 -2
- package/dist/{index-DT-24csu.d.mts → index-DwvzjdGi.d.ts} +73 -2
- package/dist/index.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +25 -9
- package/dist/index.mjs +1 -1
- package/dist/{payment-5a21yzi7.d.mts → payment-BeLHpQMo.d.mts} +155 -1
- package/dist/{payment-5a21yzi7.d.ts → payment-BeLHpQMo.d.ts} +155 -1
- package/dist/{price-BS0Z5Oi9.d.ts → price-C6gfys5B.d.ts} +1 -1
- package/dist/{price-CGPMlQUk.d.mts → price-Dvl1p9AM.d.mts} +1 -1
- package/dist/react.d.mts +86 -4
- package/dist/react.d.ts +86 -4
- package/dist/react.js +1583 -340
- package/dist/react.mjs +1260 -24
- 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/cart-summary.json +1 -1
- package/registry/product-card.json +1 -1
- package/registry/product-customizer.json +1 -1
- package/registry/product-page.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aj as Category, N as Product, af as AddOnWithOptions, d as Pagination, h as CimplifyError, a4 as ProductWithDetails, a6 as ProductVariant, a8 as VariantAxis, ad as VariantAxisSelection, ae as AddOn, al as Collection, aq as BundleSummary, ap as Bundle, aC as Composite, aJ as ComponentSelectionInput, aK as CompositePriceResult, C as ChosenPrice, aR as ProductTaxonomy, aS as TaxonomyWithChildren, bX as EligiblePlansQuery, bW as ProductBillingPlan, aQ as ProductTimeProfile, aT as ProductAvailabilityNow, aV as Deal, aW as ProductDealInfo, aX as DiscountValidation, aZ as TagsResponse, B as CustomAttributeDefinition, F as CustomAttributeValue, J as PropertyFacet, T as TaxonomyAttributeTemplate, L as KnowledgeArticle, bB as UICart, bm as Cart, bn as CartItem, bF as CartSummary, bD as AddToCartInput, bE as UpdateCartItemInput, b9 as DiscountDetails, M as Money, a as CurrencyCode, bl as LineConfiguration, bK as AuthorizationType, bM as PaymentMethod, bO as InitializePaymentResult, bS as SubmitAuthorizationInput, bQ as PaymentStatusResponse, t as DurationUnit, b_ as Subscription, c1 as SubscriptionWithDetails } from './payment-BeLHpQMo.js';
|
|
2
2
|
|
|
3
3
|
interface RequestContext {
|
|
4
4
|
method: "GET" | "POST" | "PATCH" | "DELETE";
|
|
@@ -1770,6 +1770,71 @@ declare class ActivityService {
|
|
|
1770
1770
|
private sendEvents;
|
|
1771
1771
|
}
|
|
1772
1772
|
|
|
1773
|
+
declare class SubscriptionService {
|
|
1774
|
+
private client;
|
|
1775
|
+
constructor(client: CimplifyClient);
|
|
1776
|
+
list(): Promise<Result<Subscription[], CimplifyError>>;
|
|
1777
|
+
get(id: string): Promise<Result<SubscriptionWithDetails, CimplifyError>>;
|
|
1778
|
+
cancel(id: string, reason?: string): Promise<Result<{
|
|
1779
|
+
success: boolean;
|
|
1780
|
+
}, CimplifyError>>;
|
|
1781
|
+
pause(id: string): Promise<Result<{
|
|
1782
|
+
success: boolean;
|
|
1783
|
+
}, CimplifyError>>;
|
|
1784
|
+
resume(id: string): Promise<Result<{
|
|
1785
|
+
success: boolean;
|
|
1786
|
+
}, CimplifyError>>;
|
|
1787
|
+
skipNextRenewal(id: string): Promise<Result<{
|
|
1788
|
+
success: boolean;
|
|
1789
|
+
}, CimplifyError>>;
|
|
1790
|
+
}
|
|
1791
|
+
|
|
1792
|
+
interface UploadInitResponse {
|
|
1793
|
+
upload_id: string;
|
|
1794
|
+
upload_url: string;
|
|
1795
|
+
expires_in_secs: number;
|
|
1796
|
+
}
|
|
1797
|
+
interface UploadResult {
|
|
1798
|
+
id: string;
|
|
1799
|
+
url: string;
|
|
1800
|
+
filename: string;
|
|
1801
|
+
content_type: string;
|
|
1802
|
+
size_bytes: number;
|
|
1803
|
+
}
|
|
1804
|
+
declare class UploadService {
|
|
1805
|
+
private client;
|
|
1806
|
+
constructor(client: CimplifyClient);
|
|
1807
|
+
init(filename: string, contentType: string, sizeBytes: number): Promise<Result<UploadInitResponse, CimplifyError>>;
|
|
1808
|
+
confirm(uploadId: string): Promise<Result<UploadResult, CimplifyError>>;
|
|
1809
|
+
upload(file: File): Promise<Result<UploadResult, CimplifyError>>;
|
|
1810
|
+
}
|
|
1811
|
+
|
|
1812
|
+
interface AutocompletePrediction {
|
|
1813
|
+
description: string;
|
|
1814
|
+
place_id: string;
|
|
1815
|
+
}
|
|
1816
|
+
interface AutocompleteResponse {
|
|
1817
|
+
predictions: AutocompletePrediction[];
|
|
1818
|
+
}
|
|
1819
|
+
interface PlaceDetailsResponse {
|
|
1820
|
+
formatted_address: string;
|
|
1821
|
+
street_address?: string;
|
|
1822
|
+
apartment?: string;
|
|
1823
|
+
city?: string;
|
|
1824
|
+
region?: string;
|
|
1825
|
+
postal_code?: string;
|
|
1826
|
+
country?: string;
|
|
1827
|
+
latitude: number;
|
|
1828
|
+
longitude: number;
|
|
1829
|
+
place_id: string;
|
|
1830
|
+
}
|
|
1831
|
+
declare class PlacesService {
|
|
1832
|
+
private client;
|
|
1833
|
+
constructor(client: CimplifyClient);
|
|
1834
|
+
autocomplete(input: string, sessionToken?: string): Promise<Result<AutocompleteResponse, CimplifyError>>;
|
|
1835
|
+
details(placeId: string, sessionToken?: string): Promise<Result<PlaceDetailsResponse, CimplifyError>>;
|
|
1836
|
+
}
|
|
1837
|
+
|
|
1773
1838
|
interface DeliveryFeeResponse {
|
|
1774
1839
|
serviceable: boolean;
|
|
1775
1840
|
fee: Money | null;
|
|
@@ -2142,6 +2207,9 @@ declare class CimplifyClient {
|
|
|
2142
2207
|
private _cart?;
|
|
2143
2208
|
private _checkout?;
|
|
2144
2209
|
private _orders?;
|
|
2210
|
+
private _subscriptions?;
|
|
2211
|
+
private _uploads?;
|
|
2212
|
+
private _places?;
|
|
2145
2213
|
private _link?;
|
|
2146
2214
|
private _auth?;
|
|
2147
2215
|
private _business?;
|
|
@@ -2186,6 +2254,9 @@ declare class CimplifyClient {
|
|
|
2186
2254
|
get cart(): CartOperations;
|
|
2187
2255
|
get checkout(): CheckoutService;
|
|
2188
2256
|
get orders(): OrderQueries;
|
|
2257
|
+
get subscriptions(): SubscriptionService;
|
|
2258
|
+
get uploads(): UploadService;
|
|
2259
|
+
get places(): PlacesService;
|
|
2189
2260
|
get link(): LinkService;
|
|
2190
2261
|
get auth(): AuthService;
|
|
2191
2262
|
get business(): BusinessService;
|
|
@@ -2199,4 +2270,4 @@ declare class CimplifyClient {
|
|
|
2199
2270
|
}
|
|
2200
2271
|
declare function createCimplifyClient(config?: CimplifyConfig): CimplifyClient;
|
|
2201
2272
|
|
|
2202
|
-
export {
|
|
2273
|
+
export { CimplifyElement 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, type LiteBootstrap as Y, type TableInfo as Z, CimplifyElements as _, type CimplifyConfig as a, type OrderChannel as a$, createElements as a0, MESSAGE_TYPES as a1, EVENT_TYPES as a2, ELEMENT_TYPES as a3, type ElementsOptions as a4, type ElementOptions as a5, type ElementType as a6, type ElementEventType as a7, type CheckoutMode as a8, type CheckoutOrderType as a9, AUTH_MUTATION as aA, CHECKOUT_MUTATION as aB, PAYMENT_MUTATION as aC, ORDER_MUTATION as aD, DEFAULT_CURRENCY as aE, DEFAULT_COUNTRY as aF, type Result as aG, type Ok as aH, type Err as aI, ok as aJ, err as aK, isOk as aL, isErr as aM, mapResult as aN, mapError as aO, flatMap as aP, getOrElse as aQ, unwrap as aR, toNullable as aS, fromPromise as aT, tryCatch as aU, combine as aV, combineObject as aW, type CatalogueResult as aX, type CatalogueSnapshot as aY, type OrderStatus as aZ, type PaymentState as a_, type CheckoutPaymentMethod as aa, type CheckoutStep as ab, type CheckoutFormData as ac, type CheckoutResult as ad, type NextAction as ae, type ProcessCheckoutOptions as af, type ProcessCheckoutResult as ag, type ProcessAndResolveOptions as ah, type CheckoutStatus as ai, type CheckoutStatusContext as aj, type AbortablePromise as ak, type MobileMoneyProvider as al, type DeviceType as am, type ContactType as an, CHECKOUT_MODE as ao, ORDER_TYPE as ap, PAYMENT_METHOD as aq, CHECKOUT_STEP as ar, PAYMENT_STATE as as, PICKUP_TIME_TYPE as at, MOBILE_MONEY_PROVIDER as au, AUTHORIZATION_TYPE as av, DEVICE_TYPE as aw, CONTACT_TYPE as ax, LINK_QUERY as ay, LINK_MUTATION as az, CatalogueQueries as b, type LocationWithDetails as b$, type LineType as b0, type OrderLineState as b1, type OrderLineStatus as b2, type FulfillmentType as b3, type FulfillmentStatus as b4, type FulfillmentLink as b5, type OrderFulfillmentSummary as b6, type FeeBearerType as b7, type AmountToPay as b8, type LineItem as b9, type StaffAssignment as bA, type ResourceAssignment as bB, type SchedulingResult as bC, type DepositResult as bD, type ServiceScheduleRequest as bE, type StaffScheduleItem as bF, type LocationAppointment as bG, type ProviderResolutionSource as bH, type DeliveryFeeDetails as bI, type RelationType as bJ, type RelatedProduct as bK, type RelatedCandidate as bL, type RelatedProductsEnrichment as bM, type BusinessType as bN, type BusinessPreferences as bO, type Business as bP, type LocationTaxBehavior as bQ, type LocationTaxOverrides as bR, type Location as bS, type TimeRange as bT, type TimeRanges as bU, type LocationTimeProfile as bV, type Table as bW, type Room as bX, type ServiceCharge as bY, type StorefrontBootstrap as bZ, type BusinessWithLocations as b_, type Order as ba, type OrderHistory as bb, type OrderGroupStatus as bc, type OrderGroupPaymentState as bd, type OrderGroupPaymentStatus as be, type OrderGroup as bf, type OrderGroupPayment as bg, type OrderSplitDetail as bh, type OrderGroupPaymentSummary as bi, type OrderGroupDetails as bj, type OrderPaymentEvent as bk, type OrderFilter as bl, type CheckoutInput as bm, type UpdateOrderStatusInput as bn, type CancelOrderInput as bo, type RefundOrderInput as bp, type ServiceStatus as bq, type StaffRole as br, type ReminderMethod as bs, type CustomerServicePreferences as bt, type BufferTimes as bu, type ReminderSettings as bv, type CancellationPolicy as bw, type ServiceNotes as bx, type PricingOverrides as by, type SchedulingMetadata as bz, createCimplifyClient as c, type RetryEvent as c$, type BusinessSettings as c0, type BusinessHours as c1, type CategoryInfo as c2, type Service as c3, type Staff as c4, type TimeSlot as c5, type SlotResourceInfo as c6, type SlotStaffInfo as c7, type AvailableSlot as c8, type DayAvailability as c9, type UpdateAddressInput as cA, type CreateMobileMoneyInput as cB, type EnrollmentData as cC, type AddressData as cD, type MobileMoneyData as cE, type EnrollAndLinkOrderInput as cF, type LinkStatusResult as cG, type LinkEnrollResult as cH, type EnrollAndLinkOrderResult as cI, type LinkSession as cJ, type RevokeSessionResult as cK, type RevokeAllSessionsResult as cL, type RequestOtpInput as cM, type VerifyOtpInput as cN, type AuthResponse as cO, type PickupTimeType as cP, type PickupTime as cQ, type CheckoutAddressInfo as cR, type MobileMoneyDetails as cS, type CheckoutCustomerInfo as cT, type FxQuoteRequest as cU, type FxQuote as cV, type FxRateResponse as cW, type RequestContext as cX, type RequestStartEvent as cY, type RequestSuccessEvent as cZ, type RequestErrorEvent as c_, type BookingStatus as ca, type Booking as cb, type BookingWithDetails as cc, type CustomerBookingServiceItem as cd, type CustomerBooking as ce, type GetAvailableSlotsInput as cf, type CheckSlotAvailabilityInput as cg, type CheckSlotAvailabilityResult as ch, type RescheduleBookingInput as ci, type CancelBookingInput as cj, type CancelBookingResult as ck, type RescheduleBookingResult as cl, type ServiceAvailabilityParams as cm, type ServiceAvailabilityResult as cn, type StockStatus as co, type StockLevel as cp, type ProductStock as cq, type VariantStock as cr, type LocationStock as cs, type AvailabilityResult as ct, type Customer as cu, type CustomerAddress as cv, type CustomerMobileMoney as cw, type CustomerLinkPreferences as cx, type LinkData as cy, type CreateAddressInput as cz, type QuoteBundleSelectionInput as d, type SessionChangeEvent as d0, type ObservabilityHooks as d1, type OrderType as d2, type ElementAppearance as d3, type AddressInfo as d4, type PaymentMethodInfo as d5, type AuthenticatedCustomer as d6, type ElementsCustomerInfo as d7, type AuthenticatedData as d8, type ElementsCheckoutData as d9, type ElementsCheckoutResult as da, type CheckoutCartItem as db, type CheckoutCartData as dc, type ParentToIframeMessage as dd, type IframeToParentMessage as de, type ElementEventHandler as df, 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 { av as AUTHORIZATION_TYPE, aA as AUTH_MUTATION, ak as AbortablePromise, M as ActivityRecommendation, N as ActivityRecommendationsResponse, t as ActivityService, K as ActivityStateResponse, cD as AddressData, d4 as AddressInfo, b8 as AmountToPay, cO as AuthResponse, A as AuthService, o as AuthStatus, d6 as AuthenticatedCustomer, d8 as AuthenticatedData, y as AutocompletePrediction, z as AutocompleteResponse, ct as AvailabilityResult, c8 as AvailableSlot, cb as Booking, ca as BookingStatus, cc as BookingWithDetails, bu as BufferTimes, bP as Business, c1 as BusinessHours, bO as BusinessPreferences, B as BusinessService, c0 as BusinessSettings, bN as BusinessType, b_ as BusinessWithLocations, ao as CHECKOUT_MODE, aB as CHECKOUT_MUTATION, ar as CHECKOUT_STEP, ax as CONTACT_TYPE, cj as CancelBookingInput, ck as CancelBookingResult, bo as CancelOrderInput, bw as CancellationPolicy, j as CartOperations, b as CatalogueQueries, aX as CatalogueResult, aY as CatalogueSnapshot, c2 as CategoryInfo, cg as CheckSlotAvailabilityInput, ch as CheckSlotAvailabilityResult, cR as CheckoutAddressInfo, dc as CheckoutCartData, db as CheckoutCartItem, cT as CheckoutCustomerInfo, ac as CheckoutFormData, bm as CheckoutInput, a8 as CheckoutMode, l as CheckoutOperations, a9 as CheckoutOrderType, aa as CheckoutPaymentMethod, ad as CheckoutResult, l as CheckoutService, ai as CheckoutStatus, aj as CheckoutStatusContext, ab as CheckoutStep, C as CimplifyClient, a as CimplifyConfig, $ as CimplifyElement, _ as CimplifyElements, an as ContactType, cz as CreateAddressInput, cB as CreateMobileMoneyInput, cu as Customer, cv as CustomerAddress, ce as CustomerBooking, cd as CustomerBookingServiceItem, cx as CustomerLinkPreferences, cw as CustomerMobileMoney, bt as CustomerServicePreferences, aF as DEFAULT_COUNTRY, aE as DEFAULT_CURRENCY, aw as DEVICE_TYPE, c9 as DayAvailability, bI as DeliveryFeeDetails, X as DeliveryFeeResponse, W as DeliveryService, bD as DepositResult, am as DeviceType, V as DismissMessageResponse, a3 as ELEMENT_TYPES, a2 as EVENT_TYPES, d3 as ElementAppearance, df as ElementEventHandler, a7 as ElementEventType, a5 as ElementOptions, a6 as ElementType, d9 as ElementsCheckoutData, da as ElementsCheckoutResult, d7 as ElementsCustomerInfo, a4 as ElementsOptions, cF as EnrollAndLinkOrderInput, cI as EnrollAndLinkOrderResult, cC as EnrollmentData, aI as Err, b7 as FeeBearerType, F as FetchQuoteInput, b5 as FulfillmentLink, b4 as FulfillmentStatus, b3 as FulfillmentType, cV as FxQuote, cU as FxQuoteRequest, cW as FxRateResponse, s as FxService, cf as GetAvailableSlotsInput, n as GetOrdersOptions, G as GetProductsOptions, de as IframeToParentMessage, I as InventoryService, az as LINK_MUTATION, ay as LINK_QUERY, b9 as LineItem, b0 as LineType, cy as LinkData, cH as LinkEnrollResult, L as LinkService, cJ as LinkSession, cG as LinkStatusResult, Y as LiteBootstrap, r as LiteService, bS as Location, bG as LocationAppointment, cs as LocationStock, bQ as LocationTaxBehavior, bR as LocationTaxOverrides, bV as LocationTimeProfile, b$ as LocationWithDetails, a1 as MESSAGE_TYPES, au as MOBILE_MONEY_PROVIDER, cE as MobileMoneyData, cS as MobileMoneyDetails, al as MobileMoneyProvider, ae as NextAction, aD as ORDER_MUTATION, ap as ORDER_TYPE, d1 as ObservabilityHooks, aH as Ok, ba as Order, a$ as OrderChannel, bl as OrderFilter, b6 as OrderFulfillmentSummary, bf as OrderGroup, bj as OrderGroupDetails, bg as OrderGroupPayment, bd as OrderGroupPaymentState, be as OrderGroupPaymentStatus, bi as OrderGroupPaymentSummary, bc as OrderGroupStatus, bb as OrderHistory, b1 as OrderLineState, b2 as OrderLineStatus, bk as OrderPaymentEvent, O as OrderQueries, bh as OrderSplitDetail, aZ as OrderStatus, d2 as OrderType, p as OtpResult, aq as PAYMENT_METHOD, aC as PAYMENT_MUTATION, as as PAYMENT_STATE, at as PICKUP_TIME_TYPE, dd as ParentToIframeMessage, d5 as PaymentMethodInfo, a_ as PaymentState, cQ as PickupTime, cP as PickupTimeType, D as PlaceDetailsResponse, x as PlacesService, P as PriceQuote, by as PricingOverrides, ah as ProcessAndResolveOptions, af as ProcessCheckoutOptions, ag as ProcessCheckoutResult, cq as ProductStock, bH as ProviderResolutionSource, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, f as QuoteDynamicBuckets, e as QuoteStatus, g as QuoteUiMessage, R as RefreshQuoteInput, i as RefreshQuoteResult, bp as RefundOrderInput, bL as RelatedCandidate, bK as RelatedProduct, bM as RelatedProductsEnrichment, bJ as RelationType, bs as ReminderMethod, bv as ReminderSettings, k as ReorderResult, cX as RequestContext, c_ as RequestErrorEvent, cM as RequestOtpInput, h as RequestSource, cY as RequestStartEvent, cZ as RequestSuccessEvent, ci as RescheduleBookingInput, cl as RescheduleBookingResult, bB as ResourceAssignment, aG as Result, c$ as RetryEvent, cL as RevokeAllSessionsResult, cK as RevokeSessionResult, bX as Room, bz as SchedulingMetadata, bC as SchedulingResult, q as SchedulingService, c3 as Service, cm as ServiceAvailabilityParams, cn as ServiceAvailabilityResult, bY as ServiceCharge, bx as ServiceNotes, bE as ServiceScheduleRequest, bq as ServiceStatus, J as SessionActivityData, d0 as SessionChangeEvent, H as SessionMessage, c6 as SlotResourceInfo, c7 as SlotStaffInfo, c4 as Staff, bA as StaffAssignment, br as StaffRole, bF as StaffScheduleItem, cp as StockLevel, co as StockStatus, bZ as StorefrontBootstrap, S as SubscriptionService, bW as Table, Z as TableInfo, bT as TimeRange, bU as TimeRanges, c5 as TimeSlot, E as TrackCategoryViewOptions, T as TrackProductViewOptions, cA as UpdateAddressInput, bn as UpdateOrderStatusInput, U as UpdateProfileInput, w as UploadInitResponse, v as UploadResult, u as UploadService, cr as VariantStock, cN as VerifyOtpInput, aV as combine, aW as combineObject, c as createCimplifyClient, a0 as createElements, aK as err, aP as flatMap, aT as fromPromise, m as generateIdempotencyKey, aQ as getOrElse, aM as isErr, aL as isOk, aO as mapError, aN as mapResult, aJ as ok, aS as toNullable, aU as tryCatch, aR as unwrap } from './index-DijjnO-u.mjs';
|
|
2
|
+
import { A as ApiError } from './payment-BeLHpQMo.mjs';
|
|
3
|
+
export { ae as AddOn, bb as AddOnDetails, by as AddOnGroupDetails, ag as AddOnOption, bx as AddOnOptionDetails, ah as AddOnOptionPrice, af as AddOnWithOptions, bD as AddToCartInput, bJ as AddressAuthorizationData, U as AddressValue, b1 as AdjustmentType, b7 as AppliedDiscount, w as AttributeAppliesTo, v as AttributeType, z as AttributeValidationRules, x as AttributeVisibility, bK as AuthorizationType, b6 as BenefitType, bT as BillingFrequency, bV as BillingMarkupType, bU as BillingPlanType, ap as Bundle, at as BundleComponentData, au as BundleComponentInfo, aw as BundleComponentVariantView, av as BundleComponentView, ao as BundlePriceType, ar as BundleProduct, bh as BundleSelectionData, be as BundleSelectionInput, bg as BundleStoredSelection, aq as BundleSummary, as as BundleWithDetails, bm as Cart, bc as CartAddOn, a$ as CartChannel, bn as CartItem, bA as CartItemDetails, a_ as CartStatus, bF as CartSummary, bo as CartTotals, aj as Category, ak as CategorySummary, C as ChosenPrice, h as CimplifyError, al as Collection, an as CollectionProduct, am as CollectionSummary, aE as ComponentGroup, aF as ComponentGroupWithComponents, aL as ComponentPriceBreakdown, bf as ComponentSchedulingData, aJ as ComponentSelectionInput, aB as ComponentSourceType, aC as Composite, aI as CompositeComponent, aH as CompositeComponentView, aG as CompositeGroupView, bj as CompositePriceBreakdown, aK as CompositePriceResult, az as CompositePricingMode, bk as CompositeSelectionData, aJ as CompositeSelectionInput, bi as CompositeStoredSelection, aD as CompositeWithDetails, a as CurrencyCode, B as CustomAttributeDefinition, F as CustomAttributeValue, a1 as CustomerInputValue, u as DURATION_UNIT, X as DateRangeValue, aV as Deal, aU as DealBenefitType, s as DepositType, r as DigitalProductType, b8 as DiscountBreakdown, b9 as DiscountDetails, aX as DiscountValidation, br as DisplayAddOn, bs as DisplayAddOnOption, bp as DisplayCart, bq as DisplayCartItem, D as DisplayMode, t as DurationUnit, g as ERROR_HINTS, bX as EligiblePlansQuery, E as ErrorCode, e as ErrorCodeType, f as ErrorHint, K as FacetValue, bY as FormattedPlanOption, aA as GroupPricingBehavior, Q as INPUT_FIELD_TYPE, bO as InitializePaymentResult, O as InputFieldType, $ as InputFieldValidation, I as InventoryType, L as KnowledgeArticle, bl as LineConfiguration, aO as LocationProductPrice, Y as LocationValue, y as MeasurementValue, M as Money, p as PRODUCT_TYPE, d as Pagination, P as PaginationParams, bN as Payment, bR as PaymentErrorDetails, bM as PaymentMethod, bI as PaymentMethodType, bL as PaymentProcessingState, bH as PaymentProvider, bP as PaymentResponse, bG as PaymentStatus, bQ as PaymentStatusResponse, W as PhoneValue, aN as Price, b2 as PriceAdjustment, b5 as PriceDecisionPath, aM as PriceEntryType, b4 as PricePathTaxInfo, b0 as PriceSource, N as Product, ai as ProductAddOn, aP as ProductAvailability, aT as ProductAvailabilityNow, bW as ProductBillingPlan, aW as ProductDealInfo, a0 as ProductInputField, H as ProductProperty, q as ProductRenderHint, aR as ProductTaxonomy, aQ as ProductTimeProfile, o as ProductType, a6 as ProductVariant, ab as ProductVariantValue, a4 as ProductWithDetails, J as PropertyFacet, G as PropertySource, a2 as QuantityPricingTier, R as RENDER_HINT, a3 as RelatedProductView, S as SalesChannel, ba as SelectedAddOnOption, _ as SignatureValue, bS as SubmitAuthorizationInput, b_ as Subscription, c0 as SubscriptionInvoice, b$ as SubscriptionItem, bZ as SubscriptionStatus, c1 as SubscriptionWithDetails, aY as Tag, aZ as TagsResponse, b3 as TaxPathComponent, T as TaxonomyAttributeTemplate, aS as TaxonomyWithChildren, bB as UICart, bt as UICartBusiness, bv as UICartCustomer, bu as UICartLocation, bw as UICartPricing, bC as UICartResponse, bE as UpdateCartItemInput, a8 as VariantAxis, ad as VariantAxisSelection, aa as VariantAxisValue, ay as VariantAxisValueView, ax as VariantAxisView, a9 as VariantAxisWithValues, bd as VariantDetails, bz as VariantDetailsDTO, a7 as VariantDisplayAttribute, ac as VariantLocationAvailability, V as VariantStrategy, a5 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-BeLHpQMo.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-D4-b5OZO.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-Dvl1p9AM.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 { av as AUTHORIZATION_TYPE, aA as AUTH_MUTATION, ak as AbortablePromise, M as ActivityRecommendation, N as ActivityRecommendationsResponse, t as ActivityService, K as ActivityStateResponse, cD as AddressData, d4 as AddressInfo, b8 as AmountToPay, cO as AuthResponse, A as AuthService, o as AuthStatus, d6 as AuthenticatedCustomer, d8 as AuthenticatedData, y as AutocompletePrediction, z as AutocompleteResponse, ct as AvailabilityResult, c8 as AvailableSlot, cb as Booking, ca as BookingStatus, cc as BookingWithDetails, bu as BufferTimes, bP as Business, c1 as BusinessHours, bO as BusinessPreferences, B as BusinessService, c0 as BusinessSettings, bN as BusinessType, b_ as BusinessWithLocations, ao as CHECKOUT_MODE, aB as CHECKOUT_MUTATION, ar as CHECKOUT_STEP, ax as CONTACT_TYPE, cj as CancelBookingInput, ck as CancelBookingResult, bo as CancelOrderInput, bw as CancellationPolicy, j as CartOperations, b as CatalogueQueries, aX as CatalogueResult, aY as CatalogueSnapshot, c2 as CategoryInfo, cg as CheckSlotAvailabilityInput, ch as CheckSlotAvailabilityResult, cR as CheckoutAddressInfo, dc as CheckoutCartData, db as CheckoutCartItem, cT as CheckoutCustomerInfo, ac as CheckoutFormData, bm as CheckoutInput, a8 as CheckoutMode, l as CheckoutOperations, a9 as CheckoutOrderType, aa as CheckoutPaymentMethod, ad as CheckoutResult, l as CheckoutService, ai as CheckoutStatus, aj as CheckoutStatusContext, ab as CheckoutStep, C as CimplifyClient, a as CimplifyConfig, $ as CimplifyElement, _ as CimplifyElements, an as ContactType, cz as CreateAddressInput, cB as CreateMobileMoneyInput, cu as Customer, cv as CustomerAddress, ce as CustomerBooking, cd as CustomerBookingServiceItem, cx as CustomerLinkPreferences, cw as CustomerMobileMoney, bt as CustomerServicePreferences, aF as DEFAULT_COUNTRY, aE as DEFAULT_CURRENCY, aw as DEVICE_TYPE, c9 as DayAvailability, bI as DeliveryFeeDetails, X as DeliveryFeeResponse, W as DeliveryService, bD as DepositResult, am as DeviceType, V as DismissMessageResponse, a3 as ELEMENT_TYPES, a2 as EVENT_TYPES, d3 as ElementAppearance, df as ElementEventHandler, a7 as ElementEventType, a5 as ElementOptions, a6 as ElementType, d9 as ElementsCheckoutData, da as ElementsCheckoutResult, d7 as ElementsCustomerInfo, a4 as ElementsOptions, cF as EnrollAndLinkOrderInput, cI as EnrollAndLinkOrderResult, cC as EnrollmentData, aI as Err, b7 as FeeBearerType, F as FetchQuoteInput, b5 as FulfillmentLink, b4 as FulfillmentStatus, b3 as FulfillmentType, cV as FxQuote, cU as FxQuoteRequest, cW as FxRateResponse, s as FxService, cf as GetAvailableSlotsInput, n as GetOrdersOptions, G as GetProductsOptions, de as IframeToParentMessage, I as InventoryService, az as LINK_MUTATION, ay as LINK_QUERY, b9 as LineItem, b0 as LineType, cy as LinkData, cH as LinkEnrollResult, L as LinkService, cJ as LinkSession, cG as LinkStatusResult, Y as LiteBootstrap, r as LiteService, bS as Location, bG as LocationAppointment, cs as LocationStock, bQ as LocationTaxBehavior, bR as LocationTaxOverrides, bV as LocationTimeProfile, b$ as LocationWithDetails, a1 as MESSAGE_TYPES, au as MOBILE_MONEY_PROVIDER, cE as MobileMoneyData, cS as MobileMoneyDetails, al as MobileMoneyProvider, ae as NextAction, aD as ORDER_MUTATION, ap as ORDER_TYPE, d1 as ObservabilityHooks, aH as Ok, ba as Order, a$ as OrderChannel, bl as OrderFilter, b6 as OrderFulfillmentSummary, bf as OrderGroup, bj as OrderGroupDetails, bg as OrderGroupPayment, bd as OrderGroupPaymentState, be as OrderGroupPaymentStatus, bi as OrderGroupPaymentSummary, bc as OrderGroupStatus, bb as OrderHistory, b1 as OrderLineState, b2 as OrderLineStatus, bk as OrderPaymentEvent, O as OrderQueries, bh as OrderSplitDetail, aZ as OrderStatus, d2 as OrderType, p as OtpResult, aq as PAYMENT_METHOD, aC as PAYMENT_MUTATION, as as PAYMENT_STATE, at as PICKUP_TIME_TYPE, dd as ParentToIframeMessage, d5 as PaymentMethodInfo, a_ as PaymentState, cQ as PickupTime, cP as PickupTimeType, D as PlaceDetailsResponse, x as PlacesService, P as PriceQuote, by as PricingOverrides, ah as ProcessAndResolveOptions, af as ProcessCheckoutOptions, ag as ProcessCheckoutResult, cq as ProductStock, bH as ProviderResolutionSource, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, f as QuoteDynamicBuckets, e as QuoteStatus, g as QuoteUiMessage, R as RefreshQuoteInput, i as RefreshQuoteResult, bp as RefundOrderInput, bL as RelatedCandidate, bK as RelatedProduct, bM as RelatedProductsEnrichment, bJ as RelationType, bs as ReminderMethod, bv as ReminderSettings, k as ReorderResult, cX as RequestContext, c_ as RequestErrorEvent, cM as RequestOtpInput, h as RequestSource, cY as RequestStartEvent, cZ as RequestSuccessEvent, ci as RescheduleBookingInput, cl as RescheduleBookingResult, bB as ResourceAssignment, aG as Result, c$ as RetryEvent, cL as RevokeAllSessionsResult, cK as RevokeSessionResult, bX as Room, bz as SchedulingMetadata, bC as SchedulingResult, q as SchedulingService, c3 as Service, cm as ServiceAvailabilityParams, cn as ServiceAvailabilityResult, bY as ServiceCharge, bx as ServiceNotes, bE as ServiceScheduleRequest, bq as ServiceStatus, J as SessionActivityData, d0 as SessionChangeEvent, H as SessionMessage, c6 as SlotResourceInfo, c7 as SlotStaffInfo, c4 as Staff, bA as StaffAssignment, br as StaffRole, bF as StaffScheduleItem, cp as StockLevel, co as StockStatus, bZ as StorefrontBootstrap, S as SubscriptionService, bW as Table, Z as TableInfo, bT as TimeRange, bU as TimeRanges, c5 as TimeSlot, E as TrackCategoryViewOptions, T as TrackProductViewOptions, cA as UpdateAddressInput, bn as UpdateOrderStatusInput, U as UpdateProfileInput, w as UploadInitResponse, v as UploadResult, u as UploadService, cr as VariantStock, cN as VerifyOtpInput, aV as combine, aW as combineObject, c as createCimplifyClient, a0 as createElements, aK as err, aP as flatMap, aT as fromPromise, m as generateIdempotencyKey, aQ as getOrElse, aM as isErr, aL as isOk, aO as mapError, aN as mapResult, aJ as ok, aS as toNullable, aU as tryCatch, aR as unwrap } from './index-DwvzjdGi.js';
|
|
2
|
+
import { A as ApiError } from './payment-BeLHpQMo.js';
|
|
3
|
+
export { ae as AddOn, bb as AddOnDetails, by as AddOnGroupDetails, ag as AddOnOption, bx as AddOnOptionDetails, ah as AddOnOptionPrice, af as AddOnWithOptions, bD as AddToCartInput, bJ as AddressAuthorizationData, U as AddressValue, b1 as AdjustmentType, b7 as AppliedDiscount, w as AttributeAppliesTo, v as AttributeType, z as AttributeValidationRules, x as AttributeVisibility, bK as AuthorizationType, b6 as BenefitType, bT as BillingFrequency, bV as BillingMarkupType, bU as BillingPlanType, ap as Bundle, at as BundleComponentData, au as BundleComponentInfo, aw as BundleComponentVariantView, av as BundleComponentView, ao as BundlePriceType, ar as BundleProduct, bh as BundleSelectionData, be as BundleSelectionInput, bg as BundleStoredSelection, aq as BundleSummary, as as BundleWithDetails, bm as Cart, bc as CartAddOn, a$ as CartChannel, bn as CartItem, bA as CartItemDetails, a_ as CartStatus, bF as CartSummary, bo as CartTotals, aj as Category, ak as CategorySummary, C as ChosenPrice, h as CimplifyError, al as Collection, an as CollectionProduct, am as CollectionSummary, aE as ComponentGroup, aF as ComponentGroupWithComponents, aL as ComponentPriceBreakdown, bf as ComponentSchedulingData, aJ as ComponentSelectionInput, aB as ComponentSourceType, aC as Composite, aI as CompositeComponent, aH as CompositeComponentView, aG as CompositeGroupView, bj as CompositePriceBreakdown, aK as CompositePriceResult, az as CompositePricingMode, bk as CompositeSelectionData, aJ as CompositeSelectionInput, bi as CompositeStoredSelection, aD as CompositeWithDetails, a as CurrencyCode, B as CustomAttributeDefinition, F as CustomAttributeValue, a1 as CustomerInputValue, u as DURATION_UNIT, X as DateRangeValue, aV as Deal, aU as DealBenefitType, s as DepositType, r as DigitalProductType, b8 as DiscountBreakdown, b9 as DiscountDetails, aX as DiscountValidation, br as DisplayAddOn, bs as DisplayAddOnOption, bp as DisplayCart, bq as DisplayCartItem, D as DisplayMode, t as DurationUnit, g as ERROR_HINTS, bX as EligiblePlansQuery, E as ErrorCode, e as ErrorCodeType, f as ErrorHint, K as FacetValue, bY as FormattedPlanOption, aA as GroupPricingBehavior, Q as INPUT_FIELD_TYPE, bO as InitializePaymentResult, O as InputFieldType, $ as InputFieldValidation, I as InventoryType, L as KnowledgeArticle, bl as LineConfiguration, aO as LocationProductPrice, Y as LocationValue, y as MeasurementValue, M as Money, p as PRODUCT_TYPE, d as Pagination, P as PaginationParams, bN as Payment, bR as PaymentErrorDetails, bM as PaymentMethod, bI as PaymentMethodType, bL as PaymentProcessingState, bH as PaymentProvider, bP as PaymentResponse, bG as PaymentStatus, bQ as PaymentStatusResponse, W as PhoneValue, aN as Price, b2 as PriceAdjustment, b5 as PriceDecisionPath, aM as PriceEntryType, b4 as PricePathTaxInfo, b0 as PriceSource, N as Product, ai as ProductAddOn, aP as ProductAvailability, aT as ProductAvailabilityNow, bW as ProductBillingPlan, aW as ProductDealInfo, a0 as ProductInputField, H as ProductProperty, q as ProductRenderHint, aR as ProductTaxonomy, aQ as ProductTimeProfile, o as ProductType, a6 as ProductVariant, ab as ProductVariantValue, a4 as ProductWithDetails, J as PropertyFacet, G as PropertySource, a2 as QuantityPricingTier, R as RENDER_HINT, a3 as RelatedProductView, S as SalesChannel, ba as SelectedAddOnOption, _ as SignatureValue, bS as SubmitAuthorizationInput, b_ as Subscription, c0 as SubscriptionInvoice, b$ as SubscriptionItem, bZ as SubscriptionStatus, c1 as SubscriptionWithDetails, aY as Tag, aZ as TagsResponse, b3 as TaxPathComponent, T as TaxonomyAttributeTemplate, aS as TaxonomyWithChildren, bB as UICart, bt as UICartBusiness, bv as UICartCustomer, bu as UICartLocation, bw as UICartPricing, bC as UICartResponse, bE as UpdateCartItemInput, a8 as VariantAxis, ad as VariantAxisSelection, aa as VariantAxisValue, ay as VariantAxisValueView, ax as VariantAxisView, a9 as VariantAxisWithValues, bd as VariantDetails, bz as VariantDetailsDTO, a7 as VariantDisplayAttribute, ac as VariantLocationAvailability, V as VariantStrategy, a5 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-BeLHpQMo.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-Cjfczg2W.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-C6gfys5B.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 chunkR4AKAGZQ_js = require('./chunk-R4AKAGZQ.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,35 +9,51 @@ 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 chunkR4AKAGZQ_js.ActivityService; }
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "CimplifyClient", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkR4AKAGZQ_js.CimplifyClient; }
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "DURATION_UNIT", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkR4AKAGZQ_js.DURATION_UNIT; }
|
|
21
21
|
});
|
|
22
22
|
Object.defineProperty(exports, "DeliveryService", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkR4AKAGZQ_js.DeliveryService; }
|
|
25
|
+
});
|
|
26
|
+
Object.defineProperty(exports, "INPUT_FIELD_TYPE", {
|
|
27
|
+
enumerable: true,
|
|
28
|
+
get: function () { return chunkR4AKAGZQ_js.INPUT_FIELD_TYPE; }
|
|
25
29
|
});
|
|
26
30
|
Object.defineProperty(exports, "PRODUCT_TYPE", {
|
|
27
31
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkR4AKAGZQ_js.PRODUCT_TYPE; }
|
|
33
|
+
});
|
|
34
|
+
Object.defineProperty(exports, "PlacesService", {
|
|
35
|
+
enumerable: true,
|
|
36
|
+
get: function () { return chunkR4AKAGZQ_js.PlacesService; }
|
|
29
37
|
});
|
|
30
38
|
Object.defineProperty(exports, "RENDER_HINT", {
|
|
31
39
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunkR4AKAGZQ_js.RENDER_HINT; }
|
|
41
|
+
});
|
|
42
|
+
Object.defineProperty(exports, "SubscriptionService", {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function () { return chunkR4AKAGZQ_js.SubscriptionService; }
|
|
45
|
+
});
|
|
46
|
+
Object.defineProperty(exports, "UploadService", {
|
|
47
|
+
enumerable: true,
|
|
48
|
+
get: function () { return chunkR4AKAGZQ_js.UploadService; }
|
|
33
49
|
});
|
|
34
50
|
Object.defineProperty(exports, "createCimplifyClient", {
|
|
35
51
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
52
|
+
get: function () { return chunkR4AKAGZQ_js.createCimplifyClient; }
|
|
37
53
|
});
|
|
38
54
|
Object.defineProperty(exports, "getVariantDisplayName", {
|
|
39
55
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
56
|
+
get: function () { return chunkR4AKAGZQ_js.getVariantDisplayName; }
|
|
41
57
|
});
|
|
42
58
|
Object.defineProperty(exports, "isValidPhoneForContext", {
|
|
43
59
|
enumerable: true,
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ActivityService, CimplifyClient, DURATION_UNIT, DeliveryService, PRODUCT_TYPE, RENDER_HINT, createCimplifyClient, getVariantDisplayName } from './chunk-
|
|
1
|
+
export { ActivityService, CimplifyClient, DURATION_UNIT, DeliveryService, INPUT_FIELD_TYPE, PRODUCT_TYPE, PlacesService, RENDER_HINT, SubscriptionService, UploadService, createCimplifyClient, getVariantDisplayName } from './chunk-REXW2PET.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';
|
|
@@ -256,10 +256,12 @@ type LineConfiguration = {
|
|
|
256
256
|
type: "simple";
|
|
257
257
|
variant?: VariantDetails;
|
|
258
258
|
add_ons?: AddOnDetails;
|
|
259
|
+
customer_inputs?: CustomerInputValue[];
|
|
259
260
|
} | {
|
|
260
261
|
type: "service";
|
|
261
262
|
variant?: VariantDetails;
|
|
262
263
|
add_ons?: AddOnDetails;
|
|
264
|
+
customer_inputs?: CustomerInputValue[];
|
|
263
265
|
scheduled_start?: string;
|
|
264
266
|
scheduled_end?: string;
|
|
265
267
|
confirmation_code?: string;
|
|
@@ -272,16 +274,19 @@ type LineConfiguration = {
|
|
|
272
274
|
input: BundleSelectionInput[];
|
|
273
275
|
resolved?: BundleSelectionData;
|
|
274
276
|
add_ons?: AddOnDetails;
|
|
277
|
+
customer_inputs?: CustomerInputValue[];
|
|
275
278
|
} | {
|
|
276
279
|
type: "composite";
|
|
277
280
|
variant?: VariantDetails;
|
|
278
281
|
input: ComponentSelectionInput[];
|
|
279
282
|
resolved?: CompositeSelectionData;
|
|
280
283
|
add_ons?: AddOnDetails;
|
|
284
|
+
customer_inputs?: CustomerInputValue[];
|
|
281
285
|
} | {
|
|
282
286
|
type: "digital";
|
|
283
287
|
variant?: VariantDetails;
|
|
284
288
|
add_ons?: AddOnDetails;
|
|
289
|
+
customer_inputs?: CustomerInputValue[];
|
|
285
290
|
digital_type?: string;
|
|
286
291
|
fulfillment_id?: string;
|
|
287
292
|
};
|
|
@@ -502,6 +507,12 @@ interface CartItemDetails {
|
|
|
502
507
|
bundle_resolved?: BundleSelectionData;
|
|
503
508
|
composite_selections?: ComponentSelectionInput[];
|
|
504
509
|
composite_resolved?: CompositeSelectionData;
|
|
510
|
+
customer_inputs?: Array<{
|
|
511
|
+
field_id: string;
|
|
512
|
+
field_name: string;
|
|
513
|
+
field_type: string;
|
|
514
|
+
value: unknown;
|
|
515
|
+
}>;
|
|
505
516
|
applied_discount_ids: string[];
|
|
506
517
|
discount_details?: DiscountDetails;
|
|
507
518
|
created_at: string;
|
|
@@ -546,6 +557,10 @@ interface AddToCartInput {
|
|
|
546
557
|
staff_id?: string;
|
|
547
558
|
resource_id?: string;
|
|
548
559
|
billing_plan_id?: string;
|
|
560
|
+
customer_inputs?: Array<{
|
|
561
|
+
field_id: string;
|
|
562
|
+
value: unknown;
|
|
563
|
+
}>;
|
|
549
564
|
}
|
|
550
565
|
interface UpdateCartItemInput {
|
|
551
566
|
quantity?: number;
|
|
@@ -603,6 +618,60 @@ interface FormattedPlanOption {
|
|
|
603
618
|
pricePerPeriod: number;
|
|
604
619
|
totalPrice?: number;
|
|
605
620
|
}
|
|
621
|
+
type SubscriptionStatus = "incomplete" | "incomplete_expired" | "trialing" | "active" | "past_due" | "canceled" | "unpaid" | "paused";
|
|
622
|
+
interface Subscription {
|
|
623
|
+
id: string;
|
|
624
|
+
customer_id: string;
|
|
625
|
+
billing_plan_id?: string;
|
|
626
|
+
business_id?: string;
|
|
627
|
+
price_id?: string;
|
|
628
|
+
status: SubscriptionStatus;
|
|
629
|
+
current_period_start: string;
|
|
630
|
+
current_period_end: string;
|
|
631
|
+
next_billing_date?: string;
|
|
632
|
+
trial_start?: string;
|
|
633
|
+
trial_end?: string;
|
|
634
|
+
canceled_at?: string;
|
|
635
|
+
cancel_at_period_end: boolean;
|
|
636
|
+
location_id?: string;
|
|
637
|
+
installment_total?: number;
|
|
638
|
+
installment_per_period?: number;
|
|
639
|
+
installment_periods_remaining?: number;
|
|
640
|
+
origin_order_id?: string;
|
|
641
|
+
skip_next_renewal: boolean;
|
|
642
|
+
cycles_completed: number;
|
|
643
|
+
source?: string;
|
|
644
|
+
created_at: string;
|
|
645
|
+
updated_at: string;
|
|
646
|
+
metadata?: Record<string, unknown>;
|
|
647
|
+
}
|
|
648
|
+
interface SubscriptionItem {
|
|
649
|
+
id: string;
|
|
650
|
+
subscription_id: string;
|
|
651
|
+
product_id: string;
|
|
652
|
+
quantity: number;
|
|
653
|
+
added_at: string;
|
|
654
|
+
removed_at?: string;
|
|
655
|
+
metadata?: Record<string, unknown>;
|
|
656
|
+
}
|
|
657
|
+
interface SubscriptionInvoice {
|
|
658
|
+
id: string;
|
|
659
|
+
subscription_id: string;
|
|
660
|
+
amount_due: number;
|
|
661
|
+
amount_paid: number;
|
|
662
|
+
currency: string;
|
|
663
|
+
status: string;
|
|
664
|
+
period_start: string;
|
|
665
|
+
period_end: string;
|
|
666
|
+
created_at: string;
|
|
667
|
+
}
|
|
668
|
+
interface SubscriptionWithDetails {
|
|
669
|
+
subscription: Subscription;
|
|
670
|
+
plan?: ProductBillingPlan;
|
|
671
|
+
product?: Product;
|
|
672
|
+
items: SubscriptionItem[];
|
|
673
|
+
latest_invoice?: SubscriptionInvoice;
|
|
674
|
+
}
|
|
606
675
|
|
|
607
676
|
type ProductType = "product" | "service" | "digital" | "bundle" | "composite";
|
|
608
677
|
declare const PRODUCT_TYPE: {
|
|
@@ -826,9 +895,94 @@ interface Product {
|
|
|
826
895
|
billing_plans?: ProductBillingPlan[];
|
|
827
896
|
quantity_pricing?: QuantityPricingTier[];
|
|
828
897
|
min_order_quantity?: number;
|
|
898
|
+
input_fields?: ProductInputField[];
|
|
829
899
|
upsells?: RelatedProductView[];
|
|
830
900
|
cross_sells?: RelatedProductView[];
|
|
831
901
|
}
|
|
902
|
+
type InputFieldType = "text" | "textarea" | "number" | "select" | "radio" | "checkbox" | "color" | "date" | "file" | "image" | "url" | "address" | "phone" | "email" | "date_time" | "time" | "signature" | "multi_select" | "date_range" | "location";
|
|
903
|
+
declare const INPUT_FIELD_TYPE: {
|
|
904
|
+
Text: "text";
|
|
905
|
+
Textarea: "textarea";
|
|
906
|
+
Number: "number";
|
|
907
|
+
Select: "select";
|
|
908
|
+
Radio: "radio";
|
|
909
|
+
Checkbox: "checkbox";
|
|
910
|
+
Color: "color";
|
|
911
|
+
Date: "date";
|
|
912
|
+
File: "file";
|
|
913
|
+
Image: "image";
|
|
914
|
+
Url: "url";
|
|
915
|
+
Address: "address";
|
|
916
|
+
Phone: "phone";
|
|
917
|
+
Email: "email";
|
|
918
|
+
DateTime: "date_time";
|
|
919
|
+
Time: "time";
|
|
920
|
+
Signature: "signature";
|
|
921
|
+
MultiSelect: "multi_select";
|
|
922
|
+
DateRange: "date_range";
|
|
923
|
+
Location: "location";
|
|
924
|
+
};
|
|
925
|
+
interface AddressValue {
|
|
926
|
+
formatted_address: string;
|
|
927
|
+
street_address?: string;
|
|
928
|
+
apartment?: string;
|
|
929
|
+
city?: string;
|
|
930
|
+
region?: string;
|
|
931
|
+
postal_code?: string;
|
|
932
|
+
country?: string;
|
|
933
|
+
latitude: number;
|
|
934
|
+
longitude: number;
|
|
935
|
+
place_id?: string;
|
|
936
|
+
}
|
|
937
|
+
interface PhoneValue {
|
|
938
|
+
country_code: string;
|
|
939
|
+
number: string;
|
|
940
|
+
formatted: string;
|
|
941
|
+
}
|
|
942
|
+
interface DateRangeValue {
|
|
943
|
+
start: string;
|
|
944
|
+
end: string;
|
|
945
|
+
}
|
|
946
|
+
interface LocationValue {
|
|
947
|
+
latitude: number;
|
|
948
|
+
longitude: number;
|
|
949
|
+
label?: string;
|
|
950
|
+
}
|
|
951
|
+
interface SignatureValue {
|
|
952
|
+
data_url: string;
|
|
953
|
+
signer_name?: string;
|
|
954
|
+
}
|
|
955
|
+
interface InputFieldValidation {
|
|
956
|
+
max_length?: number;
|
|
957
|
+
min_length?: number;
|
|
958
|
+
min_value?: number;
|
|
959
|
+
max_value?: number;
|
|
960
|
+
accepted_formats?: string[];
|
|
961
|
+
max_size_mb?: number;
|
|
962
|
+
pattern?: string;
|
|
963
|
+
allowed_countries?: string[];
|
|
964
|
+
max_selections?: number;
|
|
965
|
+
}
|
|
966
|
+
interface ProductInputField {
|
|
967
|
+
id: string;
|
|
968
|
+
product_id: string;
|
|
969
|
+
name: string;
|
|
970
|
+
slug: string;
|
|
971
|
+
field_type: InputFieldType;
|
|
972
|
+
is_required: boolean;
|
|
973
|
+
display_order: number;
|
|
974
|
+
placeholder?: string;
|
|
975
|
+
help_text?: string;
|
|
976
|
+
validation?: InputFieldValidation;
|
|
977
|
+
options?: string[];
|
|
978
|
+
price_adjustment?: Money;
|
|
979
|
+
}
|
|
980
|
+
interface CustomerInputValue {
|
|
981
|
+
field_id: string;
|
|
982
|
+
field_name: string;
|
|
983
|
+
field_type: string;
|
|
984
|
+
value: unknown;
|
|
985
|
+
}
|
|
832
986
|
interface QuantityPricingTier {
|
|
833
987
|
min_quantity: number;
|
|
834
988
|
max_quantity?: number;
|
|
@@ -1453,4 +1607,4 @@ interface SubmitAuthorizationInput {
|
|
|
1453
1607
|
value: string;
|
|
1454
1608
|
}
|
|
1455
1609
|
|
|
1456
|
-
export { type
|
|
1610
|
+
export { type InputFieldValidation as $, type ApiError as A, type CustomAttributeDefinition as B, type ChosenPrice as C, type DisplayMode as D, ErrorCode as E, type CustomAttributeValue as F, type PropertySource as G, type ProductProperty as H, type InventoryType as I, type PropertyFacet as J, type FacetValue as K, type KnowledgeArticle as L, type Money as M, type Product as N, type InputFieldType as O, type PaginationParams as P, INPUT_FIELD_TYPE as Q, RENDER_HINT as R, type SalesChannel as S, type TaxonomyAttributeTemplate as T, type AddressValue as U, type VariantStrategy as V, type PhoneValue as W, type DateRangeValue as X, type LocationValue as Y, ZERO as Z, type SignatureValue as _, type CurrencyCode as a, type CartChannel as a$, type ProductInputField as a0, type CustomerInputValue as a1, type QuantityPricingTier as a2, type RelatedProductView as a3, type ProductWithDetails as a4, type VariantView as a5, type ProductVariant as a6, type VariantDisplayAttribute as a7, type VariantAxis as a8, type VariantAxisWithValues as a9, type GroupPricingBehavior as aA, type ComponentSourceType as aB, type Composite as aC, type CompositeWithDetails as aD, type ComponentGroup as aE, type ComponentGroupWithComponents as aF, type CompositeGroupView as aG, type CompositeComponentView as aH, type CompositeComponent as aI, type ComponentSelectionInput as aJ, type CompositePriceResult as aK, type ComponentPriceBreakdown as aL, type PriceEntryType as aM, type Price as aN, type LocationProductPrice as aO, type ProductAvailability as aP, type ProductTimeProfile as aQ, type ProductTaxonomy as aR, type TaxonomyWithChildren as aS, type ProductAvailabilityNow as aT, type DealBenefitType as aU, type Deal as aV, type ProductDealInfo as aW, type DiscountValidation as aX, type Tag as aY, type TagsResponse as aZ, type CartStatus as a_, type VariantAxisValue as aa, type ProductVariantValue as ab, type VariantLocationAvailability as ac, type VariantAxisSelection as ad, type AddOn as ae, type AddOnWithOptions as af, type AddOnOption as ag, type AddOnOptionPrice as ah, type ProductAddOn as ai, type Category as aj, type CategorySummary as ak, type Collection as al, type CollectionSummary as am, type CollectionProduct as an, type BundlePriceType as ao, type Bundle as ap, type BundleSummary as aq, type BundleProduct as ar, type BundleWithDetails as as, type BundleComponentData as at, type BundleComponentInfo as au, type BundleComponentView as av, type BundleComponentVariantView as aw, type VariantAxisView as ax, type VariantAxisValueView as ay, type CompositePricingMode as az, moneyFromNumber as b, type SubscriptionItem as b$, type PriceSource as b0, type AdjustmentType as b1, type PriceAdjustment as b2, type TaxPathComponent as b3, type PricePathTaxInfo as b4, type PriceDecisionPath as b5, type BenefitType as b6, type AppliedDiscount as b7, type DiscountBreakdown as b8, type DiscountDetails as b9, type CartItemDetails as bA, type UICart as bB, type UICartResponse as bC, type AddToCartInput as bD, type UpdateCartItemInput as bE, type CartSummary as bF, type PaymentStatus as bG, type PaymentProvider as bH, type PaymentMethodType as bI, type AddressAuthorizationData as bJ, type AuthorizationType as bK, type PaymentProcessingState as bL, type PaymentMethod as bM, type Payment as bN, type InitializePaymentResult as bO, type PaymentResponse as bP, type PaymentStatusResponse as bQ, type PaymentErrorDetails as bR, type SubmitAuthorizationInput as bS, type BillingFrequency as bT, type BillingPlanType as bU, type BillingMarkupType as bV, type ProductBillingPlan as bW, type EligiblePlansQuery as bX, type FormattedPlanOption as bY, type SubscriptionStatus as bZ, type Subscription as b_, type SelectedAddOnOption as ba, type AddOnDetails as bb, type CartAddOn as bc, type VariantDetails as bd, type BundleSelectionInput as be, type ComponentSchedulingData as bf, type BundleStoredSelection as bg, type BundleSelectionData as bh, type CompositeStoredSelection as bi, type CompositePriceBreakdown as bj, type CompositeSelectionData as bk, type LineConfiguration as bl, type Cart as bm, type CartItem as bn, type CartTotals as bo, type DisplayCart as bp, type DisplayCartItem as bq, type DisplayAddOn as br, type DisplayAddOnOption as bs, type UICartBusiness as bt, type UICartLocation as bu, type UICartCustomer as bv, type UICartPricing as bw, type AddOnOptionDetails as bx, type AddOnGroupDetails as by, type VariantDetailsDTO as bz, currencyCode as c, type SubscriptionInvoice as c0, type SubscriptionWithDetails as c1, 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 AttributeType as v, type AttributeAppliesTo as w, type AttributeVisibility as x, type MeasurementValue as y, type AttributeValidationRules as z };
|