@apextelemed/partner-core 0.17.0-dev.53 → 0.17.0-dev.55
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 +27 -1
- package/dist/api/index.d.ts +1 -1
- package/dist/api/index.js +3 -3
- package/dist/api/index.jsx +5 -3
- package/dist/chunk/{Z745N7NE.jsx → 2LZ4RMMO.jsx} +1066 -627
- package/dist/chunk/{NQLBWDE3.js → 54ICTHZX.js} +34 -3
- package/dist/chunk/54ICTHZX.js.map +1 -0
- package/dist/chunk/{COIUOQOE.js → 5DNJWMSW.js} +3 -3
- package/dist/chunk/{COIUOQOE.js.map → 5DNJWMSW.js.map} +1 -1
- package/dist/chunk/{FDCDDUB6.js → ERW2WNI6.js} +933 -515
- package/dist/chunk/ERW2WNI6.js.map +1 -0
- package/dist/chunk/{PDK3JMIW.jsx → FAKJL3AD.jsx} +33 -1
- package/dist/chunk/{XGCOWLXF.jsx → KI3RUQTI.jsx} +2 -2
- package/dist/chunk/{XZJASVNG.jsx → KSWWT576.jsx} +5 -5
- package/dist/chunk/{3VUCQNOR.js → L6ZE7Q7C.js} +3 -3
- package/dist/chunk/{3VUCQNOR.js.map → L6ZE7Q7C.js.map} +1 -1
- package/dist/chunk/{OOCYQ4I6.jsx → LON6ZV4S.jsx} +2 -2
- package/dist/chunk/{DETBZTGQ.js → Q7VYJUQC.js} +5 -5
- package/dist/chunk/{DETBZTGQ.js.map → Q7VYJUQC.js.map} +1 -1
- package/dist/chunk/{3VBKKYOR.js → QJAMR6MG.js} +3 -3
- package/dist/chunk/{3VBKKYOR.js.map → QJAMR6MG.js.map} +1 -1
- package/dist/chunk/{PW7F2JMV.jsx → TFELHUFX.jsx} +2 -2
- package/dist/chunk/{JDCV4T6O.js → TKN2GOKS.js} +6 -6
- package/dist/chunk/{JDCV4T6O.js.map → TKN2GOKS.js.map} +1 -1
- package/dist/chunk/{2PME7R6L.jsx → YGKENMTV.jsx} +4 -4
- package/dist/{client-JZfa9Gbp.d.ts → client-CEt_6guF.d.ts} +68 -1
- 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 +2 -2
- package/dist/index/index.js +7 -7
- package/dist/index/index.jsx +11 -7
- package/dist/pages/index.d.ts +31 -3
- package/dist/pages/index.js +5 -5
- package/dist/pages/index.jsx +7 -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/FDCDDUB6.js.map +0 -1
- package/dist/chunk/NQLBWDE3.js.map +0 -1
package/README.md
CHANGED
|
@@ -396,7 +396,7 @@ first), `<CheckoutPage>`, `<CartCheckoutPage>`, `<SignupPage>`,
|
|
|
396
396
|
`<RegisterPage>`, `<SubscribePage>`, `<UpdatePaymentMethod>`.
|
|
397
397
|
|
|
398
398
|
**Auth** — `<ForgotPasswordPage>`, `<ResetPasswordPage>`,
|
|
399
|
-
`<AffiliateForgotPassword>`, `<AffiliateResetPassword>`.
|
|
399
|
+
`<AcceptAdminInvitePage>`, `<AffiliateForgotPassword>`, `<AffiliateResetPassword>`.
|
|
400
400
|
|
|
401
401
|
**Portals** — `<AdminDashboard>`, `<EmailTemplates>`,
|
|
402
402
|
`<PatientDashboardPreview>`, `<MemberPortal>`, `<AffiliatePortal>`,
|
|
@@ -505,6 +505,32 @@ sequence email's link arrives carrying `?fs=…`, and the first `configure()` of
|
|
|
505
505
|
the page load posts it to the backend and takes it off the address bar. Sites
|
|
506
506
|
do nothing for this beyond being on a version that has it.
|
|
507
507
|
|
|
508
|
+
#### Admin roles and the Admins tab
|
|
509
|
+
|
|
510
|
+
Each admin has a role — owner, support agent, accounting or marketing — and
|
|
511
|
+
the backend enforces what each may do. `AdminDashboard` reads it from
|
|
512
|
+
`GET /admin/me` (`adminApi.getMe()`) and offers only the tabs the role can use;
|
|
513
|
+
until it answers, only Dashboard shows. A tab a site routes to directly that
|
|
514
|
+
the role can't use renders "Not available for your role". Against a backend
|
|
515
|
+
without roles every tab shows, as before. The package's own tabs also hide an
|
|
516
|
+
action the role is known to lack (internally, `adminCan` in
|
|
517
|
+
`pages/admin/adminRoleState`).
|
|
518
|
+
|
|
519
|
+
For roles without `patient.rx.read` (accounting, marketing) the backend blanks
|
|
520
|
+
patient drug data — medications, doses, product ids, prescription statuses —
|
|
521
|
+
and marks the response `rxRedacted: true`; components reading those fields
|
|
522
|
+
must tolerate `null`.
|
|
523
|
+
|
|
524
|
+
Owners get the **Admins** tab (`admins`, under Settings): the team with a role
|
|
525
|
+
per person, pending invites, and an invite form that picks the role (marketing
|
|
526
|
+
by default). An invite emails a one-time link to the backend's own accept
|
|
527
|
+
page, so sites need no page or route for it. A site that wants its own passes
|
|
528
|
+
its absolute URL as `adminInviteAcceptUrl` and renders
|
|
529
|
+
`<AcceptAdminInvitePage>` there. A tenant whose admins sign in
|
|
530
|
+
through Apex emails nothing; the tab tells the owner to invite them on Apex
|
|
531
|
+
too, and the chosen role applies at their first sign-in. A site that passes
|
|
532
|
+
`enabledTabs` has to add `'admins'` to see it.
|
|
533
|
+
|
|
508
534
|
#### Customers and the detail-view standard
|
|
509
535
|
|
|
510
536
|
The Customers tab is a customer 360: the list carries a lifecycle bucket per
|
package/dist/api/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as
|
|
1
|
+
export { A as ADMIN_ROLES, a as AddPharmacyBody, b as AddPharmacyDoseMatch, c as AddPharmacyDoseOption, d as AddPharmacyFinding, e as AddPharmacyMatchQuestion, f as AddPharmacyMatchSource, g as AddPharmacyPlan, h as AddPharmacyPrice, i as AddPharmacyResult, j as AddPharmacyStrengthAfter, k as AddPharmacyStrengthBefore, l as AddressVerifyResult, m as AdminApexDrug, n as AdminApexItemStatus, o as AdminBillingAttempt, p as AdminCategory, q as AdminCategoryInput, r as AdminCategoryUpdate, s as AdminCustomer, t as AdminCustomerFacts, u as AdminCustomerFunnel, v as AdminCustomerListParams, w as AdminCustomerOverview, x as AdminCustomerProfile, y as AdminCustomerRequest, z as AdminCustomerRow, B as AdminCustomerSupport, C as AdminCustomerSupportThread, D as AdminDashboardStats, E as AdminInviteResult, F as AdminLifecycle, G as AdminLifecycleBucket, H as AdminListParams, I as AdminMe, J as AdminOffer, K as AdminOfferBase, L as AdminOfferGrant, M as AdminOfferGrantBase, N as AdminOfferInput, O as AdminOrderSummary, P as AdminOrphanReason, Q as AdminOrphanedDosePrice, R as AdminPayment, S as AdminPaymentDetail, T as AdminProduct, U as AdminProductOverlayField, V as AdminProductPharmacy, W as AdminProductStrength, X as AdminPromoCode, Y as AdminPromoCodeInput, Z as AdminRecurringPricePoint, _ as AdminRecurringRevenue, $ as AdminRefundResult, a0 as AdminRole, a1 as AdminSale, a2 as AdminSaleInput, a3 as AdminScheduledRefund, a4 as AdminScheduledRefundProblem, a5 as AdminSubscription, a6 as AdminSubscriptionDetail, a7 as AdminSubscriptionPatch, a8 as AdminSubscriptionWriteResult, a9 as AdminSupportCustomer, aa as AdminSupportStats, ab as AdminSupportThread, ac as AdminTeamInvite, ad as AdminTeamMember, ae as AdminWebhookEvent, af as Affiliate, ag as AffiliateAuthTokens, ah as AffiliateClickRecord, ai as AffiliateConversion, aj as AffiliateDashboardLinks, ak as AffiliateDashboardProfile, al as AffiliateDashboardStats, am as AffiliateDownlineMember, an as AffiliateEarningsBreakdown, ao as AffiliatePaymentMethod, ap as AffiliateProgram, aq as AffiliateRegisterInput, ar as AffiliateRegisterResponse, as as AffiliateSession, at as AffiliateStatsResponse, au as AffiliateStatus, av as AffiliateTrackResponse, aw as ApiError, ax as ApiResponse, ay as AttributionMethod, az as AuthTokens, aA as BillingReminderSettings, aB as CatalogAvailabilityItem, aC as CatalogAvailabilityReason, aD as CatalogAvailabilityResult, aE as CatalogClassification, aF as CatalogConversionChoice, aG as CatalogConversionCommitResult, aH as CatalogConversionDose, aI as CatalogConversionDoseMatch, aJ as CatalogConversionFinding, aK as CatalogConversionPointers, aL as CatalogConversionPrepareResult, aM as CatalogConversionPreview, aN as CatalogConversionRun, aO as CatalogConversionSource, aP as CatalogConversionStage, aQ as CatalogConversionTarget, aR as CatalogConversionUndoOptions, aS as CatalogConversionUndoResult, aT as CatalogDose, aU as CatalogDoseInput, aV as CatalogDoseModel, aW as CatalogDoseSuggestion, aX as CatalogDoseSuggestions, aY as CatalogEquivalentSuggestions, aZ as CatalogFulfillment, a_ as CatalogFulfillmentInput, a$ as CatalogItem, b0 as CatalogItemInput, b1 as CatalogMappableDrug, b2 as CatalogMatrixCell, b3 as CatalogProduct, b4 as CatalogReadiness, b5 as CategoryMetadata, b6 as CheckoutAddress, b7 as CheckoutPayload, b8 as CheckoutResult, b9 as CommissionConfig, ba as CommissionStatus, bb as CompleteSurveyPayload, bc as CreateAffiliatePayload, bd as CreateAffiliateProgramPayload, be as CreateOrderPayload, bf as CreateRequestPayload, bg as CreateSubscriptionPayload, bh as CustomTemplate, bi as CustomTemplateInput, bj as CustomerDiscountConfig, bk as DeliveryInfo, bl as DiscountType, bm as EmailNotificationSettings, bn as EmailTemplatesMap, bo as LoginPayload, bp as MemberOffer, bq as MemberPrescriptionRequest, br as MemberSurveyMode, bs as MemberSurveyResponseSummary, bt as MemberSurveyTranscript, bu as MemberSurveyTranscriptItem, bv as MemberSurveyTranscriptSection, bw as MembersMeResponse, bx as OfferGrantState, by as Order, bz as OrderItemInput, bA as PaginationParams, bB as PaymentCallbackPayload, bC as PaymentInitiatePayload, bD as PaymentType, bE as PendingRenewalSurvey, bF as Placeholder, bG as PlaceholderKind, bH as ProductSaleSummary, bI as ProductStrengthMatches, bJ as PromoValidationResponse, bK as PublicCategory, bL as RegisterAndSubscribePayload, bM as RegisterPayload, bN as RenewalStatus, bO as SUPPORT_ATTACHMENT_MAX_BYTES, bP as SUPPORT_ATTACHMENT_MIME_TYPES, bQ as SelectDrugPayload, bR as SendMessagePayload, bS as SendToPharmacyPayload, bT as StrengthMatchBody, bU as StrengthMatchDoseOption, bV as StrengthMatchRow, bW as SubscriptionPreview, bX as SubscriptionPreviewLine, bY as SubscriptionPreviewPayload, bZ as SupportAttachment, b_ as SupportChannel, b$ as SupportChannelSettings, c0 as SupportMessage, c1 as SupportRealtimeToken, c2 as SupportThread, c3 as SupportThreadCategory, c4 as SupportThreadStatus, c5 as SurveySubmitPayload, c6 as TemplatePlaceholdersMap, c7 as TemplateText, c8 as TenantFeature, c9 as TenantFeatureAccess, ca as TokenTrackName, cb as UpdateAffiliatePayload, cc as UpdateAffiliateProgramPayload, cd as UpdatePaymentMethodPayload, ce as UpdateProfilePayload, cf as User, cg as addressesApi, ch as adminAffiliatesApi, ci as adminApi, cj as adminCatalogApi, ck as adminCatalogConversionApi, cl as adminProductPharmaciesApi, cm as adminProductStrengthMatchesApi, cn as affiliateAuthStorageKey, co as affiliatePortalApi, cp as apexApi, cq as apiFetch, cr as authApi, cs as authStorageKey, ct as catalogApi, cu as clearAffiliateTokens, cv as clearTokens, cw as getAffiliateTokens, cx as getTokens, cy as membersApi, cz as messagesApi, cA as newIdempotencyKey, cB as offersApi, cC as onTokensCleared, cD as ordersApi, cE as paymentsApi, cF as productsApi, cG as promoCodesApi, cH as setAffiliateTokens, cI as setTokens, cJ as subscriptionsApi, cK as supportApi, cL as usersApi } from '../client-CEt_6guF.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
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
|
|
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/L6ZE7Q7C.js';
|
|
3
3
|
export { EmbedApiError2 as ApexV2ApiError, EmbedApiError, createEmbedApiClient, disqualificationReasonText, disqualifiedDrugIds, qualifiedDrugIds } from '../chunk/LZWA44KD.js';
|
|
4
|
-
export { adoptFunnelSessionId, captureAuthHeader, 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, adminCatalogApi, adminCatalogConversionApi, adminProductPharmaciesApi, adminProductStrengthMatchesApi, affiliateAuthStorageKey, affiliatePortalApi, apexApi, apiFetch, authApi, authStorageKey, captureAffiliateRef, catalogApi, clearAffiliateRef, clearAffiliateTokens, clearTokens, getAffiliateTokens, getTokens, membersApi, messagesApi, newIdempotencyKey, offersApi, 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/5DNJWMSW.js';
|
|
5
|
+
export { ADMIN_ROLES, ApiError, SUPPORT_ATTACHMENT_MAX_BYTES, SUPPORT_ATTACHMENT_MIME_TYPES, addressesApi, adminAffiliatesApi, adminApi, adminCatalogApi, adminCatalogConversionApi, adminProductPharmaciesApi, adminProductStrengthMatchesApi, affiliateAuthStorageKey, affiliatePortalApi, apexApi, apiFetch, authApi, authStorageKey, captureAffiliateRef, catalogApi, clearAffiliateRef, clearAffiliateTokens, clearTokens, getAffiliateTokens, getTokens, membersApi, messagesApi, newIdempotencyKey, offersApi, onTokensCleared, ordersApi, paymentsApi, productsApi, promoCodesApi, readAffiliateRef, setAffiliateTokens, setTokens, subscriptionsApi, supportApi, usersApi } from '../chunk/54ICTHZX.js';
|
|
6
6
|
import '../chunk/2IFPDU4D.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/KI3RUQTI.jsx";
|
|
16
16
|
import {
|
|
17
17
|
EmbedApiError,
|
|
18
18
|
EmbedApiError2,
|
|
@@ -33,8 +33,9 @@ import {
|
|
|
33
33
|
resetFunnelConfigCache,
|
|
34
34
|
saveFunnelDraft,
|
|
35
35
|
stripResumeToken
|
|
36
|
-
} from "../chunk/
|
|
36
|
+
} from "../chunk/TFELHUFX.jsx";
|
|
37
37
|
import {
|
|
38
|
+
ADMIN_ROLES,
|
|
38
39
|
ApiError,
|
|
39
40
|
SUPPORT_ATTACHMENT_MAX_BYTES,
|
|
40
41
|
SUPPORT_ATTACHMENT_MIME_TYPES,
|
|
@@ -73,9 +74,10 @@ import {
|
|
|
73
74
|
subscriptionsApi,
|
|
74
75
|
supportApi,
|
|
75
76
|
usersApi
|
|
76
|
-
} from "../chunk/
|
|
77
|
+
} from "../chunk/FAKJL3AD.jsx";
|
|
77
78
|
import "../chunk/QVZ7BRNO.jsx";
|
|
78
79
|
export {
|
|
80
|
+
ADMIN_ROLES,
|
|
79
81
|
EmbedApiError2 as ApexV2ApiError,
|
|
80
82
|
ApiError,
|
|
81
83
|
EmbedApiError,
|