@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
|
@@ -793,11 +793,36 @@ var adminApi = {
|
|
|
793
793
|
return apiFetch("/admin/dashboard/stats");
|
|
794
794
|
},
|
|
795
795
|
getCustomers(params) {
|
|
796
|
-
|
|
796
|
+
const query = params ? { ...params, facets: params.facets ? 1 : void 0 } : void 0;
|
|
797
|
+
return apiFetch(`/admin/customers${qs(query)}`);
|
|
797
798
|
},
|
|
798
799
|
getCustomer(id) {
|
|
799
800
|
return apiFetch(`/admin/customers/${id}`);
|
|
800
801
|
},
|
|
802
|
+
/** The customer 360: every per-customer record the support view renders, in one call. */
|
|
803
|
+
getCustomerOverview(uid) {
|
|
804
|
+
return apiFetch(`/admin/customers/${uid}/overview`);
|
|
805
|
+
},
|
|
806
|
+
/**
|
|
807
|
+
* Edit a subscription's price and/or schedule. Amount edits are refused (409)
|
|
808
|
+
* for gateway-billed subscriptions — their schedule lives at Authorize.Net.
|
|
809
|
+
*/
|
|
810
|
+
updateSubscription(id, body) {
|
|
811
|
+
return patch(`/admin/subscriptions/${id}`, body);
|
|
812
|
+
},
|
|
813
|
+
pauseSubscription(id) {
|
|
814
|
+
return post(`/admin/subscriptions/${id}/pause`, {});
|
|
815
|
+
},
|
|
816
|
+
resumeSubscription(id) {
|
|
817
|
+
return post(`/admin/subscriptions/${id}/resume`, {});
|
|
818
|
+
},
|
|
819
|
+
/** Close a pending/indeterminate billing attempt so the engine can move on. */
|
|
820
|
+
resolveBillingAttempt(subscriptionId, attemptId, resolution) {
|
|
821
|
+
return post(
|
|
822
|
+
`/admin/subscriptions/${subscriptionId}/billing-attempts/${attemptId}/resolve`,
|
|
823
|
+
{ resolution }
|
|
824
|
+
);
|
|
825
|
+
},
|
|
801
826
|
/**
|
|
802
827
|
* Mint a short-lived (15-min) impersonation token to preview the patient
|
|
803
828
|
* dashboard as this customer, read-only. The returned token authenticates
|
|
@@ -812,16 +837,34 @@ var adminApi = {
|
|
|
812
837
|
updateCustomerEmail(uid, email) {
|
|
813
838
|
return patch(`/admin/customers/${uid}/email`, { email });
|
|
814
839
|
},
|
|
840
|
+
/** Edit the name on the account. Email has its own endpoint (it notifies both addresses). */
|
|
841
|
+
updateCustomerName(uid, name) {
|
|
842
|
+
return patch(`/admin/customers/${uid}`, {
|
|
843
|
+
first_name: name.firstName,
|
|
844
|
+
last_name: name.lastName
|
|
845
|
+
});
|
|
846
|
+
},
|
|
815
847
|
// `redirectUrl` is the absolute URL of the host site's password-reset page;
|
|
816
|
-
// the backend appends `?token=…&email=…` before emailing the customer.
|
|
848
|
+
// the backend appends `?token=…&email=…` before emailing the customer. When
|
|
849
|
+
// omitted, the backend builds the link from the tenant's configured domains
|
|
850
|
+
// (see the overview's `tenant.passwordResetAvailable`).
|
|
817
851
|
sendPasswordReset(uid, redirectUrl) {
|
|
818
|
-
return post(
|
|
852
|
+
return post(
|
|
853
|
+
`/admin/customers/${uid}/send-password-reset`,
|
|
854
|
+
redirectUrl ? { redirectUrl } : {}
|
|
855
|
+
);
|
|
819
856
|
},
|
|
820
857
|
getPayments(params) {
|
|
821
858
|
return apiFetch(`/admin/payments${qs(params)}`);
|
|
822
859
|
},
|
|
823
|
-
|
|
824
|
-
|
|
860
|
+
/**
|
|
861
|
+
* Refund a payment, in full (no amount) or in part. Partial refunds
|
|
862
|
+
* accumulate on the row; the backend answers 409 `unsettled_requires_void`
|
|
863
|
+
* when a partial is requested against a charge the gateway has not settled.
|
|
864
|
+
*/
|
|
865
|
+
refundPayment(id, opts) {
|
|
866
|
+
const body = typeof opts === "number" ? { amountCents: opts } : opts ? { ...opts.amountCents ? { amountCents: opts.amountCents } : {}, ...opts.reason ? { reason: opts.reason } : {} } : {};
|
|
867
|
+
return post(`/admin/payments/${id}/refund`, body);
|
|
825
868
|
},
|
|
826
869
|
// QuickBooks self-service connect (tenant admin).
|
|
827
870
|
quickbooksStatus() {
|
|
@@ -1226,4 +1269,4 @@ export {
|
|
|
1226
1269
|
clearAffiliateTokens,
|
|
1227
1270
|
affiliatePortalApi
|
|
1228
1271
|
};
|
|
1229
|
-
//# sourceMappingURL=
|
|
1272
|
+
//# sourceMappingURL=MEF3FUQB.jsx.map
|