@cimplify/sdk 0.104.0 → 0.105.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.
Files changed (71) hide show
  1. package/dist/advanced.d.mts +3 -7
  2. package/dist/advanced.d.ts +3 -7
  3. package/dist/advanced.js +23 -23
  4. package/dist/advanced.mjs +4 -4
  5. package/dist/{client-BuLcOWLv.d.ts → catalogue-D1jkpGcr.d.ts} +415 -763
  6. package/dist/{client-D5AoobFc.d.mts → catalogue-DjutZ0FC.d.mts} +415 -763
  7. package/dist/{payment-g0HFkEDU.d.mts → checkout-XoV4HNg2.d.mts} +4156 -1498
  8. package/dist/{payment-g0HFkEDU.d.ts → checkout-XoV4HNg2.d.ts} +4156 -1498
  9. package/dist/{chunk-GOHSXBKW.mjs → chunk-33VCYWVL.mjs} +25 -1
  10. package/dist/{chunk-OKADBZAI.mjs → chunk-37ZZCE7P.mjs} +808 -574
  11. package/dist/{chunk-5BDYDZ4U.js → chunk-3IMPJEUI.js} +892 -657
  12. package/dist/{chunk-YVAEY3VC.js → chunk-7PMMV5X4.js} +1040 -364
  13. package/dist/{chunk-H3RATH4B.mjs → chunk-AVXA4F6G.js} +293 -2
  14. package/dist/{chunk-CNN7Z2IP.js → chunk-EV2EVOYS.js} +27 -0
  15. package/dist/{chunk-4BKOKHE3.js → chunk-NJYR6GGM.mjs} +244 -19
  16. package/dist/{chunk-DYIAX3WI.mjs → chunk-NYDVVNZI.mjs} +11 -2
  17. package/dist/{chunk-E4K2VQDD.js → chunk-PDTXSUHZ.js} +559 -16
  18. package/dist/{chunk-2WPVUIHX.mjs → chunk-Q5HX7LVE.mjs} +1036 -360
  19. package/dist/{chunk-5RT4HYMP.mjs → chunk-TINYV5E2.mjs} +542 -15
  20. package/dist/{chunk-7PDEX54K.js → chunk-UYFTOIFW.js} +13 -3
  21. package/dist/{chunk-OCCNG6MO.mjs → chunk-X7RPMALQ.mjs} +1310 -722
  22. package/dist/{chunk-IQFFSKE2.js → chunk-XHVQDEVO.js} +1345 -746
  23. package/dist/{client-BVNWjk6W.d.ts → client-BBZj15JJ.d.ts} +2 -2
  24. package/dist/{client-fM716k7G.d.mts → client-CZ8MjJ_o.d.mts} +2 -2
  25. package/dist/index-CZjNWbQf.d.ts +8 -0
  26. package/dist/index-DNxWfRHF.d.mts +8 -0
  27. package/dist/{index-BtcoqrY1.d.ts → index-DRMBo26v.d.mts} +9 -4
  28. package/dist/{index-D7Tf3v7c.d.mts → index-DweR60Cv.d.ts} +9 -4
  29. package/dist/index.d.mts +31 -14
  30. package/dist/index.d.ts +31 -14
  31. package/dist/index.js +325 -133
  32. package/dist/index.mjs +6 -6
  33. package/dist/mock/cli.mjs +1450 -386
  34. package/dist/mock/library.js +1176 -352
  35. package/dist/mock/library.mjs +1176 -352
  36. package/dist/mock/msw.js +1176 -352
  37. package/dist/mock/msw.mjs +1176 -352
  38. package/dist/{price-BLIeAb8K.d.ts → price-CUGIYRtD.d.mts} +1 -1
  39. package/dist/{price-Czq_cTC_.d.mts → price-De-sxcuj.d.ts} +1 -1
  40. package/dist/react.d.mts +10 -5
  41. package/dist/react.d.ts +10 -5
  42. package/dist/react.js +227 -197
  43. package/dist/react.mjs +90 -60
  44. package/dist/{server-DKK_D-PP.d.ts → server-Byr4d0hL.d.mts} +31 -57
  45. package/dist/{server-BkVhOIwn.d.mts → server-C_RIDnHU.d.ts} +31 -57
  46. package/dist/server.d.mts +3 -4
  47. package/dist/server.d.ts +3 -4
  48. package/dist/server.js +11 -11
  49. package/dist/server.mjs +5 -5
  50. package/dist/styles.css +2 -2
  51. package/dist/testing/msw.d.mts +2 -2
  52. package/dist/testing/msw.d.ts +2 -2
  53. package/dist/testing/msw.js +4 -4
  54. package/dist/testing/msw.mjs +3 -3
  55. package/dist/testing/suite.d.mts +5 -6
  56. package/dist/testing/suite.d.ts +5 -6
  57. package/dist/testing/suite.js +29 -28
  58. package/dist/testing/suite.mjs +10 -9
  59. package/dist/testing.d.mts +2478 -14
  60. package/dist/testing.d.ts +2478 -14
  61. package/dist/testing.js +167 -89
  62. package/dist/testing.mjs +24 -10
  63. package/dist/utils.d.mts +3 -4
  64. package/dist/utils.d.ts +3 -4
  65. package/dist/utils.js +35 -31
  66. package/dist/utils.mjs +2 -2
  67. package/package.json +9 -9
  68. package/registry/order-history.json +1 -1
  69. package/registry/order-summary.json +1 -1
  70. package/dist/link-D9iSVxt5.d.mts +0 -308
  71. package/dist/link-D9iSVxt5.d.ts +0 -308
@@ -1,4 +1,4 @@
1
- import { af as CurrencyCode, W as ChosenPrice, bz as SaleInfo, bW as UpcomingSale } from './payment-g0HFkEDU.js';
1
+ import { C as CurrencyCode, a as ChosenPrice, S as SaleInfo, U as UpcomingSale } from './checkout-XoV4HNg2.mjs';
2
2
 
3
3
  interface ProductWithPrice {
4
4
  price_info?: ChosenPrice;
@@ -1,4 +1,4 @@
1
- import { af as CurrencyCode, W as ChosenPrice, bz as SaleInfo, bW as UpcomingSale } from './payment-g0HFkEDU.mjs';
1
+ import { C as CurrencyCode, a as ChosenPrice, S as SaleInfo, U as UpcomingSale } from './checkout-XoV4HNg2.js';
2
2
 
3
3
  interface ProductWithPrice {
4
4
  price_info?: ChosenPrice;
package/dist/react.d.mts CHANGED
@@ -2,13 +2,12 @@ import * as React$1 from 'react';
2
2
  import React__default, { ReactNode, PointerEvent, MouseEvent } from 'react';
3
3
  import { d as AdSlot, c as AdPosition, a as AdContextValue, S as SignInOptions } from './sign-in-DQlIdqsi.mjs';
4
4
  export { A as AdConfig, g as getVariantDisplayName } from './sign-in-DQlIdqsi.mjs';
5
- import { ac as CimplifyClient, bP as OrderType, c8 as ProcessCheckoutResult, a9 as CheckoutStatus, aa as CheckoutStatusContext, aP as EnrichedOrderItem, aO as EnrichedOrder, t as Business, bh as Location, cp as ReorderResult, bN as OrderStatus, bs as Order, ca as QuoteBundleSelectionInput, cb as QuoteCompositeSelectionInput, c4 as PriceQuote, ce as QuoteUiMessage, cI as Service, o as AvailableSlot, am as DayAvailability, aj as CustomerBooking, E as CancelBookingResult, d as ActivityStateResponse, cR as SessionMessage, a as ActivityRecommendation, ao as DeliveryFeeResponse, as as DeliveryOptionsResponse, b0 as FxRateResponse, c_ as StoreCreditBalance, d0 as StorefrontBootstrap, U as ChatWidgetStarter, Q as ChatMessage, T as ChatUploadAttachment, e as AddressInfo, j as AuthenticatedData, aN as ElementsOptions, b_ as PaymentMethodInfo, aL as ElementsCheckoutResult, c7 as ProcessCheckoutOptions, af as CimplifyElements, N as ChatAttachment, ba as LineItem, cU as Staff, cD as Room, S as ChatReplyContext } from './client-D5AoobFc.mjs';
5
+ import { C as CimplifyClient, aj as EnrichedOrderItem, ai as EnrichedOrder, u as Business, aN as Location, bQ as ReorderResult, be as OrderStatus, aV as Order, bC as QuoteBundleSelectionInput, bD as QuoteCompositeSelectionInput, bs as PriceQuote, bG as QuoteUiMessage, c8 as Service, p as AvailableSlot, a8 as DayAvailability, a5 as CustomerBooking, F as CancelBookingResult, h as ActivityStateResponse, ci as SessionMessage, A as ActivityRecommendation, aa as DeliveryFeeResponse, ae as DeliveryOptionsResponse, aw as FxRateResponse, cr as StoreCreditBalance, ct as StorefrontBootstrap, W as ChatWidgetStarter, T as ChatMessage, V as ChatUploadAttachment, a1 as CimplifyElements, O as ChatAttachment, aG as LineItem, cl as Staff, c2 as Room, U as ChatReplyContext } from './catalogue-DjutZ0FC.mjs';
6
+ import { g as CheckoutTermsView, cP as OrderType, dK as ProcessCheckoutResult, aW as CheckoutStatus, aX as CheckoutStatusContext, C as CurrencyCode, P as Product, dd as Pagination, c as CimplifyError, e as ProductWithDetails, b as Category, cH as Money, a as ChosenPrice, a1 as BundleSelectionInput, b5 as ComponentSelectionInput, a0 as BundleSelectionData, be as CompositeSelectionData, d as Collection, dT as ProductTaxonomy, eI as TaxonomyWithChildren, dU as ProductTimeProfile, bx as Deal, dP as ProductDealInfo, bH as DiscountValidation, a3 as BundleSummary, bc as CompositePriceResult, eD as SubscriptionWithDetails, eC as SubscriptionStatus, ez as Subscription, bl as CustomAttributeDefinition, dY as PropertyFacet, dO as ProductBillingPlan, f0 as VariantView, eW as VariantAxisWithValues, w as AddressInfo, J as AuthenticatedData, c3 as ElementsOptions, dn as PaymentMethodInfo, c1 as ElementsCheckoutResult, dJ as ProcessCheckoutOptions, s as AddOnWithOptions, Z as BundleComponentView, _ as BundlePriceType, ba as CompositeGroupView, bK as DisplayCart, dQ as ProductInputField, x as AddressValue, S as SaleInfo, U as UpcomingSale, D as DurationUnit, R as BoundaryKind, er as SchedulingMode, bz as DepositType, bm as CustomAttributeValue, dR as ProductProperty, eh as QuantityPricingTier } from './checkout-XoV4HNg2.mjs';
6
7
  import * as react_jsx_runtime from 'react/jsx-runtime';
7
- import { af as CurrencyCode, be as Product, aW as Pagination, X as CimplifyError, bs as ProductWithDetails, U as Category, aU as Money, W as ChosenPrice, G as BundleSelectionInput, a3 as ComponentSelectionInput, F as BundleSelectionData, ac as CompositeSelectionData, Y as Collection, bn as ProductTaxonomy, bQ as TaxonomyWithChildren, bo as ProductTimeProfile, al as Deal, bj as ProductDealInfo, au as DiscountValidation, I as BundleSummary, aa as CompositePriceResult, bK as SubscriptionWithDetails, bJ as SubscriptionStatus, bG as Subscription, ag as CustomAttributeDefinition, bt as PropertyFacet, bi as ProductBillingPlan, c7 as VariantView, c1 as VariantAxisWithValues, f as AddOnWithOptions, C as BundleComponentView, D as BundlePriceType, a8 as CompositeGroupView, ax as DisplayCart, bk as ProductInputField, i as AddressValue, bz as SaleInfo, bW as UpcomingSale, aA as DurationUnit, v as BoundaryKind, bB as SchedulingMode, an as DepositType, ah as CustomAttributeValue, bl as ProductProperty, bv as QuantityPricingTier } from './payment-g0HFkEDU.mjs';
8
- import { P as ProductWithPrice } from './price-Czq_cTC_.mjs';
8
+ import { P as ProductWithPrice } from './price-CUGIYRtD.mjs';
9
9
  import { ClassValue } from 'clsx';
10
10
  import { Matcher } from 'react-day-picker';
11
- import './link-D9iSVxt5.mjs';
12
11
 
13
12
  interface UserIdentity {
14
13
  uid: string;
@@ -60,6 +59,12 @@ interface CimplifyCheckoutProps {
60
59
  client: CimplifyClient;
61
60
  businessId?: string;
62
61
  cartId?: string;
62
+ /** Confirm this hosted/durable intent instead of minting a new cart intent. */
63
+ intentId?: string;
64
+ /** Bind hosted calls to the checkout-session owner rather than the API session. */
65
+ hostedSessionId?: string;
66
+ /** Initial render hint; server authority is re-read before confirmation. */
67
+ initialTerms?: CheckoutTermsView;
63
68
  locationId?: string;
64
69
  linkUrl?: string;
65
70
  orderTypes?: CheckoutOrderType[];
@@ -82,7 +87,7 @@ interface CimplifyCheckoutProps {
82
87
  };
83
88
  className?: string;
84
89
  }
85
- declare function CimplifyCheckout({ client, businessId, cartId, locationId, linkUrl, orderTypes, defaultOrderType, submitLabel, enrollInLink, onComplete, onError, onStatusChange, appearance, className, }: CimplifyCheckoutProps): React__default.ReactElement;
90
+ declare function CimplifyCheckout({ client, businessId, cartId, intentId, hostedSessionId, initialTerms, locationId, linkUrl, orderTypes, defaultOrderType, submitLabel, enrollInLink, onComplete, onError, onStatusChange, appearance, className, }: CimplifyCheckoutProps): React__default.ReactElement;
86
91
 
87
92
  interface NavItem {
88
93
  label: string;
package/dist/react.d.ts CHANGED
@@ -2,13 +2,12 @@ import * as React$1 from 'react';
2
2
  import React__default, { ReactNode, PointerEvent, MouseEvent } from 'react';
3
3
  import { d as AdSlot, c as AdPosition, a as AdContextValue, S as SignInOptions } from './sign-in-DQlIdqsi.js';
4
4
  export { A as AdConfig, g as getVariantDisplayName } from './sign-in-DQlIdqsi.js';
5
- import { ac as CimplifyClient, bP as OrderType, c8 as ProcessCheckoutResult, a9 as CheckoutStatus, aa as CheckoutStatusContext, aP as EnrichedOrderItem, aO as EnrichedOrder, t as Business, bh as Location, cp as ReorderResult, bN as OrderStatus, bs as Order, ca as QuoteBundleSelectionInput, cb as QuoteCompositeSelectionInput, c4 as PriceQuote, ce as QuoteUiMessage, cI as Service, o as AvailableSlot, am as DayAvailability, aj as CustomerBooking, E as CancelBookingResult, d as ActivityStateResponse, cR as SessionMessage, a as ActivityRecommendation, ao as DeliveryFeeResponse, as as DeliveryOptionsResponse, b0 as FxRateResponse, c_ as StoreCreditBalance, d0 as StorefrontBootstrap, U as ChatWidgetStarter, Q as ChatMessage, T as ChatUploadAttachment, e as AddressInfo, j as AuthenticatedData, aN as ElementsOptions, b_ as PaymentMethodInfo, aL as ElementsCheckoutResult, c7 as ProcessCheckoutOptions, af as CimplifyElements, N as ChatAttachment, ba as LineItem, cU as Staff, cD as Room, S as ChatReplyContext } from './client-BuLcOWLv.js';
5
+ import { C as CimplifyClient, aj as EnrichedOrderItem, ai as EnrichedOrder, u as Business, aN as Location, bQ as ReorderResult, be as OrderStatus, aV as Order, bC as QuoteBundleSelectionInput, bD as QuoteCompositeSelectionInput, bs as PriceQuote, bG as QuoteUiMessage, c8 as Service, p as AvailableSlot, a8 as DayAvailability, a5 as CustomerBooking, F as CancelBookingResult, h as ActivityStateResponse, ci as SessionMessage, A as ActivityRecommendation, aa as DeliveryFeeResponse, ae as DeliveryOptionsResponse, aw as FxRateResponse, cr as StoreCreditBalance, ct as StorefrontBootstrap, W as ChatWidgetStarter, T as ChatMessage, V as ChatUploadAttachment, a1 as CimplifyElements, O as ChatAttachment, aG as LineItem, cl as Staff, c2 as Room, U as ChatReplyContext } from './catalogue-D1jkpGcr.js';
6
+ import { g as CheckoutTermsView, cP as OrderType, dK as ProcessCheckoutResult, aW as CheckoutStatus, aX as CheckoutStatusContext, C as CurrencyCode, P as Product, dd as Pagination, c as CimplifyError, e as ProductWithDetails, b as Category, cH as Money, a as ChosenPrice, a1 as BundleSelectionInput, b5 as ComponentSelectionInput, a0 as BundleSelectionData, be as CompositeSelectionData, d as Collection, dT as ProductTaxonomy, eI as TaxonomyWithChildren, dU as ProductTimeProfile, bx as Deal, dP as ProductDealInfo, bH as DiscountValidation, a3 as BundleSummary, bc as CompositePriceResult, eD as SubscriptionWithDetails, eC as SubscriptionStatus, ez as Subscription, bl as CustomAttributeDefinition, dY as PropertyFacet, dO as ProductBillingPlan, f0 as VariantView, eW as VariantAxisWithValues, w as AddressInfo, J as AuthenticatedData, c3 as ElementsOptions, dn as PaymentMethodInfo, c1 as ElementsCheckoutResult, dJ as ProcessCheckoutOptions, s as AddOnWithOptions, Z as BundleComponentView, _ as BundlePriceType, ba as CompositeGroupView, bK as DisplayCart, dQ as ProductInputField, x as AddressValue, S as SaleInfo, U as UpcomingSale, D as DurationUnit, R as BoundaryKind, er as SchedulingMode, bz as DepositType, bm as CustomAttributeValue, dR as ProductProperty, eh as QuantityPricingTier } from './checkout-XoV4HNg2.js';
6
7
  import * as react_jsx_runtime from 'react/jsx-runtime';
7
- import { af as CurrencyCode, be as Product, aW as Pagination, X as CimplifyError, bs as ProductWithDetails, U as Category, aU as Money, W as ChosenPrice, G as BundleSelectionInput, a3 as ComponentSelectionInput, F as BundleSelectionData, ac as CompositeSelectionData, Y as Collection, bn as ProductTaxonomy, bQ as TaxonomyWithChildren, bo as ProductTimeProfile, al as Deal, bj as ProductDealInfo, au as DiscountValidation, I as BundleSummary, aa as CompositePriceResult, bK as SubscriptionWithDetails, bJ as SubscriptionStatus, bG as Subscription, ag as CustomAttributeDefinition, bt as PropertyFacet, bi as ProductBillingPlan, c7 as VariantView, c1 as VariantAxisWithValues, f as AddOnWithOptions, C as BundleComponentView, D as BundlePriceType, a8 as CompositeGroupView, ax as DisplayCart, bk as ProductInputField, i as AddressValue, bz as SaleInfo, bW as UpcomingSale, aA as DurationUnit, v as BoundaryKind, bB as SchedulingMode, an as DepositType, ah as CustomAttributeValue, bl as ProductProperty, bv as QuantityPricingTier } from './payment-g0HFkEDU.js';
8
- import { P as ProductWithPrice } from './price-BLIeAb8K.js';
8
+ import { P as ProductWithPrice } from './price-De-sxcuj.js';
9
9
  import { ClassValue } from 'clsx';
10
10
  import { Matcher } from 'react-day-picker';
11
- import './link-D9iSVxt5.js';
12
11
 
13
12
  interface UserIdentity {
14
13
  uid: string;
@@ -60,6 +59,12 @@ interface CimplifyCheckoutProps {
60
59
  client: CimplifyClient;
61
60
  businessId?: string;
62
61
  cartId?: string;
62
+ /** Confirm this hosted/durable intent instead of minting a new cart intent. */
63
+ intentId?: string;
64
+ /** Bind hosted calls to the checkout-session owner rather than the API session. */
65
+ hostedSessionId?: string;
66
+ /** Initial render hint; server authority is re-read before confirmation. */
67
+ initialTerms?: CheckoutTermsView;
63
68
  locationId?: string;
64
69
  linkUrl?: string;
65
70
  orderTypes?: CheckoutOrderType[];
@@ -82,7 +87,7 @@ interface CimplifyCheckoutProps {
82
87
  };
83
88
  className?: string;
84
89
  }
85
- declare function CimplifyCheckout({ client, businessId, cartId, locationId, linkUrl, orderTypes, defaultOrderType, submitLabel, enrollInLink, onComplete, onError, onStatusChange, appearance, className, }: CimplifyCheckoutProps): React__default.ReactElement;
90
+ declare function CimplifyCheckout({ client, businessId, cartId, intentId, hostedSessionId, initialTerms, locationId, linkUrl, orderTypes, defaultOrderType, submitLabel, enrollInLink, onComplete, onError, onStatusChange, appearance, className, }: CimplifyCheckoutProps): React__default.ReactElement;
86
91
 
87
92
  interface NavItem {
88
93
  label: string;