@cimplify/sdk 0.51.1 → 0.52.1
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 +23 -22
- package/dist/advanced.mjs +4 -3
- package/dist/chunk-3G6RQLXK.mjs +21 -0
- package/dist/{chunk-GUZXQSGI.mjs → chunk-4QDCMYYB.mjs} +10 -21
- package/dist/{chunk-CAG3TEXO.js → chunk-7A3D3LFI.js} +4 -4
- package/dist/{chunk-6RP6OPYO.js → chunk-7Y2O3E4D.js} +3 -3
- package/dist/{chunk-Z2AYLZDF.mjs → chunk-AMZXALF6.mjs} +1 -21
- package/dist/{chunk-VOWMB2KR.js → chunk-EQLT46ZR.js} +75 -78
- package/dist/{chunk-FXACV333.mjs → chunk-GLAVTDDE.mjs} +55 -58
- package/dist/chunk-OWW5GUSB.js +28 -0
- package/dist/{chunk-GEWFWQYK.js → chunk-Q5VGDCQF.js} +235 -234
- package/dist/{chunk-632JEJUS.mjs → chunk-R3F55BRN.mjs} +2 -1
- package/dist/{chunk-QCS6D4XW.mjs → chunk-RDORJT7Y.mjs} +2 -2
- package/dist/{chunk-XY2DFX5K.mjs → chunk-TD3AY34U.mjs} +1 -1
- package/dist/{chunk-FJQC4VSN.js → chunk-W6CCBNGL.js} +68 -79
- package/dist/{chunk-TKOTACKZ.js → chunk-XA3ZNR75.js} +0 -26
- package/dist/{client-CF2pmEE9.d.mts → client-C6J_RGlr.d.mts} +27 -45
- package/dist/{client-B6x53-Al.d.ts → client-CX7IFIkL.d.ts} +27 -45
- package/dist/{client-BbrCopIS.d.mts → client-DdefKjcs.d.mts} +1 -1
- package/dist/{client-BvEjhvwq.d.ts → client-Lt7uGLmT.d.ts} +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +110 -109
- package/dist/index.mjs +5 -4
- package/dist/react.d.mts +1 -1
- package/dist/react.d.ts +1 -1
- package/dist/react.js +86 -85
- package/dist/react.mjs +5 -4
- package/dist/server/evict.d.mts +31 -0
- package/dist/server/evict.d.ts +31 -0
- package/dist/server/evict.js +75 -0
- package/dist/server/evict.mjs +73 -0
- package/dist/server.d.mts +11 -48
- package/dist/server.d.ts +11 -48
- package/dist/server.js +7 -76
- package/dist/server.mjs +6 -74
- package/dist/testing/msw.js +4 -3
- package/dist/testing/msw.mjs +3 -2
- package/dist/testing/suite.d.mts +2 -2
- package/dist/testing/suite.d.ts +2 -2
- package/dist/testing/suite.js +26 -25
- package/dist/testing/suite.mjs +7 -6
- package/dist/testing.d.mts +2 -2
- package/dist/testing.d.ts +2 -2
- package/dist/testing.js +82 -81
- package/dist/testing.mjs +8 -7
- package/dist/utils.js +30 -29
- package/dist/utils.mjs +3 -2
- package/package.json +7 -1
|
@@ -224,29 +224,29 @@ interface RefreshQuoteResult {
|
|
|
224
224
|
declare class CatalogueQueries {
|
|
225
225
|
private client;
|
|
226
226
|
constructor(client: CimplifyClient);
|
|
227
|
-
getCatalogue(
|
|
228
|
-
getProducts(options?: GetProductsOptions
|
|
229
|
-
getProduct(id: string
|
|
230
|
-
getProductBySlug(slug: string
|
|
227
|
+
getCatalogue(): Promise<Result<CatalogueSnapshot, CimplifyError>>;
|
|
228
|
+
getProducts(options?: GetProductsOptions): Promise<Result<CatalogueResult<Product>, CimplifyError>>;
|
|
229
|
+
getProduct(id: string): Promise<Result<ProductWithDetails, CimplifyError>>;
|
|
230
|
+
getProductBySlug(slug: string): Promise<Result<ProductWithDetails, CimplifyError>>;
|
|
231
231
|
getVariants(productId: string): Promise<Result<ProductVariant[], CimplifyError>>;
|
|
232
232
|
getVariantAxes(productId: string): Promise<Result<VariantAxis[], CimplifyError>>;
|
|
233
233
|
getVariantByAxisSelections(productId: string, selections: VariantAxisSelection): Promise<Result<ProductVariant | null, CimplifyError>>;
|
|
234
234
|
getVariantById(productId: string, variantId: string): Promise<Result<ProductVariant, CimplifyError>>;
|
|
235
|
-
getAddOns(productId: string
|
|
236
|
-
getCategories(
|
|
237
|
-
getCategory(id: string
|
|
238
|
-
getCategoryBySlug(slug: string
|
|
235
|
+
getAddOns(productId: string): Promise<Result<AddOn[], CimplifyError>>;
|
|
236
|
+
getCategories(): Promise<Result<Category[], CimplifyError>>;
|
|
237
|
+
getCategory(id: string): Promise<Result<Category, CimplifyError>>;
|
|
238
|
+
getCategoryBySlug(slug: string): Promise<Result<Category, CimplifyError>>;
|
|
239
239
|
getCategoryProducts(categoryId: string, options?: {
|
|
240
240
|
limit?: number;
|
|
241
241
|
offset?: number;
|
|
242
|
-
}
|
|
243
|
-
getCollections(
|
|
244
|
-
getCollection(id: string
|
|
245
|
-
getCollectionBySlug(slug: string
|
|
242
|
+
}): Promise<Result<Product[], CimplifyError>>;
|
|
243
|
+
getCollections(): Promise<Result<Collection[], CimplifyError>>;
|
|
244
|
+
getCollection(id: string): Promise<Result<Collection, CimplifyError>>;
|
|
245
|
+
getCollectionBySlug(slug: string): Promise<Result<Collection, CimplifyError>>;
|
|
246
246
|
getCollectionProducts(collectionId: string, options?: {
|
|
247
247
|
limit?: number;
|
|
248
248
|
offset?: number;
|
|
249
|
-
}
|
|
249
|
+
}): Promise<Result<Product[], CimplifyError>>;
|
|
250
250
|
searchCollections(query: string, limit?: number): Promise<Result<Collection[], CimplifyError>>;
|
|
251
251
|
getBundles(): Promise<Result<BundleSummary[], CimplifyError>>;
|
|
252
252
|
getBundle(id: string): Promise<Result<Bundle, CimplifyError>>;
|
|
@@ -274,8 +274,8 @@ declare class CatalogueQueries {
|
|
|
274
274
|
getCategoryDeals(categoryId: string): Promise<Result<Deal[], CimplifyError>>;
|
|
275
275
|
getCollectionDeals(collectionId: string): Promise<Result<Deal[], CimplifyError>>;
|
|
276
276
|
validateDiscountCode(code: string, orderSubtotal: string, locationId?: string): Promise<Result<DiscountValidation, CimplifyError>>;
|
|
277
|
-
search(query: string, options?: Omit<GetProductsOptions, "search"
|
|
278
|
-
searchProducts(query: string, options?: Omit<GetProductsOptions, "search"
|
|
277
|
+
search(query: string, options?: Omit<GetProductsOptions, "search">): Promise<Result<Product[], CimplifyError>>;
|
|
278
|
+
searchProducts(query: string, options?: Omit<GetProductsOptions, "search">): Promise<Result<Product[], CimplifyError>>;
|
|
279
279
|
getMenu(options?: {
|
|
280
280
|
category?: string;
|
|
281
281
|
limit?: number;
|
|
@@ -1438,15 +1438,15 @@ interface CategoryInfo {
|
|
|
1438
1438
|
declare class BusinessService {
|
|
1439
1439
|
private client;
|
|
1440
1440
|
constructor(client: CimplifyClient);
|
|
1441
|
-
getInfo(
|
|
1442
|
-
getByHandle(handle: string
|
|
1443
|
-
getByDomain(domain: string
|
|
1444
|
-
getSettings(
|
|
1445
|
-
getLocations(
|
|
1446
|
-
getLocation(locationId: string
|
|
1447
|
-
getHours(
|
|
1448
|
-
getLocationHours(locationId: string
|
|
1449
|
-
getBootstrap(
|
|
1441
|
+
getInfo(): Promise<Result<Business, CimplifyError>>;
|
|
1442
|
+
getByHandle(handle: string): Promise<Result<Business, CimplifyError>>;
|
|
1443
|
+
getByDomain(domain: string): Promise<Result<Business, CimplifyError>>;
|
|
1444
|
+
getSettings(): Promise<Result<BusinessSettings, CimplifyError>>;
|
|
1445
|
+
getLocations(): Promise<Result<Location[], CimplifyError>>;
|
|
1446
|
+
getLocation(locationId: string): Promise<Result<Location, CimplifyError>>;
|
|
1447
|
+
getHours(): Promise<Result<BusinessHours[], CimplifyError>>;
|
|
1448
|
+
getLocationHours(locationId: string): Promise<Result<BusinessHours[], CimplifyError>>;
|
|
1449
|
+
getBootstrap(): Promise<Result<StorefrontBootstrap, CimplifyError>>;
|
|
1450
1450
|
}
|
|
1451
1451
|
|
|
1452
1452
|
type StockStatus = "in_stock" | "low_stock" | "out_of_stock";
|
|
@@ -2327,24 +2327,6 @@ interface RequestOptions {
|
|
|
2327
2327
|
idempotencyKey?: string;
|
|
2328
2328
|
headers?: Record<string, string>;
|
|
2329
2329
|
}
|
|
2330
|
-
/**
|
|
2331
|
-
* Per-call cache hints for server-side reads. Forwarded as `next: { revalidate, tags }`
|
|
2332
|
-
* on the underlying fetch — Next.js's data cache reads them; in non-Next runtimes
|
|
2333
|
-
* they're inert. Maps 1:1 onto Next 16's documented fetch caching API:
|
|
2334
|
-
* https://nextjs.org/docs/app/api-reference/functions/fetch#optionsnextrevalidate
|
|
2335
|
-
*
|
|
2336
|
-
* Use the `tags` builders from `@cimplify/sdk/server` so invalidation stays consistent
|
|
2337
|
-
* with the `revalidate*` helpers.
|
|
2338
|
-
*/
|
|
2339
|
-
interface CacheOptions {
|
|
2340
|
-
/** Seconds before the cache entry is considered stale. `false` = cache indefinitely. */
|
|
2341
|
-
revalidate?: number | false;
|
|
2342
|
-
/** Cache tags for on-demand invalidation via `revalidateTag(tag)`. */
|
|
2343
|
-
tags?: readonly string[];
|
|
2344
|
-
}
|
|
2345
|
-
interface ReadRequestOptions {
|
|
2346
|
-
cacheOptions?: CacheOptions;
|
|
2347
|
-
}
|
|
2348
2330
|
interface CimplifyConfig {
|
|
2349
2331
|
publicKey?: string;
|
|
2350
2332
|
credentials?: RequestCredentials;
|
|
@@ -2426,11 +2408,11 @@ declare class CimplifyClient {
|
|
|
2426
2408
|
private resilientFetch;
|
|
2427
2409
|
private getDedupeKey;
|
|
2428
2410
|
private deduplicatedRequest;
|
|
2429
|
-
get<T = unknown>(path: string
|
|
2411
|
+
get<T = unknown>(path: string): Promise<T>;
|
|
2430
2412
|
post<T = unknown>(path: string, body?: unknown, opts?: RequestOptions): Promise<T>;
|
|
2431
2413
|
patch<T = unknown>(path: string, body?: unknown, opts?: RequestOptions): Promise<T>;
|
|
2432
2414
|
delete<T = unknown>(path: string, opts?: RequestOptions): Promise<T>;
|
|
2433
|
-
linkGet<T = unknown>(path: string
|
|
2415
|
+
linkGet<T = unknown>(path: string): Promise<T>;
|
|
2434
2416
|
linkPost<T = unknown>(path: string, body?: unknown, opts?: RequestOptions): Promise<T>;
|
|
2435
2417
|
linkDelete<T = unknown>(path: string, opts?: RequestOptions): Promise<T>;
|
|
2436
2418
|
private handleRestResponse;
|
|
@@ -2456,4 +2438,4 @@ declare class CimplifyClient {
|
|
|
2456
2438
|
}
|
|
2457
2439
|
declare function createCimplifyClient(config?: CimplifyConfig): CimplifyClient;
|
|
2458
2440
|
|
|
2459
|
-
export { type
|
|
2441
|
+
export { type ChatConversationResponse as $, AuthService as A, BusinessService as B, CimplifyClient as C, type PlaceDetailsResponse as D, type TrackCategoryViewOptions as E, type FetchQuoteInput as F, type GetProductsOptions as G, type SessionMessage as H, InventoryService as I, type SessionActivityData as J, type ActivityStateResponse as K, LinkService as L, type ActivityRecommendation as M, type ActivityRecommendationsResponse as N, OrderQueries as O, type PriceQuote as P, type QuoteCompositeSelectionInput as Q, type RequestOptions as R, SubscriptionService as S, type TrackProductViewOptions as T, type UpdateProfileInput as U, type DismissMessageResponse as V, DeliveryService as W, type DeliveryFeeResponse as X, SupportService as Y, type ChatMessage as Z, type ChatConversation as _, type CimplifyConfig as a, fromPromise as a$, type ChatAttachment as a0, type ChatWidgetStarter as a1, type SenderType as a2, type ContentType as a3, type LiteBootstrap as a4, type TableInfo as a5, CimplifyElements as a6, CimplifyElement as a7, createElements as a8, MESSAGE_TYPES as a9, PAYMENT_STATE as aA, PICKUP_TIME_TYPE as aB, MOBILE_MONEY_PROVIDER as aC, AUTHORIZATION_TYPE as aD, DEVICE_TYPE as aE, CONTACT_TYPE as aF, LINK_QUERY as aG, LINK_MUTATION as aH, AUTH_MUTATION as aI, CHECKOUT_MUTATION as aJ, PAYMENT_MUTATION as aK, ORDER_MUTATION as aL, DEFAULT_CURRENCY as aM, DEFAULT_COUNTRY as aN, type Result as aO, type Ok as aP, type Err as aQ, ok as aR, err as aS, isOk as aT, isErr as aU, mapResult as aV, mapError as aW, flatMap as aX, getOrElse as aY, unwrap as aZ, toNullable as a_, EVENT_TYPES as aa, ELEMENT_TYPES as ab, type ElementsOptions as ac, type ElementOptions as ad, type ElementType as ae, type ElementEventType as af, type CheckoutMode as ag, type CheckoutOrderType as ah, type CheckoutPaymentMethod as ai, type CheckoutStep as aj, type CheckoutFormData as ak, type CheckoutResult as al, type NextAction as am, type ProcessCheckoutOptions as an, type ProcessCheckoutResult as ao, type ProcessAndResolveOptions as ap, type CheckoutStatus as aq, type CheckoutStatusContext as ar, type AbortablePromise as as, type MobileMoneyProvider as at, type DeviceType as au, type ContactType as av, CHECKOUT_MODE as aw, ORDER_TYPE as ax, PAYMENT_METHOD as ay, CHECKOUT_STEP as az, CatalogueQueries as b, type TimeRange as b$, tryCatch as b0, combine as b1, combineObject as b2, type CatalogueResult as b3, type CatalogueSnapshot as b4, type OrderStatus as b5, type PaymentState as b6, type OrderChannel as b7, type LineType as b8, type OrderLineState as b9, type ReminderMethod as bA, type CustomerServicePreferences as bB, type BufferTimes as bC, type ReminderSettings as bD, type CancellationPolicy as bE, type ServiceNotes as bF, type PricingOverrides as bG, type SchedulingMetadata as bH, type StaffAssignment as bI, type ResourceAssignment as bJ, type SchedulingResult as bK, type DepositResult as bL, type ServiceScheduleRequest as bM, type StaffScheduleItem as bN, type LocationBooking as bO, type ProviderResolutionSource as bP, type DeliveryFeeDetails as bQ, type RelationType as bR, type RelatedProduct as bS, type RelatedCandidate as bT, type RelatedProductsEnrichment as bU, type BusinessType as bV, type BusinessPreferences as bW, type Business as bX, type LocationTaxBehavior as bY, type LocationTaxOverrides as bZ, type Location as b_, type OrderLineStatus as ba, type FulfillmentType as bb, type FulfillmentStatus as bc, type FulfillmentLink as bd, type OrderFulfillmentSummary as be, type FeeBearerType as bf, type AmountToPay as bg, type LineItem as bh, type Order as bi, type OrderHistory as bj, type OrderGroupStatus as bk, type OrderGroupPaymentState as bl, type OrderGroupPaymentStatus as bm, type OrderGroup as bn, type OrderGroupPayment as bo, type OrderSplitDetail as bp, type OrderGroupPaymentSummary as bq, type OrderGroupDetails as br, type OrderPaymentEvent as bs, type OrderFilter as bt, type CheckoutInput as bu, type UpdateOrderStatusInput as bv, type CancelOrderInput as bw, type RefundOrderInput as bx, type ServiceStatus as by, type StaffRole as bz, createCimplifyClient as c, type FxQuoteRequest as c$, type TimeRanges as c0, type LocationTimeProfile as c1, type Table as c2, type Room as c3, type ServiceCharge as c4, type StorefrontBootstrap as c5, type BusinessWithLocations as c6, type LocationWithDetails as c7, type BusinessSettings as c8, type BusinessHours as c9, type AvailabilityResult as cA, type Customer as cB, type CustomerAddress as cC, type CustomerMobileMoney as cD, type CustomerLinkPreferences as cE, type LinkData as cF, type CreateAddressInput as cG, type UpdateAddressInput as cH, type CreateMobileMoneyInput as cI, type EnrollmentData as cJ, type AddressData as cK, type MobileMoneyData as cL, type EnrollAndLinkOrderInput as cM, type LinkStatusResult as cN, type LinkEnrollResult as cO, type EnrollAndLinkOrderResult as cP, type LinkSession as cQ, type RevokeSessionResult as cR, type RevokeAllSessionsResult as cS, type RequestOtpInput as cT, type VerifyOtpInput as cU, type AuthResponse as cV, type PickupTimeType as cW, type PickupTime as cX, type CheckoutAddressInfo as cY, type MobileMoneyDetails as cZ, type CheckoutCustomerInfo as c_, type CategoryInfo as ca, type Service as cb, type Staff as cc, type TimeSlot as cd, type SlotResourceInfo as ce, type SlotStaffInfo as cf, type AvailableSlot as cg, type DayAvailability as ch, type BookingStatus as ci, type Booking as cj, type BookingWithDetails as ck, type CustomerBookingServiceItem as cl, type CustomerBooking as cm, type GetAvailableSlotsInput as cn, type CheckSlotAvailabilityInput as co, type CheckSlotAvailabilityResult as cp, type RescheduleBookingInput as cq, type CancelBookingInput as cr, type CancelBookingResult as cs, type BookingModificationType as ct, type RescheduleBookingResult as cu, type ServiceAvailabilityParams as cv, type ServiceAvailabilityResult as cw, type RescheduleHistoryRecord as cx, type StockStatus as cy, type StockLevel as cz, type QuoteBundleSelectionInput as d, type FxQuote as d0, type FxRateResponse as d1, type RequestContext as d2, type RequestStartEvent as d3, type RequestSuccessEvent as d4, type RequestErrorEvent as d5, type RetryEvent as d6, type SessionChangeEvent as d7, type ObservabilityHooks as d8, type OrderType as d9, type ElementAppearance as da, type AddressInfo as db, type PaymentMethodInfo as dc, type AuthenticatedCustomer as dd, type ElementsCustomerInfo as de, type AuthenticatedData as df, type ElementsCheckoutData as dg, type ElementsCheckoutResult as dh, type CheckoutCartItem as di, type CheckoutCartData as dj, type ParentToIframeMessage as dk, type IframeToParentMessage as dl, type ElementEventHandler as dm, type RefreshQuoteInput as e, type QuoteStatus as f, type QuoteDynamicBuckets as g, type QuoteUiMessage as h, type RequestSource as i, type RefreshQuoteResult as j, CartOperations as k, type ReorderResult as l, CheckoutService 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 };
|
|
@@ -224,29 +224,29 @@ interface RefreshQuoteResult {
|
|
|
224
224
|
declare class CatalogueQueries {
|
|
225
225
|
private client;
|
|
226
226
|
constructor(client: CimplifyClient);
|
|
227
|
-
getCatalogue(
|
|
228
|
-
getProducts(options?: GetProductsOptions
|
|
229
|
-
getProduct(id: string
|
|
230
|
-
getProductBySlug(slug: string
|
|
227
|
+
getCatalogue(): Promise<Result<CatalogueSnapshot, CimplifyError>>;
|
|
228
|
+
getProducts(options?: GetProductsOptions): Promise<Result<CatalogueResult<Product>, CimplifyError>>;
|
|
229
|
+
getProduct(id: string): Promise<Result<ProductWithDetails, CimplifyError>>;
|
|
230
|
+
getProductBySlug(slug: string): Promise<Result<ProductWithDetails, CimplifyError>>;
|
|
231
231
|
getVariants(productId: string): Promise<Result<ProductVariant[], CimplifyError>>;
|
|
232
232
|
getVariantAxes(productId: string): Promise<Result<VariantAxis[], CimplifyError>>;
|
|
233
233
|
getVariantByAxisSelections(productId: string, selections: VariantAxisSelection): Promise<Result<ProductVariant | null, CimplifyError>>;
|
|
234
234
|
getVariantById(productId: string, variantId: string): Promise<Result<ProductVariant, CimplifyError>>;
|
|
235
|
-
getAddOns(productId: string
|
|
236
|
-
getCategories(
|
|
237
|
-
getCategory(id: string
|
|
238
|
-
getCategoryBySlug(slug: string
|
|
235
|
+
getAddOns(productId: string): Promise<Result<AddOn[], CimplifyError>>;
|
|
236
|
+
getCategories(): Promise<Result<Category[], CimplifyError>>;
|
|
237
|
+
getCategory(id: string): Promise<Result<Category, CimplifyError>>;
|
|
238
|
+
getCategoryBySlug(slug: string): Promise<Result<Category, CimplifyError>>;
|
|
239
239
|
getCategoryProducts(categoryId: string, options?: {
|
|
240
240
|
limit?: number;
|
|
241
241
|
offset?: number;
|
|
242
|
-
}
|
|
243
|
-
getCollections(
|
|
244
|
-
getCollection(id: string
|
|
245
|
-
getCollectionBySlug(slug: string
|
|
242
|
+
}): Promise<Result<Product[], CimplifyError>>;
|
|
243
|
+
getCollections(): Promise<Result<Collection[], CimplifyError>>;
|
|
244
|
+
getCollection(id: string): Promise<Result<Collection, CimplifyError>>;
|
|
245
|
+
getCollectionBySlug(slug: string): Promise<Result<Collection, CimplifyError>>;
|
|
246
246
|
getCollectionProducts(collectionId: string, options?: {
|
|
247
247
|
limit?: number;
|
|
248
248
|
offset?: number;
|
|
249
|
-
}
|
|
249
|
+
}): Promise<Result<Product[], CimplifyError>>;
|
|
250
250
|
searchCollections(query: string, limit?: number): Promise<Result<Collection[], CimplifyError>>;
|
|
251
251
|
getBundles(): Promise<Result<BundleSummary[], CimplifyError>>;
|
|
252
252
|
getBundle(id: string): Promise<Result<Bundle, CimplifyError>>;
|
|
@@ -274,8 +274,8 @@ declare class CatalogueQueries {
|
|
|
274
274
|
getCategoryDeals(categoryId: string): Promise<Result<Deal[], CimplifyError>>;
|
|
275
275
|
getCollectionDeals(collectionId: string): Promise<Result<Deal[], CimplifyError>>;
|
|
276
276
|
validateDiscountCode(code: string, orderSubtotal: string, locationId?: string): Promise<Result<DiscountValidation, CimplifyError>>;
|
|
277
|
-
search(query: string, options?: Omit<GetProductsOptions, "search"
|
|
278
|
-
searchProducts(query: string, options?: Omit<GetProductsOptions, "search"
|
|
277
|
+
search(query: string, options?: Omit<GetProductsOptions, "search">): Promise<Result<Product[], CimplifyError>>;
|
|
278
|
+
searchProducts(query: string, options?: Omit<GetProductsOptions, "search">): Promise<Result<Product[], CimplifyError>>;
|
|
279
279
|
getMenu(options?: {
|
|
280
280
|
category?: string;
|
|
281
281
|
limit?: number;
|
|
@@ -1438,15 +1438,15 @@ interface CategoryInfo {
|
|
|
1438
1438
|
declare class BusinessService {
|
|
1439
1439
|
private client;
|
|
1440
1440
|
constructor(client: CimplifyClient);
|
|
1441
|
-
getInfo(
|
|
1442
|
-
getByHandle(handle: string
|
|
1443
|
-
getByDomain(domain: string
|
|
1444
|
-
getSettings(
|
|
1445
|
-
getLocations(
|
|
1446
|
-
getLocation(locationId: string
|
|
1447
|
-
getHours(
|
|
1448
|
-
getLocationHours(locationId: string
|
|
1449
|
-
getBootstrap(
|
|
1441
|
+
getInfo(): Promise<Result<Business, CimplifyError>>;
|
|
1442
|
+
getByHandle(handle: string): Promise<Result<Business, CimplifyError>>;
|
|
1443
|
+
getByDomain(domain: string): Promise<Result<Business, CimplifyError>>;
|
|
1444
|
+
getSettings(): Promise<Result<BusinessSettings, CimplifyError>>;
|
|
1445
|
+
getLocations(): Promise<Result<Location[], CimplifyError>>;
|
|
1446
|
+
getLocation(locationId: string): Promise<Result<Location, CimplifyError>>;
|
|
1447
|
+
getHours(): Promise<Result<BusinessHours[], CimplifyError>>;
|
|
1448
|
+
getLocationHours(locationId: string): Promise<Result<BusinessHours[], CimplifyError>>;
|
|
1449
|
+
getBootstrap(): Promise<Result<StorefrontBootstrap, CimplifyError>>;
|
|
1450
1450
|
}
|
|
1451
1451
|
|
|
1452
1452
|
type StockStatus = "in_stock" | "low_stock" | "out_of_stock";
|
|
@@ -2327,24 +2327,6 @@ interface RequestOptions {
|
|
|
2327
2327
|
idempotencyKey?: string;
|
|
2328
2328
|
headers?: Record<string, string>;
|
|
2329
2329
|
}
|
|
2330
|
-
/**
|
|
2331
|
-
* Per-call cache hints for server-side reads. Forwarded as `next: { revalidate, tags }`
|
|
2332
|
-
* on the underlying fetch — Next.js's data cache reads them; in non-Next runtimes
|
|
2333
|
-
* they're inert. Maps 1:1 onto Next 16's documented fetch caching API:
|
|
2334
|
-
* https://nextjs.org/docs/app/api-reference/functions/fetch#optionsnextrevalidate
|
|
2335
|
-
*
|
|
2336
|
-
* Use the `tags` builders from `@cimplify/sdk/server` so invalidation stays consistent
|
|
2337
|
-
* with the `revalidate*` helpers.
|
|
2338
|
-
*/
|
|
2339
|
-
interface CacheOptions {
|
|
2340
|
-
/** Seconds before the cache entry is considered stale. `false` = cache indefinitely. */
|
|
2341
|
-
revalidate?: number | false;
|
|
2342
|
-
/** Cache tags for on-demand invalidation via `revalidateTag(tag)`. */
|
|
2343
|
-
tags?: readonly string[];
|
|
2344
|
-
}
|
|
2345
|
-
interface ReadRequestOptions {
|
|
2346
|
-
cacheOptions?: CacheOptions;
|
|
2347
|
-
}
|
|
2348
2330
|
interface CimplifyConfig {
|
|
2349
2331
|
publicKey?: string;
|
|
2350
2332
|
credentials?: RequestCredentials;
|
|
@@ -2426,11 +2408,11 @@ declare class CimplifyClient {
|
|
|
2426
2408
|
private resilientFetch;
|
|
2427
2409
|
private getDedupeKey;
|
|
2428
2410
|
private deduplicatedRequest;
|
|
2429
|
-
get<T = unknown>(path: string
|
|
2411
|
+
get<T = unknown>(path: string): Promise<T>;
|
|
2430
2412
|
post<T = unknown>(path: string, body?: unknown, opts?: RequestOptions): Promise<T>;
|
|
2431
2413
|
patch<T = unknown>(path: string, body?: unknown, opts?: RequestOptions): Promise<T>;
|
|
2432
2414
|
delete<T = unknown>(path: string, opts?: RequestOptions): Promise<T>;
|
|
2433
|
-
linkGet<T = unknown>(path: string
|
|
2415
|
+
linkGet<T = unknown>(path: string): Promise<T>;
|
|
2434
2416
|
linkPost<T = unknown>(path: string, body?: unknown, opts?: RequestOptions): Promise<T>;
|
|
2435
2417
|
linkDelete<T = unknown>(path: string, opts?: RequestOptions): Promise<T>;
|
|
2436
2418
|
private handleRestResponse;
|
|
@@ -2456,4 +2438,4 @@ declare class CimplifyClient {
|
|
|
2456
2438
|
}
|
|
2457
2439
|
declare function createCimplifyClient(config?: CimplifyConfig): CimplifyClient;
|
|
2458
2440
|
|
|
2459
|
-
export { type
|
|
2441
|
+
export { type ChatConversationResponse as $, AuthService as A, BusinessService as B, CimplifyClient as C, type PlaceDetailsResponse as D, type TrackCategoryViewOptions as E, type FetchQuoteInput as F, type GetProductsOptions as G, type SessionMessage as H, InventoryService as I, type SessionActivityData as J, type ActivityStateResponse as K, LinkService as L, type ActivityRecommendation as M, type ActivityRecommendationsResponse as N, OrderQueries as O, type PriceQuote as P, type QuoteCompositeSelectionInput as Q, type RequestOptions as R, SubscriptionService as S, type TrackProductViewOptions as T, type UpdateProfileInput as U, type DismissMessageResponse as V, DeliveryService as W, type DeliveryFeeResponse as X, SupportService as Y, type ChatMessage as Z, type ChatConversation as _, type CimplifyConfig as a, fromPromise as a$, type ChatAttachment as a0, type ChatWidgetStarter as a1, type SenderType as a2, type ContentType as a3, type LiteBootstrap as a4, type TableInfo as a5, CimplifyElements as a6, CimplifyElement as a7, createElements as a8, MESSAGE_TYPES as a9, PAYMENT_STATE as aA, PICKUP_TIME_TYPE as aB, MOBILE_MONEY_PROVIDER as aC, AUTHORIZATION_TYPE as aD, DEVICE_TYPE as aE, CONTACT_TYPE as aF, LINK_QUERY as aG, LINK_MUTATION as aH, AUTH_MUTATION as aI, CHECKOUT_MUTATION as aJ, PAYMENT_MUTATION as aK, ORDER_MUTATION as aL, DEFAULT_CURRENCY as aM, DEFAULT_COUNTRY as aN, type Result as aO, type Ok as aP, type Err as aQ, ok as aR, err as aS, isOk as aT, isErr as aU, mapResult as aV, mapError as aW, flatMap as aX, getOrElse as aY, unwrap as aZ, toNullable as a_, EVENT_TYPES as aa, ELEMENT_TYPES as ab, type ElementsOptions as ac, type ElementOptions as ad, type ElementType as ae, type ElementEventType as af, type CheckoutMode as ag, type CheckoutOrderType as ah, type CheckoutPaymentMethod as ai, type CheckoutStep as aj, type CheckoutFormData as ak, type CheckoutResult as al, type NextAction as am, type ProcessCheckoutOptions as an, type ProcessCheckoutResult as ao, type ProcessAndResolveOptions as ap, type CheckoutStatus as aq, type CheckoutStatusContext as ar, type AbortablePromise as as, type MobileMoneyProvider as at, type DeviceType as au, type ContactType as av, CHECKOUT_MODE as aw, ORDER_TYPE as ax, PAYMENT_METHOD as ay, CHECKOUT_STEP as az, CatalogueQueries as b, type TimeRange as b$, tryCatch as b0, combine as b1, combineObject as b2, type CatalogueResult as b3, type CatalogueSnapshot as b4, type OrderStatus as b5, type PaymentState as b6, type OrderChannel as b7, type LineType as b8, type OrderLineState as b9, type ReminderMethod as bA, type CustomerServicePreferences as bB, type BufferTimes as bC, type ReminderSettings as bD, type CancellationPolicy as bE, type ServiceNotes as bF, type PricingOverrides as bG, type SchedulingMetadata as bH, type StaffAssignment as bI, type ResourceAssignment as bJ, type SchedulingResult as bK, type DepositResult as bL, type ServiceScheduleRequest as bM, type StaffScheduleItem as bN, type LocationBooking as bO, type ProviderResolutionSource as bP, type DeliveryFeeDetails as bQ, type RelationType as bR, type RelatedProduct as bS, type RelatedCandidate as bT, type RelatedProductsEnrichment as bU, type BusinessType as bV, type BusinessPreferences as bW, type Business as bX, type LocationTaxBehavior as bY, type LocationTaxOverrides as bZ, type Location as b_, type OrderLineStatus as ba, type FulfillmentType as bb, type FulfillmentStatus as bc, type FulfillmentLink as bd, type OrderFulfillmentSummary as be, type FeeBearerType as bf, type AmountToPay as bg, type LineItem as bh, type Order as bi, type OrderHistory as bj, type OrderGroupStatus as bk, type OrderGroupPaymentState as bl, type OrderGroupPaymentStatus as bm, type OrderGroup as bn, type OrderGroupPayment as bo, type OrderSplitDetail as bp, type OrderGroupPaymentSummary as bq, type OrderGroupDetails as br, type OrderPaymentEvent as bs, type OrderFilter as bt, type CheckoutInput as bu, type UpdateOrderStatusInput as bv, type CancelOrderInput as bw, type RefundOrderInput as bx, type ServiceStatus as by, type StaffRole as bz, createCimplifyClient as c, type FxQuoteRequest as c$, type TimeRanges as c0, type LocationTimeProfile as c1, type Table as c2, type Room as c3, type ServiceCharge as c4, type StorefrontBootstrap as c5, type BusinessWithLocations as c6, type LocationWithDetails as c7, type BusinessSettings as c8, type BusinessHours as c9, type AvailabilityResult as cA, type Customer as cB, type CustomerAddress as cC, type CustomerMobileMoney as cD, type CustomerLinkPreferences as cE, type LinkData as cF, type CreateAddressInput as cG, type UpdateAddressInput as cH, type CreateMobileMoneyInput as cI, type EnrollmentData as cJ, type AddressData as cK, type MobileMoneyData as cL, type EnrollAndLinkOrderInput as cM, type LinkStatusResult as cN, type LinkEnrollResult as cO, type EnrollAndLinkOrderResult as cP, type LinkSession as cQ, type RevokeSessionResult as cR, type RevokeAllSessionsResult as cS, type RequestOtpInput as cT, type VerifyOtpInput as cU, type AuthResponse as cV, type PickupTimeType as cW, type PickupTime as cX, type CheckoutAddressInfo as cY, type MobileMoneyDetails as cZ, type CheckoutCustomerInfo as c_, type CategoryInfo as ca, type Service as cb, type Staff as cc, type TimeSlot as cd, type SlotResourceInfo as ce, type SlotStaffInfo as cf, type AvailableSlot as cg, type DayAvailability as ch, type BookingStatus as ci, type Booking as cj, type BookingWithDetails as ck, type CustomerBookingServiceItem as cl, type CustomerBooking as cm, type GetAvailableSlotsInput as cn, type CheckSlotAvailabilityInput as co, type CheckSlotAvailabilityResult as cp, type RescheduleBookingInput as cq, type CancelBookingInput as cr, type CancelBookingResult as cs, type BookingModificationType as ct, type RescheduleBookingResult as cu, type ServiceAvailabilityParams as cv, type ServiceAvailabilityResult as cw, type RescheduleHistoryRecord as cx, type StockStatus as cy, type StockLevel as cz, type QuoteBundleSelectionInput as d, type FxQuote as d0, type FxRateResponse as d1, type RequestContext as d2, type RequestStartEvent as d3, type RequestSuccessEvent as d4, type RequestErrorEvent as d5, type RetryEvent as d6, type SessionChangeEvent as d7, type ObservabilityHooks as d8, type OrderType as d9, type ElementAppearance as da, type AddressInfo as db, type PaymentMethodInfo as dc, type AuthenticatedCustomer as dd, type ElementsCustomerInfo as de, type AuthenticatedData as df, type ElementsCheckoutData as dg, type ElementsCheckoutResult as dh, type CheckoutCartItem as di, type CheckoutCartData as dj, type ParentToIframeMessage as dk, type IframeToParentMessage as dl, type ElementEventHandler as dm, type RefreshQuoteInput as e, type QuoteStatus as f, type QuoteDynamicBuckets as g, type QuoteUiMessage as h, type RequestSource as i, type RefreshQuoteResult as j, CartOperations as k, type ReorderResult as l, CheckoutService 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,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { aD as AUTHORIZATION_TYPE, aI as AUTH_MUTATION, as as AbortablePromise, M as ActivityRecommendation, N as ActivityRecommendationsResponse, t as ActivityService, K as ActivityStateResponse, cK as AddressData, db as AddressInfo, bg as AmountToPay, cV as AuthResponse, A as AuthService, o as AuthStatus, dd as AuthenticatedCustomer, df as AuthenticatedData, y as AutocompletePrediction, z as AutocompleteResponse, cA as AvailabilityResult, cg as AvailableSlot, cj as Booking, ct as BookingModificationType, ci as BookingStatus, ck as BookingWithDetails, bC as BufferTimes, bX as Business, c9 as BusinessHours, bW as BusinessPreferences, B as BusinessService, c8 as BusinessSettings, bV as BusinessType, c6 as BusinessWithLocations, aw as CHECKOUT_MODE, aJ as CHECKOUT_MUTATION, az as CHECKOUT_STEP, aF as CONTACT_TYPE, cr as CancelBookingInput, cs as CancelBookingResult, bw as CancelOrderInput, bE as CancellationPolicy, k as CartOperations, b as CatalogueQueries, b3 as CatalogueResult, b4 as CatalogueSnapshot, ca as CategoryInfo, a0 as ChatAttachment, _ as ChatConversation, $ as ChatConversationResponse, Z as ChatMessage, a1 as ChatWidgetStarter, co as CheckSlotAvailabilityInput, cp as CheckSlotAvailabilityResult, cY as CheckoutAddressInfo, dj as CheckoutCartData, di as CheckoutCartItem, c_ as CheckoutCustomerInfo, ak as CheckoutFormData, bu as CheckoutInput, ag as CheckoutMode, m as CheckoutOperations, ah as CheckoutOrderType, ai as CheckoutPaymentMethod, al as CheckoutResult, m as CheckoutService, aq as CheckoutStatus, ar as CheckoutStatusContext, aj as CheckoutStep, C as CimplifyClient, a as CimplifyConfig, a7 as CimplifyElement, a6 as CimplifyElements, av as ContactType, a3 as ContentType, cG as CreateAddressInput, cI as CreateMobileMoneyInput, cB as Customer, cC as CustomerAddress, cm as CustomerBooking, cl as CustomerBookingServiceItem, cE as CustomerLinkPreferences, cD as CustomerMobileMoney, bB as CustomerServicePreferences, aN as DEFAULT_COUNTRY, aM as DEFAULT_CURRENCY, aE as DEVICE_TYPE, ch as DayAvailability, bQ as DeliveryFeeDetails, X as DeliveryFeeResponse, W as DeliveryService, bL as DepositResult, au as DeviceType, V as DismissMessageResponse, ab as ELEMENT_TYPES, aa as EVENT_TYPES, da as ElementAppearance, dm as ElementEventHandler, af as ElementEventType, ad as ElementOptions, ae as ElementType, dg as ElementsCheckoutData, dh as ElementsCheckoutResult, de as ElementsCustomerInfo, ac as ElementsOptions, cM as EnrollAndLinkOrderInput, cP as EnrollAndLinkOrderResult, cJ as EnrollmentData, aQ as Err, bf as FeeBearerType, F as FetchQuoteInput, bd as FulfillmentLink, bc as FulfillmentStatus, bb as FulfillmentType, d0 as FxQuote, c$ as FxQuoteRequest, d1 as FxRateResponse, s as FxService, cn as GetAvailableSlotsInput, n as GetOrdersOptions, G as GetProductsOptions, dl as IframeToParentMessage, I as InventoryService, aH as LINK_MUTATION, aG as LINK_QUERY, bh as LineItem, b8 as LineType, cF as LinkData, cO as LinkEnrollResult, L as LinkService, cQ as LinkSession, cN as LinkStatusResult, a4 as LiteBootstrap, r as LiteService, b_ as Location, bO as LocationBooking, bY as LocationTaxBehavior, bZ as LocationTaxOverrides, c1 as LocationTimeProfile, c7 as LocationWithDetails, a9 as MESSAGE_TYPES, aC as MOBILE_MONEY_PROVIDER, cL as MobileMoneyData, cZ as MobileMoneyDetails, at as MobileMoneyProvider, am as NextAction, aL as ORDER_MUTATION, ax as ORDER_TYPE, d8 as ObservabilityHooks, aP as Ok, bi as Order, b7 as OrderChannel, bt as OrderFilter, be as OrderFulfillmentSummary, bn as OrderGroup, br as OrderGroupDetails, bo as OrderGroupPayment, bl as OrderGroupPaymentState, bm as OrderGroupPaymentStatus, bq as OrderGroupPaymentSummary, bk as OrderGroupStatus, bj as OrderHistory, b9 as OrderLineState, ba as OrderLineStatus, bs as OrderPaymentEvent, O as OrderQueries, bp as OrderSplitDetail, b5 as OrderStatus, d9 as OrderType, p as OtpResult, ay as PAYMENT_METHOD, aK as PAYMENT_MUTATION, aA as PAYMENT_STATE, aB as PICKUP_TIME_TYPE, dk as ParentToIframeMessage, dc as PaymentMethodInfo, b6 as PaymentState, cX as PickupTime, cW as PickupTimeType, D as PlaceDetailsResponse, x as PlacesService, P as PriceQuote, bG as PricingOverrides, ap as ProcessAndResolveOptions, an as ProcessCheckoutOptions, ao as ProcessCheckoutResult, bP as ProviderResolutionSource, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, g as QuoteDynamicBuckets, f as QuoteStatus, h as QuoteUiMessage, e as RefreshQuoteInput, j as RefreshQuoteResult, bx as RefundOrderInput, bT as RelatedCandidate, bS as RelatedProduct, bU as RelatedProductsEnrichment, bR as RelationType, bA as ReminderMethod, bD as ReminderSettings, l as ReorderResult, d2 as RequestContext, d5 as RequestErrorEvent, R as RequestOptions, cT as RequestOtpInput, i as RequestSource, d3 as RequestStartEvent, d4 as RequestSuccessEvent, cq as RescheduleBookingInput, cu as RescheduleBookingResult, cx as RescheduleHistoryRecord, bJ as ResourceAssignment, aO as Result, d6 as RetryEvent, cS as RevokeAllSessionsResult, cR as RevokeSessionResult, c3 as Room, bH as SchedulingMetadata, bK as SchedulingResult, q as SchedulingService, a2 as SenderType, cb as Service, cv as ServiceAvailabilityParams, cw as ServiceAvailabilityResult, c4 as ServiceCharge, bF as ServiceNotes, bM as ServiceScheduleRequest, by as ServiceStatus, J as SessionActivityData, d7 as SessionChangeEvent, H as SessionMessage, ce as SlotResourceInfo, cf as SlotStaffInfo, cc as Staff, bI as StaffAssignment, bz as StaffRole, bN as StaffScheduleItem, cz as StockLevel, cy as StockStatus, c5 as StorefrontBootstrap, S as SubscriptionService, Y as SupportService, c2 as Table, a5 as TableInfo, b$ as TimeRange, c0 as TimeRanges, cd as TimeSlot, E as TrackCategoryViewOptions, T as TrackProductViewOptions, cH as UpdateAddressInput, bv as UpdateOrderStatusInput, U as UpdateProfileInput, w as UploadInitResponse, v as UploadResult, u as UploadService, cU as VerifyOtpInput, b1 as combine, b2 as combineObject, c as createCimplifyClient, a8 as createElements, aS as err, aX as flatMap, a$ as fromPromise, aY as getOrElse, aU as isErr, aT as isOk, aW as mapError, aV as mapResult, aR as ok, a_ as toNullable, b0 as tryCatch, aZ as unwrap } from './client-C6J_RGlr.mjs';
|
|
2
2
|
import { A as ApiError } from './product-C-xLzh7Q.mjs';
|
|
3
3
|
export { ak as AddOn, bh as AddOnDetails, bE as AddOnGroupDetails, am as AddOnOption, bD as AddOnOptionDetails, an as AddOnOptionPrice, al as AddOnWithOptions, bK as AddToCartInput, $ as AddressValue, b7 as AdjustmentType, bd as AppliedDiscount, F as AttributeAppliesTo, B as AttributeType, J as AttributeValidationRules, G as AttributeVisibility, bc as BenefitType, bN as BillingFrequency, bP as BillingMarkupType, bO as BillingPlanType, av as Bundle, az as BundleComponentData, aA as BundleComponentInfo, aC as BundleComponentVariantView, aB as BundleComponentView, au as BundlePriceType, ax as BundleProduct, bn as BundleSelectionData, bk as BundleSelectionInput, bm as BundleStoredSelection, aw as BundleSummary, ay as BundleWithDetails, bs as Cart, bi as CartAddOn, b5 as CartChannel, bt as CartItem, bG as CartItemDetails, bJ as CartMutationResult, bI as CartNotice, b4 as CartStatus, bM as CartSummary, bu as CartTotals, ap as Category, aq as CategorySummary, C as ChosenPrice, h as CimplifyError, ar as Collection, at as CollectionProduct, as as CollectionSummary, aK as ComponentGroup, aL as ComponentGroupWithComponents, aR as ComponentPriceBreakdown, bl as ComponentSchedulingData, aP as ComponentSelectionInput, aH as ComponentSourceType, aI as Composite, aO as CompositeComponent, aN as CompositeComponentView, aM as CompositeGroupView, bp as CompositePriceBreakdown, aQ as CompositePriceResult, aF as CompositePricingMode, bq as CompositeSelectionData, aP as CompositeSelectionInput, bo as CompositeStoredSelection, aJ as CompositeWithDetails, a as CurrencyCode, K as CustomAttributeDefinition, L as CustomAttributeValue, a7 as CustomerInputValue, y as DURATION_UNIT, a1 as DateRangeValue, a$ as Deal, a_ as DealBenefitType, w as DepositType, v as DigitalProductType, be as DiscountBreakdown, bf as DiscountDetails, b1 as DiscountValidation, bx as DisplayAddOn, by as DisplayAddOnOption, bv as DisplayCart, bw as DisplayCartItem, D as DisplayMode, x as DurationUnit, g as ERROR_HINTS, bR as EligiblePlansQuery, E as ErrorCode, e as ErrorCodeType, f as ErrorHint, T as FacetValue, bS as FormattedPlanOption, aG as GroupPricingBehavior, _ as INPUT_FIELD_TYPE, I as IdempotencyMismatchError, Y as InputFieldType, a4 as InputFieldValidation, u as InventoryType, W as KnowledgeArticle, br as LineConfiguration, aU as LocationProductPrice, a2 as LocationValue, H as MeasurementValue, M as Money, s as PRODUCT_TYPE, d as Pagination, P as PaginationParams, a0 as PhoneValue, aT as Price, b8 as PriceAdjustment, bb as PriceDecisionPath, aS as PriceEntryType, ba as PricePathTaxInfo, b6 as PriceSource, X as Product, ao as ProductAddOn, aV as ProductAvailability, aZ as ProductAvailabilityNow, bQ as ProductBillingPlan, b0 as ProductDealInfo, a6 as ProductInputField, O as ProductProperty, t as ProductRenderHint, aX as ProductTaxonomy, aW as ProductTimeProfile, r as ProductType, ac as ProductVariant, ah as ProductVariantValue, aa as ProductWithDetails, Q as PropertyFacet, N as PropertySource, a8 as QuantityPricingTier, R as RENDER_HINT, a9 as RelatedProductView, z as SalesChannel, S as SchedulingMode, bg as SelectedAddOnOption, a5 as SemanticKind, a3 as SignatureValue, bU as Subscription, bW as SubscriptionInvoice, bV as SubscriptionItem, bT as SubscriptionStatus, bX as SubscriptionWithDetails, b2 as Tag, b3 as TagsResponse, b9 as TaxPathComponent, U as TaxonomyAttributeTemplate, aY as TaxonomyWithChildren, bH as UICart, bz as UICartBusiness, bB as UICartCustomer, bA as UICartLocation, bC as UICartPricing, bL as UpdateCartItemInput, ae as VariantAxis, aj as VariantAxisSelection, ag as VariantAxisValue, aE as VariantAxisValueView, aD as VariantAxisView, af as VariantAxisWithValues, bj as VariantDetails, bF as VariantDetailsDTO, ad as VariantDisplayAttribute, ai as VariantLocationAvailability, V as VariantStrategy, ab as VariantView, Z as ZERO, c as currencyCode, p as enrichError, o as getErrorHint, j as isCimplifyError, n as isIdempotencyMismatchError, l as isQuoteConflictRequiringConsent, k as isQuoteError, q as isRetryableError, i as isSupportedCurrency, m as money, b as moneyFromNumber } from './product-C-xLzh7Q.mjs';
|
|
4
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-Bo0NjgR6.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { aD as AUTHORIZATION_TYPE, aI as AUTH_MUTATION, as as AbortablePromise, M as ActivityRecommendation, N as ActivityRecommendationsResponse, t as ActivityService, K as ActivityStateResponse, cK as AddressData, db as AddressInfo, bg as AmountToPay, cV as AuthResponse, A as AuthService, o as AuthStatus, dd as AuthenticatedCustomer, df as AuthenticatedData, y as AutocompletePrediction, z as AutocompleteResponse, cA as AvailabilityResult, cg as AvailableSlot, cj as Booking, ct as BookingModificationType, ci as BookingStatus, ck as BookingWithDetails, bC as BufferTimes, bX as Business, c9 as BusinessHours, bW as BusinessPreferences, B as BusinessService, c8 as BusinessSettings, bV as BusinessType, c6 as BusinessWithLocations, aw as CHECKOUT_MODE, aJ as CHECKOUT_MUTATION, az as CHECKOUT_STEP, aF as CONTACT_TYPE, cr as CancelBookingInput, cs as CancelBookingResult, bw as CancelOrderInput, bE as CancellationPolicy, k as CartOperations, b as CatalogueQueries, b3 as CatalogueResult, b4 as CatalogueSnapshot, ca as CategoryInfo, a0 as ChatAttachment, _ as ChatConversation, $ as ChatConversationResponse, Z as ChatMessage, a1 as ChatWidgetStarter, co as CheckSlotAvailabilityInput, cp as CheckSlotAvailabilityResult, cY as CheckoutAddressInfo, dj as CheckoutCartData, di as CheckoutCartItem, c_ as CheckoutCustomerInfo, ak as CheckoutFormData, bu as CheckoutInput, ag as CheckoutMode, m as CheckoutOperations, ah as CheckoutOrderType, ai as CheckoutPaymentMethod, al as CheckoutResult, m as CheckoutService, aq as CheckoutStatus, ar as CheckoutStatusContext, aj as CheckoutStep, C as CimplifyClient, a as CimplifyConfig, a7 as CimplifyElement, a6 as CimplifyElements, av as ContactType, a3 as ContentType, cG as CreateAddressInput, cI as CreateMobileMoneyInput, cB as Customer, cC as CustomerAddress, cm as CustomerBooking, cl as CustomerBookingServiceItem, cE as CustomerLinkPreferences, cD as CustomerMobileMoney, bB as CustomerServicePreferences, aN as DEFAULT_COUNTRY, aM as DEFAULT_CURRENCY, aE as DEVICE_TYPE, ch as DayAvailability, bQ as DeliveryFeeDetails, X as DeliveryFeeResponse, W as DeliveryService, bL as DepositResult, au as DeviceType, V as DismissMessageResponse, ab as ELEMENT_TYPES, aa as EVENT_TYPES, da as ElementAppearance, dm as ElementEventHandler, af as ElementEventType, ad as ElementOptions, ae as ElementType, dg as ElementsCheckoutData, dh as ElementsCheckoutResult, de as ElementsCustomerInfo, ac as ElementsOptions, cM as EnrollAndLinkOrderInput, cP as EnrollAndLinkOrderResult, cJ as EnrollmentData, aQ as Err, bf as FeeBearerType, F as FetchQuoteInput, bd as FulfillmentLink, bc as FulfillmentStatus, bb as FulfillmentType, d0 as FxQuote, c$ as FxQuoteRequest, d1 as FxRateResponse, s as FxService, cn as GetAvailableSlotsInput, n as GetOrdersOptions, G as GetProductsOptions, dl as IframeToParentMessage, I as InventoryService, aH as LINK_MUTATION, aG as LINK_QUERY, bh as LineItem, b8 as LineType, cF as LinkData, cO as LinkEnrollResult, L as LinkService, cQ as LinkSession, cN as LinkStatusResult, a4 as LiteBootstrap, r as LiteService, b_ as Location, bO as LocationBooking, bY as LocationTaxBehavior, bZ as LocationTaxOverrides, c1 as LocationTimeProfile, c7 as LocationWithDetails, a9 as MESSAGE_TYPES, aC as MOBILE_MONEY_PROVIDER, cL as MobileMoneyData, cZ as MobileMoneyDetails, at as MobileMoneyProvider, am as NextAction, aL as ORDER_MUTATION, ax as ORDER_TYPE, d8 as ObservabilityHooks, aP as Ok, bi as Order, b7 as OrderChannel, bt as OrderFilter, be as OrderFulfillmentSummary, bn as OrderGroup, br as OrderGroupDetails, bo as OrderGroupPayment, bl as OrderGroupPaymentState, bm as OrderGroupPaymentStatus, bq as OrderGroupPaymentSummary, bk as OrderGroupStatus, bj as OrderHistory, b9 as OrderLineState, ba as OrderLineStatus, bs as OrderPaymentEvent, O as OrderQueries, bp as OrderSplitDetail, b5 as OrderStatus, d9 as OrderType, p as OtpResult, ay as PAYMENT_METHOD, aK as PAYMENT_MUTATION, aA as PAYMENT_STATE, aB as PICKUP_TIME_TYPE, dk as ParentToIframeMessage, dc as PaymentMethodInfo, b6 as PaymentState, cX as PickupTime, cW as PickupTimeType, D as PlaceDetailsResponse, x as PlacesService, P as PriceQuote, bG as PricingOverrides, ap as ProcessAndResolveOptions, an as ProcessCheckoutOptions, ao as ProcessCheckoutResult, bP as ProviderResolutionSource, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, g as QuoteDynamicBuckets, f as QuoteStatus, h as QuoteUiMessage, e as RefreshQuoteInput, j as RefreshQuoteResult, bx as RefundOrderInput, bT as RelatedCandidate, bS as RelatedProduct, bU as RelatedProductsEnrichment, bR as RelationType, bA as ReminderMethod, bD as ReminderSettings, l as ReorderResult, d2 as RequestContext, d5 as RequestErrorEvent, R as RequestOptions, cT as RequestOtpInput, i as RequestSource, d3 as RequestStartEvent, d4 as RequestSuccessEvent, cq as RescheduleBookingInput, cu as RescheduleBookingResult, cx as RescheduleHistoryRecord, bJ as ResourceAssignment, aO as Result, d6 as RetryEvent, cS as RevokeAllSessionsResult, cR as RevokeSessionResult, c3 as Room, bH as SchedulingMetadata, bK as SchedulingResult, q as SchedulingService, a2 as SenderType, cb as Service, cv as ServiceAvailabilityParams, cw as ServiceAvailabilityResult, c4 as ServiceCharge, bF as ServiceNotes, bM as ServiceScheduleRequest, by as ServiceStatus, J as SessionActivityData, d7 as SessionChangeEvent, H as SessionMessage, ce as SlotResourceInfo, cf as SlotStaffInfo, cc as Staff, bI as StaffAssignment, bz as StaffRole, bN as StaffScheduleItem, cz as StockLevel, cy as StockStatus, c5 as StorefrontBootstrap, S as SubscriptionService, Y as SupportService, c2 as Table, a5 as TableInfo, b$ as TimeRange, c0 as TimeRanges, cd as TimeSlot, E as TrackCategoryViewOptions, T as TrackProductViewOptions, cH as UpdateAddressInput, bv as UpdateOrderStatusInput, U as UpdateProfileInput, w as UploadInitResponse, v as UploadResult, u as UploadService, cU as VerifyOtpInput, b1 as combine, b2 as combineObject, c as createCimplifyClient, a8 as createElements, aS as err, aX as flatMap, a$ as fromPromise, aY as getOrElse, aU as isErr, aT as isOk, aW as mapError, aV as mapResult, aR as ok, a_ as toNullable, b0 as tryCatch, aZ as unwrap } from './client-CX7IFIkL.js';
|
|
2
2
|
import { A as ApiError } from './product-C-xLzh7Q.js';
|
|
3
3
|
export { ak as AddOn, bh as AddOnDetails, bE as AddOnGroupDetails, am as AddOnOption, bD as AddOnOptionDetails, an as AddOnOptionPrice, al as AddOnWithOptions, bK as AddToCartInput, $ as AddressValue, b7 as AdjustmentType, bd as AppliedDiscount, F as AttributeAppliesTo, B as AttributeType, J as AttributeValidationRules, G as AttributeVisibility, bc as BenefitType, bN as BillingFrequency, bP as BillingMarkupType, bO as BillingPlanType, av as Bundle, az as BundleComponentData, aA as BundleComponentInfo, aC as BundleComponentVariantView, aB as BundleComponentView, au as BundlePriceType, ax as BundleProduct, bn as BundleSelectionData, bk as BundleSelectionInput, bm as BundleStoredSelection, aw as BundleSummary, ay as BundleWithDetails, bs as Cart, bi as CartAddOn, b5 as CartChannel, bt as CartItem, bG as CartItemDetails, bJ as CartMutationResult, bI as CartNotice, b4 as CartStatus, bM as CartSummary, bu as CartTotals, ap as Category, aq as CategorySummary, C as ChosenPrice, h as CimplifyError, ar as Collection, at as CollectionProduct, as as CollectionSummary, aK as ComponentGroup, aL as ComponentGroupWithComponents, aR as ComponentPriceBreakdown, bl as ComponentSchedulingData, aP as ComponentSelectionInput, aH as ComponentSourceType, aI as Composite, aO as CompositeComponent, aN as CompositeComponentView, aM as CompositeGroupView, bp as CompositePriceBreakdown, aQ as CompositePriceResult, aF as CompositePricingMode, bq as CompositeSelectionData, aP as CompositeSelectionInput, bo as CompositeStoredSelection, aJ as CompositeWithDetails, a as CurrencyCode, K as CustomAttributeDefinition, L as CustomAttributeValue, a7 as CustomerInputValue, y as DURATION_UNIT, a1 as DateRangeValue, a$ as Deal, a_ as DealBenefitType, w as DepositType, v as DigitalProductType, be as DiscountBreakdown, bf as DiscountDetails, b1 as DiscountValidation, bx as DisplayAddOn, by as DisplayAddOnOption, bv as DisplayCart, bw as DisplayCartItem, D as DisplayMode, x as DurationUnit, g as ERROR_HINTS, bR as EligiblePlansQuery, E as ErrorCode, e as ErrorCodeType, f as ErrorHint, T as FacetValue, bS as FormattedPlanOption, aG as GroupPricingBehavior, _ as INPUT_FIELD_TYPE, I as IdempotencyMismatchError, Y as InputFieldType, a4 as InputFieldValidation, u as InventoryType, W as KnowledgeArticle, br as LineConfiguration, aU as LocationProductPrice, a2 as LocationValue, H as MeasurementValue, M as Money, s as PRODUCT_TYPE, d as Pagination, P as PaginationParams, a0 as PhoneValue, aT as Price, b8 as PriceAdjustment, bb as PriceDecisionPath, aS as PriceEntryType, ba as PricePathTaxInfo, b6 as PriceSource, X as Product, ao as ProductAddOn, aV as ProductAvailability, aZ as ProductAvailabilityNow, bQ as ProductBillingPlan, b0 as ProductDealInfo, a6 as ProductInputField, O as ProductProperty, t as ProductRenderHint, aX as ProductTaxonomy, aW as ProductTimeProfile, r as ProductType, ac as ProductVariant, ah as ProductVariantValue, aa as ProductWithDetails, Q as PropertyFacet, N as PropertySource, a8 as QuantityPricingTier, R as RENDER_HINT, a9 as RelatedProductView, z as SalesChannel, S as SchedulingMode, bg as SelectedAddOnOption, a5 as SemanticKind, a3 as SignatureValue, bU as Subscription, bW as SubscriptionInvoice, bV as SubscriptionItem, bT as SubscriptionStatus, bX as SubscriptionWithDetails, b2 as Tag, b3 as TagsResponse, b9 as TaxPathComponent, U as TaxonomyAttributeTemplate, aY as TaxonomyWithChildren, bH as UICart, bz as UICartBusiness, bB as UICartCustomer, bA as UICartLocation, bC as UICartPricing, bL as UpdateCartItemInput, ae as VariantAxis, aj as VariantAxisSelection, ag as VariantAxisValue, aE as VariantAxisValueView, aD as VariantAxisView, af as VariantAxisWithValues, bj as VariantDetails, bF as VariantDetailsDTO, ad as VariantDisplayAttribute, ai as VariantLocationAvailability, V as VariantStrategy, ab as VariantView, Z as ZERO, c as currencyCode, p as enrichError, o as getErrorHint, j as isCimplifyError, n as isIdempotencyMismatchError, l as isQuoteConflictRequiringConsent, k as isQuoteError, q as isRetryableError, i as isSupportedCurrency, m as money, b as moneyFromNumber } from './product-C-xLzh7Q.js';
|
|
4
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-BAohYhdg.js';
|