@cimplify/sdk 0.9.9 → 0.10.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/{ads-MkGm5l1T.d.mts → ads-BxbWrwqp.d.mts} +0 -8
- package/dist/{ads-MkGm5l1T.d.ts → ads-BxbWrwqp.d.ts} +0 -8
- package/dist/advanced.d.mts +2 -2
- package/dist/advanced.d.ts +2 -2
- package/dist/advanced.js +93 -80
- package/dist/advanced.mjs +93 -80
- package/dist/cli.js +184 -0
- package/dist/{client-CYRL8s1S.d.ts → client-BSrq89H1.d.mts} +42 -374
- package/dist/{client-D4EiM667.d.mts → client-xBhdHLq4.d.ts} +42 -374
- package/dist/index.d.mts +6 -10
- package/dist/index.d.ts +6 -10
- package/dist/index.js +98 -126
- package/dist/index.mjs +98 -126
- package/dist/{payment-D58dS_E9.d.mts → payment-CrNyrc-D.d.mts} +145 -94
- package/dist/{payment-D58dS_E9.d.ts → payment-CrNyrc-D.d.ts} +145 -94
- package/dist/price-C9Z-hr49.d.mts +21 -0
- package/dist/price-RKKoTz-9.d.ts +21 -0
- package/dist/react.d.mts +1285 -35
- package/dist/react.d.ts +1285 -35
- package/dist/react.js +6782 -2781
- package/dist/react.mjs +6736 -2783
- package/dist/utils.d.mts +55 -2
- package/dist/utils.d.ts +55 -2
- package/dist/utils.js +23 -20
- package/dist/utils.mjs +23 -20
- package/package.json +13 -3
- package/registry/add-on-selector.json +15 -0
- package/registry/availability-badge.json +15 -0
- package/registry/booking-card.json +16 -0
- package/registry/booking-list.json +16 -0
- package/registry/booking-page.json +18 -0
- package/registry/bookings-page.json +17 -0
- package/registry/bundle-selector.json +15 -0
- package/registry/cart-page.json +17 -0
- package/registry/cart-summary.json +16 -0
- package/registry/catalogue-page.json +18 -0
- package/registry/category-filter.json +15 -0
- package/registry/category-grid.json +15 -0
- package/registry/checkout-page.json +15 -0
- package/registry/cn.json +13 -0
- package/registry/collection-page.json +16 -0
- package/registry/composite-selector.json +15 -0
- package/registry/date-slot-picker.json +16 -0
- package/registry/deal-banner.json +16 -0
- package/registry/deals-page.json +19 -0
- package/registry/discount-input.json +16 -0
- package/registry/index.json +411 -0
- package/registry/order-detail-page.json +16 -0
- package/registry/order-history-page.json +17 -0
- package/registry/order-history.json +16 -0
- package/registry/order-summary.json +16 -0
- package/registry/price.json +13 -0
- package/registry/product-card.json +17 -0
- package/registry/product-customizer.json +20 -0
- package/registry/product-grid.json +16 -0
- package/registry/product-image-gallery.json +13 -0
- package/registry/product-page.json +19 -0
- package/registry/product-sheet.json +18 -0
- package/registry/quantity-selector.json +13 -0
- package/registry/sale-badge.json +16 -0
- package/registry/search-input.json +15 -0
- package/registry/search-page.json +16 -0
- package/registry/service-card.json +16 -0
- package/registry/service-grid.json +16 -0
- package/registry/slot-picker.json +16 -0
- package/registry/staff-picker.json +15 -0
- package/registry/store-nav.json +15 -0
- package/registry/variant-selector.json +15 -0
- package/dist/index-DN_qtwG0.d.mts +0 -320
- package/dist/index-jUGW3oGR.d.ts +0 -320
|
@@ -1,137 +1,58 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { L as Category, r as Product, G as AddOnWithOptions, b as Pagination, g as CimplifyError, s as ProductWithDetails, t as ProductVariant, v as VariantAxis, B as VariantAxisSelection, F as AddOn, O as Collection, W as BundleSummary, U as Bundle, a7 as Composite, ae as ComponentSelectionInput, af as CompositePriceResult, aD as ChosenPrice, am as ProductTaxonomy, an as TaxonomyWithChildren, al as ProductTimeProfile, ao as ProductAvailabilityNow, aq as Deal, ar as ProductDealInfo, as as DiscountValidation, au as TagsResponse, b6 as UICart, aT as Cart, aU as CartItem, ba as CartSummary, b8 as AddToCartInput, b9 as UpdateCartItemInput, aH as DiscountDetails, M as Money, C as CurrencyCode, aS as LineConfiguration, bf as AuthorizationType, bh as PaymentMethod, bj as InitializePaymentResult, bn as SubmitAuthorizationInput, bl as PaymentStatusResponse } from './payment-CrNyrc-D.mjs';
|
|
2
2
|
|
|
3
|
-
/**
|
|
4
|
-
* Observability hooks for monitoring SDK behavior.
|
|
5
|
-
*
|
|
6
|
-
* These hooks allow you to plug in your own logging, metrics, and tracing
|
|
7
|
-
* without the SDK depending on any specific observability library.
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* ```typescript
|
|
11
|
-
* const client = createCimplifyClient({
|
|
12
|
-
* hooks: {
|
|
13
|
-
* onRequestStart: ({ method, path }) => {
|
|
14
|
-
* console.log(`[SDK] ${method} ${path}`);
|
|
15
|
-
* },
|
|
16
|
-
* onRequestSuccess: ({ method, path, durationMs }) => {
|
|
17
|
-
* metrics.histogram('sdk.request.duration', durationMs, { method, path });
|
|
18
|
-
* },
|
|
19
|
-
* onRequestError: ({ method, path, error, retryCount }) => {
|
|
20
|
-
* Sentry.captureException(error, { extra: { method, path, retryCount } });
|
|
21
|
-
* },
|
|
22
|
-
* },
|
|
23
|
-
* });
|
|
24
|
-
* ```
|
|
25
|
-
*/
|
|
26
|
-
/** Context passed to request lifecycle hooks */
|
|
27
3
|
interface RequestContext {
|
|
28
|
-
/** HTTP method */
|
|
29
4
|
method: "GET" | "POST" | "PATCH" | "DELETE";
|
|
30
|
-
/** Request path (e.g., "/api/v1/catalogue", "/api/v1/cart/items") */
|
|
31
5
|
path: string;
|
|
32
|
-
/** Full URL */
|
|
33
6
|
url: string;
|
|
34
|
-
/** Request body (for POST requests) */
|
|
35
7
|
body?: unknown;
|
|
36
|
-
/** Timestamp when request started */
|
|
37
8
|
startTime: number;
|
|
38
9
|
}
|
|
39
|
-
/** Passed when a request starts */
|
|
40
10
|
interface RequestStartEvent extends RequestContext {
|
|
41
11
|
}
|
|
42
|
-
/** Passed when a request succeeds */
|
|
43
12
|
interface RequestSuccessEvent extends RequestContext {
|
|
44
|
-
/** HTTP status code */
|
|
45
13
|
status: number;
|
|
46
|
-
/** Duration in milliseconds */
|
|
47
14
|
durationMs: number;
|
|
48
15
|
}
|
|
49
|
-
/** Passed when a request fails */
|
|
50
16
|
interface RequestErrorEvent extends RequestContext {
|
|
51
|
-
/** The error that occurred */
|
|
52
17
|
error: Error;
|
|
53
|
-
/** HTTP status code (when available) */
|
|
54
18
|
status?: number;
|
|
55
|
-
/** Duration in milliseconds */
|
|
56
19
|
durationMs: number;
|
|
57
|
-
/** Number of retries attempted before giving up */
|
|
58
20
|
retryCount: number;
|
|
59
|
-
/** Whether the error is retryable */
|
|
60
21
|
retryable: boolean;
|
|
61
22
|
}
|
|
62
|
-
/** Passed when a retry is about to happen */
|
|
63
23
|
interface RetryEvent extends RequestContext {
|
|
64
|
-
/** Which retry attempt (1, 2, 3...) */
|
|
65
24
|
attempt: number;
|
|
66
|
-
/** Delay before retry in milliseconds */
|
|
67
25
|
delayMs: number;
|
|
68
|
-
/** The error that triggered the retry */
|
|
69
26
|
error: Error;
|
|
70
27
|
}
|
|
71
|
-
/** Passed when session token changes */
|
|
72
28
|
interface SessionChangeEvent {
|
|
73
|
-
/** Previous token (null if none) */
|
|
74
29
|
previousToken: string | null;
|
|
75
|
-
/** New token (null if cleared) */
|
|
76
30
|
newToken: string | null;
|
|
77
|
-
/** Source of the change */
|
|
78
31
|
source: "response" | "manual" | "clear";
|
|
79
32
|
}
|
|
80
|
-
/**
|
|
81
|
-
* Observability hooks configuration.
|
|
82
|
-
* All hooks are optional - only implement what you need.
|
|
83
|
-
*/
|
|
84
33
|
interface ObservabilityHooks {
|
|
85
|
-
/** Called when a request is about to be sent */
|
|
86
34
|
onRequestStart?: (event: RequestStartEvent) => void;
|
|
87
|
-
/** Called when a request completes successfully */
|
|
88
35
|
onRequestSuccess?: (event: RequestSuccessEvent) => void;
|
|
89
|
-
/** Called when a request fails (4xx/5xx responses or network errors after retries) */
|
|
90
36
|
onRequestError?: (event: RequestErrorEvent) => void;
|
|
91
|
-
/** Called before each retry attempt */
|
|
92
37
|
onRetry?: (event: RetryEvent) => void;
|
|
93
|
-
/** Called when session token changes */
|
|
94
38
|
onSessionChange?: (event: SessionChangeEvent) => void;
|
|
95
39
|
}
|
|
96
40
|
|
|
97
|
-
/** Catalogue listing response with server metadata. */
|
|
98
41
|
interface CatalogueResult<T> {
|
|
99
42
|
items: T[];
|
|
100
|
-
/** true when the full catalogue is returned; false when truncated by server cap. */
|
|
101
43
|
is_complete: boolean;
|
|
102
|
-
/** Total available items before truncation (present when truncated). */
|
|
103
44
|
total_available?: number;
|
|
104
|
-
/** Pagination metadata when listing is paginated. */
|
|
105
45
|
pagination?: Pagination;
|
|
106
46
|
}
|
|
107
|
-
/** Full catalogue envelope (products + categories + add-ons + metadata). */
|
|
108
47
|
interface CatalogueSnapshot {
|
|
109
48
|
categories: Category[];
|
|
110
49
|
products: Product[];
|
|
111
50
|
add_ons: AddOnWithOptions[];
|
|
112
|
-
/** true when the full catalogue is returned; false when truncated by server cap. */
|
|
113
51
|
is_complete: boolean;
|
|
114
|
-
/** Total available products before truncation (present when truncated). */
|
|
115
52
|
total_available?: number;
|
|
116
|
-
/** Pagination metadata when listing is paginated. */
|
|
117
53
|
pagination?: Pagination;
|
|
118
54
|
}
|
|
119
55
|
|
|
120
|
-
/**
|
|
121
|
-
* A Result type that makes errors explicit in the type system.
|
|
122
|
-
* Inspired by Rust's Result and fp-ts Either.
|
|
123
|
-
*
|
|
124
|
-
* @example
|
|
125
|
-
* ```typescript
|
|
126
|
-
* const result = await client.cart.addItemSafe({ item_id: "prod_123" });
|
|
127
|
-
*
|
|
128
|
-
* if (result.ok) {
|
|
129
|
-
* console.log(result.value); // Cart
|
|
130
|
-
* } else {
|
|
131
|
-
* console.log(result.error); // CimplifyError
|
|
132
|
-
* }
|
|
133
|
-
* ```
|
|
134
|
-
*/
|
|
135
56
|
type Result<T, E = Error> = Ok<T> | Err<E>;
|
|
136
57
|
interface Ok<T> {
|
|
137
58
|
readonly ok: true;
|
|
@@ -141,128 +62,19 @@ interface Err<E> {
|
|
|
141
62
|
readonly ok: false;
|
|
142
63
|
readonly error: E;
|
|
143
64
|
}
|
|
144
|
-
/** Create a successful Result */
|
|
145
65
|
declare function ok<T>(value: T): Ok<T>;
|
|
146
|
-
/** Create a failed Result */
|
|
147
66
|
declare function err<E>(error: E): Err<E>;
|
|
148
|
-
/** Check if Result is Ok */
|
|
149
67
|
declare function isOk<T, E>(result: Result<T, E>): result is Ok<T>;
|
|
150
|
-
/** Check if Result is Err */
|
|
151
68
|
declare function isErr<T, E>(result: Result<T, E>): result is Err<E>;
|
|
152
|
-
/**
|
|
153
|
-
* Transform the success value of a Result.
|
|
154
|
-
*
|
|
155
|
-
* @example
|
|
156
|
-
* ```typescript
|
|
157
|
-
* const result = ok(5);
|
|
158
|
-
* const doubled = mapResult(result, (n) => n * 2);
|
|
159
|
-
* // doubled = { ok: true, value: 10 }
|
|
160
|
-
* ```
|
|
161
|
-
*/
|
|
162
69
|
declare function mapResult<T, U, E>(result: Result<T, E>, fn: (value: T) => U): Result<U, E>;
|
|
163
|
-
/**
|
|
164
|
-
* Transform the error value of a Result.
|
|
165
|
-
*
|
|
166
|
-
* @example
|
|
167
|
-
* ```typescript
|
|
168
|
-
* const result = err(new Error("oops"));
|
|
169
|
-
* const mapped = mapError(result, (e) => new CustomError(e.message));
|
|
170
|
-
* ```
|
|
171
|
-
*/
|
|
172
70
|
declare function mapError<T, E, F>(result: Result<T, E>, fn: (error: E) => F): Result<T, F>;
|
|
173
|
-
/**
|
|
174
|
-
* Chain Results together. If the first Result is Ok, apply the function.
|
|
175
|
-
* If it's Err, propagate the error.
|
|
176
|
-
*
|
|
177
|
-
* @example
|
|
178
|
-
* ```typescript
|
|
179
|
-
* const getUser = (id: string): Result<User, Error> => { ... }
|
|
180
|
-
* const getOrders = (user: User): Result<Order[], Error> => { ... }
|
|
181
|
-
*
|
|
182
|
-
* const result = flatMap(getUser("123"), (user) => getOrders(user));
|
|
183
|
-
* ```
|
|
184
|
-
*/
|
|
185
71
|
declare function flatMap<T, U, E>(result: Result<T, E>, fn: (value: T) => Result<U, E>): Result<U, E>;
|
|
186
|
-
/**
|
|
187
|
-
* Get the value or a default if the Result is Err.
|
|
188
|
-
*
|
|
189
|
-
* @example
|
|
190
|
-
* ```typescript
|
|
191
|
-
* const result = err(new Error("failed"));
|
|
192
|
-
* const value = getOrElse(result, () => defaultCart);
|
|
193
|
-
* ```
|
|
194
|
-
*/
|
|
195
72
|
declare function getOrElse<T, E>(result: Result<T, E>, defaultFn: () => T): T;
|
|
196
|
-
/**
|
|
197
|
-
* Get the value or throw the error.
|
|
198
|
-
* Use sparingly - defeats the purpose of Result!
|
|
199
|
-
*
|
|
200
|
-
* @example
|
|
201
|
-
* ```typescript
|
|
202
|
-
* const cart = unwrap(result); // throws if Err
|
|
203
|
-
* ```
|
|
204
|
-
*/
|
|
205
73
|
declare function unwrap<T, E>(result: Result<T, E>): T;
|
|
206
|
-
/**
|
|
207
|
-
* Get the value or undefined if Err.
|
|
208
|
-
*
|
|
209
|
-
* @example
|
|
210
|
-
* ```typescript
|
|
211
|
-
* const cart = toNullable(result); // Cart | undefined
|
|
212
|
-
* ```
|
|
213
|
-
*/
|
|
214
74
|
declare function toNullable<T, E>(result: Result<T, E>): T | undefined;
|
|
215
|
-
/**
|
|
216
|
-
* Convert a Promise that might throw into a Result.
|
|
217
|
-
*
|
|
218
|
-
* @example
|
|
219
|
-
* ```typescript
|
|
220
|
-
* const result = await fromPromise(
|
|
221
|
-
* fetch("/api/data"),
|
|
222
|
-
* (error) => new NetworkError(error.message)
|
|
223
|
-
* );
|
|
224
|
-
* ```
|
|
225
|
-
*/
|
|
226
75
|
declare function fromPromise<T, E>(promise: Promise<T>, mapError: (error: unknown) => E): Promise<Result<T, E>>;
|
|
227
|
-
/**
|
|
228
|
-
* Convert a function that might throw into one that returns Result.
|
|
229
|
-
*
|
|
230
|
-
* @example
|
|
231
|
-
* ```typescript
|
|
232
|
-
* const safeParse = tryCatch(
|
|
233
|
-
* () => JSON.parse(input),
|
|
234
|
-
* (e) => new ParseError(e.message)
|
|
235
|
-
* );
|
|
236
|
-
* ```
|
|
237
|
-
*/
|
|
238
76
|
declare function tryCatch<T, E>(fn: () => T, mapError: (error: unknown) => E): Result<T, E>;
|
|
239
|
-
/**
|
|
240
|
-
* Combine multiple Results. Returns Ok with array of values if all succeed,
|
|
241
|
-
* or the first Err encountered.
|
|
242
|
-
*
|
|
243
|
-
* @example
|
|
244
|
-
* ```typescript
|
|
245
|
-
* const results = await Promise.all([
|
|
246
|
-
* client.cart.getSafe(),
|
|
247
|
-
* client.business.getSafe(),
|
|
248
|
-
* ]);
|
|
249
|
-
* const combined = combine(results);
|
|
250
|
-
* // Result<[Cart, Business], CimplifyError>
|
|
251
|
-
* ```
|
|
252
|
-
*/
|
|
253
77
|
declare function combine<T, E>(results: Result<T, E>[]): Result<T[], E>;
|
|
254
|
-
/**
|
|
255
|
-
* Like combine, but for an object of Results.
|
|
256
|
-
*
|
|
257
|
-
* @example
|
|
258
|
-
* ```typescript
|
|
259
|
-
* const data = combineObject({
|
|
260
|
-
* cart: await client.cart.getSafe(),
|
|
261
|
-
* business: await client.business.getSafe(),
|
|
262
|
-
* });
|
|
263
|
-
* // Result<{ cart: Cart, business: Business }, CimplifyError>
|
|
264
|
-
* ```
|
|
265
|
-
*/
|
|
266
78
|
declare function combineObject<T extends Record<string, Result<unknown, unknown>>>(results: T): Result<{
|
|
267
79
|
[K in keyof T]: T[K] extends Result<infer V, unknown> ? V : never;
|
|
268
80
|
}, T[keyof T] extends Result<unknown, infer E> ? E : never>;
|
|
@@ -270,6 +82,7 @@ declare function combineObject<T extends Record<string, Result<unknown, unknown>
|
|
|
270
82
|
interface GetProductsOptions {
|
|
271
83
|
category?: string;
|
|
272
84
|
collection?: string;
|
|
85
|
+
taxonomy?: string;
|
|
273
86
|
search?: string;
|
|
274
87
|
page?: number;
|
|
275
88
|
limit?: number;
|
|
@@ -319,9 +132,9 @@ interface RefreshQuoteInput {
|
|
|
319
132
|
}
|
|
320
133
|
type QuoteStatus = "pending" | "used" | "expired";
|
|
321
134
|
interface QuoteDynamicBuckets {
|
|
322
|
-
intent
|
|
323
|
-
demand
|
|
324
|
-
inventory
|
|
135
|
+
intent?: string;
|
|
136
|
+
demand?: string;
|
|
137
|
+
inventory?: string;
|
|
325
138
|
competition?: string;
|
|
326
139
|
}
|
|
327
140
|
interface QuoteUiMessage {
|
|
@@ -330,15 +143,20 @@ interface QuoteUiMessage {
|
|
|
330
143
|
text: string;
|
|
331
144
|
countdown_seconds?: number;
|
|
332
145
|
}
|
|
146
|
+
type RequestSource = "web" | "qr_code" | "order_taker" | "ucp_a2a";
|
|
333
147
|
interface PriceQuote {
|
|
334
148
|
quote_id: string;
|
|
335
149
|
business_id: string;
|
|
336
150
|
product_id: string;
|
|
337
151
|
variant_id?: string;
|
|
338
152
|
location_id?: string;
|
|
339
|
-
source:
|
|
153
|
+
source: RequestSource;
|
|
154
|
+
customer_id?: string;
|
|
340
155
|
quantity: number;
|
|
341
156
|
currency?: string;
|
|
157
|
+
snapshot_id?: string;
|
|
158
|
+
snapshot_markup_version?: string;
|
|
159
|
+
snapshot_tax_version?: string;
|
|
342
160
|
item_price_info: ChosenPrice;
|
|
343
161
|
variant_price_info?: ChosenPrice;
|
|
344
162
|
final_price_info: ChosenPrice;
|
|
@@ -379,7 +197,7 @@ declare class CatalogueQueries {
|
|
|
379
197
|
getCollectionBySlug(slug: string): Promise<Result<Collection, CimplifyError>>;
|
|
380
198
|
getCollectionProducts(collectionId: string): Promise<Result<Product[], CimplifyError>>;
|
|
381
199
|
searchCollections(query: string, limit?: number): Promise<Result<Collection[], CimplifyError>>;
|
|
382
|
-
getBundles(): Promise<Result<
|
|
200
|
+
getBundles(): Promise<Result<BundleSummary[], CimplifyError>>;
|
|
383
201
|
searchBundles(query: string, limit?: number): Promise<Result<Bundle[], CimplifyError>>;
|
|
384
202
|
getComposites(options?: {
|
|
385
203
|
limit?: number;
|
|
@@ -388,6 +206,18 @@ declare class CatalogueQueries {
|
|
|
388
206
|
fetchQuote(input: FetchQuoteInput): Promise<Result<PriceQuote, CimplifyError>>;
|
|
389
207
|
getQuote(quoteId: string): Promise<Result<PriceQuote, CimplifyError>>;
|
|
390
208
|
refreshQuote(input: RefreshQuoteInput): Promise<Result<RefreshQuoteResult, CimplifyError>>;
|
|
209
|
+
getTaxonomies(parentId?: string): Promise<Result<ProductTaxonomy[], CimplifyError>>;
|
|
210
|
+
getTaxonomy(id: string): Promise<Result<TaxonomyWithChildren, CimplifyError>>;
|
|
211
|
+
getTaxonomyPath(id: string): Promise<Result<ProductTaxonomy[], CimplifyError>>;
|
|
212
|
+
searchTaxonomies(query: string, limit?: number): Promise<Result<ProductTaxonomy[], CimplifyError>>;
|
|
213
|
+
getProductSchedules(productId: string): Promise<Result<ProductTimeProfile[], CimplifyError>>;
|
|
214
|
+
checkProductAvailableNow(productId: string, locationId: string): Promise<Result<ProductAvailabilityNow, CimplifyError>>;
|
|
215
|
+
getDeals(locationId?: string): Promise<Result<Deal[], CimplifyError>>;
|
|
216
|
+
getProductsOnSale(): Promise<Result<ProductDealInfo[], CimplifyError>>;
|
|
217
|
+
getProductDeals(productId: string): Promise<Result<Deal[], CimplifyError>>;
|
|
218
|
+
getCategoryDeals(categoryId: string): Promise<Result<Deal[], CimplifyError>>;
|
|
219
|
+
getCollectionDeals(collectionId: string): Promise<Result<Deal[], CimplifyError>>;
|
|
220
|
+
validateDiscountCode(code: string, orderSubtotal: string, locationId?: string): Promise<Result<DiscountValidation, CimplifyError>>;
|
|
391
221
|
search(query: string, options?: SearchOptions): Promise<Result<Product[], CimplifyError>>;
|
|
392
222
|
searchProducts(query: string, options?: SearchOptions): Promise<Result<Product[], CimplifyError>>;
|
|
393
223
|
getMenu(options?: {
|
|
@@ -396,6 +226,13 @@ declare class CatalogueQueries {
|
|
|
396
226
|
}): Promise<Result<Product[], CimplifyError>>;
|
|
397
227
|
getMenuCategory(categoryId: string): Promise<Result<Product[], CimplifyError>>;
|
|
398
228
|
getMenuItem(itemId: string): Promise<Result<ProductWithDetails, CimplifyError>>;
|
|
229
|
+
getTags(options?: {
|
|
230
|
+
tag_group?: string;
|
|
231
|
+
search?: string;
|
|
232
|
+
min_usage?: number;
|
|
233
|
+
limit?: number;
|
|
234
|
+
offset?: number;
|
|
235
|
+
}): Promise<Result<TagsResponse, CimplifyError>>;
|
|
399
236
|
}
|
|
400
237
|
|
|
401
238
|
declare class CartOperations {
|
|
@@ -421,24 +258,16 @@ declare class CartOperations {
|
|
|
421
258
|
|
|
422
259
|
type OrderStatus = "pending" | "created" | "confirmed" | "in_preparation" | "ready_to_serve" | "partially_served" | "served" | "delivered" | "picked_up" | "completed" | "cancelled" | "refunded";
|
|
423
260
|
type PaymentState = "not_paid" | "paid" | "partially_refunded" | "refunded";
|
|
424
|
-
type OrderChannel = "qr" | "taker" | "staff" | "web" | "dashboard";
|
|
261
|
+
type OrderChannel = "qr" | "taker" | "staff" | "web" | "dashboard" | "tap";
|
|
425
262
|
type LineType = "product" | "service" | "bundle" | "composite" | "digital";
|
|
426
|
-
type OrderLineState = {
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
} | {
|
|
431
|
-
state: "ready";
|
|
432
|
-
} | {
|
|
433
|
-
state: "partially_served";
|
|
434
|
-
served_quantity: number;
|
|
435
|
-
} | {
|
|
436
|
-
state: "served";
|
|
437
|
-
} | {
|
|
438
|
-
state: "completed";
|
|
263
|
+
type OrderLineState = "pending" | "in_preparation" | "ready" | "served" | "completed" | {
|
|
264
|
+
partially_served: {
|
|
265
|
+
served_quantity: number;
|
|
266
|
+
};
|
|
439
267
|
} | {
|
|
440
|
-
|
|
441
|
-
|
|
268
|
+
cancelled: {
|
|
269
|
+
reason?: string;
|
|
270
|
+
};
|
|
442
271
|
};
|
|
443
272
|
interface OrderLineStatus {
|
|
444
273
|
state: OrderLineState;
|
|
@@ -1093,7 +922,6 @@ interface CheckoutFormData {
|
|
|
1093
922
|
link_address_id?: string;
|
|
1094
923
|
link_payment_method_id?: string;
|
|
1095
924
|
idempotency_key?: string;
|
|
1096
|
-
/** Optional metadata passed through to the payment provider (e.g. success_url, cancel_url) */
|
|
1097
925
|
metadata?: Record<string, unknown>;
|
|
1098
926
|
pay_currency?: CurrencyCode;
|
|
1099
927
|
fx_quote_id?: string;
|
|
@@ -1118,7 +946,6 @@ type NextAction = {
|
|
|
1118
946
|
interface CheckoutResult {
|
|
1119
947
|
order_id: string;
|
|
1120
948
|
order_number: string;
|
|
1121
|
-
/** Token for guest order access. Store this and pass as `?token=` on order endpoints. */
|
|
1122
949
|
bill_token?: string;
|
|
1123
950
|
payment_reference?: string;
|
|
1124
951
|
payment_status: string;
|
|
@@ -1181,7 +1008,6 @@ interface ProcessCheckoutResult {
|
|
|
1181
1008
|
}
|
|
1182
1009
|
interface ProcessAndResolveOptions {
|
|
1183
1010
|
enroll_in_link?: boolean;
|
|
1184
|
-
/** Disable card payment popups (e.g. server-side execution). Defaults to true in browsers. */
|
|
1185
1011
|
allow_popups?: boolean;
|
|
1186
1012
|
poll_interval_ms?: number;
|
|
1187
1013
|
max_poll_attempts?: number;
|
|
@@ -1213,22 +1039,6 @@ interface GetOrdersOptions {
|
|
|
1213
1039
|
limit?: number;
|
|
1214
1040
|
offset?: number;
|
|
1215
1041
|
}
|
|
1216
|
-
/**
|
|
1217
|
-
* Order queries with explicit error handling via Result type.
|
|
1218
|
-
*
|
|
1219
|
-
* All methods return `Result<T, CimplifyError>` - no exceptions thrown.
|
|
1220
|
-
*
|
|
1221
|
-
* @example
|
|
1222
|
-
* ```typescript
|
|
1223
|
-
* const result = await client.orders.list({ status: "pending" });
|
|
1224
|
-
*
|
|
1225
|
-
* if (result.ok) {
|
|
1226
|
-
* console.log("Orders:", result.value);
|
|
1227
|
-
* } else {
|
|
1228
|
-
* console.error("Failed:", result.error.code);
|
|
1229
|
-
* }
|
|
1230
|
-
* ```
|
|
1231
|
-
*/
|
|
1232
1042
|
declare class OrderQueries {
|
|
1233
1043
|
private client;
|
|
1234
1044
|
constructor(client: CimplifyClient);
|
|
@@ -1244,11 +1054,6 @@ interface SuccessResult$1 {
|
|
|
1244
1054
|
success: boolean;
|
|
1245
1055
|
message?: string;
|
|
1246
1056
|
}
|
|
1247
|
-
/**
|
|
1248
|
-
* Cimplify Link service for express checkout with saved customer data.
|
|
1249
|
-
*
|
|
1250
|
-
* All methods return `Result<T, CimplifyError>` - no exceptions thrown.
|
|
1251
|
-
*/
|
|
1252
1057
|
declare class LinkService {
|
|
1253
1058
|
private client;
|
|
1254
1059
|
constructor(client: CimplifyClient);
|
|
@@ -1277,14 +1082,6 @@ declare class LinkService {
|
|
|
1277
1082
|
getSessions(): Promise<Result<LinkSession[], CimplifyError>>;
|
|
1278
1083
|
revokeSession(sessionId: string): Promise<Result<RevokeSessionResult, CimplifyError>>;
|
|
1279
1084
|
revokeAllSessions(): Promise<Result<RevokeAllSessionsResult, CimplifyError>>;
|
|
1280
|
-
getAddressesRest(): Promise<Result<CustomerAddress[], CimplifyError>>;
|
|
1281
|
-
createAddressRest(input: CreateAddressInput): Promise<Result<CustomerAddress, CimplifyError>>;
|
|
1282
|
-
deleteAddressRest(addressId: string): Promise<Result<SuccessResult$1, CimplifyError>>;
|
|
1283
|
-
setDefaultAddressRest(addressId: string): Promise<Result<SuccessResult$1, CimplifyError>>;
|
|
1284
|
-
getMobileMoneyRest(): Promise<Result<CustomerMobileMoney[], CimplifyError>>;
|
|
1285
|
-
createMobileMoneyRest(input: CreateMobileMoneyInput): Promise<Result<CustomerMobileMoney, CimplifyError>>;
|
|
1286
|
-
deleteMobileMoneyRest(mobileMoneyId: string): Promise<Result<SuccessResult$1, CimplifyError>>;
|
|
1287
|
-
setDefaultMobileMoneyRest(mobileMoneyId: string): Promise<Result<SuccessResult$1, CimplifyError>>;
|
|
1288
1085
|
}
|
|
1289
1086
|
|
|
1290
1087
|
interface AuthStatus {
|
|
@@ -1447,7 +1244,6 @@ interface LocationWithDetails extends Location {
|
|
|
1447
1244
|
is_open_now: boolean;
|
|
1448
1245
|
next_open_time?: string;
|
|
1449
1246
|
}
|
|
1450
|
-
/** Settings for frontend display (derived from Business/Location) */
|
|
1451
1247
|
interface BusinessSettings {
|
|
1452
1248
|
accept_online_orders: boolean;
|
|
1453
1249
|
accept_reservations: boolean;
|
|
@@ -1460,7 +1256,6 @@ interface BusinessSettings {
|
|
|
1460
1256
|
tax_rate?: number;
|
|
1461
1257
|
tax_inclusive: boolean;
|
|
1462
1258
|
}
|
|
1463
|
-
/** Business hours (simplified for frontend) */
|
|
1464
1259
|
interface BusinessHours {
|
|
1465
1260
|
business_id: string;
|
|
1466
1261
|
location_id?: string;
|
|
@@ -1469,29 +1264,12 @@ interface BusinessHours {
|
|
|
1469
1264
|
close_time: string;
|
|
1470
1265
|
is_closed: boolean;
|
|
1471
1266
|
}
|
|
1472
|
-
/** Category summary for bootstrap (minimal fields) */
|
|
1473
1267
|
interface CategoryInfo {
|
|
1474
1268
|
id: string;
|
|
1475
1269
|
name: string;
|
|
1476
1270
|
slug: string;
|
|
1477
1271
|
}
|
|
1478
1272
|
|
|
1479
|
-
/**
|
|
1480
|
-
* Business service with explicit error handling via Result type.
|
|
1481
|
-
*
|
|
1482
|
-
* All methods return `Result<T, CimplifyError>` - no exceptions thrown.
|
|
1483
|
-
*
|
|
1484
|
-
* @example
|
|
1485
|
-
* ```typescript
|
|
1486
|
-
* const result = await client.business.getInfo();
|
|
1487
|
-
*
|
|
1488
|
-
* if (result.ok) {
|
|
1489
|
-
* console.log("Business:", result.value.name);
|
|
1490
|
-
* } else {
|
|
1491
|
-
* console.error("Failed:", result.error.code);
|
|
1492
|
-
* }
|
|
1493
|
-
* ```
|
|
1494
|
-
*/
|
|
1495
1273
|
declare class BusinessService {
|
|
1496
1274
|
private client;
|
|
1497
1275
|
constructor(client: CimplifyClient);
|
|
@@ -1499,7 +1277,6 @@ declare class BusinessService {
|
|
|
1499
1277
|
getByHandle(handle: string): Promise<Result<Business, CimplifyError>>;
|
|
1500
1278
|
getByDomain(domain: string): Promise<Result<Business, CimplifyError>>;
|
|
1501
1279
|
getSettings(): Promise<Result<BusinessSettings, CimplifyError>>;
|
|
1502
|
-
getTheme(): Promise<Result<Record<string, unknown>, CimplifyError>>;
|
|
1503
1280
|
getLocations(): Promise<Result<Location[], CimplifyError>>;
|
|
1504
1281
|
getLocation(locationId: string): Promise<Result<Location, CimplifyError>>;
|
|
1505
1282
|
getHours(): Promise<Result<BusinessHours[], CimplifyError>>;
|
|
@@ -1507,36 +1284,7 @@ declare class BusinessService {
|
|
|
1507
1284
|
getBootstrap(): Promise<Result<StorefrontBootstrap, CimplifyError>>;
|
|
1508
1285
|
}
|
|
1509
1286
|
|
|
1510
|
-
type StockOwnershipType = "owned" | "consignment" | "dropship";
|
|
1511
1287
|
type StockStatus = "in_stock" | "low_stock" | "out_of_stock";
|
|
1512
|
-
interface Stock {
|
|
1513
|
-
id: string;
|
|
1514
|
-
business_id: string;
|
|
1515
|
-
name: string;
|
|
1516
|
-
sku?: string;
|
|
1517
|
-
barcode?: string;
|
|
1518
|
-
unit_type: string;
|
|
1519
|
-
unit_cost?: Money;
|
|
1520
|
-
description?: string;
|
|
1521
|
-
image_url?: string;
|
|
1522
|
-
tags?: string[];
|
|
1523
|
-
categories?: string[];
|
|
1524
|
-
is_taxable: boolean;
|
|
1525
|
-
tax_rate?: Money;
|
|
1526
|
-
is_expirable: boolean;
|
|
1527
|
-
ownership_type: StockOwnershipType;
|
|
1528
|
-
quantity_on_hand: Money;
|
|
1529
|
-
quantity_allocated: Money;
|
|
1530
|
-
quantity_reserved: Money;
|
|
1531
|
-
min_order_quantity: Money;
|
|
1532
|
-
reorder_point?: Money;
|
|
1533
|
-
reorder_quantity?: Money;
|
|
1534
|
-
last_counted_at?: string;
|
|
1535
|
-
status: string;
|
|
1536
|
-
created_at: string;
|
|
1537
|
-
updated_at: string;
|
|
1538
|
-
metadata?: Record<string, unknown>;
|
|
1539
|
-
}
|
|
1540
1288
|
interface StockLevel {
|
|
1541
1289
|
product_id: string;
|
|
1542
1290
|
variant_id?: string;
|
|
@@ -1573,12 +1321,6 @@ interface LocationStock {
|
|
|
1573
1321
|
available_quantity: number;
|
|
1574
1322
|
status: StockStatus;
|
|
1575
1323
|
}
|
|
1576
|
-
interface AvailabilityCheck {
|
|
1577
|
-
product_id: string;
|
|
1578
|
-
variant_id?: string;
|
|
1579
|
-
location_id?: string;
|
|
1580
|
-
requested_quantity: number;
|
|
1581
|
-
}
|
|
1582
1324
|
interface AvailabilityResult {
|
|
1583
1325
|
product_id: string;
|
|
1584
1326
|
variant_id?: string;
|
|
@@ -1587,35 +1329,11 @@ interface AvailabilityResult {
|
|
|
1587
1329
|
requested_quantity: number;
|
|
1588
1330
|
shortfall?: number;
|
|
1589
1331
|
}
|
|
1590
|
-
interface InventorySummary {
|
|
1591
|
-
total_products: number;
|
|
1592
|
-
in_stock_count: number;
|
|
1593
|
-
low_stock_count: number;
|
|
1594
|
-
out_of_stock_count: number;
|
|
1595
|
-
total_value?: Money;
|
|
1596
|
-
}
|
|
1597
1332
|
|
|
1598
|
-
/**
|
|
1599
|
-
* Inventory service with explicit error handling via Result type.
|
|
1600
|
-
*
|
|
1601
|
-
* All methods return `Result<T, CimplifyError>` - no exceptions thrown.
|
|
1602
|
-
*
|
|
1603
|
-
* @example
|
|
1604
|
-
* ```typescript
|
|
1605
|
-
* const result = await client.inventory.isInStock("prod_123");
|
|
1606
|
-
*
|
|
1607
|
-
* if (result.ok) {
|
|
1608
|
-
* console.log("In stock:", result.value);
|
|
1609
|
-
* } else {
|
|
1610
|
-
* console.error("Failed:", result.error.code);
|
|
1611
|
-
* }
|
|
1612
|
-
* ```
|
|
1613
|
-
*/
|
|
1614
1333
|
declare class InventoryService {
|
|
1615
1334
|
private client;
|
|
1616
1335
|
constructor(client: CimplifyClient);
|
|
1617
1336
|
private withQuery;
|
|
1618
|
-
getStockLevels(): Promise<Result<StockLevel[], CimplifyError>>;
|
|
1619
1337
|
getProductStock(productId: string, locationId?: string): Promise<Result<ProductStock, CimplifyError>>;
|
|
1620
1338
|
getVariantStock(variantId: string, locationId?: string): Promise<Result<StockLevel, CimplifyError>>;
|
|
1621
1339
|
checkProductAvailability(productId: string, quantity: number, locationId?: string): Promise<Result<AvailabilityResult, CimplifyError>>;
|
|
@@ -1625,7 +1343,6 @@ declare class InventoryService {
|
|
|
1625
1343
|
variant_id?: string;
|
|
1626
1344
|
quantity: number;
|
|
1627
1345
|
}[], locationId?: string): Promise<Result<AvailabilityResult[], CimplifyError>>;
|
|
1628
|
-
getSummary(): Promise<Result<InventorySummary, CimplifyError>>;
|
|
1629
1346
|
isInStock(productId: string, locationId?: string): Promise<Result<boolean, CimplifyError>>;
|
|
1630
1347
|
getAvailableQuantity(productId: string, locationId?: string): Promise<Result<number, CimplifyError>>;
|
|
1631
1348
|
}
|
|
@@ -1675,8 +1392,7 @@ interface AvailableSlot extends TimeSlot {
|
|
|
1675
1392
|
interface DayAvailability {
|
|
1676
1393
|
date: string;
|
|
1677
1394
|
slots: TimeSlot[];
|
|
1678
|
-
has_availability
|
|
1679
|
-
is_fully_booked?: boolean;
|
|
1395
|
+
has_availability: boolean;
|
|
1680
1396
|
}
|
|
1681
1397
|
type BookingStatus = "pending" | "confirmed" | "in_progress" | "completed" | "cancelled" | "no_show" | string;
|
|
1682
1398
|
interface Booking {
|
|
@@ -1785,26 +1501,17 @@ interface ServiceAvailabilityParams {
|
|
|
1785
1501
|
}
|
|
1786
1502
|
interface ServiceAvailabilityResult {
|
|
1787
1503
|
service_id: string;
|
|
1788
|
-
location_id
|
|
1504
|
+
location_id: string;
|
|
1789
1505
|
start_date: string;
|
|
1790
1506
|
end_date: string;
|
|
1791
1507
|
participant_count: number;
|
|
1792
1508
|
availability: DayAvailability[];
|
|
1793
|
-
days?: DayAvailability[];
|
|
1794
1509
|
}
|
|
1795
1510
|
|
|
1796
|
-
/**
|
|
1797
|
-
* Scheduling service with explicit error handling via Result type.
|
|
1798
|
-
*
|
|
1799
|
-
* All methods return `Result<T, CimplifyError>` - no exceptions thrown.
|
|
1800
|
-
*/
|
|
1801
1511
|
declare class SchedulingService {
|
|
1802
1512
|
private client;
|
|
1803
1513
|
constructor(client: CimplifyClient);
|
|
1804
1514
|
getServices(): Promise<Result<Service[], CimplifyError>>;
|
|
1805
|
-
/**
|
|
1806
|
-
* Get a specific service by ID.
|
|
1807
|
-
*/
|
|
1808
1515
|
getService(serviceId: string): Promise<Result<Service | null, CimplifyError>>;
|
|
1809
1516
|
getAvailableSlots(input: GetAvailableSlotsInput): Promise<Result<AvailableSlot[], CimplifyError>>;
|
|
1810
1517
|
checkSlotAvailability(input: CheckSlotAvailabilityInput): Promise<Result<CheckSlotAvailabilityResult, CimplifyError>>;
|
|
@@ -1817,7 +1524,6 @@ declare class SchedulingService {
|
|
|
1817
1524
|
rescheduleBooking(input: RescheduleBookingInput): Promise<Result<RescheduleBookingResult, CimplifyError>>;
|
|
1818
1525
|
getNextAvailableSlot(serviceId: string, fromDate?: string): Promise<Result<AvailableSlot | null, CimplifyError>>;
|
|
1819
1526
|
hasAvailabilityOn(serviceId: string, date: string): Promise<Result<boolean, CimplifyError>>;
|
|
1820
|
-
getBookingLegacy(bookingId: string): Promise<Result<Booking, CimplifyError>>;
|
|
1821
1527
|
}
|
|
1822
1528
|
|
|
1823
1529
|
interface LiteBootstrapBusiness {
|
|
@@ -1851,11 +1557,6 @@ interface LiteTableResponse {
|
|
|
1851
1557
|
tab: Record<string, unknown> | null;
|
|
1852
1558
|
}
|
|
1853
1559
|
type TableInfo = LiteTableResponse;
|
|
1854
|
-
/**
|
|
1855
|
-
* Lite service for QR code ordering with explicit error handling via Result type.
|
|
1856
|
-
*
|
|
1857
|
-
* All methods return `Result<T, CimplifyError>` - no exceptions thrown.
|
|
1858
|
-
*/
|
|
1859
1560
|
declare class LiteService {
|
|
1860
1561
|
private client;
|
|
1861
1562
|
constructor(client: CimplifyClient);
|
|
@@ -2227,19 +1928,12 @@ declare function createElements(client: CimplifyClient, businessId?: string, opt
|
|
|
2227
1928
|
interface CimplifyConfig {
|
|
2228
1929
|
publicKey?: string;
|
|
2229
1930
|
credentials?: RequestCredentials;
|
|
2230
|
-
/** Override storefront base URL (default auto-derives by hostname). */
|
|
2231
1931
|
baseUrl?: string;
|
|
2232
|
-
/** Override Link/API base URL (default auto-derives by hostname). */
|
|
2233
1932
|
linkApiUrl?: string;
|
|
2234
|
-
/** Disable console warning when no public key is provided (for Link REST-only portal usage). */
|
|
2235
1933
|
suppressPublicKeyWarning?: boolean;
|
|
2236
|
-
/** Request timeout in milliseconds (default: 30000) */
|
|
2237
1934
|
timeout?: number;
|
|
2238
|
-
/** Maximum retry attempts for retryable errors (default: 3) */
|
|
2239
1935
|
maxRetries?: number;
|
|
2240
|
-
/** Base delay between retries in milliseconds (default: 1000) */
|
|
2241
1936
|
retryDelay?: number;
|
|
2242
|
-
/** Observability hooks for logging, metrics, and tracing */
|
|
2243
1937
|
hooks?: ObservabilityHooks;
|
|
2244
1938
|
}
|
|
2245
1939
|
declare class CimplifyClient {
|
|
@@ -2257,7 +1951,6 @@ declare class CimplifyClient {
|
|
|
2257
1951
|
private businessId;
|
|
2258
1952
|
private businessIdResolvePromise;
|
|
2259
1953
|
private inflightRequests;
|
|
2260
|
-
/** Build a full URL, appending context params (e.g. location_id) as query parameters. */
|
|
2261
1954
|
private buildUrl;
|
|
2262
1955
|
private _catalogue?;
|
|
2263
1956
|
private _cart?;
|
|
@@ -2271,10 +1964,6 @@ declare class CimplifyClient {
|
|
|
2271
1964
|
private _lite?;
|
|
2272
1965
|
private _fx?;
|
|
2273
1966
|
constructor(config?: CimplifyConfig);
|
|
2274
|
-
/** @deprecated Use getAccessToken() instead */
|
|
2275
|
-
getSessionToken(): string | null;
|
|
2276
|
-
/** @deprecated Use setAccessToken() instead */
|
|
2277
|
-
setSessionToken(token: string | null): void;
|
|
2278
1967
|
getAccessToken(): string | null;
|
|
2279
1968
|
getPublicKey(): string;
|
|
2280
1969
|
isTestMode(): boolean;
|
|
@@ -2284,16 +1973,9 @@ declare class CimplifyClient {
|
|
|
2284
1973
|
getOrderToken(orderId: string): string | null;
|
|
2285
1974
|
clearOrderTokens(): void;
|
|
2286
1975
|
setLocationId(locationId: string | null): void;
|
|
2287
|
-
/** Get the currently active location ID */
|
|
2288
1976
|
getLocationId(): string | null;
|
|
2289
|
-
/** Cache a resolved business ID for future element/checkouts initialization. */
|
|
2290
1977
|
setBusinessId(businessId: string): void;
|
|
2291
|
-
/** Get cached business ID if available. */
|
|
2292
1978
|
getBusinessId(): string | null;
|
|
2293
|
-
/**
|
|
2294
|
-
* Resolve business ID from public key once and cache it.
|
|
2295
|
-
* Subsequent calls return the cached value (or shared in-flight promise).
|
|
2296
|
-
*/
|
|
2297
1979
|
resolveBusinessId(): Promise<string>;
|
|
2298
1980
|
private loadAccessToken;
|
|
2299
1981
|
private saveAccessToken;
|
|
@@ -2323,22 +2005,8 @@ declare class CimplifyClient {
|
|
|
2323
2005
|
get scheduling(): SchedulingService;
|
|
2324
2006
|
get lite(): LiteService;
|
|
2325
2007
|
get fx(): FxService;
|
|
2326
|
-
/**
|
|
2327
|
-
* Create a CimplifyElements instance for embedding checkout components.
|
|
2328
|
-
* Like Stripe's stripe.elements().
|
|
2329
|
-
*
|
|
2330
|
-
* @param businessId - The business ID for checkout context
|
|
2331
|
-
* @param options - Optional configuration for elements
|
|
2332
|
-
*
|
|
2333
|
-
* @example
|
|
2334
|
-
* ```ts
|
|
2335
|
-
* const elements = client.elements('bus_xxx');
|
|
2336
|
-
* const authElement = elements.create('auth');
|
|
2337
|
-
* authElement.mount('#auth-container');
|
|
2338
|
-
* ```
|
|
2339
|
-
*/
|
|
2340
2008
|
elements(businessId?: string, options?: ElementsOptions): CimplifyElements;
|
|
2341
2009
|
}
|
|
2342
2010
|
declare function createCimplifyClient(config?: CimplifyConfig): CimplifyClient;
|
|
2343
2011
|
|
|
2344
|
-
export { type
|
|
2012
|
+
export { type CheckoutStatus as $, AuthService as A, BusinessService as B, CimplifyClient as C, type ElementEventType as D, EVENT_TYPES as E, type FetchQuoteInput as F, type GetProductsOptions as G, type CheckoutMode as H, InventoryService as I, type CheckoutOrderType as J, type CheckoutPaymentMethod as K, LinkService as L, MESSAGE_TYPES as M, type CheckoutStep as N, OrderQueries as O, type PriceQuote as P, type QuoteCompositeSelectionInput as Q, type RefreshQuoteInput as R, type SearchOptions as S, type TableInfo as T, type UpdateProfileInput as U, type CheckoutFormData as V, type CheckoutResult as W, type NextAction as X, type ProcessCheckoutOptions as Y, type ProcessCheckoutResult as Z, type ProcessAndResolveOptions as _, type CimplifyConfig as a, type OrderPaymentEvent as a$, type CheckoutStatusContext as a0, type AbortablePromise as a1, type MobileMoneyProvider as a2, type DeviceType as a3, type ContactType as a4, CHECKOUT_MODE as a5, ORDER_TYPE as a6, PAYMENT_METHOD as a7, CHECKOUT_STEP as a8, PAYMENT_STATE as a9, fromPromise as aA, tryCatch as aB, combine as aC, combineObject as aD, type CatalogueResult as aE, type CatalogueSnapshot as aF, type OrderStatus as aG, type PaymentState as aH, type OrderChannel as aI, type LineType as aJ, type OrderLineState as aK, type OrderLineStatus as aL, type FulfillmentType as aM, type FulfillmentStatus as aN, type FulfillmentLink as aO, type OrderFulfillmentSummary as aP, type FeeBearerType as aQ, type AmountToPay as aR, type LineItem as aS, type Order as aT, type OrderHistory as aU, type OrderGroupPaymentState as aV, type OrderGroup as aW, type OrderGroupPayment as aX, type OrderSplitDetail as aY, type OrderGroupPaymentSummary as aZ, type OrderGroupDetails as a_, PICKUP_TIME_TYPE as aa, MOBILE_MONEY_PROVIDER as ab, AUTHORIZATION_TYPE as ac, DEVICE_TYPE as ad, CONTACT_TYPE as ae, LINK_QUERY as af, LINK_MUTATION as ag, AUTH_MUTATION as ah, CHECKOUT_MUTATION as ai, PAYMENT_MUTATION as aj, ORDER_MUTATION as ak, DEFAULT_CURRENCY as al, DEFAULT_COUNTRY as am, type Result as an, type Ok as ao, type Err as ap, ok as aq, err as ar, isOk as as, isErr as at, mapResult as au, mapError as av, flatMap as aw, getOrElse as ax, unwrap as ay, toNullable as az, CatalogueQueries as b, type LocationStock as b$, type OrderFilter as b0, type CheckoutInput as b1, type UpdateOrderStatusInput as b2, type CancelOrderInput as b3, type RefundOrderInput as b4, type ServiceStatus as b5, type StaffRole as b6, type ReminderMethod as b7, type CustomerServicePreferences as b8, type BufferTimes as b9, type LocationWithDetails as bA, type BusinessSettings as bB, type BusinessHours as bC, type CategoryInfo as bD, type Service as bE, type Staff as bF, type TimeSlot as bG, type AvailableSlot as bH, type DayAvailability as bI, type BookingStatus as bJ, type Booking as bK, type BookingWithDetails as bL, type CustomerBookingServiceItem as bM, type CustomerBooking as bN, type GetAvailableSlotsInput as bO, type CheckSlotAvailabilityInput as bP, type CheckSlotAvailabilityResult as bQ, type RescheduleBookingInput as bR, type CancelBookingInput as bS, type CancelBookingResult as bT, type RescheduleBookingResult as bU, type ServiceAvailabilityParams as bV, type ServiceAvailabilityResult as bW, type StockStatus as bX, type StockLevel as bY, type ProductStock as bZ, type VariantStock as b_, type ReminderSettings as ba, type CancellationPolicy as bb, type ServiceNotes as bc, type PricingOverrides as bd, type SchedulingMetadata as be, type StaffAssignment as bf, type ResourceAssignment as bg, type SchedulingResult as bh, type DepositResult as bi, type ServiceScheduleRequest as bj, type StaffScheduleItem as bk, type LocationAppointment as bl, type BusinessType as bm, type BusinessPreferences as bn, type Business as bo, type LocationTaxBehavior as bp, type LocationTaxOverrides as bq, type Location as br, type TimeRange as bs, type TimeRanges as bt, type LocationTimeProfile as bu, type Table as bv, type Room as bw, type ServiceCharge as bx, type StorefrontBootstrap as by, type BusinessWithLocations as bz, createCimplifyClient as c, type AvailabilityResult as c0, type Customer as c1, type CustomerAddress as c2, type CustomerMobileMoney as c3, type CustomerLinkPreferences as c4, type LinkData as c5, type CreateAddressInput as c6, type UpdateAddressInput as c7, type CreateMobileMoneyInput as c8, type EnrollmentData as c9, type ObservabilityHooks as cA, type OrderType as cB, type ElementAppearance as cC, type AddressInfo as cD, type PaymentMethodInfo as cE, type AuthenticatedCustomer as cF, type ElementsCustomerInfo as cG, type AuthenticatedData as cH, type ElementsCheckoutData as cI, type ElementsCheckoutResult as cJ, type CheckoutCartItem as cK, type CheckoutCartData as cL, type ParentToIframeMessage as cM, type IframeToParentMessage as cN, type ElementEventHandler as cO, type AddressData as ca, type MobileMoneyData as cb, type EnrollAndLinkOrderInput as cc, type LinkStatusResult as cd, type LinkEnrollResult as ce, type EnrollAndLinkOrderResult as cf, type LinkSession as cg, type RevokeSessionResult as ch, type RevokeAllSessionsResult as ci, type RequestOtpInput as cj, type VerifyOtpInput as ck, type AuthResponse as cl, type PickupTimeType as cm, type PickupTime as cn, type CheckoutAddressInfo as co, type MobileMoneyDetails as cp, type CheckoutCustomerInfo as cq, type FxQuoteRequest as cr, type FxQuote as cs, type FxRateResponse as ct, type RequestContext as cu, type RequestStartEvent as cv, type RequestSuccessEvent as cw, type RequestErrorEvent as cx, type RetryEvent as cy, type SessionChangeEvent as cz, type QuoteBundleSelectionInput as d, type QuoteStatus as e, type QuoteDynamicBuckets as f, type QuoteUiMessage as g, type RequestSource as h, type RefreshQuoteResult as i, CartOperations as j, CheckoutService as k, generateIdempotencyKey as l, type GetOrdersOptions as m, type AuthStatus as n, type OtpResult as o, SchedulingService as p, LiteService as q, FxService as r, type LiteBootstrap as s, CimplifyElements as t, CimplifyElement as u, createElements as v, ELEMENT_TYPES as w, type ElementsOptions as x, type ElementOptions as y, type ElementType as z };
|