@apextelemed/partner-core 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/index.d.ts +2 -2
- package/dist/api/index.js +3 -3
- package/dist/api/index.jsx +5 -3
- package/dist/{cart-CBH8Em8f.d.ts → cart-BwUwSzWh.d.ts} +25 -2
- package/dist/chunk/{OJSQZEB3.js → 4W5ONAFF.js} +7 -6
- package/dist/chunk/4W5ONAFF.js.map +1 -0
- package/dist/chunk/{DS4E7FAI.js → 4YUUZ532.js} +14 -4
- package/dist/chunk/4YUUZ532.js.map +1 -0
- package/dist/chunk/{T6IKS76T.jsx → 5CXUPFZU.jsx} +33 -15
- package/dist/chunk/{EIXZJX6R.js → 6MDLP62Y.js} +34 -17
- package/dist/chunk/6MDLP62Y.js.map +1 -0
- package/dist/chunk/{NYLIUR7O.jsx → 6QC4BETO.jsx} +6 -5
- package/dist/chunk/{ID67FV6R.js → 7COJH6FZ.js} +1014 -892
- package/dist/chunk/7COJH6FZ.js.map +1 -0
- package/dist/chunk/{MEF3FUQB.jsx → B5RBZKAK.jsx} +1 -1
- package/dist/chunk/{STEVQZ6U.jsx → CXBPVQ7W.jsx} +2 -2
- package/dist/chunk/{NP4CMOLW.jsx → GGY7VMZ2.jsx} +5 -3
- package/dist/chunk/{2XJBOTK5.js → ITK5F5AI.js} +2 -2
- package/dist/chunk/{2XJBOTK5.js.map → ITK5F5AI.js.map} +1 -1
- package/dist/chunk/{YHWX4NMV.js → NNTB7KL5.js} +3 -3
- package/dist/chunk/{YHWX4NMV.js.map → NNTB7KL5.js.map} +1 -1
- package/dist/chunk/{XMYPS7PT.js → O4V2YXBF.js} +5 -4
- package/dist/chunk/O4V2YXBF.js.map +1 -0
- package/dist/chunk/{HM27UGZM.jsx → YPZVHEBG.jsx} +1163 -1048
- package/dist/chunk/{I46Y2J5W.jsx → Z2CR6WKF.jsx} +15 -2
- package/dist/{client-DUrhrzOG.d.ts → client-Cm6n4V0r.d.ts} +8 -0
- package/dist/flows/index.d.ts +49 -3
- package/dist/flows/index.js +6 -6
- package/dist/flows/index.jsx +10 -8
- package/dist/index/index.d.ts +3 -3
- package/dist/index/index.js +7 -7
- package/dist/index/index.jsx +13 -9
- 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/DS4E7FAI.js.map +0 -1
- package/dist/chunk/EIXZJX6R.js.map +0 -1
- package/dist/chunk/ID67FV6R.js.map +0 -1
- package/dist/chunk/OJSQZEB3.js.map +0 -1
- package/dist/chunk/XMYPS7PT.js.map +0 -1
package/dist/api/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { A as AddressVerifyResult, a as AdminApexDrug, b as AdminBillingAttempt, c as AdminCategory, d as AdminCategoryInput, e as AdminCustomer, f as AdminCustomerFacts, g as AdminCustomerFunnel, h as AdminCustomerListParams, i as AdminCustomerOverview, j as AdminCustomerProfile, k as AdminCustomerRequest, l as AdminCustomerRow, m as AdminCustomerSupport, n as AdminCustomerSupportThread, o as AdminDashboardStats, p as AdminLifecycle, q as AdminLifecycleBucket, r as AdminListParams, s as AdminOrderSummary, t as AdminPayment, u as AdminPaymentDetail, v as AdminProduct, w as AdminPromoCode, x as AdminPromoCodeInput, y as AdminRefundResult, z as AdminSale, B as AdminSaleInput, C as AdminSubscription, D as AdminSubscriptionDetail, E as AdminSubscriptionPatch, F as AdminSubscriptionWriteResult, G as AdminSupportCustomer, H as AdminSupportStats, I as AdminSupportThread, J as AdminWebhookEvent, K as Affiliate, L as AffiliateAuthTokens, M as AffiliateClickRecord, N as AffiliateConversion, O as AffiliateDashboardLinks, P as AffiliateDashboardProfile, Q as AffiliateDashboardStats, R as AffiliateDownlineMember, S as AffiliateEarningsBreakdown, T as AffiliatePaymentMethod, U as AffiliateProgram, V as AffiliateRegisterInput, W as AffiliateRegisterResponse, X as AffiliateSession, Y as AffiliateStatsResponse, Z as AffiliateStatus, _ as AffiliateTrackResponse, $ as ApiError, a0 as ApiResponse, a1 as AttributionMethod, a2 as AuthTokens, a3 as CatalogProduct, a4 as CheckoutAddress, a5 as CheckoutPayload, a6 as CheckoutResult, a7 as CommissionConfig, a8 as CommissionStatus, a9 as CompleteSurveyPayload, aa as CreateAffiliatePayload, ab as CreateAffiliateProgramPayload, ac as CreateOrderPayload, ad as CreateRequestPayload, ae as CreateSubscriptionPayload, af as CustomerDiscountConfig, ag as DeliveryInfo, ah as DiscountType, ai as EmailTemplatesMap, aj as LoginPayload, ak as MemberPrescriptionRequest, al as MemberSurveyMode, am as MemberSurveyResponseSummary, an as MemberSurveyTranscript, ao as MemberSurveyTranscriptItem, ap as MemberSurveyTranscriptSection, aq as MembersMeResponse, ar as Order, as as OrderItemInput, at as PaginationParams, au as PaymentCallbackPayload, av as PaymentInitiatePayload, aw as PaymentType, ax as PendingRenewalSurvey, ay as Placeholder, az as ProductSaleSummary, aA as PromoValidationResponse, aB as PublicCategory, aC as RegisterAndSubscribePayload, aD as RegisterPayload, aE as RenewalStatus, aF as SUPPORT_ATTACHMENT_MAX_BYTES, aG as SUPPORT_ATTACHMENT_MIME_TYPES, aH as SelectDrugPayload, aI as SendMessagePayload, aJ as SendToPharmacyPayload, aK as SupportAttachment, aL as SupportMessage, aM as SupportRealtimeToken, aN as SupportThread, aO as SupportThreadStatus, aP as SurveySubmitPayload, aQ as TemplatePlaceholdersMap, aR as TemplateText, aS as TokenTrackName, aT as UpdateAffiliatePayload, aU as UpdateAffiliateProgramPayload, aV as UpdatePaymentMethodPayload, aW as UpdateProfilePayload, aX as User, aY as addressesApi, aZ as adminAffiliatesApi, a_ as adminApi, a$ as affiliateAuthStorageKey, b0 as affiliatePortalApi, b1 as apexApi, b2 as apiFetch, b3 as authApi, b4 as authStorageKey, b5 as clearAffiliateTokens, b6 as clearTokens, b7 as getAffiliateTokens, b8 as getTokens, b9 as membersApi, ba as messagesApi, bb as newIdempotencyKey, bc as onTokensCleared, bd as ordersApi, be as paymentsApi, bf as productsApi, bg as promoCodesApi, bh as setAffiliateTokens, bi as setTokens, bj as subscriptionsApi, bk as supportApi, bl as usersApi } from '../client-
|
|
1
|
+
export { A as AddressVerifyResult, a as AdminApexDrug, b as AdminBillingAttempt, c as AdminCategory, d as AdminCategoryInput, e as AdminCustomer, f as AdminCustomerFacts, g as AdminCustomerFunnel, h as AdminCustomerListParams, i as AdminCustomerOverview, j as AdminCustomerProfile, k as AdminCustomerRequest, l as AdminCustomerRow, m as AdminCustomerSupport, n as AdminCustomerSupportThread, o as AdminDashboardStats, p as AdminLifecycle, q as AdminLifecycleBucket, r as AdminListParams, s as AdminOrderSummary, t as AdminPayment, u as AdminPaymentDetail, v as AdminProduct, w as AdminPromoCode, x as AdminPromoCodeInput, y as AdminRefundResult, z as AdminSale, B as AdminSaleInput, C as AdminSubscription, D as AdminSubscriptionDetail, E as AdminSubscriptionPatch, F as AdminSubscriptionWriteResult, G as AdminSupportCustomer, H as AdminSupportStats, I as AdminSupportThread, J as AdminWebhookEvent, K as Affiliate, L as AffiliateAuthTokens, M as AffiliateClickRecord, N as AffiliateConversion, O as AffiliateDashboardLinks, P as AffiliateDashboardProfile, Q as AffiliateDashboardStats, R as AffiliateDownlineMember, S as AffiliateEarningsBreakdown, T as AffiliatePaymentMethod, U as AffiliateProgram, V as AffiliateRegisterInput, W as AffiliateRegisterResponse, X as AffiliateSession, Y as AffiliateStatsResponse, Z as AffiliateStatus, _ as AffiliateTrackResponse, $ as ApiError, a0 as ApiResponse, a1 as AttributionMethod, a2 as AuthTokens, a3 as CatalogProduct, a4 as CheckoutAddress, a5 as CheckoutPayload, a6 as CheckoutResult, a7 as CommissionConfig, a8 as CommissionStatus, a9 as CompleteSurveyPayload, aa as CreateAffiliatePayload, ab as CreateAffiliateProgramPayload, ac as CreateOrderPayload, ad as CreateRequestPayload, ae as CreateSubscriptionPayload, af as CustomerDiscountConfig, ag as DeliveryInfo, ah as DiscountType, ai as EmailTemplatesMap, aj as LoginPayload, ak as MemberPrescriptionRequest, al as MemberSurveyMode, am as MemberSurveyResponseSummary, an as MemberSurveyTranscript, ao as MemberSurveyTranscriptItem, ap as MemberSurveyTranscriptSection, aq as MembersMeResponse, ar as Order, as as OrderItemInput, at as PaginationParams, au as PaymentCallbackPayload, av as PaymentInitiatePayload, aw as PaymentType, ax as PendingRenewalSurvey, ay as Placeholder, az as ProductSaleSummary, aA as PromoValidationResponse, aB as PublicCategory, aC as RegisterAndSubscribePayload, aD as RegisterPayload, aE as RenewalStatus, aF as SUPPORT_ATTACHMENT_MAX_BYTES, aG as SUPPORT_ATTACHMENT_MIME_TYPES, aH as SelectDrugPayload, aI as SendMessagePayload, aJ as SendToPharmacyPayload, aK as SupportAttachment, aL as SupportMessage, aM as SupportRealtimeToken, aN as SupportThread, aO as SupportThreadStatus, aP as SurveySubmitPayload, aQ as TemplatePlaceholdersMap, aR as TemplateText, aS as TokenTrackName, aT as UpdateAffiliatePayload, aU as UpdateAffiliateProgramPayload, aV as UpdatePaymentMethodPayload, aW as UpdateProfilePayload, aX as User, aY as addressesApi, aZ as adminAffiliatesApi, a_ as adminApi, a$ as affiliateAuthStorageKey, b0 as affiliatePortalApi, b1 as apexApi, b2 as apiFetch, b3 as authApi, b4 as authStorageKey, b5 as clearAffiliateTokens, b6 as clearTokens, b7 as getAffiliateTokens, b8 as getTokens, b9 as membersApi, ba as messagesApi, bb as newIdempotencyKey, bc as onTokensCleared, bd as ordersApi, be as paymentsApi, bf as productsApi, bg as promoCodesApi, bh as setAffiliateTokens, bi as setTokens, bj as subscriptionsApi, bk as supportApi, bl as usersApi } from '../client-Cm6n4V0r.js';
|
|
2
2
|
export { EmbedApiError as ApexV2ApiError, EmbedApiClient, EmbedApiClientOptions, EmbedApiError, EmbedEvent, EmbedEventType, FetchLike, PatientInfo, V2Answer, V2ComposedSurvey, V2DrugResult, V2QualificationResult, V2Question, V2QuestionOption, V2Section, V2Step, V2SubmitResult, V2VisibilityCondition, createEmbedApiClient, disqualificationReasonText, disqualifiedDrugIds, qualifiedDrugIds } from '@apextelemed/survey-core';
|
|
3
|
-
export { C as CartCaptureConfig, a as CartSnapshotLine, F as FunnelConfig, b as FunnelDraftPayload, R as ResumedCart, c as ResumedCartLine, d as ResumedDraft, e as adoptCartId, f as adoptFunnelSessionId, g as
|
|
3
|
+
export { C as CartCaptureConfig, a as CartSnapshotLine, F as FunnelConfig, b as FunnelDraftPayload, R as ResumedCart, c as ResumedCartLine, d as ResumedDraft, e as adoptCartId, f as adoptFunnelSessionId, g as captureAuthHeader, h as cartId, i as fetchCartConfig, j as fetchFunnelConfig, k as fetchResumedCart, l as fetchResumedDraft, m as funnelSessionId, p as peekFunnelSessionId, n as postCartSnapshot, o as postFunnelEvent, r as readCartToken, q as readResumeToken, s as resetCartConfigCache, t as resetCartId, u as resetFunnelConfigCache, v as saveFunnelDraft, w as stripCartToken, x as stripResumeToken } from '../cart-BwUwSzWh.js';
|
|
4
4
|
|
|
5
5
|
/** Persist a referral code from a `?ref=` landing. No-op for empty input. */
|
|
6
6
|
declare function captureAffiliateRef(code: string): void;
|
package/dist/api/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import '../chunk/JSHO46VZ.js';
|
|
2
|
-
export { adoptCartId, capturePromoCode, cartId, clearPromoCode, fetchCartConfig, fetchResumedCart, postCartSnapshot, readCartToken, readPromoCode, resetCartConfigCache, resetCartId, stripCartToken } from '../chunk/
|
|
2
|
+
export { adoptCartId, capturePromoCode, cartId, clearPromoCode, fetchCartConfig, fetchResumedCart, postCartSnapshot, readCartToken, readPromoCode, resetCartConfigCache, resetCartId, stripCartToken } from '../chunk/O4V2YXBF.js';
|
|
3
3
|
export { EmbedApiError2 as ApexV2ApiError, EmbedApiError, createEmbedApiClient, disqualificationReasonText, disqualifiedDrugIds, qualifiedDrugIds } from '../chunk/LZWA44KD.js';
|
|
4
|
-
export { adoptFunnelSessionId, fetchFunnelConfig, fetchResumedDraft, funnelSessionId, peekFunnelSessionId, postFunnelEvent, readResumeToken, resetFunnelConfigCache, saveFunnelDraft, stripResumeToken } from '../chunk/
|
|
5
|
-
export { ApiError, SUPPORT_ATTACHMENT_MAX_BYTES, SUPPORT_ATTACHMENT_MIME_TYPES, addressesApi, adminAffiliatesApi, adminApi, affiliateAuthStorageKey, affiliatePortalApi, apexApi, apiFetch, authApi, authStorageKey, captureAffiliateRef, clearAffiliateRef, clearAffiliateTokens, clearTokens, getAffiliateTokens, getTokens, membersApi, messagesApi, newIdempotencyKey, onTokensCleared, ordersApi, paymentsApi, productsApi, promoCodesApi, readAffiliateRef, setAffiliateTokens, setTokens, subscriptionsApi, supportApi, usersApi } from '../chunk/
|
|
4
|
+
export { adoptFunnelSessionId, captureAuthHeader, fetchFunnelConfig, fetchResumedDraft, funnelSessionId, peekFunnelSessionId, postFunnelEvent, readResumeToken, resetFunnelConfigCache, saveFunnelDraft, stripResumeToken } from '../chunk/4YUUZ532.js';
|
|
5
|
+
export { ApiError, SUPPORT_ATTACHMENT_MAX_BYTES, SUPPORT_ATTACHMENT_MIME_TYPES, addressesApi, adminAffiliatesApi, adminApi, affiliateAuthStorageKey, affiliatePortalApi, apexApi, apiFetch, authApi, authStorageKey, captureAffiliateRef, clearAffiliateRef, clearAffiliateTokens, clearTokens, getAffiliateTokens, getTokens, membersApi, messagesApi, newIdempotencyKey, onTokensCleared, ordersApi, paymentsApi, productsApi, promoCodesApi, readAffiliateRef, setAffiliateTokens, setTokens, subscriptionsApi, supportApi, usersApi } from '../chunk/ITK5F5AI.js';
|
|
6
6
|
import '../chunk/5XGPFYIJ.js';
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
|
8
8
|
//# sourceMappingURL=index.js.map
|
package/dist/api/index.jsx
CHANGED
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
resetCartConfigCache,
|
|
13
13
|
resetCartId,
|
|
14
14
|
stripCartToken
|
|
15
|
-
} from "../chunk/
|
|
15
|
+
} from "../chunk/GGY7VMZ2.jsx";
|
|
16
16
|
import {
|
|
17
17
|
EmbedApiError,
|
|
18
18
|
EmbedApiError2,
|
|
@@ -23,6 +23,7 @@ import {
|
|
|
23
23
|
} from "../chunk/UZCST66N.jsx";
|
|
24
24
|
import {
|
|
25
25
|
adoptFunnelSessionId,
|
|
26
|
+
captureAuthHeader,
|
|
26
27
|
fetchFunnelConfig,
|
|
27
28
|
fetchResumedDraft,
|
|
28
29
|
funnelSessionId,
|
|
@@ -32,7 +33,7 @@ import {
|
|
|
32
33
|
resetFunnelConfigCache,
|
|
33
34
|
saveFunnelDraft,
|
|
34
35
|
stripResumeToken
|
|
35
|
-
} from "../chunk/
|
|
36
|
+
} from "../chunk/Z2CR6WKF.jsx";
|
|
36
37
|
import {
|
|
37
38
|
ApiError,
|
|
38
39
|
SUPPORT_ATTACHMENT_MAX_BYTES,
|
|
@@ -66,7 +67,7 @@ import {
|
|
|
66
67
|
subscriptionsApi,
|
|
67
68
|
supportApi,
|
|
68
69
|
usersApi
|
|
69
|
-
} from "../chunk/
|
|
70
|
+
} from "../chunk/B5RBZKAK.jsx";
|
|
70
71
|
import "../chunk/LDZIUFDM.jsx";
|
|
71
72
|
export {
|
|
72
73
|
EmbedApiError2 as ApexV2ApiError,
|
|
@@ -86,6 +87,7 @@ export {
|
|
|
86
87
|
authApi,
|
|
87
88
|
authStorageKey,
|
|
88
89
|
captureAffiliateRef,
|
|
90
|
+
captureAuthHeader,
|
|
89
91
|
capturePromoCode,
|
|
90
92
|
cartId,
|
|
91
93
|
clearAffiliateRef,
|
|
@@ -34,11 +34,29 @@ declare function funnelSessionId(): string;
|
|
|
34
34
|
* without conjuring survey sessions on a storefront that never runs one.
|
|
35
35
|
*/
|
|
36
36
|
declare function peekFunnelSessionId(): string | null;
|
|
37
|
+
/**
|
|
38
|
+
* The member's access token, when this browser has one.
|
|
39
|
+
*
|
|
40
|
+
* Read raw and never refreshed: these are fire-and-forget telemetry posts, and
|
|
41
|
+
* a token refresh is a real network round-trip on the unload path. An expired
|
|
42
|
+
* token is not a failure either — the sinks take it with `optionalAuth`, so a
|
|
43
|
+
* stale one simply reads as an anonymous visitor, which is what we had before.
|
|
44
|
+
*/
|
|
45
|
+
declare function captureAuthHeader(): Record<string, string>;
|
|
37
46
|
/**
|
|
38
47
|
* Fire-and-forget event post. `keepalive` lets the request survive a page
|
|
39
48
|
* unload — which is exactly when the `abandoned` event is sent. (This is why
|
|
40
49
|
* it's `fetch` and not `navigator.sendBeacon`: beacons can't carry the
|
|
41
|
-
* X-Tenant-Key header the tenant-scoped mount requires
|
|
50
|
+
* X-Tenant-Key header the tenant-scoped mount requires — nor the bearer token
|
|
51
|
+
* below.)
|
|
52
|
+
*
|
|
53
|
+
* The token identifies a signed-in member to the sink. Without it a member's
|
|
54
|
+
* session is stored anonymously, and the pre-survey email gate — the only
|
|
55
|
+
* other writer of a session's identity — is deliberately never shown to
|
|
56
|
+
* someone already signed in, so their drop-off could never be attributed to
|
|
57
|
+
* them. That is the whole population of a site where the account is created
|
|
58
|
+
* before the questionnaire (savings-program signups, returning members
|
|
59
|
+
* starting a second intake).
|
|
42
60
|
*/
|
|
43
61
|
declare function postFunnelEvent(type: string, data?: Record<string, unknown>): void;
|
|
44
62
|
interface FunnelDraftPayload {
|
|
@@ -136,6 +154,11 @@ interface CartSnapshotLine {
|
|
|
136
154
|
*
|
|
137
155
|
* `keepalive` lets the request survive the page unload that so often IS the
|
|
138
156
|
* abandonment.
|
|
157
|
+
*
|
|
158
|
+
* The bearer token, when there is one, is how a signed-in shopper's cart gets
|
|
159
|
+
* their user id: the endpoint takes identity from the token and never from the
|
|
160
|
+
* body (`optionalAuth`), so omitting it left every logged-in cart anonymous —
|
|
161
|
+
* joinable only by whatever email happened to be attached.
|
|
139
162
|
*/
|
|
140
163
|
declare function postCartSnapshot(params: {
|
|
141
164
|
items: CartSnapshotLine[];
|
|
@@ -186,4 +209,4 @@ declare function readCartToken(): string | null;
|
|
|
186
209
|
*/
|
|
187
210
|
declare function stripCartToken(): void;
|
|
188
211
|
|
|
189
|
-
export { type CartCaptureConfig as C, type FunnelConfig as F, type ResumedCart as R, type CartSnapshotLine as a, type FunnelDraftPayload as b, type ResumedCartLine as c, type ResumedDraft as d, adoptCartId as e, adoptFunnelSessionId as f,
|
|
212
|
+
export { type CartCaptureConfig as C, type FunnelConfig as F, type ResumedCart as R, type CartSnapshotLine as a, type FunnelDraftPayload as b, type ResumedCartLine as c, type ResumedDraft as d, adoptCartId as e, adoptFunnelSessionId as f, captureAuthHeader as g, cartId as h, fetchCartConfig as i, fetchFunnelConfig as j, fetchResumedCart as k, fetchResumedDraft as l, funnelSessionId as m, postCartSnapshot as n, postFunnelEvent as o, peekFunnelSessionId as p, readResumeToken as q, readCartToken as r, resetCartConfigCache as s, resetCartId as t, resetFunnelConfigCache as u, saveFunnelDraft as v, stripCartToken as w, stripResumeToken as x };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { fetchFunnelConfig, postFunnelEvent, readResumeToken, fetchResumedDraft, stripResumeToken, adoptFunnelSessionId, saveFunnelDraft } from './
|
|
2
|
-
import { cart_default, medication_default, auth_default, affiliateAuth_default } from './
|
|
3
|
-
import { newIdempotencyKey, apexApi, usersApi, addressesApi, paymentsApi, subscriptionsApi, membersApi, affiliatePortalApi, ApiError, ordersApi, supportApi, messagesApi, authApi } from './
|
|
1
|
+
import { fetchFunnelConfig, postFunnelEvent, readResumeToken, fetchResumedDraft, stripResumeToken, adoptFunnelSessionId, saveFunnelDraft } from './4YUUZ532.js';
|
|
2
|
+
import { cart_default, medication_default, auth_default, affiliateAuth_default } from './NNTB7KL5.js';
|
|
3
|
+
import { newIdempotencyKey, apexApi, usersApi, addressesApi, paymentsApi, subscriptionsApi, membersApi, affiliatePortalApi, ApiError, ordersApi, supportApi, messagesApi, authApi } from './ITK5F5AI.js';
|
|
4
4
|
import { getConfig } from './5XGPFYIJ.js';
|
|
5
5
|
import { createSignal, onMount, createEffect, onCleanup, createResource } from 'solid-js';
|
|
6
6
|
import { useSurveyV2Flow as useSurveyV2Flow$1 } from '@apextelemed/survey-solid';
|
|
@@ -2897,11 +2897,12 @@ function buildTimeline(o, limit = 200) {
|
|
|
2897
2897
|
});
|
|
2898
2898
|
}
|
|
2899
2899
|
for (const s of o.subscriptions) {
|
|
2900
|
+
const label = s.medicationName || s.medication;
|
|
2900
2901
|
ev.push({
|
|
2901
2902
|
id: `sub-created-${s.id}`,
|
|
2902
2903
|
at: at(s.createdAt),
|
|
2903
2904
|
kind: "subscription",
|
|
2904
|
-
title: `Subscribed${
|
|
2905
|
+
title: `Subscribed${label ? ` to ${label}` : ""}`,
|
|
2905
2906
|
detail: `${dollars(s.amountCents)} every ${s.intervalDays} days`,
|
|
2906
2907
|
tone: "success"
|
|
2907
2908
|
});
|
|
@@ -3890,5 +3891,5 @@ async function uploadPrescriptionPhoto(file) {
|
|
|
3890
3891
|
}
|
|
3891
3892
|
|
|
3892
3893
|
export { ACCOUNT_SOURCE_LABEL, LIFECYCLE_BUCKETS, LIFECYCLE_LABEL, LIFECYCLE_TONE, LIVE_SUBSCRIPTION_STATUSES, TERMINAL_SUBSCRIPTION_STATUSES, US_STATES, US_STATE_OPTIONS, accountSource, availableStateOptions, availableStates, buildRefillView, buildTimeline, buildTrackerView, buildTrackingUrl, captureFunnelEmail, createFunnelTelemetry, deriveAttention, deriveJourney, emailGateAnswered, firstAddressError, fmtDay, formatCalendarDate, formatCardNumber, formatConversationTime, formatCvv, formatEventDate, formatExpiry, formatMessageTime, formatRelativeTime, formatStageDate, hasErrors, hasStateRestrictions, isImageAttachment, isLive, isQuestionVisible, isReconcilable, lifecycleReason, markEmailGateAnswered, normalizeState, primarySubscription, redeemResumeLink, resetResumeRedemption, resolveSurveyV2DrugIntent, stateAvailabilityNote, toTrackerRequest, uploadPrescriptionPhoto, useAddressPair, useAffiliateConversions, useAffiliateDownline, useAffiliateLinks, useAffiliateStats, useCardTokenizer, useCartCheckoutFlow, useCheckoutFlow, useDashboardData, useMemberPortalData, useMessagesThread, useRegisterFlow, useSignupFlow, useSubscribeFlow, useSurveyFlow, useSurveyV2Flow, useUpdatePaymentMethodFlow, validateAddress };
|
|
3893
|
-
//# sourceMappingURL=
|
|
3894
|
-
//# sourceMappingURL=
|
|
3894
|
+
//# sourceMappingURL=4W5ONAFF.js.map
|
|
3895
|
+
//# sourceMappingURL=4W5ONAFF.js.map
|