@fluid-app/portal-sdk 0.1.190 → 0.1.191
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/{FluidProvider-ClxrzJDf.mjs → FluidProvider-BPwrZY_X.mjs} +30 -2
- package/dist/FluidProvider-BPwrZY_X.mjs.map +1 -0
- package/dist/{FluidProvider-bZ4dm-UF.cjs → FluidProvider-Ci3tUVMM.cjs} +30 -2
- package/dist/{FluidProvider-bZ4dm-UF.cjs.map → FluidProvider-Ci3tUVMM.cjs.map} +1 -1
- package/dist/{MessagingScreen-CZIMNXUy.cjs → MessagingScreen-B1EUsool.cjs} +2 -2
- package/dist/{MessagingScreen-Bu8KvZrz.mjs → MessagingScreen-CTkPjXmw.mjs} +2 -2
- package/dist/{MessagingScreen-Bu8KvZrz.mjs.map → MessagingScreen-CTkPjXmw.mjs.map} +1 -1
- package/dist/{MessagingScreen-B4OtJ908.cjs → MessagingScreen-uWR24DJL.cjs} +2 -2
- package/dist/{MessagingScreen-B4OtJ908.cjs.map → MessagingScreen-uWR24DJL.cjs.map} +1 -1
- package/dist/{OrdersScreen-CV6umNnp.cjs → OrdersScreen-C0cYz9Ka.cjs} +1 -1
- package/dist/{OrdersScreen-DlCLRqEK.cjs → OrdersScreen-CFTZi2HF.cjs} +2 -2
- package/dist/{OrdersScreen-DlCLRqEK.cjs.map → OrdersScreen-CFTZi2HF.cjs.map} +1 -1
- package/dist/{OrdersScreen-DtO4r_th.mjs → OrdersScreen-CjbzJrnk.mjs} +2 -2
- package/dist/{OrdersScreen-DtO4r_th.mjs.map → OrdersScreen-CjbzJrnk.mjs.map} +1 -1
- package/dist/{PortalContentApiProvider-CH87-pE5.cjs → PortalContentApiProvider-CvH9BEAO.cjs} +2 -2
- package/dist/{PortalContentApiProvider-CH87-pE5.cjs.map → PortalContentApiProvider-CvH9BEAO.cjs.map} +1 -1
- package/dist/{PortalContentApiProvider-DGkP0Vk6.mjs → PortalContentApiProvider-DloCNJGC.mjs} +2 -2
- package/dist/{PortalContentApiProvider-DGkP0Vk6.mjs.map → PortalContentApiProvider-DloCNJGC.mjs.map} +1 -1
- package/dist/{PortalProductsApiProvider-CY6CUq6x.mjs → PortalProductsApiProvider-Bcj1VwsT.mjs} +2 -2
- package/dist/{PortalProductsApiProvider-CY6CUq6x.mjs.map → PortalProductsApiProvider-Bcj1VwsT.mjs.map} +1 -1
- package/dist/{PortalProductsApiProvider-CTLKKRqy.cjs → PortalProductsApiProvider-v_vGVQTY.cjs} +2 -2
- package/dist/{PortalProductsApiProvider-CTLKKRqy.cjs.map → PortalProductsApiProvider-v_vGVQTY.cjs.map} +1 -1
- package/dist/{ProductsScreen-a1Bcvc3U.cjs → ProductsScreen-5K6to2Vm.cjs} +3 -3
- package/dist/{ProductsScreen-a1Bcvc3U.cjs.map → ProductsScreen-5K6to2Vm.cjs.map} +1 -1
- package/dist/{ProductsScreen-DmhLYjZD.cjs → ProductsScreen-BY_eZwLd.cjs} +3 -3
- package/dist/{ProductsScreen-DLrDpYau.mjs → ProductsScreen-h7-hyha0.mjs} +3 -3
- package/dist/{ProductsScreen-DWpcieDU.mjs → ProductsScreen-jk9Iiscy.mjs} +3 -3
- package/dist/{ProductsScreen-DWpcieDU.mjs.map → ProductsScreen-jk9Iiscy.mjs.map} +1 -1
- package/dist/{ProfileScreen-Dx8KAKbU.cjs → ProfileScreen-BF0ngN58.cjs} +2 -2
- package/dist/{ProfileScreen-Dx8KAKbU.cjs.map → ProfileScreen-BF0ngN58.cjs.map} +1 -1
- package/dist/{ProfileScreen-DoCcIaDI.mjs → ProfileScreen-CeqjmmOa.mjs} +2 -2
- package/dist/{ProfileScreen-DoCcIaDI.mjs.map → ProfileScreen-CeqjmmOa.mjs.map} +1 -1
- package/dist/{ProfileScreen-BCDSo1pW.cjs → ProfileScreen-qE9eKIra.cjs} +2 -2
- package/dist/{ShareablesScreen-CXchqCpx.mjs → ShareablesScreen-B56lNgZ7.mjs} +3 -3
- package/dist/{ShareablesScreen-CXchqCpx.mjs.map → ShareablesScreen-B56lNgZ7.mjs.map} +1 -1
- package/dist/{ShareablesScreen-D8tsuynn.cjs → ShareablesScreen-CVrbEivj.cjs} +3 -3
- package/dist/{ShareablesScreen-D8tsuynn.cjs.map → ShareablesScreen-CVrbEivj.cjs.map} +1 -1
- package/dist/{ShareablesScreen-B-OPO65F.cjs → ShareablesScreen-CXrS4anN.cjs} +3 -3
- package/dist/{ShareablesScreen-Bvx2nkO5.mjs → ShareablesScreen-DPoZVeXu.mjs} +3 -3
- package/dist/{ShopScreen-D__IvAj7.mjs → ShopScreen-CTuIZ1oW.mjs} +3 -3
- package/dist/{ShopScreen-D__IvAj7.mjs.map → ShopScreen-CTuIZ1oW.mjs.map} +1 -1
- package/dist/{ShopScreen-CcmvJ3mF.cjs → ShopScreen-CbEH6dtZ.cjs} +3 -3
- package/dist/{ShopScreen-CcmvJ3mF.cjs.map → ShopScreen-CbEH6dtZ.cjs.map} +1 -1
- package/dist/{ShopScreen-D6YHqL2Z.cjs → ShopScreen-DcGMGI3h.cjs} +3 -3
- package/dist/{SubscriptionsScreen-CshfzE9Z.mjs → SubscriptionsScreen-BQ5BoMZO.mjs} +2 -2
- package/dist/{SubscriptionsScreen-CshfzE9Z.mjs.map → SubscriptionsScreen-BQ5BoMZO.mjs.map} +1 -1
- package/dist/{SubscriptionsScreen-C32rbhAZ.cjs → SubscriptionsScreen-BR_YMBYs.cjs} +1 -1
- package/dist/{SubscriptionsScreen-CEiVF1iQ.cjs → SubscriptionsScreen-CzxhX8CT.cjs} +2 -2
- package/dist/{SubscriptionsScreen-CEiVF1iQ.cjs.map → SubscriptionsScreen-CzxhX8CT.cjs.map} +1 -1
- package/dist/index.cjs +24 -24
- package/dist/index.mjs +24 -24
- package/dist/{portal_tenant-DjN8hwJb.cjs → portal_tenant-B2lPHXgm.cjs} +17 -1
- package/dist/portal_tenant-B2lPHXgm.cjs.map +1 -0
- package/dist/{portal_tenant-BrihTN41.mjs → portal_tenant-KkdoWwTr.mjs} +12 -2
- package/dist/portal_tenant-KkdoWwTr.mjs.map +1 -0
- package/package.json +14 -14
- package/dist/FluidProvider-ClxrzJDf.mjs.map +0 -1
- package/dist/portal_tenant-BrihTN41.mjs.map +0 -1
- package/dist/portal_tenant-DjN8hwJb.cjs.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_chunk = require("./chunk-9hOWP6kD.cjs");
|
|
3
|
-
const require_FluidProvider = require("./FluidProvider-
|
|
3
|
+
const require_FluidProvider = require("./FluidProvider-Ci3tUVMM.cjs");
|
|
4
4
|
const require_ScreenRenderer = require("./ScreenRenderer-Cx2KWPVu.cjs");
|
|
5
5
|
require("./account-api-context-DZP9IiGg.cjs");
|
|
6
6
|
require("./store-api-context-D1gZn22Z.cjs");
|
|
@@ -45,8 +45,8 @@ const require_use_account = require("./use-account-C5QI6NSe.cjs");
|
|
|
45
45
|
const require_use_store = require("./use-store-BLcehk1A.cjs");
|
|
46
46
|
const require_CustomersScreen = require("./CustomersScreen-Rf5uucRx.cjs");
|
|
47
47
|
const require_AppNavigationContext = require("./AppNavigationContext-CbK8uCjS.cjs");
|
|
48
|
-
const require_MessagingScreen = require("./MessagingScreen-
|
|
49
|
-
const require_ProfileScreen = require("./ProfileScreen-
|
|
48
|
+
const require_MessagingScreen = require("./MessagingScreen-uWR24DJL.cjs");
|
|
49
|
+
const require_ProfileScreen = require("./ProfileScreen-BF0ngN58.cjs");
|
|
50
50
|
require("./dist-CN_rfvBt.cjs");
|
|
51
51
|
require("./es-C37CagK2.cjs");
|
|
52
52
|
const require_ContactsScreen = require("./ContactsScreen-D2rOJ9Ra.cjs");
|
|
@@ -54,16 +54,16 @@ require("./SearchSort-CUDMZIkf.cjs");
|
|
|
54
54
|
require("./order-status-badge-DvZns1LY.cjs");
|
|
55
55
|
require("./src-DOYe5GAF.cjs");
|
|
56
56
|
require("./dist-Ib6pM5r3.cjs");
|
|
57
|
-
const require_OrdersScreen = require("./OrdersScreen-
|
|
58
|
-
const require_SubscriptionsScreen = require("./SubscriptionsScreen-
|
|
59
|
-
require("./PortalContentApiProvider-
|
|
57
|
+
const require_OrdersScreen = require("./OrdersScreen-CFTZi2HF.cjs");
|
|
58
|
+
const require_SubscriptionsScreen = require("./SubscriptionsScreen-CzxhX8CT.cjs");
|
|
59
|
+
require("./PortalContentApiProvider-CvH9BEAO.cjs");
|
|
60
60
|
require("./dist-Ck1Xpuzh.cjs");
|
|
61
|
-
require("./PortalProductsApiProvider-
|
|
62
|
-
const require_ProductsScreen = require("./ProductsScreen-
|
|
61
|
+
require("./PortalProductsApiProvider-v_vGVQTY.cjs");
|
|
62
|
+
const require_ProductsScreen = require("./ProductsScreen-5K6to2Vm.cjs");
|
|
63
63
|
require("./use-mysite-portal-CJBowMpK.cjs");
|
|
64
64
|
const require_MySiteScreen = require("./MySiteScreen-yiG3VMjV.cjs");
|
|
65
|
-
const require_ShareablesScreen = require("./ShareablesScreen-
|
|
66
|
-
const require_ShopScreen = require("./ShopScreen-
|
|
65
|
+
const require_ShareablesScreen = require("./ShareablesScreen-CVrbEivj.cjs");
|
|
66
|
+
const require_ShopScreen = require("./ShopScreen-CbEH6dtZ.cjs");
|
|
67
67
|
require("./UpgradeScreen-CaYCxSix.cjs");
|
|
68
68
|
require("./AppDownloadScreen-iSpATQsi.cjs");
|
|
69
69
|
let react = require("react");
|
|
@@ -2134,15 +2134,15 @@ function AccountManageLayout({ children }) {
|
|
|
2134
2134
|
}
|
|
2135
2135
|
//#endregion
|
|
2136
2136
|
//#region src/shell/system-screen-map.ts
|
|
2137
|
-
const ProfileScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./ProfileScreen-
|
|
2138
|
-
const OrdersScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./OrdersScreen-
|
|
2139
|
-
const SubscriptionsScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./SubscriptionsScreen-
|
|
2140
|
-
const MessagingScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./MessagingScreen-
|
|
2137
|
+
const ProfileScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./ProfileScreen-qE9eKIra.cjs")).then((m) => ({ default: m.ProfileScreen })));
|
|
2138
|
+
const OrdersScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./OrdersScreen-C0cYz9Ka.cjs")).then((m) => ({ default: m.OrdersScreen })));
|
|
2139
|
+
const SubscriptionsScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./SubscriptionsScreen-BR_YMBYs.cjs")).then((m) => ({ default: m.SubscriptionsScreen })));
|
|
2140
|
+
const MessagingScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./MessagingScreen-B1EUsool.cjs")).then((m) => ({ default: m.MessagingScreen })));
|
|
2141
2141
|
const ContactsScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./ContactsScreen-Euvu6Y8H.cjs")).then((m) => ({ default: m.ContactsScreen })));
|
|
2142
|
-
const ShopScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./ShopScreen-
|
|
2142
|
+
const ShopScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./ShopScreen-DcGMGI3h.cjs")).then((m) => ({ default: m.ShopScreen })));
|
|
2143
2143
|
const CustomersScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./CustomersScreen-Rf5uucRx.cjs")).then((n) => n.CustomersScreen_exports).then((m) => ({ default: m.CustomersScreen })));
|
|
2144
|
-
const ProductsScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./ProductsScreen-
|
|
2145
|
-
const ShareablesScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./ShareablesScreen-
|
|
2144
|
+
const ProductsScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./ProductsScreen-BY_eZwLd.cjs")).then((m) => ({ default: m.ProductsScreen })));
|
|
2145
|
+
const ShareablesScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./ShareablesScreen-CXrS4anN.cjs")).then((m) => ({ default: m.ShareablesScreen })));
|
|
2146
2146
|
const MySiteScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./MySiteScreen-CqwsO0Pz.cjs")).then((m) => ({ default: m.MySiteScreen })));
|
|
2147
2147
|
const UpgradeScreen = (0, react.lazy)(() => Promise.resolve().then(() => require("./UpgradeScreen-DeXrotSh.cjs")).then((m) => ({ default: m.UpgradeScreen })));
|
|
2148
2148
|
const AppDownloadScreen = (0, react.lazy)(() => Promise.resolve().then(() => require("./AppDownloadScreen-iSpATQsi.cjs")).then((n) => n.AppDownloadScreen_exports).then((m) => ({ default: m.AppDownloadScreen })));
|
|
@@ -3629,16 +3629,16 @@ zod.z.object({
|
|
|
3629
3629
|
//#endregion
|
|
3630
3630
|
//#region src/screens/index.ts
|
|
3631
3631
|
const screenPropertySchemas = {
|
|
3632
|
-
ProfileScreen: () => Promise.resolve().then(() => require("./ProfileScreen-
|
|
3633
|
-
MessagingScreen: () => Promise.resolve().then(() => require("./MessagingScreen-
|
|
3632
|
+
ProfileScreen: () => Promise.resolve().then(() => require("./ProfileScreen-qE9eKIra.cjs")).then((m) => m.profileScreenPropertySchema),
|
|
3633
|
+
MessagingScreen: () => Promise.resolve().then(() => require("./MessagingScreen-B1EUsool.cjs")).then((m) => m.messagingScreenPropertySchema),
|
|
3634
3634
|
ContactsScreen: () => Promise.resolve().then(() => require("./ContactsScreen-Euvu6Y8H.cjs")).then((m) => m.contactsScreenPropertySchema),
|
|
3635
|
-
OrdersScreen: () => Promise.resolve().then(() => require("./OrdersScreen-
|
|
3636
|
-
SubscriptionsScreen: () => Promise.resolve().then(() => require("./SubscriptionsScreen-
|
|
3635
|
+
OrdersScreen: () => Promise.resolve().then(() => require("./OrdersScreen-C0cYz9Ka.cjs")).then((m) => m.ordersScreenPropertySchema),
|
|
3636
|
+
SubscriptionsScreen: () => Promise.resolve().then(() => require("./SubscriptionsScreen-BR_YMBYs.cjs")).then((m) => m.subscriptionsScreenPropertySchema),
|
|
3637
3637
|
CustomersScreen: () => Promise.resolve().then(() => require("./CustomersScreen-Rf5uucRx.cjs")).then((n) => n.CustomersScreen_exports).then((m) => m.customersScreenPropertySchema),
|
|
3638
|
-
ProductsScreen: () => Promise.resolve().then(() => require("./ProductsScreen-
|
|
3638
|
+
ProductsScreen: () => Promise.resolve().then(() => require("./ProductsScreen-BY_eZwLd.cjs")).then((m) => m.productsScreenPropertySchema),
|
|
3639
3639
|
MySiteScreen: () => Promise.resolve().then(() => require("./MySiteScreen-CqwsO0Pz.cjs")).then((m) => m.mySiteScreenPropertySchema),
|
|
3640
|
-
ShareablesScreen: () => Promise.resolve().then(() => require("./ShareablesScreen-
|
|
3641
|
-
ShopScreen: () => Promise.resolve().then(() => require("./ShopScreen-
|
|
3640
|
+
ShareablesScreen: () => Promise.resolve().then(() => require("./ShareablesScreen-CXrS4anN.cjs")).then((m) => m.shareablesScreenPropertySchema),
|
|
3641
|
+
ShopScreen: () => Promise.resolve().then(() => require("./ShopScreen-DcGMGI3h.cjs")).then((m) => m.shopScreenPropertySchema),
|
|
3642
3642
|
UpgradeScreen: () => Promise.resolve().then(() => require("./UpgradeScreen-DeXrotSh.cjs")).then((m) => m.upgradeScreenPropertySchema),
|
|
3643
3643
|
AppDownloadScreen: () => Promise.resolve().then(() => require("./AppDownloadScreen-iSpATQsi.cjs")).then((n) => n.AppDownloadScreen_exports).then((m) => m.appDownloadScreenPropertySchema)
|
|
3644
3644
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./es-BeIE2Uzn.mjs";
|
|
2
|
-
import { A as mergeDarkOverrides, C as DEFAULT_THEME_ID, D as deriveDarkVariant, E as generateThemeCSS, F as RADIUS_KEYS, H as createPersister, I as SEMANTIC_COLOR_NAMES, L as SHADE_STEPS, M as resolveTheme, N as FONT_FAMILY_KEYS, O as generateShades, P as FONT_SIZE_KEYS, S as DEFAULT_SPACING, T as getDefaultThemeDefinition, U as deleteDatabase, V as useAppDefinitionApi, _ as serialiseTheme, a as createScreen, b as DEFAULT_FONT_SIZES, c as FluidThemeProvider, d as removeAllThemes, f as removeTheme, g as deserialiseTheme, h as transformThemes, i as widgetPropertySchemas, j as parseColor, k as getForegroundColor, l as useThemeContext, m as getActiveThemeId, n as useFluidContext, o as createWidgetFromShareable, p as buildThemeDefinition, r as DEFAULT_SDK_WIDGET_REGISTRY, s as createWidgetRegistry, t as FluidProvider, u as applyTheme, v as DEFAULT_COLORS, w as DEFAULT_THEME_NAME, x as DEFAULT_RADII, y as DEFAULT_FONT_FAMILIES } from "./FluidProvider-
|
|
2
|
+
import { A as mergeDarkOverrides, C as DEFAULT_THEME_ID, D as deriveDarkVariant, E as generateThemeCSS, F as RADIUS_KEYS, H as createPersister, I as SEMANTIC_COLOR_NAMES, L as SHADE_STEPS, M as resolveTheme, N as FONT_FAMILY_KEYS, O as generateShades, P as FONT_SIZE_KEYS, S as DEFAULT_SPACING, T as getDefaultThemeDefinition, U as deleteDatabase, V as useAppDefinitionApi, _ as serialiseTheme, a as createScreen, b as DEFAULT_FONT_SIZES, c as FluidThemeProvider, d as removeAllThemes, f as removeTheme, g as deserialiseTheme, h as transformThemes, i as widgetPropertySchemas, j as parseColor, k as getForegroundColor, l as useThemeContext, m as getActiveThemeId, n as useFluidContext, o as createWidgetFromShareable, p as buildThemeDefinition, r as DEFAULT_SDK_WIDGET_REGISTRY, s as createWidgetRegistry, t as FluidProvider, u as applyTheme, v as DEFAULT_COLORS, w as DEFAULT_THEME_NAME, x as DEFAULT_RADII, y as DEFAULT_FONT_FAMILIES } from "./FluidProvider-BPwrZY_X.mjs";
|
|
3
3
|
import { a as assertNever, i as assertDefined, n as DataAwareWidget, o as isWidgetType, r as WIDGET_TYPE_NAMES, s as isWidgetTypeName, u as useRegistry } from "./ScreenRenderer-CgSF9HEd.mjs";
|
|
4
4
|
import "./account-api-context-BIZ_aibJ.mjs";
|
|
5
5
|
import "./store-api-context-C1lXT_3d.mjs";
|
|
@@ -20,7 +20,7 @@ import { r as calendarWidgetPropertySchema, t as CalendarWidget } from "./Calend
|
|
|
20
20
|
import { r as cardWidgetPropertySchema, t as CardWidget } from "./CardWidget-BDIscQev.mjs";
|
|
21
21
|
import "./purify.es-Bl6SBkmi.mjs";
|
|
22
22
|
import { C as Skeleton$1, _t as CollapsibleContent, gt as Collapsible, ht as PopoverTrigger, mt as PopoverContent, pn as Button, pt as Popover, vt as CollapsibleTrigger, x as Toaster, xn as cn$1 } from "./src-BTbz18gY.mjs";
|
|
23
|
-
import { a as useMessagingConfig, i as createFluidFileUploader, o as useMessagingAuth, r as messagingScreenPropertySchema, t as MessagingScreen } from "./MessagingScreen-
|
|
23
|
+
import { a as useMessagingConfig, i as createFluidFileUploader, o as useMessagingAuth, r as messagingScreenPropertySchema, t as MessagingScreen } from "./MessagingScreen-CTkPjXmw.mjs";
|
|
24
24
|
import "./scroll-arrows-CMBCAcKb.mjs";
|
|
25
25
|
import "./MediaRenderer-xEZSMhh7.mjs";
|
|
26
26
|
import { r as carouselWidgetPropertySchema, t as CarouselWidget } from "./CarouselWidget-CCmfNNEU.mjs";
|
|
@@ -45,23 +45,23 @@ import { t as useAccount } from "./use-account-Djaaw5GX.mjs";
|
|
|
45
45
|
import { t as useStore } from "./use-store-D1Qv56T2.mjs";
|
|
46
46
|
import { i as CoreScreenPlaceholder, r as customersScreenPropertySchema, t as CustomersScreen } from "./CustomersScreen-BUpR_uUF.mjs";
|
|
47
47
|
import { n as useAppNavigation, t as AppNavigationProvider } from "./AppNavigationContext-7JSRmNdX.mjs";
|
|
48
|
-
import { r as profileScreenPropertySchema, t as ProfileScreen } from "./ProfileScreen-
|
|
48
|
+
import { r as profileScreenPropertySchema, t as ProfileScreen } from "./ProfileScreen-CeqjmmOa.mjs";
|
|
49
49
|
import "./dist-tv6N_HgZ.mjs";
|
|
50
50
|
import { r as contactsScreenPropertySchema, t as ContactsScreen } from "./ContactsScreen-Dw9G8Q3n.mjs";
|
|
51
51
|
import "./SearchSort-TmRTxK16.mjs";
|
|
52
52
|
import "./order-status-badge-DK9GG8H-.mjs";
|
|
53
53
|
import "./src-HUkXWdaF.mjs";
|
|
54
54
|
import "./dist-DhOQb8en.mjs";
|
|
55
|
-
import { r as ordersScreenPropertySchema, t as OrdersScreen } from "./OrdersScreen-
|
|
56
|
-
import { r as subscriptionsScreenPropertySchema, t as SubscriptionsScreen } from "./SubscriptionsScreen-
|
|
57
|
-
import "./PortalContentApiProvider-
|
|
55
|
+
import { r as ordersScreenPropertySchema, t as OrdersScreen } from "./OrdersScreen-CjbzJrnk.mjs";
|
|
56
|
+
import { r as subscriptionsScreenPropertySchema, t as SubscriptionsScreen } from "./SubscriptionsScreen-BQ5BoMZO.mjs";
|
|
57
|
+
import "./PortalContentApiProvider-DloCNJGC.mjs";
|
|
58
58
|
import "./sortable.esm-DFTEWOHN.mjs";
|
|
59
|
-
import "./PortalProductsApiProvider-
|
|
60
|
-
import { n as productsScreenPropertySchema, t as ProductsScreen } from "./ProductsScreen-
|
|
59
|
+
import "./PortalProductsApiProvider-Bcj1VwsT.mjs";
|
|
60
|
+
import { n as productsScreenPropertySchema, t as ProductsScreen } from "./ProductsScreen-jk9Iiscy.mjs";
|
|
61
61
|
import "./use-mysite-portal-axe_PFzR.mjs";
|
|
62
62
|
import { r as mySiteScreenPropertySchema, t as MySiteScreen } from "./MySiteScreen-DCXhJpH3.mjs";
|
|
63
|
-
import { n as shareablesScreenPropertySchema, t as ShareablesScreen } from "./ShareablesScreen-
|
|
64
|
-
import { r as shopScreenPropertySchema, t as ShopScreen } from "./ShopScreen-
|
|
63
|
+
import { n as shareablesScreenPropertySchema, t as ShareablesScreen } from "./ShareablesScreen-B56lNgZ7.mjs";
|
|
64
|
+
import { r as shopScreenPropertySchema, t as ShopScreen } from "./ShopScreen-CTuIZ1oW.mjs";
|
|
65
65
|
import "./UpgradeScreen-CqgkH3zL.mjs";
|
|
66
66
|
import "./AppDownloadScreen-3pysCnaE.mjs";
|
|
67
67
|
import * as React$1 from "react";
|
|
@@ -2132,15 +2132,15 @@ function AccountManageLayout({ children }) {
|
|
|
2132
2132
|
}
|
|
2133
2133
|
//#endregion
|
|
2134
2134
|
//#region src/shell/system-screen-map.ts
|
|
2135
|
-
const ProfileScreen$1 = lazy(() => import("./ProfileScreen-
|
|
2136
|
-
const OrdersScreen$1 = lazy(() => import("./OrdersScreen-
|
|
2137
|
-
const SubscriptionsScreen$1 = lazy(() => import("./SubscriptionsScreen-
|
|
2138
|
-
const MessagingScreen$1 = lazy(() => import("./MessagingScreen-
|
|
2135
|
+
const ProfileScreen$1 = lazy(() => import("./ProfileScreen-CeqjmmOa.mjs").then((n) => n.n).then((m) => ({ default: m.ProfileScreen })));
|
|
2136
|
+
const OrdersScreen$1 = lazy(() => import("./OrdersScreen-CjbzJrnk.mjs").then((n) => n.n).then((m) => ({ default: m.OrdersScreen })));
|
|
2137
|
+
const SubscriptionsScreen$1 = lazy(() => import("./SubscriptionsScreen-BQ5BoMZO.mjs").then((n) => n.n).then((m) => ({ default: m.SubscriptionsScreen })));
|
|
2138
|
+
const MessagingScreen$1 = lazy(() => import("./MessagingScreen-CTkPjXmw.mjs").then((n) => n.n).then((m) => ({ default: m.MessagingScreen })));
|
|
2139
2139
|
const ContactsScreen$1 = lazy(() => import("./ContactsScreen-Dw9G8Q3n.mjs").then((n) => n.n).then((m) => ({ default: m.ContactsScreen })));
|
|
2140
|
-
const ShopScreen$1 = lazy(() => import("./ShopScreen-
|
|
2140
|
+
const ShopScreen$1 = lazy(() => import("./ShopScreen-CTuIZ1oW.mjs").then((n) => n.n).then((m) => ({ default: m.ShopScreen })));
|
|
2141
2141
|
const CustomersScreen$1 = lazy(() => import("./CustomersScreen-BUpR_uUF.mjs").then((n) => n.n).then((m) => ({ default: m.CustomersScreen })));
|
|
2142
|
-
const ProductsScreen$1 = lazy(() => import("./ProductsScreen-
|
|
2143
|
-
const ShareablesScreen$1 = lazy(() => import("./ShareablesScreen-
|
|
2142
|
+
const ProductsScreen$1 = lazy(() => import("./ProductsScreen-h7-hyha0.mjs").then((m) => ({ default: m.ProductsScreen })));
|
|
2143
|
+
const ShareablesScreen$1 = lazy(() => import("./ShareablesScreen-DPoZVeXu.mjs").then((m) => ({ default: m.ShareablesScreen })));
|
|
2144
2144
|
const MySiteScreen$1 = lazy(() => import("./MySiteScreen-DCXhJpH3.mjs").then((n) => n.n).then((m) => ({ default: m.MySiteScreen })));
|
|
2145
2145
|
const UpgradeScreen = lazy(() => import("./UpgradeScreen-CqgkH3zL.mjs").then((n) => n.t).then((m) => ({ default: m.UpgradeScreen })));
|
|
2146
2146
|
const AppDownloadScreen = lazy(() => import("./AppDownloadScreen-3pysCnaE.mjs").then((n) => n.t).then((m) => ({ default: m.AppDownloadScreen })));
|
|
@@ -3627,16 +3627,16 @@ z.object({
|
|
|
3627
3627
|
//#endregion
|
|
3628
3628
|
//#region src/screens/index.ts
|
|
3629
3629
|
const screenPropertySchemas = {
|
|
3630
|
-
ProfileScreen: () => import("./ProfileScreen-
|
|
3631
|
-
MessagingScreen: () => import("./MessagingScreen-
|
|
3630
|
+
ProfileScreen: () => import("./ProfileScreen-CeqjmmOa.mjs").then((n) => n.n).then((m) => m.profileScreenPropertySchema),
|
|
3631
|
+
MessagingScreen: () => import("./MessagingScreen-CTkPjXmw.mjs").then((n) => n.n).then((m) => m.messagingScreenPropertySchema),
|
|
3632
3632
|
ContactsScreen: () => import("./ContactsScreen-Dw9G8Q3n.mjs").then((n) => n.n).then((m) => m.contactsScreenPropertySchema),
|
|
3633
|
-
OrdersScreen: () => import("./OrdersScreen-
|
|
3634
|
-
SubscriptionsScreen: () => import("./SubscriptionsScreen-
|
|
3633
|
+
OrdersScreen: () => import("./OrdersScreen-CjbzJrnk.mjs").then((n) => n.n).then((m) => m.ordersScreenPropertySchema),
|
|
3634
|
+
SubscriptionsScreen: () => import("./SubscriptionsScreen-BQ5BoMZO.mjs").then((n) => n.n).then((m) => m.subscriptionsScreenPropertySchema),
|
|
3635
3635
|
CustomersScreen: () => import("./CustomersScreen-BUpR_uUF.mjs").then((n) => n.n).then((m) => m.customersScreenPropertySchema),
|
|
3636
|
-
ProductsScreen: () => import("./ProductsScreen-
|
|
3636
|
+
ProductsScreen: () => import("./ProductsScreen-h7-hyha0.mjs").then((m) => m.productsScreenPropertySchema),
|
|
3637
3637
|
MySiteScreen: () => import("./MySiteScreen-DCXhJpH3.mjs").then((n) => n.n).then((m) => m.mySiteScreenPropertySchema),
|
|
3638
|
-
ShareablesScreen: () => import("./ShareablesScreen-
|
|
3639
|
-
ShopScreen: () => import("./ShopScreen-
|
|
3638
|
+
ShareablesScreen: () => import("./ShareablesScreen-DPoZVeXu.mjs").then((m) => m.shareablesScreenPropertySchema),
|
|
3639
|
+
ShopScreen: () => import("./ShopScreen-CTuIZ1oW.mjs").then((n) => n.n).then((m) => m.shopScreenPropertySchema),
|
|
3640
3640
|
UpgradeScreen: () => import("./UpgradeScreen-CqgkH3zL.mjs").then((n) => n.t).then((m) => m.upgradeScreenPropertySchema),
|
|
3641
3641
|
AppDownloadScreen: () => import("./AppDownloadScreen-3pysCnaE.mjs").then((n) => n.t).then((m) => m.appDownloadScreenPropertySchema)
|
|
3642
3642
|
};
|
|
@@ -40,6 +40,16 @@ async function app_manifest_show(client) {
|
|
|
40
40
|
return client.get(`/api/app/manifest`);
|
|
41
41
|
}
|
|
42
42
|
/**
|
|
43
|
+
* List calendar events
|
|
44
|
+
* Returns a paginated list of upcoming and ongoing calendar events for the tenant company, optionally filtered by the authenticated member's country when one is set.
|
|
45
|
+
*
|
|
46
|
+
* @param client - Fetch client instance
|
|
47
|
+
* @param [params] - params
|
|
48
|
+
*/
|
|
49
|
+
async function calendar_events_list(client, params) {
|
|
50
|
+
return client.get(`/api/calendar/events`, params);
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
43
53
|
* List orders
|
|
44
54
|
* Returns a paginated list of orders placed through the tenant company, optionally filtered by status.
|
|
45
55
|
*
|
|
@@ -219,6 +229,12 @@ Object.defineProperty(exports, "app_manifest_show", {
|
|
|
219
229
|
return app_manifest_show;
|
|
220
230
|
}
|
|
221
231
|
});
|
|
232
|
+
Object.defineProperty(exports, "calendar_events_list", {
|
|
233
|
+
enumerable: true,
|
|
234
|
+
get: function() {
|
|
235
|
+
return calendar_events_list;
|
|
236
|
+
}
|
|
237
|
+
});
|
|
222
238
|
Object.defineProperty(exports, "enrollment_packs_show", {
|
|
223
239
|
enumerable: true,
|
|
224
240
|
get: function() {
|
|
@@ -322,4 +338,4 @@ Object.defineProperty(exports, "todos_list", {
|
|
|
322
338
|
}
|
|
323
339
|
});
|
|
324
340
|
|
|
325
|
-
//# sourceMappingURL=portal_tenant-
|
|
341
|
+
//# sourceMappingURL=portal_tenant-B2lPHXgm.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"portal_tenant-B2lPHXgm.cjs","names":[],"sources":["../../../api-clients/portal-tenant/src/namespaces/portal_tenant.ts"],"sourcesContent":["/**\n * Generated API client functions for portal_tenant\n *\n * DO NOT EDIT THIS FILE DIRECTLY\n * This file is auto-generated. To update:\n * 1. Update the OpenAPI spec file\n * 2. Run: pnpm generate\n */\n\nimport type { FetchClient } from \"../lib/fetch-client\";\nimport type { operations } from \"../generated/portal-tenant\";\n\n// ============================================================================\n// account\n// ============================================================================\n\n/**\n * Get current account\n * Returns the authenticated member's account profile and company context. This is the primary endpoint the SPA calls to check auth status and display user information.\n *\n * @param client - Fetch client instance\n \n */\nexport async function account_show(\n client: FetchClient,\n): Promise<\n operations[\"account_show\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.get(`/api/account`);\n}\n\n/**\n * Update current account\n * Updates the authenticated member's profile fields such as name, phone, bio, avatar, and social links.\n *\n * @param client - Fetch client instance\n * @param body - body\n */\nexport async function account_update(\n client: FetchClient,\n body: operations[\"account_update\"][\"requestBody\"][\"content\"][\"application/json\"],\n): Promise<\n operations[\"account_update\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.patch(`/api/account`, body);\n}\n\n// ============================================================================\n// store\n// ============================================================================\n\n/**\n * Get store branding\n * Returns the tenant company's store branding including logo, icon, and app store URLs.\n *\n * @param client - Fetch client instance\n \n */\nexport async function store_show(\n client: FetchClient,\n): Promise<\n operations[\"store_show\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.get(`/api/store`);\n}\n\n// ============================================================================\n// app\n// ============================================================================\n\n/**\n * Get the app manifest\n * Returns the rendered manifest for the tenant company's active FluidOS definition, matched against the current user's country, rank, and roles.\n *\n * @param client - Fetch client instance\n \n */\nexport async function app_manifest_show(\n client: FetchClient,\n): Promise<\n operations[\"app_manifest_show\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.get(`/api/app/manifest`);\n}\n\n// ============================================================================\n// calendar_events\n// ============================================================================\n\n/**\n * List calendar events\n * Returns a paginated list of upcoming and ongoing calendar events for the tenant company, optionally filtered by the authenticated member's country when one is set.\n *\n * @param client - Fetch client instance\n * @param [params] - params\n */\nexport async function calendar_events_list(\n client: FetchClient,\n params?: operations[\"calendar_events_list\"][\"parameters\"][\"query\"],\n): Promise<\n operations[\"calendar_events_list\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.get(`/api/calendar/events`, params);\n}\n\n// ============================================================================\n// orders\n// ============================================================================\n\n/**\n * List orders\n * Returns a paginated list of orders placed through the tenant company, optionally filtered by status.\n *\n * @param client - Fetch client instance\n * @param [params] - params\n */\nexport async function orders_list(\n client: FetchClient,\n params?: operations[\"orders_list\"][\"parameters\"][\"query\"],\n): Promise<\n operations[\"orders_list\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.get(`/api/orders`, params);\n}\n\n/**\n * Get an order\n * Returns a single order by token (slug) with its line items.\n *\n * @param client - Fetch client instance\n * @param token - token\n */\nexport async function orders_show(\n client: FetchClient,\n token: string | number,\n): Promise<\n operations[\"orders_show\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.get(`/api/orders/${token}`);\n}\n\n// ============================================================================\n// products\n// ============================================================================\n\n/**\n * List products\n * Returns a paginated list of products available in the tenant company's catalog. Supports sorting and filtering by title, product type, collection, and stock availability.\n *\n * @param client - Fetch client instance\n * @param [params] - params\n */\nexport async function products_list(\n client: FetchClient,\n params?: operations[\"products_list\"][\"parameters\"][\"query\"],\n): Promise<\n operations[\"products_list\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.get(`/api/products`, params);\n}\n\n/**\n * Get a product\n * Returns a single product by ID with its variants.\n *\n * @param client - Fetch client instance\n * @param id - id\n */\nexport async function products_show(\n client: FetchClient,\n id: string | number,\n): Promise<\n operations[\"products_show\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.get(`/api/products/${id}`);\n}\n\n/**\n * Search products\n * Searches the tenant company's product catalog by keyword, returning paginated results.\n *\n * @param client - Fetch client instance\n * @param [params] - params\n */\nexport async function products_search(\n client: FetchClient,\n params?: operations[\"products_search\"][\"parameters\"][\"query\"],\n): Promise<\n operations[\"products_search\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.get(`/api/products/search`, params);\n}\n\n/**\n * List product media\n * Returns all media (images, videos) attached to a product.\n *\n * @param client - Fetch client instance\n * @param id - id\n */\nexport async function products_media_list(\n client: FetchClient,\n id: string | number,\n): Promise<\n operations[\"products_media_list\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.get(`/api/products/${id}/media`);\n}\n\n// ============================================================================\n// enrollment_packs\n// ============================================================================\n\n/**\n * Get an enrollment pack\n * Returns a single active, non-discarded enrollment pack scoped to the current portal tenant's company.\n *\n * @param client - Fetch client instance\n * @param id - id\n */\nexport async function enrollment_packs_show(\n client: FetchClient,\n id: string | number,\n): Promise<\n operations[\"enrollment_packs_show\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.get(`/api/enrollment_packs/${id}`);\n}\n\n// ============================================================================\n// subscriptions\n// ============================================================================\n\n/**\n * List subscriptions\n * Returns a paginated list of the member's active and historical subscriptions.\n *\n * @param client - Fetch client instance\n * @param [params] - params\n */\nexport async function subscriptions_list(\n client: FetchClient,\n params?: operations[\"subscriptions_list\"][\"parameters\"][\"query\"],\n): Promise<\n operations[\"subscriptions_list\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.get(`/api/subscriptions`, params);\n}\n\n/**\n * Get a subscription\n * Returns a single subscription by its token.\n *\n * @param client - Fetch client instance\n * @param token - token\n */\nexport async function subscriptions_show(\n client: FetchClient,\n token: string | number,\n): Promise<\n operations[\"subscriptions_show\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.get(`/api/subscriptions/${token}`);\n}\n\n/**\n * Update a subscription\n * Updates a subscription's default payment method.\n *\n * @param client - Fetch client instance\n * @param token - token\n * @param body - body\n */\nexport async function subscriptions_update(\n client: FetchClient,\n token: string | number,\n body: operations[\"subscriptions_update\"][\"requestBody\"][\"content\"][\"application/json\"],\n): Promise<\n operations[\"subscriptions_update\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.put(`/api/subscriptions/${token}`, body);\n}\n\n/**\n * Pause a subscription\n * Pauses billing on an active subscription.\n *\n * @param client - Fetch client instance\n * @param token - token\n */\nexport async function subscriptions_pause(\n client: FetchClient,\n token: string | number,\n): Promise<\n operations[\"subscriptions_pause\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.post(`/api/subscriptions/${token}/pause`);\n}\n\n/**\n * Resume a subscription\n * Resumes billing on a paused subscription.\n *\n * @param client - Fetch client instance\n * @param token - token\n */\nexport async function subscriptions_resume(\n client: FetchClient,\n token: string | number,\n): Promise<\n operations[\"subscriptions_resume\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.post(`/api/subscriptions/${token}/resume`);\n}\n\n/**\n * Skip next billing cycle\n * Skips the next billing cycle for a subscription without pausing it.\n *\n * @param client - Fetch client instance\n * @param token - token\n */\nexport async function subscriptions_skip(\n client: FetchClient,\n token: string | number,\n): Promise<\n operations[\"subscriptions_skip\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.post(`/api/subscriptions/${token}/skip_next_billing`);\n}\n\n/**\n * Cancel a subscription\n * Cancels an active subscription.\n *\n * @param client - Fetch client instance\n * @param token - token\n */\nexport async function subscriptions_cancel(\n client: FetchClient,\n token: string | number,\n): Promise<\n operations[\"subscriptions_cancel\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.post(`/api/subscriptions/${token}/cancel`);\n}\n\n/**\n * Reactivate a subscription\n * Reactivates a previously cancelled subscription.\n *\n * @param client - Fetch client instance\n * @param token - token\n */\nexport async function subscriptions_reactivate(\n client: FetchClient,\n token: string | number,\n): Promise<\n operations[\"subscriptions_reactivate\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.post(`/api/subscriptions/${token}/reactivate`);\n}\n\n// ============================================================================\n// todos\n// ============================================================================\n\n/**\n * List todos\n * Returns a paginated list of incomplete tasks scoped to the authenticated member. Ordered by due date ascending, tasks without a due date sort last.\n *\n * @param client - Fetch client instance\n * @param [params] - params\n */\nexport async function todos_list(\n client: FetchClient,\n params?: operations[\"todos_list\"][\"parameters\"][\"query\"],\n): Promise<\n operations[\"todos_list\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.get(`/api/todos`, params);\n}\n\n// ============================================================================\n// carts\n// ============================================================================\n\n/**\n * Claim a cart\n * Assigns the logged-in member as buyer_rep on an unclaimed FairShare cart. Any portal member (rep or customer) can claim. Returns an error if the cart has already been claimed.\n *\n * @param client - Fetch client instance\n * @param token - token\n */\nexport async function carts_claim(\n client: FetchClient,\n token: string | number,\n): Promise<\n operations[\"carts_claim\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.post(`/api/carts/${token}/claim`);\n}\n"],"mappings":";;;;;;;;AAuBA,eAAsB,aACpB,QAGA;AACA,QAAO,OAAO,IAAI,eAAe;;;;;;;;;AAUnC,eAAsB,eACpB,QACA,MAGA;AACA,QAAO,OAAO,MAAM,gBAAgB,KAAK;;;;;;;;;AAc3C,eAAsB,WACpB,QAGA;AACA,QAAO,OAAO,IAAI,aAAa;;;;;;;;;AAcjC,eAAsB,kBACpB,QAGA;AACA,QAAO,OAAO,IAAI,oBAAoB;;;;;;;;;AAcxC,eAAsB,qBACpB,QACA,QAGA;AACA,QAAO,OAAO,IAAI,wBAAwB,OAAO;;;;;;;;;AAcnD,eAAsB,YACpB,QACA,QAGA;AACA,QAAO,OAAO,IAAI,eAAe,OAAO;;;;;;;;;AAU1C,eAAsB,YACpB,QACA,OAGA;AACA,QAAO,OAAO,IAAI,eAAe,QAAQ;;;;;;;;;AAc3C,eAAsB,cACpB,QACA,QAGA;AACA,QAAO,OAAO,IAAI,iBAAiB,OAAO;;;;;;;;;AAU5C,eAAsB,cACpB,QACA,IAGA;AACA,QAAO,OAAO,IAAI,iBAAiB,KAAK;;;;;;;;;AAU1C,eAAsB,gBACpB,QACA,QAGA;AACA,QAAO,OAAO,IAAI,wBAAwB,OAAO;;;;;;;;;AAUnD,eAAsB,oBACpB,QACA,IAGA;AACA,QAAO,OAAO,IAAI,iBAAiB,GAAG,QAAQ;;;;;;;;;AAchD,eAAsB,sBACpB,QACA,IAGA;AACA,QAAO,OAAO,IAAI,yBAAyB,KAAK;;;;;;;;;AAclD,eAAsB,mBACpB,QACA,QAGA;AACA,QAAO,OAAO,IAAI,sBAAsB,OAAO;;;;;;;;;AAUjD,eAAsB,mBACpB,QACA,OAGA;AACA,QAAO,OAAO,IAAI,sBAAsB,QAAQ;;;;;;;;;;AAWlD,eAAsB,qBACpB,QACA,OACA,MAGA;AACA,QAAO,OAAO,IAAI,sBAAsB,SAAS,KAAK;;;;;;;;;AAUxD,eAAsB,oBACpB,QACA,OAGA;AACA,QAAO,OAAO,KAAK,sBAAsB,MAAM,QAAQ;;;;;;;;;AAUzD,eAAsB,qBACpB,QACA,OAGA;AACA,QAAO,OAAO,KAAK,sBAAsB,MAAM,SAAS;;;;;;;;;AAU1D,eAAsB,mBACpB,QACA,OAGA;AACA,QAAO,OAAO,KAAK,sBAAsB,MAAM,oBAAoB;;;;;;;;;AAUrE,eAAsB,qBACpB,QACA,OAGA;AACA,QAAO,OAAO,KAAK,sBAAsB,MAAM,SAAS;;;;;;;;;AAU1D,eAAsB,yBACpB,QACA,OAGA;AACA,QAAO,OAAO,KAAK,sBAAsB,MAAM,aAAa;;;;;;;;;AAc9D,eAAsB,WACpB,QACA,QAGA;AACA,QAAO,OAAO,IAAI,cAAc,OAAO"}
|
|
@@ -40,6 +40,16 @@ async function app_manifest_show(client) {
|
|
|
40
40
|
return client.get(`/api/app/manifest`);
|
|
41
41
|
}
|
|
42
42
|
/**
|
|
43
|
+
* List calendar events
|
|
44
|
+
* Returns a paginated list of upcoming and ongoing calendar events for the tenant company, optionally filtered by the authenticated member's country when one is set.
|
|
45
|
+
*
|
|
46
|
+
* @param client - Fetch client instance
|
|
47
|
+
* @param [params] - params
|
|
48
|
+
*/
|
|
49
|
+
async function calendar_events_list(client, params) {
|
|
50
|
+
return client.get(`/api/calendar/events`, params);
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
43
53
|
* List orders
|
|
44
54
|
* Returns a paginated list of orders placed through the tenant company, optionally filtered by status.
|
|
45
55
|
*
|
|
@@ -201,6 +211,6 @@ async function todos_list(client, params) {
|
|
|
201
211
|
return client.get(`/api/todos`, params);
|
|
202
212
|
}
|
|
203
213
|
//#endregion
|
|
204
|
-
export {
|
|
214
|
+
export { subscriptions_resume as _, enrollment_packs_show as a, subscriptions_update as b, products_list as c, products_show as d, store_show as f, subscriptions_reactivate as g, subscriptions_pause as h, calendar_events_list as i, products_media_list as l, subscriptions_list as m, account_update as n, orders_list as o, subscriptions_cancel as p, app_manifest_show as r, orders_show as s, account_show as t, products_search as u, subscriptions_show as v, todos_list as x, subscriptions_skip as y };
|
|
205
215
|
|
|
206
|
-
//# sourceMappingURL=portal_tenant-
|
|
216
|
+
//# sourceMappingURL=portal_tenant-KkdoWwTr.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"portal_tenant-KkdoWwTr.mjs","names":[],"sources":["../../../api-clients/portal-tenant/src/namespaces/portal_tenant.ts"],"sourcesContent":["/**\n * Generated API client functions for portal_tenant\n *\n * DO NOT EDIT THIS FILE DIRECTLY\n * This file is auto-generated. To update:\n * 1. Update the OpenAPI spec file\n * 2. Run: pnpm generate\n */\n\nimport type { FetchClient } from \"../lib/fetch-client\";\nimport type { operations } from \"../generated/portal-tenant\";\n\n// ============================================================================\n// account\n// ============================================================================\n\n/**\n * Get current account\n * Returns the authenticated member's account profile and company context. This is the primary endpoint the SPA calls to check auth status and display user information.\n *\n * @param client - Fetch client instance\n \n */\nexport async function account_show(\n client: FetchClient,\n): Promise<\n operations[\"account_show\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.get(`/api/account`);\n}\n\n/**\n * Update current account\n * Updates the authenticated member's profile fields such as name, phone, bio, avatar, and social links.\n *\n * @param client - Fetch client instance\n * @param body - body\n */\nexport async function account_update(\n client: FetchClient,\n body: operations[\"account_update\"][\"requestBody\"][\"content\"][\"application/json\"],\n): Promise<\n operations[\"account_update\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.patch(`/api/account`, body);\n}\n\n// ============================================================================\n// store\n// ============================================================================\n\n/**\n * Get store branding\n * Returns the tenant company's store branding including logo, icon, and app store URLs.\n *\n * @param client - Fetch client instance\n \n */\nexport async function store_show(\n client: FetchClient,\n): Promise<\n operations[\"store_show\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.get(`/api/store`);\n}\n\n// ============================================================================\n// app\n// ============================================================================\n\n/**\n * Get the app manifest\n * Returns the rendered manifest for the tenant company's active FluidOS definition, matched against the current user's country, rank, and roles.\n *\n * @param client - Fetch client instance\n \n */\nexport async function app_manifest_show(\n client: FetchClient,\n): Promise<\n operations[\"app_manifest_show\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.get(`/api/app/manifest`);\n}\n\n// ============================================================================\n// calendar_events\n// ============================================================================\n\n/**\n * List calendar events\n * Returns a paginated list of upcoming and ongoing calendar events for the tenant company, optionally filtered by the authenticated member's country when one is set.\n *\n * @param client - Fetch client instance\n * @param [params] - params\n */\nexport async function calendar_events_list(\n client: FetchClient,\n params?: operations[\"calendar_events_list\"][\"parameters\"][\"query\"],\n): Promise<\n operations[\"calendar_events_list\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.get(`/api/calendar/events`, params);\n}\n\n// ============================================================================\n// orders\n// ============================================================================\n\n/**\n * List orders\n * Returns a paginated list of orders placed through the tenant company, optionally filtered by status.\n *\n * @param client - Fetch client instance\n * @param [params] - params\n */\nexport async function orders_list(\n client: FetchClient,\n params?: operations[\"orders_list\"][\"parameters\"][\"query\"],\n): Promise<\n operations[\"orders_list\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.get(`/api/orders`, params);\n}\n\n/**\n * Get an order\n * Returns a single order by token (slug) with its line items.\n *\n * @param client - Fetch client instance\n * @param token - token\n */\nexport async function orders_show(\n client: FetchClient,\n token: string | number,\n): Promise<\n operations[\"orders_show\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.get(`/api/orders/${token}`);\n}\n\n// ============================================================================\n// products\n// ============================================================================\n\n/**\n * List products\n * Returns a paginated list of products available in the tenant company's catalog. Supports sorting and filtering by title, product type, collection, and stock availability.\n *\n * @param client - Fetch client instance\n * @param [params] - params\n */\nexport async function products_list(\n client: FetchClient,\n params?: operations[\"products_list\"][\"parameters\"][\"query\"],\n): Promise<\n operations[\"products_list\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.get(`/api/products`, params);\n}\n\n/**\n * Get a product\n * Returns a single product by ID with its variants.\n *\n * @param client - Fetch client instance\n * @param id - id\n */\nexport async function products_show(\n client: FetchClient,\n id: string | number,\n): Promise<\n operations[\"products_show\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.get(`/api/products/${id}`);\n}\n\n/**\n * Search products\n * Searches the tenant company's product catalog by keyword, returning paginated results.\n *\n * @param client - Fetch client instance\n * @param [params] - params\n */\nexport async function products_search(\n client: FetchClient,\n params?: operations[\"products_search\"][\"parameters\"][\"query\"],\n): Promise<\n operations[\"products_search\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.get(`/api/products/search`, params);\n}\n\n/**\n * List product media\n * Returns all media (images, videos) attached to a product.\n *\n * @param client - Fetch client instance\n * @param id - id\n */\nexport async function products_media_list(\n client: FetchClient,\n id: string | number,\n): Promise<\n operations[\"products_media_list\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.get(`/api/products/${id}/media`);\n}\n\n// ============================================================================\n// enrollment_packs\n// ============================================================================\n\n/**\n * Get an enrollment pack\n * Returns a single active, non-discarded enrollment pack scoped to the current portal tenant's company.\n *\n * @param client - Fetch client instance\n * @param id - id\n */\nexport async function enrollment_packs_show(\n client: FetchClient,\n id: string | number,\n): Promise<\n operations[\"enrollment_packs_show\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.get(`/api/enrollment_packs/${id}`);\n}\n\n// ============================================================================\n// subscriptions\n// ============================================================================\n\n/**\n * List subscriptions\n * Returns a paginated list of the member's active and historical subscriptions.\n *\n * @param client - Fetch client instance\n * @param [params] - params\n */\nexport async function subscriptions_list(\n client: FetchClient,\n params?: operations[\"subscriptions_list\"][\"parameters\"][\"query\"],\n): Promise<\n operations[\"subscriptions_list\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.get(`/api/subscriptions`, params);\n}\n\n/**\n * Get a subscription\n * Returns a single subscription by its token.\n *\n * @param client - Fetch client instance\n * @param token - token\n */\nexport async function subscriptions_show(\n client: FetchClient,\n token: string | number,\n): Promise<\n operations[\"subscriptions_show\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.get(`/api/subscriptions/${token}`);\n}\n\n/**\n * Update a subscription\n * Updates a subscription's default payment method.\n *\n * @param client - Fetch client instance\n * @param token - token\n * @param body - body\n */\nexport async function subscriptions_update(\n client: FetchClient,\n token: string | number,\n body: operations[\"subscriptions_update\"][\"requestBody\"][\"content\"][\"application/json\"],\n): Promise<\n operations[\"subscriptions_update\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.put(`/api/subscriptions/${token}`, body);\n}\n\n/**\n * Pause a subscription\n * Pauses billing on an active subscription.\n *\n * @param client - Fetch client instance\n * @param token - token\n */\nexport async function subscriptions_pause(\n client: FetchClient,\n token: string | number,\n): Promise<\n operations[\"subscriptions_pause\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.post(`/api/subscriptions/${token}/pause`);\n}\n\n/**\n * Resume a subscription\n * Resumes billing on a paused subscription.\n *\n * @param client - Fetch client instance\n * @param token - token\n */\nexport async function subscriptions_resume(\n client: FetchClient,\n token: string | number,\n): Promise<\n operations[\"subscriptions_resume\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.post(`/api/subscriptions/${token}/resume`);\n}\n\n/**\n * Skip next billing cycle\n * Skips the next billing cycle for a subscription without pausing it.\n *\n * @param client - Fetch client instance\n * @param token - token\n */\nexport async function subscriptions_skip(\n client: FetchClient,\n token: string | number,\n): Promise<\n operations[\"subscriptions_skip\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.post(`/api/subscriptions/${token}/skip_next_billing`);\n}\n\n/**\n * Cancel a subscription\n * Cancels an active subscription.\n *\n * @param client - Fetch client instance\n * @param token - token\n */\nexport async function subscriptions_cancel(\n client: FetchClient,\n token: string | number,\n): Promise<\n operations[\"subscriptions_cancel\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.post(`/api/subscriptions/${token}/cancel`);\n}\n\n/**\n * Reactivate a subscription\n * Reactivates a previously cancelled subscription.\n *\n * @param client - Fetch client instance\n * @param token - token\n */\nexport async function subscriptions_reactivate(\n client: FetchClient,\n token: string | number,\n): Promise<\n operations[\"subscriptions_reactivate\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.post(`/api/subscriptions/${token}/reactivate`);\n}\n\n// ============================================================================\n// todos\n// ============================================================================\n\n/**\n * List todos\n * Returns a paginated list of incomplete tasks scoped to the authenticated member. Ordered by due date ascending, tasks without a due date sort last.\n *\n * @param client - Fetch client instance\n * @param [params] - params\n */\nexport async function todos_list(\n client: FetchClient,\n params?: operations[\"todos_list\"][\"parameters\"][\"query\"],\n): Promise<\n operations[\"todos_list\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.get(`/api/todos`, params);\n}\n\n// ============================================================================\n// carts\n// ============================================================================\n\n/**\n * Claim a cart\n * Assigns the logged-in member as buyer_rep on an unclaimed FairShare cart. Any portal member (rep or customer) can claim. Returns an error if the cart has already been claimed.\n *\n * @param client - Fetch client instance\n * @param token - token\n */\nexport async function carts_claim(\n client: FetchClient,\n token: string | number,\n): Promise<\n operations[\"carts_claim\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.post(`/api/carts/${token}/claim`);\n}\n"],"mappings":";;;;;;;;AAuBA,eAAsB,aACpB,QAGA;AACA,QAAO,OAAO,IAAI,eAAe;;;;;;;;;AAUnC,eAAsB,eACpB,QACA,MAGA;AACA,QAAO,OAAO,MAAM,gBAAgB,KAAK;;;;;;;;;AAc3C,eAAsB,WACpB,QAGA;AACA,QAAO,OAAO,IAAI,aAAa;;;;;;;;;AAcjC,eAAsB,kBACpB,QAGA;AACA,QAAO,OAAO,IAAI,oBAAoB;;;;;;;;;AAcxC,eAAsB,qBACpB,QACA,QAGA;AACA,QAAO,OAAO,IAAI,wBAAwB,OAAO;;;;;;;;;AAcnD,eAAsB,YACpB,QACA,QAGA;AACA,QAAO,OAAO,IAAI,eAAe,OAAO;;;;;;;;;AAU1C,eAAsB,YACpB,QACA,OAGA;AACA,QAAO,OAAO,IAAI,eAAe,QAAQ;;;;;;;;;AAc3C,eAAsB,cACpB,QACA,QAGA;AACA,QAAO,OAAO,IAAI,iBAAiB,OAAO;;;;;;;;;AAU5C,eAAsB,cACpB,QACA,IAGA;AACA,QAAO,OAAO,IAAI,iBAAiB,KAAK;;;;;;;;;AAU1C,eAAsB,gBACpB,QACA,QAGA;AACA,QAAO,OAAO,IAAI,wBAAwB,OAAO;;;;;;;;;AAUnD,eAAsB,oBACpB,QACA,IAGA;AACA,QAAO,OAAO,IAAI,iBAAiB,GAAG,QAAQ;;;;;;;;;AAchD,eAAsB,sBACpB,QACA,IAGA;AACA,QAAO,OAAO,IAAI,yBAAyB,KAAK;;;;;;;;;AAclD,eAAsB,mBACpB,QACA,QAGA;AACA,QAAO,OAAO,IAAI,sBAAsB,OAAO;;;;;;;;;AAUjD,eAAsB,mBACpB,QACA,OAGA;AACA,QAAO,OAAO,IAAI,sBAAsB,QAAQ;;;;;;;;;;AAWlD,eAAsB,qBACpB,QACA,OACA,MAGA;AACA,QAAO,OAAO,IAAI,sBAAsB,SAAS,KAAK;;;;;;;;;AAUxD,eAAsB,oBACpB,QACA,OAGA;AACA,QAAO,OAAO,KAAK,sBAAsB,MAAM,QAAQ;;;;;;;;;AAUzD,eAAsB,qBACpB,QACA,OAGA;AACA,QAAO,OAAO,KAAK,sBAAsB,MAAM,SAAS;;;;;;;;;AAU1D,eAAsB,mBACpB,QACA,OAGA;AACA,QAAO,OAAO,KAAK,sBAAsB,MAAM,oBAAoB;;;;;;;;;AAUrE,eAAsB,qBACpB,QACA,OAGA;AACA,QAAO,OAAO,KAAK,sBAAsB,MAAM,SAAS;;;;;;;;;AAU1D,eAAsB,yBACpB,QACA,OAGA;AACA,QAAO,OAAO,KAAK,sBAAsB,MAAM,aAAa;;;;;;;;;AAc9D,eAAsB,WACpB,QACA,QAGA;AACA,QAAO,OAAO,IAAI,cAAc,OAAO"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-app/portal-sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.191",
|
|
4
4
|
"description": "SDK for building custom Fluid portals",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -71,20 +71,20 @@
|
|
|
71
71
|
"tsdown": "^0.21.0",
|
|
72
72
|
"typescript": "^5",
|
|
73
73
|
"zod": "4.3.5",
|
|
74
|
-
"@fluid-app/
|
|
74
|
+
"@fluid-app/auth": "0.1.0",
|
|
75
75
|
"@fluid-app/cart-ui": "0.1.16",
|
|
76
|
+
"@fluid-app/api-client-core": "0.1.0",
|
|
76
77
|
"@fluid-app/company-switcher-ui": "0.1.0",
|
|
77
|
-
"@fluid-app/auth": "0.1.0",
|
|
78
78
|
"@fluid-app/company-switcher-core": "0.1.0",
|
|
79
79
|
"@fluid-app/contacts-core": "0.1.0",
|
|
80
80
|
"@fluid-app/contacts-ui": "0.1.0",
|
|
81
81
|
"@fluid-app/file-picker-api-client": "0.1.0",
|
|
82
82
|
"@fluid-app/file-picker-core": "0.1.0",
|
|
83
|
-
"@fluid-app/messaging-api-client": "0.1.0",
|
|
84
83
|
"@fluid-app/fluid-pay-core": "0.1.0",
|
|
85
|
-
"@fluid-app/
|
|
84
|
+
"@fluid-app/messaging-api-client": "0.1.0",
|
|
86
85
|
"@fluid-app/messaging-core": "0.1.0",
|
|
87
86
|
"@fluid-app/messaging-ui": "0.1.0",
|
|
87
|
+
"@fluid-app/fluidos-api-client": "0.1.0",
|
|
88
88
|
"@fluid-app/mysite-core": "0.1.0",
|
|
89
89
|
"@fluid-app/mysite-ui": "0.1.0",
|
|
90
90
|
"@fluid-app/orders-core": "0.1.0",
|
|
@@ -93,29 +93,29 @@
|
|
|
93
93
|
"@fluid-app/portal-app-download-ui": "0.1.0",
|
|
94
94
|
"@fluid-app/portal-core": "0.1.23",
|
|
95
95
|
"@fluid-app/portal-preview": "0.1.0",
|
|
96
|
+
"@fluid-app/portal-pro-upgrade-ui": "0.1.0",
|
|
96
97
|
"@fluid-app/portal-react": "0.1.0",
|
|
97
98
|
"@fluid-app/portal-tenant-api-client": "0.1.0",
|
|
98
|
-
"@fluid-app/portal-pro-upgrade-ui": "0.1.0",
|
|
99
|
-
"@fluid-app/portal-tenant-contacts-api-client": "0.1.0",
|
|
100
99
|
"@fluid-app/portal-tenant-content-api-client": "0.1.0",
|
|
101
100
|
"@fluid-app/portal-tenant-mysite-api-client": "0.1.0",
|
|
102
|
-
"@fluid-app/portal-widgets": "0.1.22",
|
|
103
101
|
"@fluid-app/portal-tenant-pay-api-client": "0.1.0",
|
|
104
102
|
"@fluid-app/portal-tenant-store-api-client": "0.1.0",
|
|
105
|
-
"@fluid-app/
|
|
103
|
+
"@fluid-app/portal-tenant-contacts-api-client": "0.1.0",
|
|
104
|
+
"@fluid-app/portal-widgets": "0.1.22",
|
|
106
105
|
"@fluid-app/products-api-client": "0.1.0",
|
|
107
|
-
"@fluid-app/
|
|
106
|
+
"@fluid-app/products-core": "0.1.0",
|
|
108
107
|
"@fluid-app/profile-ui": "0.1.0",
|
|
108
|
+
"@fluid-app/profile-core": "0.1.0",
|
|
109
109
|
"@fluid-app/query-persister": "0.1.0",
|
|
110
|
-
"@fluid-app/shareables-core": "0.1.0",
|
|
111
110
|
"@fluid-app/shareables-ui": "0.1.0",
|
|
111
|
+
"@fluid-app/shareables-core": "0.1.0",
|
|
112
|
+
"@fluid-app/store-api-client": "0.1.0",
|
|
112
113
|
"@fluid-app/shop-ui": "0.1.0",
|
|
113
114
|
"@fluid-app/store-core": "0.1.0",
|
|
114
|
-
"@fluid-app/store-api-client": "0.1.0",
|
|
115
115
|
"@fluid-app/subscriptions-core": "0.1.0",
|
|
116
|
+
"@fluid-app/typescript-config": "0.0.0",
|
|
116
117
|
"@fluid-app/subscriptions-ui": "0.1.0",
|
|
117
|
-
"@fluid-app/ui-primitives": "0.1.13"
|
|
118
|
-
"@fluid-app/typescript-config": "0.0.0"
|
|
118
|
+
"@fluid-app/ui-primitives": "0.1.13"
|
|
119
119
|
},
|
|
120
120
|
"peerDependencies": {
|
|
121
121
|
"@hookform/resolvers": "^5.2.2",
|