@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
|
@@ -500,6 +500,10 @@ var authApi = {
|
|
|
500
500
|
},
|
|
501
501
|
resetPassword(params) {
|
|
502
502
|
return post("/auth/reset-password", params, { skipAuth: true });
|
|
503
|
+
},
|
|
504
|
+
/** Accept an emailed admin invite: sets the password and makes the account an admin. */
|
|
505
|
+
acceptAdminInvite(params) {
|
|
506
|
+
return post("/auth/admin-invite/accept", params, { skipAuth: true });
|
|
503
507
|
}
|
|
504
508
|
};
|
|
505
509
|
var apexApi = {
|
|
@@ -976,6 +980,7 @@ var adminProductStrengthMatchesApi = {
|
|
|
976
980
|
return put(strengthMatchesPath(productId), body);
|
|
977
981
|
}
|
|
978
982
|
};
|
|
983
|
+
var ADMIN_ROLES = ["owner", "support", "accounting", "marketing"];
|
|
979
984
|
var adminApi = {
|
|
980
985
|
getDashboard() {
|
|
981
986
|
return apiFetch("/admin/dashboard/stats");
|
|
@@ -1141,6 +1146,32 @@ var adminApi = {
|
|
|
1141
1146
|
saveEmailNotifications(settings) {
|
|
1142
1147
|
return put("/admin/settings/email-notifications", settings);
|
|
1143
1148
|
},
|
|
1149
|
+
// ── Admin roles and team (owners manage the team; `getMe` is open to every admin) ──
|
|
1150
|
+
getMe() {
|
|
1151
|
+
return apiFetch("/admin/me");
|
|
1152
|
+
},
|
|
1153
|
+
listAdminTeam() {
|
|
1154
|
+
return apiFetch("/admin/admins");
|
|
1155
|
+
},
|
|
1156
|
+
/**
|
|
1157
|
+
* The invite links to the backend's own accept page unless `acceptUrl` names
|
|
1158
|
+
* a site's page (the backend adds `?token=…&email=…`).
|
|
1159
|
+
*/
|
|
1160
|
+
inviteAdmin(params) {
|
|
1161
|
+
return post("/admin/admins/invite", params);
|
|
1162
|
+
},
|
|
1163
|
+
setAdminRole(userId, adminRole) {
|
|
1164
|
+
return patch(`/admin/admins/${encodeURIComponent(userId)}`, { adminRole });
|
|
1165
|
+
},
|
|
1166
|
+
removeAdmin(userId) {
|
|
1167
|
+
return del(`/admin/admins/${encodeURIComponent(userId)}`);
|
|
1168
|
+
},
|
|
1169
|
+
updateAdminInvite(inviteId, adminRole) {
|
|
1170
|
+
return patch(`/admin/admins/invites/${encodeURIComponent(inviteId)}`, { adminRole });
|
|
1171
|
+
},
|
|
1172
|
+
cancelAdminInvite(inviteId) {
|
|
1173
|
+
return del(`/admin/admins/invites/${encodeURIComponent(inviteId)}`);
|
|
1174
|
+
},
|
|
1144
1175
|
getSupportChannel() {
|
|
1145
1176
|
return apiFetch("/admin/settings/support-channel");
|
|
1146
1177
|
},
|
|
@@ -1534,6 +1565,6 @@ var affiliatePortalApi = {
|
|
|
1534
1565
|
}
|
|
1535
1566
|
};
|
|
1536
1567
|
|
|
1537
|
-
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 };
|
|
1538
|
-
//# sourceMappingURL=
|
|
1539
|
-
//# sourceMappingURL=
|
|
1568
|
+
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 };
|
|
1569
|
+
//# sourceMappingURL=54ICTHZX.js.map
|
|
1570
|
+
//# sourceMappingURL=54ICTHZX.js.map
|