@cimplify/sdk 0.51.0 → 0.52.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { safe, generateIdempotencyKey, CatalogueQueries, CartOperations, CheckoutService, OrderQueries, LinkService, AuthService, BusinessService, InventoryService, SchedulingService, LiteService, FxService, createElements } from './chunk-FXACV333.mjs';
1
+ import { safe, generateIdempotencyKey, CatalogueQueries, CartOperations, CheckoutService, OrderQueries, LinkService, AuthService, BusinessService, InventoryService, SchedulingService, LiteService, FxService, createElements } from './chunk-OFNVLUH4.mjs';
2
2
  import { CimplifyError, ErrorCode, IdempotencyMismatchError, enrichError } from './chunk-Z2AYLZDF.mjs';
3
3
 
4
4
  // src/activity.ts
@@ -282,14 +282,6 @@ var DEFAULT_RETRY_DELAY_MS = 1e3;
282
282
  function sleep(ms) {
283
283
  return new Promise((resolve) => setTimeout(resolve, ms));
284
284
  }
285
- function nextInit(cacheOptions) {
286
- if (!cacheOptions) return {};
287
- const next = {};
288
- if (cacheOptions.revalidate !== void 0) next.revalidate = cacheOptions.revalidate;
289
- if (cacheOptions.tags && cacheOptions.tags.length > 0) next.tags = [...cacheOptions.tags];
290
- if (next.revalidate === void 0 && !next.tags) return {};
291
- return { next };
292
- }
293
285
  function mergeOptionHeaders(base, opts) {
294
286
  if (!opts) return base;
295
287
  const merged = { ...base };
@@ -706,9 +698,8 @@ var CimplifyClient = class {
706
698
  });
707
699
  throw finalError;
708
700
  }
709
- getDedupeKey(type, payload, cacheOptions) {
710
- const cacheKey = cacheOptions ? `|${JSON.stringify(cacheOptions)}` : "";
711
- return `${type}:${JSON.stringify(payload)}${cacheKey}`;
701
+ getDedupeKey(type, payload) {
702
+ return `${type}:${JSON.stringify(payload)}`;
712
703
  }
713
704
  async deduplicatedRequest(key, requestFn) {
714
705
  const existing = this.inflightRequests.get(key);
@@ -721,14 +712,13 @@ var CimplifyClient = class {
721
712
  this.inflightRequests.set(key, request);
722
713
  return request;
723
714
  }
724
- async get(path, opts) {
725
- const key = this.getDedupeKey("get", path, opts?.cacheOptions);
715
+ async get(path) {
716
+ const key = this.getDedupeKey("get", path);
726
717
  return this.deduplicatedRequest(key, async () => {
727
718
  const response = await this.resilientFetch(this.buildUrl(this.baseUrl, path), {
728
719
  method: "GET",
729
720
  credentials: this.credentials,
730
- headers: this.getHeaders(),
731
- ...nextInit(opts?.cacheOptions)
721
+ headers: this.getHeaders()
732
722
  });
733
723
  return this.handleRestResponse(response);
734
724
  });
@@ -759,14 +749,13 @@ var CimplifyClient = class {
759
749
  });
760
750
  return this.handleRestResponse(response);
761
751
  }
762
- async linkGet(path, opts) {
763
- const key = this.getDedupeKey("linkGet", path, opts?.cacheOptions);
752
+ async linkGet(path) {
753
+ const key = this.getDedupeKey("linkGet", path);
764
754
  return this.deduplicatedRequest(key, async () => {
765
755
  const response = await this.resilientFetch(`${this.linkApiUrl}${path}`, {
766
756
  method: "GET",
767
757
  credentials: this.credentials,
768
- headers: this.getHeaders(),
769
- ...nextInit(opts?.cacheOptions)
758
+ headers: this.getHeaders()
770
759
  });
771
760
  return this.handleRestResponse(response);
772
761
  });
@@ -252,12 +252,12 @@ var CatalogueQueries = class {
252
252
  constructor(client) {
253
253
  this.client = client;
254
254
  }
255
- async getCatalogue(opts) {
256
- const result = await safe(this.client.get("/api/v1/catalogue", opts));
255
+ async getCatalogue() {
256
+ const result = await safe(this.client.get("/api/v1/catalogue"));
257
257
  if (!result.ok) return result;
258
258
  return ok(normalizeCatalogueSnapshot(result.value));
259
259
  }
260
- async getProducts(options, opts) {
260
+ async getProducts(options) {
261
261
  const path = withQuery("/api/v1/catalogue/products", {
262
262
  category_id: options?.category,
263
263
  taxonomy_id: options?.taxonomy,
@@ -275,13 +275,13 @@ var CatalogueQueries = class {
275
275
  cursor: options?.cursor,
276
276
  properties: options?.properties ? JSON.stringify(options.properties) : void 0
277
277
  });
278
- const result = await safe(this.client.get(path, opts));
278
+ const result = await safe(this.client.get(path));
279
279
  if (!result.ok) return result;
280
280
  return ok(normalizeCatalogueResult(result.value));
281
281
  }
282
- async getProduct(id, opts) {
282
+ async getProduct(id) {
283
283
  const encodedId = encodeURIComponent(id);
284
- const result = await safe(this.client.get(`/api/v1/catalogue/products/${encodedId}`, opts));
284
+ const result = await safe(this.client.get(`/api/v1/catalogue/products/${encodedId}`));
285
285
  if (!result.ok) return result;
286
286
  const payload = result.value;
287
287
  const rawProduct = isRecord(payload.item) ? payload.item : payload;
@@ -291,15 +291,15 @@ var CatalogueQueries = class {
291
291
  }
292
292
  const addOnIds = rawProduct.add_on_ids;
293
293
  if (Array.isArray(addOnIds) && addOnIds.length > 0) {
294
- const addOnsResult = await this.getAddOns(product.id, opts);
294
+ const addOnsResult = await this.getAddOns(product.id);
295
295
  if (addOnsResult.ok) {
296
296
  product.add_ons = addOnsResult.value;
297
297
  }
298
298
  }
299
299
  return ok(product);
300
300
  }
301
- async getProductBySlug(slug, opts) {
302
- return this.getProduct(slug, opts);
301
+ async getProductBySlug(slug) {
302
+ return this.getProduct(slug);
303
303
  }
304
304
  async getVariants(productId) {
305
305
  const encodedId = encodeURIComponent(productId);
@@ -327,45 +327,45 @@ var CatalogueQueries = class {
327
327
  )
328
328
  );
329
329
  }
330
- async getAddOns(productId, opts) {
330
+ async getAddOns(productId) {
331
331
  const encodedId = encodeURIComponent(productId);
332
- return safe(this.client.get(`/api/v1/catalogue/products/${encodedId}/add-ons`, opts));
332
+ return safe(this.client.get(`/api/v1/catalogue/products/${encodedId}/add-ons`));
333
333
  }
334
- async getCategories(opts) {
335
- return safe(this.client.get("/api/v1/catalogue/categories", opts));
334
+ async getCategories() {
335
+ return safe(this.client.get("/api/v1/catalogue/categories"));
336
336
  }
337
- async getCategory(id, opts) {
337
+ async getCategory(id) {
338
338
  const encodedId = encodeURIComponent(id);
339
- return safe(this.client.get(`/api/v1/catalogue/categories/${encodedId}`, opts));
339
+ return safe(this.client.get(`/api/v1/catalogue/categories/${encodedId}`));
340
340
  }
341
- async getCategoryBySlug(slug, opts) {
342
- return this.getCategory(slug, opts);
341
+ async getCategoryBySlug(slug) {
342
+ return this.getCategory(slug);
343
343
  }
344
- async getCategoryProducts(categoryId, options, opts) {
344
+ async getCategoryProducts(categoryId, options) {
345
345
  const encodedId = encodeURIComponent(categoryId);
346
346
  const path = withQuery(`/api/v1/catalogue/categories/${encodedId}/products`, {
347
347
  limit: options?.limit,
348
348
  offset: options?.offset
349
349
  });
350
- return safe(this.client.get(path, opts));
350
+ return safe(this.client.get(path));
351
351
  }
352
- async getCollections(opts) {
353
- return safe(this.client.get("/api/v1/catalogue/collections", opts));
352
+ async getCollections() {
353
+ return safe(this.client.get("/api/v1/catalogue/collections"));
354
354
  }
355
- async getCollection(id, opts) {
355
+ async getCollection(id) {
356
356
  const encodedId = encodeURIComponent(id);
357
- return safe(this.client.get(`/api/v1/catalogue/collections/${encodedId}`, opts));
357
+ return safe(this.client.get(`/api/v1/catalogue/collections/${encodedId}`));
358
358
  }
359
- async getCollectionBySlug(slug, opts) {
360
- return this.getCollection(slug, opts);
359
+ async getCollectionBySlug(slug) {
360
+ return this.getCollection(slug);
361
361
  }
362
- async getCollectionProducts(collectionId, options, opts) {
362
+ async getCollectionProducts(collectionId, options) {
363
363
  const encodedId = encodeURIComponent(collectionId);
364
364
  const path = withQuery(`/api/v1/catalogue/collections/${encodedId}/products`, {
365
365
  limit: options?.limit,
366
366
  offset: options?.offset
367
367
  });
368
- return safe(this.client.get(path, opts));
368
+ return safe(this.client.get(path));
369
369
  }
370
370
  async searchCollections(query, limit = 20) {
371
371
  const path = withQuery("/api/v1/catalogue/collections", { search: query, limit });
@@ -490,20 +490,17 @@ var CatalogueQueries = class {
490
490
  })
491
491
  );
492
492
  }
493
- async search(query, options, opts) {
494
- const result = await this.getProducts(
495
- {
496
- ...options,
497
- search: query,
498
- limit: options?.limit ?? 20
499
- },
500
- opts
501
- );
493
+ async search(query, options) {
494
+ const result = await this.getProducts({
495
+ ...options,
496
+ search: query,
497
+ limit: options?.limit ?? 20
498
+ });
502
499
  if (!result.ok) return result;
503
500
  return ok(result.value.items);
504
501
  }
505
- async searchProducts(query, options, opts) {
506
- return this.search(query, options, opts);
502
+ async searchProducts(query, options) {
503
+ return this.search(query, options);
507
504
  }
508
505
  async getMenu(options) {
509
506
  const path = withQuery("/api/v1/catalogue/menu", {
@@ -1958,25 +1955,25 @@ var BusinessService = class {
1958
1955
  constructor(client) {
1959
1956
  this.client = client;
1960
1957
  }
1961
- async getInfo(opts) {
1962
- return safe(this.client.get("/api/v1/business", opts));
1958
+ async getInfo() {
1959
+ return safe(this.client.get("/api/v1/business"));
1963
1960
  }
1964
- async getByHandle(handle, opts) {
1961
+ async getByHandle(handle) {
1965
1962
  const encodedHandle = encodeURIComponent(handle);
1966
- return safe(this.client.get(`/api/v1/business/by-handle/${encodedHandle}`, opts));
1963
+ return safe(this.client.get(`/api/v1/business/by-handle/${encodedHandle}`));
1967
1964
  }
1968
- async getByDomain(domain, opts) {
1965
+ async getByDomain(domain) {
1969
1966
  const encodedDomain = encodeURIComponent(domain);
1970
- return safe(this.client.get(`/api/v1/business/by-domain?domain=${encodedDomain}`, opts));
1967
+ return safe(this.client.get(`/api/v1/business/by-domain?domain=${encodedDomain}`));
1971
1968
  }
1972
- async getSettings(opts) {
1973
- return safe(this.client.get("/api/v1/business/settings", opts));
1969
+ async getSettings() {
1970
+ return safe(this.client.get("/api/v1/business/settings"));
1974
1971
  }
1975
- async getLocations(opts) {
1976
- return safe(this.client.get("/api/v1/business/locations", opts));
1972
+ async getLocations() {
1973
+ return safe(this.client.get("/api/v1/business/locations"));
1977
1974
  }
1978
- async getLocation(locationId, opts) {
1979
- const result = await this.getLocations(opts);
1975
+ async getLocation(locationId) {
1976
+ const result = await this.getLocations();
1980
1977
  if (!result.ok) return err(result.error);
1981
1978
  const location = result.value.find((item) => item.id === locationId);
1982
1979
  if (!location) {
@@ -1984,16 +1981,16 @@ var BusinessService = class {
1984
1981
  }
1985
1982
  return ok(location);
1986
1983
  }
1987
- async getHours(opts) {
1988
- return safe(this.client.get("/api/v1/business/hours", opts));
1984
+ async getHours() {
1985
+ return safe(this.client.get("/api/v1/business/hours"));
1989
1986
  }
1990
- async getLocationHours(locationId, opts) {
1991
- const result = await this.getHours(opts);
1987
+ async getLocationHours(locationId) {
1988
+ const result = await this.getHours();
1992
1989
  if (!result.ok) return result;
1993
1990
  return ok(result.value.filter((hour) => hour.location_id === locationId));
1994
1991
  }
1995
- async getBootstrap(opts) {
1996
- return safe(this.client.get("/api/v1/bootstrap", opts));
1992
+ async getBootstrap() {
1993
+ return safe(this.client.get("/api/v1/bootstrap"));
1997
1994
  }
1998
1995
  };
1999
1996
 
@@ -224,29 +224,29 @@ interface RefreshQuoteResult {
224
224
  declare class CatalogueQueries {
225
225
  private client;
226
226
  constructor(client: CimplifyClient);
227
- getCatalogue(opts?: ReadRequestOptions): Promise<Result<CatalogueSnapshot, CimplifyError>>;
228
- getProducts(options?: GetProductsOptions, opts?: ReadRequestOptions): Promise<Result<CatalogueResult<Product>, CimplifyError>>;
229
- getProduct(id: string, opts?: ReadRequestOptions): Promise<Result<ProductWithDetails, CimplifyError>>;
230
- getProductBySlug(slug: string, opts?: ReadRequestOptions): Promise<Result<ProductWithDetails, CimplifyError>>;
227
+ getCatalogue(): Promise<Result<CatalogueSnapshot, CimplifyError>>;
228
+ getProducts(options?: GetProductsOptions): Promise<Result<CatalogueResult<Product>, CimplifyError>>;
229
+ getProduct(id: string): Promise<Result<ProductWithDetails, CimplifyError>>;
230
+ getProductBySlug(slug: string): Promise<Result<ProductWithDetails, CimplifyError>>;
231
231
  getVariants(productId: string): Promise<Result<ProductVariant[], CimplifyError>>;
232
232
  getVariantAxes(productId: string): Promise<Result<VariantAxis[], CimplifyError>>;
233
233
  getVariantByAxisSelections(productId: string, selections: VariantAxisSelection): Promise<Result<ProductVariant | null, CimplifyError>>;
234
234
  getVariantById(productId: string, variantId: string): Promise<Result<ProductVariant, CimplifyError>>;
235
- getAddOns(productId: string, opts?: ReadRequestOptions): Promise<Result<AddOn[], CimplifyError>>;
236
- getCategories(opts?: ReadRequestOptions): Promise<Result<Category[], CimplifyError>>;
237
- getCategory(id: string, opts?: ReadRequestOptions): Promise<Result<Category, CimplifyError>>;
238
- getCategoryBySlug(slug: string, opts?: ReadRequestOptions): Promise<Result<Category, CimplifyError>>;
235
+ getAddOns(productId: string): Promise<Result<AddOn[], CimplifyError>>;
236
+ getCategories(): Promise<Result<Category[], CimplifyError>>;
237
+ getCategory(id: string): Promise<Result<Category, CimplifyError>>;
238
+ getCategoryBySlug(slug: string): Promise<Result<Category, CimplifyError>>;
239
239
  getCategoryProducts(categoryId: string, options?: {
240
240
  limit?: number;
241
241
  offset?: number;
242
- }, opts?: ReadRequestOptions): Promise<Result<Product[], CimplifyError>>;
243
- getCollections(opts?: ReadRequestOptions): Promise<Result<Collection[], CimplifyError>>;
244
- getCollection(id: string, opts?: ReadRequestOptions): Promise<Result<Collection, CimplifyError>>;
245
- getCollectionBySlug(slug: string, opts?: ReadRequestOptions): Promise<Result<Collection, CimplifyError>>;
242
+ }): Promise<Result<Product[], CimplifyError>>;
243
+ getCollections(): Promise<Result<Collection[], CimplifyError>>;
244
+ getCollection(id: string): Promise<Result<Collection, CimplifyError>>;
245
+ getCollectionBySlug(slug: string): Promise<Result<Collection, CimplifyError>>;
246
246
  getCollectionProducts(collectionId: string, options?: {
247
247
  limit?: number;
248
248
  offset?: number;
249
- }, opts?: ReadRequestOptions): Promise<Result<Product[], CimplifyError>>;
249
+ }): Promise<Result<Product[], CimplifyError>>;
250
250
  searchCollections(query: string, limit?: number): Promise<Result<Collection[], CimplifyError>>;
251
251
  getBundles(): Promise<Result<BundleSummary[], CimplifyError>>;
252
252
  getBundle(id: string): Promise<Result<Bundle, CimplifyError>>;
@@ -274,8 +274,8 @@ declare class CatalogueQueries {
274
274
  getCategoryDeals(categoryId: string): Promise<Result<Deal[], CimplifyError>>;
275
275
  getCollectionDeals(collectionId: string): Promise<Result<Deal[], CimplifyError>>;
276
276
  validateDiscountCode(code: string, orderSubtotal: string, locationId?: string): Promise<Result<DiscountValidation, CimplifyError>>;
277
- search(query: string, options?: Omit<GetProductsOptions, "search">, opts?: ReadRequestOptions): Promise<Result<Product[], CimplifyError>>;
278
- searchProducts(query: string, options?: Omit<GetProductsOptions, "search">, opts?: ReadRequestOptions): Promise<Result<Product[], CimplifyError>>;
277
+ search(query: string, options?: Omit<GetProductsOptions, "search">): Promise<Result<Product[], CimplifyError>>;
278
+ searchProducts(query: string, options?: Omit<GetProductsOptions, "search">): Promise<Result<Product[], CimplifyError>>;
279
279
  getMenu(options?: {
280
280
  category?: string;
281
281
  limit?: number;
@@ -1438,15 +1438,15 @@ interface CategoryInfo {
1438
1438
  declare class BusinessService {
1439
1439
  private client;
1440
1440
  constructor(client: CimplifyClient);
1441
- getInfo(opts?: ReadRequestOptions): Promise<Result<Business, CimplifyError>>;
1442
- getByHandle(handle: string, opts?: ReadRequestOptions): Promise<Result<Business, CimplifyError>>;
1443
- getByDomain(domain: string, opts?: ReadRequestOptions): Promise<Result<Business, CimplifyError>>;
1444
- getSettings(opts?: ReadRequestOptions): Promise<Result<BusinessSettings, CimplifyError>>;
1445
- getLocations(opts?: ReadRequestOptions): Promise<Result<Location[], CimplifyError>>;
1446
- getLocation(locationId: string, opts?: ReadRequestOptions): Promise<Result<Location, CimplifyError>>;
1447
- getHours(opts?: ReadRequestOptions): Promise<Result<BusinessHours[], CimplifyError>>;
1448
- getLocationHours(locationId: string, opts?: ReadRequestOptions): Promise<Result<BusinessHours[], CimplifyError>>;
1449
- getBootstrap(opts?: ReadRequestOptions): Promise<Result<StorefrontBootstrap, CimplifyError>>;
1441
+ getInfo(): Promise<Result<Business, CimplifyError>>;
1442
+ getByHandle(handle: string): Promise<Result<Business, CimplifyError>>;
1443
+ getByDomain(domain: string): Promise<Result<Business, CimplifyError>>;
1444
+ getSettings(): Promise<Result<BusinessSettings, CimplifyError>>;
1445
+ getLocations(): Promise<Result<Location[], CimplifyError>>;
1446
+ getLocation(locationId: string): Promise<Result<Location, CimplifyError>>;
1447
+ getHours(): Promise<Result<BusinessHours[], CimplifyError>>;
1448
+ getLocationHours(locationId: string): Promise<Result<BusinessHours[], CimplifyError>>;
1449
+ getBootstrap(): Promise<Result<StorefrontBootstrap, CimplifyError>>;
1450
1450
  }
1451
1451
 
1452
1452
  type StockStatus = "in_stock" | "low_stock" | "out_of_stock";
@@ -2327,24 +2327,6 @@ interface RequestOptions {
2327
2327
  idempotencyKey?: string;
2328
2328
  headers?: Record<string, string>;
2329
2329
  }
2330
- /**
2331
- * Per-call cache hints for server-side reads. Forwarded as `next: { revalidate, tags }`
2332
- * on the underlying fetch — Next.js's data cache reads them; in non-Next runtimes
2333
- * they're inert. Maps 1:1 onto Next 16's documented fetch caching API:
2334
- * https://nextjs.org/docs/app/api-reference/functions/fetch#optionsnextrevalidate
2335
- *
2336
- * Use the `tags` builders from `@cimplify/sdk/server` so invalidation stays consistent
2337
- * with the `revalidate*` helpers.
2338
- */
2339
- interface CacheOptions {
2340
- /** Seconds before the cache entry is considered stale. `false` = cache indefinitely. */
2341
- revalidate?: number | false;
2342
- /** Cache tags for on-demand invalidation via `revalidateTag(tag)`. */
2343
- tags?: readonly string[];
2344
- }
2345
- interface ReadRequestOptions {
2346
- cacheOptions?: CacheOptions;
2347
- }
2348
2330
  interface CimplifyConfig {
2349
2331
  publicKey?: string;
2350
2332
  credentials?: RequestCredentials;
@@ -2426,11 +2408,11 @@ declare class CimplifyClient {
2426
2408
  private resilientFetch;
2427
2409
  private getDedupeKey;
2428
2410
  private deduplicatedRequest;
2429
- get<T = unknown>(path: string, opts?: ReadRequestOptions): Promise<T>;
2411
+ get<T = unknown>(path: string): Promise<T>;
2430
2412
  post<T = unknown>(path: string, body?: unknown, opts?: RequestOptions): Promise<T>;
2431
2413
  patch<T = unknown>(path: string, body?: unknown, opts?: RequestOptions): Promise<T>;
2432
2414
  delete<T = unknown>(path: string, opts?: RequestOptions): Promise<T>;
2433
- linkGet<T = unknown>(path: string, opts?: ReadRequestOptions): Promise<T>;
2415
+ linkGet<T = unknown>(path: string): Promise<T>;
2434
2416
  linkPost<T = unknown>(path: string, body?: unknown, opts?: RequestOptions): Promise<T>;
2435
2417
  linkDelete<T = unknown>(path: string, opts?: RequestOptions): Promise<T>;
2436
2418
  private handleRestResponse;
@@ -2456,4 +2438,4 @@ declare class CimplifyClient {
2456
2438
  }
2457
2439
  declare function createCimplifyClient(config?: CimplifyConfig): CimplifyClient;
2458
2440
 
2459
- export { type ChatMessage as $, AuthService as A, BusinessService as B, CimplifyClient as C, type AutocompletePrediction as D, type AutocompleteResponse as E, type FetchQuoteInput as F, type GetProductsOptions as G, type PlaceDetailsResponse as H, InventoryService as I, type TrackCategoryViewOptions as J, type SessionMessage as K, LinkService as L, type SessionActivityData as M, type ActivityStateResponse as N, OrderQueries as O, type PriceQuote as P, type QuoteCompositeSelectionInput as Q, type RequestOptions as R, SubscriptionService as S, type TrackProductViewOptions as T, type UpdateProfileInput as U, type ActivityRecommendation as V, type ActivityRecommendationsResponse as W, type DismissMessageResponse as X, DeliveryService as Y, type DeliveryFeeResponse as Z, SupportService as _, type CimplifyConfig as a, unwrap as a$, type ChatConversation as a0, type ChatConversationResponse as a1, type ChatAttachment as a2, type ChatWidgetStarter as a3, type SenderType as a4, type ContentType as a5, type LiteBootstrap as a6, type TableInfo as a7, CimplifyElements as a8, CimplifyElement as a9, PAYMENT_METHOD as aA, CHECKOUT_STEP as aB, PAYMENT_STATE as aC, PICKUP_TIME_TYPE as aD, MOBILE_MONEY_PROVIDER as aE, AUTHORIZATION_TYPE as aF, DEVICE_TYPE as aG, CONTACT_TYPE as aH, LINK_QUERY as aI, LINK_MUTATION as aJ, AUTH_MUTATION as aK, CHECKOUT_MUTATION as aL, PAYMENT_MUTATION as aM, ORDER_MUTATION as aN, DEFAULT_CURRENCY as aO, DEFAULT_COUNTRY as aP, type Result as aQ, type Ok as aR, type Err as aS, ok as aT, err as aU, isOk as aV, isErr as aW, mapResult as aX, mapError as aY, flatMap as aZ, getOrElse as a_, createElements as aa, MESSAGE_TYPES as ab, EVENT_TYPES as ac, ELEMENT_TYPES as ad, type ElementsOptions as ae, type ElementOptions as af, type ElementType as ag, type ElementEventType as ah, type CheckoutMode as ai, type CheckoutOrderType as aj, type CheckoutPaymentMethod as ak, type CheckoutStep as al, type CheckoutFormData as am, type CheckoutResult as an, type NextAction as ao, type ProcessCheckoutOptions as ap, type ProcessCheckoutResult as aq, type ProcessAndResolveOptions as ar, type CheckoutStatus as as, type CheckoutStatusContext as at, type AbortablePromise as au, type MobileMoneyProvider as av, type DeviceType as aw, type ContactType as ax, CHECKOUT_MODE as ay, ORDER_TYPE as az, type ReadRequestOptions as b, type LocationTaxOverrides as b$, toNullable as b0, fromPromise as b1, tryCatch as b2, combine as b3, combineObject as b4, type CatalogueResult as b5, type CatalogueSnapshot as b6, type OrderStatus as b7, type PaymentState as b8, type OrderChannel as b9, type ServiceStatus as bA, type StaffRole as bB, type ReminderMethod as bC, type CustomerServicePreferences as bD, type BufferTimes as bE, type ReminderSettings as bF, type CancellationPolicy as bG, type ServiceNotes as bH, type PricingOverrides as bI, type SchedulingMetadata as bJ, type StaffAssignment as bK, type ResourceAssignment as bL, type SchedulingResult as bM, type DepositResult as bN, type ServiceScheduleRequest as bO, type StaffScheduleItem as bP, type LocationBooking as bQ, type ProviderResolutionSource as bR, type DeliveryFeeDetails as bS, type RelationType as bT, type RelatedProduct as bU, type RelatedCandidate as bV, type RelatedProductsEnrichment as bW, type BusinessType as bX, type BusinessPreferences as bY, type Business as bZ, type LocationTaxBehavior as b_, type LineType as ba, type OrderLineState as bb, type OrderLineStatus as bc, type FulfillmentType as bd, type FulfillmentStatus as be, type FulfillmentLink as bf, type OrderFulfillmentSummary as bg, type FeeBearerType as bh, type AmountToPay as bi, type LineItem as bj, type Order as bk, type OrderHistory as bl, type OrderGroupStatus as bm, type OrderGroupPaymentState as bn, type OrderGroupPaymentStatus as bo, type OrderGroup as bp, type OrderGroupPayment as bq, type OrderSplitDetail as br, type OrderGroupPaymentSummary as bs, type OrderGroupDetails as bt, type OrderPaymentEvent as bu, type OrderFilter as bv, type CheckoutInput as bw, type UpdateOrderStatusInput as bx, type CancelOrderInput as by, type RefundOrderInput as bz, createCimplifyClient as c, type MobileMoneyDetails as c$, type Location as c0, type TimeRange as c1, type TimeRanges as c2, type LocationTimeProfile as c3, type Table as c4, type Room as c5, type ServiceCharge as c6, type StorefrontBootstrap as c7, type BusinessWithLocations as c8, type LocationWithDetails as c9, type StockStatus as cA, type StockLevel as cB, type AvailabilityResult as cC, type Customer as cD, type CustomerAddress as cE, type CustomerMobileMoney as cF, type CustomerLinkPreferences as cG, type LinkData as cH, type CreateAddressInput as cI, type UpdateAddressInput as cJ, type CreateMobileMoneyInput as cK, type EnrollmentData as cL, type AddressData as cM, type MobileMoneyData as cN, type EnrollAndLinkOrderInput as cO, type LinkStatusResult as cP, type LinkEnrollResult as cQ, type EnrollAndLinkOrderResult as cR, type LinkSession as cS, type RevokeSessionResult as cT, type RevokeAllSessionsResult as cU, type RequestOtpInput as cV, type VerifyOtpInput as cW, type AuthResponse as cX, type PickupTimeType as cY, type PickupTime as cZ, type CheckoutAddressInfo as c_, type BusinessSettings as ca, type BusinessHours as cb, type CategoryInfo as cc, type Service as cd, type Staff as ce, type TimeSlot as cf, type SlotResourceInfo as cg, type SlotStaffInfo as ch, type AvailableSlot as ci, type DayAvailability as cj, type BookingStatus as ck, type Booking as cl, type BookingWithDetails as cm, type CustomerBookingServiceItem as cn, type CustomerBooking as co, type GetAvailableSlotsInput as cp, type CheckSlotAvailabilityInput as cq, type CheckSlotAvailabilityResult as cr, type RescheduleBookingInput as cs, type CancelBookingInput as ct, type CancelBookingResult as cu, type BookingModificationType as cv, type RescheduleBookingResult as cw, type ServiceAvailabilityParams as cx, type ServiceAvailabilityResult as cy, type RescheduleHistoryRecord as cz, type CacheOptions as d, type CheckoutCustomerInfo as d0, type FxQuoteRequest as d1, type FxQuote as d2, type FxRateResponse as d3, type RequestContext as d4, type RequestStartEvent as d5, type RequestSuccessEvent as d6, type RequestErrorEvent as d7, type RetryEvent as d8, type SessionChangeEvent as d9, type ObservabilityHooks as da, type OrderType as db, type ElementAppearance as dc, type AddressInfo as dd, type PaymentMethodInfo as de, type AuthenticatedCustomer as df, type ElementsCustomerInfo as dg, type AuthenticatedData as dh, type ElementsCheckoutData as di, type ElementsCheckoutResult as dj, type CheckoutCartItem as dk, type CheckoutCartData as dl, type ParentToIframeMessage as dm, type IframeToParentMessage as dn, type ElementEventHandler as dp, CatalogueQueries as e, type QuoteBundleSelectionInput as f, type RefreshQuoteInput as g, type QuoteStatus as h, type QuoteDynamicBuckets as i, type QuoteUiMessage as j, type RequestSource as k, type RefreshQuoteResult as l, CartOperations as m, type ReorderResult as n, CheckoutService as o, type GetOrdersOptions as p, type AuthStatus as q, type OtpResult as r, SchedulingService as s, LiteService as t, FxService as u, ActivityService as v, UploadService as w, type UploadResult as x, type UploadInitResponse as y, PlacesService as z };
2441
+ export { type ChatConversationResponse as $, AuthService as A, BusinessService as B, CimplifyClient as C, type PlaceDetailsResponse as D, type TrackCategoryViewOptions as E, type FetchQuoteInput as F, type GetProductsOptions as G, type SessionMessage as H, InventoryService as I, type SessionActivityData as J, type ActivityStateResponse as K, LinkService as L, type ActivityRecommendation as M, type ActivityRecommendationsResponse as N, OrderQueries as O, type PriceQuote as P, type QuoteCompositeSelectionInput as Q, type RequestOptions as R, SubscriptionService as S, type TrackProductViewOptions as T, type UpdateProfileInput as U, type DismissMessageResponse as V, DeliveryService as W, type DeliveryFeeResponse as X, SupportService as Y, type ChatMessage as Z, type ChatConversation as _, type CimplifyConfig as a, fromPromise as a$, type ChatAttachment as a0, type ChatWidgetStarter as a1, type SenderType as a2, type ContentType as a3, type LiteBootstrap as a4, type TableInfo as a5, CimplifyElements as a6, CimplifyElement as a7, createElements as a8, MESSAGE_TYPES as a9, PAYMENT_STATE as aA, PICKUP_TIME_TYPE as aB, MOBILE_MONEY_PROVIDER as aC, AUTHORIZATION_TYPE as aD, DEVICE_TYPE as aE, CONTACT_TYPE as aF, LINK_QUERY as aG, LINK_MUTATION as aH, AUTH_MUTATION as aI, CHECKOUT_MUTATION as aJ, PAYMENT_MUTATION as aK, ORDER_MUTATION as aL, DEFAULT_CURRENCY as aM, DEFAULT_COUNTRY as aN, type Result as aO, type Ok as aP, type Err as aQ, ok as aR, err as aS, isOk as aT, isErr as aU, mapResult as aV, mapError as aW, flatMap as aX, getOrElse as aY, unwrap as aZ, toNullable as a_, EVENT_TYPES as aa, ELEMENT_TYPES as ab, type ElementsOptions as ac, type ElementOptions as ad, type ElementType as ae, type ElementEventType as af, type CheckoutMode as ag, type CheckoutOrderType as ah, type CheckoutPaymentMethod as ai, type CheckoutStep as aj, type CheckoutFormData as ak, type CheckoutResult as al, type NextAction as am, type ProcessCheckoutOptions as an, type ProcessCheckoutResult as ao, type ProcessAndResolveOptions as ap, type CheckoutStatus as aq, type CheckoutStatusContext as ar, type AbortablePromise as as, type MobileMoneyProvider as at, type DeviceType as au, type ContactType as av, CHECKOUT_MODE as aw, ORDER_TYPE as ax, PAYMENT_METHOD as ay, CHECKOUT_STEP as az, CatalogueQueries as b, type TimeRange as b$, tryCatch as b0, combine as b1, combineObject as b2, type CatalogueResult as b3, type CatalogueSnapshot as b4, type OrderStatus as b5, type PaymentState as b6, type OrderChannel as b7, type LineType as b8, type OrderLineState as b9, type ReminderMethod as bA, type CustomerServicePreferences as bB, type BufferTimes as bC, type ReminderSettings as bD, type CancellationPolicy as bE, type ServiceNotes as bF, type PricingOverrides as bG, type SchedulingMetadata as bH, type StaffAssignment as bI, type ResourceAssignment as bJ, type SchedulingResult as bK, type DepositResult as bL, type ServiceScheduleRequest as bM, type StaffScheduleItem as bN, type LocationBooking as bO, type ProviderResolutionSource as bP, type DeliveryFeeDetails as bQ, type RelationType as bR, type RelatedProduct as bS, type RelatedCandidate as bT, type RelatedProductsEnrichment as bU, type BusinessType as bV, type BusinessPreferences as bW, type Business as bX, type LocationTaxBehavior as bY, type LocationTaxOverrides as bZ, type Location as b_, type OrderLineStatus as ba, type FulfillmentType as bb, type FulfillmentStatus as bc, type FulfillmentLink as bd, type OrderFulfillmentSummary as be, type FeeBearerType as bf, type AmountToPay as bg, type LineItem as bh, type Order as bi, type OrderHistory as bj, type OrderGroupStatus as bk, type OrderGroupPaymentState as bl, type OrderGroupPaymentStatus as bm, type OrderGroup as bn, type OrderGroupPayment as bo, type OrderSplitDetail as bp, type OrderGroupPaymentSummary as bq, type OrderGroupDetails as br, type OrderPaymentEvent as bs, type OrderFilter as bt, type CheckoutInput as bu, type UpdateOrderStatusInput as bv, type CancelOrderInput as bw, type RefundOrderInput as bx, type ServiceStatus as by, type StaffRole as bz, createCimplifyClient as c, type FxQuoteRequest as c$, type TimeRanges as c0, type LocationTimeProfile as c1, type Table as c2, type Room as c3, type ServiceCharge as c4, type StorefrontBootstrap as c5, type BusinessWithLocations as c6, type LocationWithDetails as c7, type BusinessSettings as c8, type BusinessHours as c9, type AvailabilityResult as cA, type Customer as cB, type CustomerAddress as cC, type CustomerMobileMoney as cD, type CustomerLinkPreferences as cE, type LinkData as cF, type CreateAddressInput as cG, type UpdateAddressInput as cH, type CreateMobileMoneyInput as cI, type EnrollmentData as cJ, type AddressData as cK, type MobileMoneyData as cL, type EnrollAndLinkOrderInput as cM, type LinkStatusResult as cN, type LinkEnrollResult as cO, type EnrollAndLinkOrderResult as cP, type LinkSession as cQ, type RevokeSessionResult as cR, type RevokeAllSessionsResult as cS, type RequestOtpInput as cT, type VerifyOtpInput as cU, type AuthResponse as cV, type PickupTimeType as cW, type PickupTime as cX, type CheckoutAddressInfo as cY, type MobileMoneyDetails as cZ, type CheckoutCustomerInfo as c_, type CategoryInfo as ca, type Service as cb, type Staff as cc, type TimeSlot as cd, type SlotResourceInfo as ce, type SlotStaffInfo as cf, type AvailableSlot as cg, type DayAvailability as ch, type BookingStatus as ci, type Booking as cj, type BookingWithDetails as ck, type CustomerBookingServiceItem as cl, type CustomerBooking as cm, type GetAvailableSlotsInput as cn, type CheckSlotAvailabilityInput as co, type CheckSlotAvailabilityResult as cp, type RescheduleBookingInput as cq, type CancelBookingInput as cr, type CancelBookingResult as cs, type BookingModificationType as ct, type RescheduleBookingResult as cu, type ServiceAvailabilityParams as cv, type ServiceAvailabilityResult as cw, type RescheduleHistoryRecord as cx, type StockStatus as cy, type StockLevel as cz, type QuoteBundleSelectionInput as d, type FxQuote as d0, type FxRateResponse as d1, type RequestContext as d2, type RequestStartEvent as d3, type RequestSuccessEvent as d4, type RequestErrorEvent as d5, type RetryEvent as d6, type SessionChangeEvent as d7, type ObservabilityHooks as d8, type OrderType as d9, type ElementAppearance as da, type AddressInfo as db, type PaymentMethodInfo as dc, type AuthenticatedCustomer as dd, type ElementsCustomerInfo as de, type AuthenticatedData as df, type ElementsCheckoutData as dg, type ElementsCheckoutResult as dh, type CheckoutCartItem as di, type CheckoutCartData as dj, type ParentToIframeMessage as dk, type IframeToParentMessage as dl, type ElementEventHandler as dm, type RefreshQuoteInput as e, type QuoteStatus as f, type QuoteDynamicBuckets as g, type QuoteUiMessage as h, type RequestSource as i, type RefreshQuoteResult as j, CartOperations as k, type ReorderResult as l, CheckoutService as m, type GetOrdersOptions as n, type AuthStatus as o, type OtpResult as p, SchedulingService as q, LiteService as r, FxService as s, ActivityService as t, UploadService as u, type UploadResult as v, type UploadInitResponse as w, PlacesService as x, type AutocompletePrediction as y, type AutocompleteResponse as z };
@@ -224,29 +224,29 @@ interface RefreshQuoteResult {
224
224
  declare class CatalogueQueries {
225
225
  private client;
226
226
  constructor(client: CimplifyClient);
227
- getCatalogue(opts?: ReadRequestOptions): Promise<Result<CatalogueSnapshot, CimplifyError>>;
228
- getProducts(options?: GetProductsOptions, opts?: ReadRequestOptions): Promise<Result<CatalogueResult<Product>, CimplifyError>>;
229
- getProduct(id: string, opts?: ReadRequestOptions): Promise<Result<ProductWithDetails, CimplifyError>>;
230
- getProductBySlug(slug: string, opts?: ReadRequestOptions): Promise<Result<ProductWithDetails, CimplifyError>>;
227
+ getCatalogue(): Promise<Result<CatalogueSnapshot, CimplifyError>>;
228
+ getProducts(options?: GetProductsOptions): Promise<Result<CatalogueResult<Product>, CimplifyError>>;
229
+ getProduct(id: string): Promise<Result<ProductWithDetails, CimplifyError>>;
230
+ getProductBySlug(slug: string): Promise<Result<ProductWithDetails, CimplifyError>>;
231
231
  getVariants(productId: string): Promise<Result<ProductVariant[], CimplifyError>>;
232
232
  getVariantAxes(productId: string): Promise<Result<VariantAxis[], CimplifyError>>;
233
233
  getVariantByAxisSelections(productId: string, selections: VariantAxisSelection): Promise<Result<ProductVariant | null, CimplifyError>>;
234
234
  getVariantById(productId: string, variantId: string): Promise<Result<ProductVariant, CimplifyError>>;
235
- getAddOns(productId: string, opts?: ReadRequestOptions): Promise<Result<AddOn[], CimplifyError>>;
236
- getCategories(opts?: ReadRequestOptions): Promise<Result<Category[], CimplifyError>>;
237
- getCategory(id: string, opts?: ReadRequestOptions): Promise<Result<Category, CimplifyError>>;
238
- getCategoryBySlug(slug: string, opts?: ReadRequestOptions): Promise<Result<Category, CimplifyError>>;
235
+ getAddOns(productId: string): Promise<Result<AddOn[], CimplifyError>>;
236
+ getCategories(): Promise<Result<Category[], CimplifyError>>;
237
+ getCategory(id: string): Promise<Result<Category, CimplifyError>>;
238
+ getCategoryBySlug(slug: string): Promise<Result<Category, CimplifyError>>;
239
239
  getCategoryProducts(categoryId: string, options?: {
240
240
  limit?: number;
241
241
  offset?: number;
242
- }, opts?: ReadRequestOptions): Promise<Result<Product[], CimplifyError>>;
243
- getCollections(opts?: ReadRequestOptions): Promise<Result<Collection[], CimplifyError>>;
244
- getCollection(id: string, opts?: ReadRequestOptions): Promise<Result<Collection, CimplifyError>>;
245
- getCollectionBySlug(slug: string, opts?: ReadRequestOptions): Promise<Result<Collection, CimplifyError>>;
242
+ }): Promise<Result<Product[], CimplifyError>>;
243
+ getCollections(): Promise<Result<Collection[], CimplifyError>>;
244
+ getCollection(id: string): Promise<Result<Collection, CimplifyError>>;
245
+ getCollectionBySlug(slug: string): Promise<Result<Collection, CimplifyError>>;
246
246
  getCollectionProducts(collectionId: string, options?: {
247
247
  limit?: number;
248
248
  offset?: number;
249
- }, opts?: ReadRequestOptions): Promise<Result<Product[], CimplifyError>>;
249
+ }): Promise<Result<Product[], CimplifyError>>;
250
250
  searchCollections(query: string, limit?: number): Promise<Result<Collection[], CimplifyError>>;
251
251
  getBundles(): Promise<Result<BundleSummary[], CimplifyError>>;
252
252
  getBundle(id: string): Promise<Result<Bundle, CimplifyError>>;
@@ -274,8 +274,8 @@ declare class CatalogueQueries {
274
274
  getCategoryDeals(categoryId: string): Promise<Result<Deal[], CimplifyError>>;
275
275
  getCollectionDeals(collectionId: string): Promise<Result<Deal[], CimplifyError>>;
276
276
  validateDiscountCode(code: string, orderSubtotal: string, locationId?: string): Promise<Result<DiscountValidation, CimplifyError>>;
277
- search(query: string, options?: Omit<GetProductsOptions, "search">, opts?: ReadRequestOptions): Promise<Result<Product[], CimplifyError>>;
278
- searchProducts(query: string, options?: Omit<GetProductsOptions, "search">, opts?: ReadRequestOptions): Promise<Result<Product[], CimplifyError>>;
277
+ search(query: string, options?: Omit<GetProductsOptions, "search">): Promise<Result<Product[], CimplifyError>>;
278
+ searchProducts(query: string, options?: Omit<GetProductsOptions, "search">): Promise<Result<Product[], CimplifyError>>;
279
279
  getMenu(options?: {
280
280
  category?: string;
281
281
  limit?: number;
@@ -1438,15 +1438,15 @@ interface CategoryInfo {
1438
1438
  declare class BusinessService {
1439
1439
  private client;
1440
1440
  constructor(client: CimplifyClient);
1441
- getInfo(opts?: ReadRequestOptions): Promise<Result<Business, CimplifyError>>;
1442
- getByHandle(handle: string, opts?: ReadRequestOptions): Promise<Result<Business, CimplifyError>>;
1443
- getByDomain(domain: string, opts?: ReadRequestOptions): Promise<Result<Business, CimplifyError>>;
1444
- getSettings(opts?: ReadRequestOptions): Promise<Result<BusinessSettings, CimplifyError>>;
1445
- getLocations(opts?: ReadRequestOptions): Promise<Result<Location[], CimplifyError>>;
1446
- getLocation(locationId: string, opts?: ReadRequestOptions): Promise<Result<Location, CimplifyError>>;
1447
- getHours(opts?: ReadRequestOptions): Promise<Result<BusinessHours[], CimplifyError>>;
1448
- getLocationHours(locationId: string, opts?: ReadRequestOptions): Promise<Result<BusinessHours[], CimplifyError>>;
1449
- getBootstrap(opts?: ReadRequestOptions): Promise<Result<StorefrontBootstrap, CimplifyError>>;
1441
+ getInfo(): Promise<Result<Business, CimplifyError>>;
1442
+ getByHandle(handle: string): Promise<Result<Business, CimplifyError>>;
1443
+ getByDomain(domain: string): Promise<Result<Business, CimplifyError>>;
1444
+ getSettings(): Promise<Result<BusinessSettings, CimplifyError>>;
1445
+ getLocations(): Promise<Result<Location[], CimplifyError>>;
1446
+ getLocation(locationId: string): Promise<Result<Location, CimplifyError>>;
1447
+ getHours(): Promise<Result<BusinessHours[], CimplifyError>>;
1448
+ getLocationHours(locationId: string): Promise<Result<BusinessHours[], CimplifyError>>;
1449
+ getBootstrap(): Promise<Result<StorefrontBootstrap, CimplifyError>>;
1450
1450
  }
1451
1451
 
1452
1452
  type StockStatus = "in_stock" | "low_stock" | "out_of_stock";
@@ -2327,24 +2327,6 @@ interface RequestOptions {
2327
2327
  idempotencyKey?: string;
2328
2328
  headers?: Record<string, string>;
2329
2329
  }
2330
- /**
2331
- * Per-call cache hints for server-side reads. Forwarded as `next: { revalidate, tags }`
2332
- * on the underlying fetch — Next.js's data cache reads them; in non-Next runtimes
2333
- * they're inert. Maps 1:1 onto Next 16's documented fetch caching API:
2334
- * https://nextjs.org/docs/app/api-reference/functions/fetch#optionsnextrevalidate
2335
- *
2336
- * Use the `tags` builders from `@cimplify/sdk/server` so invalidation stays consistent
2337
- * with the `revalidate*` helpers.
2338
- */
2339
- interface CacheOptions {
2340
- /** Seconds before the cache entry is considered stale. `false` = cache indefinitely. */
2341
- revalidate?: number | false;
2342
- /** Cache tags for on-demand invalidation via `revalidateTag(tag)`. */
2343
- tags?: readonly string[];
2344
- }
2345
- interface ReadRequestOptions {
2346
- cacheOptions?: CacheOptions;
2347
- }
2348
2330
  interface CimplifyConfig {
2349
2331
  publicKey?: string;
2350
2332
  credentials?: RequestCredentials;
@@ -2426,11 +2408,11 @@ declare class CimplifyClient {
2426
2408
  private resilientFetch;
2427
2409
  private getDedupeKey;
2428
2410
  private deduplicatedRequest;
2429
- get<T = unknown>(path: string, opts?: ReadRequestOptions): Promise<T>;
2411
+ get<T = unknown>(path: string): Promise<T>;
2430
2412
  post<T = unknown>(path: string, body?: unknown, opts?: RequestOptions): Promise<T>;
2431
2413
  patch<T = unknown>(path: string, body?: unknown, opts?: RequestOptions): Promise<T>;
2432
2414
  delete<T = unknown>(path: string, opts?: RequestOptions): Promise<T>;
2433
- linkGet<T = unknown>(path: string, opts?: ReadRequestOptions): Promise<T>;
2415
+ linkGet<T = unknown>(path: string): Promise<T>;
2434
2416
  linkPost<T = unknown>(path: string, body?: unknown, opts?: RequestOptions): Promise<T>;
2435
2417
  linkDelete<T = unknown>(path: string, opts?: RequestOptions): Promise<T>;
2436
2418
  private handleRestResponse;
@@ -2456,4 +2438,4 @@ declare class CimplifyClient {
2456
2438
  }
2457
2439
  declare function createCimplifyClient(config?: CimplifyConfig): CimplifyClient;
2458
2440
 
2459
- export { type ChatMessage as $, AuthService as A, BusinessService as B, CimplifyClient as C, type AutocompletePrediction as D, type AutocompleteResponse as E, type FetchQuoteInput as F, type GetProductsOptions as G, type PlaceDetailsResponse as H, InventoryService as I, type TrackCategoryViewOptions as J, type SessionMessage as K, LinkService as L, type SessionActivityData as M, type ActivityStateResponse as N, OrderQueries as O, type PriceQuote as P, type QuoteCompositeSelectionInput as Q, type RequestOptions as R, SubscriptionService as S, type TrackProductViewOptions as T, type UpdateProfileInput as U, type ActivityRecommendation as V, type ActivityRecommendationsResponse as W, type DismissMessageResponse as X, DeliveryService as Y, type DeliveryFeeResponse as Z, SupportService as _, type CimplifyConfig as a, unwrap as a$, type ChatConversation as a0, type ChatConversationResponse as a1, type ChatAttachment as a2, type ChatWidgetStarter as a3, type SenderType as a4, type ContentType as a5, type LiteBootstrap as a6, type TableInfo as a7, CimplifyElements as a8, CimplifyElement as a9, PAYMENT_METHOD as aA, CHECKOUT_STEP as aB, PAYMENT_STATE as aC, PICKUP_TIME_TYPE as aD, MOBILE_MONEY_PROVIDER as aE, AUTHORIZATION_TYPE as aF, DEVICE_TYPE as aG, CONTACT_TYPE as aH, LINK_QUERY as aI, LINK_MUTATION as aJ, AUTH_MUTATION as aK, CHECKOUT_MUTATION as aL, PAYMENT_MUTATION as aM, ORDER_MUTATION as aN, DEFAULT_CURRENCY as aO, DEFAULT_COUNTRY as aP, type Result as aQ, type Ok as aR, type Err as aS, ok as aT, err as aU, isOk as aV, isErr as aW, mapResult as aX, mapError as aY, flatMap as aZ, getOrElse as a_, createElements as aa, MESSAGE_TYPES as ab, EVENT_TYPES as ac, ELEMENT_TYPES as ad, type ElementsOptions as ae, type ElementOptions as af, type ElementType as ag, type ElementEventType as ah, type CheckoutMode as ai, type CheckoutOrderType as aj, type CheckoutPaymentMethod as ak, type CheckoutStep as al, type CheckoutFormData as am, type CheckoutResult as an, type NextAction as ao, type ProcessCheckoutOptions as ap, type ProcessCheckoutResult as aq, type ProcessAndResolveOptions as ar, type CheckoutStatus as as, type CheckoutStatusContext as at, type AbortablePromise as au, type MobileMoneyProvider as av, type DeviceType as aw, type ContactType as ax, CHECKOUT_MODE as ay, ORDER_TYPE as az, type ReadRequestOptions as b, type LocationTaxOverrides as b$, toNullable as b0, fromPromise as b1, tryCatch as b2, combine as b3, combineObject as b4, type CatalogueResult as b5, type CatalogueSnapshot as b6, type OrderStatus as b7, type PaymentState as b8, type OrderChannel as b9, type ServiceStatus as bA, type StaffRole as bB, type ReminderMethod as bC, type CustomerServicePreferences as bD, type BufferTimes as bE, type ReminderSettings as bF, type CancellationPolicy as bG, type ServiceNotes as bH, type PricingOverrides as bI, type SchedulingMetadata as bJ, type StaffAssignment as bK, type ResourceAssignment as bL, type SchedulingResult as bM, type DepositResult as bN, type ServiceScheduleRequest as bO, type StaffScheduleItem as bP, type LocationBooking as bQ, type ProviderResolutionSource as bR, type DeliveryFeeDetails as bS, type RelationType as bT, type RelatedProduct as bU, type RelatedCandidate as bV, type RelatedProductsEnrichment as bW, type BusinessType as bX, type BusinessPreferences as bY, type Business as bZ, type LocationTaxBehavior as b_, type LineType as ba, type OrderLineState as bb, type OrderLineStatus as bc, type FulfillmentType as bd, type FulfillmentStatus as be, type FulfillmentLink as bf, type OrderFulfillmentSummary as bg, type FeeBearerType as bh, type AmountToPay as bi, type LineItem as bj, type Order as bk, type OrderHistory as bl, type OrderGroupStatus as bm, type OrderGroupPaymentState as bn, type OrderGroupPaymentStatus as bo, type OrderGroup as bp, type OrderGroupPayment as bq, type OrderSplitDetail as br, type OrderGroupPaymentSummary as bs, type OrderGroupDetails as bt, type OrderPaymentEvent as bu, type OrderFilter as bv, type CheckoutInput as bw, type UpdateOrderStatusInput as bx, type CancelOrderInput as by, type RefundOrderInput as bz, createCimplifyClient as c, type MobileMoneyDetails as c$, type Location as c0, type TimeRange as c1, type TimeRanges as c2, type LocationTimeProfile as c3, type Table as c4, type Room as c5, type ServiceCharge as c6, type StorefrontBootstrap as c7, type BusinessWithLocations as c8, type LocationWithDetails as c9, type StockStatus as cA, type StockLevel as cB, type AvailabilityResult as cC, type Customer as cD, type CustomerAddress as cE, type CustomerMobileMoney as cF, type CustomerLinkPreferences as cG, type LinkData as cH, type CreateAddressInput as cI, type UpdateAddressInput as cJ, type CreateMobileMoneyInput as cK, type EnrollmentData as cL, type AddressData as cM, type MobileMoneyData as cN, type EnrollAndLinkOrderInput as cO, type LinkStatusResult as cP, type LinkEnrollResult as cQ, type EnrollAndLinkOrderResult as cR, type LinkSession as cS, type RevokeSessionResult as cT, type RevokeAllSessionsResult as cU, type RequestOtpInput as cV, type VerifyOtpInput as cW, type AuthResponse as cX, type PickupTimeType as cY, type PickupTime as cZ, type CheckoutAddressInfo as c_, type BusinessSettings as ca, type BusinessHours as cb, type CategoryInfo as cc, type Service as cd, type Staff as ce, type TimeSlot as cf, type SlotResourceInfo as cg, type SlotStaffInfo as ch, type AvailableSlot as ci, type DayAvailability as cj, type BookingStatus as ck, type Booking as cl, type BookingWithDetails as cm, type CustomerBookingServiceItem as cn, type CustomerBooking as co, type GetAvailableSlotsInput as cp, type CheckSlotAvailabilityInput as cq, type CheckSlotAvailabilityResult as cr, type RescheduleBookingInput as cs, type CancelBookingInput as ct, type CancelBookingResult as cu, type BookingModificationType as cv, type RescheduleBookingResult as cw, type ServiceAvailabilityParams as cx, type ServiceAvailabilityResult as cy, type RescheduleHistoryRecord as cz, type CacheOptions as d, type CheckoutCustomerInfo as d0, type FxQuoteRequest as d1, type FxQuote as d2, type FxRateResponse as d3, type RequestContext as d4, type RequestStartEvent as d5, type RequestSuccessEvent as d6, type RequestErrorEvent as d7, type RetryEvent as d8, type SessionChangeEvent as d9, type ObservabilityHooks as da, type OrderType as db, type ElementAppearance as dc, type AddressInfo as dd, type PaymentMethodInfo as de, type AuthenticatedCustomer as df, type ElementsCustomerInfo as dg, type AuthenticatedData as dh, type ElementsCheckoutData as di, type ElementsCheckoutResult as dj, type CheckoutCartItem as dk, type CheckoutCartData as dl, type ParentToIframeMessage as dm, type IframeToParentMessage as dn, type ElementEventHandler as dp, CatalogueQueries as e, type QuoteBundleSelectionInput as f, type RefreshQuoteInput as g, type QuoteStatus as h, type QuoteDynamicBuckets as i, type QuoteUiMessage as j, type RequestSource as k, type RefreshQuoteResult as l, CartOperations as m, type ReorderResult as n, CheckoutService as o, type GetOrdersOptions as p, type AuthStatus as q, type OtpResult as r, SchedulingService as s, LiteService as t, FxService as u, ActivityService as v, UploadService as w, type UploadResult as x, type UploadInitResponse as y, PlacesService as z };
2441
+ export { type ChatConversationResponse as $, AuthService as A, BusinessService as B, CimplifyClient as C, type PlaceDetailsResponse as D, type TrackCategoryViewOptions as E, type FetchQuoteInput as F, type GetProductsOptions as G, type SessionMessage as H, InventoryService as I, type SessionActivityData as J, type ActivityStateResponse as K, LinkService as L, type ActivityRecommendation as M, type ActivityRecommendationsResponse as N, OrderQueries as O, type PriceQuote as P, type QuoteCompositeSelectionInput as Q, type RequestOptions as R, SubscriptionService as S, type TrackProductViewOptions as T, type UpdateProfileInput as U, type DismissMessageResponse as V, DeliveryService as W, type DeliveryFeeResponse as X, SupportService as Y, type ChatMessage as Z, type ChatConversation as _, type CimplifyConfig as a, fromPromise as a$, type ChatAttachment as a0, type ChatWidgetStarter as a1, type SenderType as a2, type ContentType as a3, type LiteBootstrap as a4, type TableInfo as a5, CimplifyElements as a6, CimplifyElement as a7, createElements as a8, MESSAGE_TYPES as a9, PAYMENT_STATE as aA, PICKUP_TIME_TYPE as aB, MOBILE_MONEY_PROVIDER as aC, AUTHORIZATION_TYPE as aD, DEVICE_TYPE as aE, CONTACT_TYPE as aF, LINK_QUERY as aG, LINK_MUTATION as aH, AUTH_MUTATION as aI, CHECKOUT_MUTATION as aJ, PAYMENT_MUTATION as aK, ORDER_MUTATION as aL, DEFAULT_CURRENCY as aM, DEFAULT_COUNTRY as aN, type Result as aO, type Ok as aP, type Err as aQ, ok as aR, err as aS, isOk as aT, isErr as aU, mapResult as aV, mapError as aW, flatMap as aX, getOrElse as aY, unwrap as aZ, toNullable as a_, EVENT_TYPES as aa, ELEMENT_TYPES as ab, type ElementsOptions as ac, type ElementOptions as ad, type ElementType as ae, type ElementEventType as af, type CheckoutMode as ag, type CheckoutOrderType as ah, type CheckoutPaymentMethod as ai, type CheckoutStep as aj, type CheckoutFormData as ak, type CheckoutResult as al, type NextAction as am, type ProcessCheckoutOptions as an, type ProcessCheckoutResult as ao, type ProcessAndResolveOptions as ap, type CheckoutStatus as aq, type CheckoutStatusContext as ar, type AbortablePromise as as, type MobileMoneyProvider as at, type DeviceType as au, type ContactType as av, CHECKOUT_MODE as aw, ORDER_TYPE as ax, PAYMENT_METHOD as ay, CHECKOUT_STEP as az, CatalogueQueries as b, type TimeRange as b$, tryCatch as b0, combine as b1, combineObject as b2, type CatalogueResult as b3, type CatalogueSnapshot as b4, type OrderStatus as b5, type PaymentState as b6, type OrderChannel as b7, type LineType as b8, type OrderLineState as b9, type ReminderMethod as bA, type CustomerServicePreferences as bB, type BufferTimes as bC, type ReminderSettings as bD, type CancellationPolicy as bE, type ServiceNotes as bF, type PricingOverrides as bG, type SchedulingMetadata as bH, type StaffAssignment as bI, type ResourceAssignment as bJ, type SchedulingResult as bK, type DepositResult as bL, type ServiceScheduleRequest as bM, type StaffScheduleItem as bN, type LocationBooking as bO, type ProviderResolutionSource as bP, type DeliveryFeeDetails as bQ, type RelationType as bR, type RelatedProduct as bS, type RelatedCandidate as bT, type RelatedProductsEnrichment as bU, type BusinessType as bV, type BusinessPreferences as bW, type Business as bX, type LocationTaxBehavior as bY, type LocationTaxOverrides as bZ, type Location as b_, type OrderLineStatus as ba, type FulfillmentType as bb, type FulfillmentStatus as bc, type FulfillmentLink as bd, type OrderFulfillmentSummary as be, type FeeBearerType as bf, type AmountToPay as bg, type LineItem as bh, type Order as bi, type OrderHistory as bj, type OrderGroupStatus as bk, type OrderGroupPaymentState as bl, type OrderGroupPaymentStatus as bm, type OrderGroup as bn, type OrderGroupPayment as bo, type OrderSplitDetail as bp, type OrderGroupPaymentSummary as bq, type OrderGroupDetails as br, type OrderPaymentEvent as bs, type OrderFilter as bt, type CheckoutInput as bu, type UpdateOrderStatusInput as bv, type CancelOrderInput as bw, type RefundOrderInput as bx, type ServiceStatus as by, type StaffRole as bz, createCimplifyClient as c, type FxQuoteRequest as c$, type TimeRanges as c0, type LocationTimeProfile as c1, type Table as c2, type Room as c3, type ServiceCharge as c4, type StorefrontBootstrap as c5, type BusinessWithLocations as c6, type LocationWithDetails as c7, type BusinessSettings as c8, type BusinessHours as c9, type AvailabilityResult as cA, type Customer as cB, type CustomerAddress as cC, type CustomerMobileMoney as cD, type CustomerLinkPreferences as cE, type LinkData as cF, type CreateAddressInput as cG, type UpdateAddressInput as cH, type CreateMobileMoneyInput as cI, type EnrollmentData as cJ, type AddressData as cK, type MobileMoneyData as cL, type EnrollAndLinkOrderInput as cM, type LinkStatusResult as cN, type LinkEnrollResult as cO, type EnrollAndLinkOrderResult as cP, type LinkSession as cQ, type RevokeSessionResult as cR, type RevokeAllSessionsResult as cS, type RequestOtpInput as cT, type VerifyOtpInput as cU, type AuthResponse as cV, type PickupTimeType as cW, type PickupTime as cX, type CheckoutAddressInfo as cY, type MobileMoneyDetails as cZ, type CheckoutCustomerInfo as c_, type CategoryInfo as ca, type Service as cb, type Staff as cc, type TimeSlot as cd, type SlotResourceInfo as ce, type SlotStaffInfo as cf, type AvailableSlot as cg, type DayAvailability as ch, type BookingStatus as ci, type Booking as cj, type BookingWithDetails as ck, type CustomerBookingServiceItem as cl, type CustomerBooking as cm, type GetAvailableSlotsInput as cn, type CheckSlotAvailabilityInput as co, type CheckSlotAvailabilityResult as cp, type RescheduleBookingInput as cq, type CancelBookingInput as cr, type CancelBookingResult as cs, type BookingModificationType as ct, type RescheduleBookingResult as cu, type ServiceAvailabilityParams as cv, type ServiceAvailabilityResult as cw, type RescheduleHistoryRecord as cx, type StockStatus as cy, type StockLevel as cz, type QuoteBundleSelectionInput as d, type FxQuote as d0, type FxRateResponse as d1, type RequestContext as d2, type RequestStartEvent as d3, type RequestSuccessEvent as d4, type RequestErrorEvent as d5, type RetryEvent as d6, type SessionChangeEvent as d7, type ObservabilityHooks as d8, type OrderType as d9, type ElementAppearance as da, type AddressInfo as db, type PaymentMethodInfo as dc, type AuthenticatedCustomer as dd, type ElementsCustomerInfo as de, type AuthenticatedData as df, type ElementsCheckoutData as dg, type ElementsCheckoutResult as dh, type CheckoutCartItem as di, type CheckoutCartData as dj, type ParentToIframeMessage as dk, type IframeToParentMessage as dl, type ElementEventHandler as dm, type RefreshQuoteInput as e, type QuoteStatus as f, type QuoteDynamicBuckets as g, type QuoteUiMessage as h, type RequestSource as i, type RefreshQuoteResult as j, CartOperations as k, type ReorderResult as l, CheckoutService as m, type GetOrdersOptions as n, type AuthStatus as o, type OtpResult as p, SchedulingService as q, LiteService as r, FxService as s, ActivityService as t, UploadService as u, type UploadResult as v, type UploadInitResponse as w, PlacesService as x, type AutocompletePrediction as y, type AutocompleteResponse as z };
@@ -1,4 +1,4 @@
1
- import { C as CimplifyClient } from './client-CF2pmEE9.mjs';
1
+ import { C as CimplifyClient } from './client-C6J_RGlr.mjs';
2
2
  import { C as CreateAppOptions, A as AppHandle } from './server-BgccqOLT.mjs';
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { C as CimplifyClient } from './client-B6x53-Al.js';
1
+ import { C as CimplifyClient } from './client-CX7IFIkL.js';
2
2
  import { C as CreateAppOptions, A as AppHandle } from './server-72rzvJ4Y.js';
3
3
 
4
4
  /**