@cimplify/sdk 0.100.2 → 0.100.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/advanced.d.mts +1 -1
- package/dist/advanced.d.ts +1 -1
- package/dist/advanced.js +20 -20
- package/dist/advanced.mjs +1 -1
- package/dist/{chunk-IJI7KMTG.js → chunk-CNY2XFN4.js} +255 -74
- package/dist/{chunk-TIQLOH2B.mjs → chunk-FFRQNNUQ.mjs} +3 -0
- package/dist/{chunk-6JEKKL3M.js → chunk-FWKSBF3F.js} +3 -0
- package/dist/{chunk-B2YOCOLH.mjs → chunk-HFTRLRLM.mjs} +2 -2
- package/dist/{chunk-QRBBSIAY.js → chunk-KNCW5DI7.js} +4 -4
- package/dist/{chunk-YWNJJO2U.mjs → chunk-NOGCGI4J.mjs} +2 -2
- package/dist/{chunk-IFAQLFAJ.js → chunk-XCS56XSS.js} +2 -2
- package/dist/{chunk-PJUXAUM2.mjs → chunk-XG4DZT4I.mjs} +209 -28
- package/dist/{client-C6wb92AD.d.mts → client-BGeSemVv.d.mts} +2 -2
- package/dist/{client-LPg_AUUr.d.ts → client-BWdeCgmo.d.ts} +11 -2
- package/dist/{client-D8XcrONA.d.mts → client-Bx4NRdl8.d.mts} +11 -2
- package/dist/{client-CgXkRu2o.d.ts → client-Cvp8W1r9.d.ts} +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +69 -69
- package/dist/index.mjs +3 -3
- package/dist/mock/cli.mjs +2 -2
- package/dist/mock/library.js +2 -2
- package/dist/mock/library.mjs +2 -2
- package/dist/mock/msw.js +2 -2
- package/dist/mock/msw.mjs +2 -2
- package/dist/react.d.mts +1 -1
- package/dist/react.d.ts +1 -1
- package/dist/react.js +25 -25
- package/dist/react.mjs +2 -2
- package/dist/{server--RyVAfPN.d.mts → server-BRJ61o2J.d.mts} +3 -3
- package/dist/{server-CNyy47HL.d.ts → server-CXrVYtNo.d.ts} +3 -3
- package/dist/server.d.mts +2 -2
- package/dist/server.d.ts +2 -2
- package/dist/server.js +7 -7
- package/dist/server.mjs +2 -2
- package/dist/testing/msw.d.mts +1 -1
- package/dist/testing/msw.d.ts +1 -1
- package/dist/testing/msw.js +2 -2
- package/dist/testing/msw.mjs +1 -1
- package/dist/testing/suite.d.mts +4 -4
- package/dist/testing/suite.d.ts +4 -4
- package/dist/testing/suite.js +23 -23
- package/dist/testing/suite.mjs +4 -4
- package/dist/testing.d.mts +3 -3
- package/dist/testing.d.ts +3 -3
- package/dist/testing.js +79 -79
- package/dist/testing.mjs +5 -5
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkXCS56XSS_js = require('./chunk-XCS56XSS.js');
|
|
4
|
+
var chunkCNY2XFN4_js = require('./chunk-CNY2XFN4.js');
|
|
5
5
|
var zod = require('zod');
|
|
6
6
|
|
|
7
7
|
var cimplifyRegistry = zod.z.registry();
|
|
@@ -600,7 +600,7 @@ async function toForwardedRequest(input, init) {
|
|
|
600
600
|
};
|
|
601
601
|
}
|
|
602
602
|
function createTestClient(options = {}) {
|
|
603
|
-
const mock =
|
|
603
|
+
const mock = chunkXCS56XSS_js.createMockApp(options);
|
|
604
604
|
let sessionToken;
|
|
605
605
|
const fetchImpl = async (input, init) => {
|
|
606
606
|
const url = typeof input === "string" ? input : input instanceof URL ? input.toString() : input.url;
|
|
@@ -619,7 +619,7 @@ function createTestClient(options = {}) {
|
|
|
619
619
|
if (echoed) sessionToken = echoed;
|
|
620
620
|
return res;
|
|
621
621
|
};
|
|
622
|
-
const client =
|
|
622
|
+
const client = chunkCNY2XFN4_js.createCimplifyClient({
|
|
623
623
|
baseUrl: TEST_BASE_URL,
|
|
624
624
|
// Link mock lives at /v1/link on the same Hono app, so point the SDK's
|
|
625
625
|
// separate Link transport at the same TEST_BASE_URL.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createMockApp } from './chunk-
|
|
2
|
-
import { createCimplifyClient } from './chunk-
|
|
1
|
+
import { createMockApp } from './chunk-HFTRLRLM.mjs';
|
|
2
|
+
import { createCimplifyClient } from './chunk-XG4DZT4I.mjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
var cimplifyRegistry = z.registry();
|
|
@@ -2470,7 +2470,7 @@ function buildV1(deps) {
|
|
|
2470
2470
|
});
|
|
2471
2471
|
app.post("/activity/events", async (c) => {
|
|
2472
2472
|
const body = await c.req.json().catch(() => ({}));
|
|
2473
|
-
return tryRoute(c, () => deps.activity.recordEvents(deps.defaultBusinessId, c.var.session.id, body.events ?? []));
|
|
2473
|
+
return tryRoute(c, () => deps.activity.recordEvents(deps.defaultBusinessId, body.analytics_session_id ?? c.var.session.id, body.events ?? []));
|
|
2474
2474
|
});
|
|
2475
2475
|
app.get("/activity/state", (c) => tryRoute(c, () => deps.activity.getState(deps.defaultBusinessId, c.var.session.id)));
|
|
2476
2476
|
app.get("/activity/recommendations", (c) => tryRoute(c, () => deps.activity.getRecommendations(deps.defaultBusinessId)));
|
|
@@ -5433,7 +5433,7 @@ function createActivityService(opts) {
|
|
|
5433
5433
|
id,
|
|
5434
5434
|
business_id: businessId,
|
|
5435
5435
|
session_id: sessionId,
|
|
5436
|
-
event_type: e.
|
|
5436
|
+
event_type: e.type,
|
|
5437
5437
|
payload: e.payload ?? {},
|
|
5438
5438
|
created_at: clock.iso()
|
|
5439
5439
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { safe, generateIdempotencyKey, err, ok, CatalogueQueries, CartOperations, CheckoutService, OrderQueries, LinkService, AuthService, BusinessService, InventoryService, SchedulingService, LiteService, FxService, createElements } from './chunk-
|
|
1
|
+
import { safe, generateIdempotencyKey, err, ok, CatalogueQueries, CartOperations, CheckoutService, OrderQueries, LinkService, AuthService, BusinessService, InventoryService, SchedulingService, LiteService, FxService, createElements } from './chunk-FFRQNNUQ.mjs';
|
|
2
2
|
import { CimplifyError, ErrorCode, IdempotencyMismatchError, enrichError } from './chunk-O3YUHLZL.mjs';
|
|
3
3
|
|
|
4
4
|
// src/store-credit.ts
|
|
@@ -15,34 +15,178 @@ var StoreCreditQueries = class {
|
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
17
|
|
|
18
|
+
// src/internal/analytics-session.ts
|
|
19
|
+
var ANALYTICS_SESSION_IDLE_TIMEOUT_MS = 30 * 60 * 1e3;
|
|
20
|
+
var ANALYTICS_SESSION_STORAGE_KEY = "cimplify_analytics_session";
|
|
21
|
+
var ANALYTICS_SESSION_STATE_VERSION = 1;
|
|
22
|
+
var MICROSECONDS_PER_MILLISECOND = 1e3;
|
|
23
|
+
var MICROSECONDS_PER_SECOND = 1e6;
|
|
24
|
+
var AnalyticsSessionCoordinator = class {
|
|
25
|
+
constructor() {
|
|
26
|
+
this.fallbackState = null;
|
|
27
|
+
}
|
|
28
|
+
beginEvent(nowMs = Date.now()) {
|
|
29
|
+
const state = this.resolveActiveState(nowMs);
|
|
30
|
+
state.lastActivityAtMs = nowMs;
|
|
31
|
+
const occurredAt = reserveOccurredAt(state, nowMs, 1);
|
|
32
|
+
this.write(state);
|
|
33
|
+
return toEventContext(state, occurredAt);
|
|
34
|
+
}
|
|
35
|
+
beginPage(path, nowMs = Date.now()) {
|
|
36
|
+
const existing = this.read();
|
|
37
|
+
const expired = !existing || isExpired(existing, nowMs);
|
|
38
|
+
const state = expired ? newSession(nowMs) : existing;
|
|
39
|
+
const previousPage = expired ? void 0 : durationFor(state.activePage, nowMs);
|
|
40
|
+
state.lastActivityAtMs = nowMs;
|
|
41
|
+
state.activePage = { path, enteredAtMs: nowMs };
|
|
42
|
+
const occurredAt = reserveOccurredAt(state, nowMs, previousPage ? 2 : 1);
|
|
43
|
+
this.write(state);
|
|
44
|
+
return {
|
|
45
|
+
session: toEventContext(state, occurredAt),
|
|
46
|
+
previousPage
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
current() {
|
|
50
|
+
const state = this.read();
|
|
51
|
+
if (!state || isExpired(state, Date.now())) return null;
|
|
52
|
+
return toContext(state);
|
|
53
|
+
}
|
|
54
|
+
markBootstrapped(sessionId) {
|
|
55
|
+
const state = this.read();
|
|
56
|
+
if (!state || state.id !== sessionId) return;
|
|
57
|
+
state.bootstrapped = true;
|
|
58
|
+
this.write(state);
|
|
59
|
+
}
|
|
60
|
+
reset() {
|
|
61
|
+
this.fallbackState = null;
|
|
62
|
+
try {
|
|
63
|
+
sessionStorage.removeItem(ANALYTICS_SESSION_STORAGE_KEY);
|
|
64
|
+
} catch {
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
resolveActiveState(nowMs) {
|
|
68
|
+
const state = this.read();
|
|
69
|
+
return !state || isExpired(state, nowMs) ? newSession(nowMs) : state;
|
|
70
|
+
}
|
|
71
|
+
read() {
|
|
72
|
+
try {
|
|
73
|
+
const serialized = sessionStorage.getItem(ANALYTICS_SESSION_STORAGE_KEY);
|
|
74
|
+
if (!serialized) return this.fallbackState;
|
|
75
|
+
const state = JSON.parse(serialized);
|
|
76
|
+
if (!isPersistedSession(state)) {
|
|
77
|
+
sessionStorage.removeItem(ANALYTICS_SESSION_STORAGE_KEY);
|
|
78
|
+
return this.fallbackState;
|
|
79
|
+
}
|
|
80
|
+
this.fallbackState = state;
|
|
81
|
+
return state;
|
|
82
|
+
} catch {
|
|
83
|
+
return this.fallbackState;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
write(state) {
|
|
87
|
+
this.fallbackState = state;
|
|
88
|
+
try {
|
|
89
|
+
sessionStorage.setItem(ANALYTICS_SESSION_STORAGE_KEY, JSON.stringify(state));
|
|
90
|
+
} catch {
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
function newSession(nowMs) {
|
|
95
|
+
return {
|
|
96
|
+
version: ANALYTICS_SESSION_STATE_VERSION,
|
|
97
|
+
id: generateSessionId(),
|
|
98
|
+
startedAtMs: nowMs,
|
|
99
|
+
lastActivityAtMs: nowMs,
|
|
100
|
+
bootstrapped: false
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
function toContext(state) {
|
|
104
|
+
return {
|
|
105
|
+
id: state.id,
|
|
106
|
+
startedAt: new Date(state.startedAtMs).toISOString(),
|
|
107
|
+
requiresBootstrap: !state.bootstrapped
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
function toEventContext(state, occurredAtMicros) {
|
|
111
|
+
return {
|
|
112
|
+
...toContext(state),
|
|
113
|
+
occurredAt: formatEpochMicros(occurredAtMicros)
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
function reserveOccurredAt(state, nowMs, eventCount) {
|
|
117
|
+
const wallClockMicros = Math.trunc(nowMs) * MICROSECONDS_PER_MILLISECOND;
|
|
118
|
+
const occurredAtMicros = Math.max(
|
|
119
|
+
wallClockMicros,
|
|
120
|
+
(state.lastOccurredAtMicros ?? wallClockMicros - 1) + 1
|
|
121
|
+
);
|
|
122
|
+
state.lastOccurredAtMicros = occurredAtMicros + eventCount - 1;
|
|
123
|
+
return occurredAtMicros;
|
|
124
|
+
}
|
|
125
|
+
function formatEpochMicros(epochMicros) {
|
|
126
|
+
const epochMillis = Math.floor(epochMicros / MICROSECONDS_PER_MILLISECOND);
|
|
127
|
+
const microsWithinSecond = epochMicros % MICROSECONDS_PER_SECOND;
|
|
128
|
+
const millisecondIso = new Date(epochMillis).toISOString();
|
|
129
|
+
return `${millisecondIso.slice(0, -5)}.${String(microsWithinSecond).padStart(6, "0")}Z`;
|
|
130
|
+
}
|
|
131
|
+
function durationFor(activePage, nowMs) {
|
|
132
|
+
if (!activePage || nowMs < activePage.enteredAtMs) return void 0;
|
|
133
|
+
return {
|
|
134
|
+
path: activePage.path,
|
|
135
|
+
timeOnPageSeconds: Math.floor((nowMs - activePage.enteredAtMs) / 1e3)
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
function isExpired(state, nowMs) {
|
|
139
|
+
return nowMs - state.lastActivityAtMs >= ANALYTICS_SESSION_IDLE_TIMEOUT_MS;
|
|
140
|
+
}
|
|
141
|
+
function isPersistedSession(value) {
|
|
142
|
+
if (!value || typeof value !== "object") return false;
|
|
143
|
+
const state = value;
|
|
144
|
+
return state.version === ANALYTICS_SESSION_STATE_VERSION && typeof state.id === "string" && state.id.length > 0 && typeof state.startedAtMs === "number" && Number.isFinite(state.startedAtMs) && typeof state.lastActivityAtMs === "number" && Number.isFinite(state.lastActivityAtMs) && (state.lastOccurredAtMicros === void 0 || typeof state.lastOccurredAtMicros === "number" && Number.isSafeInteger(state.lastOccurredAtMicros)) && typeof state.bootstrapped === "boolean" && (!state.activePage || typeof state.activePage.path === "string" && typeof state.activePage.enteredAtMs === "number" && Number.isFinite(state.activePage.enteredAtMs));
|
|
145
|
+
}
|
|
146
|
+
function generateSessionId() {
|
|
147
|
+
if (typeof crypto !== "undefined" && crypto.randomUUID) {
|
|
148
|
+
return crypto.randomUUID();
|
|
149
|
+
}
|
|
150
|
+
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (character) => {
|
|
151
|
+
const random = Math.random() * 16 | 0;
|
|
152
|
+
const value = character === "x" ? random : random & 3 | 8;
|
|
153
|
+
return value.toString(16);
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
|
|
18
157
|
// src/activity.ts
|
|
19
158
|
var VISITOR_ID_STORAGE_KEY = "cimplify_visitor_id";
|
|
20
|
-
var SESSION_STARTED_STORAGE_KEY = "cimplify_session_started_at";
|
|
21
159
|
var ActivityService = class {
|
|
22
160
|
constructor(client) {
|
|
23
161
|
this.client = client;
|
|
162
|
+
this.sessions = new AnalyticsSessionCoordinator();
|
|
163
|
+
this.bootstrapRequest = null;
|
|
24
164
|
}
|
|
25
165
|
/**
|
|
26
166
|
* Record session start (landing, referrer, UTM, device). Fire-and-forget,
|
|
27
|
-
* at most once per
|
|
167
|
+
* at most once per 30-minute-idle analytics session; called automatically
|
|
168
|
+
* by the track* methods.
|
|
28
169
|
*/
|
|
29
170
|
startSession() {
|
|
30
171
|
if (typeof window === "undefined") return;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
42
|
-
this.client.post("/api/v1/activity/session", this.buildSessionPayload(startedAt)).catch(() => {
|
|
172
|
+
const session = this.sessions.beginEvent();
|
|
173
|
+
void this.bootstrapSession(session).catch(() => {
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
/** Rebind an existing analytics session after the server authenticates a customer. */
|
|
177
|
+
refreshIdentity() {
|
|
178
|
+
if (typeof window === "undefined") return;
|
|
179
|
+
const session = this.sessions.current();
|
|
180
|
+
if (!session) return;
|
|
181
|
+
void this.bootstrapSession(session, true).catch(() => {
|
|
43
182
|
});
|
|
44
183
|
}
|
|
45
|
-
|
|
184
|
+
/** A signed-out browser starts a fresh anonymous analytics session. */
|
|
185
|
+
resetSession() {
|
|
186
|
+
this.sessions.reset();
|
|
187
|
+
this.bootstrapRequest = null;
|
|
188
|
+
}
|
|
189
|
+
buildSessionPayload(session) {
|
|
46
190
|
const params = new URLSearchParams(window.location.search);
|
|
47
191
|
const utm = (key) => params.get(`utm_${key}`) || void 0;
|
|
48
192
|
const { visitorId, isNewVisitor } = resolveVisitor();
|
|
@@ -52,7 +196,8 @@ var ActivityService = class {
|
|
|
52
196
|
} catch {
|
|
53
197
|
}
|
|
54
198
|
return {
|
|
55
|
-
|
|
199
|
+
analytics_session_id: session.id,
|
|
200
|
+
started_at: session.startedAt,
|
|
56
201
|
landing_page: window.location.pathname,
|
|
57
202
|
landing_url: window.location.href,
|
|
58
203
|
referrer_url: document.referrer || void 0,
|
|
@@ -72,17 +217,28 @@ var ActivityService = class {
|
|
|
72
217
|
is_new_visitor: isNewVisitor
|
|
73
218
|
};
|
|
74
219
|
}
|
|
75
|
-
/** Product/category
|
|
220
|
+
/** Route-level page view. Product/category interactions are tracked separately. */
|
|
76
221
|
trackPageView(options = {}) {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
222
|
+
if (typeof window === "undefined") return;
|
|
223
|
+
const pagePath = options.pagePath ?? currentPath() ?? "";
|
|
224
|
+
const transition = this.sessions.beginPage(pagePath);
|
|
225
|
+
const events = [];
|
|
226
|
+
if (transition.previousPage) {
|
|
227
|
+
events.push({
|
|
228
|
+
type: "page_duration",
|
|
229
|
+
page_path: transition.previousPage.path,
|
|
230
|
+
time_on_page: transition.previousPage.timeOnPageSeconds
|
|
231
|
+
});
|
|
232
|
+
}
|
|
233
|
+
events.push({
|
|
234
|
+
type: "page_view",
|
|
235
|
+
page_path: pagePath,
|
|
236
|
+
page_title: options.pageTitle ?? currentTitle()
|
|
237
|
+
});
|
|
238
|
+
this.sendEvents(events, transition.session);
|
|
84
239
|
}
|
|
85
240
|
trackProductView(productId, options = {}) {
|
|
241
|
+
if (typeof window === "undefined") return;
|
|
86
242
|
const event = {
|
|
87
243
|
type: "product_view",
|
|
88
244
|
product_id: productId,
|
|
@@ -94,6 +250,7 @@ var ActivityService = class {
|
|
|
94
250
|
this.sendEvents([event]);
|
|
95
251
|
}
|
|
96
252
|
trackCategoryView(categoryId, options = {}) {
|
|
253
|
+
if (typeof window === "undefined") return;
|
|
97
254
|
const event = {
|
|
98
255
|
type: "category_view",
|
|
99
256
|
category_id: categoryId,
|
|
@@ -149,10 +306,33 @@ var ActivityService = class {
|
|
|
149
306
|
window.removeEventListener("popstate", record);
|
|
150
307
|
};
|
|
151
308
|
}
|
|
152
|
-
sendEvents(events) {
|
|
153
|
-
|
|
154
|
-
this.
|
|
309
|
+
sendEvents(events, session) {
|
|
310
|
+
if (typeof window === "undefined") return;
|
|
311
|
+
void this.postEvents(events, session ?? this.sessions.beginEvent()).catch(() => {
|
|
312
|
+
});
|
|
313
|
+
}
|
|
314
|
+
async postEvents(events, session) {
|
|
315
|
+
await this.bootstrapSession(session);
|
|
316
|
+
await this.client.post("/api/v1/activity/events", {
|
|
317
|
+
analytics_session_id: session.id,
|
|
318
|
+
occurred_at: session.occurredAt,
|
|
319
|
+
events
|
|
320
|
+
});
|
|
321
|
+
}
|
|
322
|
+
bootstrapSession(session, force = false) {
|
|
323
|
+
if (!force && !session.requiresBootstrap) return Promise.resolve();
|
|
324
|
+
if (!force && this.bootstrapRequest?.sessionId === session.id) {
|
|
325
|
+
return this.bootstrapRequest.promise;
|
|
326
|
+
}
|
|
327
|
+
const promise = this.client.post("/api/v1/activity/session", this.buildSessionPayload(session)).then(() => {
|
|
328
|
+
this.sessions.markBootstrapped(session.id);
|
|
329
|
+
}).finally(() => {
|
|
330
|
+
if (this.bootstrapRequest?.promise === promise) {
|
|
331
|
+
this.bootstrapRequest = null;
|
|
332
|
+
}
|
|
155
333
|
});
|
|
334
|
+
this.bootstrapRequest = { sessionId: session.id, promise };
|
|
335
|
+
return promise;
|
|
156
336
|
}
|
|
157
337
|
};
|
|
158
338
|
function currentPath() {
|
|
@@ -760,6 +940,7 @@ var CimplifyClient = class {
|
|
|
760
940
|
clearSession() {
|
|
761
941
|
const previous = this.accessToken;
|
|
762
942
|
this.accessToken = null;
|
|
943
|
+
this._activity?.resetSession();
|
|
763
944
|
this.sessionToken = null;
|
|
764
945
|
this.sessionEpoch++;
|
|
765
946
|
try {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { af as CimplifyClient } from './client-
|
|
2
|
-
import { A as AppHandle, C as CreateAppOptions } from './server
|
|
1
|
+
import { af as CimplifyClient } from './client-Bx4NRdl8.mjs';
|
|
2
|
+
import { A as AppHandle, C as CreateAppOptions } from './server-BRJ61o2J.mjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Test client + fixtures.
|
|
@@ -2418,14 +2418,21 @@ interface DismissMessageResponse {
|
|
|
2418
2418
|
}
|
|
2419
2419
|
declare class ActivityService {
|
|
2420
2420
|
private client;
|
|
2421
|
+
private readonly sessions;
|
|
2422
|
+
private bootstrapRequest;
|
|
2421
2423
|
constructor(client: CimplifyClient);
|
|
2422
2424
|
/**
|
|
2423
2425
|
* Record session start (landing, referrer, UTM, device). Fire-and-forget,
|
|
2424
|
-
* at most once per
|
|
2426
|
+
* at most once per 30-minute-idle analytics session; called automatically
|
|
2427
|
+
* by the track* methods.
|
|
2425
2428
|
*/
|
|
2426
2429
|
startSession(): void;
|
|
2430
|
+
/** Rebind an existing analytics session after the server authenticates a customer. */
|
|
2431
|
+
refreshIdentity(): void;
|
|
2432
|
+
/** A signed-out browser starts a fresh anonymous analytics session. */
|
|
2433
|
+
resetSession(): void;
|
|
2427
2434
|
private buildSessionPayload;
|
|
2428
|
-
/** Product/category
|
|
2435
|
+
/** Route-level page view. Product/category interactions are tracked separately. */
|
|
2429
2436
|
trackPageView(options?: TrackPageViewOptions): void;
|
|
2430
2437
|
trackProductView(productId: string, options?: TrackProductViewOptions): void;
|
|
2431
2438
|
trackCategoryView(categoryId: string, options?: TrackCategoryViewOptions): void;
|
|
@@ -2438,6 +2445,8 @@ declare class ActivityService {
|
|
|
2438
2445
|
/** Records a page view now and on every route change; returns a stop fn. */
|
|
2439
2446
|
autoTrackPageViews(): () => void;
|
|
2440
2447
|
private sendEvents;
|
|
2448
|
+
private postEvents;
|
|
2449
|
+
private bootstrapSession;
|
|
2441
2450
|
}
|
|
2442
2451
|
|
|
2443
2452
|
interface IdempotencyOption$2 {
|
|
@@ -2418,14 +2418,21 @@ interface DismissMessageResponse {
|
|
|
2418
2418
|
}
|
|
2419
2419
|
declare class ActivityService {
|
|
2420
2420
|
private client;
|
|
2421
|
+
private readonly sessions;
|
|
2422
|
+
private bootstrapRequest;
|
|
2421
2423
|
constructor(client: CimplifyClient);
|
|
2422
2424
|
/**
|
|
2423
2425
|
* Record session start (landing, referrer, UTM, device). Fire-and-forget,
|
|
2424
|
-
* at most once per
|
|
2426
|
+
* at most once per 30-minute-idle analytics session; called automatically
|
|
2427
|
+
* by the track* methods.
|
|
2425
2428
|
*/
|
|
2426
2429
|
startSession(): void;
|
|
2430
|
+
/** Rebind an existing analytics session after the server authenticates a customer. */
|
|
2431
|
+
refreshIdentity(): void;
|
|
2432
|
+
/** A signed-out browser starts a fresh anonymous analytics session. */
|
|
2433
|
+
resetSession(): void;
|
|
2427
2434
|
private buildSessionPayload;
|
|
2428
|
-
/** Product/category
|
|
2435
|
+
/** Route-level page view. Product/category interactions are tracked separately. */
|
|
2429
2436
|
trackPageView(options?: TrackPageViewOptions): void;
|
|
2430
2437
|
trackProductView(productId: string, options?: TrackProductViewOptions): void;
|
|
2431
2438
|
trackCategoryView(categoryId: string, options?: TrackCategoryViewOptions): void;
|
|
@@ -2438,6 +2445,8 @@ declare class ActivityService {
|
|
|
2438
2445
|
/** Records a page view now and on every route change; returns a stop fn. */
|
|
2439
2446
|
autoTrackPageViews(): () => void;
|
|
2440
2447
|
private sendEvents;
|
|
2448
|
+
private postEvents;
|
|
2449
|
+
private bootstrapSession;
|
|
2441
2450
|
}
|
|
2442
2451
|
|
|
2443
2452
|
interface IdempotencyOption$2 {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { af as CimplifyClient } from './client-
|
|
2
|
-
import { A as AppHandle, C as CreateAppOptions } from './server-
|
|
1
|
+
import { af as CimplifyClient } from './client-BWdeCgmo.js';
|
|
2
|
+
import { A as AppHandle, C as CreateAppOptions } from './server-CXrVYtNo.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Test client + fixtures.
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { X as ChatReplyCard } from './client-
|
|
2
|
-
export { A as AUTHORIZATION_TYPE, a as AUTH_MUTATION, b as AbortablePromise, c as ActivityRecommendation, d as ActivityRecommendationsResponse, e as ActivityService, f as ActivityStateResponse, g as AddressData, h as AddressInfo, i as AmountToPay, j as AuthResponse, k as AuthService, l as AuthStatus, m as AuthenticatedCustomer, n as AuthenticatedData, o as AutocompletePrediction, p as AutocompleteResponse, q as AvailabilityResult, r as AvailableSlot, B as Booking, s as BookingModificationType, t as BookingStatus, u as BookingWithDetails, v as BufferTimes, w as Business, x as BusinessDetailsDTO, y as BusinessHours, z as BusinessPreferences, C as BusinessService, D as BusinessSettings, E as BusinessWithLocations, F as CHECKOUT_MODE, G as CHECKOUT_MUTATION, H as CHECKOUT_STEP, I as CONTACT_TYPE, J as CacheOptions, K as CancelBookingInput, L as CancelBookingResult, M as CancelOrderInput, N as CancellationPolicy, O as CartOperations, P as CatalogueQueries, Q as CatalogueResult, R as CatalogueSnapshot, S as CategoryInfo, T as ChatAttachment, U as ChatConversation, V as ChatConversationResponse, W as ChatMessage, Y as ChatReplyContext, Z as ChatUploadAttachment, _ as ChatWidgetStarter, $ as CheckSlotAvailabilityInput, a0 as CheckSlotAvailabilityResult, a1 as CheckoutAddressInfo, a2 as CheckoutCartData, a3 as CheckoutCartItem, a4 as CheckoutCustomerInfo, a5 as CheckoutFormData, a6 as CheckoutInput, a7 as CheckoutMode, ab as CheckoutOperations, a8 as CheckoutOrderType, a9 as CheckoutPaymentMethod, aa as CheckoutResult, ab as CheckoutService, ac as CheckoutStatus, ad as CheckoutStatusContext, ae as CheckoutStep, af as CimplifyClient, ag as CimplifyConfig, ah as CimplifyElement, ai as CimplifyElements, aj as ClaimConversationResult, ak as ContactType, al as ContentType, am as CreateAddressInput, an as CreateMobileMoneyInput, ao as Customer, ap as CustomerAddress, aq as CustomerBooking, ar as CustomerBookingServiceItem, as as CustomerLinkPreferences, at as CustomerMobileMoney, au as CustomerServicePreferences, av as DEFAULT_COUNTRY, aw as DEFAULT_CURRENCY, ax as DEVICE_TYPE, ay as DayAvailability, az as DeliveryFeeDetails, aA as DeliveryFeeResponse, aB as DeliveryOption, aC as DeliveryOptionsQuery, aD as DeliveryOptionsResponse, aE as DeliveryService, aF as DepositResult, aG as DeviceType, aH as DismissMessageResponse, aI as ELEMENTS_AUTH_CONTACT_TYPES, aJ as ELEMENTS_AUTH_MODES, aK as ELEMENTS_AUTH_PROMPTS, aL as ELEMENT_TYPES, aM as EVENT_TYPES, aN as ElementAppearance, aO as ElementEventHandler, aP as ElementEventType, aQ as ElementOptions, aR as ElementType, aS as ElementsAuthContactType, aT as ElementsAuthMode, aU as ElementsAuthOptions, aV as ElementsAuthPrompt, aW as ElementsCheckoutData, aX as ElementsCheckoutResult, aY as ElementsCustomerInfo, aZ as ElementsOptions, a_ as EnrichedOrder, a$ as EnrichedOrderItem, b0 as EnrollAndLinkOrderInput, b1 as EnrollAndLinkOrderResult, b2 as EnrollmentData, b3 as Err, b4 as FeeBearerType, b5 as FetchQuoteInput, b6 as FulfillmentLink, b7 as FulfillmentStatus, b8 as FulfillmentSummaryDTO, b9 as FulfillmentType, ba as FxQuote, bb as FxQuoteRequest, bc as FxQuoteStatus, bd as FxRateResponse, be as FxService, bf as GetAvailableSlotsInput, bg as GetDeliveryOptionsParams, bh as GetOrdersOptions, bi as GetProductsOptions, bj as GroupOrderInfo, bk as IframeToParentMessage, bl as InventoryService, bm as LINK_MUTATION, bn as LINK_QUERY, bo as LifecyclePhase, bp as LineItem, bq as LineType, br as LinkData, bs as LinkEnrollResult, bt as LinkService, bu as LinkSession, bv as LinkStatusResult, bw as LiteBootstrap, bx as LiteDayHours, by as LiteHoursRange, bz as LiteService, bA as Location, bB as LocationBooking, bC as LocationTaxBehavior, bD as LocationTaxOverrides, bE as LocationTimeProfile, bF as LocationWithDetails, bG as MESSAGE_TYPES, bH as MOBILE_MONEY_PROVIDER, bI as MobileMoneyData, bJ as MobileMoneyDetails, bK as MobileMoneyProvider, bL as NextAction, bM as ORDER_MUTATION, bN as ORDER_TYPE, bO as ObservabilityHooks, bP as Ok, bQ as Order, bR as OrderCustomerInfo, bS as OrderDiscountInfo, bT as OrderFilter, bU as OrderFulfillmentSummary, bV as OrderGroup, bW as OrderGroupDetails, bX as OrderGroupPayment, bY as OrderGroupPaymentState, bZ as OrderGroupPaymentStatus, b_ as OrderGroupPaymentSummary, b$ as OrderGroupStatus, c0 as OrderHistory, c1 as OrderLineState, c2 as OrderLineStatus, c3 as OrderLocationInfo, c4 as OrderPaymentEvent, c5 as OrderPricingView, c6 as OrderQueries, c7 as OrderSplitDetail, c8 as OrderStaffInfo, c9 as OrderStatus, ca as OrderTimestampsDTO, cb as OrderType, cc as Origin, cd as OriginActor, ce as OriginChannel, cf as OtpResult, cg as PAYMENT_METHOD, ch as PAYMENT_MUTATION, ci as PAYMENT_STATE, cj as PICKUP_TIME_TYPE, ck as ParentToIframeMessage, cl as PaymentInfoDTO, cm as PaymentMethodInfo, cn as PaymentState, co as PickupTime, cp as PickupTimeType, cq as PlaceDetailsResponse, cr as PlacesService, cs as PriceQuote, ct as PricingOverrides, cu as ProcessAndResolveOptions, cv as ProcessCheckoutOptions, cw as ProcessCheckoutResult, cx as ProviderResolutionSource, cy as QuoteBundleSelectionInput, cz as QuoteCompositeSelectionInput, cA as QuoteDynamicBuckets, cB as QuoteStatus, cC as QuoteUiMessage, cD as ReadRequestOptions, cE as RefreshQuoteInput, cF as RefreshQuoteResult, cG as RefundOrderInput, cH as RelatedCandidate, cI as RelatedProduct, cJ as RelatedProductsEnrichment, cK as RelationType, cL as ReminderMethod, cM as ReminderSettings, cN as ReorderResult, cO as RequestContext, cP as RequestErrorEvent, cQ as RequestOptions, cR as RequestOtpInput, cS as RequestSource, cT as RequestStartEvent, cU as RequestSuccessEvent, cV as RescheduleBookingInput, cW as RescheduleBookingResult, cX as RescheduleHistoryRecord, cY as ResourceAssignment, cZ as ResourceInfo, c_ as Result, c$ as RetryEvent, d0 as RevokeAllSessionsResult, d1 as RevokeSessionResult, d2 as Room, d3 as SchedulingMetadata, d4 as SchedulingResult, d5 as SchedulingService, d6 as SenderType, d7 as Service, d8 as ServiceAvailabilityParams, d9 as ServiceAvailabilityResult, da as ServiceCharge, db as ServiceNotes, dc as ServiceScheduleRequest, dd as ServiceStatus, de as SessionActivityData, df as SessionChangeEvent, dg as SessionMessage, dh as SlotResourceInfo, di as SlotStaffInfo, dj as Staff, dk as StaffAssignment, dl as StaffRole, dm as StaffScheduleItem, dn as StockLevel, dp as StockStatus, dq as StoreCreditBalance, dr as StoreCreditQueries, ds as StorefrontBootstrap, dt as SubscriptionService, du as SupportService, dv as Table, dw as TimeRange, dx as TimeRanges, dy as TimeSlot, dz as TrackCategoryViewOptions, dA as TrackProductViewOptions, dB as UpdateAddressInput, dC as UpdateOrderStatusInput, dD as UpdateProfileInput, dE as UploadInitResponse, dF as UploadResult, dG as UploadService, dH as VerifyOtpInput, dI as combine, dJ as combineObject, dK as createCimplifyClient, dL as createElements, dM as err, dN as flatMap, dO as fromPromise, dP as getOrElse, dQ as isErr, dR as isOk, dS as mapError, dT as mapResult, dU as ok, dV as toNullable, dW as tryCatch, dX as unwrap } from './client-
|
|
1
|
+
import { X as ChatReplyCard } from './client-Bx4NRdl8.mjs';
|
|
2
|
+
export { A as AUTHORIZATION_TYPE, a as AUTH_MUTATION, b as AbortablePromise, c as ActivityRecommendation, d as ActivityRecommendationsResponse, e as ActivityService, f as ActivityStateResponse, g as AddressData, h as AddressInfo, i as AmountToPay, j as AuthResponse, k as AuthService, l as AuthStatus, m as AuthenticatedCustomer, n as AuthenticatedData, o as AutocompletePrediction, p as AutocompleteResponse, q as AvailabilityResult, r as AvailableSlot, B as Booking, s as BookingModificationType, t as BookingStatus, u as BookingWithDetails, v as BufferTimes, w as Business, x as BusinessDetailsDTO, y as BusinessHours, z as BusinessPreferences, C as BusinessService, D as BusinessSettings, E as BusinessWithLocations, F as CHECKOUT_MODE, G as CHECKOUT_MUTATION, H as CHECKOUT_STEP, I as CONTACT_TYPE, J as CacheOptions, K as CancelBookingInput, L as CancelBookingResult, M as CancelOrderInput, N as CancellationPolicy, O as CartOperations, P as CatalogueQueries, Q as CatalogueResult, R as CatalogueSnapshot, S as CategoryInfo, T as ChatAttachment, U as ChatConversation, V as ChatConversationResponse, W as ChatMessage, Y as ChatReplyContext, Z as ChatUploadAttachment, _ as ChatWidgetStarter, $ as CheckSlotAvailabilityInput, a0 as CheckSlotAvailabilityResult, a1 as CheckoutAddressInfo, a2 as CheckoutCartData, a3 as CheckoutCartItem, a4 as CheckoutCustomerInfo, a5 as CheckoutFormData, a6 as CheckoutInput, a7 as CheckoutMode, ab as CheckoutOperations, a8 as CheckoutOrderType, a9 as CheckoutPaymentMethod, aa as CheckoutResult, ab as CheckoutService, ac as CheckoutStatus, ad as CheckoutStatusContext, ae as CheckoutStep, af as CimplifyClient, ag as CimplifyConfig, ah as CimplifyElement, ai as CimplifyElements, aj as ClaimConversationResult, ak as ContactType, al as ContentType, am as CreateAddressInput, an as CreateMobileMoneyInput, ao as Customer, ap as CustomerAddress, aq as CustomerBooking, ar as CustomerBookingServiceItem, as as CustomerLinkPreferences, at as CustomerMobileMoney, au as CustomerServicePreferences, av as DEFAULT_COUNTRY, aw as DEFAULT_CURRENCY, ax as DEVICE_TYPE, ay as DayAvailability, az as DeliveryFeeDetails, aA as DeliveryFeeResponse, aB as DeliveryOption, aC as DeliveryOptionsQuery, aD as DeliveryOptionsResponse, aE as DeliveryService, aF as DepositResult, aG as DeviceType, aH as DismissMessageResponse, aI as ELEMENTS_AUTH_CONTACT_TYPES, aJ as ELEMENTS_AUTH_MODES, aK as ELEMENTS_AUTH_PROMPTS, aL as ELEMENT_TYPES, aM as EVENT_TYPES, aN as ElementAppearance, aO as ElementEventHandler, aP as ElementEventType, aQ as ElementOptions, aR as ElementType, aS as ElementsAuthContactType, aT as ElementsAuthMode, aU as ElementsAuthOptions, aV as ElementsAuthPrompt, aW as ElementsCheckoutData, aX as ElementsCheckoutResult, aY as ElementsCustomerInfo, aZ as ElementsOptions, a_ as EnrichedOrder, a$ as EnrichedOrderItem, b0 as EnrollAndLinkOrderInput, b1 as EnrollAndLinkOrderResult, b2 as EnrollmentData, b3 as Err, b4 as FeeBearerType, b5 as FetchQuoteInput, b6 as FulfillmentLink, b7 as FulfillmentStatus, b8 as FulfillmentSummaryDTO, b9 as FulfillmentType, ba as FxQuote, bb as FxQuoteRequest, bc as FxQuoteStatus, bd as FxRateResponse, be as FxService, bf as GetAvailableSlotsInput, bg as GetDeliveryOptionsParams, bh as GetOrdersOptions, bi as GetProductsOptions, bj as GroupOrderInfo, bk as IframeToParentMessage, bl as InventoryService, bm as LINK_MUTATION, bn as LINK_QUERY, bo as LifecyclePhase, bp as LineItem, bq as LineType, br as LinkData, bs as LinkEnrollResult, bt as LinkService, bu as LinkSession, bv as LinkStatusResult, bw as LiteBootstrap, bx as LiteDayHours, by as LiteHoursRange, bz as LiteService, bA as Location, bB as LocationBooking, bC as LocationTaxBehavior, bD as LocationTaxOverrides, bE as LocationTimeProfile, bF as LocationWithDetails, bG as MESSAGE_TYPES, bH as MOBILE_MONEY_PROVIDER, bI as MobileMoneyData, bJ as MobileMoneyDetails, bK as MobileMoneyProvider, bL as NextAction, bM as ORDER_MUTATION, bN as ORDER_TYPE, bO as ObservabilityHooks, bP as Ok, bQ as Order, bR as OrderCustomerInfo, bS as OrderDiscountInfo, bT as OrderFilter, bU as OrderFulfillmentSummary, bV as OrderGroup, bW as OrderGroupDetails, bX as OrderGroupPayment, bY as OrderGroupPaymentState, bZ as OrderGroupPaymentStatus, b_ as OrderGroupPaymentSummary, b$ as OrderGroupStatus, c0 as OrderHistory, c1 as OrderLineState, c2 as OrderLineStatus, c3 as OrderLocationInfo, c4 as OrderPaymentEvent, c5 as OrderPricingView, c6 as OrderQueries, c7 as OrderSplitDetail, c8 as OrderStaffInfo, c9 as OrderStatus, ca as OrderTimestampsDTO, cb as OrderType, cc as Origin, cd as OriginActor, ce as OriginChannel, cf as OtpResult, cg as PAYMENT_METHOD, ch as PAYMENT_MUTATION, ci as PAYMENT_STATE, cj as PICKUP_TIME_TYPE, ck as ParentToIframeMessage, cl as PaymentInfoDTO, cm as PaymentMethodInfo, cn as PaymentState, co as PickupTime, cp as PickupTimeType, cq as PlaceDetailsResponse, cr as PlacesService, cs as PriceQuote, ct as PricingOverrides, cu as ProcessAndResolveOptions, cv as ProcessCheckoutOptions, cw as ProcessCheckoutResult, cx as ProviderResolutionSource, cy as QuoteBundleSelectionInput, cz as QuoteCompositeSelectionInput, cA as QuoteDynamicBuckets, cB as QuoteStatus, cC as QuoteUiMessage, cD as ReadRequestOptions, cE as RefreshQuoteInput, cF as RefreshQuoteResult, cG as RefundOrderInput, cH as RelatedCandidate, cI as RelatedProduct, cJ as RelatedProductsEnrichment, cK as RelationType, cL as ReminderMethod, cM as ReminderSettings, cN as ReorderResult, cO as RequestContext, cP as RequestErrorEvent, cQ as RequestOptions, cR as RequestOtpInput, cS as RequestSource, cT as RequestStartEvent, cU as RequestSuccessEvent, cV as RescheduleBookingInput, cW as RescheduleBookingResult, cX as RescheduleHistoryRecord, cY as ResourceAssignment, cZ as ResourceInfo, c_ as Result, c$ as RetryEvent, d0 as RevokeAllSessionsResult, d1 as RevokeSessionResult, d2 as Room, d3 as SchedulingMetadata, d4 as SchedulingResult, d5 as SchedulingService, d6 as SenderType, d7 as Service, d8 as ServiceAvailabilityParams, d9 as ServiceAvailabilityResult, da as ServiceCharge, db as ServiceNotes, dc as ServiceScheduleRequest, dd as ServiceStatus, de as SessionActivityData, df as SessionChangeEvent, dg as SessionMessage, dh as SlotResourceInfo, di as SlotStaffInfo, dj as Staff, dk as StaffAssignment, dl as StaffRole, dm as StaffScheduleItem, dn as StockLevel, dp as StockStatus, dq as StoreCreditBalance, dr as StoreCreditQueries, ds as StorefrontBootstrap, dt as SubscriptionService, du as SupportService, dv as Table, dw as TimeRange, dx as TimeRanges, dy as TimeSlot, dz as TrackCategoryViewOptions, dA as TrackProductViewOptions, dB as UpdateAddressInput, dC as UpdateOrderStatusInput, dD as UpdateProfileInput, dE as UploadInitResponse, dF as UploadResult, dG as UploadService, dH as VerifyOtpInput, dI as combine, dJ as combineObject, dK as createCimplifyClient, dL as createElements, dM as err, dN as flatMap, dO as fromPromise, dP as getOrElse, dQ as isErr, dR as isOk, dS as mapError, dT as mapResult, dU as ok, dV as toNullable, dW as tryCatch, dX as unwrap } from './client-Bx4NRdl8.mjs';
|
|
3
3
|
import { bb as ProductWithDetails, aZ as Product, av as DurationUnit, j as ApiError } from './product-CeV8euw4.mjs';
|
|
4
4
|
export { A as AddOn, a as AddOnDetails, b as AddOnGroupDetails, c as AddOnOption, d as AddOnOptionDetails, e as AddOnOptionPrice, f as AddOnWithOptions, g as AddToCartInput, h as AddressValue, i as AdjustmentType, k as AppliedDiscount, l as AttributeAppliesTo, m as AttributeType, n as AttributeValidationRules, o as AttributeVisibility, B as BOUNDARY_KIND, p as BenefitType, q as BillingFrequency, r as BillingMarkupType, s as BillingPlanType, t as BoundaryKind, u as Bundle, v as BundleComponentData, w as BundleComponentInfo, x as BundleComponentVariantView, y as BundleComponentView, z as BundlePriceType, C as BundleProduct, D as BundleSelectionData, E as BundleSelectionInput, F as BundleStoredSelection, G as BundleSummary, H as BundleWithDetails, I as Cart, J as CartAddOn, K as CartChannel, L as CartItem, M as CartItemDetails, N as CartMutationResult, O as CartNotice, P as CartStatus, Q as CartSummary, R as CartTotals, S as Category, T as CategorySummary, U as ChosenPrice, V as CimplifyError, W as Collection, X as CollectionProduct, Y as CollectionSummary, Z as ComponentGroup, _ as ComponentGroupWithComponents, $ as ComponentPriceBreakdown, a0 as ComponentSchedulingData, a1 as ComponentSelectionInput, a2 as ComponentSourceType, a3 as Composite, a4 as CompositeComponent, a5 as CompositeComponentView, a6 as CompositeGroupView, a7 as CompositePriceBreakdown, a8 as CompositePriceResult, a9 as CompositePricingMode, aa as CompositeSelectionData, a1 as CompositeSelectionInput, ab as CompositeStoredSelection, ac as CompositeWithDetails, ad as CurrencyCode, ae as CustomAttributeDefinition, af as CustomAttributeValue, ag as CustomerInputValue, ah as DURATION_UNIT, ai as DateRangeValue, aj as Deal, ak as DealBenefitType, al as DepositType, am as DigitalProductType, an as DiscountBreakdown, ao as DiscountDetails, ap as DiscountValidation, aq as DisplayAddOn, ar as DisplayAddOnOption, as as DisplayCart, at as DisplayCartItem, au as DisplayMode, aw as ERROR_HINTS, ax as EligiblePlansQuery, ay as ErrorCode, az as ErrorCodeType, aA as ErrorHint, aB as FacetValue, aC as FormattedPlanOption, aD as GroupPricingBehavior, aE as INPUT_FIELD_TYPE, aF as IdempotencyMismatchError, aG as InputFieldType, aH as InputFieldValidation, aI as InventoryType, aJ as KnowledgeArticle, aK as LineConfiguration, aL as LocationProductPrice, aM as LocationValue, aN as MeasurementValue, aO as Money, aP as PRODUCT_TYPE, aQ as Pagination, aR as PaginationParams, aS as PhoneValue, aT as Price, aU as PriceAdjustment, aV as PriceDecisionPath, aW as PriceEntryType, aX as PricePathTaxInfo, aY as PriceSource, a_ as ProductAddOn, a$ as ProductAvailability, b0 as ProductAvailabilityNow, b1 as ProductBillingPlan, b2 as ProductDealInfo, b3 as ProductInputField, b4 as ProductProperty, b5 as ProductRenderHint, b6 as ProductTaxonomy, b7 as ProductTimeProfile, b8 as ProductType, b9 as ProductVariant, ba as ProductVariantValue, bc as PropertyFacet, bd as PropertySource, be as QuantityPricingTier, bf as RENDER_HINT, bg as RelatedProductView, bh as SaleCapInfo, bi as SaleInfo, bj as SalesChannel, bk as SchedulingMode, bl as SelectedAddOnOption, bm as SemanticKind, bn as SignatureValue, bo as Subscription, bp as SubscriptionInvoice, bq as SubscriptionItem, br as SubscriptionStatus, bs as SubscriptionWithDetails, bt as Tag, bu as TagsResponse, bv as TaxPathComponent, bw as TaxonomyAttributeTemplate, bx as TaxonomyWithChildren, by as UICart, bz as UICartBusiness, bA as UICartCustomer, bB as UICartLocation, bC as UICartPricing, bD as UpcomingSale, bE as UpdateCartItemInput, bF as VariantAxis, bG as VariantAxisSelection, bH as VariantAxisValue, bI as VariantAxisValueView, bJ as VariantAxisView, bK as VariantAxisWithValues, bL as VariantDetails, bM as VariantDetailsDTO, bN as VariantDisplayAttribute, bO as VariantLocationAvailability, bP as VariantStrategy, bQ as VariantView, bR as ZERO, bT as currencyCode, bU as enrichError, bV as getErrorHint, bW as isCimplifyError, bX as isIdempotencyMismatchError, bY as isQuoteConflictRequiringConsent, bZ as isQuoteError, b_ as isRetryableError, b$ as isSupportedCurrency, c0 as money, c1 as moneyFromNumber } from './product-CeV8euw4.mjs';
|
|
5
5
|
export { C as CURRENCY_SYMBOLS, M as MOBILE_MONEY_PROVIDERS, c as categorizePaymentError, d as detectMobileMoneyProvider, f as formatMoney, a as formatNumberCompact, b as formatPrice, e as formatPriceAdjustment, g as formatPriceCompact, h as formatPriceRange, i as formatPriceWithTax, j as formatProductPrice, k as getBasePrice, l as getCurrencySymbol, m as getDiscountPercentage, n as getDisplayPrice, o as getMarkupPercentage, p as getPriceRange, q as getProductCurrency, r as getTaxAmount, s as getUnitPriceAtQuantity, t as hasTaxInfo, u as isOnSale, v as isPaymentStatusFailure, w as isPaymentStatusRequiresAction, x as isPaymentStatusSuccess, y as isTaxInclusive, z as isValidPhoneForContext, A as normalizePaymentResponse, B as normalizePhoneToE164, D as normalizeStatusResponse, E as parsePrice, F as resolvePhoneCountryCode } from './index-D-LUYk1Y.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { X as ChatReplyCard } from './client-
|
|
2
|
-
export { A as AUTHORIZATION_TYPE, a as AUTH_MUTATION, b as AbortablePromise, c as ActivityRecommendation, d as ActivityRecommendationsResponse, e as ActivityService, f as ActivityStateResponse, g as AddressData, h as AddressInfo, i as AmountToPay, j as AuthResponse, k as AuthService, l as AuthStatus, m as AuthenticatedCustomer, n as AuthenticatedData, o as AutocompletePrediction, p as AutocompleteResponse, q as AvailabilityResult, r as AvailableSlot, B as Booking, s as BookingModificationType, t as BookingStatus, u as BookingWithDetails, v as BufferTimes, w as Business, x as BusinessDetailsDTO, y as BusinessHours, z as BusinessPreferences, C as BusinessService, D as BusinessSettings, E as BusinessWithLocations, F as CHECKOUT_MODE, G as CHECKOUT_MUTATION, H as CHECKOUT_STEP, I as CONTACT_TYPE, J as CacheOptions, K as CancelBookingInput, L as CancelBookingResult, M as CancelOrderInput, N as CancellationPolicy, O as CartOperations, P as CatalogueQueries, Q as CatalogueResult, R as CatalogueSnapshot, S as CategoryInfo, T as ChatAttachment, U as ChatConversation, V as ChatConversationResponse, W as ChatMessage, Y as ChatReplyContext, Z as ChatUploadAttachment, _ as ChatWidgetStarter, $ as CheckSlotAvailabilityInput, a0 as CheckSlotAvailabilityResult, a1 as CheckoutAddressInfo, a2 as CheckoutCartData, a3 as CheckoutCartItem, a4 as CheckoutCustomerInfo, a5 as CheckoutFormData, a6 as CheckoutInput, a7 as CheckoutMode, ab as CheckoutOperations, a8 as CheckoutOrderType, a9 as CheckoutPaymentMethod, aa as CheckoutResult, ab as CheckoutService, ac as CheckoutStatus, ad as CheckoutStatusContext, ae as CheckoutStep, af as CimplifyClient, ag as CimplifyConfig, ah as CimplifyElement, ai as CimplifyElements, aj as ClaimConversationResult, ak as ContactType, al as ContentType, am as CreateAddressInput, an as CreateMobileMoneyInput, ao as Customer, ap as CustomerAddress, aq as CustomerBooking, ar as CustomerBookingServiceItem, as as CustomerLinkPreferences, at as CustomerMobileMoney, au as CustomerServicePreferences, av as DEFAULT_COUNTRY, aw as DEFAULT_CURRENCY, ax as DEVICE_TYPE, ay as DayAvailability, az as DeliveryFeeDetails, aA as DeliveryFeeResponse, aB as DeliveryOption, aC as DeliveryOptionsQuery, aD as DeliveryOptionsResponse, aE as DeliveryService, aF as DepositResult, aG as DeviceType, aH as DismissMessageResponse, aI as ELEMENTS_AUTH_CONTACT_TYPES, aJ as ELEMENTS_AUTH_MODES, aK as ELEMENTS_AUTH_PROMPTS, aL as ELEMENT_TYPES, aM as EVENT_TYPES, aN as ElementAppearance, aO as ElementEventHandler, aP as ElementEventType, aQ as ElementOptions, aR as ElementType, aS as ElementsAuthContactType, aT as ElementsAuthMode, aU as ElementsAuthOptions, aV as ElementsAuthPrompt, aW as ElementsCheckoutData, aX as ElementsCheckoutResult, aY as ElementsCustomerInfo, aZ as ElementsOptions, a_ as EnrichedOrder, a$ as EnrichedOrderItem, b0 as EnrollAndLinkOrderInput, b1 as EnrollAndLinkOrderResult, b2 as EnrollmentData, b3 as Err, b4 as FeeBearerType, b5 as FetchQuoteInput, b6 as FulfillmentLink, b7 as FulfillmentStatus, b8 as FulfillmentSummaryDTO, b9 as FulfillmentType, ba as FxQuote, bb as FxQuoteRequest, bc as FxQuoteStatus, bd as FxRateResponse, be as FxService, bf as GetAvailableSlotsInput, bg as GetDeliveryOptionsParams, bh as GetOrdersOptions, bi as GetProductsOptions, bj as GroupOrderInfo, bk as IframeToParentMessage, bl as InventoryService, bm as LINK_MUTATION, bn as LINK_QUERY, bo as LifecyclePhase, bp as LineItem, bq as LineType, br as LinkData, bs as LinkEnrollResult, bt as LinkService, bu as LinkSession, bv as LinkStatusResult, bw as LiteBootstrap, bx as LiteDayHours, by as LiteHoursRange, bz as LiteService, bA as Location, bB as LocationBooking, bC as LocationTaxBehavior, bD as LocationTaxOverrides, bE as LocationTimeProfile, bF as LocationWithDetails, bG as MESSAGE_TYPES, bH as MOBILE_MONEY_PROVIDER, bI as MobileMoneyData, bJ as MobileMoneyDetails, bK as MobileMoneyProvider, bL as NextAction, bM as ORDER_MUTATION, bN as ORDER_TYPE, bO as ObservabilityHooks, bP as Ok, bQ as Order, bR as OrderCustomerInfo, bS as OrderDiscountInfo, bT as OrderFilter, bU as OrderFulfillmentSummary, bV as OrderGroup, bW as OrderGroupDetails, bX as OrderGroupPayment, bY as OrderGroupPaymentState, bZ as OrderGroupPaymentStatus, b_ as OrderGroupPaymentSummary, b$ as OrderGroupStatus, c0 as OrderHistory, c1 as OrderLineState, c2 as OrderLineStatus, c3 as OrderLocationInfo, c4 as OrderPaymentEvent, c5 as OrderPricingView, c6 as OrderQueries, c7 as OrderSplitDetail, c8 as OrderStaffInfo, c9 as OrderStatus, ca as OrderTimestampsDTO, cb as OrderType, cc as Origin, cd as OriginActor, ce as OriginChannel, cf as OtpResult, cg as PAYMENT_METHOD, ch as PAYMENT_MUTATION, ci as PAYMENT_STATE, cj as PICKUP_TIME_TYPE, ck as ParentToIframeMessage, cl as PaymentInfoDTO, cm as PaymentMethodInfo, cn as PaymentState, co as PickupTime, cp as PickupTimeType, cq as PlaceDetailsResponse, cr as PlacesService, cs as PriceQuote, ct as PricingOverrides, cu as ProcessAndResolveOptions, cv as ProcessCheckoutOptions, cw as ProcessCheckoutResult, cx as ProviderResolutionSource, cy as QuoteBundleSelectionInput, cz as QuoteCompositeSelectionInput, cA as QuoteDynamicBuckets, cB as QuoteStatus, cC as QuoteUiMessage, cD as ReadRequestOptions, cE as RefreshQuoteInput, cF as RefreshQuoteResult, cG as RefundOrderInput, cH as RelatedCandidate, cI as RelatedProduct, cJ as RelatedProductsEnrichment, cK as RelationType, cL as ReminderMethod, cM as ReminderSettings, cN as ReorderResult, cO as RequestContext, cP as RequestErrorEvent, cQ as RequestOptions, cR as RequestOtpInput, cS as RequestSource, cT as RequestStartEvent, cU as RequestSuccessEvent, cV as RescheduleBookingInput, cW as RescheduleBookingResult, cX as RescheduleHistoryRecord, cY as ResourceAssignment, cZ as ResourceInfo, c_ as Result, c$ as RetryEvent, d0 as RevokeAllSessionsResult, d1 as RevokeSessionResult, d2 as Room, d3 as SchedulingMetadata, d4 as SchedulingResult, d5 as SchedulingService, d6 as SenderType, d7 as Service, d8 as ServiceAvailabilityParams, d9 as ServiceAvailabilityResult, da as ServiceCharge, db as ServiceNotes, dc as ServiceScheduleRequest, dd as ServiceStatus, de as SessionActivityData, df as SessionChangeEvent, dg as SessionMessage, dh as SlotResourceInfo, di as SlotStaffInfo, dj as Staff, dk as StaffAssignment, dl as StaffRole, dm as StaffScheduleItem, dn as StockLevel, dp as StockStatus, dq as StoreCreditBalance, dr as StoreCreditQueries, ds as StorefrontBootstrap, dt as SubscriptionService, du as SupportService, dv as Table, dw as TimeRange, dx as TimeRanges, dy as TimeSlot, dz as TrackCategoryViewOptions, dA as TrackProductViewOptions, dB as UpdateAddressInput, dC as UpdateOrderStatusInput, dD as UpdateProfileInput, dE as UploadInitResponse, dF as UploadResult, dG as UploadService, dH as VerifyOtpInput, dI as combine, dJ as combineObject, dK as createCimplifyClient, dL as createElements, dM as err, dN as flatMap, dO as fromPromise, dP as getOrElse, dQ as isErr, dR as isOk, dS as mapError, dT as mapResult, dU as ok, dV as toNullable, dW as tryCatch, dX as unwrap } from './client-
|
|
1
|
+
import { X as ChatReplyCard } from './client-BWdeCgmo.js';
|
|
2
|
+
export { A as AUTHORIZATION_TYPE, a as AUTH_MUTATION, b as AbortablePromise, c as ActivityRecommendation, d as ActivityRecommendationsResponse, e as ActivityService, f as ActivityStateResponse, g as AddressData, h as AddressInfo, i as AmountToPay, j as AuthResponse, k as AuthService, l as AuthStatus, m as AuthenticatedCustomer, n as AuthenticatedData, o as AutocompletePrediction, p as AutocompleteResponse, q as AvailabilityResult, r as AvailableSlot, B as Booking, s as BookingModificationType, t as BookingStatus, u as BookingWithDetails, v as BufferTimes, w as Business, x as BusinessDetailsDTO, y as BusinessHours, z as BusinessPreferences, C as BusinessService, D as BusinessSettings, E as BusinessWithLocations, F as CHECKOUT_MODE, G as CHECKOUT_MUTATION, H as CHECKOUT_STEP, I as CONTACT_TYPE, J as CacheOptions, K as CancelBookingInput, L as CancelBookingResult, M as CancelOrderInput, N as CancellationPolicy, O as CartOperations, P as CatalogueQueries, Q as CatalogueResult, R as CatalogueSnapshot, S as CategoryInfo, T as ChatAttachment, U as ChatConversation, V as ChatConversationResponse, W as ChatMessage, Y as ChatReplyContext, Z as ChatUploadAttachment, _ as ChatWidgetStarter, $ as CheckSlotAvailabilityInput, a0 as CheckSlotAvailabilityResult, a1 as CheckoutAddressInfo, a2 as CheckoutCartData, a3 as CheckoutCartItem, a4 as CheckoutCustomerInfo, a5 as CheckoutFormData, a6 as CheckoutInput, a7 as CheckoutMode, ab as CheckoutOperations, a8 as CheckoutOrderType, a9 as CheckoutPaymentMethod, aa as CheckoutResult, ab as CheckoutService, ac as CheckoutStatus, ad as CheckoutStatusContext, ae as CheckoutStep, af as CimplifyClient, ag as CimplifyConfig, ah as CimplifyElement, ai as CimplifyElements, aj as ClaimConversationResult, ak as ContactType, al as ContentType, am as CreateAddressInput, an as CreateMobileMoneyInput, ao as Customer, ap as CustomerAddress, aq as CustomerBooking, ar as CustomerBookingServiceItem, as as CustomerLinkPreferences, at as CustomerMobileMoney, au as CustomerServicePreferences, av as DEFAULT_COUNTRY, aw as DEFAULT_CURRENCY, ax as DEVICE_TYPE, ay as DayAvailability, az as DeliveryFeeDetails, aA as DeliveryFeeResponse, aB as DeliveryOption, aC as DeliveryOptionsQuery, aD as DeliveryOptionsResponse, aE as DeliveryService, aF as DepositResult, aG as DeviceType, aH as DismissMessageResponse, aI as ELEMENTS_AUTH_CONTACT_TYPES, aJ as ELEMENTS_AUTH_MODES, aK as ELEMENTS_AUTH_PROMPTS, aL as ELEMENT_TYPES, aM as EVENT_TYPES, aN as ElementAppearance, aO as ElementEventHandler, aP as ElementEventType, aQ as ElementOptions, aR as ElementType, aS as ElementsAuthContactType, aT as ElementsAuthMode, aU as ElementsAuthOptions, aV as ElementsAuthPrompt, aW as ElementsCheckoutData, aX as ElementsCheckoutResult, aY as ElementsCustomerInfo, aZ as ElementsOptions, a_ as EnrichedOrder, a$ as EnrichedOrderItem, b0 as EnrollAndLinkOrderInput, b1 as EnrollAndLinkOrderResult, b2 as EnrollmentData, b3 as Err, b4 as FeeBearerType, b5 as FetchQuoteInput, b6 as FulfillmentLink, b7 as FulfillmentStatus, b8 as FulfillmentSummaryDTO, b9 as FulfillmentType, ba as FxQuote, bb as FxQuoteRequest, bc as FxQuoteStatus, bd as FxRateResponse, be as FxService, bf as GetAvailableSlotsInput, bg as GetDeliveryOptionsParams, bh as GetOrdersOptions, bi as GetProductsOptions, bj as GroupOrderInfo, bk as IframeToParentMessage, bl as InventoryService, bm as LINK_MUTATION, bn as LINK_QUERY, bo as LifecyclePhase, bp as LineItem, bq as LineType, br as LinkData, bs as LinkEnrollResult, bt as LinkService, bu as LinkSession, bv as LinkStatusResult, bw as LiteBootstrap, bx as LiteDayHours, by as LiteHoursRange, bz as LiteService, bA as Location, bB as LocationBooking, bC as LocationTaxBehavior, bD as LocationTaxOverrides, bE as LocationTimeProfile, bF as LocationWithDetails, bG as MESSAGE_TYPES, bH as MOBILE_MONEY_PROVIDER, bI as MobileMoneyData, bJ as MobileMoneyDetails, bK as MobileMoneyProvider, bL as NextAction, bM as ORDER_MUTATION, bN as ORDER_TYPE, bO as ObservabilityHooks, bP as Ok, bQ as Order, bR as OrderCustomerInfo, bS as OrderDiscountInfo, bT as OrderFilter, bU as OrderFulfillmentSummary, bV as OrderGroup, bW as OrderGroupDetails, bX as OrderGroupPayment, bY as OrderGroupPaymentState, bZ as OrderGroupPaymentStatus, b_ as OrderGroupPaymentSummary, b$ as OrderGroupStatus, c0 as OrderHistory, c1 as OrderLineState, c2 as OrderLineStatus, c3 as OrderLocationInfo, c4 as OrderPaymentEvent, c5 as OrderPricingView, c6 as OrderQueries, c7 as OrderSplitDetail, c8 as OrderStaffInfo, c9 as OrderStatus, ca as OrderTimestampsDTO, cb as OrderType, cc as Origin, cd as OriginActor, ce as OriginChannel, cf as OtpResult, cg as PAYMENT_METHOD, ch as PAYMENT_MUTATION, ci as PAYMENT_STATE, cj as PICKUP_TIME_TYPE, ck as ParentToIframeMessage, cl as PaymentInfoDTO, cm as PaymentMethodInfo, cn as PaymentState, co as PickupTime, cp as PickupTimeType, cq as PlaceDetailsResponse, cr as PlacesService, cs as PriceQuote, ct as PricingOverrides, cu as ProcessAndResolveOptions, cv as ProcessCheckoutOptions, cw as ProcessCheckoutResult, cx as ProviderResolutionSource, cy as QuoteBundleSelectionInput, cz as QuoteCompositeSelectionInput, cA as QuoteDynamicBuckets, cB as QuoteStatus, cC as QuoteUiMessage, cD as ReadRequestOptions, cE as RefreshQuoteInput, cF as RefreshQuoteResult, cG as RefundOrderInput, cH as RelatedCandidate, cI as RelatedProduct, cJ as RelatedProductsEnrichment, cK as RelationType, cL as ReminderMethod, cM as ReminderSettings, cN as ReorderResult, cO as RequestContext, cP as RequestErrorEvent, cQ as RequestOptions, cR as RequestOtpInput, cS as RequestSource, cT as RequestStartEvent, cU as RequestSuccessEvent, cV as RescheduleBookingInput, cW as RescheduleBookingResult, cX as RescheduleHistoryRecord, cY as ResourceAssignment, cZ as ResourceInfo, c_ as Result, c$ as RetryEvent, d0 as RevokeAllSessionsResult, d1 as RevokeSessionResult, d2 as Room, d3 as SchedulingMetadata, d4 as SchedulingResult, d5 as SchedulingService, d6 as SenderType, d7 as Service, d8 as ServiceAvailabilityParams, d9 as ServiceAvailabilityResult, da as ServiceCharge, db as ServiceNotes, dc as ServiceScheduleRequest, dd as ServiceStatus, de as SessionActivityData, df as SessionChangeEvent, dg as SessionMessage, dh as SlotResourceInfo, di as SlotStaffInfo, dj as Staff, dk as StaffAssignment, dl as StaffRole, dm as StaffScheduleItem, dn as StockLevel, dp as StockStatus, dq as StoreCreditBalance, dr as StoreCreditQueries, ds as StorefrontBootstrap, dt as SubscriptionService, du as SupportService, dv as Table, dw as TimeRange, dx as TimeRanges, dy as TimeSlot, dz as TrackCategoryViewOptions, dA as TrackProductViewOptions, dB as UpdateAddressInput, dC as UpdateOrderStatusInput, dD as UpdateProfileInput, dE as UploadInitResponse, dF as UploadResult, dG as UploadService, dH as VerifyOtpInput, dI as combine, dJ as combineObject, dK as createCimplifyClient, dL as createElements, dM as err, dN as flatMap, dO as fromPromise, dP as getOrElse, dQ as isErr, dR as isOk, dS as mapError, dT as mapResult, dU as ok, dV as toNullable, dW as tryCatch, dX as unwrap } from './client-BWdeCgmo.js';
|
|
3
3
|
import { bb as ProductWithDetails, aZ as Product, av as DurationUnit, j as ApiError } from './product-CeV8euw4.js';
|
|
4
4
|
export { A as AddOn, a as AddOnDetails, b as AddOnGroupDetails, c as AddOnOption, d as AddOnOptionDetails, e as AddOnOptionPrice, f as AddOnWithOptions, g as AddToCartInput, h as AddressValue, i as AdjustmentType, k as AppliedDiscount, l as AttributeAppliesTo, m as AttributeType, n as AttributeValidationRules, o as AttributeVisibility, B as BOUNDARY_KIND, p as BenefitType, q as BillingFrequency, r as BillingMarkupType, s as BillingPlanType, t as BoundaryKind, u as Bundle, v as BundleComponentData, w as BundleComponentInfo, x as BundleComponentVariantView, y as BundleComponentView, z as BundlePriceType, C as BundleProduct, D as BundleSelectionData, E as BundleSelectionInput, F as BundleStoredSelection, G as BundleSummary, H as BundleWithDetails, I as Cart, J as CartAddOn, K as CartChannel, L as CartItem, M as CartItemDetails, N as CartMutationResult, O as CartNotice, P as CartStatus, Q as CartSummary, R as CartTotals, S as Category, T as CategorySummary, U as ChosenPrice, V as CimplifyError, W as Collection, X as CollectionProduct, Y as CollectionSummary, Z as ComponentGroup, _ as ComponentGroupWithComponents, $ as ComponentPriceBreakdown, a0 as ComponentSchedulingData, a1 as ComponentSelectionInput, a2 as ComponentSourceType, a3 as Composite, a4 as CompositeComponent, a5 as CompositeComponentView, a6 as CompositeGroupView, a7 as CompositePriceBreakdown, a8 as CompositePriceResult, a9 as CompositePricingMode, aa as CompositeSelectionData, a1 as CompositeSelectionInput, ab as CompositeStoredSelection, ac as CompositeWithDetails, ad as CurrencyCode, ae as CustomAttributeDefinition, af as CustomAttributeValue, ag as CustomerInputValue, ah as DURATION_UNIT, ai as DateRangeValue, aj as Deal, ak as DealBenefitType, al as DepositType, am as DigitalProductType, an as DiscountBreakdown, ao as DiscountDetails, ap as DiscountValidation, aq as DisplayAddOn, ar as DisplayAddOnOption, as as DisplayCart, at as DisplayCartItem, au as DisplayMode, aw as ERROR_HINTS, ax as EligiblePlansQuery, ay as ErrorCode, az as ErrorCodeType, aA as ErrorHint, aB as FacetValue, aC as FormattedPlanOption, aD as GroupPricingBehavior, aE as INPUT_FIELD_TYPE, aF as IdempotencyMismatchError, aG as InputFieldType, aH as InputFieldValidation, aI as InventoryType, aJ as KnowledgeArticle, aK as LineConfiguration, aL as LocationProductPrice, aM as LocationValue, aN as MeasurementValue, aO as Money, aP as PRODUCT_TYPE, aQ as Pagination, aR as PaginationParams, aS as PhoneValue, aT as Price, aU as PriceAdjustment, aV as PriceDecisionPath, aW as PriceEntryType, aX as PricePathTaxInfo, aY as PriceSource, a_ as ProductAddOn, a$ as ProductAvailability, b0 as ProductAvailabilityNow, b1 as ProductBillingPlan, b2 as ProductDealInfo, b3 as ProductInputField, b4 as ProductProperty, b5 as ProductRenderHint, b6 as ProductTaxonomy, b7 as ProductTimeProfile, b8 as ProductType, b9 as ProductVariant, ba as ProductVariantValue, bc as PropertyFacet, bd as PropertySource, be as QuantityPricingTier, bf as RENDER_HINT, bg as RelatedProductView, bh as SaleCapInfo, bi as SaleInfo, bj as SalesChannel, bk as SchedulingMode, bl as SelectedAddOnOption, bm as SemanticKind, bn as SignatureValue, bo as Subscription, bp as SubscriptionInvoice, bq as SubscriptionItem, br as SubscriptionStatus, bs as SubscriptionWithDetails, bt as Tag, bu as TagsResponse, bv as TaxPathComponent, bw as TaxonomyAttributeTemplate, bx as TaxonomyWithChildren, by as UICart, bz as UICartBusiness, bA as UICartCustomer, bB as UICartLocation, bC as UICartPricing, bD as UpcomingSale, bE as UpdateCartItemInput, bF as VariantAxis, bG as VariantAxisSelection, bH as VariantAxisValue, bI as VariantAxisValueView, bJ as VariantAxisView, bK as VariantAxisWithValues, bL as VariantDetails, bM as VariantDetailsDTO, bN as VariantDisplayAttribute, bO as VariantLocationAvailability, bP as VariantStrategy, bQ as VariantView, bR as ZERO, bT as currencyCode, bU as enrichError, bV as getErrorHint, bW as isCimplifyError, bX as isIdempotencyMismatchError, bY as isQuoteConflictRequiringConsent, bZ as isQuoteError, b_ as isRetryableError, b$ as isSupportedCurrency, c0 as money, c1 as moneyFromNumber } from './product-CeV8euw4.js';
|
|
5
5
|
export { C as CURRENCY_SYMBOLS, M as MOBILE_MONEY_PROVIDERS, c as categorizePaymentError, d as detectMobileMoneyProvider, f as formatMoney, a as formatNumberCompact, b as formatPrice, e as formatPriceAdjustment, g as formatPriceCompact, h as formatPriceRange, i as formatPriceWithTax, j as formatProductPrice, k as getBasePrice, l as getCurrencySymbol, m as getDiscountPercentage, n as getDisplayPrice, o as getMarkupPercentage, p as getPriceRange, q as getProductCurrency, r as getTaxAmount, s as getUnitPriceAtQuantity, t as hasTaxInfo, u as isOnSale, v as isPaymentStatusFailure, w as isPaymentStatusRequiresAction, x as isPaymentStatusSuccess, y as isTaxInclusive, z as isValidPhoneForContext, A as normalizePaymentResponse, B as normalizePhoneToE164, D as normalizeStatusResponse, E as parsePrice, F as resolvePhoneCountryCode } from './index-B_RYmvlF.js';
|