@apextelemed/partner-core 0.17.0-dev.54 → 0.17.0-dev.56
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/README.md +4 -5
- package/dist/api/index.d.ts +1 -1
- package/dist/api/index.js +3 -3
- package/dist/api/index.jsx +3 -5
- package/dist/chunk/{CAG35QKZ.jsx → 42YVSZT3.jsx} +5 -5
- package/dist/chunk/{XI4OZ4SZ.js → 5MVIKOPC.js} +3 -3
- package/dist/chunk/{XI4OZ4SZ.js.map → 5MVIKOPC.js.map} +1 -1
- package/dist/chunk/{Q2L3CZPR.jsx → A5AJZOGG.jsx} +2 -2
- package/dist/chunk/{Z5QDFCLZ.js → AY7MYFVF.js} +1095 -1430
- package/dist/chunk/AY7MYFVF.js.map +1 -0
- package/dist/chunk/{XDRP4X2N.js → B7FB66P6.js} +3 -3
- package/dist/chunk/{XDRP4X2N.js.map → B7FB66P6.js.map} +1 -1
- package/dist/chunk/{WTQ63KR4.js → ECVD6HBS.js} +3 -3
- package/dist/chunk/{WTQ63KR4.js.map → ECVD6HBS.js.map} +1 -1
- package/dist/chunk/{BI7NBPCA.jsx → IC2BEVUQ.jsx} +5 -13
- package/dist/chunk/{MUNFWRXF.js → JCJ5TTMD.js} +7 -14
- package/dist/chunk/JCJ5TTMD.js.map +1 -0
- package/dist/chunk/{F5PDIE2J.js → KKMLCFNX.js} +6 -6
- package/dist/chunk/{F5PDIE2J.js.map → KKMLCFNX.js.map} +1 -1
- package/dist/chunk/{P3TJ6ALH.jsx → NUFR6YQG.jsx} +2 -2
- package/dist/chunk/{MQRPGAH7.js → O5ZPLKOG.js} +6 -214
- package/dist/chunk/O5ZPLKOG.js.map +1 -0
- package/dist/chunk/{HXBRBHFR.jsx → PNOFZKYS.jsx} +2 -2
- package/dist/chunk/{VUDLDIMS.jsx → RP36N7AT.jsx} +1284 -1516
- package/dist/chunk/{DC24EAWT.jsx → TPJ4JT6V.jsx} +5 -226
- package/dist/{client-BH1wq2Pp.d.ts → client-B9tYDdob.d.ts} +6 -50
- package/dist/flows/index.d.ts +2 -151
- package/dist/flows/index.js +6 -6
- package/dist/flows/index.jsx +8 -24
- package/dist/index/index.d.ts +2 -2
- package/dist/index/index.js +7 -7
- package/dist/index/index.jsx +9 -27
- package/dist/pages/index.d.ts +8 -6
- package/dist/pages/index.js +5 -5
- package/dist/pages/index.jsx +5 -5
- package/dist/stores/index.d.ts +1 -1
- package/dist/stores/index.js +2 -2
- package/dist/stores/index.jsx +2 -2
- package/package.json +1 -1
- package/dist/chunk/MQRPGAH7.js.map +0 -1
- package/dist/chunk/MUNFWRXF.js.map +0 -1
- package/dist/chunk/Z5QDFCLZ.js.map +0 -1
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
readResumeToken,
|
|
7
7
|
saveFunnelDraft,
|
|
8
8
|
stripResumeToken
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./PNOFZKYS.jsx";
|
|
10
10
|
import {
|
|
11
11
|
affiliateAuth_default,
|
|
12
12
|
auth_default,
|
|
13
13
|
cart_default,
|
|
14
14
|
medication_default
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./A5AJZOGG.jsx";
|
|
16
16
|
import {
|
|
17
17
|
ApiError,
|
|
18
18
|
addressesApi,
|
|
@@ -20,7 +20,6 @@ import {
|
|
|
20
20
|
adminCatalogApi,
|
|
21
21
|
adminCatalogConversionApi,
|
|
22
22
|
adminProductPharmaciesApi,
|
|
23
|
-
adminProductStrengthMatchesApi,
|
|
24
23
|
affiliatePortalApi,
|
|
25
24
|
apexApi,
|
|
26
25
|
authApi,
|
|
@@ -34,7 +33,7 @@ import {
|
|
|
34
33
|
subscriptionsApi,
|
|
35
34
|
supportApi,
|
|
36
35
|
usersApi
|
|
37
|
-
} from "./
|
|
36
|
+
} from "./IC2BEVUQ.jsx";
|
|
38
37
|
import {
|
|
39
38
|
getConfig
|
|
40
39
|
} from "./QVZ7BRNO.jsx";
|
|
@@ -6371,217 +6370,6 @@ function useAddPharmacy(opts) {
|
|
|
6371
6370
|
};
|
|
6372
6371
|
}
|
|
6373
6372
|
|
|
6374
|
-
// src/flows/strengthMatches.ts
|
|
6375
|
-
import { createEffect as createEffect11, createMemo as createMemo4, createSignal as createSignal16, on as on5, onCleanup as onCleanup6 } from "solid-js";
|
|
6376
|
-
function wantsStrengthMatches(product, enabled) {
|
|
6377
|
-
return enabled && !!product;
|
|
6378
|
-
}
|
|
6379
|
-
function matchBody(dosage, doseId, carryPrice) {
|
|
6380
|
-
return { dosage, doseId, ...carryPrice === void 0 ? {} : { carryPrice } };
|
|
6381
|
-
}
|
|
6382
|
-
var matchValue = (row) => row.doseId ?? "";
|
|
6383
|
-
var doseIdOf = (value) => value === "" ? null : value;
|
|
6384
|
-
var isLeftForReview = (row) => row.doseId === null;
|
|
6385
|
-
var isFlatFee = (raw) => raw?.flatFee === true;
|
|
6386
|
-
function normalizeMatches(raw) {
|
|
6387
|
-
return {
|
|
6388
|
-
rows: Array.isArray(raw?.rows) ? raw.rows : [],
|
|
6389
|
-
doseOptions: Array.isArray(raw?.doseOptions) ? raw.doseOptions : []
|
|
6390
|
-
};
|
|
6391
|
-
}
|
|
6392
|
-
function decisionFromDetails(details, doseId) {
|
|
6393
|
-
const d = details ?? {};
|
|
6394
|
-
if (typeof d.dosage !== "string" || typeof d.doseLabel !== "string") return null;
|
|
6395
|
-
if (typeof d.price !== "number" || !Number.isFinite(d.price)) return null;
|
|
6396
|
-
return { dosage: d.dosage, doseId, price: d.price, doseLabel: d.doseLabel };
|
|
6397
|
-
}
|
|
6398
|
-
var STALE_CODES = ["product_changed", "not_a_row", "not_applicable", "invalid_strength_match"];
|
|
6399
|
-
var messageOf4 = (err) => err instanceof Error && err.message ? err.message : "Something went wrong talking to the server.";
|
|
6400
|
-
function classifyStrengthMatchError(err, doseId) {
|
|
6401
|
-
const e = err ?? {};
|
|
6402
|
-
const status = typeof e.status === "number" ? e.status : void 0;
|
|
6403
|
-
const code = typeof e.code === "string" ? e.code : void 0;
|
|
6404
|
-
const message = messageOf4(err);
|
|
6405
|
-
if (code === "price_decision_required" && doseId !== null) {
|
|
6406
|
-
const decision = decisionFromDetails(e.details, doseId);
|
|
6407
|
-
if (decision) return { kind: "decision", decision };
|
|
6408
|
-
return { kind: "refused", message, code };
|
|
6409
|
-
}
|
|
6410
|
-
if (code && STALE_CODES.includes(code)) return { kind: "stale", code, message };
|
|
6411
|
-
if (code === "could_not_read") return { kind: "refused", message, code };
|
|
6412
|
-
if (code === void 0 && (e.ambiguous === true || status === void 0 || status >= 500)) {
|
|
6413
|
-
return { kind: "ambiguous", message };
|
|
6414
|
-
}
|
|
6415
|
-
if (code === void 0 && status !== void 0 && status < 500) return { kind: "refused", message };
|
|
6416
|
-
if (status !== void 0 && status >= 500) return { kind: "ambiguous", message };
|
|
6417
|
-
return { kind: "refused", message, ...code ? { code } : {} };
|
|
6418
|
-
}
|
|
6419
|
-
function useStrengthMatches(opts) {
|
|
6420
|
-
const [status, setStatus] = createSignal16("idle");
|
|
6421
|
-
const [flatFee, setFlatFee] = createSignal16(false);
|
|
6422
|
-
const [rows, setRows] = createSignal16([]);
|
|
6423
|
-
const [doseOptions, setDoseOptions] = createSignal16([]);
|
|
6424
|
-
const [pending, setPending] = createSignal16(null);
|
|
6425
|
-
const [writing, setWriting] = createSignal16(null);
|
|
6426
|
-
const [errors, setErrors] = createSignal16({});
|
|
6427
|
-
const [notice, setNotice] = createSignal16(null);
|
|
6428
|
-
let generation = 0;
|
|
6429
|
-
let loadSeq = 0;
|
|
6430
|
-
onCleanup6(() => {
|
|
6431
|
-
generation++;
|
|
6432
|
-
loadSeq++;
|
|
6433
|
-
});
|
|
6434
|
-
const busy = () => writing() !== null;
|
|
6435
|
-
const setError = (dosage, message) => setErrors((prev) => ({ ...prev, [dosage]: message }));
|
|
6436
|
-
const clearError = (dosage) => setErrors((prev) => {
|
|
6437
|
-
if (!(dosage in prev)) return prev;
|
|
6438
|
-
const { [dosage]: _gone, ...rest } = prev;
|
|
6439
|
-
return rest;
|
|
6440
|
-
});
|
|
6441
|
-
const adopt = (raw) => {
|
|
6442
|
-
const next = normalizeMatches(raw);
|
|
6443
|
-
setFlatFee(isFlatFee(raw));
|
|
6444
|
-
setRows(next.rows);
|
|
6445
|
-
setDoseOptions(next.doseOptions);
|
|
6446
|
-
const p = pending();
|
|
6447
|
-
if (p && !next.rows.some((r) => r.dosage === p.dosage)) setPending(null);
|
|
6448
|
-
setErrors((prev) => Object.fromEntries(Object.entries(prev).filter(([d]) => next.rows.some((r) => r.dosage === d))));
|
|
6449
|
-
setStatus("ready");
|
|
6450
|
-
};
|
|
6451
|
-
const read = async () => {
|
|
6452
|
-
const gen = generation;
|
|
6453
|
-
const seq = ++loadSeq;
|
|
6454
|
-
const product = opts.product();
|
|
6455
|
-
if (!wantsStrengthMatches(product, opts.enabled())) {
|
|
6456
|
-
setFlatFee(false);
|
|
6457
|
-
setRows([]);
|
|
6458
|
-
setDoseOptions([]);
|
|
6459
|
-
setStatus("idle");
|
|
6460
|
-
return true;
|
|
6461
|
-
}
|
|
6462
|
-
setStatus((prev) => prev === "idle" ? "loading" : prev);
|
|
6463
|
-
try {
|
|
6464
|
-
const res = await adminProductStrengthMatchesApi.list(product.id);
|
|
6465
|
-
if (gen !== generation || seq !== loadSeq) return false;
|
|
6466
|
-
adopt(res);
|
|
6467
|
-
return true;
|
|
6468
|
-
} catch (err) {
|
|
6469
|
-
if (gen !== generation || seq !== loadSeq) return false;
|
|
6470
|
-
if (err?.code === "not_applicable") {
|
|
6471
|
-
adopt({ rows: [], doseOptions: [] });
|
|
6472
|
-
return true;
|
|
6473
|
-
}
|
|
6474
|
-
setStatus("failed");
|
|
6475
|
-
return false;
|
|
6476
|
-
}
|
|
6477
|
-
};
|
|
6478
|
-
const reload = async () => {
|
|
6479
|
-
setNotice(null);
|
|
6480
|
-
await read();
|
|
6481
|
-
};
|
|
6482
|
-
const key = createMemo4(() => {
|
|
6483
|
-
const p = opts.product();
|
|
6484
|
-
const ids = (p.strengths ?? []).map((s) => s.apexSkuId ?? s.dosage).join(",");
|
|
6485
|
-
return `${p.id}|${p.apexDrugId ?? ""}|${p.pricingMode}|${opts.enabled()}|${ids}`;
|
|
6486
|
-
});
|
|
6487
|
-
createEffect11(
|
|
6488
|
-
on5(key, () => {
|
|
6489
|
-
generation++;
|
|
6490
|
-
loadSeq++;
|
|
6491
|
-
setFlatFee(false);
|
|
6492
|
-
setRows([]);
|
|
6493
|
-
setDoseOptions([]);
|
|
6494
|
-
setPending(null);
|
|
6495
|
-
setWriting(null);
|
|
6496
|
-
setErrors({});
|
|
6497
|
-
setNotice(null);
|
|
6498
|
-
setStatus("idle");
|
|
6499
|
-
void read();
|
|
6500
|
-
})
|
|
6501
|
-
);
|
|
6502
|
-
const notifyChanged = async () => {
|
|
6503
|
-
try {
|
|
6504
|
-
await opts.onChanged?.();
|
|
6505
|
-
} catch {
|
|
6506
|
-
}
|
|
6507
|
-
};
|
|
6508
|
-
const write = async (dosage, doseId, carryPrice) => {
|
|
6509
|
-
if (busy() || status() !== "ready") return;
|
|
6510
|
-
const gen = generation;
|
|
6511
|
-
const productId = opts.product().id;
|
|
6512
|
-
clearError(dosage);
|
|
6513
|
-
setNotice(null);
|
|
6514
|
-
setWriting({ dosage, doseId });
|
|
6515
|
-
try {
|
|
6516
|
-
let fresh;
|
|
6517
|
-
try {
|
|
6518
|
-
fresh = await adminProductStrengthMatchesApi.set(productId, matchBody(dosage, doseId, carryPrice));
|
|
6519
|
-
} catch (err) {
|
|
6520
|
-
if (gen !== generation) return;
|
|
6521
|
-
const f = classifyStrengthMatchError(err, doseId);
|
|
6522
|
-
if (f.kind === "decision") {
|
|
6523
|
-
setPending(f.decision);
|
|
6524
|
-
return;
|
|
6525
|
-
}
|
|
6526
|
-
if (f.kind === "refused") {
|
|
6527
|
-
setPending(null);
|
|
6528
|
-
setError(dosage, f.message);
|
|
6529
|
-
return;
|
|
6530
|
-
}
|
|
6531
|
-
setPending(null);
|
|
6532
|
-
const read1 = await read();
|
|
6533
|
-
if (gen !== generation) return;
|
|
6534
|
-
setNotice(
|
|
6535
|
-
f.kind === "stale" ? "This changed while you were looking, so the list was refreshed. Check it, then choose again." : read1 ? "We lost the connection while saving that. This is what is saved now." : "We lost the connection while saving that, and could not check what was saved."
|
|
6536
|
-
);
|
|
6537
|
-
if (f.kind === "ambiguous" || f.code === "product_changed") await notifyChanged();
|
|
6538
|
-
return;
|
|
6539
|
-
}
|
|
6540
|
-
if (gen !== generation) return;
|
|
6541
|
-
setPending(null);
|
|
6542
|
-
adopt(fresh);
|
|
6543
|
-
await notifyChanged();
|
|
6544
|
-
} finally {
|
|
6545
|
-
if (gen === generation) setWriting(null);
|
|
6546
|
-
}
|
|
6547
|
-
};
|
|
6548
|
-
return {
|
|
6549
|
-
status,
|
|
6550
|
-
flatFee,
|
|
6551
|
-
rows,
|
|
6552
|
-
doseOptions,
|
|
6553
|
-
pending,
|
|
6554
|
-
writing,
|
|
6555
|
-
busy,
|
|
6556
|
-
errors,
|
|
6557
|
-
notice,
|
|
6558
|
-
dismissNotice: () => setNotice(null),
|
|
6559
|
-
valueOf: (dosage) => {
|
|
6560
|
-
const w = writing();
|
|
6561
|
-
if (w && w.dosage === dosage) return w.doseId ?? "";
|
|
6562
|
-
const row = rows().find((r) => r.dosage === dosage);
|
|
6563
|
-
return row ? matchValue(row) : "";
|
|
6564
|
-
},
|
|
6565
|
-
setMatch: async (dosage, doseId) => {
|
|
6566
|
-
const row = rows().find((r) => r.dosage === dosage);
|
|
6567
|
-
if (!row || busy()) return;
|
|
6568
|
-
if (pending() && pending().dosage !== dosage) setPending(null);
|
|
6569
|
-
if (row.doseId === doseId) {
|
|
6570
|
-
setPending(null);
|
|
6571
|
-
return;
|
|
6572
|
-
}
|
|
6573
|
-
await write(dosage, doseId);
|
|
6574
|
-
},
|
|
6575
|
-
decide: async (carryPrice) => {
|
|
6576
|
-
const p = pending();
|
|
6577
|
-
if (!p) return;
|
|
6578
|
-
await write(p.dosage, p.doseId, carryPrice);
|
|
6579
|
-
},
|
|
6580
|
-
cancelDecision: () => setPending(null),
|
|
6581
|
-
reload
|
|
6582
|
-
};
|
|
6583
|
-
}
|
|
6584
|
-
|
|
6585
6373
|
export {
|
|
6586
6374
|
isQuestionVisible,
|
|
6587
6375
|
useSurveyFlow,
|
|
@@ -6724,15 +6512,6 @@ export {
|
|
|
6724
6512
|
buildSaveBody,
|
|
6725
6513
|
pharmacyIsOnProduct,
|
|
6726
6514
|
classifyAddPharmacyError,
|
|
6727
|
-
useAddPharmacy
|
|
6728
|
-
wantsStrengthMatches,
|
|
6729
|
-
matchBody,
|
|
6730
|
-
matchValue,
|
|
6731
|
-
doseIdOf,
|
|
6732
|
-
isLeftForReview,
|
|
6733
|
-
normalizeMatches,
|
|
6734
|
-
decisionFromDetails,
|
|
6735
|
-
classifyStrengthMatchError,
|
|
6736
|
-
useStrengthMatches
|
|
6515
|
+
useAddPharmacy
|
|
6737
6516
|
};
|
|
6738
|
-
//# sourceMappingURL=
|
|
6517
|
+
//# sourceMappingURL=TPJ4JT6V.jsx.map
|
|
@@ -2064,12 +2064,6 @@ interface AddPharmacyPlan {
|
|
|
2064
2064
|
matchQuestions: AddPharmacyMatchQuestion[];
|
|
2065
2065
|
/** The strengths a `matchQuestions` answer can pick. */
|
|
2066
2066
|
doseOptions: AddPharmacyDoseOption[];
|
|
2067
|
-
/**
|
|
2068
|
-
* The product charges one price. Its `matchQuestions` are optional (nothing is
|
|
2069
|
-
* flagged for review, `pricesRequired` is empty) and don't affect refills today.
|
|
2070
|
-
* A not-yet-deployed backend may omit it: read it as `?? false`.
|
|
2071
|
-
*/
|
|
2072
|
-
flatFee?: boolean;
|
|
2073
2067
|
}
|
|
2074
2068
|
/** The old strength a subscriber is on: identifies a match question, and is echoed back in `doseMatches`. */
|
|
2075
2069
|
interface AddPharmacyMatchSource {
|
|
@@ -2116,47 +2110,6 @@ declare const adminProductPharmaciesApi: {
|
|
|
2116
2110
|
/** Adds it. Up to ~40 seconds on a single-pharmacy product; never retry blindly — re-read the product first. */
|
|
2117
2111
|
add(productId: string, body: AddPharmacyBody): Promise<AddPharmacyResult>;
|
|
2118
2112
|
};
|
|
2119
|
-
/** An old strength subscribers are still on, and the strength it is now (`doseId: null` = left for review). */
|
|
2120
|
-
interface StrengthMatchRow {
|
|
2121
|
-
dosage: string;
|
|
2122
|
-
subscriberCount: number;
|
|
2123
|
-
/** What the old strength sold for, or null when it had no price. */
|
|
2124
|
-
price: number | null;
|
|
2125
|
-
doseId: string | null;
|
|
2126
|
-
doseLabel: string | null;
|
|
2127
|
-
}
|
|
2128
|
-
/** A strength an old one can be matched to. */
|
|
2129
|
-
interface StrengthMatchDoseOption {
|
|
2130
|
-
doseId: string;
|
|
2131
|
-
label: string;
|
|
2132
|
-
/** The strength's own price, or null when it has none yet. */
|
|
2133
|
-
price: number | null;
|
|
2134
|
-
}
|
|
2135
|
-
interface ProductStrengthMatches {
|
|
2136
|
-
productId: string;
|
|
2137
|
-
/**
|
|
2138
|
-
* The product charges one price. Then `rows` also holds stored matches no open
|
|
2139
|
-
* renewal uses (`subscriberCount` can be 0, `price` an old one on file), every
|
|
2140
|
-
* `doseOptions[].price` is that one price, and a write never asks for a price
|
|
2141
|
-
* decision. A not-yet-deployed backend may omit it: read it as `?? false`.
|
|
2142
|
-
*/
|
|
2143
|
-
flatFee?: boolean;
|
|
2144
|
-
/** Empty for a product not yet moved. */
|
|
2145
|
-
rows: StrengthMatchRow[];
|
|
2146
|
-
doseOptions: StrengthMatchDoseOption[];
|
|
2147
|
-
}
|
|
2148
|
-
interface StrengthMatchBody {
|
|
2149
|
-
dosage: string;
|
|
2150
|
-
/** null leaves the subscribers for review. */
|
|
2151
|
-
doseId: string | null;
|
|
2152
|
-
/** Answer to a `price_decision_required` refusal: sell the strength at the old price (true) or not (false). */
|
|
2153
|
-
carryPrice?: boolean;
|
|
2154
|
-
}
|
|
2155
|
-
declare const adminProductStrengthMatchesApi: {
|
|
2156
|
-
list(productId: string): Promise<ProductStrengthMatches>;
|
|
2157
|
-
/** Changes one match; answers with the fresh list. Rewrites the product's stored `dosagePrices`. */
|
|
2158
|
-
set(productId: string, body: StrengthMatchBody): Promise<ProductStrengthMatches>;
|
|
2159
|
-
};
|
|
2160
2113
|
/** Which kind of admin someone is. The backend maps each to permissions. */
|
|
2161
2114
|
type AdminRole = 'owner' | 'support' | 'accounting' | 'marketing';
|
|
2162
2115
|
declare const ADMIN_ROLES: AdminRole[];
|
|
@@ -2364,11 +2317,14 @@ declare const adminApi: {
|
|
|
2364
2317
|
admins: AdminTeamMember[];
|
|
2365
2318
|
invites: AdminTeamInvite[];
|
|
2366
2319
|
}>;
|
|
2367
|
-
/**
|
|
2320
|
+
/**
|
|
2321
|
+
* The invite links to the backend's own accept page unless `acceptUrl` names
|
|
2322
|
+
* a site's page (the backend adds `?token=…&email=…`).
|
|
2323
|
+
*/
|
|
2368
2324
|
inviteAdmin(params: {
|
|
2369
2325
|
email: string;
|
|
2370
2326
|
adminRole: AdminRole;
|
|
2371
|
-
acceptUrl
|
|
2327
|
+
acceptUrl?: string;
|
|
2372
2328
|
}): Promise<AdminInviteResult>;
|
|
2373
2329
|
setAdminRole(userId: string, adminRole: AdminRole): Promise<{
|
|
2374
2330
|
admin: AdminTeamMember;
|
|
@@ -2993,4 +2949,4 @@ declare const affiliatePortalApi: {
|
|
|
2993
2949
|
track(refCode: string, landingPage?: string): Promise<AffiliateTrackResponse>;
|
|
2994
2950
|
};
|
|
2995
2951
|
|
|
2996
|
-
export { type AdminRefundResult as $, ADMIN_ROLES as A, type AdminCustomerSupport as B, type AdminCustomerSupportThread as C, type AdminDashboardStats as D, type AdminInviteResult as E, type AdminLifecycle as F, type AdminLifecycleBucket as G, type AdminListParams as H, type AdminMe as I, type AdminOffer as J, type AdminOfferBase as K, type AdminOfferGrant as L, type AdminOfferGrantBase as M, type AdminOfferInput as N, type AdminOrderSummary as O, type AdminOrphanReason as P, type AdminOrphanedDosePrice as Q, type AdminPayment as R, type AdminPaymentDetail as S, type AdminProduct as T, type AdminProductOverlayField as U, type AdminProductPharmacy as V, type AdminProductStrength as W, type AdminPromoCode as X, type AdminPromoCodeInput as Y, type AdminRecurringPricePoint as Z, type AdminRecurringRevenue as _, type AddPharmacyBody as a, type CatalogItem as a$, type AdminRole as a0, type AdminSale as a1, type AdminSaleInput as a2, type AdminScheduledRefund as a3, type AdminScheduledRefundProblem as a4, type AdminSubscription as a5, type AdminSubscriptionDetail as a6, type AdminSubscriptionPatch as a7, type AdminSubscriptionWriteResult as a8, type AdminSupportCustomer as a9, type BillingReminderSettings as aA, type CatalogAvailabilityItem as aB, type CatalogAvailabilityReason as aC, type CatalogAvailabilityResult as aD, type CatalogClassification as aE, type CatalogConversionChoice as aF, type CatalogConversionCommitResult as aG, type CatalogConversionDose as aH, type CatalogConversionDoseMatch as aI, type CatalogConversionFinding as aJ, type CatalogConversionPointers as aK, type CatalogConversionPrepareResult as aL, type CatalogConversionPreview as aM, type CatalogConversionRun as aN, type CatalogConversionSource as aO, type CatalogConversionStage as aP, type CatalogConversionTarget as aQ, type CatalogConversionUndoOptions as aR, type CatalogConversionUndoResult as aS, type CatalogDose as aT, type CatalogDoseInput as aU, type CatalogDoseModel as aV, type CatalogDoseSuggestion as aW, type CatalogDoseSuggestions as aX, type CatalogEquivalentSuggestions as aY, type CatalogFulfillment as aZ, type CatalogFulfillmentInput as a_, type AdminSupportStats as aa, type AdminSupportThread as ab, type AdminTeamInvite as ac, type AdminTeamMember as ad, type AdminWebhookEvent as ae, type Affiliate as af, type AffiliateAuthTokens as ag, type AffiliateClickRecord as ah, type AffiliateConversion as ai, type AffiliateDashboardLinks as aj, type AffiliateDashboardProfile as ak, type AffiliateDashboardStats as al, type AffiliateDownlineMember as am, type AffiliateEarningsBreakdown as an, type AffiliatePaymentMethod as ao, type AffiliateProgram as ap, type AffiliateRegisterInput as aq, type AffiliateRegisterResponse as ar, type AffiliateSession as as, type AffiliateStatsResponse as at, type AffiliateStatus as au, type AffiliateTrackResponse as av, ApiError as aw, type ApiResponse as ax, type AttributionMethod as ay, type AuthTokens as az, type AddPharmacyDoseMatch as b, type
|
|
2952
|
+
export { type AdminRefundResult as $, ADMIN_ROLES as A, type AdminCustomerSupport as B, type AdminCustomerSupportThread as C, type AdminDashboardStats as D, type AdminInviteResult as E, type AdminLifecycle as F, type AdminLifecycleBucket as G, type AdminListParams as H, type AdminMe as I, type AdminOffer as J, type AdminOfferBase as K, type AdminOfferGrant as L, type AdminOfferGrantBase as M, type AdminOfferInput as N, type AdminOrderSummary as O, type AdminOrphanReason as P, type AdminOrphanedDosePrice as Q, type AdminPayment as R, type AdminPaymentDetail as S, type AdminProduct as T, type AdminProductOverlayField as U, type AdminProductPharmacy as V, type AdminProductStrength as W, type AdminPromoCode as X, type AdminPromoCodeInput as Y, type AdminRecurringPricePoint as Z, type AdminRecurringRevenue as _, type AddPharmacyBody as a, type CatalogItem as a$, type AdminRole as a0, type AdminSale as a1, type AdminSaleInput as a2, type AdminScheduledRefund as a3, type AdminScheduledRefundProblem as a4, type AdminSubscription as a5, type AdminSubscriptionDetail as a6, type AdminSubscriptionPatch as a7, type AdminSubscriptionWriteResult as a8, type AdminSupportCustomer as a9, type BillingReminderSettings as aA, type CatalogAvailabilityItem as aB, type CatalogAvailabilityReason as aC, type CatalogAvailabilityResult as aD, type CatalogClassification as aE, type CatalogConversionChoice as aF, type CatalogConversionCommitResult as aG, type CatalogConversionDose as aH, type CatalogConversionDoseMatch as aI, type CatalogConversionFinding as aJ, type CatalogConversionPointers as aK, type CatalogConversionPrepareResult as aL, type CatalogConversionPreview as aM, type CatalogConversionRun as aN, type CatalogConversionSource as aO, type CatalogConversionStage as aP, type CatalogConversionTarget as aQ, type CatalogConversionUndoOptions as aR, type CatalogConversionUndoResult as aS, type CatalogDose as aT, type CatalogDoseInput as aU, type CatalogDoseModel as aV, type CatalogDoseSuggestion as aW, type CatalogDoseSuggestions as aX, type CatalogEquivalentSuggestions as aY, type CatalogFulfillment as aZ, type CatalogFulfillmentInput as a_, type AdminSupportStats as aa, type AdminSupportThread as ab, type AdminTeamInvite as ac, type AdminTeamMember as ad, type AdminWebhookEvent as ae, type Affiliate as af, type AffiliateAuthTokens as ag, type AffiliateClickRecord as ah, type AffiliateConversion as ai, type AffiliateDashboardLinks as aj, type AffiliateDashboardProfile as ak, type AffiliateDashboardStats as al, type AffiliateDownlineMember as am, type AffiliateEarningsBreakdown as an, type AffiliatePaymentMethod as ao, type AffiliateProgram as ap, type AffiliateRegisterInput as aq, type AffiliateRegisterResponse as ar, type AffiliateSession as as, type AffiliateStatsResponse as at, type AffiliateStatus as au, type AffiliateTrackResponse as av, ApiError as aw, type ApiResponse as ax, type AttributionMethod as ay, type AuthTokens as az, type AddPharmacyDoseMatch as b, type SupportThreadCategory as b$, type CatalogItemInput as b0, type CatalogMappableDrug as b1, type CatalogMatrixCell as b2, type CatalogProduct as b3, type CatalogReadiness as b4, type CategoryMetadata as b5, type CheckoutAddress as b6, type CheckoutPayload as b7, type CheckoutResult as b8, type CommissionConfig as b9, type PaginationParams as bA, type PaymentCallbackPayload as bB, type PaymentInitiatePayload as bC, type PaymentType as bD, type PendingRenewalSurvey as bE, type Placeholder as bF, type PlaceholderKind as bG, type ProductSaleSummary as bH, type PromoValidationResponse as bI, type PublicCategory as bJ, type RegisterAndSubscribePayload as bK, type RegisterPayload as bL, type RenewalStatus as bM, SUPPORT_ATTACHMENT_MAX_BYTES as bN, SUPPORT_ATTACHMENT_MIME_TYPES as bO, type SelectDrugPayload as bP, type SendMessagePayload as bQ, type SendToPharmacyPayload as bR, type SubscriptionPreview as bS, type SubscriptionPreviewLine as bT, type SubscriptionPreviewPayload as bU, type SupportAttachment as bV, type SupportChannel as bW, type SupportChannelSettings as bX, type SupportMessage as bY, type SupportRealtimeToken as bZ, type SupportThread as b_, type CommissionStatus as ba, type CompleteSurveyPayload as bb, type CreateAffiliatePayload as bc, type CreateAffiliateProgramPayload as bd, type CreateOrderPayload as be, type CreateRequestPayload as bf, type CreateSubscriptionPayload as bg, type CustomTemplate as bh, type CustomTemplateInput as bi, type CustomerDiscountConfig as bj, type DeliveryInfo as bk, type DiscountType as bl, type EmailNotificationSettings as bm, type EmailTemplatesMap as bn, type LoginPayload as bo, type MemberOffer as bp, type MemberPrescriptionRequest as bq, type MemberSurveyMode as br, type MemberSurveyResponseSummary as bs, type MemberSurveyTranscript as bt, type MemberSurveyTranscriptItem as bu, type MemberSurveyTranscriptSection as bv, type MembersMeResponse as bw, type OfferGrantState as bx, type Order as by, type OrderItemInput as bz, type AddPharmacyDoseOption as c, type SupportThreadStatus as c0, type SurveySubmitPayload as c1, type TemplatePlaceholdersMap as c2, type TemplateText as c3, type TenantFeature as c4, type TenantFeatureAccess as c5, type TokenTrackName as c6, type UpdateAffiliatePayload as c7, type UpdateAffiliateProgramPayload as c8, type UpdatePaymentMethodPayload as c9, productsApi as cA, promoCodesApi as cB, setAffiliateTokens as cC, setTokens as cD, subscriptionsApi as cE, supportApi as cF, usersApi as cG, type UpdateProfilePayload as ca, type User as cb, addressesApi as cc, adminAffiliatesApi as cd, adminApi as ce, adminCatalogApi as cf, adminCatalogConversionApi as cg, adminProductPharmaciesApi as ch, affiliateAuthStorageKey as ci, affiliatePortalApi as cj, apexApi as ck, apiFetch as cl, authApi as cm, authStorageKey as cn, catalogApi as co, clearAffiliateTokens as cp, clearTokens as cq, getAffiliateTokens as cr, getTokens as cs, membersApi as ct, messagesApi as cu, newIdempotencyKey as cv, offersApi as cw, onTokensCleared as cx, ordersApi as cy, paymentsApi as cz, type AddPharmacyFinding as d, type AddPharmacyMatchQuestion as e, type AddPharmacyMatchSource as f, type AddPharmacyPlan as g, type AddPharmacyPrice as h, type AddPharmacyResult as i, type AddPharmacyStrengthAfter as j, type AddPharmacyStrengthBefore as k, type AddressVerifyResult as l, type AdminApexDrug as m, type AdminApexItemStatus as n, type AdminBillingAttempt as o, type AdminCategory as p, type AdminCategoryInput as q, type AdminCategoryUpdate as r, type AdminCustomer as s, type AdminCustomerFacts as t, type AdminCustomerFunnel as u, type AdminCustomerListParams as v, type AdminCustomerOverview as w, type AdminCustomerProfile as x, type AdminCustomerRequest as y, type AdminCustomerRow as z };
|
package/dist/flows/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Accessor, Resource } from 'solid-js';
|
|
2
|
-
import { l as AddressVerifyResult, b6 as CheckoutAddress, aD as CatalogAvailabilityResult,
|
|
2
|
+
import { l as AddressVerifyResult, b6 as CheckoutAddress, aD as CatalogAvailabilityResult, cb as User, bk as DeliveryInfo, bM as RenewalStatus, bE as PendingRenewalSurvey, G as AdminLifecycleBucket, w as AdminCustomerOverview, a6 as AdminSubscriptionDetail, y as AdminCustomerRequest, b$ as SupportThreadCategory, bW as SupportChannel, b3 as CatalogProduct, ai as AffiliateConversion, am as AffiliateDownlineMember, aj as AffiliateDashboardLinks, al as AffiliateDashboardStats, bI as PromoValidationResponse, bp as MemberOffer, aE as CatalogClassification, aV as CatalogDoseModel, Q as AdminOrphanedDosePrice, T as AdminProduct, a$ as CatalogItem, aW as CatalogDoseSuggestion, b1 as CatalogMappableDrug, aY as CatalogEquivalentSuggestions, b4 as CatalogReadiness, aS as CatalogConversionUndoResult, aM as CatalogConversionPreview, aI as CatalogConversionDoseMatch, aO as CatalogConversionSource, aH as CatalogConversionDose, aR as CatalogConversionUndoOptions, aG as CatalogConversionCommitResult, aJ as CatalogConversionFinding, aF as CatalogConversionChoice, g as AddPharmacyPlan, i as AddPharmacyResult, f as AddPharmacyMatchSource, a as AddPharmacyBody, d as AddPharmacyFinding } from '../client-B9tYDdob.js';
|
|
3
3
|
import { C as CartItem } from '../cart-o6DpAu5y.js';
|
|
4
4
|
export { U as UseSurveyV2FlowOptions, u as useSurveyV2Flow } from '../surveyV2-BgQHK0GE.js';
|
|
5
5
|
import { EmbedEvent } from '@apextelemed/survey-solid';
|
|
@@ -2593,155 +2593,6 @@ interface AddPharmacy {
|
|
|
2593
2593
|
}
|
|
2594
2594
|
declare function useAddPharmacy(opts: UseAddPharmacyOptions): AddPharmacy;
|
|
2595
2595
|
|
|
2596
|
-
/**
|
|
2597
|
-
* "Subscribers' strengths": which current strength each older strength is now —
|
|
2598
|
-
* the headless flow behind the product editor's section of that name.
|
|
2599
|
-
*
|
|
2600
|
-
* loading → ready ⇄ writing → ready
|
|
2601
|
-
* ↘ failed ↙ ↘ deciding (a price is owed an answer) → writing
|
|
2602
|
-
*
|
|
2603
|
-
* An old strength is one subscribers are still on that is no longer a strength
|
|
2604
|
-
* of the product. A flat-fee product has them too (and stored matches no open
|
|
2605
|
-
* renewal uses): there the match changes nothing today and is kept for the day
|
|
2606
|
-
* the product moves to per-strength pricing, so nothing is "left for review"
|
|
2607
|
-
* and no price is ever asked about. The server lists them (`rows`) with the strength each one is
|
|
2608
|
-
* matched to; the admin re-points one at a time. A change applies from each
|
|
2609
|
-
* subscriber's next refill and never changes what any strength sells for.
|
|
2610
|
-
*
|
|
2611
|
-
* Rules this flow keeps:
|
|
2612
|
-
*
|
|
2613
|
-
* - One write at a time. Every answer is the server's fresh list, adopted
|
|
2614
|
-
* whole; nothing is patched locally.
|
|
2615
|
-
* - A match onto a strength with no price of its own, from an old strength
|
|
2616
|
-
* that had one, is the admin's call: the server answers
|
|
2617
|
-
* `price_decision_required` and changes nothing. The row keeps showing what
|
|
2618
|
-
* it had (`pending` holds the question) until `decide` re-sends with the
|
|
2619
|
-
* answer, or `cancelDecision` drops it.
|
|
2620
|
-
* - A write changes the product's stored `dosagePrices`. Whenever that may
|
|
2621
|
-
* have happened (a success, a lost answer, a changed product) the host is
|
|
2622
|
-
* told through `onChanged`, so the editor holds the server's copy and a
|
|
2623
|
-
* later Save can't send stale prices over the match.
|
|
2624
|
-
* - A write is never resent blindly. After a failure whose outcome is not
|
|
2625
|
-
* known (no `code`: a dropped connection, a proxy timeout, a 5xx) the list
|
|
2626
|
-
* is re-read and shows whatever the server has now.
|
|
2627
|
-
* - A failed load is local to this section: it says so and offers a retry,
|
|
2628
|
-
* and nothing else in the editor waits on it.
|
|
2629
|
-
*
|
|
2630
|
-
* The decision logic (error sorting, the decision details, the request body,
|
|
2631
|
-
* when a request is made at all) is exported as pure functions and tested
|
|
2632
|
-
* without a component tree.
|
|
2633
|
-
*/
|
|
2634
|
-
|
|
2635
|
-
/** The product fields this flow reads. */
|
|
2636
|
-
type StrengthMatchProduct = Pick<AdminProduct, 'id' | 'pricingMode'> & Partial<Pick<AdminProduct, 'apexDrugId' | 'strengths'>>;
|
|
2637
|
-
/**
|
|
2638
|
-
* Whether there is anything to ask the server: any enabled (catalog-backed)
|
|
2639
|
-
* product, flat-fee ones included — their stored matches are kept for the day
|
|
2640
|
-
* the product moves to per-strength pricing.
|
|
2641
|
-
*/
|
|
2642
|
-
declare function wantsStrengthMatches(product: Pick<AdminProduct, 'pricingMode'> | null | undefined, enabled: boolean): boolean;
|
|
2643
|
-
/** The request body: `carryPrice` only when the admin has answered the price question. */
|
|
2644
|
-
declare function matchBody(dosage: string, doseId: string | null, carryPrice?: boolean): StrengthMatchBody;
|
|
2645
|
-
/** What a row's select shows: the matched strength's id, or '' for "Leave for review". */
|
|
2646
|
-
declare const matchValue: (row: Pick<StrengthMatchRow, "doseId">) => string;
|
|
2647
|
-
/** The select's value as a body `doseId`: '' = leave for review. */
|
|
2648
|
-
declare const doseIdOf: (value: string) => string | null;
|
|
2649
|
-
/** A server answer with every field a screen reads present (a missing list reads as empty). */
|
|
2650
|
-
declare function normalizeMatches(raw: Partial<ProductStrengthMatches> | null | undefined): {
|
|
2651
|
-
rows: StrengthMatchRow[];
|
|
2652
|
-
doseOptions: StrengthMatchDoseOption[];
|
|
2653
|
-
};
|
|
2654
|
-
/** The question a `price_decision_required` refusal asks. */
|
|
2655
|
-
interface PendingDecision {
|
|
2656
|
-
dosage: string;
|
|
2657
|
-
/** The strength the admin picked. */
|
|
2658
|
-
doseId: string;
|
|
2659
|
-
/** What the old strength sold for. */
|
|
2660
|
-
price: number;
|
|
2661
|
-
/** The picked strength's name. */
|
|
2662
|
-
doseLabel: string;
|
|
2663
|
-
}
|
|
2664
|
-
/** Reads a refusal's `details` into a question; null when they don't say what it needs to. */
|
|
2665
|
-
declare function decisionFromDetails(details: unknown, doseId: string): PendingDecision | null;
|
|
2666
|
-
type StrengthMatchFailure =
|
|
2667
|
-
/** `price_decision_required`: nothing changed; the admin owes an answer. */
|
|
2668
|
-
{
|
|
2669
|
-
kind: 'decision';
|
|
2670
|
-
decision: PendingDecision;
|
|
2671
|
-
}
|
|
2672
|
-
/** What was on screen is out of date (`product_changed`, `not_a_row`, `not_applicable`,
|
|
2673
|
-
* `invalid_strength_match`): nothing was written, but the list and the product need re-reading. */
|
|
2674
|
-
| {
|
|
2675
|
-
kind: 'stale';
|
|
2676
|
-
code: string;
|
|
2677
|
-
message: string;
|
|
2678
|
-
}
|
|
2679
|
-
/** The server said no before doing anything else; show its message at the row. */
|
|
2680
|
-
| {
|
|
2681
|
-
kind: 'refused';
|
|
2682
|
-
message: string;
|
|
2683
|
-
code?: string;
|
|
2684
|
-
}
|
|
2685
|
-
/** The request may or may not have landed (no `code`: the server's answer never reached us). */
|
|
2686
|
-
| {
|
|
2687
|
-
kind: 'ambiguous';
|
|
2688
|
-
message: string;
|
|
2689
|
-
};
|
|
2690
|
-
/**
|
|
2691
|
-
* Sort a thrown error into what the flow can do about it. Duck-typed on
|
|
2692
|
-
* `status` / `code` / `ambiguous` / `details` (what `ApiError` carries);
|
|
2693
|
-
* branches on codes and statuses, never on message prose. `doseId` is the
|
|
2694
|
-
* strength the failed request asked for.
|
|
2695
|
-
*/
|
|
2696
|
-
declare function classifyStrengthMatchError(err: unknown, doseId: string | null): StrengthMatchFailure;
|
|
2697
|
-
type StrengthMatchesStatus = 'idle' | 'loading' | 'ready' | 'failed';
|
|
2698
|
-
/** The write in flight. */
|
|
2699
|
-
interface StrengthMatchWrite {
|
|
2700
|
-
dosage: string;
|
|
2701
|
-
doseId: string | null;
|
|
2702
|
-
}
|
|
2703
|
-
interface UseStrengthMatchesOptions {
|
|
2704
|
-
/** The product being edited (the server's copy: it changes when the host reloads it). */
|
|
2705
|
-
product: Accessor<StrengthMatchProduct>;
|
|
2706
|
-
/** Catalog-backed products only; nothing is requested while false. */
|
|
2707
|
-
enabled: Accessor<boolean>;
|
|
2708
|
-
/**
|
|
2709
|
-
* A write may have changed the product's stored prices (it succeeded, its
|
|
2710
|
-
* answer was lost, or the product had changed): the host reloads its copy.
|
|
2711
|
-
* The flow waits for it, then reports the change as finished.
|
|
2712
|
-
*/
|
|
2713
|
-
onChanged?: () => void | Promise<void>;
|
|
2714
|
-
}
|
|
2715
|
-
interface StrengthMatches {
|
|
2716
|
-
status: Accessor<StrengthMatchesStatus>;
|
|
2717
|
-
/** The product charges one price: matches are kept for per-strength pricing and change nothing today. */
|
|
2718
|
-
flatFee: Accessor<boolean>;
|
|
2719
|
-
rows: Accessor<StrengthMatchRow[]>;
|
|
2720
|
-
doseOptions: Accessor<StrengthMatchDoseOption[]>;
|
|
2721
|
-
/** The question the admin owes an answer to, if any. */
|
|
2722
|
-
pending: Accessor<PendingDecision | null>;
|
|
2723
|
-
/** The write in flight (selects wait on it). */
|
|
2724
|
-
writing: Accessor<StrengthMatchWrite | null>;
|
|
2725
|
-
/** True while a write (and the host's reload after it) is running. */
|
|
2726
|
-
busy: Accessor<boolean>;
|
|
2727
|
-
/** Server messages by old strength (`dosage`). */
|
|
2728
|
-
errors: Accessor<Readonly<Record<string, string>>>;
|
|
2729
|
-
/** Something the admin should know about the list as a whole (it was refreshed). */
|
|
2730
|
-
notice: Accessor<string | null>;
|
|
2731
|
-
dismissNotice: () => void;
|
|
2732
|
-
/** What a row's select should show: the pick while its write runs, else the server's match ('' = leave for review). */
|
|
2733
|
-
valueOf: (dosage: string) => string;
|
|
2734
|
-
/** Match an old strength to a strength (null = leave for review). Resolves once the change is finished. */
|
|
2735
|
-
setMatch: (dosage: string, doseId: string | null) => Promise<void>;
|
|
2736
|
-
/** Answer the price question: sell the strength at the old price, or not. */
|
|
2737
|
-
decide: (carryPrice: boolean) => Promise<void>;
|
|
2738
|
-
/** Drop the price question; the row stays as it was. */
|
|
2739
|
-
cancelDecision: () => void;
|
|
2740
|
-
/** (Re)load the list; the retry after a failed load. */
|
|
2741
|
-
reload: () => Promise<void>;
|
|
2742
|
-
}
|
|
2743
|
-
declare function useStrengthMatches(opts: UseStrengthMatchesOptions): StrengthMatches;
|
|
2744
|
-
|
|
2745
2596
|
/**
|
|
2746
2597
|
* Shared vocabulary for reading a subscription's status.
|
|
2747
2598
|
*
|
|
@@ -2891,4 +2742,4 @@ declare function restoreCartFromLink(): Promise<ResumedCart | null>;
|
|
|
2891
2742
|
*/
|
|
2892
2743
|
declare function startCartCapture(opts?: CartCaptureOptions): () => void;
|
|
2893
2744
|
|
|
2894
|
-
export { type AccountSource, type AddPharmacy, type AddPharmacyFailure, type AddPharmacyNotice, type AddPharmacyState, type AddStrengthInput, type AddStrengthOutcome, type AddedPharmacy, type AddressErrors, type AddressPair, type AddressValue, type AffiliateConversionsFlow, type AffiliateDownlineFlow, type AffiliateLinksFlow, type AffiliateStatsFlow, type AnswerValue, type ApexBlockCode, type AttentionAction, type AttentionActionKind, type AttentionItem, type CartCaptureOptions, type CartCheckoutFlow, type CartCheckoutOutcome, type CartCheckoutPricing, type CartDropReason, type CartReconcileState, type CartReconciliation, type CartSource, type CatalogAvailabilityDecision, type CatalogAvailabilityState, type CatalogConversion, type CatalogFailure, type CatalogFlow, CatalogProduct, type CategoryColorOpts, type CheckoutFlow, type CheckoutOutcome, type Conversation, type ConversionConverted, type ConversionFailure, type ConversionNotice, type ConversionState, type ConversionSummary, type CreateCatalogProductOutcome, DEFAULT_COLOR_PALETTE, type DashboardActivityItem, type DashboardData, type DashboardRxListItem, type DashboardRxStatus, type DashboardSubscription, type DroppedCartLine, type DrugResult, type FindingCopy, type FlatStep, type FulfillmentRow, type FulfillmentStage, type FunnelTelemetry, type JourneyState, type JourneyStep, type JourneyStepKey, LIFECYCLE_BUCKETS, LIFECYCLE_LABEL, LIFECYCLE_TONE, LIVE_SUBSCRIPTION_STATUSES, MATCH_DEPENDENT_WARNINGS, MATCH_HOW_LABEL, type MatchChoice, type MatchProblem, type MatchRecord, type MatchRow, type MatrixView, type MedicationPricing, type MedicationSelectFlow, type MemberPortalData, type MemberPortalRx, type MemberPortalSubscription, type MessagesChannel, type MessagesIntent, type MessagesThread, type NewCatalogProductInput, OFFER_BEATS_PROMO_NOTICE, ORPHAN_REASON, type OfferDiscount, type
|
|
2745
|
+
export { type AccountSource, type AddPharmacy, type AddPharmacyFailure, type AddPharmacyNotice, type AddPharmacyState, type AddStrengthInput, type AddStrengthOutcome, type AddedPharmacy, type AddressErrors, type AddressPair, type AddressValue, type AffiliateConversionsFlow, type AffiliateDownlineFlow, type AffiliateLinksFlow, type AffiliateStatsFlow, type AnswerValue, type ApexBlockCode, type AttentionAction, type AttentionActionKind, type AttentionItem, type CartCaptureOptions, type CartCheckoutFlow, type CartCheckoutOutcome, type CartCheckoutPricing, type CartDropReason, type CartReconcileState, type CartReconciliation, type CartSource, type CatalogAvailabilityDecision, type CatalogAvailabilityState, type CatalogConversion, type CatalogFailure, type CatalogFlow, CatalogProduct, type CategoryColorOpts, type CheckoutFlow, type CheckoutOutcome, type Conversation, type ConversionConverted, type ConversionFailure, type ConversionNotice, type ConversionState, type ConversionSummary, type CreateCatalogProductOutcome, DEFAULT_COLOR_PALETTE, type DashboardActivityItem, type DashboardData, type DashboardRxListItem, type DashboardRxStatus, type DashboardSubscription, type DroppedCartLine, type DrugResult, type FindingCopy, type FlatStep, type FulfillmentRow, type FulfillmentStage, type FunnelTelemetry, type JourneyState, type JourneyStep, type JourneyStepKey, LIFECYCLE_BUCKETS, LIFECYCLE_LABEL, LIFECYCLE_TONE, LIVE_SUBSCRIPTION_STATUSES, MATCH_DEPENDENT_WARNINGS, MATCH_HOW_LABEL, type MatchChoice, type MatchProblem, type MatchRecord, type MatchRow, type MatrixView, type MedicationPricing, type MedicationSelectFlow, type MemberPortalData, type MemberPortalRx, type MemberPortalSubscription, type MessagesChannel, type MessagesIntent, type MessagesThread, type NewCatalogProductInput, OFFER_BEATS_PROMO_NOTICE, ORPHAN_REASON, type OfferDiscount, type PricingBreakdown, type ProductCatalogEditor, type ProductDetailFlow, type PromoPricing, READINESS_LABEL, type ReadinessStatus, type ReconcileOptions, type RefillEvent, type RefillView, type RegisterFlow, type RegisterOutcome, type RequestStatus, type ResolvedStrength, type RxRequestStatus, SOURCE_FIELD_NOTE, type Severity, type ShipmentInfo, type SignupFlow, type SignupOutcome, type StageState, type StoredDosePrice, type StrengthComparison, type StrengthRow, type StructureState, type SubscribeFlow, type SubscribeOutcome, type SubscriptionIntakeFlow, type SubscriptionIntakeOutcome, type SurveyFlow, type SurveyOption, type SurveyOutcome, type SurveyQuestion, type SurveyResult, TERMINAL_SUBSCRIPTION_STATUSES, type ThreadMessage, type TimelineEvent, type TimelineKind, type Tone, type TrackerRequest, type TrackerRequestStatus, type TrackerSubscription, type TrackerSubscriptionStatus, type TrackerView, type TrackingUrlCarrier, US_STATES, US_STATE_OPTIONS, type UpdatePaymentMethodFlow, type UseAddPharmacyOptions, type UseAddressPairOptions, type UseCatalogConversionOptions, type UseCheckoutFlowOptions, type UseMedicationSelectOptions, type UseMessagesThreadOptions, type UseProductCatalogEditorOptions, type UseSignupFlowOptions, type UseSubscribeFlowOptions, type UseSubscriptionIntakeFlowOptions, type UseSurveyFlowOptions, type ValidateAddressOptions, type ValidatedResumedPromo, type VisibilityCondition, accountSource, addCatalogItemAsProduct, applyPriceDrafts, availableStateOptions, availableStates, bestOfferDiscount, buildFulfillmentRows, buildMatrixView, buildRefillView, buildSaveBody, buildStrengthRows, buildTimeline, buildTrackerView, buildTrackingUrl, canLeaveUnmatched, canOfferConversion, captureFunnelEmail, catalogUnavailableMessage, categoryColor, classifyAddPharmacyError, classifyCatalogError, classifyConversionError, compareStrengths, createCatalogProduct, createFunnelTelemetry, deriveAttention, deriveCatalogAvailabilityDecision, deriveJourney, describeConversion, emailGateAnswered, explainFinding, findStoredDosePrice, flaggedSubscribers, formatCardNumber, formatConversationTime, formatCvv, formatEventDate, formatExpiry, formatMessageTime, formatRelativeTime, formatStageDate, groupDrugsByPharmacy, hasBlockers, hasConversion, hasErrors, initialMatches, isCatalogItemId, isCssColorValue, isLive, isQuestionVisible, isReconcilable, lifecycleReason, liveDoses, lowestPrice, lowestSalePrice, markEmailGateAnswered, matchProblem, matchesComplete, missingPrices, moveInOrder, needsReview, normalizeState, normalizeStates, offerBeatsPromo, offerDurationText, offerSummaryText, parseMoney, pharmacyIsOnProduct, pharmacyLabel, primarySubscription, readinessStatus, reconcileCartAgainstCatalog, reconcileCartLines, redeemResumeLink, removeStoredDosePrice, resetResumeRedemption, resolveCategoryColor, resolveStrengthPrices, restoreCartFromLink, salePriceForBase, skuBindingModeFor, sourceKey, sourceLabel, startCartCapture, stateAvailabilityNote, strengthsChanged, toChoices, toTrackerRequest, upsertDosePrice, useAddPharmacy, useAddressPair, useAffiliateConversions, useAffiliateDownline, useAffiliateLinks, useAffiliateStats, useCartCheckoutFlow, useCartReconcile, useCatalog, useCatalogAvailability, useCatalogConversion, useCheckoutFlow, useDashboardData, useMedicationSelect, useMemberPortalData, useMessagesThread, useProductCatalogEditor, useProductDetail, useRegisterFlow, useSignupFlow, useSubscribeFlow, useSubscriptionIntakeFlow, useSurveyFlow, useUpdatePaymentMethodFlow, validateAddress, validateResumedPromo, visibleWarnings };
|
package/dist/flows/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { OFFER_BEATS_PROMO_NOTICE, restoreCartFromLink, startCartCapture, useSubscriptionIntakeFlow, validateResumedPromo } from '../chunk/
|
|
2
|
-
import '../chunk/
|
|
3
|
-
export { DEFAULT_COLOR_PALETTE, LIFECYCLE_BUCKETS, LIFECYCLE_LABEL, LIFECYCLE_TONE, LIVE_SUBSCRIPTION_STATUSES, MATCH_DEPENDENT_WARNINGS, MATCH_HOW_LABEL, ORPHAN_REASON, READINESS_LABEL, SOURCE_FIELD_NOTE, TERMINAL_SUBSCRIPTION_STATUSES, US_STATES, US_STATE_OPTIONS, accountSource, addCatalogItemAsProduct, applyPriceDrafts, availableStateOptions, availableStates, bestOfferDiscount, buildFulfillmentRows, buildMatrixView, buildRefillView, buildSaveBody, buildStrengthRows, buildTimeline, buildTrackerView, buildTrackingUrl, canLeaveUnmatched, canOfferConversion, captureFunnelEmail, catalogUnavailableMessage, categoryColor, classifyAddPharmacyError, classifyCatalogError, classifyConversionError,
|
|
4
|
-
import '../chunk/
|
|
5
|
-
import '../chunk/
|
|
6
|
-
import '../chunk/
|
|
1
|
+
export { OFFER_BEATS_PROMO_NOTICE, restoreCartFromLink, startCartCapture, useSubscriptionIntakeFlow, validateResumedPromo } from '../chunk/KKMLCFNX.js';
|
|
2
|
+
import '../chunk/B7FB66P6.js';
|
|
3
|
+
export { DEFAULT_COLOR_PALETTE, LIFECYCLE_BUCKETS, LIFECYCLE_LABEL, LIFECYCLE_TONE, LIVE_SUBSCRIPTION_STATUSES, MATCH_DEPENDENT_WARNINGS, MATCH_HOW_LABEL, ORPHAN_REASON, READINESS_LABEL, SOURCE_FIELD_NOTE, TERMINAL_SUBSCRIPTION_STATUSES, US_STATES, US_STATE_OPTIONS, accountSource, addCatalogItemAsProduct, applyPriceDrafts, availableStateOptions, availableStates, bestOfferDiscount, buildFulfillmentRows, buildMatrixView, buildRefillView, buildSaveBody, buildStrengthRows, buildTimeline, buildTrackerView, buildTrackingUrl, canLeaveUnmatched, canOfferConversion, captureFunnelEmail, catalogUnavailableMessage, categoryColor, classifyAddPharmacyError, classifyCatalogError, classifyConversionError, compareStrengths, createCatalogProduct, createFunnelTelemetry, deriveAttention, deriveCatalogAvailabilityDecision, deriveJourney, describeConversion, emailGateAnswered, explainFinding, findStoredDosePrice, flaggedSubscribers, formatCardNumber, formatConversationTime, formatCvv, formatEventDate, formatExpiry, formatMessageTime, formatRelativeTime, formatStageDate, groupDrugsByPharmacy, hasBlockers, hasConversion, hasErrors, initialMatches, isCatalogItemId, isCssColorValue, isLive, isQuestionVisible, isReconcilable, lifecycleReason, liveDoses, lowestPrice, lowestSalePrice, markEmailGateAnswered, matchProblem, matchesComplete, missingPrices, moveInOrder, needsReview, normalizeState, normalizeStates, offerBeatsPromo, offerDurationText, offerSummaryText, parseMoney, pharmacyIsOnProduct, pharmacyLabel, primarySubscription, readinessStatus, reconcileCartAgainstCatalog, reconcileCartLines, redeemResumeLink, removeStoredDosePrice, resetResumeRedemption, resolveCategoryColor, resolveStrengthPrices, salePriceForBase, skuBindingModeFor, sourceKey, sourceLabel, stateAvailabilityNote, strengthsChanged, toChoices, toTrackerRequest, upsertDosePrice, useAddPharmacy, useAddressPair, useAffiliateConversions, useAffiliateDownline, useAffiliateLinks, useAffiliateStats, useCartCheckoutFlow, useCartReconcile, useCatalog, useCatalogAvailability, useCatalogConversion, useCheckoutFlow, useDashboardData, useMedicationSelect, useMemberPortalData, useMessagesThread, useProductCatalogEditor, useProductDetail, useRegisterFlow, useSignupFlow, useSubscribeFlow, useSurveyFlow, useSurveyV2Flow, useUpdatePaymentMethodFlow, validateAddress, visibleWarnings } from '../chunk/O5ZPLKOG.js';
|
|
4
|
+
import '../chunk/ECVD6HBS.js';
|
|
5
|
+
import '../chunk/5MVIKOPC.js';
|
|
6
|
+
import '../chunk/JCJ5TTMD.js';
|
|
7
7
|
import '../chunk/2IFPDU4D.js';
|
|
8
8
|
//# sourceMappingURL=index.js.map
|
|
9
9
|
//# sourceMappingURL=index.js.map
|