@cimplify/sdk 0.20.1 → 0.21.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.
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk2BSYTQAY_js = require('./chunk-2BSYTQAY.js');
3
+ var chunk64OCG2TJ_js = require('./chunk-64OCG2TJ.js');
4
4
 
5
5
  // src/types/result.ts
6
6
  function ok(value) {
@@ -74,11 +74,11 @@ function combineObject(results) {
74
74
 
75
75
  // src/internal/safe.ts
76
76
  function toCimplifyError(error) {
77
- if (error instanceof chunk2BSYTQAY_js.CimplifyError) return chunk2BSYTQAY_js.enrichError(error);
77
+ if (error instanceof chunk64OCG2TJ_js.CimplifyError) return chunk64OCG2TJ_js.enrichError(error);
78
78
  if (error instanceof Error) {
79
- return chunk2BSYTQAY_js.enrichError(new chunk2BSYTQAY_js.CimplifyError(chunk2BSYTQAY_js.ErrorCode.UNKNOWN_ERROR, error.message, false));
79
+ return chunk64OCG2TJ_js.enrichError(new chunk64OCG2TJ_js.CimplifyError(chunk64OCG2TJ_js.ErrorCode.UNKNOWN_ERROR, error.message, false));
80
80
  }
81
- return chunk2BSYTQAY_js.enrichError(new chunk2BSYTQAY_js.CimplifyError(chunk2BSYTQAY_js.ErrorCode.UNKNOWN_ERROR, String(error), false));
81
+ return chunk64OCG2TJ_js.enrichError(new chunk64OCG2TJ_js.CimplifyError(chunk64OCG2TJ_js.ErrorCode.UNKNOWN_ERROR, String(error), false));
82
82
  }
83
83
  async function safe(promise) {
84
84
  try {
@@ -509,23 +509,26 @@ var CatalogueQueries = class {
509
509
  );
510
510
  }
511
511
  async getProductAttributes(productId) {
512
+ const encodedId = encodeURIComponent(productId);
512
513
  return safe(
513
514
  this.client.get(
514
- `/api/v1/catalogue/products/${productId}/attributes`
515
+ `/api/v1/catalogue/products/${encodedId}/attributes`
515
516
  )
516
517
  );
517
518
  }
518
519
  async getCategoryAttributes(categoryId) {
520
+ const encodedId = encodeURIComponent(categoryId);
519
521
  return safe(
520
522
  this.client.get(
521
- `/api/v1/catalogue/categories/${categoryId}/attributes`
523
+ `/api/v1/catalogue/categories/${encodedId}/attributes`
522
524
  )
523
525
  );
524
526
  }
525
527
  async getCollectionAttributes(collectionId) {
528
+ const encodedId = encodeURIComponent(collectionId);
526
529
  return safe(
527
530
  this.client.get(
528
- `/api/v1/catalogue/collections/${collectionId}/attributes`
531
+ `/api/v1/catalogue/collections/${encodedId}/attributes`
529
532
  )
530
533
  );
531
534
  }
@@ -559,6 +562,25 @@ var CatalogueQueries = class {
559
562
  };
560
563
 
561
564
  // src/cart.ts
565
+ function lineItemToCartInput(item) {
566
+ const config = item.configuration;
567
+ const input = {
568
+ item_id: item.product_id,
569
+ quantity: item.quantity
570
+ };
571
+ if (config.variant) {
572
+ input.variant_id = config.variant.variant_id;
573
+ }
574
+ if (config.add_ons && config.add_ons.selected_options.length > 0) {
575
+ input.add_on_options = config.add_ons.selected_options.map((o) => o.option_id);
576
+ }
577
+ if (config.type === "bundle") {
578
+ input.bundle_selections = config.input;
579
+ } else if (config.type === "composite") {
580
+ input.composite_selections = config.input;
581
+ }
582
+ return input;
583
+ }
562
584
  function isUICartResponse(value) {
563
585
  return "cart" in value;
564
586
  }
@@ -635,6 +657,26 @@ var CartOperations = class {
635
657
  async removeCoupon() {
636
658
  return safe(this.client.delete("/api/v1/cart/coupons/current"));
637
659
  }
660
+ async reorderFromOrder(orderId) {
661
+ const orderResult = await this.client.orders.get(orderId);
662
+ if (!orderResult.ok) return orderResult;
663
+ const order = orderResult.value;
664
+ if (!order.items || order.items.length === 0) {
665
+ return ok({ added: [], failed: [] });
666
+ }
667
+ const added = [];
668
+ const failed = [];
669
+ for (const item of order.items) {
670
+ const input = lineItemToCartInput(item);
671
+ const result = await this.addItem(input);
672
+ if (result.ok) {
673
+ added.push({ item_id: input.item_id });
674
+ } else {
675
+ failed.push({ item_id: input.item_id, error: result.error });
676
+ }
677
+ }
678
+ return ok({ added, failed });
679
+ }
638
680
  async isEmpty() {
639
681
  const countResult = await this.getCount();
640
682
  if (!countResult.ok) return countResult;
@@ -1016,7 +1058,7 @@ var CheckoutResolver = class {
1016
1058
  }
1017
1059
  }
1018
1060
  }
1019
- if (checkoutResult.requires_authorization || chunk2BSYTQAY_js.isPaymentStatusRequiresAction(checkoutResult.payment_status)) {
1061
+ if (checkoutResult.requires_authorization || chunk64OCG2TJ_js.isPaymentStatusRequiresAction(checkoutResult.payment_status)) {
1020
1062
  const authorization = await this.handleAuthorization({
1021
1063
  authorizationType,
1022
1064
  paymentReference,
@@ -1190,18 +1232,18 @@ var CheckoutResolver = class {
1190
1232
  if (statusResult.value.reference) {
1191
1233
  paymentReference = statusResult.value.reference;
1192
1234
  }
1193
- const normalized = chunk2BSYTQAY_js.normalizeStatusResponse(statusResult.value);
1194
- if (normalized.paid || chunk2BSYTQAY_js.isPaymentStatusSuccess(normalized.status)) {
1235
+ const normalized = chunk64OCG2TJ_js.normalizeStatusResponse(statusResult.value);
1236
+ if (normalized.paid || chunk64OCG2TJ_js.isPaymentStatusSuccess(normalized.status)) {
1195
1237
  return this.finalizeSuccess(latestCheckoutResult);
1196
1238
  }
1197
- if (chunk2BSYTQAY_js.isPaymentStatusFailure(normalized.status)) {
1239
+ if (chunk64OCG2TJ_js.isPaymentStatusFailure(normalized.status)) {
1198
1240
  return this.fail(
1199
1241
  normalized.status ? normalized.status.toUpperCase() : "PAYMENT_FAILED",
1200
1242
  normalized.message || "Payment failed during confirmation.",
1201
1243
  false
1202
1244
  );
1203
1245
  }
1204
- if (chunk2BSYTQAY_js.isPaymentStatusRequiresAction(normalized.status)) {
1246
+ if (chunk64OCG2TJ_js.isPaymentStatusRequiresAction(normalized.status)) {
1205
1247
  const authorization = await this.handleAuthorization({
1206
1248
  authorizationType,
1207
1249
  paymentReference,
@@ -1232,8 +1274,8 @@ var CheckoutResolver = class {
1232
1274
  try {
1233
1275
  const finalResult = await this.client.checkout.pollPaymentStatus(input.orderId);
1234
1276
  if (finalResult.ok) {
1235
- const normalized = chunk2BSYTQAY_js.normalizeStatusResponse(finalResult.value);
1236
- if (normalized.paid || chunk2BSYTQAY_js.isPaymentStatusSuccess(normalized.status)) {
1277
+ const normalized = chunk64OCG2TJ_js.normalizeStatusResponse(finalResult.value);
1278
+ if (normalized.paid || chunk64OCG2TJ_js.isPaymentStatusSuccess(normalized.status)) {
1237
1279
  return this.finalizeSuccess(latestCheckoutResult);
1238
1280
  }
1239
1281
  }
@@ -1429,12 +1471,12 @@ var CheckoutResolver = class {
1429
1471
  };
1430
1472
  }
1431
1473
  isSuccessfulStatus(status) {
1432
- const normalized = chunk2BSYTQAY_js.normalizeStatusResponse({ status, paid: false });
1433
- return normalized.paid || chunk2BSYTQAY_js.isPaymentStatusSuccess(normalized.status);
1474
+ const normalized = chunk64OCG2TJ_js.normalizeStatusResponse({ status, paid: false });
1475
+ return normalized.paid || chunk64OCG2TJ_js.isPaymentStatusSuccess(normalized.status);
1434
1476
  }
1435
1477
  isFailureStatus(status) {
1436
- const normalized = chunk2BSYTQAY_js.normalizeStatusResponse({ status, paid: false });
1437
- return chunk2BSYTQAY_js.isPaymentStatusFailure(normalized.status);
1478
+ const normalized = chunk64OCG2TJ_js.normalizeStatusResponse({ status, paid: false });
1479
+ return chunk64OCG2TJ_js.isPaymentStatusFailure(normalized.status);
1438
1480
  }
1439
1481
  ensureNotAborted() {
1440
1482
  if (this.signal?.aborted) {
@@ -1505,7 +1547,7 @@ var CheckoutService = class {
1505
1547
  }
1506
1548
  async initializePayment(_orderId, _method) {
1507
1549
  return err(
1508
- new chunk2BSYTQAY_js.CimplifyError(
1550
+ new chunk64OCG2TJ_js.CimplifyError(
1509
1551
  "NOT_IMPLEMENTED",
1510
1552
  "initializePayment is not available in REST mode.",
1511
1553
  false
@@ -1577,11 +1619,11 @@ var CheckoutService = class {
1577
1619
  pay_currency: data.pay_currency,
1578
1620
  fx_quote_id: data.fx_quote_id
1579
1621
  };
1580
- const baseCurrency = chunk2BSYTQAY_js.currencyCode(
1622
+ const baseCurrency = chunk64OCG2TJ_js.currencyCode(
1581
1623
  (cart.pricing.currency || checkoutData.pay_currency || "GHS").toUpperCase()
1582
1624
  );
1583
1625
  const payCurrency = data.pay_currency?.trim().toUpperCase();
1584
- const payCurrencyCode = payCurrency ? chunk2BSYTQAY_js.currencyCode(payCurrency) : void 0;
1626
+ const payCurrencyCode = payCurrency ? chunk64OCG2TJ_js.currencyCode(payCurrency) : void 0;
1585
1627
  const cartTotalAmount = typeof cart.pricing.total_price === "number" ? cart.pricing.total_price : Number.parseFloat(cart.pricing.total_price || "0");
1586
1628
  if (payCurrencyCode && payCurrencyCode !== baseCurrency && !checkoutData.fx_quote_id && Number.isFinite(cartTotalAmount) && cartTotalAmount > 0) {
1587
1629
  const fxQuoteResult = await this.client.fx.lockQuote({
@@ -1904,7 +1946,7 @@ var BusinessService = class {
1904
1946
  if (!result.ok) return err(result.error);
1905
1947
  const location = result.value.find((item) => item.id === locationId);
1906
1948
  if (!location) {
1907
- return err(new chunk2BSYTQAY_js.CimplifyError(chunk2BSYTQAY_js.ErrorCode.NOT_FOUND, `Location not found: ${locationId}`, false));
1949
+ return err(new chunk64OCG2TJ_js.CimplifyError(chunk64OCG2TJ_js.ErrorCode.NOT_FOUND, `Location not found: ${locationId}`, false));
1908
1950
  }
1909
1951
  return ok(location);
1910
1952
  }
@@ -2178,7 +2220,7 @@ var EVENT_TYPES = {
2178
2220
 
2179
2221
  // src/elements.ts
2180
2222
  function toCheckoutError(code, message, recoverable) {
2181
- const hint = chunk2BSYTQAY_js.getErrorHint(code);
2223
+ const hint = chunk64OCG2TJ_js.getErrorHint(code);
2182
2224
  return {
2183
2225
  success: false,
2184
2226
  error: {
@@ -1,5 +1,5 @@
1
- import { safe, CatalogueQueries, CartOperations, CheckoutService, OrderQueries, LinkService, AuthService, BusinessService, InventoryService, SchedulingService, LiteService, FxService, createElements } from './chunk-7KH2XJIW.mjs';
2
- import { CimplifyError, ErrorCode, enrichError } from './chunk-HG7GG3TT.mjs';
1
+ import { safe, CatalogueQueries, CartOperations, CheckoutService, OrderQueries, LinkService, AuthService, BusinessService, InventoryService, SchedulingService, LiteService, FxService, createElements } from './chunk-R4EYMPSN.mjs';
2
+ import { CimplifyError, ErrorCode, enrichError } from './chunk-JFT63H34.mjs';
3
3
 
4
4
  // src/activity.ts
5
5
  var ActivityService = class {
@@ -257,6 +257,15 @@ declare class CatalogueQueries {
257
257
  getKnowledgeArticles(): Promise<Result<KnowledgeArticle[], CimplifyError>>;
258
258
  }
259
259
 
260
+ interface ReorderResult {
261
+ added: {
262
+ item_id: string;
263
+ }[];
264
+ failed: {
265
+ item_id: string;
266
+ error: CimplifyError;
267
+ }[];
268
+ }
260
269
  declare class CartOperations {
261
270
  private client;
262
271
  constructor(client: CimplifyClient);
@@ -273,6 +282,7 @@ declare class CartOperations {
273
282
  clear(): Promise<Result<Cart, CimplifyError>>;
274
283
  applyCoupon(code: string): Promise<Result<Cart, CimplifyError>>;
275
284
  removeCoupon(): Promise<Result<Cart, CimplifyError>>;
285
+ reorderFromOrder(orderId: string): Promise<Result<ReorderResult, CimplifyError>>;
276
286
  isEmpty(): Promise<Result<boolean, CimplifyError>>;
277
287
  hasItem(productId: string, variantId?: string): Promise<Result<boolean, CimplifyError>>;
278
288
  findItem(productId: string, variantId?: string): Promise<Result<CartItem | undefined, CimplifyError>>;
@@ -2176,4 +2186,4 @@ declare class CimplifyClient {
2176
2186
  }
2177
2187
  declare function createCimplifyClient(config?: CimplifyConfig): CimplifyClient;
2178
2188
 
2179
- export { type CheckoutMode as $, AuthService as A, BusinessService as B, CimplifyClient as C, type DismissMessageResponse as D, type LiteBootstrap as E, type FetchQuoteInput as F, type GetProductsOptions as G, type TableInfo as H, InventoryService as I, CimplifyElements as J, CimplifyElement as K, LinkService as L, createElements as M, MESSAGE_TYPES as N, OrderQueries as O, type PriceQuote as P, type QuoteCompositeSelectionInput as Q, type RefreshQuoteInput as R, SchedulingService as S, type TrackProductViewOptions as T, type UpdateProfileInput as U, EVENT_TYPES as V, ELEMENT_TYPES as W, type ElementsOptions as X, type ElementOptions as Y, type ElementType as Z, type ElementEventType as _, type CimplifyConfig as a, type AmountToPay as a$, type CheckoutOrderType as a0, type CheckoutPaymentMethod as a1, type CheckoutStep as a2, type CheckoutFormData as a3, type CheckoutResult as a4, type NextAction as a5, type ProcessCheckoutOptions as a6, type ProcessCheckoutResult as a7, type ProcessAndResolveOptions as a8, type CheckoutStatus as a9, ok as aA, err as aB, isOk as aC, isErr as aD, mapResult as aE, mapError as aF, flatMap as aG, getOrElse as aH, unwrap as aI, toNullable as aJ, fromPromise as aK, tryCatch as aL, combine as aM, combineObject as aN, type CatalogueResult as aO, type CatalogueSnapshot as aP, type OrderStatus as aQ, type PaymentState as aR, type OrderChannel as aS, type LineType as aT, type OrderLineState as aU, type OrderLineStatus as aV, type FulfillmentType as aW, type FulfillmentStatus as aX, type FulfillmentLink as aY, type OrderFulfillmentSummary as aZ, type FeeBearerType as a_, type CheckoutStatusContext as aa, type AbortablePromise as ab, type MobileMoneyProvider as ac, type DeviceType as ad, type ContactType as ae, CHECKOUT_MODE as af, ORDER_TYPE as ag, PAYMENT_METHOD as ah, CHECKOUT_STEP as ai, PAYMENT_STATE as aj, PICKUP_TIME_TYPE as ak, MOBILE_MONEY_PROVIDER as al, AUTHORIZATION_TYPE as am, DEVICE_TYPE as an, CONTACT_TYPE as ao, LINK_QUERY as ap, LINK_MUTATION as aq, AUTH_MUTATION as ar, CHECKOUT_MUTATION as as, PAYMENT_MUTATION as at, ORDER_MUTATION as au, DEFAULT_CURRENCY as av, DEFAULT_COUNTRY as aw, type Result as ax, type Ok as ay, type Err as az, CatalogueQueries as b, type BookingStatus as b$, type LineItem as b0, type Order as b1, type OrderHistory as b2, type OrderGroupStatus as b3, type OrderGroupPaymentState as b4, type OrderGroupPaymentStatus as b5, type OrderGroup as b6, type OrderGroupPayment as b7, type OrderSplitDetail as b8, type OrderGroupPaymentSummary as b9, type RelationType as bA, type RelatedProduct as bB, type RelatedCandidate as bC, type RelatedProductsEnrichment as bD, type BusinessType as bE, type BusinessPreferences as bF, type Business as bG, type LocationTaxBehavior as bH, type LocationTaxOverrides as bI, type Location as bJ, type TimeRange as bK, type TimeRanges as bL, type LocationTimeProfile as bM, type Table as bN, type Room as bO, type ServiceCharge as bP, type StorefrontBootstrap as bQ, type BusinessWithLocations as bR, type LocationWithDetails as bS, type BusinessSettings as bT, type BusinessHours as bU, type CategoryInfo as bV, type Service as bW, type Staff as bX, type TimeSlot as bY, type AvailableSlot as bZ, type DayAvailability as b_, type OrderGroupDetails as ba, type OrderPaymentEvent as bb, type OrderFilter as bc, type CheckoutInput as bd, type UpdateOrderStatusInput as be, type CancelOrderInput as bf, type RefundOrderInput as bg, type ServiceStatus as bh, type StaffRole as bi, type ReminderMethod as bj, type CustomerServicePreferences as bk, type BufferTimes as bl, type ReminderSettings as bm, type CancellationPolicy as bn, type ServiceNotes as bo, type PricingOverrides as bp, type SchedulingMetadata as bq, type StaffAssignment as br, type ResourceAssignment as bs, type SchedulingResult as bt, type DepositResult as bu, type ServiceScheduleRequest as bv, type StaffScheduleItem as bw, type LocationAppointment as bx, type ProviderResolutionSource as by, type DeliveryFeeDetails as bz, createCimplifyClient as c, type ElementsCheckoutResult as c$, type Booking as c0, type BookingWithDetails as c1, type CustomerBookingServiceItem as c2, type CustomerBooking as c3, type GetAvailableSlotsInput as c4, type CheckSlotAvailabilityInput as c5, type CheckSlotAvailabilityResult as c6, type RescheduleBookingInput as c7, type CancelBookingInput as c8, type CancelBookingResult as c9, type RevokeAllSessionsResult as cA, type RequestOtpInput as cB, type VerifyOtpInput as cC, type AuthResponse as cD, type PickupTimeType as cE, type PickupTime as cF, type CheckoutAddressInfo as cG, type MobileMoneyDetails as cH, type CheckoutCustomerInfo as cI, type FxQuoteRequest as cJ, type FxQuote as cK, type FxRateResponse as cL, type RequestContext as cM, type RequestStartEvent as cN, type RequestSuccessEvent as cO, type RequestErrorEvent as cP, type RetryEvent as cQ, type SessionChangeEvent as cR, type ObservabilityHooks as cS, type OrderType as cT, type ElementAppearance as cU, type AddressInfo as cV, type PaymentMethodInfo as cW, type AuthenticatedCustomer as cX, type ElementsCustomerInfo as cY, type AuthenticatedData as cZ, type ElementsCheckoutData as c_, type RescheduleBookingResult as ca, type ServiceAvailabilityParams as cb, type ServiceAvailabilityResult as cc, type StockStatus as cd, type StockLevel as ce, type ProductStock as cf, type VariantStock as cg, type LocationStock as ch, type AvailabilityResult as ci, type Customer as cj, type CustomerAddress as ck, type CustomerMobileMoney as cl, type CustomerLinkPreferences as cm, type LinkData as cn, type CreateAddressInput as co, type UpdateAddressInput as cp, type CreateMobileMoneyInput as cq, type EnrollmentData as cr, type AddressData as cs, type MobileMoneyData as ct, type EnrollAndLinkOrderInput as cu, type LinkStatusResult as cv, type LinkEnrollResult as cw, type EnrollAndLinkOrderResult as cx, type LinkSession as cy, type RevokeSessionResult as cz, type QuoteBundleSelectionInput as d, type CheckoutCartItem as d0, type CheckoutCartData as d1, type ParentToIframeMessage as d2, type IframeToParentMessage as d3, type ElementEventHandler as d4, type QuoteStatus as e, type QuoteDynamicBuckets as f, type QuoteUiMessage as g, type RequestSource as h, type RefreshQuoteResult as i, CartOperations as j, CheckoutService as k, generateIdempotencyKey as l, type GetOrdersOptions as m, type AuthStatus as n, type OtpResult as o, LiteService as p, FxService as q, ActivityService as r, type TrackCategoryViewOptions as s, type SessionMessage as t, type SessionActivityData as u, type ActivityStateResponse as v, type ActivityRecommendation as w, type ActivityRecommendationsResponse as x, DeliveryService as y, type DeliveryFeeResponse as z };
2189
+ export { type ElementEventType as $, AuthService as A, BusinessService as B, CimplifyClient as C, type DismissMessageResponse as D, type DeliveryFeeResponse as E, type FetchQuoteInput as F, type GetProductsOptions as G, type LiteBootstrap as H, InventoryService as I, type TableInfo as J, CimplifyElements as K, LinkService as L, CimplifyElement as M, createElements as N, OrderQueries as O, type PriceQuote as P, type QuoteCompositeSelectionInput as Q, type RefreshQuoteInput as R, SchedulingService as S, type TrackProductViewOptions as T, type UpdateProfileInput as U, MESSAGE_TYPES as V, EVENT_TYPES as W, ELEMENT_TYPES as X, type ElementsOptions as Y, type ElementOptions as Z, type ElementType as _, type CimplifyConfig as a, type FeeBearerType as a$, type CheckoutMode as a0, type CheckoutOrderType as a1, type CheckoutPaymentMethod as a2, type CheckoutStep as a3, type CheckoutFormData as a4, type CheckoutResult as a5, type NextAction as a6, type ProcessCheckoutOptions as a7, type ProcessCheckoutResult as a8, type ProcessAndResolveOptions as a9, type Err as aA, ok as aB, err as aC, isOk as aD, isErr as aE, mapResult as aF, mapError as aG, flatMap as aH, getOrElse as aI, unwrap as aJ, toNullable as aK, fromPromise as aL, tryCatch as aM, combine as aN, combineObject as aO, type CatalogueResult as aP, type CatalogueSnapshot as aQ, type OrderStatus as aR, type PaymentState as aS, type OrderChannel as aT, type LineType as aU, type OrderLineState as aV, type OrderLineStatus as aW, type FulfillmentType as aX, type FulfillmentStatus as aY, type FulfillmentLink as aZ, type OrderFulfillmentSummary as a_, type CheckoutStatus as aa, type CheckoutStatusContext as ab, type AbortablePromise as ac, type MobileMoneyProvider as ad, type DeviceType as ae, type ContactType as af, CHECKOUT_MODE as ag, ORDER_TYPE as ah, PAYMENT_METHOD as ai, CHECKOUT_STEP as aj, PAYMENT_STATE as ak, PICKUP_TIME_TYPE as al, MOBILE_MONEY_PROVIDER as am, AUTHORIZATION_TYPE as an, DEVICE_TYPE as ao, CONTACT_TYPE as ap, LINK_QUERY as aq, LINK_MUTATION as ar, AUTH_MUTATION as as, CHECKOUT_MUTATION as at, PAYMENT_MUTATION as au, ORDER_MUTATION as av, DEFAULT_CURRENCY as aw, DEFAULT_COUNTRY as ax, type Result as ay, type Ok as az, CatalogueQueries as b, type DayAvailability as b$, type AmountToPay as b0, type LineItem as b1, type Order as b2, type OrderHistory as b3, type OrderGroupStatus as b4, type OrderGroupPaymentState as b5, type OrderGroupPaymentStatus as b6, type OrderGroup as b7, type OrderGroupPayment as b8, type OrderSplitDetail as b9, type DeliveryFeeDetails as bA, type RelationType as bB, type RelatedProduct as bC, type RelatedCandidate as bD, type RelatedProductsEnrichment as bE, type BusinessType as bF, type BusinessPreferences as bG, type Business as bH, type LocationTaxBehavior as bI, type LocationTaxOverrides as bJ, type Location as bK, type TimeRange as bL, type TimeRanges as bM, type LocationTimeProfile as bN, type Table as bO, type Room as bP, type ServiceCharge as bQ, type StorefrontBootstrap as bR, type BusinessWithLocations as bS, type LocationWithDetails as bT, type BusinessSettings as bU, type BusinessHours as bV, type CategoryInfo as bW, type Service as bX, type Staff as bY, type TimeSlot as bZ, type AvailableSlot as b_, type OrderGroupPaymentSummary as ba, type OrderGroupDetails as bb, type OrderPaymentEvent as bc, type OrderFilter as bd, type CheckoutInput as be, type UpdateOrderStatusInput as bf, type CancelOrderInput as bg, type RefundOrderInput as bh, type ServiceStatus as bi, type StaffRole as bj, type ReminderMethod as bk, type CustomerServicePreferences as bl, type BufferTimes as bm, type ReminderSettings as bn, type CancellationPolicy as bo, type ServiceNotes as bp, type PricingOverrides as bq, type SchedulingMetadata as br, type StaffAssignment as bs, type ResourceAssignment as bt, type SchedulingResult as bu, type DepositResult as bv, type ServiceScheduleRequest as bw, type StaffScheduleItem as bx, type LocationAppointment as by, type ProviderResolutionSource as bz, createCimplifyClient as c, type ElementsCheckoutData as c$, type BookingStatus as c0, type Booking as c1, type BookingWithDetails as c2, type CustomerBookingServiceItem as c3, type CustomerBooking as c4, type GetAvailableSlotsInput as c5, type CheckSlotAvailabilityInput as c6, type CheckSlotAvailabilityResult as c7, type RescheduleBookingInput as c8, type CancelBookingInput as c9, type RevokeSessionResult as cA, type RevokeAllSessionsResult as cB, type RequestOtpInput as cC, type VerifyOtpInput as cD, type AuthResponse as cE, type PickupTimeType as cF, type PickupTime as cG, type CheckoutAddressInfo as cH, type MobileMoneyDetails as cI, type CheckoutCustomerInfo as cJ, type FxQuoteRequest as cK, type FxQuote as cL, type FxRateResponse as cM, type RequestContext as cN, type RequestStartEvent as cO, type RequestSuccessEvent as cP, type RequestErrorEvent as cQ, type RetryEvent as cR, type SessionChangeEvent as cS, type ObservabilityHooks as cT, type OrderType as cU, type ElementAppearance as cV, type AddressInfo as cW, type PaymentMethodInfo as cX, type AuthenticatedCustomer as cY, type ElementsCustomerInfo as cZ, type AuthenticatedData as c_, type CancelBookingResult as ca, type RescheduleBookingResult as cb, type ServiceAvailabilityParams as cc, type ServiceAvailabilityResult as cd, type StockStatus as ce, type StockLevel as cf, type ProductStock as cg, type VariantStock as ch, type LocationStock as ci, type AvailabilityResult as cj, type Customer as ck, type CustomerAddress as cl, type CustomerMobileMoney as cm, type CustomerLinkPreferences as cn, type LinkData as co, type CreateAddressInput as cp, type UpdateAddressInput as cq, type CreateMobileMoneyInput as cr, type EnrollmentData as cs, type AddressData as ct, type MobileMoneyData as cu, type EnrollAndLinkOrderInput as cv, type LinkStatusResult as cw, type LinkEnrollResult as cx, type EnrollAndLinkOrderResult as cy, type LinkSession as cz, type QuoteBundleSelectionInput as d, type ElementsCheckoutResult as d0, type CheckoutCartItem as d1, type CheckoutCartData as d2, type ParentToIframeMessage as d3, type IframeToParentMessage as d4, type ElementEventHandler as d5, 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, LiteService as q, FxService as r, ActivityService as s, type TrackCategoryViewOptions as t, type SessionMessage as u, type SessionActivityData as v, type ActivityStateResponse as w, type ActivityRecommendation as x, type ActivityRecommendationsResponse as y, DeliveryService as z };
@@ -257,6 +257,15 @@ declare class CatalogueQueries {
257
257
  getKnowledgeArticles(): Promise<Result<KnowledgeArticle[], CimplifyError>>;
258
258
  }
259
259
 
260
+ interface ReorderResult {
261
+ added: {
262
+ item_id: string;
263
+ }[];
264
+ failed: {
265
+ item_id: string;
266
+ error: CimplifyError;
267
+ }[];
268
+ }
260
269
  declare class CartOperations {
261
270
  private client;
262
271
  constructor(client: CimplifyClient);
@@ -273,6 +282,7 @@ declare class CartOperations {
273
282
  clear(): Promise<Result<Cart, CimplifyError>>;
274
283
  applyCoupon(code: string): Promise<Result<Cart, CimplifyError>>;
275
284
  removeCoupon(): Promise<Result<Cart, CimplifyError>>;
285
+ reorderFromOrder(orderId: string): Promise<Result<ReorderResult, CimplifyError>>;
276
286
  isEmpty(): Promise<Result<boolean, CimplifyError>>;
277
287
  hasItem(productId: string, variantId?: string): Promise<Result<boolean, CimplifyError>>;
278
288
  findItem(productId: string, variantId?: string): Promise<Result<CartItem | undefined, CimplifyError>>;
@@ -2176,4 +2186,4 @@ declare class CimplifyClient {
2176
2186
  }
2177
2187
  declare function createCimplifyClient(config?: CimplifyConfig): CimplifyClient;
2178
2188
 
2179
- export { type CheckoutMode as $, AuthService as A, BusinessService as B, CimplifyClient as C, type DismissMessageResponse as D, type LiteBootstrap as E, type FetchQuoteInput as F, type GetProductsOptions as G, type TableInfo as H, InventoryService as I, CimplifyElements as J, CimplifyElement as K, LinkService as L, createElements as M, MESSAGE_TYPES as N, OrderQueries as O, type PriceQuote as P, type QuoteCompositeSelectionInput as Q, type RefreshQuoteInput as R, SchedulingService as S, type TrackProductViewOptions as T, type UpdateProfileInput as U, EVENT_TYPES as V, ELEMENT_TYPES as W, type ElementsOptions as X, type ElementOptions as Y, type ElementType as Z, type ElementEventType as _, type CimplifyConfig as a, type AmountToPay as a$, type CheckoutOrderType as a0, type CheckoutPaymentMethod as a1, type CheckoutStep as a2, type CheckoutFormData as a3, type CheckoutResult as a4, type NextAction as a5, type ProcessCheckoutOptions as a6, type ProcessCheckoutResult as a7, type ProcessAndResolveOptions as a8, type CheckoutStatus as a9, ok as aA, err as aB, isOk as aC, isErr as aD, mapResult as aE, mapError as aF, flatMap as aG, getOrElse as aH, unwrap as aI, toNullable as aJ, fromPromise as aK, tryCatch as aL, combine as aM, combineObject as aN, type CatalogueResult as aO, type CatalogueSnapshot as aP, type OrderStatus as aQ, type PaymentState as aR, type OrderChannel as aS, type LineType as aT, type OrderLineState as aU, type OrderLineStatus as aV, type FulfillmentType as aW, type FulfillmentStatus as aX, type FulfillmentLink as aY, type OrderFulfillmentSummary as aZ, type FeeBearerType as a_, type CheckoutStatusContext as aa, type AbortablePromise as ab, type MobileMoneyProvider as ac, type DeviceType as ad, type ContactType as ae, CHECKOUT_MODE as af, ORDER_TYPE as ag, PAYMENT_METHOD as ah, CHECKOUT_STEP as ai, PAYMENT_STATE as aj, PICKUP_TIME_TYPE as ak, MOBILE_MONEY_PROVIDER as al, AUTHORIZATION_TYPE as am, DEVICE_TYPE as an, CONTACT_TYPE as ao, LINK_QUERY as ap, LINK_MUTATION as aq, AUTH_MUTATION as ar, CHECKOUT_MUTATION as as, PAYMENT_MUTATION as at, ORDER_MUTATION as au, DEFAULT_CURRENCY as av, DEFAULT_COUNTRY as aw, type Result as ax, type Ok as ay, type Err as az, CatalogueQueries as b, type BookingStatus as b$, type LineItem as b0, type Order as b1, type OrderHistory as b2, type OrderGroupStatus as b3, type OrderGroupPaymentState as b4, type OrderGroupPaymentStatus as b5, type OrderGroup as b6, type OrderGroupPayment as b7, type OrderSplitDetail as b8, type OrderGroupPaymentSummary as b9, type RelationType as bA, type RelatedProduct as bB, type RelatedCandidate as bC, type RelatedProductsEnrichment as bD, type BusinessType as bE, type BusinessPreferences as bF, type Business as bG, type LocationTaxBehavior as bH, type LocationTaxOverrides as bI, type Location as bJ, type TimeRange as bK, type TimeRanges as bL, type LocationTimeProfile as bM, type Table as bN, type Room as bO, type ServiceCharge as bP, type StorefrontBootstrap as bQ, type BusinessWithLocations as bR, type LocationWithDetails as bS, type BusinessSettings as bT, type BusinessHours as bU, type CategoryInfo as bV, type Service as bW, type Staff as bX, type TimeSlot as bY, type AvailableSlot as bZ, type DayAvailability as b_, type OrderGroupDetails as ba, type OrderPaymentEvent as bb, type OrderFilter as bc, type CheckoutInput as bd, type UpdateOrderStatusInput as be, type CancelOrderInput as bf, type RefundOrderInput as bg, type ServiceStatus as bh, type StaffRole as bi, type ReminderMethod as bj, type CustomerServicePreferences as bk, type BufferTimes as bl, type ReminderSettings as bm, type CancellationPolicy as bn, type ServiceNotes as bo, type PricingOverrides as bp, type SchedulingMetadata as bq, type StaffAssignment as br, type ResourceAssignment as bs, type SchedulingResult as bt, type DepositResult as bu, type ServiceScheduleRequest as bv, type StaffScheduleItem as bw, type LocationAppointment as bx, type ProviderResolutionSource as by, type DeliveryFeeDetails as bz, createCimplifyClient as c, type ElementsCheckoutResult as c$, type Booking as c0, type BookingWithDetails as c1, type CustomerBookingServiceItem as c2, type CustomerBooking as c3, type GetAvailableSlotsInput as c4, type CheckSlotAvailabilityInput as c5, type CheckSlotAvailabilityResult as c6, type RescheduleBookingInput as c7, type CancelBookingInput as c8, type CancelBookingResult as c9, type RevokeAllSessionsResult as cA, type RequestOtpInput as cB, type VerifyOtpInput as cC, type AuthResponse as cD, type PickupTimeType as cE, type PickupTime as cF, type CheckoutAddressInfo as cG, type MobileMoneyDetails as cH, type CheckoutCustomerInfo as cI, type FxQuoteRequest as cJ, type FxQuote as cK, type FxRateResponse as cL, type RequestContext as cM, type RequestStartEvent as cN, type RequestSuccessEvent as cO, type RequestErrorEvent as cP, type RetryEvent as cQ, type SessionChangeEvent as cR, type ObservabilityHooks as cS, type OrderType as cT, type ElementAppearance as cU, type AddressInfo as cV, type PaymentMethodInfo as cW, type AuthenticatedCustomer as cX, type ElementsCustomerInfo as cY, type AuthenticatedData as cZ, type ElementsCheckoutData as c_, type RescheduleBookingResult as ca, type ServiceAvailabilityParams as cb, type ServiceAvailabilityResult as cc, type StockStatus as cd, type StockLevel as ce, type ProductStock as cf, type VariantStock as cg, type LocationStock as ch, type AvailabilityResult as ci, type Customer as cj, type CustomerAddress as ck, type CustomerMobileMoney as cl, type CustomerLinkPreferences as cm, type LinkData as cn, type CreateAddressInput as co, type UpdateAddressInput as cp, type CreateMobileMoneyInput as cq, type EnrollmentData as cr, type AddressData as cs, type MobileMoneyData as ct, type EnrollAndLinkOrderInput as cu, type LinkStatusResult as cv, type LinkEnrollResult as cw, type EnrollAndLinkOrderResult as cx, type LinkSession as cy, type RevokeSessionResult as cz, type QuoteBundleSelectionInput as d, type CheckoutCartItem as d0, type CheckoutCartData as d1, type ParentToIframeMessage as d2, type IframeToParentMessage as d3, type ElementEventHandler as d4, type QuoteStatus as e, type QuoteDynamicBuckets as f, type QuoteUiMessage as g, type RequestSource as h, type RefreshQuoteResult as i, CartOperations as j, CheckoutService as k, generateIdempotencyKey as l, type GetOrdersOptions as m, type AuthStatus as n, type OtpResult as o, LiteService as p, FxService as q, ActivityService as r, type TrackCategoryViewOptions as s, type SessionMessage as t, type SessionActivityData as u, type ActivityStateResponse as v, type ActivityRecommendation as w, type ActivityRecommendationsResponse as x, DeliveryService as y, type DeliveryFeeResponse as z };
2189
+ export { type ElementEventType as $, AuthService as A, BusinessService as B, CimplifyClient as C, type DismissMessageResponse as D, type DeliveryFeeResponse as E, type FetchQuoteInput as F, type GetProductsOptions as G, type LiteBootstrap as H, InventoryService as I, type TableInfo as J, CimplifyElements as K, LinkService as L, CimplifyElement as M, createElements as N, OrderQueries as O, type PriceQuote as P, type QuoteCompositeSelectionInput as Q, type RefreshQuoteInput as R, SchedulingService as S, type TrackProductViewOptions as T, type UpdateProfileInput as U, MESSAGE_TYPES as V, EVENT_TYPES as W, ELEMENT_TYPES as X, type ElementsOptions as Y, type ElementOptions as Z, type ElementType as _, type CimplifyConfig as a, type FeeBearerType as a$, type CheckoutMode as a0, type CheckoutOrderType as a1, type CheckoutPaymentMethod as a2, type CheckoutStep as a3, type CheckoutFormData as a4, type CheckoutResult as a5, type NextAction as a6, type ProcessCheckoutOptions as a7, type ProcessCheckoutResult as a8, type ProcessAndResolveOptions as a9, type Err as aA, ok as aB, err as aC, isOk as aD, isErr as aE, mapResult as aF, mapError as aG, flatMap as aH, getOrElse as aI, unwrap as aJ, toNullable as aK, fromPromise as aL, tryCatch as aM, combine as aN, combineObject as aO, type CatalogueResult as aP, type CatalogueSnapshot as aQ, type OrderStatus as aR, type PaymentState as aS, type OrderChannel as aT, type LineType as aU, type OrderLineState as aV, type OrderLineStatus as aW, type FulfillmentType as aX, type FulfillmentStatus as aY, type FulfillmentLink as aZ, type OrderFulfillmentSummary as a_, type CheckoutStatus as aa, type CheckoutStatusContext as ab, type AbortablePromise as ac, type MobileMoneyProvider as ad, type DeviceType as ae, type ContactType as af, CHECKOUT_MODE as ag, ORDER_TYPE as ah, PAYMENT_METHOD as ai, CHECKOUT_STEP as aj, PAYMENT_STATE as ak, PICKUP_TIME_TYPE as al, MOBILE_MONEY_PROVIDER as am, AUTHORIZATION_TYPE as an, DEVICE_TYPE as ao, CONTACT_TYPE as ap, LINK_QUERY as aq, LINK_MUTATION as ar, AUTH_MUTATION as as, CHECKOUT_MUTATION as at, PAYMENT_MUTATION as au, ORDER_MUTATION as av, DEFAULT_CURRENCY as aw, DEFAULT_COUNTRY as ax, type Result as ay, type Ok as az, CatalogueQueries as b, type DayAvailability as b$, type AmountToPay as b0, type LineItem as b1, type Order as b2, type OrderHistory as b3, type OrderGroupStatus as b4, type OrderGroupPaymentState as b5, type OrderGroupPaymentStatus as b6, type OrderGroup as b7, type OrderGroupPayment as b8, type OrderSplitDetail as b9, type DeliveryFeeDetails as bA, type RelationType as bB, type RelatedProduct as bC, type RelatedCandidate as bD, type RelatedProductsEnrichment as bE, type BusinessType as bF, type BusinessPreferences as bG, type Business as bH, type LocationTaxBehavior as bI, type LocationTaxOverrides as bJ, type Location as bK, type TimeRange as bL, type TimeRanges as bM, type LocationTimeProfile as bN, type Table as bO, type Room as bP, type ServiceCharge as bQ, type StorefrontBootstrap as bR, type BusinessWithLocations as bS, type LocationWithDetails as bT, type BusinessSettings as bU, type BusinessHours as bV, type CategoryInfo as bW, type Service as bX, type Staff as bY, type TimeSlot as bZ, type AvailableSlot as b_, type OrderGroupPaymentSummary as ba, type OrderGroupDetails as bb, type OrderPaymentEvent as bc, type OrderFilter as bd, type CheckoutInput as be, type UpdateOrderStatusInput as bf, type CancelOrderInput as bg, type RefundOrderInput as bh, type ServiceStatus as bi, type StaffRole as bj, type ReminderMethod as bk, type CustomerServicePreferences as bl, type BufferTimes as bm, type ReminderSettings as bn, type CancellationPolicy as bo, type ServiceNotes as bp, type PricingOverrides as bq, type SchedulingMetadata as br, type StaffAssignment as bs, type ResourceAssignment as bt, type SchedulingResult as bu, type DepositResult as bv, type ServiceScheduleRequest as bw, type StaffScheduleItem as bx, type LocationAppointment as by, type ProviderResolutionSource as bz, createCimplifyClient as c, type ElementsCheckoutData as c$, type BookingStatus as c0, type Booking as c1, type BookingWithDetails as c2, type CustomerBookingServiceItem as c3, type CustomerBooking as c4, type GetAvailableSlotsInput as c5, type CheckSlotAvailabilityInput as c6, type CheckSlotAvailabilityResult as c7, type RescheduleBookingInput as c8, type CancelBookingInput as c9, type RevokeSessionResult as cA, type RevokeAllSessionsResult as cB, type RequestOtpInput as cC, type VerifyOtpInput as cD, type AuthResponse as cE, type PickupTimeType as cF, type PickupTime as cG, type CheckoutAddressInfo as cH, type MobileMoneyDetails as cI, type CheckoutCustomerInfo as cJ, type FxQuoteRequest as cK, type FxQuote as cL, type FxRateResponse as cM, type RequestContext as cN, type RequestStartEvent as cO, type RequestSuccessEvent as cP, type RequestErrorEvent as cQ, type RetryEvent as cR, type SessionChangeEvent as cS, type ObservabilityHooks as cT, type OrderType as cU, type ElementAppearance as cV, type AddressInfo as cW, type PaymentMethodInfo as cX, type AuthenticatedCustomer as cY, type ElementsCustomerInfo as cZ, type AuthenticatedData as c_, type CancelBookingResult as ca, type RescheduleBookingResult as cb, type ServiceAvailabilityParams as cc, type ServiceAvailabilityResult as cd, type StockStatus as ce, type StockLevel as cf, type ProductStock as cg, type VariantStock as ch, type LocationStock as ci, type AvailabilityResult as cj, type Customer as ck, type CustomerAddress as cl, type CustomerMobileMoney as cm, type CustomerLinkPreferences as cn, type LinkData as co, type CreateAddressInput as cp, type UpdateAddressInput as cq, type CreateMobileMoneyInput as cr, type EnrollmentData as cs, type AddressData as ct, type MobileMoneyData as cu, type EnrollAndLinkOrderInput as cv, type LinkStatusResult as cw, type LinkEnrollResult as cx, type EnrollAndLinkOrderResult as cy, type LinkSession as cz, type QuoteBundleSelectionInput as d, type ElementsCheckoutResult as d0, type CheckoutCartItem as d1, type CheckoutCartData as d2, type ParentToIframeMessage as d3, type IframeToParentMessage as d4, type ElementEventHandler as d5, 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, LiteService as q, FxService as r, ActivityService as s, type TrackCategoryViewOptions as t, type SessionMessage as u, type SessionActivityData as v, type ActivityStateResponse as w, type ActivityRecommendation as x, type ActivityRecommendationsResponse as y, DeliveryService as z };
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- export { am as AUTHORIZATION_TYPE, ar as AUTH_MUTATION, ab as AbortablePromise, w as ActivityRecommendation, x as ActivityRecommendationsResponse, r as ActivityService, v as ActivityStateResponse, cs as AddressData, cV as AddressInfo, a$ as AmountToPay, cD as AuthResponse, A as AuthService, n as AuthStatus, cX as AuthenticatedCustomer, cZ as AuthenticatedData, ci as AvailabilityResult, bZ as AvailableSlot, c0 as Booking, b$ as BookingStatus, c1 as BookingWithDetails, bl as BufferTimes, bG as Business, bU as BusinessHours, bF as BusinessPreferences, B as BusinessService, bT as BusinessSettings, bE as BusinessType, bR as BusinessWithLocations, af as CHECKOUT_MODE, as as CHECKOUT_MUTATION, ai as CHECKOUT_STEP, ao as CONTACT_TYPE, c8 as CancelBookingInput, c9 as CancelBookingResult, bf as CancelOrderInput, bn as CancellationPolicy, j as CartOperations, b as CatalogueQueries, aO as CatalogueResult, aP as CatalogueSnapshot, bV as CategoryInfo, c5 as CheckSlotAvailabilityInput, c6 as CheckSlotAvailabilityResult, cG as CheckoutAddressInfo, d1 as CheckoutCartData, d0 as CheckoutCartItem, cI as CheckoutCustomerInfo, a3 as CheckoutFormData, bd as CheckoutInput, $ as CheckoutMode, k as CheckoutOperations, a0 as CheckoutOrderType, a1 as CheckoutPaymentMethod, a4 as CheckoutResult, k as CheckoutService, a9 as CheckoutStatus, aa as CheckoutStatusContext, a2 as CheckoutStep, C as CimplifyClient, a as CimplifyConfig, K as CimplifyElement, J as CimplifyElements, ae as ContactType, co as CreateAddressInput, cq as CreateMobileMoneyInput, cj as Customer, ck as CustomerAddress, c3 as CustomerBooking, c2 as CustomerBookingServiceItem, cm as CustomerLinkPreferences, cl as CustomerMobileMoney, bk as CustomerServicePreferences, aw as DEFAULT_COUNTRY, av as DEFAULT_CURRENCY, an as DEVICE_TYPE, b_ as DayAvailability, bz as DeliveryFeeDetails, z as DeliveryFeeResponse, y as DeliveryService, bu as DepositResult, ad as DeviceType, D as DismissMessageResponse, W as ELEMENT_TYPES, V as EVENT_TYPES, cU as ElementAppearance, d4 as ElementEventHandler, _ as ElementEventType, Y as ElementOptions, Z as ElementType, c_ as ElementsCheckoutData, c$ as ElementsCheckoutResult, cY as ElementsCustomerInfo, X as ElementsOptions, cu as EnrollAndLinkOrderInput, cx as EnrollAndLinkOrderResult, cr as EnrollmentData, az as Err, a_ as FeeBearerType, F as FetchQuoteInput, aY as FulfillmentLink, aX as FulfillmentStatus, aW as FulfillmentType, cK as FxQuote, cJ as FxQuoteRequest, cL as FxRateResponse, q as FxService, c4 as GetAvailableSlotsInput, m as GetOrdersOptions, G as GetProductsOptions, d3 as IframeToParentMessage, I as InventoryService, aq as LINK_MUTATION, ap as LINK_QUERY, b0 as LineItem, aT as LineType, cn as LinkData, cw as LinkEnrollResult, L as LinkService, cy as LinkSession, cv as LinkStatusResult, E as LiteBootstrap, p as LiteService, bJ as Location, bx as LocationAppointment, ch as LocationStock, bH as LocationTaxBehavior, bI as LocationTaxOverrides, bM as LocationTimeProfile, bS as LocationWithDetails, N as MESSAGE_TYPES, al as MOBILE_MONEY_PROVIDER, ct as MobileMoneyData, cH as MobileMoneyDetails, ac as MobileMoneyProvider, a5 as NextAction, au as ORDER_MUTATION, ag as ORDER_TYPE, cS as ObservabilityHooks, ay as Ok, b1 as Order, aS as OrderChannel, bc as OrderFilter, aZ as OrderFulfillmentSummary, b6 as OrderGroup, ba as OrderGroupDetails, b7 as OrderGroupPayment, b4 as OrderGroupPaymentState, b5 as OrderGroupPaymentStatus, b9 as OrderGroupPaymentSummary, b3 as OrderGroupStatus, b2 as OrderHistory, aU as OrderLineState, aV as OrderLineStatus, bb as OrderPaymentEvent, O as OrderQueries, b8 as OrderSplitDetail, aQ as OrderStatus, cT as OrderType, o as OtpResult, ah as PAYMENT_METHOD, at as PAYMENT_MUTATION, aj as PAYMENT_STATE, ak as PICKUP_TIME_TYPE, d2 as ParentToIframeMessage, cW as PaymentMethodInfo, aR as PaymentState, cF as PickupTime, cE as PickupTimeType, P as PriceQuote, bp as PricingOverrides, a8 as ProcessAndResolveOptions, a6 as ProcessCheckoutOptions, a7 as ProcessCheckoutResult, cf as ProductStock, by as ProviderResolutionSource, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, f as QuoteDynamicBuckets, e as QuoteStatus, g as QuoteUiMessage, R as RefreshQuoteInput, i as RefreshQuoteResult, bg as RefundOrderInput, bC as RelatedCandidate, bB as RelatedProduct, bD as RelatedProductsEnrichment, bA as RelationType, bj as ReminderMethod, bm as ReminderSettings, cM as RequestContext, cP as RequestErrorEvent, cB as RequestOtpInput, h as RequestSource, cN as RequestStartEvent, cO as RequestSuccessEvent, c7 as RescheduleBookingInput, ca as RescheduleBookingResult, bs as ResourceAssignment, ax as Result, cQ as RetryEvent, cA as RevokeAllSessionsResult, cz as RevokeSessionResult, bO as Room, bq as SchedulingMetadata, bt as SchedulingResult, S as SchedulingService, bW as Service, cb as ServiceAvailabilityParams, cc as ServiceAvailabilityResult, bP as ServiceCharge, bo as ServiceNotes, bv as ServiceScheduleRequest, bh as ServiceStatus, u as SessionActivityData, cR as SessionChangeEvent, t as SessionMessage, bX as Staff, br as StaffAssignment, bi as StaffRole, bw as StaffScheduleItem, ce as StockLevel, cd as StockStatus, bQ as StorefrontBootstrap, bN as Table, H as TableInfo, bK as TimeRange, bL as TimeRanges, bY as TimeSlot, s as TrackCategoryViewOptions, T as TrackProductViewOptions, cp as UpdateAddressInput, be as UpdateOrderStatusInput, U as UpdateProfileInput, cg as VariantStock, cC as VerifyOtpInput, aM as combine, aN as combineObject, c as createCimplifyClient, M as createElements, aB as err, aG as flatMap, aK as fromPromise, l as generateIdempotencyKey, aH as getOrElse, aD as isErr, aC as isOk, aF as mapError, aE as mapResult, aA as ok, aJ as toNullable, aL as tryCatch, aI as unwrap } from './client-D4E9aJy7.mjs';
1
+ export { an as AUTHORIZATION_TYPE, as as AUTH_MUTATION, ac as AbortablePromise, x as ActivityRecommendation, y as ActivityRecommendationsResponse, s as ActivityService, w as ActivityStateResponse, ct as AddressData, cW as AddressInfo, b0 as AmountToPay, cE as AuthResponse, A as AuthService, o as AuthStatus, cY as AuthenticatedCustomer, c_ as AuthenticatedData, cj as AvailabilityResult, b_ as AvailableSlot, c1 as Booking, c0 as BookingStatus, c2 as BookingWithDetails, bm as BufferTimes, bH as Business, bV as BusinessHours, bG as BusinessPreferences, B as BusinessService, bU as BusinessSettings, bF as BusinessType, bS as BusinessWithLocations, ag as CHECKOUT_MODE, at as CHECKOUT_MUTATION, aj as CHECKOUT_STEP, ap as CONTACT_TYPE, c9 as CancelBookingInput, ca as CancelBookingResult, bg as CancelOrderInput, bo as CancellationPolicy, j as CartOperations, b as CatalogueQueries, aP as CatalogueResult, aQ as CatalogueSnapshot, bW as CategoryInfo, c6 as CheckSlotAvailabilityInput, c7 as CheckSlotAvailabilityResult, cH as CheckoutAddressInfo, d2 as CheckoutCartData, d1 as CheckoutCartItem, cJ as CheckoutCustomerInfo, a4 as CheckoutFormData, be as CheckoutInput, a0 as CheckoutMode, l as CheckoutOperations, a1 as CheckoutOrderType, a2 as CheckoutPaymentMethod, a5 as CheckoutResult, l as CheckoutService, aa as CheckoutStatus, ab as CheckoutStatusContext, a3 as CheckoutStep, C as CimplifyClient, a as CimplifyConfig, M as CimplifyElement, K as CimplifyElements, af as ContactType, cp as CreateAddressInput, cr as CreateMobileMoneyInput, ck as Customer, cl as CustomerAddress, c4 as CustomerBooking, c3 as CustomerBookingServiceItem, cn as CustomerLinkPreferences, cm as CustomerMobileMoney, bl as CustomerServicePreferences, ax as DEFAULT_COUNTRY, aw as DEFAULT_CURRENCY, ao as DEVICE_TYPE, b$ as DayAvailability, bA as DeliveryFeeDetails, E as DeliveryFeeResponse, z as DeliveryService, bv as DepositResult, ae as DeviceType, D as DismissMessageResponse, X as ELEMENT_TYPES, W as EVENT_TYPES, cV as ElementAppearance, d5 as ElementEventHandler, $ as ElementEventType, Z as ElementOptions, _ as ElementType, c$ as ElementsCheckoutData, d0 as ElementsCheckoutResult, cZ as ElementsCustomerInfo, Y as ElementsOptions, cv as EnrollAndLinkOrderInput, cy as EnrollAndLinkOrderResult, cs as EnrollmentData, aA as Err, a$ as FeeBearerType, F as FetchQuoteInput, aZ as FulfillmentLink, aY as FulfillmentStatus, aX as FulfillmentType, cL as FxQuote, cK as FxQuoteRequest, cM as FxRateResponse, r as FxService, c5 as GetAvailableSlotsInput, n as GetOrdersOptions, G as GetProductsOptions, d4 as IframeToParentMessage, I as InventoryService, ar as LINK_MUTATION, aq as LINK_QUERY, b1 as LineItem, aU as LineType, co as LinkData, cx as LinkEnrollResult, L as LinkService, cz as LinkSession, cw as LinkStatusResult, H as LiteBootstrap, q as LiteService, bK as Location, by as LocationAppointment, ci as LocationStock, bI as LocationTaxBehavior, bJ as LocationTaxOverrides, bN as LocationTimeProfile, bT as LocationWithDetails, V as MESSAGE_TYPES, am as MOBILE_MONEY_PROVIDER, cu as MobileMoneyData, cI as MobileMoneyDetails, ad as MobileMoneyProvider, a6 as NextAction, av as ORDER_MUTATION, ah as ORDER_TYPE, cT as ObservabilityHooks, az as Ok, b2 as Order, aT as OrderChannel, bd as OrderFilter, a_ as OrderFulfillmentSummary, b7 as OrderGroup, bb as OrderGroupDetails, b8 as OrderGroupPayment, b5 as OrderGroupPaymentState, b6 as OrderGroupPaymentStatus, ba as OrderGroupPaymentSummary, b4 as OrderGroupStatus, b3 as OrderHistory, aV as OrderLineState, aW as OrderLineStatus, bc as OrderPaymentEvent, O as OrderQueries, b9 as OrderSplitDetail, aR as OrderStatus, cU as OrderType, p as OtpResult, ai as PAYMENT_METHOD, au as PAYMENT_MUTATION, ak as PAYMENT_STATE, al as PICKUP_TIME_TYPE, d3 as ParentToIframeMessage, cX as PaymentMethodInfo, aS as PaymentState, cG as PickupTime, cF as PickupTimeType, P as PriceQuote, bq as PricingOverrides, a9 as ProcessAndResolveOptions, a7 as ProcessCheckoutOptions, a8 as ProcessCheckoutResult, cg as ProductStock, bz as ProviderResolutionSource, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, f as QuoteDynamicBuckets, e as QuoteStatus, g as QuoteUiMessage, R as RefreshQuoteInput, i as RefreshQuoteResult, bh as RefundOrderInput, bD as RelatedCandidate, bC as RelatedProduct, bE as RelatedProductsEnrichment, bB as RelationType, bk as ReminderMethod, bn as ReminderSettings, k as ReorderResult, cN as RequestContext, cQ as RequestErrorEvent, cC as RequestOtpInput, h as RequestSource, cO as RequestStartEvent, cP as RequestSuccessEvent, c8 as RescheduleBookingInput, cb as RescheduleBookingResult, bt as ResourceAssignment, ay as Result, cR as RetryEvent, cB as RevokeAllSessionsResult, cA as RevokeSessionResult, bP as Room, br as SchedulingMetadata, bu as SchedulingResult, S as SchedulingService, bX as Service, cc as ServiceAvailabilityParams, cd as ServiceAvailabilityResult, bQ as ServiceCharge, bp as ServiceNotes, bw as ServiceScheduleRequest, bi as ServiceStatus, v as SessionActivityData, cS as SessionChangeEvent, u as SessionMessage, bY as Staff, bs as StaffAssignment, bj as StaffRole, bx as StaffScheduleItem, cf as StockLevel, ce as StockStatus, bR as StorefrontBootstrap, bO as Table, J as TableInfo, bL as TimeRange, bM as TimeRanges, bZ as TimeSlot, t as TrackCategoryViewOptions, T as TrackProductViewOptions, cq as UpdateAddressInput, bf as UpdateOrderStatusInput, U as UpdateProfileInput, ch as VariantStock, cD as VerifyOtpInput, aN as combine, aO as combineObject, c as createCimplifyClient, N as createElements, aC as err, aH as flatMap, aL as fromPromise, m as generateIdempotencyKey, aI as getOrElse, aE as isErr, aD as isOk, aG as mapError, aF as mapResult, aB as ok, aK as toNullable, aM as tryCatch, aJ as unwrap } from './client-B8PO4NKN.mjs';
2
2
  export { QueryBuilder, query } from './advanced.mjs';
3
3
  import { A as ApiError } from './payment-CKqMU4xT.mjs';
4
4
  export { a0 as AddOn, aZ as AddOnDetails, bk as AddOnGroupDetails, a2 as AddOnOption, bj as AddOnOptionDetails, a3 as AddOnOptionPrice, a1 as AddOnWithOptions, bp as AddToCartInput, bv as AddressAuthorizationData, aP as AdjustmentType, aV as AppliedDiscount, u as AttributeAppliesTo, t as AttributeType, x as AttributeValidationRules, v as AttributeVisibility, bw as AuthorizationType, aU as BenefitType, bF as BillingFrequency, bH as BillingMarkupType, bG as BillingPlanType, ab as Bundle, af as BundleComponentData, ag as BundleComponentInfo, ai as BundleComponentVariantView, ah as BundleComponentView, aa as BundlePriceType, ad as BundleProduct, b3 as BundleSelectionData, b0 as BundleSelectionInput, b2 as BundleStoredSelection, ac as BundleSummary, ae as BundleWithDetails, b8 as Cart, a_ as CartAddOn, aN as CartChannel, b9 as CartItem, bm as CartItemDetails, aM as CartStatus, br as CartSummary, ba as CartTotals, a5 as Category, a6 as CategorySummary, C as ChosenPrice, h as CimplifyError, a7 as Collection, a9 as CollectionProduct, a8 as CollectionSummary, aq as ComponentGroup, ar as ComponentGroupWithComponents, ax as ComponentPriceBreakdown, b1 as ComponentSchedulingData, av as ComponentSelectionInput, an as ComponentSourceType, ao as Composite, au as CompositeComponent, at as CompositeComponentView, as as CompositeGroupView, b5 as CompositePriceBreakdown, aw as CompositePriceResult, al as CompositePricingMode, b6 as CompositeSelectionData, av as CompositeSelectionInput, b4 as CompositeStoredSelection, ap as CompositeWithDetails, a as CurrencyCode, y as CustomAttributeDefinition, z as CustomAttributeValue, aH as Deal, aG as DealBenefitType, r as DepositType, q as DigitalProductType, aW as DiscountBreakdown, aX as DiscountDetails, aJ as DiscountValidation, bd as DisplayAddOn, be as DisplayAddOnOption, bb as DisplayCart, bc as DisplayCartItem, D as DisplayMode, s as DurationUnit, g as ERROR_HINTS, bJ as EligiblePlansQuery, E as ErrorCode, e as ErrorCodeType, f as ErrorHint, H as FacetValue, bK as FormattedPlanOption, am as GroupPricingBehavior, bA as InitializePaymentResult, I as InventoryType, K as KnowledgeArticle, b7 as LineConfiguration, aA as LocationProductPrice, w as MeasurementValue, M as Money, d as Pagination, P as PaginationParams, bz as Payment, bD as PaymentErrorDetails, by as PaymentMethod, bu as PaymentMethodType, bx as PaymentProcessingState, bt as PaymentProvider, bB as PaymentResponse, bs as PaymentStatus, bC as PaymentStatusResponse, az as Price, aQ as PriceAdjustment, aT as PriceDecisionPath, ay as PriceEntryType, aS as PricePathTaxInfo, aO as PriceSource, J as Product, a4 as ProductAddOn, aB as ProductAvailability, aF as ProductAvailabilityNow, bI as ProductBillingPlan, aI as ProductDealInfo, F as ProductProperty, p as ProductRenderHint, aD as ProductTaxonomy, aC as ProductTimeProfile, o as ProductType, O as ProductVariant, Y as ProductVariantValue, L as ProductWithDetails, G as PropertyFacet, B as PropertySource, R as RelatedProductView, S as SalesChannel, aY as SelectedAddOnOption, bE as SubmitAuthorizationInput, aK as Tag, aL as TagsResponse, aR as TaxPathComponent, T as TaxonomyAttributeTemplate, aE as TaxonomyWithChildren, bn as UICart, bf as UICartBusiness, bh as UICartCustomer, bg as UICartLocation, bi as UICartPricing, bo as UICartResponse, bq as UpdateCartItemInput, U as VariantAxis, $ as VariantAxisSelection, X as VariantAxisValue, ak as VariantAxisValueView, aj as VariantAxisView, W as VariantAxisWithValues, a$ as VariantDetails, bl as VariantDetailsDTO, Q as VariantDisplayAttribute, _ as VariantLocationAvailability, V as VariantStrategy, N 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-CKqMU4xT.mjs';
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { am as AUTHORIZATION_TYPE, ar as AUTH_MUTATION, ab as AbortablePromise, w as ActivityRecommendation, x as ActivityRecommendationsResponse, r as ActivityService, v as ActivityStateResponse, cs as AddressData, cV as AddressInfo, a$ as AmountToPay, cD as AuthResponse, A as AuthService, n as AuthStatus, cX as AuthenticatedCustomer, cZ as AuthenticatedData, ci as AvailabilityResult, bZ as AvailableSlot, c0 as Booking, b$ as BookingStatus, c1 as BookingWithDetails, bl as BufferTimes, bG as Business, bU as BusinessHours, bF as BusinessPreferences, B as BusinessService, bT as BusinessSettings, bE as BusinessType, bR as BusinessWithLocations, af as CHECKOUT_MODE, as as CHECKOUT_MUTATION, ai as CHECKOUT_STEP, ao as CONTACT_TYPE, c8 as CancelBookingInput, c9 as CancelBookingResult, bf as CancelOrderInput, bn as CancellationPolicy, j as CartOperations, b as CatalogueQueries, aO as CatalogueResult, aP as CatalogueSnapshot, bV as CategoryInfo, c5 as CheckSlotAvailabilityInput, c6 as CheckSlotAvailabilityResult, cG as CheckoutAddressInfo, d1 as CheckoutCartData, d0 as CheckoutCartItem, cI as CheckoutCustomerInfo, a3 as CheckoutFormData, bd as CheckoutInput, $ as CheckoutMode, k as CheckoutOperations, a0 as CheckoutOrderType, a1 as CheckoutPaymentMethod, a4 as CheckoutResult, k as CheckoutService, a9 as CheckoutStatus, aa as CheckoutStatusContext, a2 as CheckoutStep, C as CimplifyClient, a as CimplifyConfig, K as CimplifyElement, J as CimplifyElements, ae as ContactType, co as CreateAddressInput, cq as CreateMobileMoneyInput, cj as Customer, ck as CustomerAddress, c3 as CustomerBooking, c2 as CustomerBookingServiceItem, cm as CustomerLinkPreferences, cl as CustomerMobileMoney, bk as CustomerServicePreferences, aw as DEFAULT_COUNTRY, av as DEFAULT_CURRENCY, an as DEVICE_TYPE, b_ as DayAvailability, bz as DeliveryFeeDetails, z as DeliveryFeeResponse, y as DeliveryService, bu as DepositResult, ad as DeviceType, D as DismissMessageResponse, W as ELEMENT_TYPES, V as EVENT_TYPES, cU as ElementAppearance, d4 as ElementEventHandler, _ as ElementEventType, Y as ElementOptions, Z as ElementType, c_ as ElementsCheckoutData, c$ as ElementsCheckoutResult, cY as ElementsCustomerInfo, X as ElementsOptions, cu as EnrollAndLinkOrderInput, cx as EnrollAndLinkOrderResult, cr as EnrollmentData, az as Err, a_ as FeeBearerType, F as FetchQuoteInput, aY as FulfillmentLink, aX as FulfillmentStatus, aW as FulfillmentType, cK as FxQuote, cJ as FxQuoteRequest, cL as FxRateResponse, q as FxService, c4 as GetAvailableSlotsInput, m as GetOrdersOptions, G as GetProductsOptions, d3 as IframeToParentMessage, I as InventoryService, aq as LINK_MUTATION, ap as LINK_QUERY, b0 as LineItem, aT as LineType, cn as LinkData, cw as LinkEnrollResult, L as LinkService, cy as LinkSession, cv as LinkStatusResult, E as LiteBootstrap, p as LiteService, bJ as Location, bx as LocationAppointment, ch as LocationStock, bH as LocationTaxBehavior, bI as LocationTaxOverrides, bM as LocationTimeProfile, bS as LocationWithDetails, N as MESSAGE_TYPES, al as MOBILE_MONEY_PROVIDER, ct as MobileMoneyData, cH as MobileMoneyDetails, ac as MobileMoneyProvider, a5 as NextAction, au as ORDER_MUTATION, ag as ORDER_TYPE, cS as ObservabilityHooks, ay as Ok, b1 as Order, aS as OrderChannel, bc as OrderFilter, aZ as OrderFulfillmentSummary, b6 as OrderGroup, ba as OrderGroupDetails, b7 as OrderGroupPayment, b4 as OrderGroupPaymentState, b5 as OrderGroupPaymentStatus, b9 as OrderGroupPaymentSummary, b3 as OrderGroupStatus, b2 as OrderHistory, aU as OrderLineState, aV as OrderLineStatus, bb as OrderPaymentEvent, O as OrderQueries, b8 as OrderSplitDetail, aQ as OrderStatus, cT as OrderType, o as OtpResult, ah as PAYMENT_METHOD, at as PAYMENT_MUTATION, aj as PAYMENT_STATE, ak as PICKUP_TIME_TYPE, d2 as ParentToIframeMessage, cW as PaymentMethodInfo, aR as PaymentState, cF as PickupTime, cE as PickupTimeType, P as PriceQuote, bp as PricingOverrides, a8 as ProcessAndResolveOptions, a6 as ProcessCheckoutOptions, a7 as ProcessCheckoutResult, cf as ProductStock, by as ProviderResolutionSource, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, f as QuoteDynamicBuckets, e as QuoteStatus, g as QuoteUiMessage, R as RefreshQuoteInput, i as RefreshQuoteResult, bg as RefundOrderInput, bC as RelatedCandidate, bB as RelatedProduct, bD as RelatedProductsEnrichment, bA as RelationType, bj as ReminderMethod, bm as ReminderSettings, cM as RequestContext, cP as RequestErrorEvent, cB as RequestOtpInput, h as RequestSource, cN as RequestStartEvent, cO as RequestSuccessEvent, c7 as RescheduleBookingInput, ca as RescheduleBookingResult, bs as ResourceAssignment, ax as Result, cQ as RetryEvent, cA as RevokeAllSessionsResult, cz as RevokeSessionResult, bO as Room, bq as SchedulingMetadata, bt as SchedulingResult, S as SchedulingService, bW as Service, cb as ServiceAvailabilityParams, cc as ServiceAvailabilityResult, bP as ServiceCharge, bo as ServiceNotes, bv as ServiceScheduleRequest, bh as ServiceStatus, u as SessionActivityData, cR as SessionChangeEvent, t as SessionMessage, bX as Staff, br as StaffAssignment, bi as StaffRole, bw as StaffScheduleItem, ce as StockLevel, cd as StockStatus, bQ as StorefrontBootstrap, bN as Table, H as TableInfo, bK as TimeRange, bL as TimeRanges, bY as TimeSlot, s as TrackCategoryViewOptions, T as TrackProductViewOptions, cp as UpdateAddressInput, be as UpdateOrderStatusInput, U as UpdateProfileInput, cg as VariantStock, cC as VerifyOtpInput, aM as combine, aN as combineObject, c as createCimplifyClient, M as createElements, aB as err, aG as flatMap, aK as fromPromise, l as generateIdempotencyKey, aH as getOrElse, aD as isErr, aC as isOk, aF as mapError, aE as mapResult, aA as ok, aJ as toNullable, aL as tryCatch, aI as unwrap } from './client-VyO6Bqz2.js';
1
+ export { an as AUTHORIZATION_TYPE, as as AUTH_MUTATION, ac as AbortablePromise, x as ActivityRecommendation, y as ActivityRecommendationsResponse, s as ActivityService, w as ActivityStateResponse, ct as AddressData, cW as AddressInfo, b0 as AmountToPay, cE as AuthResponse, A as AuthService, o as AuthStatus, cY as AuthenticatedCustomer, c_ as AuthenticatedData, cj as AvailabilityResult, b_ as AvailableSlot, c1 as Booking, c0 as BookingStatus, c2 as BookingWithDetails, bm as BufferTimes, bH as Business, bV as BusinessHours, bG as BusinessPreferences, B as BusinessService, bU as BusinessSettings, bF as BusinessType, bS as BusinessWithLocations, ag as CHECKOUT_MODE, at as CHECKOUT_MUTATION, aj as CHECKOUT_STEP, ap as CONTACT_TYPE, c9 as CancelBookingInput, ca as CancelBookingResult, bg as CancelOrderInput, bo as CancellationPolicy, j as CartOperations, b as CatalogueQueries, aP as CatalogueResult, aQ as CatalogueSnapshot, bW as CategoryInfo, c6 as CheckSlotAvailabilityInput, c7 as CheckSlotAvailabilityResult, cH as CheckoutAddressInfo, d2 as CheckoutCartData, d1 as CheckoutCartItem, cJ as CheckoutCustomerInfo, a4 as CheckoutFormData, be as CheckoutInput, a0 as CheckoutMode, l as CheckoutOperations, a1 as CheckoutOrderType, a2 as CheckoutPaymentMethod, a5 as CheckoutResult, l as CheckoutService, aa as CheckoutStatus, ab as CheckoutStatusContext, a3 as CheckoutStep, C as CimplifyClient, a as CimplifyConfig, M as CimplifyElement, K as CimplifyElements, af as ContactType, cp as CreateAddressInput, cr as CreateMobileMoneyInput, ck as Customer, cl as CustomerAddress, c4 as CustomerBooking, c3 as CustomerBookingServiceItem, cn as CustomerLinkPreferences, cm as CustomerMobileMoney, bl as CustomerServicePreferences, ax as DEFAULT_COUNTRY, aw as DEFAULT_CURRENCY, ao as DEVICE_TYPE, b$ as DayAvailability, bA as DeliveryFeeDetails, E as DeliveryFeeResponse, z as DeliveryService, bv as DepositResult, ae as DeviceType, D as DismissMessageResponse, X as ELEMENT_TYPES, W as EVENT_TYPES, cV as ElementAppearance, d5 as ElementEventHandler, $ as ElementEventType, Z as ElementOptions, _ as ElementType, c$ as ElementsCheckoutData, d0 as ElementsCheckoutResult, cZ as ElementsCustomerInfo, Y as ElementsOptions, cv as EnrollAndLinkOrderInput, cy as EnrollAndLinkOrderResult, cs as EnrollmentData, aA as Err, a$ as FeeBearerType, F as FetchQuoteInput, aZ as FulfillmentLink, aY as FulfillmentStatus, aX as FulfillmentType, cL as FxQuote, cK as FxQuoteRequest, cM as FxRateResponse, r as FxService, c5 as GetAvailableSlotsInput, n as GetOrdersOptions, G as GetProductsOptions, d4 as IframeToParentMessage, I as InventoryService, ar as LINK_MUTATION, aq as LINK_QUERY, b1 as LineItem, aU as LineType, co as LinkData, cx as LinkEnrollResult, L as LinkService, cz as LinkSession, cw as LinkStatusResult, H as LiteBootstrap, q as LiteService, bK as Location, by as LocationAppointment, ci as LocationStock, bI as LocationTaxBehavior, bJ as LocationTaxOverrides, bN as LocationTimeProfile, bT as LocationWithDetails, V as MESSAGE_TYPES, am as MOBILE_MONEY_PROVIDER, cu as MobileMoneyData, cI as MobileMoneyDetails, ad as MobileMoneyProvider, a6 as NextAction, av as ORDER_MUTATION, ah as ORDER_TYPE, cT as ObservabilityHooks, az as Ok, b2 as Order, aT as OrderChannel, bd as OrderFilter, a_ as OrderFulfillmentSummary, b7 as OrderGroup, bb as OrderGroupDetails, b8 as OrderGroupPayment, b5 as OrderGroupPaymentState, b6 as OrderGroupPaymentStatus, ba as OrderGroupPaymentSummary, b4 as OrderGroupStatus, b3 as OrderHistory, aV as OrderLineState, aW as OrderLineStatus, bc as OrderPaymentEvent, O as OrderQueries, b9 as OrderSplitDetail, aR as OrderStatus, cU as OrderType, p as OtpResult, ai as PAYMENT_METHOD, au as PAYMENT_MUTATION, ak as PAYMENT_STATE, al as PICKUP_TIME_TYPE, d3 as ParentToIframeMessage, cX as PaymentMethodInfo, aS as PaymentState, cG as PickupTime, cF as PickupTimeType, P as PriceQuote, bq as PricingOverrides, a9 as ProcessAndResolveOptions, a7 as ProcessCheckoutOptions, a8 as ProcessCheckoutResult, cg as ProductStock, bz as ProviderResolutionSource, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, f as QuoteDynamicBuckets, e as QuoteStatus, g as QuoteUiMessage, R as RefreshQuoteInput, i as RefreshQuoteResult, bh as RefundOrderInput, bD as RelatedCandidate, bC as RelatedProduct, bE as RelatedProductsEnrichment, bB as RelationType, bk as ReminderMethod, bn as ReminderSettings, k as ReorderResult, cN as RequestContext, cQ as RequestErrorEvent, cC as RequestOtpInput, h as RequestSource, cO as RequestStartEvent, cP as RequestSuccessEvent, c8 as RescheduleBookingInput, cb as RescheduleBookingResult, bt as ResourceAssignment, ay as Result, cR as RetryEvent, cB as RevokeAllSessionsResult, cA as RevokeSessionResult, bP as Room, br as SchedulingMetadata, bu as SchedulingResult, S as SchedulingService, bX as Service, cc as ServiceAvailabilityParams, cd as ServiceAvailabilityResult, bQ as ServiceCharge, bp as ServiceNotes, bw as ServiceScheduleRequest, bi as ServiceStatus, v as SessionActivityData, cS as SessionChangeEvent, u as SessionMessage, bY as Staff, bs as StaffAssignment, bj as StaffRole, bx as StaffScheduleItem, cf as StockLevel, ce as StockStatus, bR as StorefrontBootstrap, bO as Table, J as TableInfo, bL as TimeRange, bM as TimeRanges, bZ as TimeSlot, t as TrackCategoryViewOptions, T as TrackProductViewOptions, cq as UpdateAddressInput, bf as UpdateOrderStatusInput, U as UpdateProfileInput, ch as VariantStock, cD as VerifyOtpInput, aN as combine, aO as combineObject, c as createCimplifyClient, N as createElements, aC as err, aH as flatMap, aL as fromPromise, m as generateIdempotencyKey, aI as getOrElse, aE as isErr, aD as isOk, aG as mapError, aF as mapResult, aB as ok, aK as toNullable, aM as tryCatch, aJ as unwrap } from './client-DjrlvxW7.js';
2
2
  export { QueryBuilder, query } from './advanced.js';
3
3
  import { A as ApiError } from './payment-CKqMU4xT.js';
4
4
  export { a0 as AddOn, aZ as AddOnDetails, bk as AddOnGroupDetails, a2 as AddOnOption, bj as AddOnOptionDetails, a3 as AddOnOptionPrice, a1 as AddOnWithOptions, bp as AddToCartInput, bv as AddressAuthorizationData, aP as AdjustmentType, aV as AppliedDiscount, u as AttributeAppliesTo, t as AttributeType, x as AttributeValidationRules, v as AttributeVisibility, bw as AuthorizationType, aU as BenefitType, bF as BillingFrequency, bH as BillingMarkupType, bG as BillingPlanType, ab as Bundle, af as BundleComponentData, ag as BundleComponentInfo, ai as BundleComponentVariantView, ah as BundleComponentView, aa as BundlePriceType, ad as BundleProduct, b3 as BundleSelectionData, b0 as BundleSelectionInput, b2 as BundleStoredSelection, ac as BundleSummary, ae as BundleWithDetails, b8 as Cart, a_ as CartAddOn, aN as CartChannel, b9 as CartItem, bm as CartItemDetails, aM as CartStatus, br as CartSummary, ba as CartTotals, a5 as Category, a6 as CategorySummary, C as ChosenPrice, h as CimplifyError, a7 as Collection, a9 as CollectionProduct, a8 as CollectionSummary, aq as ComponentGroup, ar as ComponentGroupWithComponents, ax as ComponentPriceBreakdown, b1 as ComponentSchedulingData, av as ComponentSelectionInput, an as ComponentSourceType, ao as Composite, au as CompositeComponent, at as CompositeComponentView, as as CompositeGroupView, b5 as CompositePriceBreakdown, aw as CompositePriceResult, al as CompositePricingMode, b6 as CompositeSelectionData, av as CompositeSelectionInput, b4 as CompositeStoredSelection, ap as CompositeWithDetails, a as CurrencyCode, y as CustomAttributeDefinition, z as CustomAttributeValue, aH as Deal, aG as DealBenefitType, r as DepositType, q as DigitalProductType, aW as DiscountBreakdown, aX as DiscountDetails, aJ as DiscountValidation, bd as DisplayAddOn, be as DisplayAddOnOption, bb as DisplayCart, bc as DisplayCartItem, D as DisplayMode, s as DurationUnit, g as ERROR_HINTS, bJ as EligiblePlansQuery, E as ErrorCode, e as ErrorCodeType, f as ErrorHint, H as FacetValue, bK as FormattedPlanOption, am as GroupPricingBehavior, bA as InitializePaymentResult, I as InventoryType, K as KnowledgeArticle, b7 as LineConfiguration, aA as LocationProductPrice, w as MeasurementValue, M as Money, d as Pagination, P as PaginationParams, bz as Payment, bD as PaymentErrorDetails, by as PaymentMethod, bu as PaymentMethodType, bx as PaymentProcessingState, bt as PaymentProvider, bB as PaymentResponse, bs as PaymentStatus, bC as PaymentStatusResponse, az as Price, aQ as PriceAdjustment, aT as PriceDecisionPath, ay as PriceEntryType, aS as PricePathTaxInfo, aO as PriceSource, J as Product, a4 as ProductAddOn, aB as ProductAvailability, aF as ProductAvailabilityNow, bI as ProductBillingPlan, aI as ProductDealInfo, F as ProductProperty, p as ProductRenderHint, aD as ProductTaxonomy, aC as ProductTimeProfile, o as ProductType, O as ProductVariant, Y as ProductVariantValue, L as ProductWithDetails, G as PropertyFacet, B as PropertySource, R as RelatedProductView, S as SalesChannel, aY as SelectedAddOnOption, bE as SubmitAuthorizationInput, aK as Tag, aL as TagsResponse, aR as TaxPathComponent, T as TaxonomyAttributeTemplate, aE as TaxonomyWithChildren, bn as UICart, bf as UICartBusiness, bh as UICartCustomer, bg as UICartLocation, bi as UICartPricing, bo as UICartResponse, bq as UpdateCartItemInput, U as VariantAxis, $ as VariantAxisSelection, X as VariantAxisValue, ak as VariantAxisValueView, aj as VariantAxisView, W as VariantAxisWithValues, a$ as VariantDetails, bl as VariantDetailsDTO, Q as VariantDisplayAttribute, _ as VariantLocationAvailability, V as VariantStrategy, N 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-CKqMU4xT.js';