@eintrek/erp-shell 0.1.58 → 0.1.59

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1435,7 +1435,7 @@ function platformApiBase(app) {
1435
1435
  * This package's version, attached to help messages so the back office can
1436
1436
  * tell which shell a report came from. Keep in step with package.json.
1437
1437
  */
1438
- const SHELL_VERSION = "0.1.58";
1438
+ const SHELL_VERSION = "0.1.59";
1439
1439
 
1440
1440
  const HELP_APP_LABEL = {
1441
1441
  platform: "แพลตฟอร์ม",
@@ -1443,6 +1443,8 @@ const HELP_APP_LABEL = {
1443
1443
  peoplx: "Peoplx",
1444
1444
  plannex: "Plannex",
1445
1445
  invenx: "Invenx",
1446
+ sellx: "Sellx",
1447
+ carex: "Carex",
1446
1448
  other: "อื่น ๆ",
1447
1449
  };
1448
1450
  function originOf(value) {
@@ -1477,6 +1479,10 @@ function detectHelpApp(explicit) {
1477
1479
  return "plannex";
1478
1480
  if (host.startsWith("invenx."))
1479
1481
  return "invenx";
1482
+ if (host.startsWith("sellx."))
1483
+ return "sellx";
1484
+ if (host.startsWith("carex."))
1485
+ return "carex";
1480
1486
  if (host.startsWith("platform.") || host === "antniti.com" || host === "www.antniti.com") {
1481
1487
  return "platform";
1482
1488
  }
@@ -1487,6 +1493,8 @@ function detectHelpApp(explicit) {
1487
1493
  ["invenx", process.env.NEXT_PUBLIC_INVENX_URL],
1488
1494
  ["plannex", process.env.NEXT_PUBLIC_PLANNEX_URL],
1489
1495
  ["peoplx", process.env.NEXT_PUBLIC_HR_URL],
1496
+ ["sellx", process.env.NEXT_PUBLIC_SELLX_URL],
1497
+ ["carex", process.env.NEXT_PUBLIC_CAREX_URL],
1490
1498
  ];
1491
1499
  for (const [id, url] of configured) {
1492
1500
  if (originOf(url) === here)
@@ -1874,6 +1882,10 @@ const PLAN_FEATURES = {
1874
1882
  MODULE_INVENTORY: "module.inventory",
1875
1883
  MODULE_PROJECT: "module.project",
1876
1884
  MODULE_SECRETARIAT: "module.secretariat",
1885
+ /** Sellx add-on: POS, members and chat commerce. */
1886
+ MODULE_SELLX: "module.sellx",
1887
+ /** Carex add-on: help desk, SLA and knowledge base. */
1888
+ MODULE_CAREX: "module.carex",
1877
1889
  /** AI pack (paid or trial): AI calls on AntNiti's key while credits remain. */
1878
1890
  AI: "ai",
1879
1891
  };
@@ -1958,6 +1970,20 @@ const APPS = [
1958
1970
  features: [PLAN_FEATURES.MODULE_HR],
1959
1971
  baseUrl: () => normaliseBase(process.env.NEXT_PUBLIC_HR_URL, "https://peoplx.antniti.com"),
1960
1972
  },
1973
+ {
1974
+ id: "sellx",
1975
+ label: "Sellx",
1976
+ icon: jsxRuntime.jsx(lucideReact.Store, { className: "h-4 w-4 shrink-0" }),
1977
+ features: [PLAN_FEATURES.MODULE_SELLX],
1978
+ baseUrl: () => normaliseBase(process.env.NEXT_PUBLIC_SELLX_URL, "https://sellx.antniti.com"),
1979
+ },
1980
+ {
1981
+ id: "carex",
1982
+ label: "Carex",
1983
+ icon: jsxRuntime.jsx(lucideReact.Headset, { className: "h-4 w-4 shrink-0" }),
1984
+ features: [PLAN_FEATURES.MODULE_CAREX],
1985
+ baseUrl: () => normaliseBase(process.env.NEXT_PUBLIC_CAREX_URL, "https://carex.antniti.com"),
1986
+ },
1961
1987
  ];
1962
1988
  /**
1963
1989
  * Builds the cross-app link list for <NavUser systemLinks>.