@cimplify/sdk 0.68.0 → 0.69.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/{chunk-TAKORJP4.mjs → chunk-5UYNERYE.mjs} +1 -1
- package/dist/{chunk-SXGFJEME.js → chunk-I4MP2XZS.js} +73 -7
- package/dist/{chunk-FVGVJ4TC.mjs → chunk-O3ECKVOM.mjs} +73 -7
- package/dist/{chunk-NGQCWFKF.js → chunk-TBSDZN2W.js} +2 -2
- package/dist/{client-CfeQRwhl.d.ts → client-CO2s-kxY.d.ts} +33 -17
- package/dist/{client-DlXfZy7N.d.ts → client-DUpz-PGs.d.ts} +1 -1
- package/dist/{client-CBE7ksYC.d.mts → client-DZ-nbVnb.d.mts} +1 -1
- package/dist/{client-Dyo3dvNy.d.mts → client-K_n5ceLI.d.mts} +33 -17
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/mock/cli.mjs +73 -7
- package/dist/mock/library.js +73 -7
- package/dist/mock/library.mjs +73 -7
- package/dist/mock/msw.js +73 -7
- package/dist/mock/msw.mjs +73 -7
- package/dist/react.d.mts +156 -2
- package/dist/react.d.ts +156 -2
- package/dist/react.js +1015 -472
- package/dist/react.mjs +609 -71
- package/dist/server.d.mts +2 -2
- package/dist/server.d.ts +2 -2
- package/dist/styles.css +1 -1
- package/dist/testing/msw.js +2 -2
- package/dist/testing/msw.mjs +1 -1
- package/dist/testing/suite.d.mts +2 -2
- package/dist/testing/suite.d.ts +2 -2
- package/dist/testing/suite.js +21 -21
- package/dist/testing/suite.mjs +2 -2
- package/dist/testing.d.mts +2 -2
- package/dist/testing.d.ts +2 -2
- package/dist/testing.js +77 -77
- package/dist/testing.mjs +3 -3
- package/package.json +1 -1
package/dist/advanced.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { k as AuthService, z as BusinessService, O as CartOperations, P as CatalogueQueries, a8 as CheckoutOperations, a8 as CheckoutService, ae as CimplifyElement, af as CimplifyElements, aE as ELEMENT_TYPES, aF as EVENT_TYPES, aI as ElementEventType, aJ as ElementOptions, aK as ElementType, aS as ElementsOptions, aY as FetchQuoteInput, b3 as FxService, b6 as GetProductsOptions, b8 as InventoryService, bf as LinkService, bj as LiteService, bq as MESSAGE_TYPES, bP as OrderQueries, c3 as PriceQuote, c9 as QuoteBundleSelectionInput, ca as QuoteCompositeSelectionInput, cb as QuoteDynamicBuckets, cc as QuoteStatus, cd as QuoteUiMessage, cf as RefreshQuoteInput, cg as RefreshQuoteResult, cH as SchedulingService, dj as createElements } from './client-
|
|
1
|
+
export { k as AuthService, z as BusinessService, O as CartOperations, P as CatalogueQueries, a8 as CheckoutOperations, a8 as CheckoutService, ae as CimplifyElement, af as CimplifyElements, aE as ELEMENT_TYPES, aF as EVENT_TYPES, aI as ElementEventType, aJ as ElementOptions, aK as ElementType, aS as ElementsOptions, aY as FetchQuoteInput, b3 as FxService, b6 as GetProductsOptions, b8 as InventoryService, bf as LinkService, bj as LiteService, bq as MESSAGE_TYPES, bP as OrderQueries, c3 as PriceQuote, c9 as QuoteBundleSelectionInput, ca as QuoteCompositeSelectionInput, cb as QuoteDynamicBuckets, cc as QuoteStatus, cd as QuoteUiMessage, cf as RefreshQuoteInput, cg as RefreshQuoteResult, cH as SchedulingService, dj as createElements } from './client-K_n5ceLI.mjs';
|
|
2
2
|
import './product-B_kS4Oxa.mjs';
|
|
3
3
|
import './payment-DVS7ZUEp.mjs';
|
|
4
4
|
|
package/dist/advanced.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { k as AuthService, z as BusinessService, O as CartOperations, P as CatalogueQueries, a8 as CheckoutOperations, a8 as CheckoutService, ae as CimplifyElement, af as CimplifyElements, aE as ELEMENT_TYPES, aF as EVENT_TYPES, aI as ElementEventType, aJ as ElementOptions, aK as ElementType, aS as ElementsOptions, aY as FetchQuoteInput, b3 as FxService, b6 as GetProductsOptions, b8 as InventoryService, bf as LinkService, bj as LiteService, bq as MESSAGE_TYPES, bP as OrderQueries, c3 as PriceQuote, c9 as QuoteBundleSelectionInput, ca as QuoteCompositeSelectionInput, cb as QuoteDynamicBuckets, cc as QuoteStatus, cd as QuoteUiMessage, cf as RefreshQuoteInput, cg as RefreshQuoteResult, cH as SchedulingService, dj as createElements } from './client-
|
|
1
|
+
export { k as AuthService, z as BusinessService, O as CartOperations, P as CatalogueQueries, a8 as CheckoutOperations, a8 as CheckoutService, ae as CimplifyElement, af as CimplifyElements, aE as ELEMENT_TYPES, aF as EVENT_TYPES, aI as ElementEventType, aJ as ElementOptions, aK as ElementType, aS as ElementsOptions, aY as FetchQuoteInput, b3 as FxService, b6 as GetProductsOptions, b8 as InventoryService, bf as LinkService, bj as LiteService, bq as MESSAGE_TYPES, bP as OrderQueries, c3 as PriceQuote, c9 as QuoteBundleSelectionInput, ca as QuoteCompositeSelectionInput, cb as QuoteDynamicBuckets, cc as QuoteStatus, cd as QuoteUiMessage, cf as RefreshQuoteInput, cg as RefreshQuoteResult, cH as SchedulingService, dj as createElements } from './client-CO2s-kxY.js';
|
|
2
2
|
import './product-B_kS4Oxa.js';
|
|
3
3
|
import './payment-sn-yGL7v.js';
|
|
4
4
|
|
|
@@ -2341,23 +2341,47 @@ function buildV1(deps) {
|
|
|
2341
2341
|
app.get("/auth/status", (c) => tryRoute(c, () => deps.auth.status(c.var.session.token)));
|
|
2342
2342
|
app.post("/auth/request-otp", async (c) => {
|
|
2343
2343
|
const body = await c.req.json().catch(() => ({}));
|
|
2344
|
-
return tryRoute(c, () =>
|
|
2344
|
+
return tryRoute(c, () => {
|
|
2345
|
+
deps.auth.requestOtp(body.contact ?? "");
|
|
2346
|
+
return {
|
|
2347
|
+
message: `OTP sent to ${body.contact ?? "contact"}`,
|
|
2348
|
+
expires_in: 300,
|
|
2349
|
+
is_new_account: false
|
|
2350
|
+
};
|
|
2351
|
+
});
|
|
2345
2352
|
});
|
|
2346
2353
|
app.post("/auth/verify-otp", async (c) => {
|
|
2347
2354
|
const body = await c.req.json().catch(() => ({}));
|
|
2348
2355
|
return tryRoute(c, () => {
|
|
2349
2356
|
const session = deps.auth.verifyOtp(body.contact ?? "", body.otp_code ?? body.code ?? "");
|
|
2350
2357
|
c.header("x-session-token", session.token);
|
|
2351
|
-
return {
|
|
2358
|
+
return {
|
|
2359
|
+
message: "Successfully authenticated",
|
|
2360
|
+
account_id: session.id,
|
|
2361
|
+
session_token: session.token,
|
|
2362
|
+
refresh_token: session.token,
|
|
2363
|
+
customer: {
|
|
2364
|
+
id: session.customer_id ?? session.id,
|
|
2365
|
+
name: session.customer_name ?? "Test User",
|
|
2366
|
+
email: session.customer_email ?? null,
|
|
2367
|
+
phone: session.customer_phone ?? null,
|
|
2368
|
+
delivery_address: null,
|
|
2369
|
+
created_at: session.created_at,
|
|
2370
|
+
updated_at: session.created_at
|
|
2371
|
+
}
|
|
2372
|
+
};
|
|
2352
2373
|
});
|
|
2353
2374
|
});
|
|
2354
2375
|
app.post("/auth/logout", (c) => {
|
|
2355
2376
|
deps.auth.logout(c.var.session.token);
|
|
2356
|
-
return ok(c, {
|
|
2377
|
+
return ok(c, { message: "Successfully logged out", action: "discard_token" });
|
|
2357
2378
|
});
|
|
2358
2379
|
app.post("/auth/profile", async (c) => {
|
|
2359
2380
|
const body = await c.req.json().catch(() => ({}));
|
|
2360
|
-
return tryRoute(c, () =>
|
|
2381
|
+
return tryRoute(c, () => {
|
|
2382
|
+
deps.auth.updateProfile(c.var.session.token, body);
|
|
2383
|
+
return { success: true, message: "Profile updated successfully" };
|
|
2384
|
+
});
|
|
2361
2385
|
});
|
|
2362
2386
|
app.get("/inventory/products/:product_id/stock", (c) => tryRoute(c, () => deps.inventory.productStock(c.req.param("product_id"))));
|
|
2363
2387
|
app.get("/inventory/variants/:variant_id/stock", (c) => tryRoute(c, () => deps.inventory.variantStock(c.req.param("variant_id"))));
|
|
@@ -2979,7 +3003,12 @@ function buildLink(deps) {
|
|
|
2979
3003
|
const body = await c.req.json().catch(() => ({}));
|
|
2980
3004
|
return tryRoute(c, () => {
|
|
2981
3005
|
deps.auth.requestOtp(body.contact ?? "");
|
|
2982
|
-
return {
|
|
3006
|
+
return {
|
|
3007
|
+
success: true,
|
|
3008
|
+
message: `OTP sent to ${body.contact ?? "contact"}`,
|
|
3009
|
+
expires_in: 300,
|
|
3010
|
+
is_new_account: false
|
|
3011
|
+
};
|
|
2983
3012
|
});
|
|
2984
3013
|
});
|
|
2985
3014
|
app.post("/auth/verify-otp", async (c) => {
|
|
@@ -2997,7 +3026,29 @@ function buildLink(deps) {
|
|
|
2997
3026
|
refresh_token: session.token,
|
|
2998
3027
|
account_id: session.id,
|
|
2999
3028
|
customer_id: customer.customer.id,
|
|
3000
|
-
|
|
3029
|
+
name: customer.customer.name,
|
|
3030
|
+
email: customer.customer.email,
|
|
3031
|
+
phone: customer.customer.phone,
|
|
3032
|
+
message: "Login successful"
|
|
3033
|
+
};
|
|
3034
|
+
});
|
|
3035
|
+
});
|
|
3036
|
+
app.post("/auth/refresh", async (c) => {
|
|
3037
|
+
const body = await c.req.json().catch(() => ({}));
|
|
3038
|
+
return tryRoute(c, () => {
|
|
3039
|
+
const session = deps.auth.ensureSession(body.session_token ?? c.var.session.token);
|
|
3040
|
+
const customer = deps.link.ensureCustomer(session.customer_id ?? session.id);
|
|
3041
|
+
c.header("x-session-token", session.token);
|
|
3042
|
+
return {
|
|
3043
|
+
success: true,
|
|
3044
|
+
session_token: session.token,
|
|
3045
|
+
refresh_token: session.token,
|
|
3046
|
+
account_id: session.id,
|
|
3047
|
+
customer_id: customer.customer.id,
|
|
3048
|
+
name: customer.customer.name,
|
|
3049
|
+
email: customer.customer.email,
|
|
3050
|
+
phone: customer.customer.phone,
|
|
3051
|
+
message: "Session refreshed"
|
|
3001
3052
|
};
|
|
3002
3053
|
});
|
|
3003
3054
|
});
|
|
@@ -3005,9 +3056,24 @@ function buildLink(deps) {
|
|
|
3005
3056
|
"/auth/logout",
|
|
3006
3057
|
(c) => tryRoute(c, () => {
|
|
3007
3058
|
deps.auth.logout(c.var.session.token);
|
|
3008
|
-
return { success: true, message: "Logged out" };
|
|
3059
|
+
return { success: true, message: "Logged out successfully", action: "discard_token" };
|
|
3009
3060
|
})
|
|
3010
3061
|
);
|
|
3062
|
+
app.get("/profile", (c) => tryRoute(c, () => deps.link.getProfile(customerId(c))));
|
|
3063
|
+
app.post("/profile", async (c) => {
|
|
3064
|
+
const body = await c.req.json().catch(() => ({}));
|
|
3065
|
+
return tryRoute(c, () => {
|
|
3066
|
+
const state = deps.link.ensureCustomer(customerId(c));
|
|
3067
|
+
state.customer = {
|
|
3068
|
+
...state.customer,
|
|
3069
|
+
name: body.name ?? state.customer.name,
|
|
3070
|
+
email: body.email ?? state.customer.email,
|
|
3071
|
+
phone: body.phone ?? state.customer.phone,
|
|
3072
|
+
updated_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
3073
|
+
};
|
|
3074
|
+
return state.customer;
|
|
3075
|
+
});
|
|
3076
|
+
});
|
|
3011
3077
|
app.get("/data", (c) => tryRoute(c, () => deps.link.getLinkData(customerId(c))));
|
|
3012
3078
|
app.post("/check-status", async (c) => {
|
|
3013
3079
|
const body = await c.req.json().catch(() => ({}));
|
|
@@ -2339,23 +2339,47 @@ function buildV1(deps) {
|
|
|
2339
2339
|
app.get("/auth/status", (c) => tryRoute(c, () => deps.auth.status(c.var.session.token)));
|
|
2340
2340
|
app.post("/auth/request-otp", async (c) => {
|
|
2341
2341
|
const body = await c.req.json().catch(() => ({}));
|
|
2342
|
-
return tryRoute(c, () =>
|
|
2342
|
+
return tryRoute(c, () => {
|
|
2343
|
+
deps.auth.requestOtp(body.contact ?? "");
|
|
2344
|
+
return {
|
|
2345
|
+
message: `OTP sent to ${body.contact ?? "contact"}`,
|
|
2346
|
+
expires_in: 300,
|
|
2347
|
+
is_new_account: false
|
|
2348
|
+
};
|
|
2349
|
+
});
|
|
2343
2350
|
});
|
|
2344
2351
|
app.post("/auth/verify-otp", async (c) => {
|
|
2345
2352
|
const body = await c.req.json().catch(() => ({}));
|
|
2346
2353
|
return tryRoute(c, () => {
|
|
2347
2354
|
const session = deps.auth.verifyOtp(body.contact ?? "", body.otp_code ?? body.code ?? "");
|
|
2348
2355
|
c.header("x-session-token", session.token);
|
|
2349
|
-
return {
|
|
2356
|
+
return {
|
|
2357
|
+
message: "Successfully authenticated",
|
|
2358
|
+
account_id: session.id,
|
|
2359
|
+
session_token: session.token,
|
|
2360
|
+
refresh_token: session.token,
|
|
2361
|
+
customer: {
|
|
2362
|
+
id: session.customer_id ?? session.id,
|
|
2363
|
+
name: session.customer_name ?? "Test User",
|
|
2364
|
+
email: session.customer_email ?? null,
|
|
2365
|
+
phone: session.customer_phone ?? null,
|
|
2366
|
+
delivery_address: null,
|
|
2367
|
+
created_at: session.created_at,
|
|
2368
|
+
updated_at: session.created_at
|
|
2369
|
+
}
|
|
2370
|
+
};
|
|
2350
2371
|
});
|
|
2351
2372
|
});
|
|
2352
2373
|
app.post("/auth/logout", (c) => {
|
|
2353
2374
|
deps.auth.logout(c.var.session.token);
|
|
2354
|
-
return ok(c, {
|
|
2375
|
+
return ok(c, { message: "Successfully logged out", action: "discard_token" });
|
|
2355
2376
|
});
|
|
2356
2377
|
app.post("/auth/profile", async (c) => {
|
|
2357
2378
|
const body = await c.req.json().catch(() => ({}));
|
|
2358
|
-
return tryRoute(c, () =>
|
|
2379
|
+
return tryRoute(c, () => {
|
|
2380
|
+
deps.auth.updateProfile(c.var.session.token, body);
|
|
2381
|
+
return { success: true, message: "Profile updated successfully" };
|
|
2382
|
+
});
|
|
2359
2383
|
});
|
|
2360
2384
|
app.get("/inventory/products/:product_id/stock", (c) => tryRoute(c, () => deps.inventory.productStock(c.req.param("product_id"))));
|
|
2361
2385
|
app.get("/inventory/variants/:variant_id/stock", (c) => tryRoute(c, () => deps.inventory.variantStock(c.req.param("variant_id"))));
|
|
@@ -2977,7 +3001,12 @@ function buildLink(deps) {
|
|
|
2977
3001
|
const body = await c.req.json().catch(() => ({}));
|
|
2978
3002
|
return tryRoute(c, () => {
|
|
2979
3003
|
deps.auth.requestOtp(body.contact ?? "");
|
|
2980
|
-
return {
|
|
3004
|
+
return {
|
|
3005
|
+
success: true,
|
|
3006
|
+
message: `OTP sent to ${body.contact ?? "contact"}`,
|
|
3007
|
+
expires_in: 300,
|
|
3008
|
+
is_new_account: false
|
|
3009
|
+
};
|
|
2981
3010
|
});
|
|
2982
3011
|
});
|
|
2983
3012
|
app.post("/auth/verify-otp", async (c) => {
|
|
@@ -2995,7 +3024,29 @@ function buildLink(deps) {
|
|
|
2995
3024
|
refresh_token: session.token,
|
|
2996
3025
|
account_id: session.id,
|
|
2997
3026
|
customer_id: customer.customer.id,
|
|
2998
|
-
|
|
3027
|
+
name: customer.customer.name,
|
|
3028
|
+
email: customer.customer.email,
|
|
3029
|
+
phone: customer.customer.phone,
|
|
3030
|
+
message: "Login successful"
|
|
3031
|
+
};
|
|
3032
|
+
});
|
|
3033
|
+
});
|
|
3034
|
+
app.post("/auth/refresh", async (c) => {
|
|
3035
|
+
const body = await c.req.json().catch(() => ({}));
|
|
3036
|
+
return tryRoute(c, () => {
|
|
3037
|
+
const session = deps.auth.ensureSession(body.session_token ?? c.var.session.token);
|
|
3038
|
+
const customer = deps.link.ensureCustomer(session.customer_id ?? session.id);
|
|
3039
|
+
c.header("x-session-token", session.token);
|
|
3040
|
+
return {
|
|
3041
|
+
success: true,
|
|
3042
|
+
session_token: session.token,
|
|
3043
|
+
refresh_token: session.token,
|
|
3044
|
+
account_id: session.id,
|
|
3045
|
+
customer_id: customer.customer.id,
|
|
3046
|
+
name: customer.customer.name,
|
|
3047
|
+
email: customer.customer.email,
|
|
3048
|
+
phone: customer.customer.phone,
|
|
3049
|
+
message: "Session refreshed"
|
|
2999
3050
|
};
|
|
3000
3051
|
});
|
|
3001
3052
|
});
|
|
@@ -3003,9 +3054,24 @@ function buildLink(deps) {
|
|
|
3003
3054
|
"/auth/logout",
|
|
3004
3055
|
(c) => tryRoute(c, () => {
|
|
3005
3056
|
deps.auth.logout(c.var.session.token);
|
|
3006
|
-
return { success: true, message: "Logged out" };
|
|
3057
|
+
return { success: true, message: "Logged out successfully", action: "discard_token" };
|
|
3007
3058
|
})
|
|
3008
3059
|
);
|
|
3060
|
+
app.get("/profile", (c) => tryRoute(c, () => deps.link.getProfile(customerId(c))));
|
|
3061
|
+
app.post("/profile", async (c) => {
|
|
3062
|
+
const body = await c.req.json().catch(() => ({}));
|
|
3063
|
+
return tryRoute(c, () => {
|
|
3064
|
+
const state = deps.link.ensureCustomer(customerId(c));
|
|
3065
|
+
state.customer = {
|
|
3066
|
+
...state.customer,
|
|
3067
|
+
name: body.name ?? state.customer.name,
|
|
3068
|
+
email: body.email ?? state.customer.email,
|
|
3069
|
+
phone: body.phone ?? state.customer.phone,
|
|
3070
|
+
updated_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
3071
|
+
};
|
|
3072
|
+
return state.customer;
|
|
3073
|
+
});
|
|
3074
|
+
});
|
|
3009
3075
|
app.get("/data", (c) => tryRoute(c, () => deps.link.getLinkData(customerId(c))));
|
|
3010
3076
|
app.post("/check-status", async (c) => {
|
|
3011
3077
|
const body = await c.req.json().catch(() => ({}));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkI4MP2XZS_js = require('./chunk-I4MP2XZS.js');
|
|
4
4
|
var chunk5HAUJBOK_js = require('./chunk-5HAUJBOK.js');
|
|
5
5
|
var zod = require('zod');
|
|
6
6
|
|
|
@@ -595,7 +595,7 @@ async function toForwardedRequest(input, init) {
|
|
|
595
595
|
};
|
|
596
596
|
}
|
|
597
597
|
function createTestClient(options = {}) {
|
|
598
|
-
const mock =
|
|
598
|
+
const mock = chunkI4MP2XZS_js.createMockApp(options);
|
|
599
599
|
let sessionToken;
|
|
600
600
|
const fetchImpl = async (input, init) => {
|
|
601
601
|
const url = typeof input === "string" ? input : input instanceof URL ? input.toString() : input.url;
|
|
@@ -1213,9 +1213,12 @@ interface GetLinkOrderOptions {
|
|
|
1213
1213
|
interface IdempotencyOption$6 {
|
|
1214
1214
|
idempotencyKey?: string;
|
|
1215
1215
|
}
|
|
1216
|
-
interface SuccessResult
|
|
1216
|
+
interface SuccessResult {
|
|
1217
1217
|
success: boolean;
|
|
1218
1218
|
message?: string;
|
|
1219
|
+
action?: string;
|
|
1220
|
+
expires_in?: number;
|
|
1221
|
+
is_new_account?: boolean;
|
|
1219
1222
|
}
|
|
1220
1223
|
/**
|
|
1221
1224
|
* Cimplify Link client.
|
|
@@ -1241,10 +1244,10 @@ interface SuccessResult$1 {
|
|
|
1241
1244
|
declare class LinkService {
|
|
1242
1245
|
private client;
|
|
1243
1246
|
constructor(client: CimplifyClient);
|
|
1244
|
-
requestOtp(input: RequestOtpInput, opts?: IdempotencyOption$6): Promise<Result<SuccessResult
|
|
1247
|
+
requestOtp(input: RequestOtpInput, opts?: IdempotencyOption$6): Promise<Result<SuccessResult, CimplifyError>>;
|
|
1245
1248
|
verifyOtp(input: VerifyOtpInput, opts?: IdempotencyOption$6): Promise<Result<AuthResponse, CimplifyError>>;
|
|
1246
1249
|
refreshSession(sessionToken?: string, opts?: IdempotencyOption$6): Promise<Result<AuthResponse, CimplifyError>>;
|
|
1247
|
-
logout(): Promise<Result<SuccessResult
|
|
1250
|
+
logout(): Promise<Result<SuccessResult, CimplifyError>>;
|
|
1248
1251
|
checkStatus(contact: string): Promise<Result<LinkStatusResult, CimplifyError>>;
|
|
1249
1252
|
getLinkData(): Promise<Result<LinkData, CimplifyError>>;
|
|
1250
1253
|
getAddresses(): Promise<Result<CustomerAddress[], CimplifyError>>;
|
|
@@ -1259,17 +1262,17 @@ declare class LinkService {
|
|
|
1259
1262
|
getOrder(orderId: string, options?: GetLinkOrderOptions): Promise<Result<Order, CimplifyError>>;
|
|
1260
1263
|
enroll(data: EnrollmentData, opts?: IdempotencyOption$6): Promise<Result<LinkEnrollResult, CimplifyError>>;
|
|
1261
1264
|
enrollAndLinkOrder(data: EnrollAndLinkOrderInput, opts?: IdempotencyOption$6): Promise<Result<EnrollAndLinkOrderResult, CimplifyError>>;
|
|
1262
|
-
updatePreferences(preferences: Partial<CustomerLinkPreferences>): Promise<Result<SuccessResult
|
|
1265
|
+
updatePreferences(preferences: Partial<CustomerLinkPreferences>): Promise<Result<SuccessResult, CimplifyError>>;
|
|
1263
1266
|
createAddress(input: CreateAddressInput, opts?: IdempotencyOption$6): Promise<Result<CustomerAddress, CimplifyError>>;
|
|
1264
|
-
updateAddress(input: UpdateAddressInput): Promise<Result<SuccessResult
|
|
1265
|
-
deleteAddress(addressId: string): Promise<Result<SuccessResult
|
|
1266
|
-
setDefaultAddress(addressId: string): Promise<Result<SuccessResult
|
|
1267
|
-
trackAddressUsage(addressId: string): Promise<Result<SuccessResult
|
|
1267
|
+
updateAddress(input: UpdateAddressInput): Promise<Result<SuccessResult, CimplifyError>>;
|
|
1268
|
+
deleteAddress(addressId: string): Promise<Result<SuccessResult, CimplifyError>>;
|
|
1269
|
+
setDefaultAddress(addressId: string): Promise<Result<SuccessResult, CimplifyError>>;
|
|
1270
|
+
trackAddressUsage(addressId: string): Promise<Result<SuccessResult, CimplifyError>>;
|
|
1268
1271
|
createMobileMoney(input: CreateMobileMoneyInput, opts?: IdempotencyOption$6): Promise<Result<CustomerMobileMoney, CimplifyError>>;
|
|
1269
|
-
deleteMobileMoney(mobileMoneyId: string): Promise<Result<SuccessResult
|
|
1270
|
-
setDefaultMobileMoney(mobileMoneyId: string): Promise<Result<SuccessResult
|
|
1271
|
-
trackMobileMoneyUsage(mobileMoneyId: string): Promise<Result<SuccessResult
|
|
1272
|
-
verifyMobileMoney(mobileMoneyId: string, opts?: IdempotencyOption$6): Promise<Result<SuccessResult
|
|
1272
|
+
deleteMobileMoney(mobileMoneyId: string): Promise<Result<SuccessResult, CimplifyError>>;
|
|
1273
|
+
setDefaultMobileMoney(mobileMoneyId: string): Promise<Result<SuccessResult, CimplifyError>>;
|
|
1274
|
+
trackMobileMoneyUsage(mobileMoneyId: string): Promise<Result<SuccessResult, CimplifyError>>;
|
|
1275
|
+
verifyMobileMoney(mobileMoneyId: string, opts?: IdempotencyOption$6): Promise<Result<SuccessResult, CimplifyError>>;
|
|
1273
1276
|
getSessions(): Promise<Result<LinkSession[], CimplifyError>>;
|
|
1274
1277
|
revokeSession(sessionId: string): Promise<Result<RevokeSessionResult, CimplifyError>>;
|
|
1275
1278
|
revokeAllSessions(): Promise<Result<RevokeAllSessionsResult, CimplifyError>>;
|
|
@@ -1284,16 +1287,29 @@ interface AuthStatus {
|
|
|
1284
1287
|
session_expires_at?: string;
|
|
1285
1288
|
}
|
|
1286
1289
|
interface OtpResult {
|
|
1290
|
+
message: string;
|
|
1291
|
+
account_id: string;
|
|
1287
1292
|
customer: Customer;
|
|
1288
|
-
session_token
|
|
1293
|
+
session_token: string;
|
|
1294
|
+
refresh_token: string;
|
|
1295
|
+
}
|
|
1296
|
+
interface RequestOtpResult {
|
|
1297
|
+
message: string;
|
|
1298
|
+
expires_in: number;
|
|
1299
|
+
is_new_account: boolean;
|
|
1289
1300
|
}
|
|
1290
1301
|
interface UpdateProfileInput {
|
|
1291
1302
|
name?: string;
|
|
1292
1303
|
email?: string;
|
|
1293
1304
|
phone?: string;
|
|
1294
1305
|
}
|
|
1295
|
-
interface
|
|
1306
|
+
interface LogoutResult {
|
|
1307
|
+
message: string;
|
|
1308
|
+
action: "discard_token" | string;
|
|
1309
|
+
}
|
|
1310
|
+
interface UpdateProfileResult {
|
|
1296
1311
|
success: boolean;
|
|
1312
|
+
message: string;
|
|
1297
1313
|
}
|
|
1298
1314
|
declare class AuthService {
|
|
1299
1315
|
private client;
|
|
@@ -1301,10 +1317,10 @@ declare class AuthService {
|
|
|
1301
1317
|
getStatus(): Promise<Result<AuthStatus, CimplifyError>>;
|
|
1302
1318
|
getCurrentUser(): Promise<Result<Customer | null, CimplifyError>>;
|
|
1303
1319
|
isAuthenticated(): Promise<Result<boolean, CimplifyError>>;
|
|
1304
|
-
requestOtp(contact: string, contactType?: "phone" | "email", opts?: IdempotencyOption$5): Promise<Result<
|
|
1320
|
+
requestOtp(contact: string, contactType?: "phone" | "email", opts?: IdempotencyOption$5): Promise<Result<RequestOtpResult, CimplifyError>>;
|
|
1305
1321
|
verifyOtp(code: string, contact?: string, opts?: IdempotencyOption$5): Promise<Result<OtpResult, CimplifyError>>;
|
|
1306
|
-
logout(): Promise<Result<
|
|
1307
|
-
updateProfile(input: UpdateProfileInput): Promise<Result<
|
|
1322
|
+
logout(): Promise<Result<LogoutResult, CimplifyError>>;
|
|
1323
|
+
updateProfile(input: UpdateProfileInput): Promise<Result<UpdateProfileResult, CimplifyError>>;
|
|
1308
1324
|
}
|
|
1309
1325
|
|
|
1310
1326
|
type BusinessType = "eatery" | "retail" | "service" | "other" | "system" | "unset";
|
|
@@ -1213,9 +1213,12 @@ interface GetLinkOrderOptions {
|
|
|
1213
1213
|
interface IdempotencyOption$6 {
|
|
1214
1214
|
idempotencyKey?: string;
|
|
1215
1215
|
}
|
|
1216
|
-
interface SuccessResult
|
|
1216
|
+
interface SuccessResult {
|
|
1217
1217
|
success: boolean;
|
|
1218
1218
|
message?: string;
|
|
1219
|
+
action?: string;
|
|
1220
|
+
expires_in?: number;
|
|
1221
|
+
is_new_account?: boolean;
|
|
1219
1222
|
}
|
|
1220
1223
|
/**
|
|
1221
1224
|
* Cimplify Link client.
|
|
@@ -1241,10 +1244,10 @@ interface SuccessResult$1 {
|
|
|
1241
1244
|
declare class LinkService {
|
|
1242
1245
|
private client;
|
|
1243
1246
|
constructor(client: CimplifyClient);
|
|
1244
|
-
requestOtp(input: RequestOtpInput, opts?: IdempotencyOption$6): Promise<Result<SuccessResult
|
|
1247
|
+
requestOtp(input: RequestOtpInput, opts?: IdempotencyOption$6): Promise<Result<SuccessResult, CimplifyError>>;
|
|
1245
1248
|
verifyOtp(input: VerifyOtpInput, opts?: IdempotencyOption$6): Promise<Result<AuthResponse, CimplifyError>>;
|
|
1246
1249
|
refreshSession(sessionToken?: string, opts?: IdempotencyOption$6): Promise<Result<AuthResponse, CimplifyError>>;
|
|
1247
|
-
logout(): Promise<Result<SuccessResult
|
|
1250
|
+
logout(): Promise<Result<SuccessResult, CimplifyError>>;
|
|
1248
1251
|
checkStatus(contact: string): Promise<Result<LinkStatusResult, CimplifyError>>;
|
|
1249
1252
|
getLinkData(): Promise<Result<LinkData, CimplifyError>>;
|
|
1250
1253
|
getAddresses(): Promise<Result<CustomerAddress[], CimplifyError>>;
|
|
@@ -1259,17 +1262,17 @@ declare class LinkService {
|
|
|
1259
1262
|
getOrder(orderId: string, options?: GetLinkOrderOptions): Promise<Result<Order, CimplifyError>>;
|
|
1260
1263
|
enroll(data: EnrollmentData, opts?: IdempotencyOption$6): Promise<Result<LinkEnrollResult, CimplifyError>>;
|
|
1261
1264
|
enrollAndLinkOrder(data: EnrollAndLinkOrderInput, opts?: IdempotencyOption$6): Promise<Result<EnrollAndLinkOrderResult, CimplifyError>>;
|
|
1262
|
-
updatePreferences(preferences: Partial<CustomerLinkPreferences>): Promise<Result<SuccessResult
|
|
1265
|
+
updatePreferences(preferences: Partial<CustomerLinkPreferences>): Promise<Result<SuccessResult, CimplifyError>>;
|
|
1263
1266
|
createAddress(input: CreateAddressInput, opts?: IdempotencyOption$6): Promise<Result<CustomerAddress, CimplifyError>>;
|
|
1264
|
-
updateAddress(input: UpdateAddressInput): Promise<Result<SuccessResult
|
|
1265
|
-
deleteAddress(addressId: string): Promise<Result<SuccessResult
|
|
1266
|
-
setDefaultAddress(addressId: string): Promise<Result<SuccessResult
|
|
1267
|
-
trackAddressUsage(addressId: string): Promise<Result<SuccessResult
|
|
1267
|
+
updateAddress(input: UpdateAddressInput): Promise<Result<SuccessResult, CimplifyError>>;
|
|
1268
|
+
deleteAddress(addressId: string): Promise<Result<SuccessResult, CimplifyError>>;
|
|
1269
|
+
setDefaultAddress(addressId: string): Promise<Result<SuccessResult, CimplifyError>>;
|
|
1270
|
+
trackAddressUsage(addressId: string): Promise<Result<SuccessResult, CimplifyError>>;
|
|
1268
1271
|
createMobileMoney(input: CreateMobileMoneyInput, opts?: IdempotencyOption$6): Promise<Result<CustomerMobileMoney, CimplifyError>>;
|
|
1269
|
-
deleteMobileMoney(mobileMoneyId: string): Promise<Result<SuccessResult
|
|
1270
|
-
setDefaultMobileMoney(mobileMoneyId: string): Promise<Result<SuccessResult
|
|
1271
|
-
trackMobileMoneyUsage(mobileMoneyId: string): Promise<Result<SuccessResult
|
|
1272
|
-
verifyMobileMoney(mobileMoneyId: string, opts?: IdempotencyOption$6): Promise<Result<SuccessResult
|
|
1272
|
+
deleteMobileMoney(mobileMoneyId: string): Promise<Result<SuccessResult, CimplifyError>>;
|
|
1273
|
+
setDefaultMobileMoney(mobileMoneyId: string): Promise<Result<SuccessResult, CimplifyError>>;
|
|
1274
|
+
trackMobileMoneyUsage(mobileMoneyId: string): Promise<Result<SuccessResult, CimplifyError>>;
|
|
1275
|
+
verifyMobileMoney(mobileMoneyId: string, opts?: IdempotencyOption$6): Promise<Result<SuccessResult, CimplifyError>>;
|
|
1273
1276
|
getSessions(): Promise<Result<LinkSession[], CimplifyError>>;
|
|
1274
1277
|
revokeSession(sessionId: string): Promise<Result<RevokeSessionResult, CimplifyError>>;
|
|
1275
1278
|
revokeAllSessions(): Promise<Result<RevokeAllSessionsResult, CimplifyError>>;
|
|
@@ -1284,16 +1287,29 @@ interface AuthStatus {
|
|
|
1284
1287
|
session_expires_at?: string;
|
|
1285
1288
|
}
|
|
1286
1289
|
interface OtpResult {
|
|
1290
|
+
message: string;
|
|
1291
|
+
account_id: string;
|
|
1287
1292
|
customer: Customer;
|
|
1288
|
-
session_token
|
|
1293
|
+
session_token: string;
|
|
1294
|
+
refresh_token: string;
|
|
1295
|
+
}
|
|
1296
|
+
interface RequestOtpResult {
|
|
1297
|
+
message: string;
|
|
1298
|
+
expires_in: number;
|
|
1299
|
+
is_new_account: boolean;
|
|
1289
1300
|
}
|
|
1290
1301
|
interface UpdateProfileInput {
|
|
1291
1302
|
name?: string;
|
|
1292
1303
|
email?: string;
|
|
1293
1304
|
phone?: string;
|
|
1294
1305
|
}
|
|
1295
|
-
interface
|
|
1306
|
+
interface LogoutResult {
|
|
1307
|
+
message: string;
|
|
1308
|
+
action: "discard_token" | string;
|
|
1309
|
+
}
|
|
1310
|
+
interface UpdateProfileResult {
|
|
1296
1311
|
success: boolean;
|
|
1312
|
+
message: string;
|
|
1297
1313
|
}
|
|
1298
1314
|
declare class AuthService {
|
|
1299
1315
|
private client;
|
|
@@ -1301,10 +1317,10 @@ declare class AuthService {
|
|
|
1301
1317
|
getStatus(): Promise<Result<AuthStatus, CimplifyError>>;
|
|
1302
1318
|
getCurrentUser(): Promise<Result<Customer | null, CimplifyError>>;
|
|
1303
1319
|
isAuthenticated(): Promise<Result<boolean, CimplifyError>>;
|
|
1304
|
-
requestOtp(contact: string, contactType?: "phone" | "email", opts?: IdempotencyOption$5): Promise<Result<
|
|
1320
|
+
requestOtp(contact: string, contactType?: "phone" | "email", opts?: IdempotencyOption$5): Promise<Result<RequestOtpResult, CimplifyError>>;
|
|
1305
1321
|
verifyOtp(code: string, contact?: string, opts?: IdempotencyOption$5): Promise<Result<OtpResult, CimplifyError>>;
|
|
1306
|
-
logout(): Promise<Result<
|
|
1307
|
-
updateProfile(input: UpdateProfileInput): Promise<Result<
|
|
1322
|
+
logout(): Promise<Result<LogoutResult, CimplifyError>>;
|
|
1323
|
+
updateProfile(input: UpdateProfileInput): Promise<Result<UpdateProfileResult, CimplifyError>>;
|
|
1308
1324
|
}
|
|
1309
1325
|
|
|
1310
1326
|
type BusinessType = "eatery" | "retail" | "service" | "other" | "system" | "unset";
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as AUTHORIZATION_TYPE, a as AUTH_MUTATION, b as AbortablePromise, c as ActivityRecommendation, d as ActivityRecommendationsResponse, e as ActivityService, f as ActivityStateResponse, g as AddressData, h as AddressInfo, i as AmountToPay, j as AuthResponse, k as AuthService, l as AuthStatus, m as AuthenticatedCustomer, n as AuthenticatedData, o as AutocompletePrediction, p as AutocompleteResponse, q as AvailabilityResult, r as AvailableSlot, B as Booking, s as BookingModificationType, t as BookingStatus, u as BookingWithDetails, v as BufferTimes, w as Business, x as BusinessHours, y as BusinessPreferences, z as BusinessService, C as BusinessSettings, D as BusinessType, E as BusinessWithLocations, F as CHECKOUT_MODE, G as CHECKOUT_MUTATION, H as CHECKOUT_STEP, I as CONTACT_TYPE, J as CacheOptions, K as CancelBookingInput, L as CancelBookingResult, M as CancelOrderInput, N as CancellationPolicy, O as CartOperations, P as CatalogueQueries, Q as CatalogueResult, R as CatalogueSnapshot, S as CategoryInfo, T as ChatAttachment, U as ChatConversation, V as ChatConversationResponse, W as ChatMessage, X as ChatWidgetStarter, Y as CheckSlotAvailabilityInput, Z as CheckSlotAvailabilityResult, _ as CheckoutAddressInfo, $ as CheckoutCartData, a0 as CheckoutCartItem, a1 as CheckoutCustomerInfo, a2 as CheckoutFormData, a3 as CheckoutInput, a4 as CheckoutMode, a8 as CheckoutOperations, a5 as CheckoutOrderType, a6 as CheckoutPaymentMethod, a7 as CheckoutResult, a8 as CheckoutService, a9 as CheckoutStatus, aa as CheckoutStatusContext, ab as CheckoutStep, ac as CimplifyClient, ad as CimplifyConfig, ae as CimplifyElement, af as CimplifyElements, ag as ContactType, ah as ContentType, ai as CreateAddressInput, aj as CreateMobileMoneyInput, ak as Customer, al as CustomerAddress, am as CustomerBooking, an as CustomerBookingServiceItem, ao as CustomerLinkPreferences, ap as CustomerMobileMoney, aq as CustomerServicePreferences, ar as DEFAULT_COUNTRY, as as DEFAULT_CURRENCY, at as DEVICE_TYPE, au as DayAvailability, av as DeliveryFeeDetails, aw as DeliveryFeeResponse, ax as DeliveryService, ay as DepositResult, az as DeviceType, aA as DismissMessageResponse, aB as ELEMENTS_AUTH_CONTACT_TYPES, aC as ELEMENTS_AUTH_MODES, aD as ELEMENTS_AUTH_PROMPTS, aE as ELEMENT_TYPES, aF as EVENT_TYPES, aG as ElementAppearance, aH as ElementEventHandler, aI as ElementEventType, aJ as ElementOptions, aK as ElementType, aL as ElementsAuthContactType, aM as ElementsAuthMode, aN as ElementsAuthOptions, aO as ElementsAuthPrompt, aP as ElementsCheckoutData, aQ as ElementsCheckoutResult, aR as ElementsCustomerInfo, aS as ElementsOptions, aT as EnrollAndLinkOrderInput, aU as EnrollAndLinkOrderResult, aV as EnrollmentData, aW as Err, aX as FeeBearerType, aY as FetchQuoteInput, aZ as FulfillmentLink, a_ as FulfillmentStatus, a$ as FulfillmentType, b0 as FxQuote, b1 as FxQuoteRequest, b2 as FxRateResponse, b3 as FxService, b4 as GetAvailableSlotsInput, b5 as GetOrdersOptions, b6 as GetProductsOptions, b7 as IframeToParentMessage, b8 as InventoryService, b9 as LINK_MUTATION, ba as LINK_QUERY, bb as LineItem, bc as LineType, bd as LinkData, be as LinkEnrollResult, bf as LinkService, bg as LinkSession, bh as LinkStatusResult, bi as LiteBootstrap, bj as LiteService, bk as Location, bl as LocationBooking, bm as LocationTaxBehavior, bn as LocationTaxOverrides, bo as LocationTimeProfile, bp as LocationWithDetails, bq as MESSAGE_TYPES, br as MOBILE_MONEY_PROVIDER, bs as MobileMoneyData, bt as MobileMoneyDetails, bu as MobileMoneyProvider, bv as NextAction, bw as ORDER_MUTATION, bx as ORDER_TYPE, by as ObservabilityHooks, bz as Ok, bA as Order, bB as OrderChannel, bC as OrderFilter, bD as OrderFulfillmentSummary, bE as OrderGroup, bF as OrderGroupDetails, bG as OrderGroupPayment, bH as OrderGroupPaymentState, bI as OrderGroupPaymentStatus, bJ as OrderGroupPaymentSummary, bK as OrderGroupStatus, bL as OrderHistory, bM as OrderLineState, bN as OrderLineStatus, bO as OrderPaymentEvent, bP as OrderQueries, bQ as OrderSplitDetail, bR as OrderStatus, bS as OrderType, bT as OtpResult, bU as PAYMENT_METHOD, bV as PAYMENT_MUTATION, bW as PAYMENT_STATE, bX as PICKUP_TIME_TYPE, bY as ParentToIframeMessage, bZ as PaymentMethodInfo, b_ as PaymentState, b$ as PickupTime, c0 as PickupTimeType, c1 as PlaceDetailsResponse, c2 as PlacesService, c3 as PriceQuote, c4 as PricingOverrides, c5 as ProcessAndResolveOptions, c6 as ProcessCheckoutOptions, c7 as ProcessCheckoutResult, c8 as ProviderResolutionSource, c9 as QuoteBundleSelectionInput, ca as QuoteCompositeSelectionInput, cb as QuoteDynamicBuckets, cc as QuoteStatus, cd as QuoteUiMessage, ce as ReadRequestOptions, cf as RefreshQuoteInput, cg as RefreshQuoteResult, ch as RefundOrderInput, ci as RelatedCandidate, cj as RelatedProduct, ck as RelatedProductsEnrichment, cl as RelationType, cm as ReminderMethod, cn as ReminderSettings, co as ReorderResult, cp as RequestContext, cq as RequestErrorEvent, cr as RequestOptions, cs as RequestOtpInput, ct as RequestSource, cu as RequestStartEvent, cv as RequestSuccessEvent, cw as RescheduleBookingInput, cx as RescheduleBookingResult, cy as RescheduleHistoryRecord, cz as ResourceAssignment, cA as Result, cB as RetryEvent, cC as RevokeAllSessionsResult, cD as RevokeSessionResult, cE as Room, cF as SchedulingMetadata, cG as SchedulingResult, cH as SchedulingService, cI as SenderType, cJ as Service, cK as ServiceAvailabilityParams, cL as ServiceAvailabilityResult, cM as ServiceCharge, cN as ServiceNotes, cO as ServiceScheduleRequest, cP as ServiceStatus, cQ as SessionActivityData, cR as SessionChangeEvent, cS as SessionMessage, cT as SlotResourceInfo, cU as SlotStaffInfo, cV as Staff, cW as StaffAssignment, cX as StaffRole, cY as StaffScheduleItem, cZ as StockLevel, c_ as StockStatus, c$ as StorefrontBootstrap, d0 as SubscriptionService, d1 as SupportService, d2 as Table, d3 as TableInfo, d4 as TimeRange, d5 as TimeRanges, d6 as TimeSlot, d7 as TrackCategoryViewOptions, d8 as TrackProductViewOptions, d9 as UpdateAddressInput, da as UpdateOrderStatusInput, db as UpdateProfileInput, dc as UploadInitResponse, dd as UploadResult, de as UploadService, df as VerifyOtpInput, dg as combine, dh as combineObject, di as createCimplifyClient, dj as createElements, dk as err, dl as flatMap, dm as fromPromise, dn as getOrElse, dp as isErr, dq as isOk, dr as mapError, ds as mapResult, dt as ok, du as toNullable, dv as tryCatch, dw as unwrap } from './client-
|
|
1
|
+
export { A as AUTHORIZATION_TYPE, a as AUTH_MUTATION, b as AbortablePromise, c as ActivityRecommendation, d as ActivityRecommendationsResponse, e as ActivityService, f as ActivityStateResponse, g as AddressData, h as AddressInfo, i as AmountToPay, j as AuthResponse, k as AuthService, l as AuthStatus, m as AuthenticatedCustomer, n as AuthenticatedData, o as AutocompletePrediction, p as AutocompleteResponse, q as AvailabilityResult, r as AvailableSlot, B as Booking, s as BookingModificationType, t as BookingStatus, u as BookingWithDetails, v as BufferTimes, w as Business, x as BusinessHours, y as BusinessPreferences, z as BusinessService, C as BusinessSettings, D as BusinessType, E as BusinessWithLocations, F as CHECKOUT_MODE, G as CHECKOUT_MUTATION, H as CHECKOUT_STEP, I as CONTACT_TYPE, J as CacheOptions, K as CancelBookingInput, L as CancelBookingResult, M as CancelOrderInput, N as CancellationPolicy, O as CartOperations, P as CatalogueQueries, Q as CatalogueResult, R as CatalogueSnapshot, S as CategoryInfo, T as ChatAttachment, U as ChatConversation, V as ChatConversationResponse, W as ChatMessage, X as ChatWidgetStarter, Y as CheckSlotAvailabilityInput, Z as CheckSlotAvailabilityResult, _ as CheckoutAddressInfo, $ as CheckoutCartData, a0 as CheckoutCartItem, a1 as CheckoutCustomerInfo, a2 as CheckoutFormData, a3 as CheckoutInput, a4 as CheckoutMode, a8 as CheckoutOperations, a5 as CheckoutOrderType, a6 as CheckoutPaymentMethod, a7 as CheckoutResult, a8 as CheckoutService, a9 as CheckoutStatus, aa as CheckoutStatusContext, ab as CheckoutStep, ac as CimplifyClient, ad as CimplifyConfig, ae as CimplifyElement, af as CimplifyElements, ag as ContactType, ah as ContentType, ai as CreateAddressInput, aj as CreateMobileMoneyInput, ak as Customer, al as CustomerAddress, am as CustomerBooking, an as CustomerBookingServiceItem, ao as CustomerLinkPreferences, ap as CustomerMobileMoney, aq as CustomerServicePreferences, ar as DEFAULT_COUNTRY, as as DEFAULT_CURRENCY, at as DEVICE_TYPE, au as DayAvailability, av as DeliveryFeeDetails, aw as DeliveryFeeResponse, ax as DeliveryService, ay as DepositResult, az as DeviceType, aA as DismissMessageResponse, aB as ELEMENTS_AUTH_CONTACT_TYPES, aC as ELEMENTS_AUTH_MODES, aD as ELEMENTS_AUTH_PROMPTS, aE as ELEMENT_TYPES, aF as EVENT_TYPES, aG as ElementAppearance, aH as ElementEventHandler, aI as ElementEventType, aJ as ElementOptions, aK as ElementType, aL as ElementsAuthContactType, aM as ElementsAuthMode, aN as ElementsAuthOptions, aO as ElementsAuthPrompt, aP as ElementsCheckoutData, aQ as ElementsCheckoutResult, aR as ElementsCustomerInfo, aS as ElementsOptions, aT as EnrollAndLinkOrderInput, aU as EnrollAndLinkOrderResult, aV as EnrollmentData, aW as Err, aX as FeeBearerType, aY as FetchQuoteInput, aZ as FulfillmentLink, a_ as FulfillmentStatus, a$ as FulfillmentType, b0 as FxQuote, b1 as FxQuoteRequest, b2 as FxRateResponse, b3 as FxService, b4 as GetAvailableSlotsInput, b5 as GetOrdersOptions, b6 as GetProductsOptions, b7 as IframeToParentMessage, b8 as InventoryService, b9 as LINK_MUTATION, ba as LINK_QUERY, bb as LineItem, bc as LineType, bd as LinkData, be as LinkEnrollResult, bf as LinkService, bg as LinkSession, bh as LinkStatusResult, bi as LiteBootstrap, bj as LiteService, bk as Location, bl as LocationBooking, bm as LocationTaxBehavior, bn as LocationTaxOverrides, bo as LocationTimeProfile, bp as LocationWithDetails, bq as MESSAGE_TYPES, br as MOBILE_MONEY_PROVIDER, bs as MobileMoneyData, bt as MobileMoneyDetails, bu as MobileMoneyProvider, bv as NextAction, bw as ORDER_MUTATION, bx as ORDER_TYPE, by as ObservabilityHooks, bz as Ok, bA as Order, bB as OrderChannel, bC as OrderFilter, bD as OrderFulfillmentSummary, bE as OrderGroup, bF as OrderGroupDetails, bG as OrderGroupPayment, bH as OrderGroupPaymentState, bI as OrderGroupPaymentStatus, bJ as OrderGroupPaymentSummary, bK as OrderGroupStatus, bL as OrderHistory, bM as OrderLineState, bN as OrderLineStatus, bO as OrderPaymentEvent, bP as OrderQueries, bQ as OrderSplitDetail, bR as OrderStatus, bS as OrderType, bT as OtpResult, bU as PAYMENT_METHOD, bV as PAYMENT_MUTATION, bW as PAYMENT_STATE, bX as PICKUP_TIME_TYPE, bY as ParentToIframeMessage, bZ as PaymentMethodInfo, b_ as PaymentState, b$ as PickupTime, c0 as PickupTimeType, c1 as PlaceDetailsResponse, c2 as PlacesService, c3 as PriceQuote, c4 as PricingOverrides, c5 as ProcessAndResolveOptions, c6 as ProcessCheckoutOptions, c7 as ProcessCheckoutResult, c8 as ProviderResolutionSource, c9 as QuoteBundleSelectionInput, ca as QuoteCompositeSelectionInput, cb as QuoteDynamicBuckets, cc as QuoteStatus, cd as QuoteUiMessage, ce as ReadRequestOptions, cf as RefreshQuoteInput, cg as RefreshQuoteResult, ch as RefundOrderInput, ci as RelatedCandidate, cj as RelatedProduct, ck as RelatedProductsEnrichment, cl as RelationType, cm as ReminderMethod, cn as ReminderSettings, co as ReorderResult, cp as RequestContext, cq as RequestErrorEvent, cr as RequestOptions, cs as RequestOtpInput, ct as RequestSource, cu as RequestStartEvent, cv as RequestSuccessEvent, cw as RescheduleBookingInput, cx as RescheduleBookingResult, cy as RescheduleHistoryRecord, cz as ResourceAssignment, cA as Result, cB as RetryEvent, cC as RevokeAllSessionsResult, cD as RevokeSessionResult, cE as Room, cF as SchedulingMetadata, cG as SchedulingResult, cH as SchedulingService, cI as SenderType, cJ as Service, cK as ServiceAvailabilityParams, cL as ServiceAvailabilityResult, cM as ServiceCharge, cN as ServiceNotes, cO as ServiceScheduleRequest, cP as ServiceStatus, cQ as SessionActivityData, cR as SessionChangeEvent, cS as SessionMessage, cT as SlotResourceInfo, cU as SlotStaffInfo, cV as Staff, cW as StaffAssignment, cX as StaffRole, cY as StaffScheduleItem, cZ as StockLevel, c_ as StockStatus, c$ as StorefrontBootstrap, d0 as SubscriptionService, d1 as SupportService, d2 as Table, d3 as TableInfo, d4 as TimeRange, d5 as TimeRanges, d6 as TimeSlot, d7 as TrackCategoryViewOptions, d8 as TrackProductViewOptions, d9 as UpdateAddressInput, da as UpdateOrderStatusInput, db as UpdateProfileInput, dc as UploadInitResponse, dd as UploadResult, de as UploadService, df as VerifyOtpInput, dg as combine, dh as combineObject, di as createCimplifyClient, dj as createElements, dk as err, dl as flatMap, dm as fromPromise, dn as getOrElse, dp as isErr, dq as isOk, dr as mapError, ds as mapResult, dt as ok, du as toNullable, dv as tryCatch, dw as unwrap } from './client-K_n5ceLI.mjs';
|
|
2
2
|
import { b9 as ProductWithDetails, j as ApiError } from './product-B_kS4Oxa.mjs';
|
|
3
3
|
export { A as AddOn, a as AddOnDetails, b as AddOnGroupDetails, c as AddOnOption, d as AddOnOptionDetails, e as AddOnOptionPrice, f as AddOnWithOptions, g as AddToCartInput, h as AddressValue, i as AdjustmentType, k as AppliedDiscount, l as AttributeAppliesTo, m as AttributeType, n as AttributeValidationRules, o as AttributeVisibility, B as BenefitType, p as BillingFrequency, q as BillingMarkupType, r as BillingPlanType, s as Bundle, t as BundleComponentData, u as BundleComponentInfo, v as BundleComponentVariantView, w as BundleComponentView, x as BundlePriceType, y as BundleProduct, z as BundleSelectionData, C as BundleSelectionInput, D as BundleStoredSelection, E as BundleSummary, F as BundleWithDetails, G as Cart, H as CartAddOn, I as CartChannel, J as CartItem, K as CartItemDetails, L as CartMutationResult, M as CartNotice, N as CartStatus, O as CartSummary, P as CartTotals, Q as Category, R as CategorySummary, S as ChosenPrice, T as CimplifyError, U as Collection, V as CollectionProduct, W as CollectionSummary, X as ComponentGroup, Y as ComponentGroupWithComponents, Z as ComponentPriceBreakdown, _ as ComponentSchedulingData, $ as ComponentSelectionInput, a0 as ComponentSourceType, a1 as Composite, a2 as CompositeComponent, a3 as CompositeComponentView, a4 as CompositeGroupView, a5 as CompositePriceBreakdown, a6 as CompositePriceResult, a7 as CompositePricingMode, a8 as CompositeSelectionData, $ as CompositeSelectionInput, a9 as CompositeStoredSelection, aa as CompositeWithDetails, ab as CurrencyCode, ac as CustomAttributeDefinition, ad as CustomAttributeValue, ae as CustomerInputValue, af as DURATION_UNIT, ag as DateRangeValue, ah as Deal, ai as DealBenefitType, aj as DepositType, ak as DigitalProductType, al as DiscountBreakdown, am as DiscountDetails, an as DiscountValidation, ao as DisplayAddOn, ap as DisplayAddOnOption, aq as DisplayCart, ar as DisplayCartItem, as as DisplayMode, at as DurationUnit, au as ERROR_HINTS, av as EligiblePlansQuery, aw as ErrorCode, ax as ErrorCodeType, ay as ErrorHint, az as FacetValue, aA as FormattedPlanOption, aB as GroupPricingBehavior, aC as INPUT_FIELD_TYPE, aD as IdempotencyMismatchError, aE as InputFieldType, aF as InputFieldValidation, aG as InventoryType, aH as KnowledgeArticle, aI as LineConfiguration, aJ as LocationProductPrice, aK as LocationValue, aL as MeasurementValue, aM as Money, aN as PRODUCT_TYPE, aO as Pagination, aP as PaginationParams, aQ as PhoneValue, aR as Price, aS as PriceAdjustment, aT as PriceDecisionPath, aU as PriceEntryType, aV as PricePathTaxInfo, aW as PriceSource, aX as Product, aY as ProductAddOn, aZ as ProductAvailability, a_ as ProductAvailabilityNow, a$ as ProductBillingPlan, b0 as ProductDealInfo, b1 as ProductInputField, b2 as ProductProperty, b3 as ProductRenderHint, b4 as ProductTaxonomy, b5 as ProductTimeProfile, b6 as ProductType, b7 as ProductVariant, b8 as ProductVariantValue, ba as PropertyFacet, bb as PropertySource, bc as QuantityPricingTier, bd as RENDER_HINT, be as RelatedProductView, bf as SalesChannel, bg as SchedulingMode, bh as SelectedAddOnOption, bi as SemanticKind, bj as SignatureValue, bk as Subscription, bl as SubscriptionInvoice, bm as SubscriptionItem, bn as SubscriptionStatus, bo as SubscriptionWithDetails, bp as Tag, bq as TagsResponse, br as TaxPathComponent, bs as TaxonomyAttributeTemplate, bt as TaxonomyWithChildren, bu as UICart, bv as UICartBusiness, bw as UICartCustomer, bx as UICartLocation, by as UICartPricing, bz as UpdateCartItemInput, bA as VariantAxis, bB as VariantAxisSelection, bC as VariantAxisValue, bD as VariantAxisValueView, bE as VariantAxisView, bF as VariantAxisWithValues, bG as VariantDetails, bH as VariantDetailsDTO, bI as VariantDisplayAttribute, bJ as VariantLocationAvailability, bK as VariantStrategy, bL as VariantView, bM as ZERO, bN as currencyCode, bO as enrichError, bP as getErrorHint, bQ as isCimplifyError, bR as isIdempotencyMismatchError, bS as isQuoteConflictRequiringConsent, bT as isQuoteError, bU as isRetryableError, bV as isSupportedCurrency, bW as money, bX as moneyFromNumber } from './product-B_kS4Oxa.mjs';
|
|
4
4
|
export { C as CURRENCY_SYMBOLS, M as MOBILE_MONEY_PROVIDERS, c as categorizePaymentError, d as detectMobileMoneyProvider, f as formatMoney, a as formatNumberCompact, b as formatPrice, e as formatPriceAdjustment, g as formatPriceCompact, h as formatPriceRange, i as formatPriceWithTax, j as formatProductPrice, k as getBasePrice, l as getCurrencySymbol, m as getDiscountPercentage, n as getDisplayPrice, o as getMarkupPercentage, p as getPriceRange, q as getProductCurrency, r as getTaxAmount, s as getUnitPriceAtQuantity, t as hasTaxInfo, u as isOnSale, v as isPaymentStatusFailure, w as isPaymentStatusRequiresAction, x as isPaymentStatusSuccess, y as isTaxInclusive, z as isValidPhoneForContext, A as normalizePaymentResponse, B as normalizePhoneToE164, D as normalizeStatusResponse, E as parsePrice, F as resolvePhoneCountryCode } from './index-D8vnKlOQ.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as AUTHORIZATION_TYPE, a as AUTH_MUTATION, b as AbortablePromise, c as ActivityRecommendation, d as ActivityRecommendationsResponse, e as ActivityService, f as ActivityStateResponse, g as AddressData, h as AddressInfo, i as AmountToPay, j as AuthResponse, k as AuthService, l as AuthStatus, m as AuthenticatedCustomer, n as AuthenticatedData, o as AutocompletePrediction, p as AutocompleteResponse, q as AvailabilityResult, r as AvailableSlot, B as Booking, s as BookingModificationType, t as BookingStatus, u as BookingWithDetails, v as BufferTimes, w as Business, x as BusinessHours, y as BusinessPreferences, z as BusinessService, C as BusinessSettings, D as BusinessType, E as BusinessWithLocations, F as CHECKOUT_MODE, G as CHECKOUT_MUTATION, H as CHECKOUT_STEP, I as CONTACT_TYPE, J as CacheOptions, K as CancelBookingInput, L as CancelBookingResult, M as CancelOrderInput, N as CancellationPolicy, O as CartOperations, P as CatalogueQueries, Q as CatalogueResult, R as CatalogueSnapshot, S as CategoryInfo, T as ChatAttachment, U as ChatConversation, V as ChatConversationResponse, W as ChatMessage, X as ChatWidgetStarter, Y as CheckSlotAvailabilityInput, Z as CheckSlotAvailabilityResult, _ as CheckoutAddressInfo, $ as CheckoutCartData, a0 as CheckoutCartItem, a1 as CheckoutCustomerInfo, a2 as CheckoutFormData, a3 as CheckoutInput, a4 as CheckoutMode, a8 as CheckoutOperations, a5 as CheckoutOrderType, a6 as CheckoutPaymentMethod, a7 as CheckoutResult, a8 as CheckoutService, a9 as CheckoutStatus, aa as CheckoutStatusContext, ab as CheckoutStep, ac as CimplifyClient, ad as CimplifyConfig, ae as CimplifyElement, af as CimplifyElements, ag as ContactType, ah as ContentType, ai as CreateAddressInput, aj as CreateMobileMoneyInput, ak as Customer, al as CustomerAddress, am as CustomerBooking, an as CustomerBookingServiceItem, ao as CustomerLinkPreferences, ap as CustomerMobileMoney, aq as CustomerServicePreferences, ar as DEFAULT_COUNTRY, as as DEFAULT_CURRENCY, at as DEVICE_TYPE, au as DayAvailability, av as DeliveryFeeDetails, aw as DeliveryFeeResponse, ax as DeliveryService, ay as DepositResult, az as DeviceType, aA as DismissMessageResponse, aB as ELEMENTS_AUTH_CONTACT_TYPES, aC as ELEMENTS_AUTH_MODES, aD as ELEMENTS_AUTH_PROMPTS, aE as ELEMENT_TYPES, aF as EVENT_TYPES, aG as ElementAppearance, aH as ElementEventHandler, aI as ElementEventType, aJ as ElementOptions, aK as ElementType, aL as ElementsAuthContactType, aM as ElementsAuthMode, aN as ElementsAuthOptions, aO as ElementsAuthPrompt, aP as ElementsCheckoutData, aQ as ElementsCheckoutResult, aR as ElementsCustomerInfo, aS as ElementsOptions, aT as EnrollAndLinkOrderInput, aU as EnrollAndLinkOrderResult, aV as EnrollmentData, aW as Err, aX as FeeBearerType, aY as FetchQuoteInput, aZ as FulfillmentLink, a_ as FulfillmentStatus, a$ as FulfillmentType, b0 as FxQuote, b1 as FxQuoteRequest, b2 as FxRateResponse, b3 as FxService, b4 as GetAvailableSlotsInput, b5 as GetOrdersOptions, b6 as GetProductsOptions, b7 as IframeToParentMessage, b8 as InventoryService, b9 as LINK_MUTATION, ba as LINK_QUERY, bb as LineItem, bc as LineType, bd as LinkData, be as LinkEnrollResult, bf as LinkService, bg as LinkSession, bh as LinkStatusResult, bi as LiteBootstrap, bj as LiteService, bk as Location, bl as LocationBooking, bm as LocationTaxBehavior, bn as LocationTaxOverrides, bo as LocationTimeProfile, bp as LocationWithDetails, bq as MESSAGE_TYPES, br as MOBILE_MONEY_PROVIDER, bs as MobileMoneyData, bt as MobileMoneyDetails, bu as MobileMoneyProvider, bv as NextAction, bw as ORDER_MUTATION, bx as ORDER_TYPE, by as ObservabilityHooks, bz as Ok, bA as Order, bB as OrderChannel, bC as OrderFilter, bD as OrderFulfillmentSummary, bE as OrderGroup, bF as OrderGroupDetails, bG as OrderGroupPayment, bH as OrderGroupPaymentState, bI as OrderGroupPaymentStatus, bJ as OrderGroupPaymentSummary, bK as OrderGroupStatus, bL as OrderHistory, bM as OrderLineState, bN as OrderLineStatus, bO as OrderPaymentEvent, bP as OrderQueries, bQ as OrderSplitDetail, bR as OrderStatus, bS as OrderType, bT as OtpResult, bU as PAYMENT_METHOD, bV as PAYMENT_MUTATION, bW as PAYMENT_STATE, bX as PICKUP_TIME_TYPE, bY as ParentToIframeMessage, bZ as PaymentMethodInfo, b_ as PaymentState, b$ as PickupTime, c0 as PickupTimeType, c1 as PlaceDetailsResponse, c2 as PlacesService, c3 as PriceQuote, c4 as PricingOverrides, c5 as ProcessAndResolveOptions, c6 as ProcessCheckoutOptions, c7 as ProcessCheckoutResult, c8 as ProviderResolutionSource, c9 as QuoteBundleSelectionInput, ca as QuoteCompositeSelectionInput, cb as QuoteDynamicBuckets, cc as QuoteStatus, cd as QuoteUiMessage, ce as ReadRequestOptions, cf as RefreshQuoteInput, cg as RefreshQuoteResult, ch as RefundOrderInput, ci as RelatedCandidate, cj as RelatedProduct, ck as RelatedProductsEnrichment, cl as RelationType, cm as ReminderMethod, cn as ReminderSettings, co as ReorderResult, cp as RequestContext, cq as RequestErrorEvent, cr as RequestOptions, cs as RequestOtpInput, ct as RequestSource, cu as RequestStartEvent, cv as RequestSuccessEvent, cw as RescheduleBookingInput, cx as RescheduleBookingResult, cy as RescheduleHistoryRecord, cz as ResourceAssignment, cA as Result, cB as RetryEvent, cC as RevokeAllSessionsResult, cD as RevokeSessionResult, cE as Room, cF as SchedulingMetadata, cG as SchedulingResult, cH as SchedulingService, cI as SenderType, cJ as Service, cK as ServiceAvailabilityParams, cL as ServiceAvailabilityResult, cM as ServiceCharge, cN as ServiceNotes, cO as ServiceScheduleRequest, cP as ServiceStatus, cQ as SessionActivityData, cR as SessionChangeEvent, cS as SessionMessage, cT as SlotResourceInfo, cU as SlotStaffInfo, cV as Staff, cW as StaffAssignment, cX as StaffRole, cY as StaffScheduleItem, cZ as StockLevel, c_ as StockStatus, c$ as StorefrontBootstrap, d0 as SubscriptionService, d1 as SupportService, d2 as Table, d3 as TableInfo, d4 as TimeRange, d5 as TimeRanges, d6 as TimeSlot, d7 as TrackCategoryViewOptions, d8 as TrackProductViewOptions, d9 as UpdateAddressInput, da as UpdateOrderStatusInput, db as UpdateProfileInput, dc as UploadInitResponse, dd as UploadResult, de as UploadService, df as VerifyOtpInput, dg as combine, dh as combineObject, di as createCimplifyClient, dj as createElements, dk as err, dl as flatMap, dm as fromPromise, dn as getOrElse, dp as isErr, dq as isOk, dr as mapError, ds as mapResult, dt as ok, du as toNullable, dv as tryCatch, dw as unwrap } from './client-
|
|
1
|
+
export { A as AUTHORIZATION_TYPE, a as AUTH_MUTATION, b as AbortablePromise, c as ActivityRecommendation, d as ActivityRecommendationsResponse, e as ActivityService, f as ActivityStateResponse, g as AddressData, h as AddressInfo, i as AmountToPay, j as AuthResponse, k as AuthService, l as AuthStatus, m as AuthenticatedCustomer, n as AuthenticatedData, o as AutocompletePrediction, p as AutocompleteResponse, q as AvailabilityResult, r as AvailableSlot, B as Booking, s as BookingModificationType, t as BookingStatus, u as BookingWithDetails, v as BufferTimes, w as Business, x as BusinessHours, y as BusinessPreferences, z as BusinessService, C as BusinessSettings, D as BusinessType, E as BusinessWithLocations, F as CHECKOUT_MODE, G as CHECKOUT_MUTATION, H as CHECKOUT_STEP, I as CONTACT_TYPE, J as CacheOptions, K as CancelBookingInput, L as CancelBookingResult, M as CancelOrderInput, N as CancellationPolicy, O as CartOperations, P as CatalogueQueries, Q as CatalogueResult, R as CatalogueSnapshot, S as CategoryInfo, T as ChatAttachment, U as ChatConversation, V as ChatConversationResponse, W as ChatMessage, X as ChatWidgetStarter, Y as CheckSlotAvailabilityInput, Z as CheckSlotAvailabilityResult, _ as CheckoutAddressInfo, $ as CheckoutCartData, a0 as CheckoutCartItem, a1 as CheckoutCustomerInfo, a2 as CheckoutFormData, a3 as CheckoutInput, a4 as CheckoutMode, a8 as CheckoutOperations, a5 as CheckoutOrderType, a6 as CheckoutPaymentMethod, a7 as CheckoutResult, a8 as CheckoutService, a9 as CheckoutStatus, aa as CheckoutStatusContext, ab as CheckoutStep, ac as CimplifyClient, ad as CimplifyConfig, ae as CimplifyElement, af as CimplifyElements, ag as ContactType, ah as ContentType, ai as CreateAddressInput, aj as CreateMobileMoneyInput, ak as Customer, al as CustomerAddress, am as CustomerBooking, an as CustomerBookingServiceItem, ao as CustomerLinkPreferences, ap as CustomerMobileMoney, aq as CustomerServicePreferences, ar as DEFAULT_COUNTRY, as as DEFAULT_CURRENCY, at as DEVICE_TYPE, au as DayAvailability, av as DeliveryFeeDetails, aw as DeliveryFeeResponse, ax as DeliveryService, ay as DepositResult, az as DeviceType, aA as DismissMessageResponse, aB as ELEMENTS_AUTH_CONTACT_TYPES, aC as ELEMENTS_AUTH_MODES, aD as ELEMENTS_AUTH_PROMPTS, aE as ELEMENT_TYPES, aF as EVENT_TYPES, aG as ElementAppearance, aH as ElementEventHandler, aI as ElementEventType, aJ as ElementOptions, aK as ElementType, aL as ElementsAuthContactType, aM as ElementsAuthMode, aN as ElementsAuthOptions, aO as ElementsAuthPrompt, aP as ElementsCheckoutData, aQ as ElementsCheckoutResult, aR as ElementsCustomerInfo, aS as ElementsOptions, aT as EnrollAndLinkOrderInput, aU as EnrollAndLinkOrderResult, aV as EnrollmentData, aW as Err, aX as FeeBearerType, aY as FetchQuoteInput, aZ as FulfillmentLink, a_ as FulfillmentStatus, a$ as FulfillmentType, b0 as FxQuote, b1 as FxQuoteRequest, b2 as FxRateResponse, b3 as FxService, b4 as GetAvailableSlotsInput, b5 as GetOrdersOptions, b6 as GetProductsOptions, b7 as IframeToParentMessage, b8 as InventoryService, b9 as LINK_MUTATION, ba as LINK_QUERY, bb as LineItem, bc as LineType, bd as LinkData, be as LinkEnrollResult, bf as LinkService, bg as LinkSession, bh as LinkStatusResult, bi as LiteBootstrap, bj as LiteService, bk as Location, bl as LocationBooking, bm as LocationTaxBehavior, bn as LocationTaxOverrides, bo as LocationTimeProfile, bp as LocationWithDetails, bq as MESSAGE_TYPES, br as MOBILE_MONEY_PROVIDER, bs as MobileMoneyData, bt as MobileMoneyDetails, bu as MobileMoneyProvider, bv as NextAction, bw as ORDER_MUTATION, bx as ORDER_TYPE, by as ObservabilityHooks, bz as Ok, bA as Order, bB as OrderChannel, bC as OrderFilter, bD as OrderFulfillmentSummary, bE as OrderGroup, bF as OrderGroupDetails, bG as OrderGroupPayment, bH as OrderGroupPaymentState, bI as OrderGroupPaymentStatus, bJ as OrderGroupPaymentSummary, bK as OrderGroupStatus, bL as OrderHistory, bM as OrderLineState, bN as OrderLineStatus, bO as OrderPaymentEvent, bP as OrderQueries, bQ as OrderSplitDetail, bR as OrderStatus, bS as OrderType, bT as OtpResult, bU as PAYMENT_METHOD, bV as PAYMENT_MUTATION, bW as PAYMENT_STATE, bX as PICKUP_TIME_TYPE, bY as ParentToIframeMessage, bZ as PaymentMethodInfo, b_ as PaymentState, b$ as PickupTime, c0 as PickupTimeType, c1 as PlaceDetailsResponse, c2 as PlacesService, c3 as PriceQuote, c4 as PricingOverrides, c5 as ProcessAndResolveOptions, c6 as ProcessCheckoutOptions, c7 as ProcessCheckoutResult, c8 as ProviderResolutionSource, c9 as QuoteBundleSelectionInput, ca as QuoteCompositeSelectionInput, cb as QuoteDynamicBuckets, cc as QuoteStatus, cd as QuoteUiMessage, ce as ReadRequestOptions, cf as RefreshQuoteInput, cg as RefreshQuoteResult, ch as RefundOrderInput, ci as RelatedCandidate, cj as RelatedProduct, ck as RelatedProductsEnrichment, cl as RelationType, cm as ReminderMethod, cn as ReminderSettings, co as ReorderResult, cp as RequestContext, cq as RequestErrorEvent, cr as RequestOptions, cs as RequestOtpInput, ct as RequestSource, cu as RequestStartEvent, cv as RequestSuccessEvent, cw as RescheduleBookingInput, cx as RescheduleBookingResult, cy as RescheduleHistoryRecord, cz as ResourceAssignment, cA as Result, cB as RetryEvent, cC as RevokeAllSessionsResult, cD as RevokeSessionResult, cE as Room, cF as SchedulingMetadata, cG as SchedulingResult, cH as SchedulingService, cI as SenderType, cJ as Service, cK as ServiceAvailabilityParams, cL as ServiceAvailabilityResult, cM as ServiceCharge, cN as ServiceNotes, cO as ServiceScheduleRequest, cP as ServiceStatus, cQ as SessionActivityData, cR as SessionChangeEvent, cS as SessionMessage, cT as SlotResourceInfo, cU as SlotStaffInfo, cV as Staff, cW as StaffAssignment, cX as StaffRole, cY as StaffScheduleItem, cZ as StockLevel, c_ as StockStatus, c$ as StorefrontBootstrap, d0 as SubscriptionService, d1 as SupportService, d2 as Table, d3 as TableInfo, d4 as TimeRange, d5 as TimeRanges, d6 as TimeSlot, d7 as TrackCategoryViewOptions, d8 as TrackProductViewOptions, d9 as UpdateAddressInput, da as UpdateOrderStatusInput, db as UpdateProfileInput, dc as UploadInitResponse, dd as UploadResult, de as UploadService, df as VerifyOtpInput, dg as combine, dh as combineObject, di as createCimplifyClient, dj as createElements, dk as err, dl as flatMap, dm as fromPromise, dn as getOrElse, dp as isErr, dq as isOk, dr as mapError, ds as mapResult, dt as ok, du as toNullable, dv as tryCatch, dw as unwrap } from './client-CO2s-kxY.js';
|
|
2
2
|
import { b9 as ProductWithDetails, j as ApiError } from './product-B_kS4Oxa.js';
|
|
3
3
|
export { A as AddOn, a as AddOnDetails, b as AddOnGroupDetails, c as AddOnOption, d as AddOnOptionDetails, e as AddOnOptionPrice, f as AddOnWithOptions, g as AddToCartInput, h as AddressValue, i as AdjustmentType, k as AppliedDiscount, l as AttributeAppliesTo, m as AttributeType, n as AttributeValidationRules, o as AttributeVisibility, B as BenefitType, p as BillingFrequency, q as BillingMarkupType, r as BillingPlanType, s as Bundle, t as BundleComponentData, u as BundleComponentInfo, v as BundleComponentVariantView, w as BundleComponentView, x as BundlePriceType, y as BundleProduct, z as BundleSelectionData, C as BundleSelectionInput, D as BundleStoredSelection, E as BundleSummary, F as BundleWithDetails, G as Cart, H as CartAddOn, I as CartChannel, J as CartItem, K as CartItemDetails, L as CartMutationResult, M as CartNotice, N as CartStatus, O as CartSummary, P as CartTotals, Q as Category, R as CategorySummary, S as ChosenPrice, T as CimplifyError, U as Collection, V as CollectionProduct, W as CollectionSummary, X as ComponentGroup, Y as ComponentGroupWithComponents, Z as ComponentPriceBreakdown, _ as ComponentSchedulingData, $ as ComponentSelectionInput, a0 as ComponentSourceType, a1 as Composite, a2 as CompositeComponent, a3 as CompositeComponentView, a4 as CompositeGroupView, a5 as CompositePriceBreakdown, a6 as CompositePriceResult, a7 as CompositePricingMode, a8 as CompositeSelectionData, $ as CompositeSelectionInput, a9 as CompositeStoredSelection, aa as CompositeWithDetails, ab as CurrencyCode, ac as CustomAttributeDefinition, ad as CustomAttributeValue, ae as CustomerInputValue, af as DURATION_UNIT, ag as DateRangeValue, ah as Deal, ai as DealBenefitType, aj as DepositType, ak as DigitalProductType, al as DiscountBreakdown, am as DiscountDetails, an as DiscountValidation, ao as DisplayAddOn, ap as DisplayAddOnOption, aq as DisplayCart, ar as DisplayCartItem, as as DisplayMode, at as DurationUnit, au as ERROR_HINTS, av as EligiblePlansQuery, aw as ErrorCode, ax as ErrorCodeType, ay as ErrorHint, az as FacetValue, aA as FormattedPlanOption, aB as GroupPricingBehavior, aC as INPUT_FIELD_TYPE, aD as IdempotencyMismatchError, aE as InputFieldType, aF as InputFieldValidation, aG as InventoryType, aH as KnowledgeArticle, aI as LineConfiguration, aJ as LocationProductPrice, aK as LocationValue, aL as MeasurementValue, aM as Money, aN as PRODUCT_TYPE, aO as Pagination, aP as PaginationParams, aQ as PhoneValue, aR as Price, aS as PriceAdjustment, aT as PriceDecisionPath, aU as PriceEntryType, aV as PricePathTaxInfo, aW as PriceSource, aX as Product, aY as ProductAddOn, aZ as ProductAvailability, a_ as ProductAvailabilityNow, a$ as ProductBillingPlan, b0 as ProductDealInfo, b1 as ProductInputField, b2 as ProductProperty, b3 as ProductRenderHint, b4 as ProductTaxonomy, b5 as ProductTimeProfile, b6 as ProductType, b7 as ProductVariant, b8 as ProductVariantValue, ba as PropertyFacet, bb as PropertySource, bc as QuantityPricingTier, bd as RENDER_HINT, be as RelatedProductView, bf as SalesChannel, bg as SchedulingMode, bh as SelectedAddOnOption, bi as SemanticKind, bj as SignatureValue, bk as Subscription, bl as SubscriptionInvoice, bm as SubscriptionItem, bn as SubscriptionStatus, bo as SubscriptionWithDetails, bp as Tag, bq as TagsResponse, br as TaxPathComponent, bs as TaxonomyAttributeTemplate, bt as TaxonomyWithChildren, bu as UICart, bv as UICartBusiness, bw as UICartCustomer, bx as UICartLocation, by as UICartPricing, bz as UpdateCartItemInput, bA as VariantAxis, bB as VariantAxisSelection, bC as VariantAxisValue, bD as VariantAxisValueView, bE as VariantAxisView, bF as VariantAxisWithValues, bG as VariantDetails, bH as VariantDetailsDTO, bI as VariantDisplayAttribute, bJ as VariantLocationAvailability, bK as VariantStrategy, bL as VariantView, bM as ZERO, bN as currencyCode, bO as enrichError, bP as getErrorHint, bQ as isCimplifyError, bR as isIdempotencyMismatchError, bS as isQuoteConflictRequiringConsent, bT as isQuoteError, bU as isRetryableError, bV as isSupportedCurrency, bW as money, bX as moneyFromNumber } from './product-B_kS4Oxa.js';
|
|
4
4
|
export { C as CURRENCY_SYMBOLS, M as MOBILE_MONEY_PROVIDERS, c as categorizePaymentError, d as detectMobileMoneyProvider, f as formatMoney, a as formatNumberCompact, b as formatPrice, e as formatPriceAdjustment, g as formatPriceCompact, h as formatPriceRange, i as formatPriceWithTax, j as formatProductPrice, k as getBasePrice, l as getCurrencySymbol, m as getDiscountPercentage, n as getDisplayPrice, o as getMarkupPercentage, p as getPriceRange, q as getProductCurrency, r as getTaxAmount, s as getUnitPriceAtQuantity, t as hasTaxInfo, u as isOnSale, v as isPaymentStatusFailure, w as isPaymentStatusRequiresAction, x as isPaymentStatusSuccess, y as isTaxInclusive, z as isValidPhoneForContext, A as normalizePaymentResponse, B as normalizePhoneToE164, D as normalizeStatusResponse, E as parsePrice, F as resolvePhoneCountryCode } from './index-DIIlPUOC.js';
|