@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.
- package/dist/advanced.d.mts +1 -1
- package/dist/advanced.d.ts +1 -1
- package/dist/advanced.js +20 -20
- package/dist/advanced.mjs +1 -1
- package/dist/{chunk-QCS6D4XW.mjs → chunk-24FK7VFL.mjs} +1 -1
- package/dist/{chunk-FJQC4VSN.js → chunk-CYGLTD7D.js} +43 -54
- package/dist/{chunk-CAG3TEXO.js → chunk-D22UVSFN.js} +2 -2
- package/dist/{chunk-VOWMB2KR.js → chunk-DR4UPU6P.js} +53 -56
- package/dist/{chunk-GUZXQSGI.mjs → chunk-MBR2DBEN.mjs} +9 -20
- package/dist/{chunk-FXACV333.mjs → chunk-OFNVLUH4.mjs} +53 -56
- package/dist/{client-CF2pmEE9.d.mts → client-C6J_RGlr.d.mts} +27 -45
- package/dist/{client-B6x53-Al.d.ts → client-CX7IFIkL.d.ts} +27 -45
- package/dist/{client-BbrCopIS.d.mts → client-DdefKjcs.d.mts} +1 -1
- package/dist/{client-BvEjhvwq.d.ts → client-Lt7uGLmT.d.ts} +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +61 -61
- package/dist/index.mjs +2 -2
- package/dist/react.d.mts +1 -1
- package/dist/react.d.ts +1 -1
- package/dist/react.js +16 -16
- package/dist/react.mjs +2 -2
- package/dist/server.d.mts +10 -18
- package/dist/server.d.ts +10 -18
- package/dist/server.js +9 -103
- package/dist/server.mjs +4 -98
- package/dist/testing/suite.d.mts +2 -2
- package/dist/testing/suite.d.ts +2 -2
- package/dist/testing/suite.js +22 -22
- package/dist/testing/suite.mjs +3 -3
- package/dist/testing.d.mts +2 -2
- package/dist/testing.d.ts +2 -2
- package/dist/testing.js +78 -78
- package/dist/testing.mjs +4 -4
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { safe, generateIdempotencyKey, CatalogueQueries, CartOperations, CheckoutService, OrderQueries, LinkService, AuthService, BusinessService, InventoryService, SchedulingService, LiteService, FxService, createElements } from './chunk-
|
|
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
|
|
710
|
-
|
|
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
|
|
725
|
-
const key = this.getDedupeKey("get", path
|
|
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
|
|
763
|
-
const key = this.getDedupeKey("linkGet", path
|
|
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(
|
|
256
|
-
const result = await safe(this.client.get("/api/v1/catalogue"
|
|
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
|
|
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
|
|
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
|
|
282
|
+
async getProduct(id) {
|
|
283
283
|
const encodedId = encodeURIComponent(id);
|
|
284
|
-
const result = await safe(this.client.get(`/api/v1/catalogue/products/${encodedId}
|
|
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
|
|
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
|
|
302
|
-
return this.getProduct(slug
|
|
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
|
|
330
|
+
async getAddOns(productId) {
|
|
331
331
|
const encodedId = encodeURIComponent(productId);
|
|
332
|
-
return safe(this.client.get(`/api/v1/catalogue/products/${encodedId}/add-ons
|
|
332
|
+
return safe(this.client.get(`/api/v1/catalogue/products/${encodedId}/add-ons`));
|
|
333
333
|
}
|
|
334
|
-
async getCategories(
|
|
335
|
-
return safe(this.client.get("/api/v1/catalogue/categories"
|
|
334
|
+
async getCategories() {
|
|
335
|
+
return safe(this.client.get("/api/v1/catalogue/categories"));
|
|
336
336
|
}
|
|
337
|
-
async getCategory(id
|
|
337
|
+
async getCategory(id) {
|
|
338
338
|
const encodedId = encodeURIComponent(id);
|
|
339
|
-
return safe(this.client.get(`/api/v1/catalogue/categories/${encodedId}
|
|
339
|
+
return safe(this.client.get(`/api/v1/catalogue/categories/${encodedId}`));
|
|
340
340
|
}
|
|
341
|
-
async getCategoryBySlug(slug
|
|
342
|
-
return this.getCategory(slug
|
|
341
|
+
async getCategoryBySlug(slug) {
|
|
342
|
+
return this.getCategory(slug);
|
|
343
343
|
}
|
|
344
|
-
async getCategoryProducts(categoryId, options
|
|
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
|
|
350
|
+
return safe(this.client.get(path));
|
|
351
351
|
}
|
|
352
|
-
async getCollections(
|
|
353
|
-
return safe(this.client.get("/api/v1/catalogue/collections"
|
|
352
|
+
async getCollections() {
|
|
353
|
+
return safe(this.client.get("/api/v1/catalogue/collections"));
|
|
354
354
|
}
|
|
355
|
-
async getCollection(id
|
|
355
|
+
async getCollection(id) {
|
|
356
356
|
const encodedId = encodeURIComponent(id);
|
|
357
|
-
return safe(this.client.get(`/api/v1/catalogue/collections/${encodedId}
|
|
357
|
+
return safe(this.client.get(`/api/v1/catalogue/collections/${encodedId}`));
|
|
358
358
|
}
|
|
359
|
-
async getCollectionBySlug(slug
|
|
360
|
-
return this.getCollection(slug
|
|
359
|
+
async getCollectionBySlug(slug) {
|
|
360
|
+
return this.getCollection(slug);
|
|
361
361
|
}
|
|
362
|
-
async getCollectionProducts(collectionId, options
|
|
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
|
|
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
|
|
494
|
-
const result = await this.getProducts(
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
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
|
|
506
|
-
return this.search(query, options
|
|
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(
|
|
1962
|
-
return safe(this.client.get("/api/v1/business"
|
|
1958
|
+
async getInfo() {
|
|
1959
|
+
return safe(this.client.get("/api/v1/business"));
|
|
1963
1960
|
}
|
|
1964
|
-
async getByHandle(handle
|
|
1961
|
+
async getByHandle(handle) {
|
|
1965
1962
|
const encodedHandle = encodeURIComponent(handle);
|
|
1966
|
-
return safe(this.client.get(`/api/v1/business/by-handle/${encodedHandle}
|
|
1963
|
+
return safe(this.client.get(`/api/v1/business/by-handle/${encodedHandle}`));
|
|
1967
1964
|
}
|
|
1968
|
-
async getByDomain(domain
|
|
1965
|
+
async getByDomain(domain) {
|
|
1969
1966
|
const encodedDomain = encodeURIComponent(domain);
|
|
1970
|
-
return safe(this.client.get(`/api/v1/business/by-domain?domain=${encodedDomain}
|
|
1967
|
+
return safe(this.client.get(`/api/v1/business/by-domain?domain=${encodedDomain}`));
|
|
1971
1968
|
}
|
|
1972
|
-
async getSettings(
|
|
1973
|
-
return safe(this.client.get("/api/v1/business/settings"
|
|
1969
|
+
async getSettings() {
|
|
1970
|
+
return safe(this.client.get("/api/v1/business/settings"));
|
|
1974
1971
|
}
|
|
1975
|
-
async getLocations(
|
|
1976
|
-
return safe(this.client.get("/api/v1/business/locations"
|
|
1972
|
+
async getLocations() {
|
|
1973
|
+
return safe(this.client.get("/api/v1/business/locations"));
|
|
1977
1974
|
}
|
|
1978
|
-
async getLocation(locationId
|
|
1979
|
-
const result = await this.getLocations(
|
|
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(
|
|
1988
|
-
return safe(this.client.get("/api/v1/business/hours"
|
|
1984
|
+
async getHours() {
|
|
1985
|
+
return safe(this.client.get("/api/v1/business/hours"));
|
|
1989
1986
|
}
|
|
1990
|
-
async getLocationHours(locationId
|
|
1991
|
-
const result = await this.getHours(
|
|
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(
|
|
1996
|
-
return safe(this.client.get("/api/v1/bootstrap"
|
|
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(
|
|
228
|
-
getProducts(options?: GetProductsOptions
|
|
229
|
-
getProduct(id: string
|
|
230
|
-
getProductBySlug(slug: string
|
|
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
|
|
236
|
-
getCategories(
|
|
237
|
-
getCategory(id: string
|
|
238
|
-
getCategoryBySlug(slug: string
|
|
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
|
-
}
|
|
243
|
-
getCollections(
|
|
244
|
-
getCollection(id: string
|
|
245
|
-
getCollectionBySlug(slug: string
|
|
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
|
-
}
|
|
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"
|
|
278
|
-
searchProducts(query: string, options?: Omit<GetProductsOptions, "search"
|
|
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(
|
|
1442
|
-
getByHandle(handle: string
|
|
1443
|
-
getByDomain(domain: string
|
|
1444
|
-
getSettings(
|
|
1445
|
-
getLocations(
|
|
1446
|
-
getLocation(locationId: string
|
|
1447
|
-
getHours(
|
|
1448
|
-
getLocationHours(locationId: string
|
|
1449
|
-
getBootstrap(
|
|
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
|
|
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
|
|
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
|
|
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(
|
|
228
|
-
getProducts(options?: GetProductsOptions
|
|
229
|
-
getProduct(id: string
|
|
230
|
-
getProductBySlug(slug: string
|
|
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
|
|
236
|
-
getCategories(
|
|
237
|
-
getCategory(id: string
|
|
238
|
-
getCategoryBySlug(slug: string
|
|
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
|
-
}
|
|
243
|
-
getCollections(
|
|
244
|
-
getCollection(id: string
|
|
245
|
-
getCollectionBySlug(slug: string
|
|
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
|
-
}
|
|
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"
|
|
278
|
-
searchProducts(query: string, options?: Omit<GetProductsOptions, "search"
|
|
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(
|
|
1442
|
-
getByHandle(handle: string
|
|
1443
|
-
getByDomain(domain: string
|
|
1444
|
-
getSettings(
|
|
1445
|
-
getLocations(
|
|
1446
|
-
getLocation(locationId: string
|
|
1447
|
-
getHours(
|
|
1448
|
-
getLocationHours(locationId: string
|
|
1449
|
-
getBootstrap(
|
|
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
|
|
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
|
|
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
|
|
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 };
|