@apextelemed/partner-core 0.3.1 → 0.4.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/README.md +47 -0
- package/dist/api/index.d.ts +1 -1
- package/dist/api/index.js +1 -1
- package/dist/api/index.jsx +1 -1
- package/dist/chunk/{UNAI6NBV.js → 2XJBOTK5.js} +50 -7
- package/dist/chunk/2XJBOTK5.js.map +1 -0
- package/dist/chunk/{D6GCJFQD.js → EIXZJX6R.js} +5 -5
- package/dist/chunk/{D6GCJFQD.js.map → EIXZJX6R.js.map} +1 -1
- package/dist/chunk/{AC7FFU4J.jsx → HM27UGZM.jsx} +2738 -1481
- package/dist/chunk/{J4G52ET6.js → ID67FV6R.js} +4284 -1806
- package/dist/chunk/ID67FV6R.js.map +1 -0
- package/dist/chunk/{DUVW24DM.jsx → MEF3FUQB.jsx} +49 -6
- package/dist/chunk/{M6DZVPYZ.jsx → NYLIUR7O.jsx} +688 -36
- package/dist/chunk/{5RQ4ZIYB.js → OJSQZEB3.js} +678 -38
- package/dist/chunk/OJSQZEB3.js.map +1 -0
- package/dist/chunk/{KMHMT6YP.jsx → STEVQZ6U.jsx} +19 -15
- package/dist/chunk/{2EVGOW2Z.jsx → T6IKS76T.jsx} +4 -4
- package/dist/chunk/{FWUBNK42.js → YHWX4NMV.js} +19 -15
- package/dist/chunk/YHWX4NMV.js.map +1 -0
- package/dist/{client-CWYoMmla.d.ts → client-DUrhrzOG.d.ts} +318 -9
- package/dist/flows/index.d.ts +99 -2
- package/dist/flows/index.js +4 -4
- package/dist/flows/index.jsx +24 -4
- package/dist/index/index.d.ts +2 -2
- package/dist/index/index.js +5 -5
- package/dist/index/index.jsx +25 -5
- package/dist/pages/index.d.ts +35 -2
- package/dist/pages/index.js +4 -4
- package/dist/pages/index.jsx +4 -4
- package/dist/stores/index.d.ts +1 -1
- package/dist/stores/index.js +2 -2
- package/dist/stores/index.jsx +2 -2
- package/dist/theme/admin.css +434 -0
- package/package.json +1 -1
- package/dist/chunk/5RQ4ZIYB.js.map +0 -1
- package/dist/chunk/FWUBNK42.js.map +0 -1
- package/dist/chunk/J4G52ET6.js.map +0 -1
- package/dist/chunk/UNAI6NBV.js.map +0 -1
package/dist/flows/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Accessor, Resource } from 'solid-js';
|
|
2
|
-
import { A as AddressVerifyResult,
|
|
2
|
+
import { A as AddressVerifyResult, a4 as CheckoutAddress, aX as User, ag as DeliveryInfo, aE as RenewalStatus, ax as PendingRenewalSurvey, q as AdminLifecycleBucket, i as AdminCustomerOverview, D as AdminSubscriptionDetail, k as AdminCustomerRequest, a3 as CatalogProduct, N as AffiliateConversion, R as AffiliateDownlineMember, O as AffiliateDashboardLinks, Q as AffiliateDashboardStats, aA as PromoValidationResponse } from '../client-DUrhrzOG.js';
|
|
3
3
|
import { C as CartItem } from '../cart-D4mVX_zx.js';
|
|
4
4
|
export { U as UseSurveyV2FlowOptions, u as useSurveyV2Flow } from '../surveyV2-BgQHK0GE.js';
|
|
5
5
|
import { EmbedEvent } from '@apextelemed/survey-solid';
|
|
@@ -789,6 +789,103 @@ declare function buildRefillView(sub: TrackerSubscription | null | undefined, no
|
|
|
789
789
|
declare function formatStageDate(value?: string | null): string;
|
|
790
790
|
declare function formatEventDate(date: Date | null): string;
|
|
791
791
|
|
|
792
|
+
/**
|
|
793
|
+
* Pure derivations for the admin customer 360 view.
|
|
794
|
+
*
|
|
795
|
+
* The backend decides the lifecycle BUCKET (one rule table drives both the list
|
|
796
|
+
* filter and the label, so they cannot disagree). This module turns bucket +
|
|
797
|
+
* the raw records into what a support rep reads: the one-sentence reason, the
|
|
798
|
+
* "needs attention" list, the journey stepper, and a merged timeline.
|
|
799
|
+
*
|
|
800
|
+
* No JSX, no fetching, `now` injected — same discipline as `tracker.ts`.
|
|
801
|
+
*
|
|
802
|
+
* Honesty rule: a step we have no data for renders as `unknown`, never as
|
|
803
|
+
* "not done". Funnel telemetry and cart recovery are per-tenant features and
|
|
804
|
+
* are OFF for some tenants; the overview says which, and this module respects
|
|
805
|
+
* it.
|
|
806
|
+
*/
|
|
807
|
+
|
|
808
|
+
type Severity = 'danger' | 'warning' | 'info';
|
|
809
|
+
type Tone = 'success' | 'warning' | 'danger' | 'info' | 'neutral';
|
|
810
|
+
/** Fallback labels when the backend omits `lifecycle.label`. */
|
|
811
|
+
declare const LIFECYCLE_LABEL: Record<AdminLifecycleBucket, string>;
|
|
812
|
+
declare const LIFECYCLE_TONE: Record<AdminLifecycleBucket, Tone>;
|
|
813
|
+
declare const LIFECYCLE_BUCKETS: AdminLifecycleBucket[];
|
|
814
|
+
type AccountSource = 'savings' | 'register_and_subscribe' | 'register' | 'unknown';
|
|
815
|
+
/** The subscription a rep cares about: a live one first, else the newest. */
|
|
816
|
+
declare function primarySubscription(subs: AdminSubscriptionDetail[]): AdminSubscriptionDetail | null;
|
|
817
|
+
/**
|
|
818
|
+
* Where the account came from. Savings members carry `savingsMemberId`; a
|
|
819
|
+
* fan-out signup creates the subscription in the same request as the user,
|
|
820
|
+
* so a subscription born within two minutes of the account is that path.
|
|
821
|
+
*/
|
|
822
|
+
declare function accountSource(o: Pick<AdminCustomerOverview, 'customer' | 'subscriptions'>): AccountSource;
|
|
823
|
+
type ReasonInput = Pick<AdminCustomerOverview, 'customer' | 'lifecycle' | 'subscriptions' | 'payments' | 'requests' | 'funnel' | 'tenant'>;
|
|
824
|
+
/**
|
|
825
|
+
* One plain sentence answering "why is this customer in this bucket". This is
|
|
826
|
+
* the line that answers the truemeds question: an account with no subscription
|
|
827
|
+
* says whether the person never completed intake, completed it and never paid,
|
|
828
|
+
* or tried to pay and was declined.
|
|
829
|
+
*/
|
|
830
|
+
declare function lifecycleReason(o: ReasonInput): string;
|
|
831
|
+
type AttentionActionKind = 'resolve_attempt' | 'edit_schedule' | 'cancel_unapproved' | 'open_thread' | 'open_subscription' | 'open_payment' | 'open_request';
|
|
832
|
+
interface AttentionAction {
|
|
833
|
+
kind: AttentionActionKind;
|
|
834
|
+
label: string;
|
|
835
|
+
subscriptionId?: string;
|
|
836
|
+
attemptId?: string;
|
|
837
|
+
threadId?: string;
|
|
838
|
+
paymentId?: string;
|
|
839
|
+
requestId?: string;
|
|
840
|
+
}
|
|
841
|
+
interface AttentionItem {
|
|
842
|
+
id: string;
|
|
843
|
+
severity: Severity;
|
|
844
|
+
title: string;
|
|
845
|
+
detail?: string;
|
|
846
|
+
action?: AttentionAction;
|
|
847
|
+
}
|
|
848
|
+
/**
|
|
849
|
+
* Things a rep should act on, worst first. Every rule names the record it
|
|
850
|
+
* came from so the UI can jump to it. Rules are deliberately conservative:
|
|
851
|
+
* they fire only on states the backend records, never on inference.
|
|
852
|
+
*/
|
|
853
|
+
declare function deriveAttention(o: AdminCustomerOverview, now?: Date): AttentionItem[];
|
|
854
|
+
type JourneyStepKey = 'account' | 'intake' | 'checkout' | 'prescriber' | 'pharmacy' | 'shipped' | 'renewing';
|
|
855
|
+
type JourneyState = 'done' | 'active' | 'blocked' | 'upcoming' | 'unknown';
|
|
856
|
+
interface JourneyStep {
|
|
857
|
+
key: JourneyStepKey;
|
|
858
|
+
label: string;
|
|
859
|
+
state: JourneyState;
|
|
860
|
+
/** ISO timestamp we actually have for this step, or null. */
|
|
861
|
+
date: string | null;
|
|
862
|
+
/** One short line under the label. */
|
|
863
|
+
detail: string | null;
|
|
864
|
+
}
|
|
865
|
+
/**
|
|
866
|
+
* Where the customer is on the account → renewing path. The first non-done
|
|
867
|
+
* step is where they are; `blocked` says why they cannot move; `unknown`
|
|
868
|
+
* says the site does not collect that signal. Only one step is `active`.
|
|
869
|
+
*/
|
|
870
|
+
declare function deriveJourney(o: AdminCustomerOverview): JourneyStep[];
|
|
871
|
+
/** Adapt an overview request to the member-portal tracker input. */
|
|
872
|
+
declare function toTrackerRequest(r: AdminCustomerRequest): TrackerRequest;
|
|
873
|
+
type TimelineKind = 'account' | 'intake' | 'subscription' | 'payment' | 'attempt' | 'request' | 'shipment' | 'support' | 'renewal' | 'cart';
|
|
874
|
+
interface TimelineEvent {
|
|
875
|
+
id: string;
|
|
876
|
+
at: string;
|
|
877
|
+
kind: TimelineKind;
|
|
878
|
+
title: string;
|
|
879
|
+
detail?: string | null;
|
|
880
|
+
tone: Tone;
|
|
881
|
+
}
|
|
882
|
+
/**
|
|
883
|
+
* Every dated record, newest first. Payments and billing attempts both carry
|
|
884
|
+
* money events; attempts are only listed when they failed or are unresolved,
|
|
885
|
+
* since a succeeded attempt is already visible as its payment.
|
|
886
|
+
*/
|
|
887
|
+
declare function buildTimeline(o: AdminCustomerOverview, limit?: number): TimelineEvent[];
|
|
888
|
+
|
|
792
889
|
/**
|
|
793
890
|
* Data source for the customer member portal. Headless (no JSX): the
|
|
794
891
|
* `MemberPortal` page composes its layout on top of this.
|
|
@@ -1367,4 +1464,4 @@ declare function restoreCartFromLink(): Promise<ResumedCart | null>;
|
|
|
1367
1464
|
*/
|
|
1368
1465
|
declare function startCartCapture(opts?: CartCaptureOptions): () => void;
|
|
1369
1466
|
|
|
1370
|
-
export { type AddressErrors, type AddressPair, type AddressValue, type AffiliateConversionsFlow, type AffiliateDownlineFlow, type AffiliateLinksFlow, type AffiliateStatsFlow, type AnswerValue, type CartCaptureOptions, type CartCheckoutFlow, type CartCheckoutOutcome, type CartCheckoutPricing, type CatalogFlow, CatalogProduct, type CategoryColorOpts, type CheckoutFlow, type CheckoutOutcome, type Conversation, DEFAULT_COLOR_PALETTE, type DashboardActivityItem, type DashboardData, type DashboardRxListItem, type DashboardRxStatus, type DashboardSubscription, type DrugResult, type FlatStep, type FulfillmentStage, type FunnelTelemetry, LIVE_SUBSCRIPTION_STATUSES, type MedicationPricing, type MedicationSelectFlow, type MemberPortalData, type MemberPortalRx, type MemberPortalSubscription, type MessagesThread, type PricingBreakdown, type ProductDetailFlow, type PromoPricing, type RefillEvent, type RefillView, type RegisterFlow, type RegisterOutcome, type RequestStatus, type RxRequestStatus, type ShipmentInfo, type SignupFlow, type SignupOutcome, type StageState, type SubscribeFlow, type SubscribeOutcome, type SubscriptionIntakeFlow, type SubscriptionIntakeOutcome, type SurveyFlow, type SurveyOption, type SurveyOutcome, type SurveyQuestion, type SurveyResult, TERMINAL_SUBSCRIPTION_STATUSES, type ThreadMessage, type TrackerRequest, type TrackerRequestStatus, type TrackerSubscription, type TrackerSubscriptionStatus, type TrackerView, type TrackingUrlCarrier, US_STATES, US_STATE_OPTIONS, type UpdatePaymentMethodFlow, type UseAddressPairOptions, type UseCheckoutFlowOptions, type UseMedicationSelectOptions, type UseMessagesThreadOptions, type UseSignupFlowOptions, type UseSubscribeFlowOptions, type UseSubscriptionIntakeFlowOptions, type UseSurveyFlowOptions, type ValidateAddressOptions, type VisibilityCondition, availableStateOptions, availableStates, buildRefillView, buildTrackerView, buildTrackingUrl, captureFunnelEmail, categoryColor, createFunnelTelemetry, emailGateAnswered, formatCardNumber, formatConversationTime, formatCvv, formatEventDate, formatExpiry, formatMessageTime, formatRelativeTime, formatStageDate, hasErrors, isLive, isQuestionVisible, isReconcilable, lowestPrice, lowestSalePrice, markEmailGateAnswered, normalizeState, redeemResumeLink, resetResumeRedemption, restoreCartFromLink, startCartCapture, stateAvailabilityNote, useAddressPair, useAffiliateConversions, useAffiliateDownline, useAffiliateLinks, useAffiliateStats, useCartCheckoutFlow, useCatalog, useCheckoutFlow, useDashboardData, useMedicationSelect, useMemberPortalData, useMessagesThread, useProductDetail, useRegisterFlow, useSignupFlow, useSubscribeFlow, useSubscriptionIntakeFlow, useSurveyFlow, useUpdatePaymentMethodFlow, validateAddress };
|
|
1467
|
+
export { type AccountSource, type AddressErrors, type AddressPair, type AddressValue, type AffiliateConversionsFlow, type AffiliateDownlineFlow, type AffiliateLinksFlow, type AffiliateStatsFlow, type AnswerValue, type AttentionAction, type AttentionActionKind, type AttentionItem, type CartCaptureOptions, type CartCheckoutFlow, type CartCheckoutOutcome, type CartCheckoutPricing, type CatalogFlow, CatalogProduct, type CategoryColorOpts, type CheckoutFlow, type CheckoutOutcome, type Conversation, DEFAULT_COLOR_PALETTE, type DashboardActivityItem, type DashboardData, type DashboardRxListItem, type DashboardRxStatus, type DashboardSubscription, type DrugResult, type FlatStep, type FulfillmentStage, type FunnelTelemetry, type JourneyState, type JourneyStep, type JourneyStepKey, LIFECYCLE_BUCKETS, LIFECYCLE_LABEL, LIFECYCLE_TONE, LIVE_SUBSCRIPTION_STATUSES, type MedicationPricing, type MedicationSelectFlow, type MemberPortalData, type MemberPortalRx, type MemberPortalSubscription, type MessagesThread, type PricingBreakdown, type ProductDetailFlow, type PromoPricing, type RefillEvent, type RefillView, type RegisterFlow, type RegisterOutcome, type RequestStatus, type RxRequestStatus, type Severity, type ShipmentInfo, type SignupFlow, type SignupOutcome, type StageState, 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 UseAddressPairOptions, type UseCheckoutFlowOptions, type UseMedicationSelectOptions, type UseMessagesThreadOptions, type UseSignupFlowOptions, type UseSubscribeFlowOptions, type UseSubscriptionIntakeFlowOptions, type UseSurveyFlowOptions, type ValidateAddressOptions, type VisibilityCondition, accountSource, availableStateOptions, availableStates, buildRefillView, buildTimeline, buildTrackerView, buildTrackingUrl, captureFunnelEmail, categoryColor, createFunnelTelemetry, deriveAttention, deriveJourney, emailGateAnswered, formatCardNumber, formatConversationTime, formatCvv, formatEventDate, formatExpiry, formatMessageTime, formatRelativeTime, formatStageDate, hasErrors, isLive, isQuestionVisible, isReconcilable, lifecycleReason, lowestPrice, lowestSalePrice, markEmailGateAnswered, normalizeState, primarySubscription, redeemResumeLink, resetResumeRedemption, restoreCartFromLink, startCartCapture, stateAvailabilityNote, toTrackerRequest, useAddressPair, useAffiliateConversions, useAffiliateDownline, useAffiliateLinks, useAffiliateStats, useCartCheckoutFlow, useCatalog, useCheckoutFlow, useDashboardData, useMedicationSelect, useMemberPortalData, useMessagesThread, useProductDetail, useRegisterFlow, useSignupFlow, useSubscribeFlow, useSubscriptionIntakeFlow, useSurveyFlow, useUpdatePaymentMethodFlow, validateAddress };
|
package/dist/flows/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { DEFAULT_COLOR_PALETTE, categoryColor, lowestPrice, lowestSalePrice, restoreCartFromLink, startCartCapture, useCatalog, useMedicationSelect, useProductDetail, useSubscriptionIntakeFlow } from '../chunk/
|
|
1
|
+
export { DEFAULT_COLOR_PALETTE, categoryColor, lowestPrice, lowestSalePrice, restoreCartFromLink, startCartCapture, useCatalog, useMedicationSelect, useProductDetail, useSubscriptionIntakeFlow } from '../chunk/EIXZJX6R.js';
|
|
2
2
|
import '../chunk/XMYPS7PT.js';
|
|
3
|
-
export { LIVE_SUBSCRIPTION_STATUSES, TERMINAL_SUBSCRIPTION_STATUSES, US_STATES, US_STATE_OPTIONS, availableStateOptions, availableStates, buildRefillView, buildTrackerView, buildTrackingUrl, captureFunnelEmail, createFunnelTelemetry, emailGateAnswered, formatCardNumber, formatConversationTime, formatCvv, formatEventDate, formatExpiry, formatMessageTime, formatRelativeTime, formatStageDate, hasErrors, isLive, isQuestionVisible, isReconcilable, markEmailGateAnswered, normalizeState, redeemResumeLink, resetResumeRedemption, stateAvailabilityNote, useAddressPair, useAffiliateConversions, useAffiliateDownline, useAffiliateLinks, useAffiliateStats, useCartCheckoutFlow, useCheckoutFlow, useDashboardData, useMemberPortalData, useMessagesThread, useRegisterFlow, useSignupFlow, useSubscribeFlow, useSurveyFlow, useSurveyV2Flow, useUpdatePaymentMethodFlow, validateAddress } from '../chunk/
|
|
3
|
+
export { 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, formatCardNumber, formatConversationTime, formatCvv, formatEventDate, formatExpiry, formatMessageTime, formatRelativeTime, formatStageDate, hasErrors, isLive, isQuestionVisible, isReconcilable, lifecycleReason, markEmailGateAnswered, normalizeState, primarySubscription, redeemResumeLink, resetResumeRedemption, stateAvailabilityNote, toTrackerRequest, useAddressPair, useAffiliateConversions, useAffiliateDownline, useAffiliateLinks, useAffiliateStats, useCartCheckoutFlow, useCheckoutFlow, useDashboardData, useMemberPortalData, useMessagesThread, useRegisterFlow, useSignupFlow, useSubscribeFlow, useSurveyFlow, useSurveyV2Flow, useUpdatePaymentMethodFlow, validateAddress } from '../chunk/OJSQZEB3.js';
|
|
4
4
|
import '../chunk/DS4E7FAI.js';
|
|
5
|
-
import '../chunk/
|
|
6
|
-
import '../chunk/
|
|
5
|
+
import '../chunk/YHWX4NMV.js';
|
|
6
|
+
import '../chunk/2XJBOTK5.js';
|
|
7
7
|
import '../chunk/5XGPFYIJ.js';
|
|
8
8
|
//# sourceMappingURL=index.js.map
|
|
9
9
|
//# sourceMappingURL=index.js.map
|
package/dist/flows/index.jsx
CHANGED
|
@@ -9,20 +9,27 @@ import {
|
|
|
9
9
|
useMedicationSelect,
|
|
10
10
|
useProductDetail,
|
|
11
11
|
useSubscriptionIntakeFlow
|
|
12
|
-
} from "../chunk/
|
|
12
|
+
} from "../chunk/T6IKS76T.jsx";
|
|
13
13
|
import "../chunk/NP4CMOLW.jsx";
|
|
14
14
|
import {
|
|
15
|
+
LIFECYCLE_BUCKETS,
|
|
16
|
+
LIFECYCLE_LABEL,
|
|
17
|
+
LIFECYCLE_TONE,
|
|
15
18
|
LIVE_SUBSCRIPTION_STATUSES,
|
|
16
19
|
TERMINAL_SUBSCRIPTION_STATUSES,
|
|
17
20
|
US_STATES,
|
|
18
21
|
US_STATE_OPTIONS,
|
|
22
|
+
accountSource,
|
|
19
23
|
availableStateOptions,
|
|
20
24
|
availableStates,
|
|
21
25
|
buildRefillView,
|
|
26
|
+
buildTimeline,
|
|
22
27
|
buildTrackerView,
|
|
23
28
|
buildTrackingUrl,
|
|
24
29
|
captureFunnelEmail,
|
|
25
30
|
createFunnelTelemetry,
|
|
31
|
+
deriveAttention,
|
|
32
|
+
deriveJourney,
|
|
26
33
|
emailGateAnswered,
|
|
27
34
|
formatCardNumber,
|
|
28
35
|
formatConversationTime,
|
|
@@ -36,11 +43,14 @@ import {
|
|
|
36
43
|
isLive,
|
|
37
44
|
isQuestionVisible,
|
|
38
45
|
isReconcilable,
|
|
46
|
+
lifecycleReason,
|
|
39
47
|
markEmailGateAnswered,
|
|
40
48
|
normalizeState,
|
|
49
|
+
primarySubscription,
|
|
41
50
|
redeemResumeLink,
|
|
42
51
|
resetResumeRedemption,
|
|
43
52
|
stateAvailabilityNote,
|
|
53
|
+
toTrackerRequest,
|
|
44
54
|
useAddressPair,
|
|
45
55
|
useAffiliateConversions,
|
|
46
56
|
useAffiliateDownline,
|
|
@@ -58,25 +68,32 @@ import {
|
|
|
58
68
|
useSurveyV2Flow,
|
|
59
69
|
useUpdatePaymentMethodFlow,
|
|
60
70
|
validateAddress
|
|
61
|
-
} from "../chunk/
|
|
71
|
+
} from "../chunk/NYLIUR7O.jsx";
|
|
62
72
|
import "../chunk/I46Y2J5W.jsx";
|
|
63
|
-
import "../chunk/
|
|
64
|
-
import "../chunk/
|
|
73
|
+
import "../chunk/STEVQZ6U.jsx";
|
|
74
|
+
import "../chunk/MEF3FUQB.jsx";
|
|
65
75
|
import "../chunk/LDZIUFDM.jsx";
|
|
66
76
|
export {
|
|
67
77
|
DEFAULT_COLOR_PALETTE,
|
|
78
|
+
LIFECYCLE_BUCKETS,
|
|
79
|
+
LIFECYCLE_LABEL,
|
|
80
|
+
LIFECYCLE_TONE,
|
|
68
81
|
LIVE_SUBSCRIPTION_STATUSES,
|
|
69
82
|
TERMINAL_SUBSCRIPTION_STATUSES,
|
|
70
83
|
US_STATES,
|
|
71
84
|
US_STATE_OPTIONS,
|
|
85
|
+
accountSource,
|
|
72
86
|
availableStateOptions,
|
|
73
87
|
availableStates,
|
|
74
88
|
buildRefillView,
|
|
89
|
+
buildTimeline,
|
|
75
90
|
buildTrackerView,
|
|
76
91
|
buildTrackingUrl,
|
|
77
92
|
captureFunnelEmail,
|
|
78
93
|
categoryColor,
|
|
79
94
|
createFunnelTelemetry,
|
|
95
|
+
deriveAttention,
|
|
96
|
+
deriveJourney,
|
|
80
97
|
emailGateAnswered,
|
|
81
98
|
formatCardNumber,
|
|
82
99
|
formatConversationTime,
|
|
@@ -90,15 +107,18 @@ export {
|
|
|
90
107
|
isLive,
|
|
91
108
|
isQuestionVisible,
|
|
92
109
|
isReconcilable,
|
|
110
|
+
lifecycleReason,
|
|
93
111
|
lowestPrice,
|
|
94
112
|
lowestSalePrice,
|
|
95
113
|
markEmailGateAnswered,
|
|
96
114
|
normalizeState,
|
|
115
|
+
primarySubscription,
|
|
97
116
|
redeemResumeLink,
|
|
98
117
|
resetResumeRedemption,
|
|
99
118
|
restoreCartFromLink,
|
|
100
119
|
startCartCapture,
|
|
101
120
|
stateAvailabilityNote,
|
|
121
|
+
toTrackerRequest,
|
|
102
122
|
useAddressPair,
|
|
103
123
|
useAffiliateConversions,
|
|
104
124
|
useAffiliateDownline,
|
package/dist/index/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
export { PortalConfig, configure, getConfig } from '../config/index.js';
|
|
2
2
|
export { BannerProps, BannerVariant, ButtonProps, ButtonSize, ButtonVariant, CardProps, CheckboxGroupProps, ChoiceOption, HeadingProps, Primitives, PrimitivesProvider, RadioGroupProps, SelectOption, SelectProps, SpinnerProps, Status, StatusPillProps, StepIndicatorProps, TextFieldProps, TextareaProps, usePrimitives } from '../primitives/index.js';
|
|
3
3
|
export { defaultPrimitives } from '../primitives/default/index.js';
|
|
4
|
-
export { A as AddressVerifyResult, a as AdminApexDrug, b as
|
|
4
|
+
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-DUrhrzOG.js';
|
|
5
5
|
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';
|
|
6
6
|
export { captureAffiliateRef, capturePromoCode, clearAffiliateRef, clearPromoCode, readAffiliateRef, readPromoCode } from '../api/index.js';
|
|
7
7
|
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 cartId, h as fetchCartConfig, i as fetchFunnelConfig, j as fetchResumedCart, k as fetchResumedDraft, l as funnelSessionId, p as peekFunnelSessionId, m as postCartSnapshot, n as postFunnelEvent, r as readCartToken, o as readResumeToken, q as resetCartConfigCache, s as resetCartId, t as resetFunnelConfigCache, u as saveFunnelDraft, v as stripCartToken, w as stripResumeToken } from '../cart-CBH8Em8f.js';
|
|
8
8
|
export { MedicationSelection, affiliateAuthStore, authStore, medicationStore } from '../stores/index.js';
|
|
9
9
|
export { A as AppliedPromoCode, C as CartItem, c as cartStore } from '../cart-D4mVX_zx.js';
|
|
10
10
|
import { AddressPair } from '../flows/index.js';
|
|
11
|
-
export { AddressErrors, AddressValue, AffiliateConversionsFlow, AffiliateDownlineFlow, AffiliateLinksFlow, AffiliateStatsFlow, AnswerValue, CartCaptureOptions, CartCheckoutFlow, CartCheckoutOutcome, CartCheckoutPricing, CatalogFlow, CategoryColorOpts, CheckoutFlow, CheckoutOutcome, Conversation, DEFAULT_COLOR_PALETTE, DashboardActivityItem, DashboardData, DashboardRxListItem, DashboardRxStatus, DashboardSubscription, DrugResult, FlatStep, FulfillmentStage, FunnelTelemetry, LIVE_SUBSCRIPTION_STATUSES, MedicationPricing, MedicationSelectFlow, MemberPortalData, MemberPortalRx, MemberPortalSubscription, MessagesThread, PricingBreakdown, ProductDetailFlow, PromoPricing, RefillEvent, RefillView, RegisterFlow, RegisterOutcome, RequestStatus, RxRequestStatus, ShipmentInfo, SignupFlow, SignupOutcome, StageState, SubscribeFlow, SubscribeOutcome, SubscriptionIntakeFlow, SubscriptionIntakeOutcome, SurveyFlow, SurveyOption, SurveyOutcome, SurveyQuestion, SurveyResult, TERMINAL_SUBSCRIPTION_STATUSES, ThreadMessage, TrackerRequest, TrackerRequestStatus, TrackerSubscription, TrackerSubscriptionStatus, TrackerView, TrackingUrlCarrier, US_STATES, US_STATE_OPTIONS, UpdatePaymentMethodFlow, UseAddressPairOptions, UseCheckoutFlowOptions, UseMedicationSelectOptions, UseMessagesThreadOptions, UseSignupFlowOptions, UseSubscribeFlowOptions, UseSubscriptionIntakeFlowOptions, UseSurveyFlowOptions, ValidateAddressOptions, VisibilityCondition, availableStateOptions, availableStates, buildRefillView, buildTrackerView, buildTrackingUrl, captureFunnelEmail, categoryColor, createFunnelTelemetry, emailGateAnswered, formatCardNumber, formatConversationTime, formatCvv, formatEventDate, formatExpiry, formatMessageTime, formatRelativeTime, formatStageDate, hasErrors, isLive, isQuestionVisible, isReconcilable, lowestPrice, lowestSalePrice, markEmailGateAnswered, normalizeState, redeemResumeLink, resetResumeRedemption, restoreCartFromLink, startCartCapture, stateAvailabilityNote, useAddressPair, useAffiliateConversions, useAffiliateDownline, useAffiliateLinks, useAffiliateStats, useCartCheckoutFlow, useCatalog, useCheckoutFlow, useDashboardData, useMedicationSelect, useMemberPortalData, useMessagesThread, useProductDetail, useRegisterFlow, useSignupFlow, useSubscribeFlow, useSubscriptionIntakeFlow, useSurveyFlow, useUpdatePaymentMethodFlow, validateAddress } from '../flows/index.js';
|
|
11
|
+
export { AccountSource, AddressErrors, AddressValue, AffiliateConversionsFlow, AffiliateDownlineFlow, AffiliateLinksFlow, AffiliateStatsFlow, AnswerValue, AttentionAction, AttentionActionKind, AttentionItem, CartCaptureOptions, CartCheckoutFlow, CartCheckoutOutcome, CartCheckoutPricing, CatalogFlow, CategoryColorOpts, CheckoutFlow, CheckoutOutcome, Conversation, DEFAULT_COLOR_PALETTE, DashboardActivityItem, DashboardData, DashboardRxListItem, DashboardRxStatus, DashboardSubscription, DrugResult, FlatStep, FulfillmentStage, FunnelTelemetry, JourneyState, JourneyStep, JourneyStepKey, LIFECYCLE_BUCKETS, LIFECYCLE_LABEL, LIFECYCLE_TONE, LIVE_SUBSCRIPTION_STATUSES, MedicationPricing, MedicationSelectFlow, MemberPortalData, MemberPortalRx, MemberPortalSubscription, MessagesThread, PricingBreakdown, ProductDetailFlow, PromoPricing, RefillEvent, RefillView, RegisterFlow, RegisterOutcome, RequestStatus, RxRequestStatus, Severity, ShipmentInfo, SignupFlow, SignupOutcome, StageState, SubscribeFlow, SubscribeOutcome, SubscriptionIntakeFlow, SubscriptionIntakeOutcome, SurveyFlow, SurveyOption, SurveyOutcome, SurveyQuestion, SurveyResult, TERMINAL_SUBSCRIPTION_STATUSES, ThreadMessage, TimelineEvent, TimelineKind, Tone, TrackerRequest, TrackerRequestStatus, TrackerSubscription, TrackerSubscriptionStatus, TrackerView, TrackingUrlCarrier, US_STATES, US_STATE_OPTIONS, UpdatePaymentMethodFlow, UseAddressPairOptions, UseCheckoutFlowOptions, UseMedicationSelectOptions, UseMessagesThreadOptions, UseSignupFlowOptions, UseSubscribeFlowOptions, UseSubscriptionIntakeFlowOptions, UseSurveyFlowOptions, ValidateAddressOptions, VisibilityCondition, accountSource, availableStateOptions, availableStates, buildRefillView, buildTimeline, buildTrackerView, buildTrackingUrl, captureFunnelEmail, categoryColor, createFunnelTelemetry, deriveAttention, deriveJourney, emailGateAnswered, formatCardNumber, formatConversationTime, formatCvv, formatEventDate, formatExpiry, formatMessageTime, formatRelativeTime, formatStageDate, hasErrors, isLive, isQuestionVisible, isReconcilable, lifecycleReason, lowestPrice, lowestSalePrice, markEmailGateAnswered, normalizeState, primarySubscription, redeemResumeLink, resetResumeRedemption, restoreCartFromLink, startCartCapture, stateAvailabilityNote, toTrackerRequest, useAddressPair, useAffiliateConversions, useAffiliateDownline, useAffiliateLinks, useAffiliateStats, useCartCheckoutFlow, useCatalog, useCheckoutFlow, useDashboardData, useMedicationSelect, useMemberPortalData, useMessagesThread, useProductDetail, useRegisterFlow, useSignupFlow, useSubscribeFlow, useSubscriptionIntakeFlow, useSurveyFlow, useUpdatePaymentMethodFlow, validateAddress } from '../flows/index.js';
|
|
12
12
|
export { U as UseSurveyV2FlowOptions, u as useSurveyV2Flow } from '../surveyV2-BgQHK0GE.js';
|
|
13
13
|
export { AdminAuthAdapter, AdminDashboard, AdminDashboardProps, AdminTab, AdminTabGroup, AdminToast, AffiliateAuthAdapter, AffiliateForgotPassword, AffiliateForgotPasswordProps, AffiliateLogin, AffiliateLoginProps, AffiliatePortal, AffiliatePortalProps, AffiliatePortalTab, AffiliateRegister, AffiliateRegisterProps, AffiliateResetPassword, AffiliateResetPasswordProps, AffiliateSubTab, AffiliatesProps, CartCheckoutPage, CartCheckoutPageProps, CheckoutPage, CheckoutPageProps, EmailTemplates, ForgotPasswordPage, ForgotPasswordPageProps, LegalLink, MedicationGuideContent, MedicationGuideResolver, MemberAuthAdapter, MemberPortal, MemberPortalBrand, MemberPortalProps, MemberPortalRoutes, PatientDashboardPreview, PatientDashboardPreviewProps, RegisterPage, RegisterPageProps, ResetPasswordPage, ResetPasswordPageProps, SignupPage, SignupPageProps, SubscribePage, SubscribePageProps, SurveyPage, SurveyPageProps, SurveyV2Page, SurveyV2PageProps, UpdatePaymentMethod, UpdatePaymentMethodProps } from '../pages/index.js';
|
|
14
14
|
import { JSX } from 'solid-js';
|
package/dist/index/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import '../chunk/JSHO46VZ.js';
|
|
2
|
-
export { DEFAULT_COLOR_PALETTE, categoryColor, lowestPrice, lowestSalePrice, restoreCartFromLink, startCartCapture, useCatalog, useMedicationSelect, useProductDetail, useSubscriptionIntakeFlow } from '../chunk/
|
|
2
|
+
export { DEFAULT_COLOR_PALETTE, categoryColor, lowestPrice, lowestSalePrice, restoreCartFromLink, startCartCapture, useCatalog, useMedicationSelect, useProductDetail, useSubscriptionIntakeFlow } from '../chunk/EIXZJX6R.js';
|
|
3
3
|
export { adoptCartId, capturePromoCode, cartId, clearPromoCode, fetchCartConfig, fetchResumedCart, postCartSnapshot, readCartToken, readPromoCode, resetCartConfigCache, resetCartId, stripCartToken } from '../chunk/XMYPS7PT.js';
|
|
4
|
-
export { AddressFields, AdminDashboard, AffiliateForgotPassword, AffiliateLogin, AffiliatePortal, AffiliateRegister, AffiliateResetPassword, CartCheckoutPage, CheckoutPage, EmailTemplates, ForgotPasswordPage, MemberPortal, PatientDashboardPreview, RegisterPage, ResetPasswordPage, SignupPage, SubscribePage, SurveyPage, SurveyV2Page, UpdatePaymentMethod } from '../chunk/
|
|
4
|
+
export { AddressFields, AdminDashboard, AffiliateForgotPassword, AffiliateLogin, AffiliatePortal, AffiliateRegister, AffiliateResetPassword, CartCheckoutPage, CheckoutPage, EmailTemplates, ForgotPasswordPage, MemberPortal, PatientDashboardPreview, RegisterPage, ResetPasswordPage, SignupPage, SubscribePage, SurveyPage, SurveyV2Page, UpdatePaymentMethod } from '../chunk/ID67FV6R.js';
|
|
5
5
|
export { EmbedApiError2 as ApexV2ApiError, EmbedApiError, createEmbedApiClient, disqualificationReasonText, disqualifiedDrugIds, qualifiedDrugIds } from '../chunk/LZWA44KD.js';
|
|
6
|
-
export { LIVE_SUBSCRIPTION_STATUSES, TERMINAL_SUBSCRIPTION_STATUSES, US_STATES, US_STATE_OPTIONS, availableStateOptions, availableStates, buildRefillView, buildTrackerView, buildTrackingUrl, captureFunnelEmail, createFunnelTelemetry, emailGateAnswered, formatCardNumber, formatConversationTime, formatCvv, formatEventDate, formatExpiry, formatMessageTime, formatRelativeTime, formatStageDate, hasErrors, isLive, isQuestionVisible, isReconcilable, markEmailGateAnswered, normalizeState, redeemResumeLink, resetResumeRedemption, stateAvailabilityNote, useAddressPair, useAffiliateConversions, useAffiliateDownline, useAffiliateLinks, useAffiliateStats, useCartCheckoutFlow, useCheckoutFlow, useDashboardData, useMemberPortalData, useMessagesThread, useRegisterFlow, useSignupFlow, useSubscribeFlow, useSurveyFlow, useSurveyV2Flow, useUpdatePaymentMethodFlow, validateAddress } from '../chunk/
|
|
6
|
+
export { 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, formatCardNumber, formatConversationTime, formatCvv, formatEventDate, formatExpiry, formatMessageTime, formatRelativeTime, formatStageDate, hasErrors, isLive, isQuestionVisible, isReconcilable, lifecycleReason, markEmailGateAnswered, normalizeState, primarySubscription, redeemResumeLink, resetResumeRedemption, stateAvailabilityNote, toTrackerRequest, useAddressPair, useAffiliateConversions, useAffiliateDownline, useAffiliateLinks, useAffiliateStats, useCartCheckoutFlow, useCheckoutFlow, useDashboardData, useMemberPortalData, useMessagesThread, useRegisterFlow, useSignupFlow, useSubscribeFlow, useSurveyFlow, useSurveyV2Flow, useUpdatePaymentMethodFlow, validateAddress } from '../chunk/OJSQZEB3.js';
|
|
7
7
|
export { adoptFunnelSessionId, fetchFunnelConfig, fetchResumedDraft, funnelSessionId, peekFunnelSessionId, postFunnelEvent, readResumeToken, resetFunnelConfigCache, saveFunnelDraft, stripResumeToken } from '../chunk/DS4E7FAI.js';
|
|
8
8
|
export { PrimitivesProvider, usePrimitives } from '../chunk/67KHO66G.js';
|
|
9
9
|
export { defaultPrimitives } from '../chunk/YJEHCCLY.js';
|
|
10
10
|
import '../chunk/NVRAOAVV.js';
|
|
11
|
-
export { affiliateAuth_default as affiliateAuthStore, auth_default as authStore, cart_default as cartStore, medication_default as medicationStore } from '../chunk/
|
|
12
|
-
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/
|
|
11
|
+
export { affiliateAuth_default as affiliateAuthStore, auth_default as authStore, cart_default as cartStore, medication_default as medicationStore } from '../chunk/YHWX4NMV.js';
|
|
12
|
+
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/2XJBOTK5.js';
|
|
13
13
|
export { configure, getConfig } from '../chunk/5XGPFYIJ.js';
|
|
14
14
|
//# sourceMappingURL=index.js.map
|
|
15
15
|
//# sourceMappingURL=index.js.map
|
package/dist/index/index.jsx
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
useMedicationSelect,
|
|
11
11
|
useProductDetail,
|
|
12
12
|
useSubscriptionIntakeFlow
|
|
13
|
-
} from "../chunk/
|
|
13
|
+
} from "../chunk/T6IKS76T.jsx";
|
|
14
14
|
import {
|
|
15
15
|
adoptCartId,
|
|
16
16
|
capturePromoCode,
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
SurveyPage,
|
|
47
47
|
SurveyV2Page,
|
|
48
48
|
UpdatePaymentMethod
|
|
49
|
-
} from "../chunk/
|
|
49
|
+
} from "../chunk/HM27UGZM.jsx";
|
|
50
50
|
import {
|
|
51
51
|
EmbedApiError,
|
|
52
52
|
EmbedApiError2,
|
|
@@ -56,17 +56,24 @@ import {
|
|
|
56
56
|
qualifiedDrugIds
|
|
57
57
|
} from "../chunk/UZCST66N.jsx";
|
|
58
58
|
import {
|
|
59
|
+
LIFECYCLE_BUCKETS,
|
|
60
|
+
LIFECYCLE_LABEL,
|
|
61
|
+
LIFECYCLE_TONE,
|
|
59
62
|
LIVE_SUBSCRIPTION_STATUSES,
|
|
60
63
|
TERMINAL_SUBSCRIPTION_STATUSES,
|
|
61
64
|
US_STATES,
|
|
62
65
|
US_STATE_OPTIONS,
|
|
66
|
+
accountSource,
|
|
63
67
|
availableStateOptions,
|
|
64
68
|
availableStates,
|
|
65
69
|
buildRefillView,
|
|
70
|
+
buildTimeline,
|
|
66
71
|
buildTrackerView,
|
|
67
72
|
buildTrackingUrl,
|
|
68
73
|
captureFunnelEmail,
|
|
69
74
|
createFunnelTelemetry,
|
|
75
|
+
deriveAttention,
|
|
76
|
+
deriveJourney,
|
|
70
77
|
emailGateAnswered,
|
|
71
78
|
formatCardNumber,
|
|
72
79
|
formatConversationTime,
|
|
@@ -80,11 +87,14 @@ import {
|
|
|
80
87
|
isLive,
|
|
81
88
|
isQuestionVisible,
|
|
82
89
|
isReconcilable,
|
|
90
|
+
lifecycleReason,
|
|
83
91
|
markEmailGateAnswered,
|
|
84
92
|
normalizeState,
|
|
93
|
+
primarySubscription,
|
|
85
94
|
redeemResumeLink,
|
|
86
95
|
resetResumeRedemption,
|
|
87
96
|
stateAvailabilityNote,
|
|
97
|
+
toTrackerRequest,
|
|
88
98
|
useAddressPair,
|
|
89
99
|
useAffiliateConversions,
|
|
90
100
|
useAffiliateDownline,
|
|
@@ -102,7 +112,7 @@ import {
|
|
|
102
112
|
useSurveyV2Flow,
|
|
103
113
|
useUpdatePaymentMethodFlow,
|
|
104
114
|
validateAddress
|
|
105
|
-
} from "../chunk/
|
|
115
|
+
} from "../chunk/NYLIUR7O.jsx";
|
|
106
116
|
import {
|
|
107
117
|
adoptFunnelSessionId,
|
|
108
118
|
fetchFunnelConfig,
|
|
@@ -128,7 +138,7 @@ import {
|
|
|
128
138
|
auth_default,
|
|
129
139
|
cart_default,
|
|
130
140
|
medication_default
|
|
131
|
-
} from "../chunk/
|
|
141
|
+
} from "../chunk/STEVQZ6U.jsx";
|
|
132
142
|
import {
|
|
133
143
|
ApiError,
|
|
134
144
|
SUPPORT_ATTACHMENT_MAX_BYTES,
|
|
@@ -162,7 +172,7 @@ import {
|
|
|
162
172
|
subscriptionsApi,
|
|
163
173
|
supportApi,
|
|
164
174
|
usersApi
|
|
165
|
-
} from "../chunk/
|
|
175
|
+
} from "../chunk/MEF3FUQB.jsx";
|
|
166
176
|
import {
|
|
167
177
|
configure,
|
|
168
178
|
getConfig
|
|
@@ -183,6 +193,9 @@ export {
|
|
|
183
193
|
EmailTemplates,
|
|
184
194
|
EmbedApiError,
|
|
185
195
|
ForgotPasswordPage,
|
|
196
|
+
LIFECYCLE_BUCKETS,
|
|
197
|
+
LIFECYCLE_LABEL,
|
|
198
|
+
LIFECYCLE_TONE,
|
|
186
199
|
LIVE_SUBSCRIPTION_STATUSES,
|
|
187
200
|
MemberPortal,
|
|
188
201
|
PatientDashboardPreview,
|
|
@@ -199,6 +212,7 @@ export {
|
|
|
199
212
|
US_STATES,
|
|
200
213
|
US_STATE_OPTIONS,
|
|
201
214
|
UpdatePaymentMethod,
|
|
215
|
+
accountSource,
|
|
202
216
|
addressesApi,
|
|
203
217
|
adminAffiliatesApi,
|
|
204
218
|
adminApi,
|
|
@@ -215,6 +229,7 @@ export {
|
|
|
215
229
|
availableStateOptions,
|
|
216
230
|
availableStates,
|
|
217
231
|
buildRefillView,
|
|
232
|
+
buildTimeline,
|
|
218
233
|
buildTrackerView,
|
|
219
234
|
buildTrackingUrl,
|
|
220
235
|
captureAffiliateRef,
|
|
@@ -231,6 +246,8 @@ export {
|
|
|
231
246
|
createEmbedApiClient,
|
|
232
247
|
createFunnelTelemetry,
|
|
233
248
|
defaultPrimitives,
|
|
249
|
+
deriveAttention,
|
|
250
|
+
deriveJourney,
|
|
234
251
|
disqualificationReasonText,
|
|
235
252
|
disqualifiedDrugIds,
|
|
236
253
|
emailGateAnswered,
|
|
@@ -254,6 +271,7 @@ export {
|
|
|
254
271
|
isLive,
|
|
255
272
|
isQuestionVisible,
|
|
256
273
|
isReconcilable,
|
|
274
|
+
lifecycleReason,
|
|
257
275
|
lowestPrice,
|
|
258
276
|
lowestSalePrice,
|
|
259
277
|
markEmailGateAnswered,
|
|
@@ -268,6 +286,7 @@ export {
|
|
|
268
286
|
peekFunnelSessionId,
|
|
269
287
|
postCartSnapshot,
|
|
270
288
|
postFunnelEvent,
|
|
289
|
+
primarySubscription,
|
|
271
290
|
productsApi,
|
|
272
291
|
promoCodesApi,
|
|
273
292
|
qualifiedDrugIds,
|
|
@@ -290,6 +309,7 @@ export {
|
|
|
290
309
|
stripResumeToken,
|
|
291
310
|
subscriptionsApi,
|
|
292
311
|
supportApi,
|
|
312
|
+
toTrackerRequest,
|
|
293
313
|
useAddressPair,
|
|
294
314
|
useAffiliateConversions,
|
|
295
315
|
useAffiliateDownline,
|
package/dist/pages/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as solid_js from 'solid-js';
|
|
|
2
2
|
import { JSX } from 'solid-js';
|
|
3
3
|
import { U as UseSurveyV2FlowOptions } from '../surveyV2-BgQHK0GE.js';
|
|
4
4
|
import { V2SubmitResult, PatientInfo, V2DrugResult } from '@apextelemed/survey-core';
|
|
5
|
-
import {
|
|
5
|
+
import { q as AdminLifecycleBucket, v as AdminProduct } from '../client-DUrhrzOG.js';
|
|
6
6
|
import '@apextelemed/survey-solid';
|
|
7
7
|
|
|
8
8
|
interface SurveyPageProps {
|
|
@@ -253,6 +253,30 @@ interface AdminToast {
|
|
|
253
253
|
error(message: string): void;
|
|
254
254
|
}
|
|
255
255
|
|
|
256
|
+
interface CustomersProps {
|
|
257
|
+
/**
|
|
258
|
+
* Absolute URL of the host site's password-reset page. Optional: when the
|
|
259
|
+
* tenant has domains configured, the backend builds the link itself and the
|
|
260
|
+
* "Send password reset" button shows regardless.
|
|
261
|
+
*/
|
|
262
|
+
passwordResetRedirectUrl?: string;
|
|
263
|
+
/** Pre-select a lifecycle filter chip on the list. */
|
|
264
|
+
initialFilter?: AdminLifecycleBucket | null;
|
|
265
|
+
/**
|
|
266
|
+
* Controlled selection, mirroring `AffiliatesProps`: pass `activeUid` (the
|
|
267
|
+
* customer open, or null for the list) and `onSelectCustomer` and the site
|
|
268
|
+
* owns the URL. When omitted the package reads `/admin/customers/<uid>` at
|
|
269
|
+
* mount and keeps the URL in sync itself.
|
|
270
|
+
*/
|
|
271
|
+
activeUid?: string | null;
|
|
272
|
+
onSelectCustomer?: (uid: string | null) => void;
|
|
273
|
+
/**
|
|
274
|
+
* Customer to open on mount when uncontrolled (a jump from another admin
|
|
275
|
+
* tab). Wins over the URL read and is written to the URL like a click.
|
|
276
|
+
*/
|
|
277
|
+
initialUid?: string | null;
|
|
278
|
+
}
|
|
279
|
+
|
|
256
280
|
/**
|
|
257
281
|
* Auth adapter contract for gating the admin dashboard. Sites inject this so
|
|
258
282
|
* the page can render a loading state and fire site-controlled redirects when
|
|
@@ -275,7 +299,9 @@ interface AdminAuthAdapter {
|
|
|
275
299
|
/** Fired when the hydrated user is not an admin. Sites typically navigate to /dashboard. */
|
|
276
300
|
onForbidden?: () => void;
|
|
277
301
|
}
|
|
278
|
-
type AdminTab = 'dashboard' | 'customers' | 'payments'
|
|
302
|
+
type AdminTab = 'dashboard' | 'customers' | 'payments'
|
|
303
|
+
/** @deprecated Subscriptions live in the customer 360; this id renders the Customers tab filtered to active subscribers. */
|
|
304
|
+
| 'subscriptions' | 'products' | 'categories' | 'sales' | 'promo-codes' | 'affiliates' | 'support' | 'webhooks' | 'email-templates' | 'funnel';
|
|
279
305
|
interface AdminTabGroup {
|
|
280
306
|
/** Section header rendered above the items (uppercase, muted). */
|
|
281
307
|
label: string;
|
|
@@ -329,6 +355,13 @@ interface AdminDashboardProps {
|
|
|
329
355
|
* in their router. If omitted, Affiliates manages its own sub-tab state.
|
|
330
356
|
*/
|
|
331
357
|
affiliates?: AffiliatesProps;
|
|
358
|
+
/**
|
|
359
|
+
* Optional controlled selection for the Customers tab + change handler, the
|
|
360
|
+
* same shape as `affiliates`. Lets sites mirror `/admin/customers/<uid>` in
|
|
361
|
+
* their router. If omitted, the Customers tab reads that path itself at
|
|
362
|
+
* mount and keeps it in sync with `history.pushState`.
|
|
363
|
+
*/
|
|
364
|
+
customers?: Pick<CustomersProps, 'activeUid' | 'onSelectCustomer'>;
|
|
332
365
|
/**
|
|
333
366
|
* Optional lookup that returns a partial update to reset a product to a
|
|
334
367
|
* site-specific default. When provided and the lookup returns non-null,
|
package/dist/pages/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { AdminDashboard, AffiliateForgotPassword, AffiliateLogin, AffiliatePortal, AffiliateRegister, AffiliateResetPassword, CartCheckoutPage, CheckoutPage, EmailTemplates, ForgotPasswordPage, MemberPortal, PatientDashboardPreview, RegisterPage, ResetPasswordPage, SignupPage, SubscribePage, SurveyPage, SurveyV2Page, UpdatePaymentMethod } from '../chunk/
|
|
1
|
+
export { AdminDashboard, AffiliateForgotPassword, AffiliateLogin, AffiliatePortal, AffiliateRegister, AffiliateResetPassword, CartCheckoutPage, CheckoutPage, EmailTemplates, ForgotPasswordPage, MemberPortal, PatientDashboardPreview, RegisterPage, ResetPasswordPage, SignupPage, SubscribePage, SurveyPage, SurveyV2Page, UpdatePaymentMethod } from '../chunk/ID67FV6R.js';
|
|
2
2
|
import '../chunk/LZWA44KD.js';
|
|
3
|
-
import '../chunk/
|
|
3
|
+
import '../chunk/OJSQZEB3.js';
|
|
4
4
|
import '../chunk/DS4E7FAI.js';
|
|
5
5
|
import '../chunk/67KHO66G.js';
|
|
6
|
-
import '../chunk/
|
|
7
|
-
import '../chunk/
|
|
6
|
+
import '../chunk/YHWX4NMV.js';
|
|
7
|
+
import '../chunk/2XJBOTK5.js';
|
|
8
8
|
import '../chunk/5XGPFYIJ.js';
|
|
9
9
|
//# sourceMappingURL=index.js.map
|
|
10
10
|
//# sourceMappingURL=index.js.map
|
package/dist/pages/index.jsx
CHANGED
|
@@ -18,13 +18,13 @@ import {
|
|
|
18
18
|
SurveyPage,
|
|
19
19
|
SurveyV2Page,
|
|
20
20
|
UpdatePaymentMethod
|
|
21
|
-
} from "../chunk/
|
|
21
|
+
} from "../chunk/HM27UGZM.jsx";
|
|
22
22
|
import "../chunk/UZCST66N.jsx";
|
|
23
|
-
import "../chunk/
|
|
23
|
+
import "../chunk/NYLIUR7O.jsx";
|
|
24
24
|
import "../chunk/I46Y2J5W.jsx";
|
|
25
25
|
import "../chunk/J63XPQP4.jsx";
|
|
26
|
-
import "../chunk/
|
|
27
|
-
import "../chunk/
|
|
26
|
+
import "../chunk/STEVQZ6U.jsx";
|
|
27
|
+
import "../chunk/MEF3FUQB.jsx";
|
|
28
28
|
import "../chunk/LDZIUFDM.jsx";
|
|
29
29
|
export {
|
|
30
30
|
AdminDashboard,
|
package/dist/stores/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as solid_js from 'solid-js';
|
|
2
|
-
import {
|
|
2
|
+
import { a2 as AuthTokens, aX as User, aD as RegisterPayload, aC as RegisterAndSubscribePayload, L as AffiliateAuthTokens, K as Affiliate, V as AffiliateRegisterInput } from '../client-DUrhrzOG.js';
|
|
3
3
|
export { A as AppliedPromoCode, C as CartItem, c as cartStore } from '../cart-D4mVX_zx.js';
|
|
4
4
|
|
|
5
5
|
declare const authStore: {
|
package/dist/stores/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../chunk/NVRAOAVV.js';
|
|
2
|
-
export { affiliateAuth_default as affiliateAuthStore, auth_default as authStore, cart_default as cartStore, medication_default as medicationStore } from '../chunk/
|
|
3
|
-
import '../chunk/
|
|
2
|
+
export { affiliateAuth_default as affiliateAuthStore, auth_default as authStore, cart_default as cartStore, medication_default as medicationStore } from '../chunk/YHWX4NMV.js';
|
|
3
|
+
import '../chunk/2XJBOTK5.js';
|
|
4
4
|
import '../chunk/5XGPFYIJ.js';
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
package/dist/stores/index.jsx
CHANGED
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
auth_default,
|
|
5
5
|
cart_default,
|
|
6
6
|
medication_default
|
|
7
|
-
} from "../chunk/
|
|
8
|
-
import "../chunk/
|
|
7
|
+
} from "../chunk/STEVQZ6U.jsx";
|
|
8
|
+
import "../chunk/MEF3FUQB.jsx";
|
|
9
9
|
import "../chunk/LDZIUFDM.jsx";
|
|
10
10
|
export {
|
|
11
11
|
affiliateAuth_default as affiliateAuthStore,
|