@cimplify/sdk 0.9.7 → 0.9.8

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,4 +1,4 @@
1
- export { A as AuthService, B as BusinessService, i as CartOperations, b as CatalogueQueries, j as CheckoutOperations, j as CheckoutService, t as CimplifyElement, s as CimplifyElements, v as ELEMENT_TYPES, E as EVENT_TYPES, z as ElementEventType, x as ElementOptions, y as ElementType, w as ElementsOptions, F as FetchQuoteInput, q as FxService, G as GetProductsOptions, I as InventoryService, L as LinkService, p as LiteService, M as MESSAGE_TYPES, O as OrderQueries, P as PriceQuote, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, f as QuoteDynamicBuckets, e as QuoteStatus, g as QuoteUiMessage, R as RefreshQuoteInput, h as RefreshQuoteResult, o as SchedulingService, S as SearchOptions, u as createElements, k as generateIdempotencyKey } from './client-mOiGkyoT.mjs';
1
+ export { A as AuthService, B as BusinessService, i as CartOperations, b as CatalogueQueries, j as CheckoutOperations, j as CheckoutService, t as CimplifyElement, s as CimplifyElements, v as ELEMENT_TYPES, E as EVENT_TYPES, z as ElementEventType, x as ElementOptions, y as ElementType, w as ElementsOptions, F as FetchQuoteInput, q as FxService, G as GetProductsOptions, I as InventoryService, L as LinkService, p as LiteService, M as MESSAGE_TYPES, O as OrderQueries, P as PriceQuote, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, f as QuoteDynamicBuckets, e as QuoteStatus, g as QuoteUiMessage, R as RefreshQuoteInput, h as RefreshQuoteResult, o as SchedulingService, S as SearchOptions, u as createElements, k as generateIdempotencyKey } from './client-D4EiM667.mjs';
2
2
  import './payment-D58dS_E9.mjs';
3
3
 
4
4
  type Operator = "==" | "!=" | ">" | "<" | ">=" | "<=" | "contains" | "startsWith";
@@ -1,4 +1,4 @@
1
- export { A as AuthService, B as BusinessService, i as CartOperations, b as CatalogueQueries, j as CheckoutOperations, j as CheckoutService, t as CimplifyElement, s as CimplifyElements, v as ELEMENT_TYPES, E as EVENT_TYPES, z as ElementEventType, x as ElementOptions, y as ElementType, w as ElementsOptions, F as FetchQuoteInput, q as FxService, G as GetProductsOptions, I as InventoryService, L as LinkService, p as LiteService, M as MESSAGE_TYPES, O as OrderQueries, P as PriceQuote, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, f as QuoteDynamicBuckets, e as QuoteStatus, g as QuoteUiMessage, R as RefreshQuoteInput, h as RefreshQuoteResult, o as SchedulingService, S as SearchOptions, u as createElements, k as generateIdempotencyKey } from './client-DmDEP_yB.js';
1
+ export { A as AuthService, B as BusinessService, i as CartOperations, b as CatalogueQueries, j as CheckoutOperations, j as CheckoutService, t as CimplifyElement, s as CimplifyElements, v as ELEMENT_TYPES, E as EVENT_TYPES, z as ElementEventType, x as ElementOptions, y as ElementType, w as ElementsOptions, F as FetchQuoteInput, q as FxService, G as GetProductsOptions, I as InventoryService, L as LinkService, p as LiteService, M as MESSAGE_TYPES, O as OrderQueries, P as PriceQuote, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, f as QuoteDynamicBuckets, e as QuoteStatus, g as QuoteUiMessage, R as RefreshQuoteInput, h as RefreshQuoteResult, o as SchedulingService, S as SearchOptions, u as createElements, k as generateIdempotencyKey } from './client-CYRL8s1S.js';
2
2
  import './payment-D58dS_E9.js';
3
3
 
4
4
  type Operator = "==" | "!=" | ">" | "<" | ">=" | "<=" | "contains" | "startsWith";
package/dist/advanced.js CHANGED
@@ -376,14 +376,6 @@ var CatalogueQueries = class {
376
376
  async getBundles() {
377
377
  return safe(this.client.get("/api/v1/catalogue/bundles"));
378
378
  }
379
- async getBundle(id) {
380
- const encodedId = encodeURIComponent(id);
381
- return safe(this.client.get(`/api/v1/catalogue/bundles/${encodedId}`));
382
- }
383
- async getBundleBySlug(slug) {
384
- const encodedSlug = encodeURIComponent(slug);
385
- return safe(this.client.get(`/api/v1/catalogue/bundles/slug/${encodedSlug}`));
386
- }
387
379
  async searchBundles(query2, limit = 20) {
388
380
  const path = withQuery("/api/v1/catalogue/bundles", { search: query2, limit });
389
381
  return safe(this.client.get(path));
@@ -392,18 +384,6 @@ var CatalogueQueries = class {
392
384
  const path = withQuery("/api/v1/catalogue/composites", { limit: options?.limit });
393
385
  return safe(this.client.get(path));
394
386
  }
395
- async getComposite(id) {
396
- const encodedId = encodeURIComponent(id);
397
- return safe(this.client.get(`/api/v1/catalogue/composites/${encodedId}`));
398
- }
399
- async getCompositeByProductId(productId) {
400
- const encodedId = encodeURIComponent(productId);
401
- return safe(
402
- this.client.get(
403
- `/api/v1/catalogue/composites/by-product/${encodedId}`
404
- )
405
- );
406
- }
407
387
  async calculateCompositePrice(compositeId, selections, locationId) {
408
388
  const encodedId = encodeURIComponent(compositeId);
409
389
  return safe(
package/dist/advanced.mjs CHANGED
@@ -374,14 +374,6 @@ var CatalogueQueries = class {
374
374
  async getBundles() {
375
375
  return safe(this.client.get("/api/v1/catalogue/bundles"));
376
376
  }
377
- async getBundle(id) {
378
- const encodedId = encodeURIComponent(id);
379
- return safe(this.client.get(`/api/v1/catalogue/bundles/${encodedId}`));
380
- }
381
- async getBundleBySlug(slug) {
382
- const encodedSlug = encodeURIComponent(slug);
383
- return safe(this.client.get(`/api/v1/catalogue/bundles/slug/${encodedSlug}`));
384
- }
385
377
  async searchBundles(query2, limit = 20) {
386
378
  const path = withQuery("/api/v1/catalogue/bundles", { search: query2, limit });
387
379
  return safe(this.client.get(path));
@@ -390,18 +382,6 @@ var CatalogueQueries = class {
390
382
  const path = withQuery("/api/v1/catalogue/composites", { limit: options?.limit });
391
383
  return safe(this.client.get(path));
392
384
  }
393
- async getComposite(id) {
394
- const encodedId = encodeURIComponent(id);
395
- return safe(this.client.get(`/api/v1/catalogue/composites/${encodedId}`));
396
- }
397
- async getCompositeByProductId(productId) {
398
- const encodedId = encodeURIComponent(productId);
399
- return safe(
400
- this.client.get(
401
- `/api/v1/catalogue/composites/by-product/${encodedId}`
402
- )
403
- );
404
- }
405
385
  async calculateCompositePrice(compositeId, selections, locationId) {
406
386
  const encodedId = encodeURIComponent(compositeId);
407
387
  return safe(
@@ -1,4 +1,4 @@
1
- import { N as Category, s as Product, H as AddOnWithOptions, d as Pagination, h as CimplifyError, t as ProductWithDetails, u as ProductVariant, w as VariantAxis, F as VariantAxisSelection, G as AddOn, Q as Collection, W as Bundle, _ as BundleWithDetails, a8 as Composite, a9 as CompositeWithDetails, af as ComponentSelectionInput, ag as CompositePriceResult, av as ChosenPrice, a_ as UICart, aL as Cart, aM as CartItem, b2 as CartSummary, b0 as AddToCartInput, b1 as UpdateCartItemInput, az as DiscountDetails, M as Money, C as CurrencyCode, aK as LineConfiguration, b6 as AuthorizationType, b8 as PaymentMethod, ba as InitializePaymentResult, be as SubmitAuthorizationInput, bc as PaymentStatusResponse } from './payment-D58dS_E9.js';
1
+ import { N as Category, s as Product, H as AddOnWithOptions, d as Pagination, h as CimplifyError, t as ProductWithDetails, u as ProductVariant, w as VariantAxis, F as VariantAxisSelection, G as AddOn, Q as Collection, W as Bundle, a8 as Composite, af as ComponentSelectionInput, ag as CompositePriceResult, av as ChosenPrice, a_ as UICart, aL as Cart, aM as CartItem, b2 as CartSummary, b0 as AddToCartInput, b1 as UpdateCartItemInput, az as DiscountDetails, M as Money, C as CurrencyCode, aK as LineConfiguration, b6 as AuthorizationType, b8 as PaymentMethod, ba as InitializePaymentResult, be as SubmitAuthorizationInput, bc as PaymentStatusResponse } from './payment-D58dS_E9.js';
2
2
 
3
3
  /**
4
4
  * Observability hooks for monitoring SDK behavior.
@@ -380,14 +380,10 @@ declare class CatalogueQueries {
380
380
  getCollectionProducts(collectionId: string): Promise<Result<Product[], CimplifyError>>;
381
381
  searchCollections(query: string, limit?: number): Promise<Result<Collection[], CimplifyError>>;
382
382
  getBundles(): Promise<Result<Bundle[], CimplifyError>>;
383
- getBundle(id: string): Promise<Result<BundleWithDetails, CimplifyError>>;
384
- getBundleBySlug(slug: string): Promise<Result<BundleWithDetails, CimplifyError>>;
385
383
  searchBundles(query: string, limit?: number): Promise<Result<Bundle[], CimplifyError>>;
386
384
  getComposites(options?: {
387
385
  limit?: number;
388
386
  }): Promise<Result<Composite[], CimplifyError>>;
389
- getComposite(id: string): Promise<Result<CompositeWithDetails, CimplifyError>>;
390
- getCompositeByProductId(productId: string): Promise<Result<CompositeWithDetails, CimplifyError>>;
391
387
  calculateCompositePrice(compositeId: string, selections: ComponentSelectionInput[], locationId?: string): Promise<Result<CompositePriceResult, CimplifyError>>;
392
388
  fetchQuote(input: FetchQuoteInput): Promise<Result<PriceQuote, CimplifyError>>;
393
389
  getQuote(quoteId: string): Promise<Result<PriceQuote, CimplifyError>>;
@@ -1,4 +1,4 @@
1
- import { N as Category, s as Product, H as AddOnWithOptions, d as Pagination, h as CimplifyError, t as ProductWithDetails, u as ProductVariant, w as VariantAxis, F as VariantAxisSelection, G as AddOn, Q as Collection, W as Bundle, _ as BundleWithDetails, a8 as Composite, a9 as CompositeWithDetails, af as ComponentSelectionInput, ag as CompositePriceResult, av as ChosenPrice, a_ as UICart, aL as Cart, aM as CartItem, b2 as CartSummary, b0 as AddToCartInput, b1 as UpdateCartItemInput, az as DiscountDetails, M as Money, C as CurrencyCode, aK as LineConfiguration, b6 as AuthorizationType, b8 as PaymentMethod, ba as InitializePaymentResult, be as SubmitAuthorizationInput, bc as PaymentStatusResponse } from './payment-D58dS_E9.mjs';
1
+ import { N as Category, s as Product, H as AddOnWithOptions, d as Pagination, h as CimplifyError, t as ProductWithDetails, u as ProductVariant, w as VariantAxis, F as VariantAxisSelection, G as AddOn, Q as Collection, W as Bundle, a8 as Composite, af as ComponentSelectionInput, ag as CompositePriceResult, av as ChosenPrice, a_ as UICart, aL as Cart, aM as CartItem, b2 as CartSummary, b0 as AddToCartInput, b1 as UpdateCartItemInput, az as DiscountDetails, M as Money, C as CurrencyCode, aK as LineConfiguration, b6 as AuthorizationType, b8 as PaymentMethod, ba as InitializePaymentResult, be as SubmitAuthorizationInput, bc as PaymentStatusResponse } from './payment-D58dS_E9.mjs';
2
2
 
3
3
  /**
4
4
  * Observability hooks for monitoring SDK behavior.
@@ -380,14 +380,10 @@ declare class CatalogueQueries {
380
380
  getCollectionProducts(collectionId: string): Promise<Result<Product[], CimplifyError>>;
381
381
  searchCollections(query: string, limit?: number): Promise<Result<Collection[], CimplifyError>>;
382
382
  getBundles(): Promise<Result<Bundle[], CimplifyError>>;
383
- getBundle(id: string): Promise<Result<BundleWithDetails, CimplifyError>>;
384
- getBundleBySlug(slug: string): Promise<Result<BundleWithDetails, CimplifyError>>;
385
383
  searchBundles(query: string, limit?: number): Promise<Result<Bundle[], CimplifyError>>;
386
384
  getComposites(options?: {
387
385
  limit?: number;
388
386
  }): Promise<Result<Composite[], CimplifyError>>;
389
- getComposite(id: string): Promise<Result<CompositeWithDetails, CimplifyError>>;
390
- getCompositeByProductId(productId: string): Promise<Result<CompositeWithDetails, CimplifyError>>;
391
387
  calculateCompositePrice(compositeId: string, selections: ComponentSelectionInput[], locationId?: string): Promise<Result<CompositePriceResult, CimplifyError>>;
392
388
  fetchQuote(input: FetchQuoteInput): Promise<Result<PriceQuote, CimplifyError>>;
393
389
  getQuote(quoteId: string): Promise<Result<PriceQuote, CimplifyError>>;
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- export { ab as AUTHORIZATION_TYPE, ag as AUTH_MUTATION, a0 as AbortablePromise, cd as AddressData, cG as AddressInfo, aQ as AmountToPay, co as AuthResponse, A as AuthService, m as AuthStatus, cI as AuthenticatedCustomer, cK as AuthenticatedData, c1 as AvailabilityCheck, c2 as AvailabilityResult, bG as AvailableSlot, bJ as Booking, bI as BookingStatus, bK as BookingWithDetails, b8 as BufferTimes, bn as Business, bB as BusinessHours, bm as BusinessPreferences, B as BusinessService, bA as BusinessSettings, bl as BusinessType, by as BusinessWithLocations, a4 as CHECKOUT_MODE, ah as CHECKOUT_MUTATION, a7 as CHECKOUT_STEP, ad as CONTACT_TYPE, bR as CancelBookingInput, bS as CancelBookingResult, b2 as CancelOrderInput, ba as CancellationPolicy, i as CartOperations, b as CatalogueQueries, aD as CatalogueResult, aE as CatalogueSnapshot, bC as CategoryInfo, bO as CheckSlotAvailabilityInput, bP as CheckSlotAvailabilityResult, cr as CheckoutAddressInfo, cO as CheckoutCartData, cN as CheckoutCartItem, ct as CheckoutCustomerInfo, N as CheckoutFormData, b0 as CheckoutInput, D as CheckoutMode, j as CheckoutOperations, H as CheckoutOrderType, J as CheckoutPaymentMethod, V as CheckoutResult, j as CheckoutService, _ as CheckoutStatus, $ as CheckoutStatusContext, K as CheckoutStep, C as CimplifyClient, a as CimplifyConfig, t as CimplifyElement, s as CimplifyElements, a3 as ContactType, c9 as CreateAddressInput, cb as CreateMobileMoneyInput, c4 as Customer, c5 as CustomerAddress, bM as CustomerBooking, bL as CustomerBookingServiceItem, c7 as CustomerLinkPreferences, c6 as CustomerMobileMoney, b7 as CustomerServicePreferences, al as DEFAULT_COUNTRY, ak as DEFAULT_CURRENCY, ac as DEVICE_TYPE, bH as DayAvailability, bh as DepositResult, a2 as DeviceType, v as ELEMENT_TYPES, E as EVENT_TYPES, cF as ElementAppearance, cR as ElementEventHandler, z as ElementEventType, x as ElementOptions, y as ElementType, cL as ElementsCheckoutData, cM as ElementsCheckoutResult, cJ as ElementsCustomerInfo, w as ElementsOptions, cf as EnrollAndLinkOrderInput, ci as EnrollAndLinkOrderResult, cc as EnrollmentData, ao as Err, aP as FeeBearerType, F as FetchQuoteInput, aN as FulfillmentLink, aM as FulfillmentStatus, aL as FulfillmentType, cv as FxQuote, cu as FxQuoteRequest, cw as FxRateResponse, q as FxService, bN as GetAvailableSlotsInput, l as GetOrdersOptions, G as GetProductsOptions, cQ as IframeToParentMessage, I as InventoryService, c3 as InventorySummary, af as LINK_MUTATION, ae as LINK_QUERY, aR as LineItem, aI as LineType, c8 as LinkData, ch as LinkEnrollResult, L as LinkService, cj as LinkSession, cg as LinkStatusResult, r as LiteBootstrap, p as LiteService, bq as Location, bk as LocationAppointment, c0 as LocationStock, bo as LocationTaxBehavior, bp as LocationTaxOverrides, bt as LocationTimeProfile, bz as LocationWithDetails, M as MESSAGE_TYPES, aa as MOBILE_MONEY_PROVIDER, ce as MobileMoneyData, cs as MobileMoneyDetails, a1 as MobileMoneyProvider, W as NextAction, aj as ORDER_MUTATION, a5 as ORDER_TYPE, cD as ObservabilityHooks, an as Ok, aS as Order, aH as OrderChannel, a$ as OrderFilter, aO as OrderFulfillmentSummary, aV as OrderGroup, aZ as OrderGroupDetails, aW as OrderGroupPayment, aU as OrderGroupPaymentState, aY as OrderGroupPaymentSummary, aT as OrderHistory, aJ as OrderLineState, aK as OrderLineStatus, a_ as OrderPaymentEvent, O as OrderQueries, aX as OrderSplitDetail, aF as OrderStatus, cE as OrderType, n as OtpResult, a6 as PAYMENT_METHOD, ai as PAYMENT_MUTATION, a8 as PAYMENT_STATE, a9 as PICKUP_TIME_TYPE, cP as ParentToIframeMessage, cH as PaymentMethodInfo, aG as PaymentState, cq as PickupTime, cp as PickupTimeType, P as PriceQuote, bc as PricingOverrides, Z as ProcessAndResolveOptions, X as ProcessCheckoutOptions, Y as ProcessCheckoutResult, b_ as ProductStock, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, f as QuoteDynamicBuckets, e as QuoteStatus, g as QuoteUiMessage, R as RefreshQuoteInput, h as RefreshQuoteResult, b3 as RefundOrderInput, b6 as ReminderMethod, b9 as ReminderSettings, cx as RequestContext, cA as RequestErrorEvent, cm as RequestOtpInput, cy as RequestStartEvent, cz as RequestSuccessEvent, bQ as RescheduleBookingInput, bT as RescheduleBookingResult, bf as ResourceAssignment, am as Result, cB as RetryEvent, cl as RevokeAllSessionsResult, ck as RevokeSessionResult, bv as Room, bd as SchedulingMetadata, bg as SchedulingResult, o as SchedulingService, S as SearchOptions, bD as Service, bU as ServiceAvailabilityParams, bV as ServiceAvailabilityResult, bw as ServiceCharge, bb as ServiceNotes, bi as ServiceScheduleRequest, b4 as ServiceStatus, cC as SessionChangeEvent, bE as Staff, be as StaffAssignment, b5 as StaffRole, bj as StaffScheduleItem, bY as Stock, bZ as StockLevel, bW as StockOwnershipType, bX as StockStatus, bx as StorefrontBootstrap, bu as Table, T as TableInfo, br as TimeRange, bs as TimeRanges, bF as TimeSlot, ca as UpdateAddressInput, b1 as UpdateOrderStatusInput, U as UpdateProfileInput, b$ as VariantStock, cn as VerifyOtpInput, aB as combine, aC as combineObject, c as createCimplifyClient, u as createElements, aq as err, av as flatMap, az as fromPromise, k as generateIdempotencyKey, aw as getOrElse, as as isErr, ar as isOk, au as mapError, at as mapResult, ap as ok, ay as toNullable, aA as tryCatch, ax as unwrap } from './client-mOiGkyoT.mjs';
1
+ export { ab as AUTHORIZATION_TYPE, ag as AUTH_MUTATION, a0 as AbortablePromise, cd as AddressData, cG as AddressInfo, aQ as AmountToPay, co as AuthResponse, A as AuthService, m as AuthStatus, cI as AuthenticatedCustomer, cK as AuthenticatedData, c1 as AvailabilityCheck, c2 as AvailabilityResult, bG as AvailableSlot, bJ as Booking, bI as BookingStatus, bK as BookingWithDetails, b8 as BufferTimes, bn as Business, bB as BusinessHours, bm as BusinessPreferences, B as BusinessService, bA as BusinessSettings, bl as BusinessType, by as BusinessWithLocations, a4 as CHECKOUT_MODE, ah as CHECKOUT_MUTATION, a7 as CHECKOUT_STEP, ad as CONTACT_TYPE, bR as CancelBookingInput, bS as CancelBookingResult, b2 as CancelOrderInput, ba as CancellationPolicy, i as CartOperations, b as CatalogueQueries, aD as CatalogueResult, aE as CatalogueSnapshot, bC as CategoryInfo, bO as CheckSlotAvailabilityInput, bP as CheckSlotAvailabilityResult, cr as CheckoutAddressInfo, cO as CheckoutCartData, cN as CheckoutCartItem, ct as CheckoutCustomerInfo, N as CheckoutFormData, b0 as CheckoutInput, D as CheckoutMode, j as CheckoutOperations, H as CheckoutOrderType, J as CheckoutPaymentMethod, V as CheckoutResult, j as CheckoutService, _ as CheckoutStatus, $ as CheckoutStatusContext, K as CheckoutStep, C as CimplifyClient, a as CimplifyConfig, t as CimplifyElement, s as CimplifyElements, a3 as ContactType, c9 as CreateAddressInput, cb as CreateMobileMoneyInput, c4 as Customer, c5 as CustomerAddress, bM as CustomerBooking, bL as CustomerBookingServiceItem, c7 as CustomerLinkPreferences, c6 as CustomerMobileMoney, b7 as CustomerServicePreferences, al as DEFAULT_COUNTRY, ak as DEFAULT_CURRENCY, ac as DEVICE_TYPE, bH as DayAvailability, bh as DepositResult, a2 as DeviceType, v as ELEMENT_TYPES, E as EVENT_TYPES, cF as ElementAppearance, cR as ElementEventHandler, z as ElementEventType, x as ElementOptions, y as ElementType, cL as ElementsCheckoutData, cM as ElementsCheckoutResult, cJ as ElementsCustomerInfo, w as ElementsOptions, cf as EnrollAndLinkOrderInput, ci as EnrollAndLinkOrderResult, cc as EnrollmentData, ao as Err, aP as FeeBearerType, F as FetchQuoteInput, aN as FulfillmentLink, aM as FulfillmentStatus, aL as FulfillmentType, cv as FxQuote, cu as FxQuoteRequest, cw as FxRateResponse, q as FxService, bN as GetAvailableSlotsInput, l as GetOrdersOptions, G as GetProductsOptions, cQ as IframeToParentMessage, I as InventoryService, c3 as InventorySummary, af as LINK_MUTATION, ae as LINK_QUERY, aR as LineItem, aI as LineType, c8 as LinkData, ch as LinkEnrollResult, L as LinkService, cj as LinkSession, cg as LinkStatusResult, r as LiteBootstrap, p as LiteService, bq as Location, bk as LocationAppointment, c0 as LocationStock, bo as LocationTaxBehavior, bp as LocationTaxOverrides, bt as LocationTimeProfile, bz as LocationWithDetails, M as MESSAGE_TYPES, aa as MOBILE_MONEY_PROVIDER, ce as MobileMoneyData, cs as MobileMoneyDetails, a1 as MobileMoneyProvider, W as NextAction, aj as ORDER_MUTATION, a5 as ORDER_TYPE, cD as ObservabilityHooks, an as Ok, aS as Order, aH as OrderChannel, a$ as OrderFilter, aO as OrderFulfillmentSummary, aV as OrderGroup, aZ as OrderGroupDetails, aW as OrderGroupPayment, aU as OrderGroupPaymentState, aY as OrderGroupPaymentSummary, aT as OrderHistory, aJ as OrderLineState, aK as OrderLineStatus, a_ as OrderPaymentEvent, O as OrderQueries, aX as OrderSplitDetail, aF as OrderStatus, cE as OrderType, n as OtpResult, a6 as PAYMENT_METHOD, ai as PAYMENT_MUTATION, a8 as PAYMENT_STATE, a9 as PICKUP_TIME_TYPE, cP as ParentToIframeMessage, cH as PaymentMethodInfo, aG as PaymentState, cq as PickupTime, cp as PickupTimeType, P as PriceQuote, bc as PricingOverrides, Z as ProcessAndResolveOptions, X as ProcessCheckoutOptions, Y as ProcessCheckoutResult, b_ as ProductStock, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, f as QuoteDynamicBuckets, e as QuoteStatus, g as QuoteUiMessage, R as RefreshQuoteInput, h as RefreshQuoteResult, b3 as RefundOrderInput, b6 as ReminderMethod, b9 as ReminderSettings, cx as RequestContext, cA as RequestErrorEvent, cm as RequestOtpInput, cy as RequestStartEvent, cz as RequestSuccessEvent, bQ as RescheduleBookingInput, bT as RescheduleBookingResult, bf as ResourceAssignment, am as Result, cB as RetryEvent, cl as RevokeAllSessionsResult, ck as RevokeSessionResult, bv as Room, bd as SchedulingMetadata, bg as SchedulingResult, o as SchedulingService, S as SearchOptions, bD as Service, bU as ServiceAvailabilityParams, bV as ServiceAvailabilityResult, bw as ServiceCharge, bb as ServiceNotes, bi as ServiceScheduleRequest, b4 as ServiceStatus, cC as SessionChangeEvent, bE as Staff, be as StaffAssignment, b5 as StaffRole, bj as StaffScheduleItem, bY as Stock, bZ as StockLevel, bW as StockOwnershipType, bX as StockStatus, bx as StorefrontBootstrap, bu as Table, T as TableInfo, br as TimeRange, bs as TimeRanges, bF as TimeSlot, ca as UpdateAddressInput, b1 as UpdateOrderStatusInput, U as UpdateProfileInput, b$ as VariantStock, cn as VerifyOtpInput, aB as combine, aC as combineObject, c as createCimplifyClient, u as createElements, aq as err, av as flatMap, az as fromPromise, k as generateIdempotencyKey, aw as getOrElse, as as isErr, ar as isOk, au as mapError, at as mapResult, ap as ok, ay as toNullable, aA as tryCatch, ax as unwrap } from './client-D4EiM667.mjs';
2
2
  export { QueryBuilder, query } from './advanced.mjs';
3
3
  import { A as ApiError } from './payment-D58dS_E9.mjs';
4
4
  export { G as AddOn, aB as AddOnDetails, aX as AddOnGroupDetails, J as AddOnOption, aW as AddOnOptionDetails, K as AddOnOptionPrice, H as AddOnWithOptions, b0 as AddToCartInput, aq as AdjustmentType, ax as AppliedDiscount, b6 as AuthorizationType, aw as BenefitType, W as Bundle, $ as BundleComponentData, a0 as BundleComponentInfo, a2 as BundleComponentVariantView, a1 as BundleComponentView, U as BundlePriceType, Y as BundleProduct, aG as BundleSelectionData, aE as BundleSelectionInput, aF as BundleStoredSelection, X as BundleSummary, _ as BundleWithDetails, aL as Cart, aC as CartAddOn, ao as CartChannel, aM as CartItem, aZ as CartItemDetails, an as CartStatus, b2 as CartSummary, aN as CartTotals, N as Category, O as CategorySummary, av as ChosenPrice, h as CimplifyError, Q as Collection, T as CollectionProduct, R as CollectionSummary, aa as ComponentGroup, ab as ComponentGroupWithComponents, ah as ComponentPriceBreakdown, af as ComponentSelectionInput, a7 as ComponentSourceType, a8 as Composite, ae as CompositeComponent, ad as CompositeComponentView, ac as CompositeGroupView, aI as CompositePriceBreakdown, ag as CompositePriceResult, a5 as CompositePricingMode, aJ as CompositeSelectionData, af as CompositeSelectionInput, aH as CompositeStoredSelection, a9 as CompositeWithDetails, b as Currency, C as CurrencyCode, r as DepositType, q as DigitalProductType, ay as DiscountBreakdown, az as DiscountDetails, aQ as DisplayAddOn, aR as DisplayAddOnOption, aO as DisplayCart, aP as DisplayCartItem, D as DisplayMode, g as ERROR_HINTS, E as ErrorCode, e as ErrorCodeType, f as ErrorHint, a6 as GroupPricingBehavior, ba as InitializePaymentResult, I as InventoryType, aK as LineConfiguration, ak as LocationProductPrice, M as Money, d as Pagination, P as PaginationParams, b9 as Payment, bd as PaymentErrorDetails, b8 as PaymentMethod, b5 as PaymentMethodType, b7 as PaymentProcessingState, b4 as PaymentProvider, bb as PaymentResponse, b3 as PaymentStatus, bc as PaymentStatusResponse, aj as Price, ar as PriceAdjustment, au as PriceDecisionPath, ai as PriceEntryType, at as PricePathTaxInfo, ap as PriceSource, s as Product, L as ProductAddOn, al as ProductAvailability, p as ProductRenderHint, am as ProductTimeProfile, o as ProductType, u as ProductVariant, z as ProductVariantValue, t as ProductWithDetails, S as SalesChannel, aA as SelectedAddOnOption, be as SubmitAuthorizationInput, as as TaxPathComponent, a_ as UICart, aS as UICartBusiness, aU as UICartCustomer, aT as UICartLocation, aV as UICartPricing, a$ as UICartResponse, b1 as UpdateCartItemInput, w as VariantAxis, F as VariantAxisSelection, y as VariantAxisValue, a4 as VariantAxisValueView, a3 as VariantAxisView, x as VariantAxisWithValues, aD as VariantDetails, aY as VariantDetailsDTO, v as VariantDisplayAttribute, B as VariantLocationAvailability, V as VariantStrategy, Z as ZERO, c as currencyCode, l as enrichError, k as getErrorHint, j as isCimplifyError, n as isRetryableError, i as isSupportedCurrency, m as money, a as moneyFromNumber } from './payment-D58dS_E9.mjs';
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { ab as AUTHORIZATION_TYPE, ag as AUTH_MUTATION, a0 as AbortablePromise, cd as AddressData, cG as AddressInfo, aQ as AmountToPay, co as AuthResponse, A as AuthService, m as AuthStatus, cI as AuthenticatedCustomer, cK as AuthenticatedData, c1 as AvailabilityCheck, c2 as AvailabilityResult, bG as AvailableSlot, bJ as Booking, bI as BookingStatus, bK as BookingWithDetails, b8 as BufferTimes, bn as Business, bB as BusinessHours, bm as BusinessPreferences, B as BusinessService, bA as BusinessSettings, bl as BusinessType, by as BusinessWithLocations, a4 as CHECKOUT_MODE, ah as CHECKOUT_MUTATION, a7 as CHECKOUT_STEP, ad as CONTACT_TYPE, bR as CancelBookingInput, bS as CancelBookingResult, b2 as CancelOrderInput, ba as CancellationPolicy, i as CartOperations, b as CatalogueQueries, aD as CatalogueResult, aE as CatalogueSnapshot, bC as CategoryInfo, bO as CheckSlotAvailabilityInput, bP as CheckSlotAvailabilityResult, cr as CheckoutAddressInfo, cO as CheckoutCartData, cN as CheckoutCartItem, ct as CheckoutCustomerInfo, N as CheckoutFormData, b0 as CheckoutInput, D as CheckoutMode, j as CheckoutOperations, H as CheckoutOrderType, J as CheckoutPaymentMethod, V as CheckoutResult, j as CheckoutService, _ as CheckoutStatus, $ as CheckoutStatusContext, K as CheckoutStep, C as CimplifyClient, a as CimplifyConfig, t as CimplifyElement, s as CimplifyElements, a3 as ContactType, c9 as CreateAddressInput, cb as CreateMobileMoneyInput, c4 as Customer, c5 as CustomerAddress, bM as CustomerBooking, bL as CustomerBookingServiceItem, c7 as CustomerLinkPreferences, c6 as CustomerMobileMoney, b7 as CustomerServicePreferences, al as DEFAULT_COUNTRY, ak as DEFAULT_CURRENCY, ac as DEVICE_TYPE, bH as DayAvailability, bh as DepositResult, a2 as DeviceType, v as ELEMENT_TYPES, E as EVENT_TYPES, cF as ElementAppearance, cR as ElementEventHandler, z as ElementEventType, x as ElementOptions, y as ElementType, cL as ElementsCheckoutData, cM as ElementsCheckoutResult, cJ as ElementsCustomerInfo, w as ElementsOptions, cf as EnrollAndLinkOrderInput, ci as EnrollAndLinkOrderResult, cc as EnrollmentData, ao as Err, aP as FeeBearerType, F as FetchQuoteInput, aN as FulfillmentLink, aM as FulfillmentStatus, aL as FulfillmentType, cv as FxQuote, cu as FxQuoteRequest, cw as FxRateResponse, q as FxService, bN as GetAvailableSlotsInput, l as GetOrdersOptions, G as GetProductsOptions, cQ as IframeToParentMessage, I as InventoryService, c3 as InventorySummary, af as LINK_MUTATION, ae as LINK_QUERY, aR as LineItem, aI as LineType, c8 as LinkData, ch as LinkEnrollResult, L as LinkService, cj as LinkSession, cg as LinkStatusResult, r as LiteBootstrap, p as LiteService, bq as Location, bk as LocationAppointment, c0 as LocationStock, bo as LocationTaxBehavior, bp as LocationTaxOverrides, bt as LocationTimeProfile, bz as LocationWithDetails, M as MESSAGE_TYPES, aa as MOBILE_MONEY_PROVIDER, ce as MobileMoneyData, cs as MobileMoneyDetails, a1 as MobileMoneyProvider, W as NextAction, aj as ORDER_MUTATION, a5 as ORDER_TYPE, cD as ObservabilityHooks, an as Ok, aS as Order, aH as OrderChannel, a$ as OrderFilter, aO as OrderFulfillmentSummary, aV as OrderGroup, aZ as OrderGroupDetails, aW as OrderGroupPayment, aU as OrderGroupPaymentState, aY as OrderGroupPaymentSummary, aT as OrderHistory, aJ as OrderLineState, aK as OrderLineStatus, a_ as OrderPaymentEvent, O as OrderQueries, aX as OrderSplitDetail, aF as OrderStatus, cE as OrderType, n as OtpResult, a6 as PAYMENT_METHOD, ai as PAYMENT_MUTATION, a8 as PAYMENT_STATE, a9 as PICKUP_TIME_TYPE, cP as ParentToIframeMessage, cH as PaymentMethodInfo, aG as PaymentState, cq as PickupTime, cp as PickupTimeType, P as PriceQuote, bc as PricingOverrides, Z as ProcessAndResolveOptions, X as ProcessCheckoutOptions, Y as ProcessCheckoutResult, b_ as ProductStock, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, f as QuoteDynamicBuckets, e as QuoteStatus, g as QuoteUiMessage, R as RefreshQuoteInput, h as RefreshQuoteResult, b3 as RefundOrderInput, b6 as ReminderMethod, b9 as ReminderSettings, cx as RequestContext, cA as RequestErrorEvent, cm as RequestOtpInput, cy as RequestStartEvent, cz as RequestSuccessEvent, bQ as RescheduleBookingInput, bT as RescheduleBookingResult, bf as ResourceAssignment, am as Result, cB as RetryEvent, cl as RevokeAllSessionsResult, ck as RevokeSessionResult, bv as Room, bd as SchedulingMetadata, bg as SchedulingResult, o as SchedulingService, S as SearchOptions, bD as Service, bU as ServiceAvailabilityParams, bV as ServiceAvailabilityResult, bw as ServiceCharge, bb as ServiceNotes, bi as ServiceScheduleRequest, b4 as ServiceStatus, cC as SessionChangeEvent, bE as Staff, be as StaffAssignment, b5 as StaffRole, bj as StaffScheduleItem, bY as Stock, bZ as StockLevel, bW as StockOwnershipType, bX as StockStatus, bx as StorefrontBootstrap, bu as Table, T as TableInfo, br as TimeRange, bs as TimeRanges, bF as TimeSlot, ca as UpdateAddressInput, b1 as UpdateOrderStatusInput, U as UpdateProfileInput, b$ as VariantStock, cn as VerifyOtpInput, aB as combine, aC as combineObject, c as createCimplifyClient, u as createElements, aq as err, av as flatMap, az as fromPromise, k as generateIdempotencyKey, aw as getOrElse, as as isErr, ar as isOk, au as mapError, at as mapResult, ap as ok, ay as toNullable, aA as tryCatch, ax as unwrap } from './client-DmDEP_yB.js';
1
+ export { ab as AUTHORIZATION_TYPE, ag as AUTH_MUTATION, a0 as AbortablePromise, cd as AddressData, cG as AddressInfo, aQ as AmountToPay, co as AuthResponse, A as AuthService, m as AuthStatus, cI as AuthenticatedCustomer, cK as AuthenticatedData, c1 as AvailabilityCheck, c2 as AvailabilityResult, bG as AvailableSlot, bJ as Booking, bI as BookingStatus, bK as BookingWithDetails, b8 as BufferTimes, bn as Business, bB as BusinessHours, bm as BusinessPreferences, B as BusinessService, bA as BusinessSettings, bl as BusinessType, by as BusinessWithLocations, a4 as CHECKOUT_MODE, ah as CHECKOUT_MUTATION, a7 as CHECKOUT_STEP, ad as CONTACT_TYPE, bR as CancelBookingInput, bS as CancelBookingResult, b2 as CancelOrderInput, ba as CancellationPolicy, i as CartOperations, b as CatalogueQueries, aD as CatalogueResult, aE as CatalogueSnapshot, bC as CategoryInfo, bO as CheckSlotAvailabilityInput, bP as CheckSlotAvailabilityResult, cr as CheckoutAddressInfo, cO as CheckoutCartData, cN as CheckoutCartItem, ct as CheckoutCustomerInfo, N as CheckoutFormData, b0 as CheckoutInput, D as CheckoutMode, j as CheckoutOperations, H as CheckoutOrderType, J as CheckoutPaymentMethod, V as CheckoutResult, j as CheckoutService, _ as CheckoutStatus, $ as CheckoutStatusContext, K as CheckoutStep, C as CimplifyClient, a as CimplifyConfig, t as CimplifyElement, s as CimplifyElements, a3 as ContactType, c9 as CreateAddressInput, cb as CreateMobileMoneyInput, c4 as Customer, c5 as CustomerAddress, bM as CustomerBooking, bL as CustomerBookingServiceItem, c7 as CustomerLinkPreferences, c6 as CustomerMobileMoney, b7 as CustomerServicePreferences, al as DEFAULT_COUNTRY, ak as DEFAULT_CURRENCY, ac as DEVICE_TYPE, bH as DayAvailability, bh as DepositResult, a2 as DeviceType, v as ELEMENT_TYPES, E as EVENT_TYPES, cF as ElementAppearance, cR as ElementEventHandler, z as ElementEventType, x as ElementOptions, y as ElementType, cL as ElementsCheckoutData, cM as ElementsCheckoutResult, cJ as ElementsCustomerInfo, w as ElementsOptions, cf as EnrollAndLinkOrderInput, ci as EnrollAndLinkOrderResult, cc as EnrollmentData, ao as Err, aP as FeeBearerType, F as FetchQuoteInput, aN as FulfillmentLink, aM as FulfillmentStatus, aL as FulfillmentType, cv as FxQuote, cu as FxQuoteRequest, cw as FxRateResponse, q as FxService, bN as GetAvailableSlotsInput, l as GetOrdersOptions, G as GetProductsOptions, cQ as IframeToParentMessage, I as InventoryService, c3 as InventorySummary, af as LINK_MUTATION, ae as LINK_QUERY, aR as LineItem, aI as LineType, c8 as LinkData, ch as LinkEnrollResult, L as LinkService, cj as LinkSession, cg as LinkStatusResult, r as LiteBootstrap, p as LiteService, bq as Location, bk as LocationAppointment, c0 as LocationStock, bo as LocationTaxBehavior, bp as LocationTaxOverrides, bt as LocationTimeProfile, bz as LocationWithDetails, M as MESSAGE_TYPES, aa as MOBILE_MONEY_PROVIDER, ce as MobileMoneyData, cs as MobileMoneyDetails, a1 as MobileMoneyProvider, W as NextAction, aj as ORDER_MUTATION, a5 as ORDER_TYPE, cD as ObservabilityHooks, an as Ok, aS as Order, aH as OrderChannel, a$ as OrderFilter, aO as OrderFulfillmentSummary, aV as OrderGroup, aZ as OrderGroupDetails, aW as OrderGroupPayment, aU as OrderGroupPaymentState, aY as OrderGroupPaymentSummary, aT as OrderHistory, aJ as OrderLineState, aK as OrderLineStatus, a_ as OrderPaymentEvent, O as OrderQueries, aX as OrderSplitDetail, aF as OrderStatus, cE as OrderType, n as OtpResult, a6 as PAYMENT_METHOD, ai as PAYMENT_MUTATION, a8 as PAYMENT_STATE, a9 as PICKUP_TIME_TYPE, cP as ParentToIframeMessage, cH as PaymentMethodInfo, aG as PaymentState, cq as PickupTime, cp as PickupTimeType, P as PriceQuote, bc as PricingOverrides, Z as ProcessAndResolveOptions, X as ProcessCheckoutOptions, Y as ProcessCheckoutResult, b_ as ProductStock, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, f as QuoteDynamicBuckets, e as QuoteStatus, g as QuoteUiMessage, R as RefreshQuoteInput, h as RefreshQuoteResult, b3 as RefundOrderInput, b6 as ReminderMethod, b9 as ReminderSettings, cx as RequestContext, cA as RequestErrorEvent, cm as RequestOtpInput, cy as RequestStartEvent, cz as RequestSuccessEvent, bQ as RescheduleBookingInput, bT as RescheduleBookingResult, bf as ResourceAssignment, am as Result, cB as RetryEvent, cl as RevokeAllSessionsResult, ck as RevokeSessionResult, bv as Room, bd as SchedulingMetadata, bg as SchedulingResult, o as SchedulingService, S as SearchOptions, bD as Service, bU as ServiceAvailabilityParams, bV as ServiceAvailabilityResult, bw as ServiceCharge, bb as ServiceNotes, bi as ServiceScheduleRequest, b4 as ServiceStatus, cC as SessionChangeEvent, bE as Staff, be as StaffAssignment, b5 as StaffRole, bj as StaffScheduleItem, bY as Stock, bZ as StockLevel, bW as StockOwnershipType, bX as StockStatus, bx as StorefrontBootstrap, bu as Table, T as TableInfo, br as TimeRange, bs as TimeRanges, bF as TimeSlot, ca as UpdateAddressInput, b1 as UpdateOrderStatusInput, U as UpdateProfileInput, b$ as VariantStock, cn as VerifyOtpInput, aB as combine, aC as combineObject, c as createCimplifyClient, u as createElements, aq as err, av as flatMap, az as fromPromise, k as generateIdempotencyKey, aw as getOrElse, as as isErr, ar as isOk, au as mapError, at as mapResult, ap as ok, ay as toNullable, aA as tryCatch, ax as unwrap } from './client-CYRL8s1S.js';
2
2
  export { QueryBuilder, query } from './advanced.js';
3
3
  import { A as ApiError } from './payment-D58dS_E9.js';
4
4
  export { G as AddOn, aB as AddOnDetails, aX as AddOnGroupDetails, J as AddOnOption, aW as AddOnOptionDetails, K as AddOnOptionPrice, H as AddOnWithOptions, b0 as AddToCartInput, aq as AdjustmentType, ax as AppliedDiscount, b6 as AuthorizationType, aw as BenefitType, W as Bundle, $ as BundleComponentData, a0 as BundleComponentInfo, a2 as BundleComponentVariantView, a1 as BundleComponentView, U as BundlePriceType, Y as BundleProduct, aG as BundleSelectionData, aE as BundleSelectionInput, aF as BundleStoredSelection, X as BundleSummary, _ as BundleWithDetails, aL as Cart, aC as CartAddOn, ao as CartChannel, aM as CartItem, aZ as CartItemDetails, an as CartStatus, b2 as CartSummary, aN as CartTotals, N as Category, O as CategorySummary, av as ChosenPrice, h as CimplifyError, Q as Collection, T as CollectionProduct, R as CollectionSummary, aa as ComponentGroup, ab as ComponentGroupWithComponents, ah as ComponentPriceBreakdown, af as ComponentSelectionInput, a7 as ComponentSourceType, a8 as Composite, ae as CompositeComponent, ad as CompositeComponentView, ac as CompositeGroupView, aI as CompositePriceBreakdown, ag as CompositePriceResult, a5 as CompositePricingMode, aJ as CompositeSelectionData, af as CompositeSelectionInput, aH as CompositeStoredSelection, a9 as CompositeWithDetails, b as Currency, C as CurrencyCode, r as DepositType, q as DigitalProductType, ay as DiscountBreakdown, az as DiscountDetails, aQ as DisplayAddOn, aR as DisplayAddOnOption, aO as DisplayCart, aP as DisplayCartItem, D as DisplayMode, g as ERROR_HINTS, E as ErrorCode, e as ErrorCodeType, f as ErrorHint, a6 as GroupPricingBehavior, ba as InitializePaymentResult, I as InventoryType, aK as LineConfiguration, ak as LocationProductPrice, M as Money, d as Pagination, P as PaginationParams, b9 as Payment, bd as PaymentErrorDetails, b8 as PaymentMethod, b5 as PaymentMethodType, b7 as PaymentProcessingState, b4 as PaymentProvider, bb as PaymentResponse, b3 as PaymentStatus, bc as PaymentStatusResponse, aj as Price, ar as PriceAdjustment, au as PriceDecisionPath, ai as PriceEntryType, at as PricePathTaxInfo, ap as PriceSource, s as Product, L as ProductAddOn, al as ProductAvailability, p as ProductRenderHint, am as ProductTimeProfile, o as ProductType, u as ProductVariant, z as ProductVariantValue, t as ProductWithDetails, S as SalesChannel, aA as SelectedAddOnOption, be as SubmitAuthorizationInput, as as TaxPathComponent, a_ as UICart, aS as UICartBusiness, aU as UICartCustomer, aT as UICartLocation, aV as UICartPricing, a$ as UICartResponse, b1 as UpdateCartItemInput, w as VariantAxis, F as VariantAxisSelection, y as VariantAxisValue, a4 as VariantAxisValueView, a3 as VariantAxisView, x as VariantAxisWithValues, aD as VariantDetails, aY as VariantDetailsDTO, v as VariantDisplayAttribute, B as VariantLocationAvailability, V as VariantStrategy, Z as ZERO, c as currencyCode, l as enrichError, k as getErrorHint, j as isCimplifyError, n as isRetryableError, i as isSupportedCurrency, m as money, a as moneyFromNumber } from './payment-D58dS_E9.js';
package/dist/index.js CHANGED
@@ -545,14 +545,6 @@ var CatalogueQueries = class {
545
545
  async getBundles() {
546
546
  return safe(this.client.get("/api/v1/catalogue/bundles"));
547
547
  }
548
- async getBundle(id) {
549
- const encodedId = encodeURIComponent(id);
550
- return safe(this.client.get(`/api/v1/catalogue/bundles/${encodedId}`));
551
- }
552
- async getBundleBySlug(slug) {
553
- const encodedSlug = encodeURIComponent(slug);
554
- return safe(this.client.get(`/api/v1/catalogue/bundles/slug/${encodedSlug}`));
555
- }
556
548
  async searchBundles(query2, limit = 20) {
557
549
  const path = withQuery("/api/v1/catalogue/bundles", { search: query2, limit });
558
550
  return safe(this.client.get(path));
@@ -561,18 +553,6 @@ var CatalogueQueries = class {
561
553
  const path = withQuery("/api/v1/catalogue/composites", { limit: options?.limit });
562
554
  return safe(this.client.get(path));
563
555
  }
564
- async getComposite(id) {
565
- const encodedId = encodeURIComponent(id);
566
- return safe(this.client.get(`/api/v1/catalogue/composites/${encodedId}`));
567
- }
568
- async getCompositeByProductId(productId) {
569
- const encodedId = encodeURIComponent(productId);
570
- return safe(
571
- this.client.get(
572
- `/api/v1/catalogue/composites/by-product/${encodedId}`
573
- )
574
- );
575
- }
576
556
  async calculateCompositePrice(compositeId, selections, locationId) {
577
557
  const encodedId = encodeURIComponent(compositeId);
578
558
  return safe(
package/dist/index.mjs CHANGED
@@ -543,14 +543,6 @@ var CatalogueQueries = class {
543
543
  async getBundles() {
544
544
  return safe(this.client.get("/api/v1/catalogue/bundles"));
545
545
  }
546
- async getBundle(id) {
547
- const encodedId = encodeURIComponent(id);
548
- return safe(this.client.get(`/api/v1/catalogue/bundles/${encodedId}`));
549
- }
550
- async getBundleBySlug(slug) {
551
- const encodedSlug = encodeURIComponent(slug);
552
- return safe(this.client.get(`/api/v1/catalogue/bundles/slug/${encodedSlug}`));
553
- }
554
546
  async searchBundles(query2, limit = 20) {
555
547
  const path = withQuery("/api/v1/catalogue/bundles", { search: query2, limit });
556
548
  return safe(this.client.get(path));
@@ -559,18 +551,6 @@ var CatalogueQueries = class {
559
551
  const path = withQuery("/api/v1/catalogue/composites", { limit: options?.limit });
560
552
  return safe(this.client.get(path));
561
553
  }
562
- async getComposite(id) {
563
- const encodedId = encodeURIComponent(id);
564
- return safe(this.client.get(`/api/v1/catalogue/composites/${encodedId}`));
565
- }
566
- async getCompositeByProductId(productId) {
567
- const encodedId = encodeURIComponent(productId);
568
- return safe(
569
- this.client.get(
570
- `/api/v1/catalogue/composites/by-product/${encodedId}`
571
- )
572
- );
573
- }
574
554
  async calculateCompositePrice(compositeId, selections, locationId) {
575
555
  const encodedId = encodeURIComponent(compositeId);
576
556
  return safe(
package/dist/react.d.mts CHANGED
@@ -1,8 +1,8 @@
1
1
  import React, { ReactNode } from 'react';
2
2
  import { A as AdSlot, a as AdPosition, e as AdContextValue } from './ads-MkGm5l1T.mjs';
3
3
  export { c as AdConfig, g as getVariantDisplayName } from './ads-MkGm5l1T.mjs';
4
- import { C as CimplifyClient, Y as ProcessCheckoutResult, _ as CheckoutStatus, $ as CheckoutStatusContext, bq as Location, bn as Business, aS as Order, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, P as PriceQuote, g as QuoteUiMessage, w as ElementsOptions, cK as AuthenticatedData, cG as AddressInfo, cH as PaymentMethodInfo, s as CimplifyElements, cM as ElementsCheckoutResult, X as ProcessCheckoutOptions } from './client-mOiGkyoT.mjs';
5
- import { s as Product, d as Pagination, h as CimplifyError, t as ProductWithDetails, N as Category, aE as BundleSelectionInput, af as ComponentSelectionInput, Q as Collection, _ as BundleWithDetails, a9 as CompositeWithDetails, ag as CompositePriceResult, C as CurrencyCode, u as ProductVariant, x as VariantAxisWithValues, M as Money, H as AddOnWithOptions } from './payment-D58dS_E9.mjs';
4
+ import { C as CimplifyClient, Y as ProcessCheckoutResult, _ as CheckoutStatus, $ as CheckoutStatusContext, bq as Location, bn as Business, aS as Order, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, P as PriceQuote, g as QuoteUiMessage, w as ElementsOptions, cK as AuthenticatedData, cG as AddressInfo, cH as PaymentMethodInfo, s as CimplifyElements, cM as ElementsCheckoutResult, X as ProcessCheckoutOptions } from './client-D4EiM667.mjs';
5
+ import { s as Product, d as Pagination, h as CimplifyError, t as ProductWithDetails, N as Category, aE as BundleSelectionInput, af as ComponentSelectionInput, Q as Collection, C as CurrencyCode, u as ProductVariant, x as VariantAxisWithValues, M as Money, H as AddOnWithOptions } from './payment-D58dS_E9.mjs';
6
6
 
7
7
  interface UserIdentity {
8
8
  uid: string;
@@ -278,34 +278,6 @@ interface UseCollectionResult {
278
278
  }
279
279
  declare function useCollection(idOrSlug: string | null | undefined, options?: UseCollectionOptions): UseCollectionResult;
280
280
 
281
- interface UseBundleOptions {
282
- client?: CimplifyClient;
283
- enabled?: boolean;
284
- }
285
- interface UseBundleResult {
286
- bundle: BundleWithDetails | null;
287
- isLoading: boolean;
288
- error: CimplifyError | null;
289
- refetch: () => Promise<void>;
290
- }
291
- declare function useBundle(idOrSlug: string | null | undefined, options?: UseBundleOptions): UseBundleResult;
292
-
293
- interface UseCompositeOptions {
294
- client?: CimplifyClient;
295
- enabled?: boolean;
296
- byProductId?: boolean;
297
- }
298
- interface UseCompositeResult {
299
- composite: CompositeWithDetails | null;
300
- isLoading: boolean;
301
- error: CimplifyError | null;
302
- refetch: () => Promise<void>;
303
- calculatePrice: (selections: ComponentSelectionInput[], locationId?: string) => Promise<CompositePriceResult | null>;
304
- priceResult: CompositePriceResult | null;
305
- isPriceLoading: boolean;
306
- }
307
- declare function useComposite(idOrProductId: string | null | undefined, options?: UseCompositeOptions): UseCompositeResult;
308
-
309
281
  interface UseSearchOptions {
310
282
  client?: CimplifyClient;
311
283
  minLength?: number;
@@ -448,50 +420,6 @@ interface AddOnSelectorProps {
448
420
  */
449
421
  declare function AddOnSelector({ addOns, selectedOptions, onOptionsChange, className, }: AddOnSelectorProps): React.ReactElement | null;
450
422
 
451
- interface CompositeSelectorProps {
452
- productId: string;
453
- onSelectionsChange: (selections: ComponentSelectionInput[]) => void;
454
- onPriceChange?: (price: CompositePriceResult | null) => void;
455
- onReady?: (ready: boolean) => void;
456
- className?: string;
457
- }
458
- /**
459
- * CompositeSelector — "build your own" product configurator.
460
- *
461
- * Renders component groups (e.g. "Choose your base", "Pick toppings") with
462
- * min/max selection constraints. Calculates real-time pricing via the SDK.
463
- */
464
- declare function CompositeSelector({ productId, onSelectionsChange, onPriceChange, onReady, className, }: CompositeSelectorProps): React.ReactElement | null;
465
-
466
- interface BundleSelectorProps {
467
- bundleIdOrSlug: string;
468
- onSelectionsChange: (selections: BundleSelectionInput[]) => void;
469
- onReady?: (ready: boolean) => void;
470
- className?: string;
471
- }
472
- /**
473
- * BundleSelector — curated product set with optional variant choices.
474
- *
475
- * Each bundle component shows the included product. If `allow_variant_choice`
476
- * is true, the customer can pick which variant they want for that slot.
477
- */
478
- declare function BundleSelector({ bundleIdOrSlug, onSelectionsChange, onReady, className, }: BundleSelectorProps): React.ReactElement | null;
479
-
480
- interface ProductCustomizerProps {
481
- product: ProductWithDetails;
482
- onAddToCart?: (product: ProductWithDetails, quantity: number, options: AddToCartOptions) => void | Promise<void>;
483
- className?: string;
484
- }
485
- /**
486
- * ProductCustomizer — full product customization + add-to-cart flow.
487
- *
488
- * Auto-detects product type and routes to CompositeSelector / BundleSelector /
489
- * VariantSelector + AddOnSelector. Ships a built-in "Add to Cart" button with
490
- * QuantitySelector. When `onAddToCart` is provided it calls that instead of
491
- * using the SDK cart (escape hatch for custom logic like toasts).
492
- */
493
- declare function ProductCustomizer({ product, onAddToCart, className, }: ProductCustomizerProps): React.ReactElement;
494
-
495
423
  interface ProductImageGalleryProps {
496
424
  images: string[];
497
425
  productName: string;
@@ -520,4 +448,4 @@ interface CartSummaryProps {
520
448
  */
521
449
  declare function CartSummary({ onCheckout, onItemRemove, onQuantityChange, emptyMessage, className, }: CartSummaryProps): React.ReactElement;
522
450
 
523
- export { Ad, AdPosition, type AdProps, AdProvider, AdSlot, AddOnSelector, type AddOnSelectorProps, type AddToCartOptions, AddressElement, AuthElement, BundleSelector, type BundleSelectorProps, CartSummary, type CartSummaryProps, CimplifyCheckout, type CimplifyCheckoutProps, type CimplifyContextValue, CimplifyProvider, type CimplifyProviderProps, CompositeSelector, type CompositeSelectorProps, ElementsProvider, PaymentElement, Price, type PriceProps, ProductCustomizer, type ProductCustomizerProps, ProductImageGallery, type ProductImageGalleryProps, QuantitySelector, type QuantitySelectorProps, type UseBundleOptions, type UseBundleResult, type UseCartItem, type UseCartOptions, type UseCartResult, type UseCategoriesOptions, type UseCategoriesResult, type UseCollectionOptions, type UseCollectionResult, type UseCollectionsOptions, type UseCollectionsResult, type UseCompositeOptions, type UseCompositeResult, type UseLocationsOptions, type UseLocationsResult, type UseOrderOptions, type UseOrderResult, type UseProductOptions, type UseProductResult, type UseProductsOptions, type UseProductsResult, type UseQuoteInput, type UseQuoteOptions, type UseQuoteResult, type UseSearchOptions, type UseSearchResult, VariantSelector, type VariantSelectorProps, useAds, useBundle, useCart, useCategories, useCheckout, useCimplify, useCollection, useCollections, useComposite, useElements, useElementsReady, useLocations, useOptionalCimplify, useOrder, useProduct, useProducts, useQuote, useSearch };
451
+ export { Ad, AdPosition, type AdProps, AdProvider, AdSlot, AddOnSelector, type AddOnSelectorProps, type AddToCartOptions, AddressElement, AuthElement, CartSummary, type CartSummaryProps, CimplifyCheckout, type CimplifyCheckoutProps, type CimplifyContextValue, CimplifyProvider, type CimplifyProviderProps, ElementsProvider, PaymentElement, Price, type PriceProps, ProductImageGallery, type ProductImageGalleryProps, QuantitySelector, type QuantitySelectorProps, type UseCartItem, type UseCartOptions, type UseCartResult, type UseCategoriesOptions, type UseCategoriesResult, type UseCollectionOptions, type UseCollectionResult, type UseCollectionsOptions, type UseCollectionsResult, type UseLocationsOptions, type UseLocationsResult, type UseOrderOptions, type UseOrderResult, type UseProductOptions, type UseProductResult, type UseProductsOptions, type UseProductsResult, type UseQuoteInput, type UseQuoteOptions, type UseQuoteResult, type UseSearchOptions, type UseSearchResult, VariantSelector, type VariantSelectorProps, useAds, useCart, useCategories, useCheckout, useCimplify, useCollection, useCollections, useElements, useElementsReady, useLocations, useOptionalCimplify, useOrder, useProduct, useProducts, useQuote, useSearch };
package/dist/react.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import React, { ReactNode } from 'react';
2
2
  import { A as AdSlot, a as AdPosition, e as AdContextValue } from './ads-MkGm5l1T.js';
3
3
  export { c as AdConfig, g as getVariantDisplayName } from './ads-MkGm5l1T.js';
4
- import { C as CimplifyClient, Y as ProcessCheckoutResult, _ as CheckoutStatus, $ as CheckoutStatusContext, bq as Location, bn as Business, aS as Order, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, P as PriceQuote, g as QuoteUiMessage, w as ElementsOptions, cK as AuthenticatedData, cG as AddressInfo, cH as PaymentMethodInfo, s as CimplifyElements, cM as ElementsCheckoutResult, X as ProcessCheckoutOptions } from './client-DmDEP_yB.js';
5
- import { s as Product, d as Pagination, h as CimplifyError, t as ProductWithDetails, N as Category, aE as BundleSelectionInput, af as ComponentSelectionInput, Q as Collection, _ as BundleWithDetails, a9 as CompositeWithDetails, ag as CompositePriceResult, C as CurrencyCode, u as ProductVariant, x as VariantAxisWithValues, M as Money, H as AddOnWithOptions } from './payment-D58dS_E9.js';
4
+ import { C as CimplifyClient, Y as ProcessCheckoutResult, _ as CheckoutStatus, $ as CheckoutStatusContext, bq as Location, bn as Business, aS as Order, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, P as PriceQuote, g as QuoteUiMessage, w as ElementsOptions, cK as AuthenticatedData, cG as AddressInfo, cH as PaymentMethodInfo, s as CimplifyElements, cM as ElementsCheckoutResult, X as ProcessCheckoutOptions } from './client-CYRL8s1S.js';
5
+ import { s as Product, d as Pagination, h as CimplifyError, t as ProductWithDetails, N as Category, aE as BundleSelectionInput, af as ComponentSelectionInput, Q as Collection, C as CurrencyCode, u as ProductVariant, x as VariantAxisWithValues, M as Money, H as AddOnWithOptions } from './payment-D58dS_E9.js';
6
6
 
7
7
  interface UserIdentity {
8
8
  uid: string;
@@ -278,34 +278,6 @@ interface UseCollectionResult {
278
278
  }
279
279
  declare function useCollection(idOrSlug: string | null | undefined, options?: UseCollectionOptions): UseCollectionResult;
280
280
 
281
- interface UseBundleOptions {
282
- client?: CimplifyClient;
283
- enabled?: boolean;
284
- }
285
- interface UseBundleResult {
286
- bundle: BundleWithDetails | null;
287
- isLoading: boolean;
288
- error: CimplifyError | null;
289
- refetch: () => Promise<void>;
290
- }
291
- declare function useBundle(idOrSlug: string | null | undefined, options?: UseBundleOptions): UseBundleResult;
292
-
293
- interface UseCompositeOptions {
294
- client?: CimplifyClient;
295
- enabled?: boolean;
296
- byProductId?: boolean;
297
- }
298
- interface UseCompositeResult {
299
- composite: CompositeWithDetails | null;
300
- isLoading: boolean;
301
- error: CimplifyError | null;
302
- refetch: () => Promise<void>;
303
- calculatePrice: (selections: ComponentSelectionInput[], locationId?: string) => Promise<CompositePriceResult | null>;
304
- priceResult: CompositePriceResult | null;
305
- isPriceLoading: boolean;
306
- }
307
- declare function useComposite(idOrProductId: string | null | undefined, options?: UseCompositeOptions): UseCompositeResult;
308
-
309
281
  interface UseSearchOptions {
310
282
  client?: CimplifyClient;
311
283
  minLength?: number;
@@ -448,50 +420,6 @@ interface AddOnSelectorProps {
448
420
  */
449
421
  declare function AddOnSelector({ addOns, selectedOptions, onOptionsChange, className, }: AddOnSelectorProps): React.ReactElement | null;
450
422
 
451
- interface CompositeSelectorProps {
452
- productId: string;
453
- onSelectionsChange: (selections: ComponentSelectionInput[]) => void;
454
- onPriceChange?: (price: CompositePriceResult | null) => void;
455
- onReady?: (ready: boolean) => void;
456
- className?: string;
457
- }
458
- /**
459
- * CompositeSelector — "build your own" product configurator.
460
- *
461
- * Renders component groups (e.g. "Choose your base", "Pick toppings") with
462
- * min/max selection constraints. Calculates real-time pricing via the SDK.
463
- */
464
- declare function CompositeSelector({ productId, onSelectionsChange, onPriceChange, onReady, className, }: CompositeSelectorProps): React.ReactElement | null;
465
-
466
- interface BundleSelectorProps {
467
- bundleIdOrSlug: string;
468
- onSelectionsChange: (selections: BundleSelectionInput[]) => void;
469
- onReady?: (ready: boolean) => void;
470
- className?: string;
471
- }
472
- /**
473
- * BundleSelector — curated product set with optional variant choices.
474
- *
475
- * Each bundle component shows the included product. If `allow_variant_choice`
476
- * is true, the customer can pick which variant they want for that slot.
477
- */
478
- declare function BundleSelector({ bundleIdOrSlug, onSelectionsChange, onReady, className, }: BundleSelectorProps): React.ReactElement | null;
479
-
480
- interface ProductCustomizerProps {
481
- product: ProductWithDetails;
482
- onAddToCart?: (product: ProductWithDetails, quantity: number, options: AddToCartOptions) => void | Promise<void>;
483
- className?: string;
484
- }
485
- /**
486
- * ProductCustomizer — full product customization + add-to-cart flow.
487
- *
488
- * Auto-detects product type and routes to CompositeSelector / BundleSelector /
489
- * VariantSelector + AddOnSelector. Ships a built-in "Add to Cart" button with
490
- * QuantitySelector. When `onAddToCart` is provided it calls that instead of
491
- * using the SDK cart (escape hatch for custom logic like toasts).
492
- */
493
- declare function ProductCustomizer({ product, onAddToCart, className, }: ProductCustomizerProps): React.ReactElement;
494
-
495
423
  interface ProductImageGalleryProps {
496
424
  images: string[];
497
425
  productName: string;
@@ -520,4 +448,4 @@ interface CartSummaryProps {
520
448
  */
521
449
  declare function CartSummary({ onCheckout, onItemRemove, onQuantityChange, emptyMessage, className, }: CartSummaryProps): React.ReactElement;
522
450
 
523
- export { Ad, AdPosition, type AdProps, AdProvider, AdSlot, AddOnSelector, type AddOnSelectorProps, type AddToCartOptions, AddressElement, AuthElement, BundleSelector, type BundleSelectorProps, CartSummary, type CartSummaryProps, CimplifyCheckout, type CimplifyCheckoutProps, type CimplifyContextValue, CimplifyProvider, type CimplifyProviderProps, CompositeSelector, type CompositeSelectorProps, ElementsProvider, PaymentElement, Price, type PriceProps, ProductCustomizer, type ProductCustomizerProps, ProductImageGallery, type ProductImageGalleryProps, QuantitySelector, type QuantitySelectorProps, type UseBundleOptions, type UseBundleResult, type UseCartItem, type UseCartOptions, type UseCartResult, type UseCategoriesOptions, type UseCategoriesResult, type UseCollectionOptions, type UseCollectionResult, type UseCollectionsOptions, type UseCollectionsResult, type UseCompositeOptions, type UseCompositeResult, type UseLocationsOptions, type UseLocationsResult, type UseOrderOptions, type UseOrderResult, type UseProductOptions, type UseProductResult, type UseProductsOptions, type UseProductsResult, type UseQuoteInput, type UseQuoteOptions, type UseQuoteResult, type UseSearchOptions, type UseSearchResult, VariantSelector, type VariantSelectorProps, useAds, useBundle, useCart, useCategories, useCheckout, useCimplify, useCollection, useCollections, useComposite, useElements, useElementsReady, useLocations, useOptionalCimplify, useOrder, useProduct, useProducts, useQuote, useSearch };
451
+ export { Ad, AdPosition, type AdProps, AdProvider, AdSlot, AddOnSelector, type AddOnSelectorProps, type AddToCartOptions, AddressElement, AuthElement, CartSummary, type CartSummaryProps, CimplifyCheckout, type CimplifyCheckoutProps, type CimplifyContextValue, CimplifyProvider, type CimplifyProviderProps, ElementsProvider, PaymentElement, Price, type PriceProps, ProductImageGallery, type ProductImageGalleryProps, QuantitySelector, type QuantitySelectorProps, type UseCartItem, type UseCartOptions, type UseCartResult, type UseCategoriesOptions, type UseCategoriesResult, type UseCollectionOptions, type UseCollectionResult, type UseCollectionsOptions, type UseCollectionsResult, type UseLocationsOptions, type UseLocationsResult, type UseOrderOptions, type UseOrderResult, type UseProductOptions, type UseProductResult, type UseProductsOptions, type UseProductsResult, type UseQuoteInput, type UseQuoteOptions, type UseQuoteResult, type UseSearchOptions, type UseSearchResult, VariantSelector, type VariantSelectorProps, useAds, useCart, useCategories, useCheckout, useCimplify, useCollection, useCollections, useElements, useElementsReady, useLocations, useOptionalCimplify, useOrder, useProduct, useProducts, useQuote, useSearch };