@fluid-app/portal-sdk 0.1.177 → 0.1.178

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.
Files changed (64) hide show
  1. package/dist/{FluidProvider-MjOyxZEf.cjs → FluidProvider-CIuinUdw.cjs} +13 -31
  2. package/dist/FluidProvider-CIuinUdw.cjs.map +1 -0
  3. package/dist/{FluidProvider-C6NlPdMA.mjs → FluidProvider-TKGU3gSm.mjs} +13 -31
  4. package/dist/FluidProvider-TKGU3gSm.mjs.map +1 -0
  5. package/dist/{MessagingScreen-BNXVwQwN.mjs → MessagingScreen-BUC8Fwaz.mjs} +2 -2
  6. package/dist/{MessagingScreen-BNXVwQwN.mjs.map → MessagingScreen-BUC8Fwaz.mjs.map} +1 -1
  7. package/dist/{MessagingScreen-DRzVl0ux.cjs → MessagingScreen-CwMR1WJG.cjs} +2 -2
  8. package/dist/{MessagingScreen-DRzVl0ux.cjs.map → MessagingScreen-CwMR1WJG.cjs.map} +1 -1
  9. package/dist/{MessagingScreen-fMLfvDCY.cjs → MessagingScreen-XzPsvsXP.cjs} +2 -2
  10. package/dist/{OrdersScreen-Dz4XHnSA.mjs → OrdersScreen-BYs3uo-1.mjs} +2 -2
  11. package/dist/{OrdersScreen-Dz4XHnSA.mjs.map → OrdersScreen-BYs3uo-1.mjs.map} +1 -1
  12. package/dist/{OrdersScreen-DI1un1xT.cjs → OrdersScreen-COGBqaif.cjs} +1 -1
  13. package/dist/{OrdersScreen-DBaIwXoT.cjs → OrdersScreen-tEz4rZn_.cjs} +2 -2
  14. package/dist/{OrdersScreen-DBaIwXoT.cjs.map → OrdersScreen-tEz4rZn_.cjs.map} +1 -1
  15. package/dist/{PortalContentApiProvider-BvreyuHL.cjs → PortalContentApiProvider-BBGpjTFn.cjs} +11 -12
  16. package/dist/{PortalContentApiProvider-BvreyuHL.cjs.map → PortalContentApiProvider-BBGpjTFn.cjs.map} +1 -1
  17. package/dist/{PortalContentApiProvider-mXe3JFMW.mjs → PortalContentApiProvider-D15sSN1l.mjs} +11 -12
  18. package/dist/{PortalContentApiProvider-mXe3JFMW.mjs.map → PortalContentApiProvider-D15sSN1l.mjs.map} +1 -1
  19. package/dist/{PortalProductsApiProvider-BXmVqeTK.mjs → PortalProductsApiProvider-BALswRao.mjs} +2 -2
  20. package/dist/{PortalProductsApiProvider-BXmVqeTK.mjs.map → PortalProductsApiProvider-BALswRao.mjs.map} +1 -1
  21. package/dist/{PortalProductsApiProvider-jbh8K-Yu.cjs → PortalProductsApiProvider-Duj-EjQj.cjs} +2 -2
  22. package/dist/{PortalProductsApiProvider-jbh8K-Yu.cjs.map → PortalProductsApiProvider-Duj-EjQj.cjs.map} +1 -1
  23. package/dist/{ProductsScreen-B3zrg-M4.mjs → ProductsScreen-BnS0MbzY.mjs} +3 -3
  24. package/dist/{ProductsScreen-B3zrg-M4.mjs.map → ProductsScreen-BnS0MbzY.mjs.map} +1 -1
  25. package/dist/{ProductsScreen-4PpCihOF.mjs → ProductsScreen-C0KlCDt_.mjs} +3 -3
  26. package/dist/{ProductsScreen-BJ_OpulB.cjs → ProductsScreen-CWqkme1L.cjs} +3 -3
  27. package/dist/{ProductsScreen-BJ_OpulB.cjs.map → ProductsScreen-CWqkme1L.cjs.map} +1 -1
  28. package/dist/{ProductsScreen-BxFPdYyG.cjs → ProductsScreen-DjzkmBOS.cjs} +3 -3
  29. package/dist/{ProfileScreen-D6tv5Qp8.mjs → ProfileScreen-BuDwsZ3f.mjs} +2 -2
  30. package/dist/{ProfileScreen-D6tv5Qp8.mjs.map → ProfileScreen-BuDwsZ3f.mjs.map} +1 -1
  31. package/dist/{ProfileScreen-4BbG1vpk.cjs → ProfileScreen-CD0p8061.cjs} +2 -2
  32. package/dist/{ProfileScreen-OhOlDDDj.cjs → ProfileScreen-De6Xdkr4.cjs} +2 -2
  33. package/dist/{ProfileScreen-OhOlDDDj.cjs.map → ProfileScreen-De6Xdkr4.cjs.map} +1 -1
  34. package/dist/{ShareablesScreen-D0hdY5cY.cjs → ShareablesScreen-BZG-rFuT.cjs} +3 -3
  35. package/dist/{ShareablesScreen-BVb5BkiC.cjs → ShareablesScreen-B_tGIt_X.cjs} +3 -3
  36. package/dist/{ShareablesScreen-BVb5BkiC.cjs.map → ShareablesScreen-B_tGIt_X.cjs.map} +1 -1
  37. package/dist/{ShareablesScreen-xak6DHSf.mjs → ShareablesScreen-_S-OESoe.mjs} +3 -3
  38. package/dist/{ShareablesScreen-DCbx4JwR.mjs → ShareablesScreen-svmMjJII.mjs} +3 -3
  39. package/dist/{ShareablesScreen-DCbx4JwR.mjs.map → ShareablesScreen-svmMjJII.mjs.map} +1 -1
  40. package/dist/{ShopScreen-DmkJgGqK.mjs → ShopScreen-Bg5pr5RL.mjs} +3 -3
  41. package/dist/{ShopScreen-DmkJgGqK.mjs.map → ShopScreen-Bg5pr5RL.mjs.map} +1 -1
  42. package/dist/{ShopScreen-BYEB_E5B.cjs → ShopScreen-DqUle1Zv.cjs} +3 -3
  43. package/dist/{ShopScreen-2Fm9c-Nc.cjs → ShopScreen-z1kE-juB.cjs} +3 -3
  44. package/dist/{ShopScreen-2Fm9c-Nc.cjs.map → ShopScreen-z1kE-juB.cjs.map} +1 -1
  45. package/dist/{SubscriptionsScreen-B3Z13alr.mjs → SubscriptionsScreen-BCxNFOZv.mjs} +2 -2
  46. package/dist/{SubscriptionsScreen-B3Z13alr.mjs.map → SubscriptionsScreen-BCxNFOZv.mjs.map} +1 -1
  47. package/dist/{SubscriptionsScreen-Cdf_XKwQ.cjs → SubscriptionsScreen-CYIUXxrJ.cjs} +1 -1
  48. package/dist/{SubscriptionsScreen-C_U6YU-s.cjs → SubscriptionsScreen-Dr0FmZZH.cjs} +2 -2
  49. package/dist/{SubscriptionsScreen-C_U6YU-s.cjs.map → SubscriptionsScreen-Dr0FmZZH.cjs.map} +1 -1
  50. package/dist/index.cjs +24 -24
  51. package/dist/index.mjs +24 -24
  52. package/dist/{portal_tenant-5kK658sL.cjs → portal_tenant-CvP7rhIy.cjs} +1 -33
  53. package/dist/{portal_tenant-5kK658sL.cjs.map → portal_tenant-CvP7rhIy.cjs.map} +1 -1
  54. package/dist/{portal_tenant-vEh8wfqU.mjs → portal_tenant-Vkge0BiD.mjs} +2 -22
  55. package/dist/{portal_tenant-vEh8wfqU.mjs.map → portal_tenant-Vkge0BiD.mjs.map} +1 -1
  56. package/dist/{portal_tenant_content-DZ8AqoU_.cjs → portal_tenant_content-Bq8PD-Sz.cjs} +1 -17
  57. package/dist/portal_tenant_content-Bq8PD-Sz.cjs.map +1 -0
  58. package/dist/{portal_tenant_content-5fNROcju.mjs → portal_tenant_content-C8DCQLR3.mjs} +2 -12
  59. package/dist/portal_tenant_content-C8DCQLR3.mjs.map +1 -0
  60. package/package.json +18 -18
  61. package/dist/FluidProvider-C6NlPdMA.mjs.map +0 -1
  62. package/dist/FluidProvider-MjOyxZEf.cjs.map +0 -1
  63. package/dist/portal_tenant_content-5fNROcju.mjs.map +0 -1
  64. package/dist/portal_tenant_content-DZ8AqoU_.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-MjOyxZEf.cjs");
3
+ const require_FluidProvider = require("./FluidProvider-CIuinUdw.cjs");
4
4
  const require_ScreenRenderer = require("./ScreenRenderer-8F7DT7CQ.cjs");
5
5
  require("./account-api-context-DZP9IiGg.cjs");
6
6
  require("./store-api-context-D1gZn22Z.cjs");
@@ -46,8 +46,8 @@ const require_use_account = require("./use-account-BWdcuCCW.cjs");
46
46
  const require_use_store = require("./use-store-DvtLtZ3f.cjs");
47
47
  const require_CustomersScreen = require("./CustomersScreen-DRcCBHkL.cjs");
48
48
  const require_AppNavigationContext = require("./AppNavigationContext-BKszSW5R.cjs");
49
- const require_MessagingScreen = require("./MessagingScreen-DRzVl0ux.cjs");
50
- const require_ProfileScreen = require("./ProfileScreen-OhOlDDDj.cjs");
49
+ const require_MessagingScreen = require("./MessagingScreen-CwMR1WJG.cjs");
50
+ const require_ProfileScreen = require("./ProfileScreen-De6Xdkr4.cjs");
51
51
  require("./dist-BRT-FAUb.cjs");
52
52
  require("./es-Dr47illR.cjs");
53
53
  const require_ContactsScreen = require("./ContactsScreen-DoITKHce.cjs");
@@ -55,16 +55,16 @@ require("./SearchSort-BgHSdG1l.cjs");
55
55
  require("./order-status-badge-DfsLUj9h.cjs");
56
56
  require("./src-BukXixXu.cjs");
57
57
  require("./dist-DbiSKQz4.cjs");
58
- const require_OrdersScreen = require("./OrdersScreen-DBaIwXoT.cjs");
59
- const require_SubscriptionsScreen = require("./SubscriptionsScreen-C_U6YU-s.cjs");
60
- require("./PortalContentApiProvider-BvreyuHL.cjs");
58
+ const require_OrdersScreen = require("./OrdersScreen-tEz4rZn_.cjs");
59
+ const require_SubscriptionsScreen = require("./SubscriptionsScreen-Dr0FmZZH.cjs");
60
+ require("./PortalContentApiProvider-BBGpjTFn.cjs");
61
61
  require("./dist-DWs3-WOI.cjs");
62
- require("./PortalProductsApiProvider-jbh8K-Yu.cjs");
63
- const require_ProductsScreen = require("./ProductsScreen-BJ_OpulB.cjs");
62
+ require("./PortalProductsApiProvider-Duj-EjQj.cjs");
63
+ const require_ProductsScreen = require("./ProductsScreen-CWqkme1L.cjs");
64
64
  require("./use-mysite-portal-DzDYRU0u.cjs");
65
65
  const require_MySiteScreen = require("./MySiteScreen-B_ue0dF6.cjs");
66
- const require_ShareablesScreen = require("./ShareablesScreen-BVb5BkiC.cjs");
67
- const require_ShopScreen = require("./ShopScreen-2Fm9c-Nc.cjs");
66
+ const require_ShareablesScreen = require("./ShareablesScreen-B_tGIt_X.cjs");
67
+ const require_ShopScreen = require("./ShopScreen-z1kE-juB.cjs");
68
68
  require("./UpgradeScreen-BwWZYjrw.cjs");
69
69
  require("./AppDownloadScreen-DXkRe6MQ.cjs");
70
70
  let react = require("react");
@@ -2165,15 +2165,15 @@ function AccountManageLayout({ children }) {
2165
2165
  }
2166
2166
  //#endregion
2167
2167
  //#region src/shell/system-screen-map.ts
2168
- const ProfileScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./ProfileScreen-4BbG1vpk.cjs")).then((m) => ({ default: m.ProfileScreen })));
2169
- const OrdersScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./OrdersScreen-DI1un1xT.cjs")).then((m) => ({ default: m.OrdersScreen })));
2170
- const SubscriptionsScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./SubscriptionsScreen-Cdf_XKwQ.cjs")).then((m) => ({ default: m.SubscriptionsScreen })));
2171
- const MessagingScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./MessagingScreen-fMLfvDCY.cjs")).then((m) => ({ default: m.MessagingScreen })));
2168
+ const ProfileScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./ProfileScreen-CD0p8061.cjs")).then((m) => ({ default: m.ProfileScreen })));
2169
+ const OrdersScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./OrdersScreen-COGBqaif.cjs")).then((m) => ({ default: m.OrdersScreen })));
2170
+ const SubscriptionsScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./SubscriptionsScreen-CYIUXxrJ.cjs")).then((m) => ({ default: m.SubscriptionsScreen })));
2171
+ const MessagingScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./MessagingScreen-XzPsvsXP.cjs")).then((m) => ({ default: m.MessagingScreen })));
2172
2172
  const ContactsScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./ContactsScreen-f9MvO-hX.cjs")).then((m) => ({ default: m.ContactsScreen })));
2173
- const ShopScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./ShopScreen-BYEB_E5B.cjs")).then((m) => ({ default: m.ShopScreen })));
2173
+ const ShopScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./ShopScreen-DqUle1Zv.cjs")).then((m) => ({ default: m.ShopScreen })));
2174
2174
  const CustomersScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./CustomersScreen-DRcCBHkL.cjs")).then((n) => n.CustomersScreen_exports).then((m) => ({ default: m.CustomersScreen })));
2175
- const ProductsScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./ProductsScreen-BxFPdYyG.cjs")).then((m) => ({ default: m.ProductsScreen })));
2176
- const ShareablesScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./ShareablesScreen-D0hdY5cY.cjs")).then((m) => ({ default: m.ShareablesScreen })));
2175
+ const ProductsScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./ProductsScreen-DjzkmBOS.cjs")).then((m) => ({ default: m.ProductsScreen })));
2176
+ const ShareablesScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./ShareablesScreen-BZG-rFuT.cjs")).then((m) => ({ default: m.ShareablesScreen })));
2177
2177
  const MySiteScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./MySiteScreen-W907mNoB.cjs")).then((m) => ({ default: m.MySiteScreen })));
2178
2178
  const UpgradeScreen = (0, react.lazy)(() => Promise.resolve().then(() => require("./UpgradeScreen-DqpdSO-F.cjs")).then((m) => ({ default: m.UpgradeScreen })));
2179
2179
  const AppDownloadScreen = (0, react.lazy)(() => Promise.resolve().then(() => require("./AppDownloadScreen-DXkRe6MQ.cjs")).then((n) => n.AppDownloadScreen_exports).then((m) => ({ default: m.AppDownloadScreen })));
@@ -3631,16 +3631,16 @@ zod.z.object({
3631
3631
  //#endregion
3632
3632
  //#region src/screens/index.ts
3633
3633
  const screenPropertySchemas = {
3634
- ProfileScreen: () => Promise.resolve().then(() => require("./ProfileScreen-4BbG1vpk.cjs")).then((m) => m.profileScreenPropertySchema),
3635
- MessagingScreen: () => Promise.resolve().then(() => require("./MessagingScreen-fMLfvDCY.cjs")).then((m) => m.messagingScreenPropertySchema),
3634
+ ProfileScreen: () => Promise.resolve().then(() => require("./ProfileScreen-CD0p8061.cjs")).then((m) => m.profileScreenPropertySchema),
3635
+ MessagingScreen: () => Promise.resolve().then(() => require("./MessagingScreen-XzPsvsXP.cjs")).then((m) => m.messagingScreenPropertySchema),
3636
3636
  ContactsScreen: () => Promise.resolve().then(() => require("./ContactsScreen-f9MvO-hX.cjs")).then((m) => m.contactsScreenPropertySchema),
3637
- OrdersScreen: () => Promise.resolve().then(() => require("./OrdersScreen-DI1un1xT.cjs")).then((m) => m.ordersScreenPropertySchema),
3638
- SubscriptionsScreen: () => Promise.resolve().then(() => require("./SubscriptionsScreen-Cdf_XKwQ.cjs")).then((m) => m.subscriptionsScreenPropertySchema),
3637
+ OrdersScreen: () => Promise.resolve().then(() => require("./OrdersScreen-COGBqaif.cjs")).then((m) => m.ordersScreenPropertySchema),
3638
+ SubscriptionsScreen: () => Promise.resolve().then(() => require("./SubscriptionsScreen-CYIUXxrJ.cjs")).then((m) => m.subscriptionsScreenPropertySchema),
3639
3639
  CustomersScreen: () => Promise.resolve().then(() => require("./CustomersScreen-DRcCBHkL.cjs")).then((n) => n.CustomersScreen_exports).then((m) => m.customersScreenPropertySchema),
3640
- ProductsScreen: () => Promise.resolve().then(() => require("./ProductsScreen-BxFPdYyG.cjs")).then((m) => m.productsScreenPropertySchema),
3640
+ ProductsScreen: () => Promise.resolve().then(() => require("./ProductsScreen-DjzkmBOS.cjs")).then((m) => m.productsScreenPropertySchema),
3641
3641
  MySiteScreen: () => Promise.resolve().then(() => require("./MySiteScreen-W907mNoB.cjs")).then((m) => m.mySiteScreenPropertySchema),
3642
- ShareablesScreen: () => Promise.resolve().then(() => require("./ShareablesScreen-D0hdY5cY.cjs")).then((m) => m.shareablesScreenPropertySchema),
3643
- ShopScreen: () => Promise.resolve().then(() => require("./ShopScreen-BYEB_E5B.cjs")).then((m) => m.shopScreenPropertySchema),
3642
+ ShareablesScreen: () => Promise.resolve().then(() => require("./ShareablesScreen-BZG-rFuT.cjs")).then((m) => m.shareablesScreenPropertySchema),
3643
+ ShopScreen: () => Promise.resolve().then(() => require("./ShopScreen-DqUle1Zv.cjs")).then((m) => m.shopScreenPropertySchema),
3644
3644
  UpgradeScreen: () => Promise.resolve().then(() => require("./UpgradeScreen-DqpdSO-F.cjs")).then((m) => m.upgradeScreenPropertySchema),
3645
3645
  AppDownloadScreen: () => Promise.resolve().then(() => require("./AppDownloadScreen-DXkRe6MQ.cjs")).then((n) => n.AppDownloadScreen_exports).then((m) => m.appDownloadScreenPropertySchema)
3646
3646
  };
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import "./es-I9usCQT-.mjs";
2
- import { A as mergeDarkOverrides, C as DEFAULT_THEME_ID, D as deriveDarkVariant, E as generateThemeCSS, F as RADIUS_KEYS, H as useFluidOsApi, 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 createPersister, V as useAppDefinitionApi, W as deleteDatabase, _ 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-C6NlPdMA.mjs";
2
+ import { A as mergeDarkOverrides, C as DEFAULT_THEME_ID, D as deriveDarkVariant, E as generateThemeCSS, F as RADIUS_KEYS, H as useFluidOsApi, 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 createPersister, V as useAppDefinitionApi, W as deleteDatabase, _ 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-TKGU3gSm.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-fU3OUAfp.mjs";
4
4
  import "./account-api-context-BIZ_aibJ.mjs";
5
5
  import "./store-api-context-C1lXT_3d.mjs";
@@ -21,7 +21,7 @@ import { r as calendarWidgetPropertySchema, t as CalendarWidget } from "./Calend
21
21
  import { r as cardWidgetPropertySchema, t as CardWidget } from "./CardWidget-Cwidyz8-.mjs";
22
22
  import "./purify.es-Ba5Ug4-y.mjs";
23
23
  import { b as Skeleton$1, dt as PopoverContent, ft as PopoverTrigger, ht as CollapsibleTrigger, mt as CollapsibleContent, pt as Collapsible, un as Button, ut as Popover, v as Toaster, vn as cn$1 } from "./src-BZbWkXOU.mjs";
24
- import { a as useMessagingConfig, i as createFluidFileUploader, o as useMessagingAuth, r as messagingScreenPropertySchema, t as MessagingScreen } from "./MessagingScreen-BNXVwQwN.mjs";
24
+ import { a as useMessagingConfig, i as createFluidFileUploader, o as useMessagingAuth, r as messagingScreenPropertySchema, t as MessagingScreen } from "./MessagingScreen-BUC8Fwaz.mjs";
25
25
  import "./scroll-arrows-CYshgsiB.mjs";
26
26
  import "./MediaRenderer-CEtrOi5O.mjs";
27
27
  import { r as carouselWidgetPropertySchema, t as CarouselWidget } from "./CarouselWidget-DykS0Vbg.mjs";
@@ -46,23 +46,23 @@ import { t as useAccount } from "./use-account-B16Tor2Q.mjs";
46
46
  import { t as useStore } from "./use-store-BnHhQDYo.mjs";
47
47
  import { i as CoreScreenPlaceholder, r as customersScreenPropertySchema, t as CustomersScreen } from "./CustomersScreen-DHz5JC2z.mjs";
48
48
  import { n as useAppNavigation, t as AppNavigationProvider } from "./AppNavigationContext-BW3lSpfT.mjs";
49
- import { r as profileScreenPropertySchema, t as ProfileScreen } from "./ProfileScreen-D6tv5Qp8.mjs";
49
+ import { r as profileScreenPropertySchema, t as ProfileScreen } from "./ProfileScreen-BuDwsZ3f.mjs";
50
50
  import "./dist-BETEuYfn.mjs";
51
51
  import { r as contactsScreenPropertySchema, t as ContactsScreen } from "./ContactsScreen-leW1gmfk.mjs";
52
52
  import "./SearchSort-CFbJNJDL.mjs";
53
53
  import "./order-status-badge-BOndywdl.mjs";
54
54
  import "./src-CnTpDbta.mjs";
55
55
  import "./dist-DiBoTZfl.mjs";
56
- import { r as ordersScreenPropertySchema, t as OrdersScreen } from "./OrdersScreen-Dz4XHnSA.mjs";
57
- import { r as subscriptionsScreenPropertySchema, t as SubscriptionsScreen } from "./SubscriptionsScreen-B3Z13alr.mjs";
58
- import "./PortalContentApiProvider-mXe3JFMW.mjs";
56
+ import { r as ordersScreenPropertySchema, t as OrdersScreen } from "./OrdersScreen-BYs3uo-1.mjs";
57
+ import { r as subscriptionsScreenPropertySchema, t as SubscriptionsScreen } from "./SubscriptionsScreen-BCxNFOZv.mjs";
58
+ import "./PortalContentApiProvider-D15sSN1l.mjs";
59
59
  import "./sortable.esm-CJLSD-Ce.mjs";
60
- import "./PortalProductsApiProvider-BXmVqeTK.mjs";
61
- import { n as productsScreenPropertySchema, t as ProductsScreen } from "./ProductsScreen-B3zrg-M4.mjs";
60
+ import "./PortalProductsApiProvider-BALswRao.mjs";
61
+ import { n as productsScreenPropertySchema, t as ProductsScreen } from "./ProductsScreen-BnS0MbzY.mjs";
62
62
  import "./use-mysite-portal-BV-BP3CE.mjs";
63
63
  import { r as mySiteScreenPropertySchema, t as MySiteScreen } from "./MySiteScreen-jiyjhA0K.mjs";
64
- import { n as shareablesScreenPropertySchema, t as ShareablesScreen } from "./ShareablesScreen-DCbx4JwR.mjs";
65
- import { r as shopScreenPropertySchema, t as ShopScreen } from "./ShopScreen-DmkJgGqK.mjs";
64
+ import { n as shareablesScreenPropertySchema, t as ShareablesScreen } from "./ShareablesScreen-svmMjJII.mjs";
65
+ import { r as shopScreenPropertySchema, t as ShopScreen } from "./ShopScreen-Bg5pr5RL.mjs";
66
66
  import "./UpgradeScreen-Qb3b0FsA.mjs";
67
67
  import "./AppDownloadScreen-DHHobdal.mjs";
68
68
  import * as React$1 from "react";
@@ -2163,15 +2163,15 @@ function AccountManageLayout({ children }) {
2163
2163
  }
2164
2164
  //#endregion
2165
2165
  //#region src/shell/system-screen-map.ts
2166
- const ProfileScreen$1 = lazy(() => import("./ProfileScreen-D6tv5Qp8.mjs").then((n) => n.n).then((m) => ({ default: m.ProfileScreen })));
2167
- const OrdersScreen$1 = lazy(() => import("./OrdersScreen-Dz4XHnSA.mjs").then((n) => n.n).then((m) => ({ default: m.OrdersScreen })));
2168
- const SubscriptionsScreen$1 = lazy(() => import("./SubscriptionsScreen-B3Z13alr.mjs").then((n) => n.n).then((m) => ({ default: m.SubscriptionsScreen })));
2169
- const MessagingScreen$1 = lazy(() => import("./MessagingScreen-BNXVwQwN.mjs").then((n) => n.n).then((m) => ({ default: m.MessagingScreen })));
2166
+ const ProfileScreen$1 = lazy(() => import("./ProfileScreen-BuDwsZ3f.mjs").then((n) => n.n).then((m) => ({ default: m.ProfileScreen })));
2167
+ const OrdersScreen$1 = lazy(() => import("./OrdersScreen-BYs3uo-1.mjs").then((n) => n.n).then((m) => ({ default: m.OrdersScreen })));
2168
+ const SubscriptionsScreen$1 = lazy(() => import("./SubscriptionsScreen-BCxNFOZv.mjs").then((n) => n.n).then((m) => ({ default: m.SubscriptionsScreen })));
2169
+ const MessagingScreen$1 = lazy(() => import("./MessagingScreen-BUC8Fwaz.mjs").then((n) => n.n).then((m) => ({ default: m.MessagingScreen })));
2170
2170
  const ContactsScreen$1 = lazy(() => import("./ContactsScreen-leW1gmfk.mjs").then((n) => n.n).then((m) => ({ default: m.ContactsScreen })));
2171
- const ShopScreen$1 = lazy(() => import("./ShopScreen-DmkJgGqK.mjs").then((n) => n.n).then((m) => ({ default: m.ShopScreen })));
2171
+ const ShopScreen$1 = lazy(() => import("./ShopScreen-Bg5pr5RL.mjs").then((n) => n.n).then((m) => ({ default: m.ShopScreen })));
2172
2172
  const CustomersScreen$1 = lazy(() => import("./CustomersScreen-DHz5JC2z.mjs").then((n) => n.n).then((m) => ({ default: m.CustomersScreen })));
2173
- const ProductsScreen$1 = lazy(() => import("./ProductsScreen-4PpCihOF.mjs").then((m) => ({ default: m.ProductsScreen })));
2174
- const ShareablesScreen$1 = lazy(() => import("./ShareablesScreen-xak6DHSf.mjs").then((m) => ({ default: m.ShareablesScreen })));
2173
+ const ProductsScreen$1 = lazy(() => import("./ProductsScreen-C0KlCDt_.mjs").then((m) => ({ default: m.ProductsScreen })));
2174
+ const ShareablesScreen$1 = lazy(() => import("./ShareablesScreen-_S-OESoe.mjs").then((m) => ({ default: m.ShareablesScreen })));
2175
2175
  const MySiteScreen$1 = lazy(() => import("./MySiteScreen-jiyjhA0K.mjs").then((n) => n.n).then((m) => ({ default: m.MySiteScreen })));
2176
2176
  const UpgradeScreen = lazy(() => import("./UpgradeScreen-Qb3b0FsA.mjs").then((n) => n.t).then((m) => ({ default: m.UpgradeScreen })));
2177
2177
  const AppDownloadScreen = lazy(() => import("./AppDownloadScreen-DHHobdal.mjs").then((n) => n.t).then((m) => ({ default: m.AppDownloadScreen })));
@@ -3629,16 +3629,16 @@ z.object({
3629
3629
  //#endregion
3630
3630
  //#region src/screens/index.ts
3631
3631
  const screenPropertySchemas = {
3632
- ProfileScreen: () => import("./ProfileScreen-D6tv5Qp8.mjs").then((n) => n.n).then((m) => m.profileScreenPropertySchema),
3633
- MessagingScreen: () => import("./MessagingScreen-BNXVwQwN.mjs").then((n) => n.n).then((m) => m.messagingScreenPropertySchema),
3632
+ ProfileScreen: () => import("./ProfileScreen-BuDwsZ3f.mjs").then((n) => n.n).then((m) => m.profileScreenPropertySchema),
3633
+ MessagingScreen: () => import("./MessagingScreen-BUC8Fwaz.mjs").then((n) => n.n).then((m) => m.messagingScreenPropertySchema),
3634
3634
  ContactsScreen: () => import("./ContactsScreen-leW1gmfk.mjs").then((n) => n.n).then((m) => m.contactsScreenPropertySchema),
3635
- OrdersScreen: () => import("./OrdersScreen-Dz4XHnSA.mjs").then((n) => n.n).then((m) => m.ordersScreenPropertySchema),
3636
- SubscriptionsScreen: () => import("./SubscriptionsScreen-B3Z13alr.mjs").then((n) => n.n).then((m) => m.subscriptionsScreenPropertySchema),
3635
+ OrdersScreen: () => import("./OrdersScreen-BYs3uo-1.mjs").then((n) => n.n).then((m) => m.ordersScreenPropertySchema),
3636
+ SubscriptionsScreen: () => import("./SubscriptionsScreen-BCxNFOZv.mjs").then((n) => n.n).then((m) => m.subscriptionsScreenPropertySchema),
3637
3637
  CustomersScreen: () => import("./CustomersScreen-DHz5JC2z.mjs").then((n) => n.n).then((m) => m.customersScreenPropertySchema),
3638
- ProductsScreen: () => import("./ProductsScreen-4PpCihOF.mjs").then((m) => m.productsScreenPropertySchema),
3638
+ ProductsScreen: () => import("./ProductsScreen-C0KlCDt_.mjs").then((m) => m.productsScreenPropertySchema),
3639
3639
  MySiteScreen: () => import("./MySiteScreen-jiyjhA0K.mjs").then((n) => n.n).then((m) => m.mySiteScreenPropertySchema),
3640
- ShareablesScreen: () => import("./ShareablesScreen-xak6DHSf.mjs").then((m) => m.shareablesScreenPropertySchema),
3641
- ShopScreen: () => import("./ShopScreen-DmkJgGqK.mjs").then((n) => n.n).then((m) => m.shopScreenPropertySchema),
3640
+ ShareablesScreen: () => import("./ShareablesScreen-_S-OESoe.mjs").then((m) => m.shareablesScreenPropertySchema),
3641
+ ShopScreen: () => import("./ShopScreen-Bg5pr5RL.mjs").then((n) => n.n).then((m) => m.shopScreenPropertySchema),
3642
3642
  UpgradeScreen: () => import("./UpgradeScreen-Qb3b0FsA.mjs").then((n) => n.t).then((m) => m.upgradeScreenPropertySchema),
3643
3643
  AppDownloadScreen: () => import("./AppDownloadScreen-DHHobdal.mjs").then((n) => n.t).then((m) => m.appDownloadScreenPropertySchema)
3644
3644
  };
@@ -190,26 +190,6 @@ async function subscriptions_cancel(client, token) {
190
190
  async function subscriptions_reactivate(client, token) {
191
191
  return client.post(`/api/subscriptions/${token}/reactivate`);
192
192
  }
193
- /**
194
- * Top resources by share-link visits
195
- * Returns the top resources across the company, ranked by total visits to their rep share links.
196
- *
197
- * @param client - Fetch client instance
198
- * @param [params] - params
199
- */
200
- async function analytics_most_share_visits(client, params) {
201
- return client.get(`/api/analytics/most_share_visits`, params);
202
- }
203
- /**
204
- * Top resources by direct page visits
205
- * Returns the top resources across the company, ranked by total visits to the resource page itself.
206
- *
207
- * @param client - Fetch client instance
208
- * @param [params] - params
209
- */
210
- async function analytics_most_viewed(client, params) {
211
- return client.get(`/api/analytics/most_viewed`, params);
212
- }
213
193
  //#endregion
214
194
  Object.defineProperty(exports, "account_show", {
215
195
  enumerable: true,
@@ -223,18 +203,6 @@ Object.defineProperty(exports, "account_update", {
223
203
  return account_update;
224
204
  }
225
205
  });
226
- Object.defineProperty(exports, "analytics_most_share_visits", {
227
- enumerable: true,
228
- get: function() {
229
- return analytics_most_share_visits;
230
- }
231
- });
232
- Object.defineProperty(exports, "analytics_most_viewed", {
233
- enumerable: true,
234
- get: function() {
235
- return analytics_most_viewed;
236
- }
237
- });
238
206
  Object.defineProperty(exports, "app_manifest_show", {
239
207
  enumerable: true,
240
208
  get: function() {
@@ -338,4 +306,4 @@ Object.defineProperty(exports, "subscriptions_update", {
338
306
  }
339
307
  });
340
308
 
341
- //# sourceMappingURL=portal_tenant-5kK658sL.cjs.map
309
+ //# sourceMappingURL=portal_tenant-CvP7rhIy.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"portal_tenant-5kK658sL.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// 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// 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\n// ============================================================================\n// analytics\n// ============================================================================\n\n/**\n * Top resources by share-link visits\n * Returns the top resources across the company, ranked by total visits to their rep share links.\n *\n * @param client - Fetch client instance\n * @param [params] - params\n */\nexport async function analytics_most_share_visits(\n client: FetchClient,\n params?: operations[\"analytics_most_share_visits\"][\"parameters\"][\"query\"],\n): Promise<\n operations[\"analytics_most_share_visits\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.get(`/api/analytics/most_share_visits`, params);\n}\n\n/**\n * Top resources by direct page visits\n * Returns the top resources across the company, ranked by total visits to the resource page itself.\n *\n * @param client - Fetch client instance\n * @param [params] - params\n */\nexport async function analytics_most_viewed(\n client: FetchClient,\n params?: operations[\"analytics_most_viewed\"][\"parameters\"][\"query\"],\n): Promise<\n operations[\"analytics_most_viewed\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.get(`/api/analytics/most_viewed`, params);\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,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;;;;;;;;;AAkC9D,eAAsB,4BACpB,QACA,QAGA;AACA,QAAO,OAAO,IAAI,oCAAoC,OAAO;;;;;;;;;AAU/D,eAAsB,sBACpB,QACA,QAGA;AACA,QAAO,OAAO,IAAI,8BAA8B,OAAO"}
1
+ {"version":3,"file":"portal_tenant-CvP7rhIy.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// 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// 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,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"}
@@ -190,27 +190,7 @@ async function subscriptions_cancel(client, token) {
190
190
  async function subscriptions_reactivate(client, token) {
191
191
  return client.post(`/api/subscriptions/${token}/reactivate`);
192
192
  }
193
- /**
194
- * Top resources by share-link visits
195
- * Returns the top resources across the company, ranked by total visits to their rep share links.
196
- *
197
- * @param client - Fetch client instance
198
- * @param [params] - params
199
- */
200
- async function analytics_most_share_visits(client, params) {
201
- return client.get(`/api/analytics/most_share_visits`, params);
202
- }
203
- /**
204
- * Top resources by direct page visits
205
- * Returns the top resources across the company, ranked by total visits to the resource page itself.
206
- *
207
- * @param client - Fetch client instance
208
- * @param [params] - params
209
- */
210
- async function analytics_most_viewed(client, params) {
211
- return client.get(`/api/analytics/most_viewed`, params);
212
- }
213
193
  //#endregion
214
- export { subscriptions_reactivate as _, app_manifest_show as a, subscriptions_skip as b, orders_show as c, products_search as d, products_show as f, subscriptions_pause as g, subscriptions_list as h, analytics_most_viewed as i, products_list as l, subscriptions_cancel as m, account_update as n, enrollment_packs_show as o, store_show as p, analytics_most_share_visits as r, orders_list as s, account_show as t, products_media_list as u, subscriptions_resume as v, subscriptions_update as x, subscriptions_show as y };
194
+ export { subscriptions_show as _, orders_list as a, products_media_list as c, store_show as d, subscriptions_cancel as f, subscriptions_resume as g, subscriptions_reactivate as h, enrollment_packs_show as i, products_search as l, subscriptions_pause as m, account_update as n, orders_show as o, subscriptions_list as p, app_manifest_show as r, products_list as s, account_show as t, products_show as u, subscriptions_skip as v, subscriptions_update as y };
215
195
 
216
- //# sourceMappingURL=portal_tenant-vEh8wfqU.mjs.map
196
+ //# sourceMappingURL=portal_tenant-Vkge0BiD.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"portal_tenant-vEh8wfqU.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// 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// 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\n// ============================================================================\n// analytics\n// ============================================================================\n\n/**\n * Top resources by share-link visits\n * Returns the top resources across the company, ranked by total visits to their rep share links.\n *\n * @param client - Fetch client instance\n * @param [params] - params\n */\nexport async function analytics_most_share_visits(\n client: FetchClient,\n params?: operations[\"analytics_most_share_visits\"][\"parameters\"][\"query\"],\n): Promise<\n operations[\"analytics_most_share_visits\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.get(`/api/analytics/most_share_visits`, params);\n}\n\n/**\n * Top resources by direct page visits\n * Returns the top resources across the company, ranked by total visits to the resource page itself.\n *\n * @param client - Fetch client instance\n * @param [params] - params\n */\nexport async function analytics_most_viewed(\n client: FetchClient,\n params?: operations[\"analytics_most_viewed\"][\"parameters\"][\"query\"],\n): Promise<\n operations[\"analytics_most_viewed\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.get(`/api/analytics/most_viewed`, params);\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,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;;;;;;;;;AAkC9D,eAAsB,4BACpB,QACA,QAGA;AACA,QAAO,OAAO,IAAI,oCAAoC,OAAO;;;;;;;;;AAU/D,eAAsB,sBACpB,QACA,QAGA;AACA,QAAO,OAAO,IAAI,8BAA8B,OAAO"}
1
+ {"version":3,"file":"portal_tenant-Vkge0BiD.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// 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// 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,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"}
@@ -135,16 +135,6 @@ async function playlists_items_remove(client, playlist_id, id) {
135
135
  return client.delete(`/api/content/playlists/${playlist_id}/items/${id}`);
136
136
  }
137
137
  /**
138
- * Get a specific page
139
- * Returns a single page by ID, scoped to the authenticated rep's company. Response shape mirrors the legacy admin endpoint GET /api/company/pages/:id so Power's fetchResource("Page") can consume it without re-mapping fields.
140
- *
141
- * @param client - Fetch client instance
142
- * @param id - id
143
- */
144
- async function pages_show(client, id) {
145
- return client.get(`/api/content/pages/${id}`);
146
- }
147
- /**
148
138
  * List share links for the current user
149
139
  * Returns a paginated list of share links.
150
140
  *
@@ -315,12 +305,6 @@ Object.defineProperty(exports, "media_update", {
315
305
  return media_update;
316
306
  }
317
307
  });
318
- Object.defineProperty(exports, "pages_show", {
319
- enumerable: true,
320
- get: function() {
321
- return pages_show;
322
- }
323
- });
324
308
  Object.defineProperty(exports, "playlists_create", {
325
309
  enumerable: true,
326
310
  get: function() {
@@ -382,4 +366,4 @@ Object.defineProperty(exports, "shares_list", {
382
366
  }
383
367
  });
384
368
 
385
- //# sourceMappingURL=portal_tenant_content-DZ8AqoU_.cjs.map
369
+ //# sourceMappingURL=portal_tenant_content-Bq8PD-Sz.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"portal_tenant_content-Bq8PD-Sz.cjs","names":[],"sources":["../../../api-clients/portal-tenant-content/src/namespaces/portal_tenant_content.ts"],"sourcesContent":["/**\n * Generated API client functions for portal_tenant_content\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-content\";\n\n// ============================================================================\n// content\n// ============================================================================\n\n/**\n * List media (own uploads and company media)\n * Returns a paginated list of the member's own uploads and company-owned media.\n *\n * @param client - Fetch client instance\n * @param [params] - params\n */\nexport async function media_list(\n client: FetchClient,\n params?: operations[\"media_list\"][\"parameters\"][\"query\"],\n): Promise<\n operations[\"media_list\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.get(`/api/content/media`, params);\n}\n\n/**\n * Create a new media item\n * Creates a new media item record.\n *\n * @param client - Fetch client instance\n * @param body - body\n */\nexport async function media_create(\n client: FetchClient,\n body: operations[\"media_create\"][\"requestBody\"][\"content\"][\"application/json\"],\n): Promise<\n operations[\"media_create\"][\"responses\"][201][\"content\"][\"application/json\"]\n> {\n return client.post(`/api/content/media`, body);\n}\n\n/**\n * Get a specific media item\n * Returns a single media item by ID.\n *\n * @param client - Fetch client instance\n * @param id - id\n */\nexport async function media_show(\n client: FetchClient,\n id: string | number,\n): Promise<\n operations[\"media_show\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.get(`/api/content/media/${id}`);\n}\n\n/**\n * Update a media item (own uploads only)\n * Updates a media item's title or description.\n *\n * @param client - Fetch client instance\n * @param id - id\n * @param body - body\n */\nexport async function media_update(\n client: FetchClient,\n id: string | number,\n body: operations[\"media_update\"][\"requestBody\"][\"content\"][\"application/json\"],\n): Promise<\n operations[\"media_update\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.patch(`/api/content/media/${id}`, body);\n}\n\n/**\n * Delete a media item (own uploads only)\n * Removes a media item.\n *\n * @param client - Fetch client instance\n * @param id - id\n */\nexport async function media_destroy(\n client: FetchClient,\n id: string | number,\n): Promise<\n operations[\"media_destroy\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.delete(`/api/content/media/${id}`);\n}\n\n/**\n * List products associated with a media item\n * Returns a paginated list of products associated with a media item.\n *\n * @param client - Fetch client instance\n * @param medium_id - medium_id\n * @param [params] - params\n */\nexport async function media_products_list(\n client: FetchClient,\n medium_id: string | number,\n params?: operations[\"media_products_list\"][\"parameters\"][\"query\"],\n): Promise<\n operations[\"media_products_list\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.get(`/api/content/media/${medium_id}/products`, params);\n}\n\n/**\n * Associate a product with a media item\n * Creates a product association for a media item.\n *\n * @param client - Fetch client instance\n * @param medium_id - medium_id\n * @param body - body\n */\nexport async function media_products_add(\n client: FetchClient,\n medium_id: string | number,\n body: operations[\"media_products_add\"][\"requestBody\"][\"content\"][\"application/json\"],\n): Promise<\n operations[\"media_products_add\"][\"responses\"][201][\"content\"][\"application/json\"]\n> {\n return client.post(`/api/content/media/${medium_id}/products`, body);\n}\n\n/**\n * Remove a product association from a media item\n * Removes a single product association from a media item.\n *\n * @param client - Fetch client instance\n * @param medium_id - medium_id\n * @param id - id\n */\nexport async function media_products_remove(\n client: FetchClient,\n medium_id: string | number,\n id: string | number,\n): Promise<\n operations[\"media_products_remove\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.delete(`/api/content/media/${medium_id}/products/${id}`);\n}\n\n/**\n * List playlists with cursor pagination\n * Returns a paginated list of playlists.\n *\n * @param client - Fetch client instance\n * @param [params] - params\n */\nexport async function playlists_list(\n client: FetchClient,\n params?: operations[\"playlists_list\"][\"parameters\"][\"query\"],\n): Promise<\n operations[\"playlists_list\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.get(`/api/content/playlists`, params);\n}\n\n/**\n * Create a new playlist\n * Creates a new playlist.\n *\n * @param client - Fetch client instance\n * @param body - body\n */\nexport async function playlists_create(\n client: FetchClient,\n body: operations[\"playlists_create\"][\"requestBody\"][\"content\"][\"application/json\"],\n): Promise<\n operations[\"playlists_create\"][\"responses\"][201][\"content\"][\"application/json\"]\n> {\n return client.post(`/api/content/playlists`, body);\n}\n\n/**\n * Get a specific playlist\n * Returns a single playlist by ID.\n *\n * @param client - Fetch client instance\n * @param id - id\n */\nexport async function playlists_show(\n client: FetchClient,\n id: string | number,\n): Promise<\n operations[\"playlists_show\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.get(`/api/content/playlists/${id}`);\n}\n\n/**\n * Update a playlist\n * Updates a playlist's title or metadata.\n *\n * @param client - Fetch client instance\n * @param id - id\n * @param body - body\n */\nexport async function playlists_update(\n client: FetchClient,\n id: string | number,\n body: operations[\"playlists_update\"][\"requestBody\"][\"content\"][\"application/json\"],\n): Promise<\n operations[\"playlists_update\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.patch(`/api/content/playlists/${id}`, body);\n}\n\n/**\n * Delete a playlist\n * Removes a playlist.\n *\n * @param client - Fetch client instance\n * @param id - id\n */\nexport async function playlists_destroy(\n client: FetchClient,\n id: string | number,\n): Promise<\n operations[\"playlists_destroy\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.delete(`/api/content/playlists/${id}`);\n}\n\n/**\n * List items in a playlist\n * Returns a paginated list of items in a playlist.\n *\n * @param client - Fetch client instance\n * @param playlist_id - playlist_id\n * @param [params] - params\n */\nexport async function playlists_items_list(\n client: FetchClient,\n playlist_id: string | number,\n params?: operations[\"playlists_items_list\"][\"parameters\"][\"query\"],\n): Promise<\n operations[\"playlists_items_list\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.get(`/api/content/playlists/${playlist_id}/items`, params);\n}\n\n/**\n * Add an item to a playlist\n * Adds a media item to a playlist.\n *\n * @param client - Fetch client instance\n * @param playlist_id - playlist_id\n * @param body - body\n */\nexport async function playlists_items_add(\n client: FetchClient,\n playlist_id: string | number,\n body: operations[\"playlists_items_add\"][\"requestBody\"][\"content\"][\"application/json\"],\n): Promise<\n operations[\"playlists_items_add\"][\"responses\"][201][\"content\"][\"application/json\"]\n> {\n return client.post(`/api/content/playlists/${playlist_id}/items`, body);\n}\n\n/**\n * Remove an item from a playlist\n * Removes a single item from a playlist.\n *\n * @param client - Fetch client instance\n * @param playlist_id - playlist_id\n * @param id - id\n */\nexport async function playlists_items_remove(\n client: FetchClient,\n playlist_id: string | number,\n id: string | number,\n): Promise<\n operations[\"playlists_items_remove\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.delete(`/api/content/playlists/${playlist_id}/items/${id}`);\n}\n\n/**\n * List share links for the current user\n * Returns a paginated list of share links.\n *\n * @param client - Fetch client instance\n * @param [params] - params\n */\nexport async function shares_list(\n client: FetchClient,\n params?: operations[\"shares_list\"][\"parameters\"][\"query\"],\n): Promise<\n operations[\"shares_list\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.get(`/api/shares`, params);\n}\n\n/**\n * Create a share link\n * Creates a new share link for content.\n *\n * @param client - Fetch client instance\n * @param body - body\n */\nexport async function shares_create(\n client: FetchClient,\n body: operations[\"shares_create\"][\"requestBody\"][\"content\"][\"application/json\"],\n): Promise<\n operations[\"shares_create\"][\"responses\"][201][\"content\"][\"application/json\"]\n> {\n return client.post(`/api/shares`, body);\n}\n\n/**\n * List DAM assets\n * Returns a paginated list of DAM assets for the company.\n *\n * @param client - Fetch client instance\n * @param [params] - params\n */\nexport async function dam_assets_list(\n client: FetchClient,\n params?: operations[\"dam_assets_list\"][\"parameters\"][\"query\"],\n): Promise<\n operations[\"dam_assets_list\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.get(`/api/content/dam/assets`, params);\n}\n\n/**\n * Create a DAM asset\n * Creates a new DAM asset. Supports two modes:\n1. **JSON placeholder** — send `application/json` with `asset[name]` to\n create a placeholder record for later file upload.\n\n2. **File upload** — send `multipart/form-data` with `asset[file]`,\n `asset[name]`, and optionally `asset[description]` and `asset[tags]`\n to upload a file and create the full asset with variants.\n *\n * @param client - Fetch client instance\n * @param body - body\n */\nexport async function dam_assets_create(\n client: FetchClient,\n body: operations[\"dam_assets_create\"][\"requestBody\"][\"content\"][\"application/json\"],\n): Promise<\n operations[\"dam_assets_create\"][\"responses\"][201][\"content\"][\"application/json\"]\n> {\n return client.post(`/api/content/dam/assets`, body);\n}\n\n/**\n * List paths for a DAM asset\n * Returns a paginated list of path aliases for a DAM asset.\n *\n * @param client - Fetch client instance\n * @param asset_code - asset_code\n * @param [params] - params\n */\nexport async function dam_asset_paths_list(\n client: FetchClient,\n asset_code: string | number,\n params?: operations[\"dam_asset_paths_list\"][\"parameters\"][\"query\"],\n): Promise<\n operations[\"dam_asset_paths_list\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.get(`/api/content/dam/assets/${asset_code}/paths`, params);\n}\n\n/**\n * Create a path alias for a DAM asset\n * Creates a new path alias for an existing DAM asset.\n *\n * @param client - Fetch client instance\n * @param asset_code - asset_code\n * @param body - body\n */\nexport async function dam_asset_paths_create(\n client: FetchClient,\n asset_code: string | number,\n body: operations[\"dam_asset_paths_create\"][\"requestBody\"][\"content\"][\"application/json\"],\n): Promise<\n operations[\"dam_asset_paths_create\"][\"responses\"][201][\"content\"][\"application/json\"]\n> {\n return client.post(`/api/content/dam/assets/${asset_code}/paths`, body);\n}\n\n/**\n * Query DAM assets using tree paths and tags\n * Searches and retrieves DAM assets using tree path pattern matching, tag-based variant filtering, wildcard name matching, and partial search. Supports cursor pagination for large result sets.\n *\n * @param client - Fetch client instance\n * @param body - body\n */\nexport async function dam_query(\n client: FetchClient,\n body: operations[\"dam_query\"][\"requestBody\"][\"content\"][\"application/json\"],\n): Promise<\n operations[\"dam_query\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.post(`/api/content/dam/query`, body);\n}\n\n/**\n * Delete a DAM asset\n * Permanently destroys a DAM asset, including its ImageKit storage, variants, and database records.\n *\n * @param client - Fetch client instance\n * @param code - code\n */\nexport async function dam_assets_destroy(\n client: FetchClient,\n code: string | number,\n): Promise<\n operations[\"dam_assets_destroy\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.delete(`/api/content/dam/assets/${code}`);\n}\n\n/**\n * Discard (soft-delete) a DAM asset\n * Soft-deletes a DAM asset. Used to discard an in-progress upload without permanently removing the record.\n *\n * @param client - Fetch client instance\n * @param code - code\n */\nexport async function dam_assets_discard(\n client: FetchClient,\n code: string | number,\n): Promise<\n operations[\"dam_assets_discard\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.patch(`/api/content/dam/assets/${code}/discard`);\n}\n\n/**\n * Toggle favorite status on a content item\n * Toggles the favorite status of a content item for the authenticated member. If the item is not currently favorited, it becomes favorited. If it is already favorited, the favorite is removed.\n *\n * @param client - Fetch client instance\n * @param body - body\n */\nexport async function favorites_toggle(\n client: FetchClient,\n body: operations[\"favorites_toggle\"][\"requestBody\"][\"content\"][\"application/json\"],\n): Promise<\n operations[\"favorites_toggle\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.post(`/api/content/favorites/toggle`, body);\n}\n"],"mappings":";;;;;;;;AAuBA,eAAsB,WACpB,QACA,QAGA;AACA,QAAO,OAAO,IAAI,sBAAsB,OAAO;;;;;;;;;AAUjD,eAAsB,aACpB,QACA,MAGA;AACA,QAAO,OAAO,KAAK,sBAAsB,KAAK;;;;;;;;;AAUhD,eAAsB,WACpB,QACA,IAGA;AACA,QAAO,OAAO,IAAI,sBAAsB,KAAK;;;;;;;;;;AAW/C,eAAsB,aACpB,QACA,IACA,MAGA;AACA,QAAO,OAAO,MAAM,sBAAsB,MAAM,KAAK;;;;;;;;;AAUvD,eAAsB,cACpB,QACA,IAGA;AACA,QAAO,OAAO,OAAO,sBAAsB,KAAK;;;;;;;;;AAgElD,eAAsB,eACpB,QACA,QAGA;AACA,QAAO,OAAO,IAAI,0BAA0B,OAAO;;;;;;;;;AAUrD,eAAsB,iBACpB,QACA,MAGA;AACA,QAAO,OAAO,KAAK,0BAA0B,KAAK;;;;;;;;;AAUpD,eAAsB,eACpB,QACA,IAGA;AACA,QAAO,OAAO,IAAI,0BAA0B,KAAK;;;;;;;;;;AAWnD,eAAsB,iBACpB,QACA,IACA,MAGA;AACA,QAAO,OAAO,MAAM,0BAA0B,MAAM,KAAK;;;;;;;;;AAU3D,eAAsB,kBACpB,QACA,IAGA;AACA,QAAO,OAAO,OAAO,0BAA0B,KAAK;;;;;;;;;;AAWtD,eAAsB,qBACpB,QACA,aACA,QAGA;AACA,QAAO,OAAO,IAAI,0BAA0B,YAAY,SAAS,OAAO;;;;;;;;;;AAW1E,eAAsB,oBACpB,QACA,aACA,MAGA;AACA,QAAO,OAAO,KAAK,0BAA0B,YAAY,SAAS,KAAK;;;;;;;;;;AAWzE,eAAsB,uBACpB,QACA,aACA,IAGA;AACA,QAAO,OAAO,OAAO,0BAA0B,YAAY,SAAS,KAAK;;;;;;;;;AAU3E,eAAsB,YACpB,QACA,QAGA;AACA,QAAO,OAAO,IAAI,eAAe,OAAO;;;;;;;;;AAU1C,eAAsB,cACpB,QACA,MAGA;AACA,QAAO,OAAO,KAAK,eAAe,KAAK;;;;;;;;;AAUzC,eAAsB,gBACpB,QACA,QAGA;AACA,QAAO,OAAO,IAAI,2BAA2B,OAAO;;;;;;;;;;;;;;;AAgBtD,eAAsB,kBACpB,QACA,MAGA;AACA,QAAO,OAAO,KAAK,2BAA2B,KAAK;;;;;;;;;;AAWrD,eAAsB,qBACpB,QACA,YACA,QAGA;AACA,QAAO,OAAO,IAAI,2BAA2B,WAAW,SAAS,OAAO;;;;;;;;;;AAW1E,eAAsB,uBACpB,QACA,YACA,MAGA;AACA,QAAO,OAAO,KAAK,2BAA2B,WAAW,SAAS,KAAK;;;;;;;;;AAUzE,eAAsB,UACpB,QACA,MAGA;AACA,QAAO,OAAO,KAAK,0BAA0B,KAAK;;;;;;;;;AAUpD,eAAsB,mBACpB,QACA,MAGA;AACA,QAAO,OAAO,OAAO,2BAA2B,OAAO;;;;;;;;;AAUzD,eAAsB,mBACpB,QACA,MAGA;AACA,QAAO,OAAO,MAAM,2BAA2B,KAAK,UAAU"}
@@ -135,16 +135,6 @@ async function playlists_items_remove(client, playlist_id, id) {
135
135
  return client.delete(`/api/content/playlists/${playlist_id}/items/${id}`);
136
136
  }
137
137
  /**
138
- * Get a specific page
139
- * Returns a single page by ID, scoped to the authenticated rep's company. Response shape mirrors the legacy admin endpoint GET /api/company/pages/:id so Power's fetchResource("Page") can consume it without re-mapping fields.
140
- *
141
- * @param client - Fetch client instance
142
- * @param id - id
143
- */
144
- async function pages_show(client, id) {
145
- return client.get(`/api/content/pages/${id}`);
146
- }
147
- /**
148
138
  * List share links for the current user
149
139
  * Returns a paginated list of share links.
150
140
  *
@@ -243,6 +233,6 @@ async function dam_assets_discard(client, code) {
243
233
  return client.patch(`/api/content/dam/assets/${code}/discard`);
244
234
  }
245
235
  //#endregion
246
- export { shares_list as C, shares_create as S, playlists_items_list as _, dam_assets_discard as a, playlists_show as b, media_create as c, media_show as d, media_update as f, playlists_items_add as g, playlists_destroy as h, dam_assets_destroy as i, media_destroy as l, playlists_create as m, dam_asset_paths_list as n, dam_assets_list as o, pages_show as p, dam_assets_create as r, dam_query as s, dam_asset_paths_create as t, media_list as u, playlists_items_remove as v, playlists_update as x, playlists_list as y };
236
+ export { shares_list as S, playlists_items_remove as _, dam_assets_discard as a, playlists_update as b, media_create as c, media_show as d, media_update as f, playlists_items_list as g, playlists_items_add as h, dam_assets_destroy as i, media_destroy as l, playlists_destroy as m, dam_asset_paths_list as n, dam_assets_list as o, playlists_create as p, dam_assets_create as r, dam_query as s, dam_asset_paths_create as t, media_list as u, playlists_list as v, shares_create as x, playlists_show as y };
247
237
 
248
- //# sourceMappingURL=portal_tenant_content-5fNROcju.mjs.map
238
+ //# sourceMappingURL=portal_tenant_content-C8DCQLR3.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"portal_tenant_content-C8DCQLR3.mjs","names":[],"sources":["../../../api-clients/portal-tenant-content/src/namespaces/portal_tenant_content.ts"],"sourcesContent":["/**\n * Generated API client functions for portal_tenant_content\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-content\";\n\n// ============================================================================\n// content\n// ============================================================================\n\n/**\n * List media (own uploads and company media)\n * Returns a paginated list of the member's own uploads and company-owned media.\n *\n * @param client - Fetch client instance\n * @param [params] - params\n */\nexport async function media_list(\n client: FetchClient,\n params?: operations[\"media_list\"][\"parameters\"][\"query\"],\n): Promise<\n operations[\"media_list\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.get(`/api/content/media`, params);\n}\n\n/**\n * Create a new media item\n * Creates a new media item record.\n *\n * @param client - Fetch client instance\n * @param body - body\n */\nexport async function media_create(\n client: FetchClient,\n body: operations[\"media_create\"][\"requestBody\"][\"content\"][\"application/json\"],\n): Promise<\n operations[\"media_create\"][\"responses\"][201][\"content\"][\"application/json\"]\n> {\n return client.post(`/api/content/media`, body);\n}\n\n/**\n * Get a specific media item\n * Returns a single media item by ID.\n *\n * @param client - Fetch client instance\n * @param id - id\n */\nexport async function media_show(\n client: FetchClient,\n id: string | number,\n): Promise<\n operations[\"media_show\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.get(`/api/content/media/${id}`);\n}\n\n/**\n * Update a media item (own uploads only)\n * Updates a media item's title or description.\n *\n * @param client - Fetch client instance\n * @param id - id\n * @param body - body\n */\nexport async function media_update(\n client: FetchClient,\n id: string | number,\n body: operations[\"media_update\"][\"requestBody\"][\"content\"][\"application/json\"],\n): Promise<\n operations[\"media_update\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.patch(`/api/content/media/${id}`, body);\n}\n\n/**\n * Delete a media item (own uploads only)\n * Removes a media item.\n *\n * @param client - Fetch client instance\n * @param id - id\n */\nexport async function media_destroy(\n client: FetchClient,\n id: string | number,\n): Promise<\n operations[\"media_destroy\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.delete(`/api/content/media/${id}`);\n}\n\n/**\n * List products associated with a media item\n * Returns a paginated list of products associated with a media item.\n *\n * @param client - Fetch client instance\n * @param medium_id - medium_id\n * @param [params] - params\n */\nexport async function media_products_list(\n client: FetchClient,\n medium_id: string | number,\n params?: operations[\"media_products_list\"][\"parameters\"][\"query\"],\n): Promise<\n operations[\"media_products_list\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.get(`/api/content/media/${medium_id}/products`, params);\n}\n\n/**\n * Associate a product with a media item\n * Creates a product association for a media item.\n *\n * @param client - Fetch client instance\n * @param medium_id - medium_id\n * @param body - body\n */\nexport async function media_products_add(\n client: FetchClient,\n medium_id: string | number,\n body: operations[\"media_products_add\"][\"requestBody\"][\"content\"][\"application/json\"],\n): Promise<\n operations[\"media_products_add\"][\"responses\"][201][\"content\"][\"application/json\"]\n> {\n return client.post(`/api/content/media/${medium_id}/products`, body);\n}\n\n/**\n * Remove a product association from a media item\n * Removes a single product association from a media item.\n *\n * @param client - Fetch client instance\n * @param medium_id - medium_id\n * @param id - id\n */\nexport async function media_products_remove(\n client: FetchClient,\n medium_id: string | number,\n id: string | number,\n): Promise<\n operations[\"media_products_remove\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.delete(`/api/content/media/${medium_id}/products/${id}`);\n}\n\n/**\n * List playlists with cursor pagination\n * Returns a paginated list of playlists.\n *\n * @param client - Fetch client instance\n * @param [params] - params\n */\nexport async function playlists_list(\n client: FetchClient,\n params?: operations[\"playlists_list\"][\"parameters\"][\"query\"],\n): Promise<\n operations[\"playlists_list\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.get(`/api/content/playlists`, params);\n}\n\n/**\n * Create a new playlist\n * Creates a new playlist.\n *\n * @param client - Fetch client instance\n * @param body - body\n */\nexport async function playlists_create(\n client: FetchClient,\n body: operations[\"playlists_create\"][\"requestBody\"][\"content\"][\"application/json\"],\n): Promise<\n operations[\"playlists_create\"][\"responses\"][201][\"content\"][\"application/json\"]\n> {\n return client.post(`/api/content/playlists`, body);\n}\n\n/**\n * Get a specific playlist\n * Returns a single playlist by ID.\n *\n * @param client - Fetch client instance\n * @param id - id\n */\nexport async function playlists_show(\n client: FetchClient,\n id: string | number,\n): Promise<\n operations[\"playlists_show\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.get(`/api/content/playlists/${id}`);\n}\n\n/**\n * Update a playlist\n * Updates a playlist's title or metadata.\n *\n * @param client - Fetch client instance\n * @param id - id\n * @param body - body\n */\nexport async function playlists_update(\n client: FetchClient,\n id: string | number,\n body: operations[\"playlists_update\"][\"requestBody\"][\"content\"][\"application/json\"],\n): Promise<\n operations[\"playlists_update\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.patch(`/api/content/playlists/${id}`, body);\n}\n\n/**\n * Delete a playlist\n * Removes a playlist.\n *\n * @param client - Fetch client instance\n * @param id - id\n */\nexport async function playlists_destroy(\n client: FetchClient,\n id: string | number,\n): Promise<\n operations[\"playlists_destroy\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.delete(`/api/content/playlists/${id}`);\n}\n\n/**\n * List items in a playlist\n * Returns a paginated list of items in a playlist.\n *\n * @param client - Fetch client instance\n * @param playlist_id - playlist_id\n * @param [params] - params\n */\nexport async function playlists_items_list(\n client: FetchClient,\n playlist_id: string | number,\n params?: operations[\"playlists_items_list\"][\"parameters\"][\"query\"],\n): Promise<\n operations[\"playlists_items_list\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.get(`/api/content/playlists/${playlist_id}/items`, params);\n}\n\n/**\n * Add an item to a playlist\n * Adds a media item to a playlist.\n *\n * @param client - Fetch client instance\n * @param playlist_id - playlist_id\n * @param body - body\n */\nexport async function playlists_items_add(\n client: FetchClient,\n playlist_id: string | number,\n body: operations[\"playlists_items_add\"][\"requestBody\"][\"content\"][\"application/json\"],\n): Promise<\n operations[\"playlists_items_add\"][\"responses\"][201][\"content\"][\"application/json\"]\n> {\n return client.post(`/api/content/playlists/${playlist_id}/items`, body);\n}\n\n/**\n * Remove an item from a playlist\n * Removes a single item from a playlist.\n *\n * @param client - Fetch client instance\n * @param playlist_id - playlist_id\n * @param id - id\n */\nexport async function playlists_items_remove(\n client: FetchClient,\n playlist_id: string | number,\n id: string | number,\n): Promise<\n operations[\"playlists_items_remove\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.delete(`/api/content/playlists/${playlist_id}/items/${id}`);\n}\n\n/**\n * List share links for the current user\n * Returns a paginated list of share links.\n *\n * @param client - Fetch client instance\n * @param [params] - params\n */\nexport async function shares_list(\n client: FetchClient,\n params?: operations[\"shares_list\"][\"parameters\"][\"query\"],\n): Promise<\n operations[\"shares_list\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.get(`/api/shares`, params);\n}\n\n/**\n * Create a share link\n * Creates a new share link for content.\n *\n * @param client - Fetch client instance\n * @param body - body\n */\nexport async function shares_create(\n client: FetchClient,\n body: operations[\"shares_create\"][\"requestBody\"][\"content\"][\"application/json\"],\n): Promise<\n operations[\"shares_create\"][\"responses\"][201][\"content\"][\"application/json\"]\n> {\n return client.post(`/api/shares`, body);\n}\n\n/**\n * List DAM assets\n * Returns a paginated list of DAM assets for the company.\n *\n * @param client - Fetch client instance\n * @param [params] - params\n */\nexport async function dam_assets_list(\n client: FetchClient,\n params?: operations[\"dam_assets_list\"][\"parameters\"][\"query\"],\n): Promise<\n operations[\"dam_assets_list\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.get(`/api/content/dam/assets`, params);\n}\n\n/**\n * Create a DAM asset\n * Creates a new DAM asset. Supports two modes:\n1. **JSON placeholder** — send `application/json` with `asset[name]` to\n create a placeholder record for later file upload.\n\n2. **File upload** — send `multipart/form-data` with `asset[file]`,\n `asset[name]`, and optionally `asset[description]` and `asset[tags]`\n to upload a file and create the full asset with variants.\n *\n * @param client - Fetch client instance\n * @param body - body\n */\nexport async function dam_assets_create(\n client: FetchClient,\n body: operations[\"dam_assets_create\"][\"requestBody\"][\"content\"][\"application/json\"],\n): Promise<\n operations[\"dam_assets_create\"][\"responses\"][201][\"content\"][\"application/json\"]\n> {\n return client.post(`/api/content/dam/assets`, body);\n}\n\n/**\n * List paths for a DAM asset\n * Returns a paginated list of path aliases for a DAM asset.\n *\n * @param client - Fetch client instance\n * @param asset_code - asset_code\n * @param [params] - params\n */\nexport async function dam_asset_paths_list(\n client: FetchClient,\n asset_code: string | number,\n params?: operations[\"dam_asset_paths_list\"][\"parameters\"][\"query\"],\n): Promise<\n operations[\"dam_asset_paths_list\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.get(`/api/content/dam/assets/${asset_code}/paths`, params);\n}\n\n/**\n * Create a path alias for a DAM asset\n * Creates a new path alias for an existing DAM asset.\n *\n * @param client - Fetch client instance\n * @param asset_code - asset_code\n * @param body - body\n */\nexport async function dam_asset_paths_create(\n client: FetchClient,\n asset_code: string | number,\n body: operations[\"dam_asset_paths_create\"][\"requestBody\"][\"content\"][\"application/json\"],\n): Promise<\n operations[\"dam_asset_paths_create\"][\"responses\"][201][\"content\"][\"application/json\"]\n> {\n return client.post(`/api/content/dam/assets/${asset_code}/paths`, body);\n}\n\n/**\n * Query DAM assets using tree paths and tags\n * Searches and retrieves DAM assets using tree path pattern matching, tag-based variant filtering, wildcard name matching, and partial search. Supports cursor pagination for large result sets.\n *\n * @param client - Fetch client instance\n * @param body - body\n */\nexport async function dam_query(\n client: FetchClient,\n body: operations[\"dam_query\"][\"requestBody\"][\"content\"][\"application/json\"],\n): Promise<\n operations[\"dam_query\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.post(`/api/content/dam/query`, body);\n}\n\n/**\n * Delete a DAM asset\n * Permanently destroys a DAM asset, including its ImageKit storage, variants, and database records.\n *\n * @param client - Fetch client instance\n * @param code - code\n */\nexport async function dam_assets_destroy(\n client: FetchClient,\n code: string | number,\n): Promise<\n operations[\"dam_assets_destroy\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.delete(`/api/content/dam/assets/${code}`);\n}\n\n/**\n * Discard (soft-delete) a DAM asset\n * Soft-deletes a DAM asset. Used to discard an in-progress upload without permanently removing the record.\n *\n * @param client - Fetch client instance\n * @param code - code\n */\nexport async function dam_assets_discard(\n client: FetchClient,\n code: string | number,\n): Promise<\n operations[\"dam_assets_discard\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.patch(`/api/content/dam/assets/${code}/discard`);\n}\n\n/**\n * Toggle favorite status on a content item\n * Toggles the favorite status of a content item for the authenticated member. If the item is not currently favorited, it becomes favorited. If it is already favorited, the favorite is removed.\n *\n * @param client - Fetch client instance\n * @param body - body\n */\nexport async function favorites_toggle(\n client: FetchClient,\n body: operations[\"favorites_toggle\"][\"requestBody\"][\"content\"][\"application/json\"],\n): Promise<\n operations[\"favorites_toggle\"][\"responses\"][200][\"content\"][\"application/json\"]\n> {\n return client.post(`/api/content/favorites/toggle`, body);\n}\n"],"mappings":";;;;;;;;AAuBA,eAAsB,WACpB,QACA,QAGA;AACA,QAAO,OAAO,IAAI,sBAAsB,OAAO;;;;;;;;;AAUjD,eAAsB,aACpB,QACA,MAGA;AACA,QAAO,OAAO,KAAK,sBAAsB,KAAK;;;;;;;;;AAUhD,eAAsB,WACpB,QACA,IAGA;AACA,QAAO,OAAO,IAAI,sBAAsB,KAAK;;;;;;;;;;AAW/C,eAAsB,aACpB,QACA,IACA,MAGA;AACA,QAAO,OAAO,MAAM,sBAAsB,MAAM,KAAK;;;;;;;;;AAUvD,eAAsB,cACpB,QACA,IAGA;AACA,QAAO,OAAO,OAAO,sBAAsB,KAAK;;;;;;;;;AAgElD,eAAsB,eACpB,QACA,QAGA;AACA,QAAO,OAAO,IAAI,0BAA0B,OAAO;;;;;;;;;AAUrD,eAAsB,iBACpB,QACA,MAGA;AACA,QAAO,OAAO,KAAK,0BAA0B,KAAK;;;;;;;;;AAUpD,eAAsB,eACpB,QACA,IAGA;AACA,QAAO,OAAO,IAAI,0BAA0B,KAAK;;;;;;;;;;AAWnD,eAAsB,iBACpB,QACA,IACA,MAGA;AACA,QAAO,OAAO,MAAM,0BAA0B,MAAM,KAAK;;;;;;;;;AAU3D,eAAsB,kBACpB,QACA,IAGA;AACA,QAAO,OAAO,OAAO,0BAA0B,KAAK;;;;;;;;;;AAWtD,eAAsB,qBACpB,QACA,aACA,QAGA;AACA,QAAO,OAAO,IAAI,0BAA0B,YAAY,SAAS,OAAO;;;;;;;;;;AAW1E,eAAsB,oBACpB,QACA,aACA,MAGA;AACA,QAAO,OAAO,KAAK,0BAA0B,YAAY,SAAS,KAAK;;;;;;;;;;AAWzE,eAAsB,uBACpB,QACA,aACA,IAGA;AACA,QAAO,OAAO,OAAO,0BAA0B,YAAY,SAAS,KAAK;;;;;;;;;AAU3E,eAAsB,YACpB,QACA,QAGA;AACA,QAAO,OAAO,IAAI,eAAe,OAAO;;;;;;;;;AAU1C,eAAsB,cACpB,QACA,MAGA;AACA,QAAO,OAAO,KAAK,eAAe,KAAK;;;;;;;;;AAUzC,eAAsB,gBACpB,QACA,QAGA;AACA,QAAO,OAAO,IAAI,2BAA2B,OAAO;;;;;;;;;;;;;;;AAgBtD,eAAsB,kBACpB,QACA,MAGA;AACA,QAAO,OAAO,KAAK,2BAA2B,KAAK;;;;;;;;;;AAWrD,eAAsB,qBACpB,QACA,YACA,QAGA;AACA,QAAO,OAAO,IAAI,2BAA2B,WAAW,SAAS,OAAO;;;;;;;;;;AAW1E,eAAsB,uBACpB,QACA,YACA,MAGA;AACA,QAAO,OAAO,KAAK,2BAA2B,WAAW,SAAS,KAAK;;;;;;;;;AAUzE,eAAsB,UACpB,QACA,MAGA;AACA,QAAO,OAAO,KAAK,0BAA0B,KAAK;;;;;;;;;AAUpD,eAAsB,mBACpB,QACA,MAGA;AACA,QAAO,OAAO,OAAO,2BAA2B,OAAO;;;;;;;;;AAUzD,eAAsB,mBACpB,QACA,MAGA;AACA,QAAO,OAAO,MAAM,2BAA2B,KAAK,UAAU"}