@cimplify/sdk 0.101.1 → 0.102.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/advanced.d.mts +3 -3
- package/dist/advanced.d.ts +3 -3
- package/dist/{chunk-QPRI2NII.js → chunk-2P4KXFB6.js} +6 -0
- package/dist/{chunk-4G5UWFC3.mjs → chunk-3V4DVXV3.mjs} +6 -1
- package/dist/{chunk-7H6IL7CX.mjs → chunk-4KNFBPV2.mjs} +9 -2
- package/dist/{chunk-YHPMFTMN.mjs → chunk-DCMXUKDQ.mjs} +2 -0
- package/dist/{chunk-H5SSGN7W.js → chunk-EAZGA7LD.js} +2 -0
- package/dist/{chunk-ICCCSVN3.js → chunk-LOWSMGRT.js} +10 -2
- package/dist/{client-CdTx7X_X.d.mts → client-B40KFazg.d.ts} +5 -2
- package/dist/{client-WkUcvRvO.d.mts → client-BdErclfU.d.mts} +2 -2
- package/dist/{client-Db554902.d.ts → client-BizGfqB7.d.mts} +5 -2
- package/dist/{client-D40kI8z2.d.ts → client-nsiMwuC1.d.ts} +2 -2
- package/dist/{index-BjWUkYgY.d.mts → index-DpmnI__D.d.mts} +3 -3
- package/dist/{index-D3UXgAYl.d.ts → index-nEyXWIyR.d.ts} +3 -3
- package/dist/index.d.mts +19 -8
- package/dist/index.d.ts +19 -8
- package/dist/index.js +23 -19
- package/dist/index.mjs +1 -1
- package/dist/mock/cli.mjs +2 -0
- package/dist/mock/library.js +2 -0
- package/dist/mock/library.mjs +2 -0
- package/dist/mock/msw.js +2 -0
- package/dist/mock/msw.mjs +2 -0
- package/dist/{payment-CRqjGrx6.d.mts → payment-l0rkieEQ.d.mts} +1 -1
- package/dist/{payment-DO1Z1Ip6.d.ts → payment-vzNnIi1n.d.ts} +1 -1
- package/dist/{price-D9EOj8y8.d.ts → price-BstChV9a.d.ts} +1 -1
- package/dist/{price-CiQUd_XX.d.mts → price-CS4E5zLS.d.mts} +1 -1
- package/dist/{product-DwKdC_to.d.ts → product-Byf0unSy.d.mts} +19 -1
- package/dist/{product-DwKdC_to.d.mts → product-Byf0unSy.d.ts} +19 -1
- package/dist/react.d.mts +6 -4
- package/dist/react.d.ts +6 -4
- package/dist/react.js +62 -58
- package/dist/react.mjs +6 -2
- package/dist/{server-CeDb93WA.d.ts → server-Cj40R2ZD.d.ts} +1 -1
- package/dist/{server-D-nSkrUr.d.mts → server-DqbZh8Bk.d.mts} +1 -1
- package/dist/server.d.mts +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/testing/msw.d.mts +2 -2
- package/dist/testing/msw.d.ts +2 -2
- package/dist/testing/msw.js +2 -2
- package/dist/testing/msw.mjs +1 -1
- package/dist/testing/suite.d.mts +6 -6
- package/dist/testing/suite.d.ts +6 -6
- package/dist/testing/suite.js +21 -21
- package/dist/testing/suite.mjs +2 -2
- package/dist/testing.d.mts +52 -21
- package/dist/testing.d.ts +52 -21
- package/dist/testing.js +81 -77
- package/dist/testing.mjs +3 -3
- package/dist/utils.d.mts +4 -4
- package/dist/utils.d.ts +4 -4
- package/package.json +1 -1
package/dist/advanced.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { k as AuthService, C as BusinessService, O as CartOperations, P as CatalogueQueries, ab as CheckoutOperations, ab as CheckoutService, ah as CimplifyElement, ai as CimplifyElements, aL as ELEMENT_TYPES, aM as EVENT_TYPES, aP as ElementEventType, aQ as ElementOptions, aR as ElementType, aZ as ElementsOptions, b5 as FetchQuoteInput, be as FxService, bi as GetProductsOptions, bl as InventoryService, bt as LinkService, bz as LiteService, bG as MESSAGE_TYPES, c6 as OrderQueries, cs as PriceQuote, cy as QuoteBundleSelectionInput, cz as QuoteCompositeSelectionInput, cA as QuoteDynamicBuckets, cB as QuoteStatus, cC as QuoteUiMessage, cE as RefreshQuoteInput, cF as RefreshQuoteResult, d5 as SchedulingService, dL as createElements } from './client-
|
|
2
|
-
import './product-
|
|
3
|
-
import './payment-
|
|
1
|
+
export { k as AuthService, C as BusinessService, O as CartOperations, P as CatalogueQueries, ab as CheckoutOperations, ab as CheckoutService, ah as CimplifyElement, ai as CimplifyElements, aL as ELEMENT_TYPES, aM as EVENT_TYPES, aP as ElementEventType, aQ as ElementOptions, aR as ElementType, aZ as ElementsOptions, b5 as FetchQuoteInput, be as FxService, bi as GetProductsOptions, bl as InventoryService, bt as LinkService, bz as LiteService, bG as MESSAGE_TYPES, c6 as OrderQueries, cs as PriceQuote, cy as QuoteBundleSelectionInput, cz as QuoteCompositeSelectionInput, cA as QuoteDynamicBuckets, cB as QuoteStatus, cC as QuoteUiMessage, cE as RefreshQuoteInput, cF as RefreshQuoteResult, d5 as SchedulingService, dL as createElements } from './client-BizGfqB7.mjs';
|
|
2
|
+
import './product-Byf0unSy.mjs';
|
|
3
|
+
import './payment-l0rkieEQ.mjs';
|
|
4
4
|
|
|
5
5
|
declare function generateIdempotencyKey(prefix?: string): string;
|
|
6
6
|
|
package/dist/advanced.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { k as AuthService, C as BusinessService, O as CartOperations, P as CatalogueQueries, ab as CheckoutOperations, ab as CheckoutService, ah as CimplifyElement, ai as CimplifyElements, aL as ELEMENT_TYPES, aM as EVENT_TYPES, aP as ElementEventType, aQ as ElementOptions, aR as ElementType, aZ as ElementsOptions, b5 as FetchQuoteInput, be as FxService, bi as GetProductsOptions, bl as InventoryService, bt as LinkService, bz as LiteService, bG as MESSAGE_TYPES, c6 as OrderQueries, cs as PriceQuote, cy as QuoteBundleSelectionInput, cz as QuoteCompositeSelectionInput, cA as QuoteDynamicBuckets, cB as QuoteStatus, cC as QuoteUiMessage, cE as RefreshQuoteInput, cF as RefreshQuoteResult, d5 as SchedulingService, dL as createElements } from './client-
|
|
2
|
-
import './product-
|
|
3
|
-
import './payment-
|
|
1
|
+
export { k as AuthService, C as BusinessService, O as CartOperations, P as CatalogueQueries, ab as CheckoutOperations, ab as CheckoutService, ah as CimplifyElement, ai as CimplifyElements, aL as ELEMENT_TYPES, aM as EVENT_TYPES, aP as ElementEventType, aQ as ElementOptions, aR as ElementType, aZ as ElementsOptions, b5 as FetchQuoteInput, be as FxService, bi as GetProductsOptions, bl as InventoryService, bt as LinkService, bz as LiteService, bG as MESSAGE_TYPES, c6 as OrderQueries, cs as PriceQuote, cy as QuoteBundleSelectionInput, cz as QuoteCompositeSelectionInput, cA as QuoteDynamicBuckets, cB as QuoteStatus, cC as QuoteUiMessage, cE as RefreshQuoteInput, cF as RefreshQuoteResult, d5 as SchedulingService, dL as createElements } from './client-B40KFazg.js';
|
|
2
|
+
import './product-Byf0unSy.js';
|
|
3
|
+
import './payment-vzNnIi1n.js';
|
|
4
4
|
|
|
5
5
|
declare function generateIdempotencyKey(prefix?: string): string;
|
|
6
6
|
|
|
@@ -80,6 +80,11 @@ function getVariantDisplayName(variant, productName) {
|
|
|
80
80
|
return productName || (variant.is_default ? "Default" : "Option");
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
+
// src/utils/tax-display.ts
|
|
84
|
+
function displaysGrossPrices(pricing) {
|
|
85
|
+
return pricing.tax_inclusive || pricing.price_display_mode === "gross_required";
|
|
86
|
+
}
|
|
87
|
+
|
|
83
88
|
// src/utils/price-basis.ts
|
|
84
89
|
var MULTI_DAY_UNITS = /* @__PURE__ */ new Set([
|
|
85
90
|
"days",
|
|
@@ -258,6 +263,7 @@ exports.RENDER_HINT = RENDER_HINT;
|
|
|
258
263
|
exports.allGalleryImages = allGalleryImages;
|
|
259
264
|
exports.assetUrl = assetUrl;
|
|
260
265
|
exports.chatMessageCards = chatMessageCards;
|
|
266
|
+
exports.displaysGrossPrices = displaysGrossPrices;
|
|
261
267
|
exports.getVariantDisplayName = getVariantDisplayName;
|
|
262
268
|
exports.isCimplifyAsset = isCimplifyAsset;
|
|
263
269
|
exports.isMultiDayService = isMultiDayService;
|
|
@@ -78,6 +78,11 @@ function getVariantDisplayName(variant, productName) {
|
|
|
78
78
|
return productName || (variant.is_default ? "Default" : "Option");
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
+
// src/utils/tax-display.ts
|
|
82
|
+
function displaysGrossPrices(pricing) {
|
|
83
|
+
return pricing.tax_inclusive || pricing.price_display_mode === "gross_required";
|
|
84
|
+
}
|
|
85
|
+
|
|
81
86
|
// src/utils/price-basis.ts
|
|
82
87
|
var MULTI_DAY_UNITS = /* @__PURE__ */ new Set([
|
|
83
88
|
"days",
|
|
@@ -246,4 +251,4 @@ function appendTransform(url, t) {
|
|
|
246
251
|
return `${url}${url.includes("?") ? "&" : "?"}${query}`;
|
|
247
252
|
}
|
|
248
253
|
|
|
249
|
-
export { BOUNDARY_KIND, CIMPLIFY_CDN_HOSTS, DEFAULT_CDN_BASE_URL, DURATION_UNIT, INPUT_FIELD_TYPE, PRODUCT_TYPE, RENDER_HINT, allGalleryImages, assetUrl, chatMessageCards, getVariantDisplayName, isCimplifyAsset, isMultiDayService, priceBasisLabel, resolveGallery, serviceBillingMultiplier, stayLength, stayPeriods };
|
|
254
|
+
export { BOUNDARY_KIND, CIMPLIFY_CDN_HOSTS, DEFAULT_CDN_BASE_URL, DURATION_UNIT, INPUT_FIELD_TYPE, PRODUCT_TYPE, RENDER_HINT, allGalleryImages, assetUrl, chatMessageCards, displaysGrossPrices, getVariantDisplayName, isCimplifyAsset, isMultiDayService, priceBasisLabel, resolveGallery, serviceBillingMultiplier, stayLength, stayPeriods };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createMockApp } from './chunk-
|
|
1
|
+
import { createMockApp } from './chunk-DCMXUKDQ.mjs';
|
|
2
2
|
import { createCimplifyClient } from './chunk-DKLHCZ5M.mjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
@@ -471,6 +471,12 @@ var CartItemSchema = registerSchema(
|
|
|
471
471
|
}
|
|
472
472
|
);
|
|
473
473
|
var assertCartItem = makeAssertion(CartItemSchema, "cartItem");
|
|
474
|
+
var TaxPriceDisplayModeSchema = z.enum([
|
|
475
|
+
"unspecified",
|
|
476
|
+
"gross_required",
|
|
477
|
+
"gross_and_net",
|
|
478
|
+
"net_allowed"
|
|
479
|
+
]);
|
|
474
480
|
var CartPricingSchema = registerSchema(
|
|
475
481
|
z.object({
|
|
476
482
|
subtotal: MoneySchema,
|
|
@@ -482,6 +488,7 @@ var CartPricingSchema = registerSchema(
|
|
|
482
488
|
tax_rate: MoneySchema.optional(),
|
|
483
489
|
service_charge_rate: MoneySchema.optional(),
|
|
484
490
|
tax_inclusive: z.boolean(),
|
|
491
|
+
price_display_mode: TaxPriceDisplayModeSchema.optional(),
|
|
485
492
|
deposit_required: z.boolean(),
|
|
486
493
|
deposit_amount: MoneySchema
|
|
487
494
|
}),
|
|
@@ -697,4 +704,4 @@ var fixtures = {
|
|
|
697
704
|
}
|
|
698
705
|
};
|
|
699
706
|
|
|
700
|
-
export { AddItemPayloadSchema, AddOnDetailsSchema, AddOnGroupDetailsSchema, AddOnInDetailsSchema, AddOnOptionDetailsSchema, AuthorizationTypeSchema, BrandContactSchema, BrandFaqSchema, BrandHeroSchema, BrandNavLinkSchema, BrandPolicyPageSchema, BrandPolicySectionSchema, BrandSchema, BrandSocialSchema, BundleResolvedSchema, BundleSelectionInputSchema, CartItemSchema, CartPricingSchema, CartSchema, CheckoutBodySchema, CheckoutCustomerSchema, CheckoutResponseSchema, ChosenPriceSchema, CompositeResolvedSchema, CompositeSelectionInputSchema, CountryCodeSchema, CurrencyCodeSchema, CustomerInputValueSchema, DiscountDetailsSchema, IsoDateTimeSchema, LineTypeSchema, LocaleSchema, MoneyLooseSchema, MoneySchema, NextActionSchema, PhoneE164Schema, ProductTypeSchema, SchemaViolationError, SeedNameSchema, SelectedAddOnOptionSchema, ServiceStatusSchema, TimestampSchema, VariantDetailsSchema, VariantDisplayAttributeSchema, VariantInfoSchema, assertAddItemPayload, assertBrand, assertCart, assertCartItem, assertCheckoutBody, assertCheckoutResponse, cimplifyRegistry, createTestClient, fixtures, makeAssertion, registerSchema };
|
|
707
|
+
export { AddItemPayloadSchema, AddOnDetailsSchema, AddOnGroupDetailsSchema, AddOnInDetailsSchema, AddOnOptionDetailsSchema, AuthorizationTypeSchema, BrandContactSchema, BrandFaqSchema, BrandHeroSchema, BrandNavLinkSchema, BrandPolicyPageSchema, BrandPolicySectionSchema, BrandSchema, BrandSocialSchema, BundleResolvedSchema, BundleSelectionInputSchema, CartItemSchema, CartPricingSchema, CartSchema, CheckoutBodySchema, CheckoutCustomerSchema, CheckoutResponseSchema, ChosenPriceSchema, CompositeResolvedSchema, CompositeSelectionInputSchema, CountryCodeSchema, CurrencyCodeSchema, CustomerInputValueSchema, DiscountDetailsSchema, IsoDateTimeSchema, LineTypeSchema, LocaleSchema, MoneyLooseSchema, MoneySchema, NextActionSchema, PhoneE164Schema, ProductTypeSchema, SchemaViolationError, SeedNameSchema, SelectedAddOnOptionSchema, ServiceStatusSchema, TaxPriceDisplayModeSchema, TimestampSchema, VariantDetailsSchema, VariantDisplayAttributeSchema, VariantInfoSchema, assertAddItemPayload, assertBrand, assertCart, assertCartItem, assertCheckoutBody, assertCheckoutResponse, cimplifyRegistry, createTestClient, fixtures, makeAssertion, registerSchema };
|
|
@@ -4659,6 +4659,7 @@ function toUICart(registry, cart) {
|
|
|
4659
4659
|
tax_rate: cart.tax_rate,
|
|
4660
4660
|
service_charge_rate: cart.service_charge_rate,
|
|
4661
4661
|
tax_inclusive: false,
|
|
4662
|
+
price_display_mode: "unspecified",
|
|
4662
4663
|
deposit_required: false,
|
|
4663
4664
|
deposit_amount: "0.00"
|
|
4664
4665
|
},
|
|
@@ -4818,6 +4819,7 @@ function createCartService(opts) {
|
|
|
4818
4819
|
tax_jurisdiction_label: label,
|
|
4819
4820
|
tax_inclusive: false,
|
|
4820
4821
|
tax_rate: cart.tax_rate,
|
|
4822
|
+
price_display_mode: "unspecified",
|
|
4821
4823
|
delivery_fee_details: null,
|
|
4822
4824
|
address_info: body.address_info
|
|
4823
4825
|
};
|
|
@@ -4661,6 +4661,7 @@ function toUICart(registry, cart) {
|
|
|
4661
4661
|
tax_rate: cart.tax_rate,
|
|
4662
4662
|
service_charge_rate: cart.service_charge_rate,
|
|
4663
4663
|
tax_inclusive: false,
|
|
4664
|
+
price_display_mode: "unspecified",
|
|
4664
4665
|
deposit_required: false,
|
|
4665
4666
|
deposit_amount: "0.00"
|
|
4666
4667
|
},
|
|
@@ -4820,6 +4821,7 @@ function createCartService(opts) {
|
|
|
4820
4821
|
tax_jurisdiction_label: label,
|
|
4821
4822
|
tax_inclusive: false,
|
|
4822
4823
|
tax_rate: cart.tax_rate,
|
|
4824
|
+
price_display_mode: "unspecified",
|
|
4823
4825
|
delivery_fee_details: null,
|
|
4824
4826
|
address_info: body.address_info
|
|
4825
4827
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkEAZGA7LD_js = require('./chunk-EAZGA7LD.js');
|
|
4
4
|
var chunkYDA46OZ6_js = require('./chunk-YDA46OZ6.js');
|
|
5
5
|
var zod = require('zod');
|
|
6
6
|
|
|
@@ -473,6 +473,12 @@ var CartItemSchema = registerSchema(
|
|
|
473
473
|
}
|
|
474
474
|
);
|
|
475
475
|
var assertCartItem = makeAssertion(CartItemSchema, "cartItem");
|
|
476
|
+
var TaxPriceDisplayModeSchema = zod.z.enum([
|
|
477
|
+
"unspecified",
|
|
478
|
+
"gross_required",
|
|
479
|
+
"gross_and_net",
|
|
480
|
+
"net_allowed"
|
|
481
|
+
]);
|
|
476
482
|
var CartPricingSchema = registerSchema(
|
|
477
483
|
zod.z.object({
|
|
478
484
|
subtotal: MoneySchema,
|
|
@@ -484,6 +490,7 @@ var CartPricingSchema = registerSchema(
|
|
|
484
490
|
tax_rate: MoneySchema.optional(),
|
|
485
491
|
service_charge_rate: MoneySchema.optional(),
|
|
486
492
|
tax_inclusive: zod.z.boolean(),
|
|
493
|
+
price_display_mode: TaxPriceDisplayModeSchema.optional(),
|
|
487
494
|
deposit_required: zod.z.boolean(),
|
|
488
495
|
deposit_amount: MoneySchema
|
|
489
496
|
}),
|
|
@@ -600,7 +607,7 @@ async function toForwardedRequest(input, init) {
|
|
|
600
607
|
};
|
|
601
608
|
}
|
|
602
609
|
function createTestClient(options = {}) {
|
|
603
|
-
const mock =
|
|
610
|
+
const mock = chunkEAZGA7LD_js.createMockApp(options);
|
|
604
611
|
let sessionToken;
|
|
605
612
|
const fetchImpl = async (input, init) => {
|
|
606
613
|
const url = typeof input === "string" ? input : input instanceof URL ? input.toString() : input.url;
|
|
@@ -740,6 +747,7 @@ exports.SchemaViolationError = SchemaViolationError;
|
|
|
740
747
|
exports.SeedNameSchema = SeedNameSchema;
|
|
741
748
|
exports.SelectedAddOnOptionSchema = SelectedAddOnOptionSchema;
|
|
742
749
|
exports.ServiceStatusSchema = ServiceStatusSchema;
|
|
750
|
+
exports.TaxPriceDisplayModeSchema = TaxPriceDisplayModeSchema;
|
|
743
751
|
exports.TimestampSchema = TimestampSchema;
|
|
744
752
|
exports.VariantDetailsSchema = VariantDetailsSchema;
|
|
745
753
|
exports.VariantDisplayAttributeSchema = VariantDisplayAttributeSchema;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { V as CimplifyError, S as Category, b0 as Product, f as AddOnWithOptions, aT as Pagination, be as ProductWithDetails, bc as ProductVariant,
|
|
2
|
-
import { a as AuthorizationType, c as PaymentMethod, I as InitializePaymentResult, S as SubmitAuthorizationInput, i as PaymentStatusResponse } from './payment-
|
|
1
|
+
import { V as CimplifyError, S as Category, b0 as Product, f as AddOnWithOptions, aT as Pagination, be as ProductWithDetails, bc as ProductVariant, bJ as VariantAxis, bK as VariantAxisSelection, A as AddOn, W as Collection, G as BundleSummary, u as Bundle, a3 as Composite, a1 as ComponentSelectionInput, a8 as CompositePriceResult, ad as CurrencyCode, U as ChosenPrice, bl as SaleInfo, b9 as ProductTaxonomy, bB as TaxonomyWithChildren, aA as EligiblePlansQuery, b4 as ProductBillingPlan, ba as ProductTimeProfile, b3 as ProductAvailabilityNow, aj as Deal, b5 as ProductDealInfo, as as DiscountValidation, bx as TagsResponse, ae as CustomAttributeDefinition, af as CustomAttributeValue, bf as PropertyFacet, bA as TaxonomyAttributeTemplate, aM as KnowledgeArticle, bC as UICart, L as CartItem, ao as DestinationQuoteInput, am as DestinationQuote, Q as CartSummary, g as AddToCartInput, N as CartMutationResult, bI as UpdateCartItemInput, ar as DiscountDetails, aR as Money, aN as LineConfiguration, bz as TaxPriceDisplayMode, bP as VariantDetails, bQ as VariantDetailsDTO, a as AddOnDetails, d as AddOnOptionDetails, b as AddOnGroupDetails, D as BundleSelectionData, aa as CompositeSelectionData, ag as CustomerInputValue, bW as components, bn as SchedulingMode, ay as DurationUnit, br as Subscription, bv as SubscriptionWithDetails } from './product-Byf0unSy.js';
|
|
2
|
+
import { a as AuthorizationType, c as PaymentMethod, I as InitializePaymentResult, S as SubmitAuthorizationInput, i as PaymentStatusResponse } from './payment-vzNnIi1n.js';
|
|
3
3
|
|
|
4
4
|
interface RequestContext {
|
|
5
5
|
method: "GET" | "POST" | "PATCH" | "DELETE";
|
|
@@ -1245,6 +1245,9 @@ interface CheckoutCartData {
|
|
|
1245
1245
|
tax_inclusive: boolean;
|
|
1246
1246
|
/** Tax rate in percentage points (8.25 means 8.25%). */
|
|
1247
1247
|
tax_rate?: string | number;
|
|
1248
|
+
/** Reviewed presentation policy; `gross_required` markets show inclusive
|
|
1249
|
+
* prices even when the tax arithmetic is exclusive. */
|
|
1250
|
+
price_display_mode?: TaxPriceDisplayMode;
|
|
1248
1251
|
/** Deposit due now when the cart has deposit-eligible service items, so the
|
|
1249
1252
|
* checkout can offer "pay deposit now, balance later". Absent/0 otherwise. */
|
|
1250
1253
|
deposit_required?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { af as CimplifyClient } from './client-
|
|
2
|
-
import { A as AppHandle, C as CreateAppOptions } from './server-
|
|
1
|
+
import { af as CimplifyClient } from './client-BizGfqB7.mjs';
|
|
2
|
+
import { A as AppHandle, C as CreateAppOptions } from './server-DqbZh8Bk.mjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Test client + fixtures.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { V as CimplifyError, S as Category, b0 as Product, f as AddOnWithOptions, aT as Pagination, be as ProductWithDetails, bc as ProductVariant,
|
|
2
|
-
import { a as AuthorizationType, c as PaymentMethod, I as InitializePaymentResult, S as SubmitAuthorizationInput, i as PaymentStatusResponse } from './payment-
|
|
1
|
+
import { V as CimplifyError, S as Category, b0 as Product, f as AddOnWithOptions, aT as Pagination, be as ProductWithDetails, bc as ProductVariant, bJ as VariantAxis, bK as VariantAxisSelection, A as AddOn, W as Collection, G as BundleSummary, u as Bundle, a3 as Composite, a1 as ComponentSelectionInput, a8 as CompositePriceResult, ad as CurrencyCode, U as ChosenPrice, bl as SaleInfo, b9 as ProductTaxonomy, bB as TaxonomyWithChildren, aA as EligiblePlansQuery, b4 as ProductBillingPlan, ba as ProductTimeProfile, b3 as ProductAvailabilityNow, aj as Deal, b5 as ProductDealInfo, as as DiscountValidation, bx as TagsResponse, ae as CustomAttributeDefinition, af as CustomAttributeValue, bf as PropertyFacet, bA as TaxonomyAttributeTemplate, aM as KnowledgeArticle, bC as UICart, L as CartItem, ao as DestinationQuoteInput, am as DestinationQuote, Q as CartSummary, g as AddToCartInput, N as CartMutationResult, bI as UpdateCartItemInput, ar as DiscountDetails, aR as Money, aN as LineConfiguration, bz as TaxPriceDisplayMode, bP as VariantDetails, bQ as VariantDetailsDTO, a as AddOnDetails, d as AddOnOptionDetails, b as AddOnGroupDetails, D as BundleSelectionData, aa as CompositeSelectionData, ag as CustomerInputValue, bW as components, bn as SchedulingMode, ay as DurationUnit, br as Subscription, bv as SubscriptionWithDetails } from './product-Byf0unSy.mjs';
|
|
2
|
+
import { a as AuthorizationType, c as PaymentMethod, I as InitializePaymentResult, S as SubmitAuthorizationInput, i as PaymentStatusResponse } from './payment-l0rkieEQ.mjs';
|
|
3
3
|
|
|
4
4
|
interface RequestContext {
|
|
5
5
|
method: "GET" | "POST" | "PATCH" | "DELETE";
|
|
@@ -1245,6 +1245,9 @@ interface CheckoutCartData {
|
|
|
1245
1245
|
tax_inclusive: boolean;
|
|
1246
1246
|
/** Tax rate in percentage points (8.25 means 8.25%). */
|
|
1247
1247
|
tax_rate?: string | number;
|
|
1248
|
+
/** Reviewed presentation policy; `gross_required` markets show inclusive
|
|
1249
|
+
* prices even when the tax arithmetic is exclusive. */
|
|
1250
|
+
price_display_mode?: TaxPriceDisplayMode;
|
|
1248
1251
|
/** Deposit due now when the cart has deposit-eligible service items, so the
|
|
1249
1252
|
* checkout can offer "pay deposit now, balance later". Absent/0 otherwise. */
|
|
1250
1253
|
deposit_required?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { af as CimplifyClient } from './client-
|
|
2
|
-
import { A as AppHandle, C as CreateAppOptions } from './server-
|
|
1
|
+
import { af as CimplifyClient } from './client-B40KFazg.js';
|
|
2
|
+
import { A as AppHandle, C as CreateAppOptions } from './server-Cj40R2ZD.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Test client + fixtures.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { aR as Money, ad as CurrencyCode, a_ as PricePathTaxInfo, b0 as Product, be as ProductWithDetails, bh as QuantityPricingTier } from './product-
|
|
2
|
-
import { P as ProductWithPrice } from './price-
|
|
3
|
-
import { b as PaymentErrorDetails, g as PaymentResponse, i as PaymentStatusResponse } from './payment-
|
|
1
|
+
import { aR as Money, ad as CurrencyCode, a_ as PricePathTaxInfo, b0 as Product, be as ProductWithDetails, bh as QuantityPricingTier } from './product-Byf0unSy.mjs';
|
|
2
|
+
import { P as ProductWithPrice } from './price-CS4E5zLS.mjs';
|
|
3
|
+
import { b as PaymentErrorDetails, g as PaymentResponse, i as PaymentStatusResponse } from './payment-l0rkieEQ.mjs';
|
|
4
4
|
import { CountryCode } from 'libphonenumber-js';
|
|
5
5
|
|
|
6
6
|
declare const CURRENCY_SYMBOLS: Record<string, string>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { aR as Money, ad as CurrencyCode, a_ as PricePathTaxInfo, b0 as Product, be as ProductWithDetails, bh as QuantityPricingTier } from './product-
|
|
2
|
-
import { P as ProductWithPrice } from './price-
|
|
3
|
-
import { b as PaymentErrorDetails, g as PaymentResponse, i as PaymentStatusResponse } from './payment-
|
|
1
|
+
import { aR as Money, ad as CurrencyCode, a_ as PricePathTaxInfo, b0 as Product, be as ProductWithDetails, bh as QuantityPricingTier } from './product-Byf0unSy.js';
|
|
2
|
+
import { P as ProductWithPrice } from './price-BstChV9a.js';
|
|
3
|
+
import { b as PaymentErrorDetails, g as PaymentResponse, i as PaymentStatusResponse } from './payment-vzNnIi1n.js';
|
|
4
4
|
import { CountryCode } from 'libphonenumber-js';
|
|
5
5
|
|
|
6
6
|
declare const CURRENCY_SYMBOLS: Record<string, string>;
|
package/dist/index.d.mts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { X as ChatReplyCard } from './client-
|
|
2
|
-
export { A as AUTHORIZATION_TYPE, a as AUTH_MUTATION, b as AbortablePromise, c as ActivityRecommendation, d as ActivityRecommendationsResponse, e as ActivityService, f as ActivityStateResponse, g as AddressData, h as AddressInfo, i as AmountToPay, j as AuthResponse, k as AuthService, l as AuthStatus, m as AuthenticatedCustomer, n as AuthenticatedData, o as AutocompletePrediction, p as AutocompleteResponse, q as AvailabilityResult, r as AvailableSlot, B as Booking, s as BookingModificationType, t as BookingStatus, u as BookingWithDetails, v as BufferTimes, w as Business, x as BusinessDetailsDTO, y as BusinessHours, z as BusinessPreferences, C as BusinessService, D as BusinessSettings, E as BusinessWithLocations, F as CHECKOUT_MODE, G as CHECKOUT_MUTATION, H as CHECKOUT_STEP, I as CONTACT_TYPE, J as CacheOptions, K as CancelBookingInput, L as CancelBookingResult, M as CancelOrderInput, N as CancellationPolicy, O as CartOperations, P as CatalogueQueries, Q as CatalogueResult, R as CatalogueSnapshot, S as CategoryInfo, T as ChatAttachment, U as ChatConversation, V as ChatConversationResponse, W as ChatMessage, Y as ChatReplyContext, Z as ChatUploadAttachment, _ as ChatWidgetStarter, $ as CheckSlotAvailabilityInput, a0 as CheckSlotAvailabilityResult, a1 as CheckoutAddressInfo, a2 as CheckoutCartData, a3 as CheckoutCartItem, a4 as CheckoutCustomerInfo, a5 as CheckoutFormData, a6 as CheckoutInput, a7 as CheckoutMode, ab as CheckoutOperations, a8 as CheckoutOrderType, a9 as CheckoutPaymentMethod, aa as CheckoutResult, ab as CheckoutService, ac as CheckoutStatus, ad as CheckoutStatusContext, ae as CheckoutStep, af as CimplifyClient, ag as CimplifyConfig, ah as CimplifyElement, ai as CimplifyElements, aj as ClaimConversationResult, ak as ContactType, al as ContentType, am as CreateAddressInput, an as CreateMobileMoneyInput, ao as Customer, ap as CustomerAddress, aq as CustomerBooking, ar as CustomerBookingServiceItem, as as CustomerLinkPreferences, at as CustomerMobileMoney, au as CustomerServicePreferences, av as DEFAULT_COUNTRY, aw as DEFAULT_CURRENCY, ax as DEVICE_TYPE, ay as DayAvailability, az as DeliveryFeeDetails, aA as DeliveryFeeResponse, aB as DeliveryOption, aC as DeliveryOptionsQuery, aD as DeliveryOptionsResponse, aE as DeliveryService, aF as DepositResult, aG as DeviceType, aH as DismissMessageResponse, aI as ELEMENTS_AUTH_CONTACT_TYPES, aJ as ELEMENTS_AUTH_MODES, aK as ELEMENTS_AUTH_PROMPTS, aL as ELEMENT_TYPES, aM as EVENT_TYPES, aN as ElementAppearance, aO as ElementEventHandler, aP as ElementEventType, aQ as ElementOptions, aR as ElementType, aS as ElementsAuthContactType, aT as ElementsAuthMode, aU as ElementsAuthOptions, aV as ElementsAuthPrompt, aW as ElementsCheckoutData, aX as ElementsCheckoutResult, aY as ElementsCustomerInfo, aZ as ElementsOptions, a_ as EnrichedOrder, a$ as EnrichedOrderItem, b0 as EnrollAndLinkOrderInput, b1 as EnrollAndLinkOrderResult, b2 as EnrollmentData, b3 as Err, b4 as FeeBearerType, b5 as FetchQuoteInput, b6 as FulfillmentLink, b7 as FulfillmentStatus, b8 as FulfillmentSummaryDTO, b9 as FulfillmentType, ba as FxQuote, bb as FxQuoteRequest, bc as FxQuoteStatus, bd as FxRateResponse, be as FxService, bf as GetAvailableSlotsInput, bg as GetDeliveryOptionsParams, bh as GetOrdersOptions, bi as GetProductsOptions, bj as GroupOrderInfo, bk as IframeToParentMessage, bl as InventoryService, bm as LINK_MUTATION, bn as LINK_QUERY, bo as LifecyclePhase, bp as LineItem, bq as LineType, br as LinkData, bs as LinkEnrollResult, bt as LinkService, bu as LinkSession, bv as LinkStatusResult, bw as LiteBootstrap, bx as LiteDayHours, by as LiteHoursRange, bz as LiteService, bA as Location, bB as LocationBooking, bC as LocationTaxBehavior, bD as LocationTaxOverrides, bE as LocationTimeProfile, bF as LocationWithDetails, bG as MESSAGE_TYPES, bH as MOBILE_MONEY_PROVIDER, bI as MobileMoneyData, bJ as MobileMoneyDetails, bK as MobileMoneyProvider, bL as NextAction, bM as ORDER_MUTATION, bN as ORDER_TYPE, bO as ObservabilityHooks, bP as Ok, bQ as Order, bR as OrderCustomerInfo, bS as OrderDiscountInfo, bT as OrderFilter, bU as OrderFulfillmentSummary, bV as OrderGroup, bW as OrderGroupDetails, bX as OrderGroupPayment, bY as OrderGroupPaymentState, bZ as OrderGroupPaymentStatus, b_ as OrderGroupPaymentSummary, b$ as OrderGroupStatus, c0 as OrderHistory, c1 as OrderLineState, c2 as OrderLineStatus, c3 as OrderLocationInfo, c4 as OrderPaymentEvent, c5 as OrderPricingView, c6 as OrderQueries, c7 as OrderSplitDetail, c8 as OrderStaffInfo, c9 as OrderStatus, ca as OrderTimestampsDTO, cb as OrderType, cc as Origin, cd as OriginActor, ce as OriginChannel, cf as OtpResult, cg as PAYMENT_METHOD, ch as PAYMENT_MUTATION, ci as PAYMENT_STATE, cj as PICKUP_TIME_TYPE, ck as ParentToIframeMessage, cl as PaymentInfoDTO, cm as PaymentMethodInfo, cn as PaymentState, co as PickupTime, cp as PickupTimeType, cq as PlaceDetailsResponse, cr as PlacesService, cs as PriceQuote, ct as PricingOverrides, cu as ProcessAndResolveOptions, cv as ProcessCheckoutOptions, cw as ProcessCheckoutResult, cx as ProviderResolutionSource, cy as QuoteBundleSelectionInput, cz as QuoteCompositeSelectionInput, cA as QuoteDynamicBuckets, cB as QuoteStatus, cC as QuoteUiMessage, cD as ReadRequestOptions, cE as RefreshQuoteInput, cF as RefreshQuoteResult, cG as RefundOrderInput, cH as RelatedCandidate, cI as RelatedProduct, cJ as RelatedProductsEnrichment, cK as RelationType, cL as ReminderMethod, cM as ReminderSettings, cN as ReorderResult, cO as RequestContext, cP as RequestErrorEvent, cQ as RequestOptions, cR as RequestOtpInput, cS as RequestSource, cT as RequestStartEvent, cU as RequestSuccessEvent, cV as RescheduleBookingInput, cW as RescheduleBookingResult, cX as RescheduleHistoryRecord, cY as ResourceAssignment, cZ as ResourceInfo, c_ as Result, c$ as RetryEvent, d0 as RevokeAllSessionsResult, d1 as RevokeSessionResult, d2 as Room, d3 as SchedulingMetadata, d4 as SchedulingResult, d5 as SchedulingService, d6 as SenderType, d7 as Service, d8 as ServiceAvailabilityParams, d9 as ServiceAvailabilityResult, da as ServiceCharge, db as ServiceNotes, dc as ServiceScheduleRequest, dd as ServiceStatus, de as SessionActivityData, df as SessionChangeEvent, dg as SessionMessage, dh as SlotResourceInfo, di as SlotStaffInfo, dj as Staff, dk as StaffAssignment, dl as StaffRole, dm as StaffScheduleItem, dn as StockLevel, dp as StockStatus, dq as StoreCreditBalance, dr as StoreCreditQueries, ds as StorefrontBootstrap, dt as SubscriptionService, du as SupportService, dv as Table, dw as TimeRange, dx as TimeRanges, dy as TimeSlot, dz as TrackCategoryViewOptions, dA as TrackProductViewOptions, dB as UpdateAddressInput, dC as UpdateOrderStatusInput, dD as UpdateProfileInput, dE as UploadInitResponse, dF as UploadResult, dG as UploadService, dH as VerifyOtpInput, dI as combine, dJ as combineObject, dK as createCimplifyClient, dL as createElements, dM as err, dN as flatMap, dO as fromPromise, dP as getOrElse, dQ as isErr, dR as isOk, dS as mapError, dT as mapResult, dU as ok, dV as toNullable, dW as tryCatch, dX as unwrap } from './client-
|
|
3
|
-
import { be as ProductWithDetails, b0 as Product, ay as DurationUnit, j as ApiError } from './product-
|
|
4
|
-
export { A as AddOn, a as AddOnDetails, b as AddOnGroupDetails, c as AddOnOption, d as AddOnOptionDetails, e as AddOnOptionPrice, f as AddOnWithOptions, g as AddToCartInput, h as AddressValue, i as AdjustmentType, k as AppliedDiscount, l as AttributeAppliesTo, m as AttributeType, n as AttributeValidationRules, o as AttributeVisibility, B as BOUNDARY_KIND, p as BenefitType, q as BillingFrequency, r as BillingMarkupType, s as BillingPlanType, t as BoundaryKind, u as Bundle, v as BundleComponentData, w as BundleComponentInfo, x as BundleComponentVariantView, y as BundleComponentView, z as BundlePriceType, C as BundleProduct, D as BundleSelectionData, E as BundleSelectionInput, F as BundleStoredSelection, G as BundleSummary, H as BundleWithDetails, I as Cart, J as CartAddOn, K as CartChannel, L as CartItem, M as CartItemDetails, N as CartMutationResult, O as CartNotice, P as CartStatus, Q as CartSummary, R as CartTotals, S as Category, T as CategorySummary, U as ChosenPrice, V as CimplifyError, W as Collection, X as CollectionProduct, Y as CollectionSummary, Z as ComponentGroup, _ as ComponentGroupWithComponents, $ as ComponentPriceBreakdown, a0 as ComponentSchedulingData, a1 as ComponentSelectionInput, a2 as ComponentSourceType, a3 as Composite, a4 as CompositeComponent, a5 as CompositeComponentView, a6 as CompositeGroupView, a7 as CompositePriceBreakdown, a8 as CompositePriceResult, a9 as CompositePricingMode, aa as CompositeSelectionData, a1 as CompositeSelectionInput, ab as CompositeStoredSelection, ac as CompositeWithDetails, ad as CurrencyCode, ae as CustomAttributeDefinition, af as CustomAttributeValue, ag as CustomerInputValue, ah as DURATION_UNIT, ai as DateRangeValue, aj as Deal, ak as DealBenefitType, al as DepositType, am as DestinationQuote, an as DestinationQuoteAddress, ao as DestinationQuoteInput, ap as DigitalProductType, aq as DiscountBreakdown, ar as DiscountDetails, as as DiscountValidation, at as DisplayAddOn, au as DisplayAddOnOption, av as DisplayCart, aw as DisplayCartItem, ax as DisplayMode, az as ERROR_HINTS, aA as EligiblePlansQuery, aB as ErrorCode, aC as ErrorCodeType, aD as ErrorHint, aE as FacetValue, aF as FormattedPlanOption, aG as GroupPricingBehavior, aH as INPUT_FIELD_TYPE, aI as IdempotencyMismatchError, aJ as InputFieldType, aK as InputFieldValidation, aL as InventoryType, aM as KnowledgeArticle, aN as LineConfiguration, aO as LocationProductPrice, aP as LocationValue, aQ as MeasurementValue, aR as Money, aS as PRODUCT_TYPE, aT as Pagination, aU as PaginationParams, aV as PhoneValue, aW as Price, aX as PriceAdjustment, aY as PriceDecisionPath, aZ as PriceEntryType, a_ as PricePathTaxInfo, a$ as PriceSource, b1 as ProductAddOn, b2 as ProductAvailability, b3 as ProductAvailabilityNow, b4 as ProductBillingPlan, b5 as ProductDealInfo, b6 as ProductInputField, b7 as ProductProperty, b8 as ProductRenderHint, b9 as ProductTaxonomy, ba as ProductTimeProfile, bb as ProductType, bc as ProductVariant, bd as ProductVariantValue, bf as PropertyFacet, bg as PropertySource, bh as QuantityPricingTier, bi as RENDER_HINT, bj as RelatedProductView, bk as SaleCapInfo, bl as SaleInfo, bm as SalesChannel, bn as SchedulingMode, bo as SelectedAddOnOption, bp as SemanticKind, bq as SignatureValue, br as Subscription, bs as SubscriptionInvoice, bt as SubscriptionItem, bu as SubscriptionStatus, bv as SubscriptionWithDetails, bw as Tag, bx as TagsResponse, by as TaxPathComponent,
|
|
5
|
-
export { C as CURRENCY_SYMBOLS, M as MOBILE_MONEY_PROVIDERS, c as categorizePaymentError, d as detectMobileMoneyProvider, f as formatMoney, a as formatNumberCompact, b as formatPrice, e as formatPriceAdjustment, g as formatPriceCompact, h as formatPriceRange, i as formatPriceWithTax, j as formatProductPrice, k as getBasePrice, l as getCurrencySymbol, m as getDiscountPercentage, n as getDisplayPrice, o as getMarkupPercentage, p as getPriceRange, q as getProductCurrency, r as getTaxAmount, s as getUnitPriceAtQuantity, t as hasTaxInfo, u as isOnSale, v as isPaymentStatusFailure, w as isPaymentStatusRequiresAction, x as isPaymentStatusSuccess, y as isTaxInclusive, z as isValidPhoneForContext, A as normalizePaymentResponse, B as normalizePhoneToE164, D as normalizeStatusResponse, E as parsePrice, F as resolvePhoneCountryCode } from './index-
|
|
1
|
+
import { X as ChatReplyCard } from './client-BizGfqB7.mjs';
|
|
2
|
+
export { A as AUTHORIZATION_TYPE, a as AUTH_MUTATION, b as AbortablePromise, c as ActivityRecommendation, d as ActivityRecommendationsResponse, e as ActivityService, f as ActivityStateResponse, g as AddressData, h as AddressInfo, i as AmountToPay, j as AuthResponse, k as AuthService, l as AuthStatus, m as AuthenticatedCustomer, n as AuthenticatedData, o as AutocompletePrediction, p as AutocompleteResponse, q as AvailabilityResult, r as AvailableSlot, B as Booking, s as BookingModificationType, t as BookingStatus, u as BookingWithDetails, v as BufferTimes, w as Business, x as BusinessDetailsDTO, y as BusinessHours, z as BusinessPreferences, C as BusinessService, D as BusinessSettings, E as BusinessWithLocations, F as CHECKOUT_MODE, G as CHECKOUT_MUTATION, H as CHECKOUT_STEP, I as CONTACT_TYPE, J as CacheOptions, K as CancelBookingInput, L as CancelBookingResult, M as CancelOrderInput, N as CancellationPolicy, O as CartOperations, P as CatalogueQueries, Q as CatalogueResult, R as CatalogueSnapshot, S as CategoryInfo, T as ChatAttachment, U as ChatConversation, V as ChatConversationResponse, W as ChatMessage, Y as ChatReplyContext, Z as ChatUploadAttachment, _ as ChatWidgetStarter, $ as CheckSlotAvailabilityInput, a0 as CheckSlotAvailabilityResult, a1 as CheckoutAddressInfo, a2 as CheckoutCartData, a3 as CheckoutCartItem, a4 as CheckoutCustomerInfo, a5 as CheckoutFormData, a6 as CheckoutInput, a7 as CheckoutMode, ab as CheckoutOperations, a8 as CheckoutOrderType, a9 as CheckoutPaymentMethod, aa as CheckoutResult, ab as CheckoutService, ac as CheckoutStatus, ad as CheckoutStatusContext, ae as CheckoutStep, af as CimplifyClient, ag as CimplifyConfig, ah as CimplifyElement, ai as CimplifyElements, aj as ClaimConversationResult, ak as ContactType, al as ContentType, am as CreateAddressInput, an as CreateMobileMoneyInput, ao as Customer, ap as CustomerAddress, aq as CustomerBooking, ar as CustomerBookingServiceItem, as as CustomerLinkPreferences, at as CustomerMobileMoney, au as CustomerServicePreferences, av as DEFAULT_COUNTRY, aw as DEFAULT_CURRENCY, ax as DEVICE_TYPE, ay as DayAvailability, az as DeliveryFeeDetails, aA as DeliveryFeeResponse, aB as DeliveryOption, aC as DeliveryOptionsQuery, aD as DeliveryOptionsResponse, aE as DeliveryService, aF as DepositResult, aG as DeviceType, aH as DismissMessageResponse, aI as ELEMENTS_AUTH_CONTACT_TYPES, aJ as ELEMENTS_AUTH_MODES, aK as ELEMENTS_AUTH_PROMPTS, aL as ELEMENT_TYPES, aM as EVENT_TYPES, aN as ElementAppearance, aO as ElementEventHandler, aP as ElementEventType, aQ as ElementOptions, aR as ElementType, aS as ElementsAuthContactType, aT as ElementsAuthMode, aU as ElementsAuthOptions, aV as ElementsAuthPrompt, aW as ElementsCheckoutData, aX as ElementsCheckoutResult, aY as ElementsCustomerInfo, aZ as ElementsOptions, a_ as EnrichedOrder, a$ as EnrichedOrderItem, b0 as EnrollAndLinkOrderInput, b1 as EnrollAndLinkOrderResult, b2 as EnrollmentData, b3 as Err, b4 as FeeBearerType, b5 as FetchQuoteInput, b6 as FulfillmentLink, b7 as FulfillmentStatus, b8 as FulfillmentSummaryDTO, b9 as FulfillmentType, ba as FxQuote, bb as FxQuoteRequest, bc as FxQuoteStatus, bd as FxRateResponse, be as FxService, bf as GetAvailableSlotsInput, bg as GetDeliveryOptionsParams, bh as GetOrdersOptions, bi as GetProductsOptions, bj as GroupOrderInfo, bk as IframeToParentMessage, bl as InventoryService, bm as LINK_MUTATION, bn as LINK_QUERY, bo as LifecyclePhase, bp as LineItem, bq as LineType, br as LinkData, bs as LinkEnrollResult, bt as LinkService, bu as LinkSession, bv as LinkStatusResult, bw as LiteBootstrap, bx as LiteDayHours, by as LiteHoursRange, bz as LiteService, bA as Location, bB as LocationBooking, bC as LocationTaxBehavior, bD as LocationTaxOverrides, bE as LocationTimeProfile, bF as LocationWithDetails, bG as MESSAGE_TYPES, bH as MOBILE_MONEY_PROVIDER, bI as MobileMoneyData, bJ as MobileMoneyDetails, bK as MobileMoneyProvider, bL as NextAction, bM as ORDER_MUTATION, bN as ORDER_TYPE, bO as ObservabilityHooks, bP as Ok, bQ as Order, bR as OrderCustomerInfo, bS as OrderDiscountInfo, bT as OrderFilter, bU as OrderFulfillmentSummary, bV as OrderGroup, bW as OrderGroupDetails, bX as OrderGroupPayment, bY as OrderGroupPaymentState, bZ as OrderGroupPaymentStatus, b_ as OrderGroupPaymentSummary, b$ as OrderGroupStatus, c0 as OrderHistory, c1 as OrderLineState, c2 as OrderLineStatus, c3 as OrderLocationInfo, c4 as OrderPaymentEvent, c5 as OrderPricingView, c6 as OrderQueries, c7 as OrderSplitDetail, c8 as OrderStaffInfo, c9 as OrderStatus, ca as OrderTimestampsDTO, cb as OrderType, cc as Origin, cd as OriginActor, ce as OriginChannel, cf as OtpResult, cg as PAYMENT_METHOD, ch as PAYMENT_MUTATION, ci as PAYMENT_STATE, cj as PICKUP_TIME_TYPE, ck as ParentToIframeMessage, cl as PaymentInfoDTO, cm as PaymentMethodInfo, cn as PaymentState, co as PickupTime, cp as PickupTimeType, cq as PlaceDetailsResponse, cr as PlacesService, cs as PriceQuote, ct as PricingOverrides, cu as ProcessAndResolveOptions, cv as ProcessCheckoutOptions, cw as ProcessCheckoutResult, cx as ProviderResolutionSource, cy as QuoteBundleSelectionInput, cz as QuoteCompositeSelectionInput, cA as QuoteDynamicBuckets, cB as QuoteStatus, cC as QuoteUiMessage, cD as ReadRequestOptions, cE as RefreshQuoteInput, cF as RefreshQuoteResult, cG as RefundOrderInput, cH as RelatedCandidate, cI as RelatedProduct, cJ as RelatedProductsEnrichment, cK as RelationType, cL as ReminderMethod, cM as ReminderSettings, cN as ReorderResult, cO as RequestContext, cP as RequestErrorEvent, cQ as RequestOptions, cR as RequestOtpInput, cS as RequestSource, cT as RequestStartEvent, cU as RequestSuccessEvent, cV as RescheduleBookingInput, cW as RescheduleBookingResult, cX as RescheduleHistoryRecord, cY as ResourceAssignment, cZ as ResourceInfo, c_ as Result, c$ as RetryEvent, d0 as RevokeAllSessionsResult, d1 as RevokeSessionResult, d2 as Room, d3 as SchedulingMetadata, d4 as SchedulingResult, d5 as SchedulingService, d6 as SenderType, d7 as Service, d8 as ServiceAvailabilityParams, d9 as ServiceAvailabilityResult, da as ServiceCharge, db as ServiceNotes, dc as ServiceScheduleRequest, dd as ServiceStatus, de as SessionActivityData, df as SessionChangeEvent, dg as SessionMessage, dh as SlotResourceInfo, di as SlotStaffInfo, dj as Staff, dk as StaffAssignment, dl as StaffRole, dm as StaffScheduleItem, dn as StockLevel, dp as StockStatus, dq as StoreCreditBalance, dr as StoreCreditQueries, ds as StorefrontBootstrap, dt as SubscriptionService, du as SupportService, dv as Table, dw as TimeRange, dx as TimeRanges, dy as TimeSlot, dz as TrackCategoryViewOptions, dA as TrackProductViewOptions, dB as UpdateAddressInput, dC as UpdateOrderStatusInput, dD as UpdateProfileInput, dE as UploadInitResponse, dF as UploadResult, dG as UploadService, dH as VerifyOtpInput, dI as combine, dJ as combineObject, dK as createCimplifyClient, dL as createElements, dM as err, dN as flatMap, dO as fromPromise, dP as getOrElse, dQ as isErr, dR as isOk, dS as mapError, dT as mapResult, dU as ok, dV as toNullable, dW as tryCatch, dX as unwrap } from './client-BizGfqB7.mjs';
|
|
3
|
+
import { be as ProductWithDetails, bz as TaxPriceDisplayMode, b0 as Product, ay as DurationUnit, j as ApiError } from './product-Byf0unSy.mjs';
|
|
4
|
+
export { A as AddOn, a as AddOnDetails, b as AddOnGroupDetails, c as AddOnOption, d as AddOnOptionDetails, e as AddOnOptionPrice, f as AddOnWithOptions, g as AddToCartInput, h as AddressValue, i as AdjustmentType, k as AppliedDiscount, l as AttributeAppliesTo, m as AttributeType, n as AttributeValidationRules, o as AttributeVisibility, B as BOUNDARY_KIND, p as BenefitType, q as BillingFrequency, r as BillingMarkupType, s as BillingPlanType, t as BoundaryKind, u as Bundle, v as BundleComponentData, w as BundleComponentInfo, x as BundleComponentVariantView, y as BundleComponentView, z as BundlePriceType, C as BundleProduct, D as BundleSelectionData, E as BundleSelectionInput, F as BundleStoredSelection, G as BundleSummary, H as BundleWithDetails, I as Cart, J as CartAddOn, K as CartChannel, L as CartItem, M as CartItemDetails, N as CartMutationResult, O as CartNotice, P as CartStatus, Q as CartSummary, R as CartTotals, S as Category, T as CategorySummary, U as ChosenPrice, V as CimplifyError, W as Collection, X as CollectionProduct, Y as CollectionSummary, Z as ComponentGroup, _ as ComponentGroupWithComponents, $ as ComponentPriceBreakdown, a0 as ComponentSchedulingData, a1 as ComponentSelectionInput, a2 as ComponentSourceType, a3 as Composite, a4 as CompositeComponent, a5 as CompositeComponentView, a6 as CompositeGroupView, a7 as CompositePriceBreakdown, a8 as CompositePriceResult, a9 as CompositePricingMode, aa as CompositeSelectionData, a1 as CompositeSelectionInput, ab as CompositeStoredSelection, ac as CompositeWithDetails, ad as CurrencyCode, ae as CustomAttributeDefinition, af as CustomAttributeValue, ag as CustomerInputValue, ah as DURATION_UNIT, ai as DateRangeValue, aj as Deal, ak as DealBenefitType, al as DepositType, am as DestinationQuote, an as DestinationQuoteAddress, ao as DestinationQuoteInput, ap as DigitalProductType, aq as DiscountBreakdown, ar as DiscountDetails, as as DiscountValidation, at as DisplayAddOn, au as DisplayAddOnOption, av as DisplayCart, aw as DisplayCartItem, ax as DisplayMode, az as ERROR_HINTS, aA as EligiblePlansQuery, aB as ErrorCode, aC as ErrorCodeType, aD as ErrorHint, aE as FacetValue, aF as FormattedPlanOption, aG as GroupPricingBehavior, aH as INPUT_FIELD_TYPE, aI as IdempotencyMismatchError, aJ as InputFieldType, aK as InputFieldValidation, aL as InventoryType, aM as KnowledgeArticle, aN as LineConfiguration, aO as LocationProductPrice, aP as LocationValue, aQ as MeasurementValue, aR as Money, aS as PRODUCT_TYPE, aT as Pagination, aU as PaginationParams, aV as PhoneValue, aW as Price, aX as PriceAdjustment, aY as PriceDecisionPath, aZ as PriceEntryType, a_ as PricePathTaxInfo, a$ as PriceSource, b1 as ProductAddOn, b2 as ProductAvailability, b3 as ProductAvailabilityNow, b4 as ProductBillingPlan, b5 as ProductDealInfo, b6 as ProductInputField, b7 as ProductProperty, b8 as ProductRenderHint, b9 as ProductTaxonomy, ba as ProductTimeProfile, bb as ProductType, bc as ProductVariant, bd as ProductVariantValue, bf as PropertyFacet, bg as PropertySource, bh as QuantityPricingTier, bi as RENDER_HINT, bj as RelatedProductView, bk as SaleCapInfo, bl as SaleInfo, bm as SalesChannel, bn as SchedulingMode, bo as SelectedAddOnOption, bp as SemanticKind, bq as SignatureValue, br as Subscription, bs as SubscriptionInvoice, bt as SubscriptionItem, bu as SubscriptionStatus, bv as SubscriptionWithDetails, bw as Tag, bx as TagsResponse, by as TaxPathComponent, bA as TaxonomyAttributeTemplate, bB as TaxonomyWithChildren, bC as UICart, bD as UICartBusiness, bE as UICartCustomer, bF as UICartLocation, bG as UICartPricing, bH as UpcomingSale, bI as UpdateCartItemInput, bJ as VariantAxis, bK as VariantAxisSelection, bL as VariantAxisValue, bM as VariantAxisValueView, bN as VariantAxisView, bO as VariantAxisWithValues, bP as VariantDetails, bQ as VariantDetailsDTO, bR as VariantDisplayAttribute, bS as VariantLocationAvailability, bT as VariantStrategy, bU as VariantView, bV as ZERO, bX as currencyCode, bY as enrichError, bZ as getErrorHint, b_ as isCimplifyError, b$ as isIdempotencyMismatchError, c0 as isQuoteConflictRequiringConsent, c1 as isQuoteError, c2 as isRetryableError, c3 as isSupportedCurrency, c4 as money, c5 as moneyFromNumber } from './product-Byf0unSy.mjs';
|
|
5
|
+
export { C as CURRENCY_SYMBOLS, M as MOBILE_MONEY_PROVIDERS, c as categorizePaymentError, d as detectMobileMoneyProvider, f as formatMoney, a as formatNumberCompact, b as formatPrice, e as formatPriceAdjustment, g as formatPriceCompact, h as formatPriceRange, i as formatPriceWithTax, j as formatProductPrice, k as getBasePrice, l as getCurrencySymbol, m as getDiscountPercentage, n as getDisplayPrice, o as getMarkupPercentage, p as getPriceRange, q as getProductCurrency, r as getTaxAmount, s as getUnitPriceAtQuantity, t as hasTaxInfo, u as isOnSale, v as isPaymentStatusFailure, w as isPaymentStatusRequiresAction, x as isPaymentStatusSuccess, y as isTaxInclusive, z as isValidPhoneForContext, A as normalizePaymentResponse, B as normalizePhoneToE164, D as normalizeStatusResponse, E as parsePrice, F as resolvePhoneCountryCode } from './index-DpmnI__D.mjs';
|
|
6
6
|
export { A as AdConfig, a as AdContextValue, b as AdCreative, c as AdPosition, d as AdSlot, e as AdTheme, S as SignInOptions, g as getVariantDisplayName, s as startSignIn } from './sign-in-DQlIdqsi.mjs';
|
|
7
|
-
export { A as AddressAuthorizationData, a as AuthorizationType, I as InitializePaymentResult, P as Payment, b as PaymentErrorDetails, c as PaymentMethod, d as PaymentMethodType, e as PaymentProcessingState, f as PaymentProvider, g as PaymentResponse, h as PaymentStatus, i as PaymentStatusResponse, S as SubmitAuthorizationInput } from './payment-
|
|
8
|
-
export { F as FormatCompactOptions, a as FormatPriceOptions, P as ProductWithPrice } from './price-
|
|
7
|
+
export { A as AddressAuthorizationData, a as AuthorizationType, I as InitializePaymentResult, P as Payment, b as PaymentErrorDetails, c as PaymentMethod, d as PaymentMethodType, e as PaymentProcessingState, f as PaymentProvider, g as PaymentResponse, h as PaymentStatus, i as PaymentStatusResponse, S as SubmitAuthorizationInput } from './payment-l0rkieEQ.mjs';
|
|
8
|
+
export { F as FormatCompactOptions, a as FormatPriceOptions, P as ProductWithPrice } from './price-CS4E5zLS.mjs';
|
|
9
9
|
export { generateIdempotencyKey } from './advanced.mjs';
|
|
10
10
|
import 'libphonenumber-js';
|
|
11
11
|
|
|
@@ -70,6 +70,17 @@ interface CustomerPricingInfo {
|
|
|
70
70
|
items: QuantityBreak[];
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
+
/**
|
|
74
|
+
* Whether customer-facing totals must present the tax-inclusive amount as the
|
|
75
|
+
* price. True for inclusive-arithmetic markets (Ghana VAT) and for markets
|
|
76
|
+
* whose reviewed presentation policy is `gross_required` even though the tax
|
|
77
|
+
* arithmetic itself is exclusive (Nigeria, Singapore, South Africa, UAE).
|
|
78
|
+
*/
|
|
79
|
+
declare function displaysGrossPrices(pricing: {
|
|
80
|
+
tax_inclusive: boolean;
|
|
81
|
+
price_display_mode?: TaxPriceDisplayMode | null;
|
|
82
|
+
}): boolean;
|
|
83
|
+
|
|
73
84
|
type BasisFields = Pick<Product, "type" | "price_basis" | "duration_unit" | "scheduling_mode">;
|
|
74
85
|
/** Whether this service schedules whole stays (per-duration-unit billing
|
|
75
86
|
* default, unit reservations) rather than intraday slots. The server-resolved
|
|
@@ -163,4 +174,4 @@ interface AssetUrlOptions extends AssetTransform {
|
|
|
163
174
|
declare function assetUrl(path: string, opts?: AssetUrlOptions): string;
|
|
164
175
|
declare function isCimplifyAsset(src: string, base?: string): boolean;
|
|
165
176
|
|
|
166
|
-
export { ApiError, type ApiResponse, type AssetTransform, type AssetUrlOptions, CIMPLIFY_CDN_HOSTS, ChatReplyCard, type CustomerGroup, type CustomerPricingInfo, DEFAULT_CDN_BASE_URL, DurationUnit, type FrontendContext, type GalleryImage, type MutationRequest, type PriceListItem, Product, ProductWithDetails, type QuantityBreak, type QueryRequest, type ResolvedQuantityBreak, type ResponseMetadata, type SilentSignInOptions, type SilentSignInResult, allGalleryImages, assetUrl, chatMessageCards, isCimplifyAsset, isMultiDayService, priceBasisLabel, resolveGallery, serviceBillingMultiplier, signInSilent, stayLength, stayPeriods };
|
|
177
|
+
export { ApiError, type ApiResponse, type AssetTransform, type AssetUrlOptions, CIMPLIFY_CDN_HOSTS, ChatReplyCard, type CustomerGroup, type CustomerPricingInfo, DEFAULT_CDN_BASE_URL, DurationUnit, type FrontendContext, type GalleryImage, type MutationRequest, type PriceListItem, Product, ProductWithDetails, type QuantityBreak, type QueryRequest, type ResolvedQuantityBreak, type ResponseMetadata, type SilentSignInOptions, type SilentSignInResult, TaxPriceDisplayMode, allGalleryImages, assetUrl, chatMessageCards, displaysGrossPrices, isCimplifyAsset, isMultiDayService, priceBasisLabel, resolveGallery, serviceBillingMultiplier, signInSilent, stayLength, stayPeriods };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { X as ChatReplyCard } from './client-
|
|
2
|
-
export { A as AUTHORIZATION_TYPE, a as AUTH_MUTATION, b as AbortablePromise, c as ActivityRecommendation, d as ActivityRecommendationsResponse, e as ActivityService, f as ActivityStateResponse, g as AddressData, h as AddressInfo, i as AmountToPay, j as AuthResponse, k as AuthService, l as AuthStatus, m as AuthenticatedCustomer, n as AuthenticatedData, o as AutocompletePrediction, p as AutocompleteResponse, q as AvailabilityResult, r as AvailableSlot, B as Booking, s as BookingModificationType, t as BookingStatus, u as BookingWithDetails, v as BufferTimes, w as Business, x as BusinessDetailsDTO, y as BusinessHours, z as BusinessPreferences, C as BusinessService, D as BusinessSettings, E as BusinessWithLocations, F as CHECKOUT_MODE, G as CHECKOUT_MUTATION, H as CHECKOUT_STEP, I as CONTACT_TYPE, J as CacheOptions, K as CancelBookingInput, L as CancelBookingResult, M as CancelOrderInput, N as CancellationPolicy, O as CartOperations, P as CatalogueQueries, Q as CatalogueResult, R as CatalogueSnapshot, S as CategoryInfo, T as ChatAttachment, U as ChatConversation, V as ChatConversationResponse, W as ChatMessage, Y as ChatReplyContext, Z as ChatUploadAttachment, _ as ChatWidgetStarter, $ as CheckSlotAvailabilityInput, a0 as CheckSlotAvailabilityResult, a1 as CheckoutAddressInfo, a2 as CheckoutCartData, a3 as CheckoutCartItem, a4 as CheckoutCustomerInfo, a5 as CheckoutFormData, a6 as CheckoutInput, a7 as CheckoutMode, ab as CheckoutOperations, a8 as CheckoutOrderType, a9 as CheckoutPaymentMethod, aa as CheckoutResult, ab as CheckoutService, ac as CheckoutStatus, ad as CheckoutStatusContext, ae as CheckoutStep, af as CimplifyClient, ag as CimplifyConfig, ah as CimplifyElement, ai as CimplifyElements, aj as ClaimConversationResult, ak as ContactType, al as ContentType, am as CreateAddressInput, an as CreateMobileMoneyInput, ao as Customer, ap as CustomerAddress, aq as CustomerBooking, ar as CustomerBookingServiceItem, as as CustomerLinkPreferences, at as CustomerMobileMoney, au as CustomerServicePreferences, av as DEFAULT_COUNTRY, aw as DEFAULT_CURRENCY, ax as DEVICE_TYPE, ay as DayAvailability, az as DeliveryFeeDetails, aA as DeliveryFeeResponse, aB as DeliveryOption, aC as DeliveryOptionsQuery, aD as DeliveryOptionsResponse, aE as DeliveryService, aF as DepositResult, aG as DeviceType, aH as DismissMessageResponse, aI as ELEMENTS_AUTH_CONTACT_TYPES, aJ as ELEMENTS_AUTH_MODES, aK as ELEMENTS_AUTH_PROMPTS, aL as ELEMENT_TYPES, aM as EVENT_TYPES, aN as ElementAppearance, aO as ElementEventHandler, aP as ElementEventType, aQ as ElementOptions, aR as ElementType, aS as ElementsAuthContactType, aT as ElementsAuthMode, aU as ElementsAuthOptions, aV as ElementsAuthPrompt, aW as ElementsCheckoutData, aX as ElementsCheckoutResult, aY as ElementsCustomerInfo, aZ as ElementsOptions, a_ as EnrichedOrder, a$ as EnrichedOrderItem, b0 as EnrollAndLinkOrderInput, b1 as EnrollAndLinkOrderResult, b2 as EnrollmentData, b3 as Err, b4 as FeeBearerType, b5 as FetchQuoteInput, b6 as FulfillmentLink, b7 as FulfillmentStatus, b8 as FulfillmentSummaryDTO, b9 as FulfillmentType, ba as FxQuote, bb as FxQuoteRequest, bc as FxQuoteStatus, bd as FxRateResponse, be as FxService, bf as GetAvailableSlotsInput, bg as GetDeliveryOptionsParams, bh as GetOrdersOptions, bi as GetProductsOptions, bj as GroupOrderInfo, bk as IframeToParentMessage, bl as InventoryService, bm as LINK_MUTATION, bn as LINK_QUERY, bo as LifecyclePhase, bp as LineItem, bq as LineType, br as LinkData, bs as LinkEnrollResult, bt as LinkService, bu as LinkSession, bv as LinkStatusResult, bw as LiteBootstrap, bx as LiteDayHours, by as LiteHoursRange, bz as LiteService, bA as Location, bB as LocationBooking, bC as LocationTaxBehavior, bD as LocationTaxOverrides, bE as LocationTimeProfile, bF as LocationWithDetails, bG as MESSAGE_TYPES, bH as MOBILE_MONEY_PROVIDER, bI as MobileMoneyData, bJ as MobileMoneyDetails, bK as MobileMoneyProvider, bL as NextAction, bM as ORDER_MUTATION, bN as ORDER_TYPE, bO as ObservabilityHooks, bP as Ok, bQ as Order, bR as OrderCustomerInfo, bS as OrderDiscountInfo, bT as OrderFilter, bU as OrderFulfillmentSummary, bV as OrderGroup, bW as OrderGroupDetails, bX as OrderGroupPayment, bY as OrderGroupPaymentState, bZ as OrderGroupPaymentStatus, b_ as OrderGroupPaymentSummary, b$ as OrderGroupStatus, c0 as OrderHistory, c1 as OrderLineState, c2 as OrderLineStatus, c3 as OrderLocationInfo, c4 as OrderPaymentEvent, c5 as OrderPricingView, c6 as OrderQueries, c7 as OrderSplitDetail, c8 as OrderStaffInfo, c9 as OrderStatus, ca as OrderTimestampsDTO, cb as OrderType, cc as Origin, cd as OriginActor, ce as OriginChannel, cf as OtpResult, cg as PAYMENT_METHOD, ch as PAYMENT_MUTATION, ci as PAYMENT_STATE, cj as PICKUP_TIME_TYPE, ck as ParentToIframeMessage, cl as PaymentInfoDTO, cm as PaymentMethodInfo, cn as PaymentState, co as PickupTime, cp as PickupTimeType, cq as PlaceDetailsResponse, cr as PlacesService, cs as PriceQuote, ct as PricingOverrides, cu as ProcessAndResolveOptions, cv as ProcessCheckoutOptions, cw as ProcessCheckoutResult, cx as ProviderResolutionSource, cy as QuoteBundleSelectionInput, cz as QuoteCompositeSelectionInput, cA as QuoteDynamicBuckets, cB as QuoteStatus, cC as QuoteUiMessage, cD as ReadRequestOptions, cE as RefreshQuoteInput, cF as RefreshQuoteResult, cG as RefundOrderInput, cH as RelatedCandidate, cI as RelatedProduct, cJ as RelatedProductsEnrichment, cK as RelationType, cL as ReminderMethod, cM as ReminderSettings, cN as ReorderResult, cO as RequestContext, cP as RequestErrorEvent, cQ as RequestOptions, cR as RequestOtpInput, cS as RequestSource, cT as RequestStartEvent, cU as RequestSuccessEvent, cV as RescheduleBookingInput, cW as RescheduleBookingResult, cX as RescheduleHistoryRecord, cY as ResourceAssignment, cZ as ResourceInfo, c_ as Result, c$ as RetryEvent, d0 as RevokeAllSessionsResult, d1 as RevokeSessionResult, d2 as Room, d3 as SchedulingMetadata, d4 as SchedulingResult, d5 as SchedulingService, d6 as SenderType, d7 as Service, d8 as ServiceAvailabilityParams, d9 as ServiceAvailabilityResult, da as ServiceCharge, db as ServiceNotes, dc as ServiceScheduleRequest, dd as ServiceStatus, de as SessionActivityData, df as SessionChangeEvent, dg as SessionMessage, dh as SlotResourceInfo, di as SlotStaffInfo, dj as Staff, dk as StaffAssignment, dl as StaffRole, dm as StaffScheduleItem, dn as StockLevel, dp as StockStatus, dq as StoreCreditBalance, dr as StoreCreditQueries, ds as StorefrontBootstrap, dt as SubscriptionService, du as SupportService, dv as Table, dw as TimeRange, dx as TimeRanges, dy as TimeSlot, dz as TrackCategoryViewOptions, dA as TrackProductViewOptions, dB as UpdateAddressInput, dC as UpdateOrderStatusInput, dD as UpdateProfileInput, dE as UploadInitResponse, dF as UploadResult, dG as UploadService, dH as VerifyOtpInput, dI as combine, dJ as combineObject, dK as createCimplifyClient, dL as createElements, dM as err, dN as flatMap, dO as fromPromise, dP as getOrElse, dQ as isErr, dR as isOk, dS as mapError, dT as mapResult, dU as ok, dV as toNullable, dW as tryCatch, dX as unwrap } from './client-
|
|
3
|
-
import { be as ProductWithDetails, b0 as Product, ay as DurationUnit, j as ApiError } from './product-
|
|
4
|
-
export { A as AddOn, a as AddOnDetails, b as AddOnGroupDetails, c as AddOnOption, d as AddOnOptionDetails, e as AddOnOptionPrice, f as AddOnWithOptions, g as AddToCartInput, h as AddressValue, i as AdjustmentType, k as AppliedDiscount, l as AttributeAppliesTo, m as AttributeType, n as AttributeValidationRules, o as AttributeVisibility, B as BOUNDARY_KIND, p as BenefitType, q as BillingFrequency, r as BillingMarkupType, s as BillingPlanType, t as BoundaryKind, u as Bundle, v as BundleComponentData, w as BundleComponentInfo, x as BundleComponentVariantView, y as BundleComponentView, z as BundlePriceType, C as BundleProduct, D as BundleSelectionData, E as BundleSelectionInput, F as BundleStoredSelection, G as BundleSummary, H as BundleWithDetails, I as Cart, J as CartAddOn, K as CartChannel, L as CartItem, M as CartItemDetails, N as CartMutationResult, O as CartNotice, P as CartStatus, Q as CartSummary, R as CartTotals, S as Category, T as CategorySummary, U as ChosenPrice, V as CimplifyError, W as Collection, X as CollectionProduct, Y as CollectionSummary, Z as ComponentGroup, _ as ComponentGroupWithComponents, $ as ComponentPriceBreakdown, a0 as ComponentSchedulingData, a1 as ComponentSelectionInput, a2 as ComponentSourceType, a3 as Composite, a4 as CompositeComponent, a5 as CompositeComponentView, a6 as CompositeGroupView, a7 as CompositePriceBreakdown, a8 as CompositePriceResult, a9 as CompositePricingMode, aa as CompositeSelectionData, a1 as CompositeSelectionInput, ab as CompositeStoredSelection, ac as CompositeWithDetails, ad as CurrencyCode, ae as CustomAttributeDefinition, af as CustomAttributeValue, ag as CustomerInputValue, ah as DURATION_UNIT, ai as DateRangeValue, aj as Deal, ak as DealBenefitType, al as DepositType, am as DestinationQuote, an as DestinationQuoteAddress, ao as DestinationQuoteInput, ap as DigitalProductType, aq as DiscountBreakdown, ar as DiscountDetails, as as DiscountValidation, at as DisplayAddOn, au as DisplayAddOnOption, av as DisplayCart, aw as DisplayCartItem, ax as DisplayMode, az as ERROR_HINTS, aA as EligiblePlansQuery, aB as ErrorCode, aC as ErrorCodeType, aD as ErrorHint, aE as FacetValue, aF as FormattedPlanOption, aG as GroupPricingBehavior, aH as INPUT_FIELD_TYPE, aI as IdempotencyMismatchError, aJ as InputFieldType, aK as InputFieldValidation, aL as InventoryType, aM as KnowledgeArticle, aN as LineConfiguration, aO as LocationProductPrice, aP as LocationValue, aQ as MeasurementValue, aR as Money, aS as PRODUCT_TYPE, aT as Pagination, aU as PaginationParams, aV as PhoneValue, aW as Price, aX as PriceAdjustment, aY as PriceDecisionPath, aZ as PriceEntryType, a_ as PricePathTaxInfo, a$ as PriceSource, b1 as ProductAddOn, b2 as ProductAvailability, b3 as ProductAvailabilityNow, b4 as ProductBillingPlan, b5 as ProductDealInfo, b6 as ProductInputField, b7 as ProductProperty, b8 as ProductRenderHint, b9 as ProductTaxonomy, ba as ProductTimeProfile, bb as ProductType, bc as ProductVariant, bd as ProductVariantValue, bf as PropertyFacet, bg as PropertySource, bh as QuantityPricingTier, bi as RENDER_HINT, bj as RelatedProductView, bk as SaleCapInfo, bl as SaleInfo, bm as SalesChannel, bn as SchedulingMode, bo as SelectedAddOnOption, bp as SemanticKind, bq as SignatureValue, br as Subscription, bs as SubscriptionInvoice, bt as SubscriptionItem, bu as SubscriptionStatus, bv as SubscriptionWithDetails, bw as Tag, bx as TagsResponse, by as TaxPathComponent,
|
|
5
|
-
export { C as CURRENCY_SYMBOLS, M as MOBILE_MONEY_PROVIDERS, c as categorizePaymentError, d as detectMobileMoneyProvider, f as formatMoney, a as formatNumberCompact, b as formatPrice, e as formatPriceAdjustment, g as formatPriceCompact, h as formatPriceRange, i as formatPriceWithTax, j as formatProductPrice, k as getBasePrice, l as getCurrencySymbol, m as getDiscountPercentage, n as getDisplayPrice, o as getMarkupPercentage, p as getPriceRange, q as getProductCurrency, r as getTaxAmount, s as getUnitPriceAtQuantity, t as hasTaxInfo, u as isOnSale, v as isPaymentStatusFailure, w as isPaymentStatusRequiresAction, x as isPaymentStatusSuccess, y as isTaxInclusive, z as isValidPhoneForContext, A as normalizePaymentResponse, B as normalizePhoneToE164, D as normalizeStatusResponse, E as parsePrice, F as resolvePhoneCountryCode } from './index-
|
|
1
|
+
import { X as ChatReplyCard } from './client-B40KFazg.js';
|
|
2
|
+
export { A as AUTHORIZATION_TYPE, a as AUTH_MUTATION, b as AbortablePromise, c as ActivityRecommendation, d as ActivityRecommendationsResponse, e as ActivityService, f as ActivityStateResponse, g as AddressData, h as AddressInfo, i as AmountToPay, j as AuthResponse, k as AuthService, l as AuthStatus, m as AuthenticatedCustomer, n as AuthenticatedData, o as AutocompletePrediction, p as AutocompleteResponse, q as AvailabilityResult, r as AvailableSlot, B as Booking, s as BookingModificationType, t as BookingStatus, u as BookingWithDetails, v as BufferTimes, w as Business, x as BusinessDetailsDTO, y as BusinessHours, z as BusinessPreferences, C as BusinessService, D as BusinessSettings, E as BusinessWithLocations, F as CHECKOUT_MODE, G as CHECKOUT_MUTATION, H as CHECKOUT_STEP, I as CONTACT_TYPE, J as CacheOptions, K as CancelBookingInput, L as CancelBookingResult, M as CancelOrderInput, N as CancellationPolicy, O as CartOperations, P as CatalogueQueries, Q as CatalogueResult, R as CatalogueSnapshot, S as CategoryInfo, T as ChatAttachment, U as ChatConversation, V as ChatConversationResponse, W as ChatMessage, Y as ChatReplyContext, Z as ChatUploadAttachment, _ as ChatWidgetStarter, $ as CheckSlotAvailabilityInput, a0 as CheckSlotAvailabilityResult, a1 as CheckoutAddressInfo, a2 as CheckoutCartData, a3 as CheckoutCartItem, a4 as CheckoutCustomerInfo, a5 as CheckoutFormData, a6 as CheckoutInput, a7 as CheckoutMode, ab as CheckoutOperations, a8 as CheckoutOrderType, a9 as CheckoutPaymentMethod, aa as CheckoutResult, ab as CheckoutService, ac as CheckoutStatus, ad as CheckoutStatusContext, ae as CheckoutStep, af as CimplifyClient, ag as CimplifyConfig, ah as CimplifyElement, ai as CimplifyElements, aj as ClaimConversationResult, ak as ContactType, al as ContentType, am as CreateAddressInput, an as CreateMobileMoneyInput, ao as Customer, ap as CustomerAddress, aq as CustomerBooking, ar as CustomerBookingServiceItem, as as CustomerLinkPreferences, at as CustomerMobileMoney, au as CustomerServicePreferences, av as DEFAULT_COUNTRY, aw as DEFAULT_CURRENCY, ax as DEVICE_TYPE, ay as DayAvailability, az as DeliveryFeeDetails, aA as DeliveryFeeResponse, aB as DeliveryOption, aC as DeliveryOptionsQuery, aD as DeliveryOptionsResponse, aE as DeliveryService, aF as DepositResult, aG as DeviceType, aH as DismissMessageResponse, aI as ELEMENTS_AUTH_CONTACT_TYPES, aJ as ELEMENTS_AUTH_MODES, aK as ELEMENTS_AUTH_PROMPTS, aL as ELEMENT_TYPES, aM as EVENT_TYPES, aN as ElementAppearance, aO as ElementEventHandler, aP as ElementEventType, aQ as ElementOptions, aR as ElementType, aS as ElementsAuthContactType, aT as ElementsAuthMode, aU as ElementsAuthOptions, aV as ElementsAuthPrompt, aW as ElementsCheckoutData, aX as ElementsCheckoutResult, aY as ElementsCustomerInfo, aZ as ElementsOptions, a_ as EnrichedOrder, a$ as EnrichedOrderItem, b0 as EnrollAndLinkOrderInput, b1 as EnrollAndLinkOrderResult, b2 as EnrollmentData, b3 as Err, b4 as FeeBearerType, b5 as FetchQuoteInput, b6 as FulfillmentLink, b7 as FulfillmentStatus, b8 as FulfillmentSummaryDTO, b9 as FulfillmentType, ba as FxQuote, bb as FxQuoteRequest, bc as FxQuoteStatus, bd as FxRateResponse, be as FxService, bf as GetAvailableSlotsInput, bg as GetDeliveryOptionsParams, bh as GetOrdersOptions, bi as GetProductsOptions, bj as GroupOrderInfo, bk as IframeToParentMessage, bl as InventoryService, bm as LINK_MUTATION, bn as LINK_QUERY, bo as LifecyclePhase, bp as LineItem, bq as LineType, br as LinkData, bs as LinkEnrollResult, bt as LinkService, bu as LinkSession, bv as LinkStatusResult, bw as LiteBootstrap, bx as LiteDayHours, by as LiteHoursRange, bz as LiteService, bA as Location, bB as LocationBooking, bC as LocationTaxBehavior, bD as LocationTaxOverrides, bE as LocationTimeProfile, bF as LocationWithDetails, bG as MESSAGE_TYPES, bH as MOBILE_MONEY_PROVIDER, bI as MobileMoneyData, bJ as MobileMoneyDetails, bK as MobileMoneyProvider, bL as NextAction, bM as ORDER_MUTATION, bN as ORDER_TYPE, bO as ObservabilityHooks, bP as Ok, bQ as Order, bR as OrderCustomerInfo, bS as OrderDiscountInfo, bT as OrderFilter, bU as OrderFulfillmentSummary, bV as OrderGroup, bW as OrderGroupDetails, bX as OrderGroupPayment, bY as OrderGroupPaymentState, bZ as OrderGroupPaymentStatus, b_ as OrderGroupPaymentSummary, b$ as OrderGroupStatus, c0 as OrderHistory, c1 as OrderLineState, c2 as OrderLineStatus, c3 as OrderLocationInfo, c4 as OrderPaymentEvent, c5 as OrderPricingView, c6 as OrderQueries, c7 as OrderSplitDetail, c8 as OrderStaffInfo, c9 as OrderStatus, ca as OrderTimestampsDTO, cb as OrderType, cc as Origin, cd as OriginActor, ce as OriginChannel, cf as OtpResult, cg as PAYMENT_METHOD, ch as PAYMENT_MUTATION, ci as PAYMENT_STATE, cj as PICKUP_TIME_TYPE, ck as ParentToIframeMessage, cl as PaymentInfoDTO, cm as PaymentMethodInfo, cn as PaymentState, co as PickupTime, cp as PickupTimeType, cq as PlaceDetailsResponse, cr as PlacesService, cs as PriceQuote, ct as PricingOverrides, cu as ProcessAndResolveOptions, cv as ProcessCheckoutOptions, cw as ProcessCheckoutResult, cx as ProviderResolutionSource, cy as QuoteBundleSelectionInput, cz as QuoteCompositeSelectionInput, cA as QuoteDynamicBuckets, cB as QuoteStatus, cC as QuoteUiMessage, cD as ReadRequestOptions, cE as RefreshQuoteInput, cF as RefreshQuoteResult, cG as RefundOrderInput, cH as RelatedCandidate, cI as RelatedProduct, cJ as RelatedProductsEnrichment, cK as RelationType, cL as ReminderMethod, cM as ReminderSettings, cN as ReorderResult, cO as RequestContext, cP as RequestErrorEvent, cQ as RequestOptions, cR as RequestOtpInput, cS as RequestSource, cT as RequestStartEvent, cU as RequestSuccessEvent, cV as RescheduleBookingInput, cW as RescheduleBookingResult, cX as RescheduleHistoryRecord, cY as ResourceAssignment, cZ as ResourceInfo, c_ as Result, c$ as RetryEvent, d0 as RevokeAllSessionsResult, d1 as RevokeSessionResult, d2 as Room, d3 as SchedulingMetadata, d4 as SchedulingResult, d5 as SchedulingService, d6 as SenderType, d7 as Service, d8 as ServiceAvailabilityParams, d9 as ServiceAvailabilityResult, da as ServiceCharge, db as ServiceNotes, dc as ServiceScheduleRequest, dd as ServiceStatus, de as SessionActivityData, df as SessionChangeEvent, dg as SessionMessage, dh as SlotResourceInfo, di as SlotStaffInfo, dj as Staff, dk as StaffAssignment, dl as StaffRole, dm as StaffScheduleItem, dn as StockLevel, dp as StockStatus, dq as StoreCreditBalance, dr as StoreCreditQueries, ds as StorefrontBootstrap, dt as SubscriptionService, du as SupportService, dv as Table, dw as TimeRange, dx as TimeRanges, dy as TimeSlot, dz as TrackCategoryViewOptions, dA as TrackProductViewOptions, dB as UpdateAddressInput, dC as UpdateOrderStatusInput, dD as UpdateProfileInput, dE as UploadInitResponse, dF as UploadResult, dG as UploadService, dH as VerifyOtpInput, dI as combine, dJ as combineObject, dK as createCimplifyClient, dL as createElements, dM as err, dN as flatMap, dO as fromPromise, dP as getOrElse, dQ as isErr, dR as isOk, dS as mapError, dT as mapResult, dU as ok, dV as toNullable, dW as tryCatch, dX as unwrap } from './client-B40KFazg.js';
|
|
3
|
+
import { be as ProductWithDetails, bz as TaxPriceDisplayMode, b0 as Product, ay as DurationUnit, j as ApiError } from './product-Byf0unSy.js';
|
|
4
|
+
export { A as AddOn, a as AddOnDetails, b as AddOnGroupDetails, c as AddOnOption, d as AddOnOptionDetails, e as AddOnOptionPrice, f as AddOnWithOptions, g as AddToCartInput, h as AddressValue, i as AdjustmentType, k as AppliedDiscount, l as AttributeAppliesTo, m as AttributeType, n as AttributeValidationRules, o as AttributeVisibility, B as BOUNDARY_KIND, p as BenefitType, q as BillingFrequency, r as BillingMarkupType, s as BillingPlanType, t as BoundaryKind, u as Bundle, v as BundleComponentData, w as BundleComponentInfo, x as BundleComponentVariantView, y as BundleComponentView, z as BundlePriceType, C as BundleProduct, D as BundleSelectionData, E as BundleSelectionInput, F as BundleStoredSelection, G as BundleSummary, H as BundleWithDetails, I as Cart, J as CartAddOn, K as CartChannel, L as CartItem, M as CartItemDetails, N as CartMutationResult, O as CartNotice, P as CartStatus, Q as CartSummary, R as CartTotals, S as Category, T as CategorySummary, U as ChosenPrice, V as CimplifyError, W as Collection, X as CollectionProduct, Y as CollectionSummary, Z as ComponentGroup, _ as ComponentGroupWithComponents, $ as ComponentPriceBreakdown, a0 as ComponentSchedulingData, a1 as ComponentSelectionInput, a2 as ComponentSourceType, a3 as Composite, a4 as CompositeComponent, a5 as CompositeComponentView, a6 as CompositeGroupView, a7 as CompositePriceBreakdown, a8 as CompositePriceResult, a9 as CompositePricingMode, aa as CompositeSelectionData, a1 as CompositeSelectionInput, ab as CompositeStoredSelection, ac as CompositeWithDetails, ad as CurrencyCode, ae as CustomAttributeDefinition, af as CustomAttributeValue, ag as CustomerInputValue, ah as DURATION_UNIT, ai as DateRangeValue, aj as Deal, ak as DealBenefitType, al as DepositType, am as DestinationQuote, an as DestinationQuoteAddress, ao as DestinationQuoteInput, ap as DigitalProductType, aq as DiscountBreakdown, ar as DiscountDetails, as as DiscountValidation, at as DisplayAddOn, au as DisplayAddOnOption, av as DisplayCart, aw as DisplayCartItem, ax as DisplayMode, az as ERROR_HINTS, aA as EligiblePlansQuery, aB as ErrorCode, aC as ErrorCodeType, aD as ErrorHint, aE as FacetValue, aF as FormattedPlanOption, aG as GroupPricingBehavior, aH as INPUT_FIELD_TYPE, aI as IdempotencyMismatchError, aJ as InputFieldType, aK as InputFieldValidation, aL as InventoryType, aM as KnowledgeArticle, aN as LineConfiguration, aO as LocationProductPrice, aP as LocationValue, aQ as MeasurementValue, aR as Money, aS as PRODUCT_TYPE, aT as Pagination, aU as PaginationParams, aV as PhoneValue, aW as Price, aX as PriceAdjustment, aY as PriceDecisionPath, aZ as PriceEntryType, a_ as PricePathTaxInfo, a$ as PriceSource, b1 as ProductAddOn, b2 as ProductAvailability, b3 as ProductAvailabilityNow, b4 as ProductBillingPlan, b5 as ProductDealInfo, b6 as ProductInputField, b7 as ProductProperty, b8 as ProductRenderHint, b9 as ProductTaxonomy, ba as ProductTimeProfile, bb as ProductType, bc as ProductVariant, bd as ProductVariantValue, bf as PropertyFacet, bg as PropertySource, bh as QuantityPricingTier, bi as RENDER_HINT, bj as RelatedProductView, bk as SaleCapInfo, bl as SaleInfo, bm as SalesChannel, bn as SchedulingMode, bo as SelectedAddOnOption, bp as SemanticKind, bq as SignatureValue, br as Subscription, bs as SubscriptionInvoice, bt as SubscriptionItem, bu as SubscriptionStatus, bv as SubscriptionWithDetails, bw as Tag, bx as TagsResponse, by as TaxPathComponent, bA as TaxonomyAttributeTemplate, bB as TaxonomyWithChildren, bC as UICart, bD as UICartBusiness, bE as UICartCustomer, bF as UICartLocation, bG as UICartPricing, bH as UpcomingSale, bI as UpdateCartItemInput, bJ as VariantAxis, bK as VariantAxisSelection, bL as VariantAxisValue, bM as VariantAxisValueView, bN as VariantAxisView, bO as VariantAxisWithValues, bP as VariantDetails, bQ as VariantDetailsDTO, bR as VariantDisplayAttribute, bS as VariantLocationAvailability, bT as VariantStrategy, bU as VariantView, bV as ZERO, bX as currencyCode, bY as enrichError, bZ as getErrorHint, b_ as isCimplifyError, b$ as isIdempotencyMismatchError, c0 as isQuoteConflictRequiringConsent, c1 as isQuoteError, c2 as isRetryableError, c3 as isSupportedCurrency, c4 as money, c5 as moneyFromNumber } from './product-Byf0unSy.js';
|
|
5
|
+
export { C as CURRENCY_SYMBOLS, M as MOBILE_MONEY_PROVIDERS, c as categorizePaymentError, d as detectMobileMoneyProvider, f as formatMoney, a as formatNumberCompact, b as formatPrice, e as formatPriceAdjustment, g as formatPriceCompact, h as formatPriceRange, i as formatPriceWithTax, j as formatProductPrice, k as getBasePrice, l as getCurrencySymbol, m as getDiscountPercentage, n as getDisplayPrice, o as getMarkupPercentage, p as getPriceRange, q as getProductCurrency, r as getTaxAmount, s as getUnitPriceAtQuantity, t as hasTaxInfo, u as isOnSale, v as isPaymentStatusFailure, w as isPaymentStatusRequiresAction, x as isPaymentStatusSuccess, y as isTaxInclusive, z as isValidPhoneForContext, A as normalizePaymentResponse, B as normalizePhoneToE164, D as normalizeStatusResponse, E as parsePrice, F as resolvePhoneCountryCode } from './index-nEyXWIyR.js';
|
|
6
6
|
export { A as AdConfig, a as AdContextValue, b as AdCreative, c as AdPosition, d as AdSlot, e as AdTheme, S as SignInOptions, g as getVariantDisplayName, s as startSignIn } from './sign-in-DQlIdqsi.js';
|
|
7
|
-
export { A as AddressAuthorizationData, a as AuthorizationType, I as InitializePaymentResult, P as Payment, b as PaymentErrorDetails, c as PaymentMethod, d as PaymentMethodType, e as PaymentProcessingState, f as PaymentProvider, g as PaymentResponse, h as PaymentStatus, i as PaymentStatusResponse, S as SubmitAuthorizationInput } from './payment-
|
|
8
|
-
export { F as FormatCompactOptions, a as FormatPriceOptions, P as ProductWithPrice } from './price-
|
|
7
|
+
export { A as AddressAuthorizationData, a as AuthorizationType, I as InitializePaymentResult, P as Payment, b as PaymentErrorDetails, c as PaymentMethod, d as PaymentMethodType, e as PaymentProcessingState, f as PaymentProvider, g as PaymentResponse, h as PaymentStatus, i as PaymentStatusResponse, S as SubmitAuthorizationInput } from './payment-vzNnIi1n.js';
|
|
8
|
+
export { F as FormatCompactOptions, a as FormatPriceOptions, P as ProductWithPrice } from './price-BstChV9a.js';
|
|
9
9
|
export { generateIdempotencyKey } from './advanced.js';
|
|
10
10
|
import 'libphonenumber-js';
|
|
11
11
|
|
|
@@ -70,6 +70,17 @@ interface CustomerPricingInfo {
|
|
|
70
70
|
items: QuantityBreak[];
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
+
/**
|
|
74
|
+
* Whether customer-facing totals must present the tax-inclusive amount as the
|
|
75
|
+
* price. True for inclusive-arithmetic markets (Ghana VAT) and for markets
|
|
76
|
+
* whose reviewed presentation policy is `gross_required` even though the tax
|
|
77
|
+
* arithmetic itself is exclusive (Nigeria, Singapore, South Africa, UAE).
|
|
78
|
+
*/
|
|
79
|
+
declare function displaysGrossPrices(pricing: {
|
|
80
|
+
tax_inclusive: boolean;
|
|
81
|
+
price_display_mode?: TaxPriceDisplayMode | null;
|
|
82
|
+
}): boolean;
|
|
83
|
+
|
|
73
84
|
type BasisFields = Pick<Product, "type" | "price_basis" | "duration_unit" | "scheduling_mode">;
|
|
74
85
|
/** Whether this service schedules whole stays (per-duration-unit billing
|
|
75
86
|
* default, unit reservations) rather than intraday slots. The server-resolved
|
|
@@ -163,4 +174,4 @@ interface AssetUrlOptions extends AssetTransform {
|
|
|
163
174
|
declare function assetUrl(path: string, opts?: AssetUrlOptions): string;
|
|
164
175
|
declare function isCimplifyAsset(src: string, base?: string): boolean;
|
|
165
176
|
|
|
166
|
-
export { ApiError, type ApiResponse, type AssetTransform, type AssetUrlOptions, CIMPLIFY_CDN_HOSTS, ChatReplyCard, type CustomerGroup, type CustomerPricingInfo, DEFAULT_CDN_BASE_URL, DurationUnit, type FrontendContext, type GalleryImage, type MutationRequest, type PriceListItem, Product, ProductWithDetails, type QuantityBreak, type QueryRequest, type ResolvedQuantityBreak, type ResponseMetadata, type SilentSignInOptions, type SilentSignInResult, allGalleryImages, assetUrl, chatMessageCards, isCimplifyAsset, isMultiDayService, priceBasisLabel, resolveGallery, serviceBillingMultiplier, signInSilent, stayLength, stayPeriods };
|
|
177
|
+
export { ApiError, type ApiResponse, type AssetTransform, type AssetUrlOptions, CIMPLIFY_CDN_HOSTS, ChatReplyCard, type CustomerGroup, type CustomerPricingInfo, DEFAULT_CDN_BASE_URL, DurationUnit, type FrontendContext, type GalleryImage, type MutationRequest, type PriceListItem, Product, ProductWithDetails, type QuantityBreak, type QueryRequest, type ResolvedQuantityBreak, type ResponseMetadata, type SilentSignInOptions, type SilentSignInResult, TaxPriceDisplayMode, allGalleryImages, assetUrl, chatMessageCards, displaysGrossPrices, isCimplifyAsset, isMultiDayService, priceBasisLabel, resolveGallery, serviceBillingMultiplier, signInSilent, stayLength, stayPeriods };
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk2P4KXFB6_js = require('./chunk-2P4KXFB6.js');
|
|
4
4
|
var chunkL5GKVQVJ_js = require('./chunk-L5GKVQVJ.js');
|
|
5
5
|
var chunkYDA46OZ6_js = require('./chunk-YDA46OZ6.js');
|
|
6
6
|
var chunkYER7DIOM_js = require('./chunk-YER7DIOM.js');
|
|
@@ -99,75 +99,79 @@ async function signInSilent(opts) {
|
|
|
99
99
|
|
|
100
100
|
Object.defineProperty(exports, "BOUNDARY_KIND", {
|
|
101
101
|
enumerable: true,
|
|
102
|
-
get: function () { return
|
|
102
|
+
get: function () { return chunk2P4KXFB6_js.BOUNDARY_KIND; }
|
|
103
103
|
});
|
|
104
104
|
Object.defineProperty(exports, "CIMPLIFY_CDN_HOSTS", {
|
|
105
105
|
enumerable: true,
|
|
106
|
-
get: function () { return
|
|
106
|
+
get: function () { return chunk2P4KXFB6_js.CIMPLIFY_CDN_HOSTS; }
|
|
107
107
|
});
|
|
108
108
|
Object.defineProperty(exports, "DEFAULT_CDN_BASE_URL", {
|
|
109
109
|
enumerable: true,
|
|
110
|
-
get: function () { return
|
|
110
|
+
get: function () { return chunk2P4KXFB6_js.DEFAULT_CDN_BASE_URL; }
|
|
111
111
|
});
|
|
112
112
|
Object.defineProperty(exports, "DURATION_UNIT", {
|
|
113
113
|
enumerable: true,
|
|
114
|
-
get: function () { return
|
|
114
|
+
get: function () { return chunk2P4KXFB6_js.DURATION_UNIT; }
|
|
115
115
|
});
|
|
116
116
|
Object.defineProperty(exports, "INPUT_FIELD_TYPE", {
|
|
117
117
|
enumerable: true,
|
|
118
|
-
get: function () { return
|
|
118
|
+
get: function () { return chunk2P4KXFB6_js.INPUT_FIELD_TYPE; }
|
|
119
119
|
});
|
|
120
120
|
Object.defineProperty(exports, "PRODUCT_TYPE", {
|
|
121
121
|
enumerable: true,
|
|
122
|
-
get: function () { return
|
|
122
|
+
get: function () { return chunk2P4KXFB6_js.PRODUCT_TYPE; }
|
|
123
123
|
});
|
|
124
124
|
Object.defineProperty(exports, "RENDER_HINT", {
|
|
125
125
|
enumerable: true,
|
|
126
|
-
get: function () { return
|
|
126
|
+
get: function () { return chunk2P4KXFB6_js.RENDER_HINT; }
|
|
127
127
|
});
|
|
128
128
|
Object.defineProperty(exports, "allGalleryImages", {
|
|
129
129
|
enumerable: true,
|
|
130
|
-
get: function () { return
|
|
130
|
+
get: function () { return chunk2P4KXFB6_js.allGalleryImages; }
|
|
131
131
|
});
|
|
132
132
|
Object.defineProperty(exports, "assetUrl", {
|
|
133
133
|
enumerable: true,
|
|
134
|
-
get: function () { return
|
|
134
|
+
get: function () { return chunk2P4KXFB6_js.assetUrl; }
|
|
135
135
|
});
|
|
136
136
|
Object.defineProperty(exports, "chatMessageCards", {
|
|
137
137
|
enumerable: true,
|
|
138
|
-
get: function () { return
|
|
138
|
+
get: function () { return chunk2P4KXFB6_js.chatMessageCards; }
|
|
139
|
+
});
|
|
140
|
+
Object.defineProperty(exports, "displaysGrossPrices", {
|
|
141
|
+
enumerable: true,
|
|
142
|
+
get: function () { return chunk2P4KXFB6_js.displaysGrossPrices; }
|
|
139
143
|
});
|
|
140
144
|
Object.defineProperty(exports, "getVariantDisplayName", {
|
|
141
145
|
enumerable: true,
|
|
142
|
-
get: function () { return
|
|
146
|
+
get: function () { return chunk2P4KXFB6_js.getVariantDisplayName; }
|
|
143
147
|
});
|
|
144
148
|
Object.defineProperty(exports, "isCimplifyAsset", {
|
|
145
149
|
enumerable: true,
|
|
146
|
-
get: function () { return
|
|
150
|
+
get: function () { return chunk2P4KXFB6_js.isCimplifyAsset; }
|
|
147
151
|
});
|
|
148
152
|
Object.defineProperty(exports, "isMultiDayService", {
|
|
149
153
|
enumerable: true,
|
|
150
|
-
get: function () { return
|
|
154
|
+
get: function () { return chunk2P4KXFB6_js.isMultiDayService; }
|
|
151
155
|
});
|
|
152
156
|
Object.defineProperty(exports, "priceBasisLabel", {
|
|
153
157
|
enumerable: true,
|
|
154
|
-
get: function () { return
|
|
158
|
+
get: function () { return chunk2P4KXFB6_js.priceBasisLabel; }
|
|
155
159
|
});
|
|
156
160
|
Object.defineProperty(exports, "resolveGallery", {
|
|
157
161
|
enumerable: true,
|
|
158
|
-
get: function () { return
|
|
162
|
+
get: function () { return chunk2P4KXFB6_js.resolveGallery; }
|
|
159
163
|
});
|
|
160
164
|
Object.defineProperty(exports, "serviceBillingMultiplier", {
|
|
161
165
|
enumerable: true,
|
|
162
|
-
get: function () { return
|
|
166
|
+
get: function () { return chunk2P4KXFB6_js.serviceBillingMultiplier; }
|
|
163
167
|
});
|
|
164
168
|
Object.defineProperty(exports, "stayLength", {
|
|
165
169
|
enumerable: true,
|
|
166
|
-
get: function () { return
|
|
170
|
+
get: function () { return chunk2P4KXFB6_js.stayLength; }
|
|
167
171
|
});
|
|
168
172
|
Object.defineProperty(exports, "stayPeriods", {
|
|
169
173
|
enumerable: true,
|
|
170
|
-
get: function () { return
|
|
174
|
+
get: function () { return chunk2P4KXFB6_js.stayPeriods; }
|
|
171
175
|
});
|
|
172
176
|
Object.defineProperty(exports, "isValidPhoneForContext", {
|
|
173
177
|
enumerable: true,
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { BOUNDARY_KIND, CIMPLIFY_CDN_HOSTS, DEFAULT_CDN_BASE_URL, DURATION_UNIT, INPUT_FIELD_TYPE, PRODUCT_TYPE, RENDER_HINT, allGalleryImages, assetUrl, chatMessageCards, getVariantDisplayName, isCimplifyAsset, isMultiDayService, priceBasisLabel, resolveGallery, serviceBillingMultiplier, stayLength, stayPeriods } from './chunk-
|
|
1
|
+
export { BOUNDARY_KIND, CIMPLIFY_CDN_HOSTS, DEFAULT_CDN_BASE_URL, DURATION_UNIT, INPUT_FIELD_TYPE, PRODUCT_TYPE, RENDER_HINT, allGalleryImages, assetUrl, chatMessageCards, displaysGrossPrices, getVariantDisplayName, isCimplifyAsset, isMultiDayService, priceBasisLabel, resolveGallery, serviceBillingMultiplier, stayLength, stayPeriods } from './chunk-3V4DVXV3.mjs';
|
|
2
2
|
export { isValidPhoneForContext, normalizePhoneToE164, resolvePhoneCountryCode } from './chunk-YOIVZ6OA.mjs';
|
|
3
3
|
export { ActivityService, CimplifyClient, DeliveryService, PlacesService, StoreCreditQueries, SubscriptionService, SupportService, UploadService, createCimplifyClient } from './chunk-DKLHCZ5M.mjs';
|
|
4
4
|
import { getAuthorizationEndpoint, DEFAULT_ISSUER, generatePkce, generateState } from './chunk-Z3K2D3TE.mjs';
|
package/dist/mock/cli.mjs
CHANGED
|
@@ -5669,6 +5669,7 @@ function toUICart(registry, cart) {
|
|
|
5669
5669
|
tax_rate: cart.tax_rate,
|
|
5670
5670
|
service_charge_rate: cart.service_charge_rate,
|
|
5671
5671
|
tax_inclusive: false,
|
|
5672
|
+
price_display_mode: "unspecified",
|
|
5672
5673
|
deposit_required: false,
|
|
5673
5674
|
deposit_amount: "0.00"
|
|
5674
5675
|
},
|
|
@@ -5828,6 +5829,7 @@ function createCartService(opts) {
|
|
|
5828
5829
|
tax_jurisdiction_label: label,
|
|
5829
5830
|
tax_inclusive: false,
|
|
5830
5831
|
tax_rate: cart.tax_rate,
|
|
5832
|
+
price_display_mode: "unspecified",
|
|
5831
5833
|
delivery_fee_details: null,
|
|
5832
5834
|
address_info: body.address_info
|
|
5833
5835
|
};
|
package/dist/mock/library.js
CHANGED
|
@@ -4731,6 +4731,7 @@ function toUICart(registry, cart) {
|
|
|
4731
4731
|
tax_rate: cart.tax_rate,
|
|
4732
4732
|
service_charge_rate: cart.service_charge_rate,
|
|
4733
4733
|
tax_inclusive: false,
|
|
4734
|
+
price_display_mode: "unspecified",
|
|
4734
4735
|
deposit_required: false,
|
|
4735
4736
|
deposit_amount: "0.00"
|
|
4736
4737
|
},
|
|
@@ -4890,6 +4891,7 @@ function createCartService(opts) {
|
|
|
4890
4891
|
tax_jurisdiction_label: label,
|
|
4891
4892
|
tax_inclusive: false,
|
|
4892
4893
|
tax_rate: cart.tax_rate,
|
|
4894
|
+
price_display_mode: "unspecified",
|
|
4893
4895
|
delivery_fee_details: null,
|
|
4894
4896
|
address_info: body.address_info
|
|
4895
4897
|
};
|