@apextelemed/partner-core 0.5.0 → 0.5.2
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/api/index.d.ts +1 -1
- package/dist/api/index.js +3 -3
- package/dist/api/index.jsx +3 -3
- package/dist/chunk/{Z2CR6WKF.jsx → 2UWULNSX.jsx} +2 -2
- package/dist/chunk/{ITK5F5AI.js → 5D7SGF46.js} +2 -2
- package/dist/chunk/{ITK5F5AI.js.map → 5D7SGF46.js.map} +1 -1
- package/dist/chunk/{4YUUZ532.js → 7ZESUC4Q.js} +3 -3
- package/dist/chunk/{4YUUZ532.js.map → 7ZESUC4Q.js.map} +1 -1
- package/dist/chunk/{NNTB7KL5.js → C7TELVJF.js} +3 -3
- package/dist/chunk/{NNTB7KL5.js.map → C7TELVJF.js.map} +1 -1
- package/dist/chunk/{B5RBZKAK.jsx → DQE4K55D.jsx} +1 -1
- package/dist/chunk/{GGY7VMZ2.jsx → FUOUTRAO.jsx} +2 -2
- package/dist/chunk/{CXBPVQ7W.jsx → GNG53L37.jsx} +2 -2
- package/dist/chunk/{4W5ONAFF.js → GPVYUP3H.js} +5 -5
- package/dist/chunk/{4W5ONAFF.js.map → GPVYUP3H.js.map} +1 -1
- package/dist/chunk/{YPZVHEBG.jsx → I322BQIU.jsx} +68 -22
- package/dist/chunk/{6QC4BETO.jsx → JTG4H4I5.jsx} +4 -4
- package/dist/chunk/{7COJH6FZ.js → KO2JPCIP.js} +196 -133
- package/dist/chunk/KO2JPCIP.js.map +1 -0
- package/dist/chunk/{O4V2YXBF.js → XHOD3HUQ.js} +3 -3
- package/dist/chunk/{O4V2YXBF.js.map → XHOD3HUQ.js.map} +1 -1
- package/dist/chunk/{6MDLP62Y.js → ZD2MMEXL.js} +6 -6
- package/dist/chunk/{6MDLP62Y.js.map → ZD2MMEXL.js.map} +1 -1
- package/dist/chunk/{5CXUPFZU.jsx → ZJENZPAM.jsx} +5 -5
- package/dist/{client-Cm6n4V0r.d.ts → client-BD9_HCZY.d.ts} +8 -0
- package/dist/flows/index.d.ts +1 -1
- package/dist/flows/index.js +6 -6
- package/dist/flows/index.jsx +6 -6
- package/dist/index/index.d.ts +1 -1
- package/dist/index/index.js +7 -7
- package/dist/index/index.jsx +7 -7
- package/dist/pages/index.d.ts +1 -1
- 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/7COJH6FZ.js.map +0 -1
|
@@ -48,10 +48,10 @@ import {
|
|
|
48
48
|
useSurveyFlow,
|
|
49
49
|
useSurveyV2Flow,
|
|
50
50
|
useUpdatePaymentMethodFlow
|
|
51
|
-
} from "./
|
|
51
|
+
} from "./JTG4H4I5.jsx";
|
|
52
52
|
import {
|
|
53
53
|
fetchFunnelConfig
|
|
54
|
-
} from "./
|
|
54
|
+
} from "./2UWULNSX.jsx";
|
|
55
55
|
import {
|
|
56
56
|
usePrimitives
|
|
57
57
|
} from "./J63XPQP4.jsx";
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
affiliateAuth_default,
|
|
60
60
|
auth_default,
|
|
61
61
|
cart_default
|
|
62
|
-
} from "./
|
|
62
|
+
} from "./GNG53L37.jsx";
|
|
63
63
|
import {
|
|
64
64
|
ApiError,
|
|
65
65
|
SUPPORT_ATTACHMENT_MAX_BYTES,
|
|
@@ -73,7 +73,7 @@ import {
|
|
|
73
73
|
membersApi,
|
|
74
74
|
subscriptionsApi,
|
|
75
75
|
usersApi
|
|
76
|
-
} from "./
|
|
76
|
+
} from "./DQE4K55D.jsx";
|
|
77
77
|
|
|
78
78
|
// src/pages/Survey.tsx
|
|
79
79
|
import { Show, For, createEffect, on } from "solid-js";
|
|
@@ -10160,6 +10160,41 @@ function RequestCard(props) {
|
|
|
10160
10160
|
|
|
10161
10161
|
// src/pages/admin/customers/sections/SubscriptionCard.tsx
|
|
10162
10162
|
import { For as For19, Show as Show29, createSignal as createSignal16 } from "solid-js";
|
|
10163
|
+
|
|
10164
|
+
// src/pages/admin/customers/subscriptionTerms.ts
|
|
10165
|
+
function nextChargeCents(s) {
|
|
10166
|
+
return s.nextChargeCents ?? s.amountCents;
|
|
10167
|
+
}
|
|
10168
|
+
function charges(n) {
|
|
10169
|
+
return `${n} more ${n === 1 ? "charge" : "charges"}`;
|
|
10170
|
+
}
|
|
10171
|
+
function priceChange(s) {
|
|
10172
|
+
const next = nextChargeCents(s);
|
|
10173
|
+
const base = s.baseAmountCents;
|
|
10174
|
+
if (next == null || base == null || base <= next) return null;
|
|
10175
|
+
if (s.discountRecurringIndefinite) return `${centsToUsd(base - next)} off ongoing`;
|
|
10176
|
+
const remaining = s.discountRecurringRemaining ?? 0;
|
|
10177
|
+
if (s.billingMode !== "gateway" && remaining > 0) return `then ${centsToUsd(base)} after ${charges(remaining)}`;
|
|
10178
|
+
return `then ${centsToUsd(base)}`;
|
|
10179
|
+
}
|
|
10180
|
+
function priceLine(s) {
|
|
10181
|
+
const every = `${centsToUsd(nextChargeCents(s))} every ${s.intervalDays ?? 30} days`;
|
|
10182
|
+
const change = priceChange(s);
|
|
10183
|
+
return change ? `${every}, ${change}` : every;
|
|
10184
|
+
}
|
|
10185
|
+
function discountTerms(s) {
|
|
10186
|
+
const amount = s.amountCents;
|
|
10187
|
+
const base = s.baseAmountCents;
|
|
10188
|
+
const off = amount != null && base != null && base > amount ? `${centsToUsd(base - amount)} off` : null;
|
|
10189
|
+
const remaining = s.discountRecurringRemaining ?? 0;
|
|
10190
|
+
if (s.discountRecurringIndefinite) return off ? `${off}, ongoing` : "Recurring, ongoing";
|
|
10191
|
+
if (remaining > 0) return off ? `${off}, ${charges(remaining)}` : `Recurring, ${charges(remaining)}`;
|
|
10192
|
+
if (!off || base == null) return null;
|
|
10193
|
+
const next = nextChargeCents(s);
|
|
10194
|
+
return next != null && next >= base ? `${off}, ended` : `${off}, first charge only`;
|
|
10195
|
+
}
|
|
10196
|
+
|
|
10197
|
+
// src/pages/admin/customers/sections/SubscriptionCard.tsx
|
|
10163
10198
|
function attemptTone(status) {
|
|
10164
10199
|
if (status === "succeeded") return "success";
|
|
10165
10200
|
if (status === "failed") return "danger";
|
|
@@ -10175,11 +10210,6 @@ function SubscriptionCard(props) {
|
|
|
10175
10210
|
);
|
|
10176
10211
|
const attempts = () => [...s().billingAttempts ?? []].sort((a, b) => Date.parse(b.createdAt ?? "") - Date.parse(a.createdAt ?? ""));
|
|
10177
10212
|
const busy = (key) => props.busy === `${key}-${s().id}`;
|
|
10178
|
-
const discount = () => {
|
|
10179
|
-
if (s().discountRecurringIndefinite) return "Recurring discount, indefinite";
|
|
10180
|
-
if ((s().discountRecurringRemaining ?? 0) > 0) return `Recurring discount, ${s().discountRecurringRemaining} charge${s().discountRecurringRemaining === 1 ? "" : "s"} left`;
|
|
10181
|
-
return null;
|
|
10182
|
-
};
|
|
10183
10213
|
return <article class="app-admin-card-soft" id={`sub-${s().id}`} style={{ padding: "1rem 1.25rem" }}>
|
|
10184
10214
|
<div style={{ display: "flex", "flex-wrap": "wrap", "align-items": "flex-start", "justify-content": "space-between", gap: "0.75rem" }}>
|
|
10185
10215
|
<div style={{ "min-width": 0 }}>
|
|
@@ -10191,10 +10221,7 @@ function SubscriptionCard(props) {
|
|
|
10191
10221
|
<StatusBadge status={s().status} />
|
|
10192
10222
|
</div>
|
|
10193
10223
|
<div class="app-admin-text-muted" style={{ "font-size": "0.875rem", "margin-top": "0.25rem" }}>
|
|
10194
|
-
{
|
|
10195
|
-
<Show29 when={s().baseAmountCents != null && s().baseAmountCents !== s().amountCents}>
|
|
10196
|
-
{` (then ${centsToUsd(s().baseAmountCents)})`}
|
|
10197
|
-
</Show29>
|
|
10224
|
+
{priceLine(s())}
|
|
10198
10225
|
{" \xB7 "}
|
|
10199
10226
|
{gateway() ? "billed by the gateway" : "billed by the platform"}
|
|
10200
10227
|
</div>
|
|
@@ -10244,7 +10271,9 @@ function SubscriptionCard(props) {
|
|
|
10244
10271
|
{ label: "Paused", value: s().pausedAt ? fmtDate(s().pausedAt) : null },
|
|
10245
10272
|
{ label: "Cancelled", value: s().cancelledAt ? fmtDate(s().cancelledAt) : null },
|
|
10246
10273
|
{ label: "Retries", value: s().retryCount ? `${s().retryCount}${s().lastAttemptAt ? `, last ${fmtDate(s().lastAttemptAt)}` : ""}` : null },
|
|
10247
|
-
{ label: "
|
|
10274
|
+
{ label: "Promo code", value: s().promoCode ?? null },
|
|
10275
|
+
{ label: "Sale", value: s().saleName ?? null },
|
|
10276
|
+
{ label: "Discount", value: discountTerms(s()) },
|
|
10248
10277
|
{
|
|
10249
10278
|
label: "Gateway id",
|
|
10250
10279
|
value: s().gatewaySubscriptionId ? <span class="app-admin-text-mono" style={{ "font-size": "0.8125rem" }}>{s().gatewaySubscriptionId}</span> : null
|
|
@@ -14109,12 +14138,18 @@ function Funnel() {
|
|
|
14109
14138
|
const s = summary();
|
|
14110
14139
|
if (!s) return [];
|
|
14111
14140
|
return [
|
|
14112
|
-
{ label: "Surveys started", value: s.sessions.started },
|
|
14113
|
-
{ label: "Surveys completed", value: s.
|
|
14114
|
-
{ label: "
|
|
14115
|
-
{ label: "
|
|
14141
|
+
{ label: "Surveys started", value: s.sessions.started, of: null, group: "tracked" },
|
|
14142
|
+
{ label: "Surveys completed", value: s.sessions.completed, of: s.sessions.started, group: "tracked" },
|
|
14143
|
+
{ label: "Visits completed", value: s.captures.total, of: null, group: "visits" },
|
|
14144
|
+
{ label: "Qualified", value: s.captures.qualified, of: s.captures.total, group: "visits" },
|
|
14145
|
+
{ label: "Signed up", value: s.captures.converted, of: s.captures.leads, group: "visits" }
|
|
14116
14146
|
];
|
|
14117
14147
|
};
|
|
14148
|
+
const trackingGap = () => {
|
|
14149
|
+
const s = summary();
|
|
14150
|
+
if (!s) return null;
|
|
14151
|
+
return s.captures.total > s.sessions.completed ? { tracked: s.sessions.completed, total: s.captures.total } : null;
|
|
14152
|
+
};
|
|
14118
14153
|
const stageMax = () => Math.max(1, ...stages().map((s) => s.value));
|
|
14119
14154
|
const dropoffMax = () => Math.max(1, ...(summary()?.stepDropoff ?? []).map((b) => b.count));
|
|
14120
14155
|
const totalRecovered = () => (summary()?.recovery.captureRecovered ?? 0) + (summary()?.recovery.sessionRecovered ?? 0);
|
|
@@ -14144,14 +14179,17 @@ function Funnel() {
|
|
|
14144
14179
|
}}
|
|
14145
14180
|
>
|
|
14146
14181
|
<StatCard label="Surveys Started" value={s().sessions.started} />
|
|
14147
|
-
<StatCard label="Completion Rate" value={pct(s().
|
|
14182
|
+
<StatCard label="Completion Rate" value={pct(s().sessions.completed, s().sessions.started)} />
|
|
14148
14183
|
<StatCard label="Qualified Rate" value={pct(s().captures.qualified, s().captures.total)} />
|
|
14149
14184
|
<StatCard label="Signup Conversion" value={pct(s().captures.converted, s().captures.leads)} />
|
|
14150
14185
|
<StatCard label="Recovered by Email" value={totalRecovered()} />
|
|
14151
14186
|
</div>
|
|
14152
14187
|
|
|
14153
14188
|
<div class="app-admin-card" style={{ "margin-top": "1.25rem" }}>
|
|
14154
|
-
<CardHeader
|
|
14189
|
+
<CardHeader
|
|
14190
|
+
title="Funnel stages"
|
|
14191
|
+
note="Step tracking covers visits since telemetry was switched on; completed visits are recorded independently, so the two counts are read separately."
|
|
14192
|
+
/>
|
|
14155
14193
|
<div style={{ padding: "1rem 1.25rem", display: "grid", gap: "0.625rem" }}>
|
|
14156
14194
|
<For30 each={stages()}>
|
|
14157
14195
|
{(stage, i) => <div
|
|
@@ -14162,6 +14200,8 @@ function Funnel() {
|
|
|
14162
14200
|
gap: "0.75rem"
|
|
14163
14201
|
}}
|
|
14164
14202
|
title={`${stage.label}: ${stage.value}`}
|
|
14203
|
+
classList={{ "app-admin-funnel-stage": true }}
|
|
14204
|
+
data-group={stage.group}
|
|
14165
14205
|
>
|
|
14166
14206
|
<span style={{ "font-size": "0.8125rem", color: "var(--app-admin-fg-muted)" }}>
|
|
14167
14207
|
{stage.label}
|
|
@@ -14180,11 +14220,17 @@ function Funnel() {
|
|
|
14180
14220
|
<span style={{ "font-size": "0.8125rem", "text-align": "right" }}>
|
|
14181
14221
|
{stage.value}
|
|
14182
14222
|
<span style={{ color: "var(--app-admin-fg-subtle)", "margin-left": "0.375rem" }}>
|
|
14183
|
-
{
|
|
14223
|
+
{stage.of != null ? pct(stage.value, stage.of) : ""}
|
|
14184
14224
|
</span>
|
|
14185
14225
|
</span>
|
|
14186
14226
|
</div>}
|
|
14187
14227
|
</For30>
|
|
14228
|
+
<Show42 when={trackingGap()}>
|
|
14229
|
+
{(gap) => <p class="app-admin-text-muted" style={{ "font-size": "0.75rem", margin: "0.25rem 0 0" }}>
|
|
14230
|
+
Step-by-step tracking saw {gap().tracked} of {gap().total} completed visits in this window — the
|
|
14231
|
+
rest finished before telemetry was switched on, or from a browser that never reported.
|
|
14232
|
+
</p>}
|
|
14233
|
+
</Show42>
|
|
14188
14234
|
</div>
|
|
14189
14235
|
</div>
|
|
14190
14236
|
|
|
@@ -18370,4 +18416,4 @@ export {
|
|
|
18370
18416
|
AffiliateForgotPassword,
|
|
18371
18417
|
AffiliateResetPassword
|
|
18372
18418
|
};
|
|
18373
|
-
//# sourceMappingURL=
|
|
18419
|
+
//# sourceMappingURL=I322BQIU.jsx.map
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
readResumeToken,
|
|
7
7
|
saveFunnelDraft,
|
|
8
8
|
stripResumeToken
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./2UWULNSX.jsx";
|
|
10
10
|
import {
|
|
11
11
|
affiliateAuth_default,
|
|
12
12
|
auth_default,
|
|
13
13
|
cart_default,
|
|
14
14
|
medication_default
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./GNG53L37.jsx";
|
|
16
16
|
import {
|
|
17
17
|
ApiError,
|
|
18
18
|
addressesApi,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
subscriptionsApi,
|
|
28
28
|
supportApi,
|
|
29
29
|
usersApi
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./DQE4K55D.jsx";
|
|
31
31
|
import {
|
|
32
32
|
getConfig
|
|
33
33
|
} from "./LDZIUFDM.jsx";
|
|
@@ -4027,4 +4027,4 @@ export {
|
|
|
4027
4027
|
useSurveyV2Flow,
|
|
4028
4028
|
uploadPrescriptionPhoto
|
|
4029
4029
|
};
|
|
4030
|
-
//# sourceMappingURL=
|
|
4030
|
+
//# sourceMappingURL=JTG4H4I5.jsx.map
|