@managesome/eposmatic-toolkit 0.4.86 → 0.4.88

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.
@@ -0,0 +1,15 @@
1
+ // Auto-split from constants/ENUMS.ts — see ENUMS.ts barrel for exports.
2
+ // Identity Platform tenant ids for tenant-scoped apps (not Mongo tenant_id).
3
+ export var APP_TENANT_ENUM;
4
+ (function (APP_TENANT_ENUM) {
5
+ APP_TENANT_ENUM["POS"] = "app-pos";
6
+ APP_TENANT_ENUM["ADMIN"] = "app-admin";
7
+ APP_TENANT_ENUM["WAREHOUSE"] = "app-warehouse";
8
+ APP_TENANT_ENUM["DASHBOARD"] = "app-dashboard";
9
+ APP_TENANT_ENUM["REPORTS"] = "app-reports";
10
+ APP_TENANT_ENUM["ORDERING"] = "app-ordering";
11
+ APP_TENANT_ENUM["RIDER"] = "app-rider";
12
+ APP_TENANT_ENUM["DIALER"] = "app-dialer";
13
+ APP_TENANT_ENUM["OMS"] = "app-oms";
14
+ })(APP_TENANT_ENUM || (APP_TENANT_ENUM = {}));
15
+ export const ALL_APP_TENANT_IDS = Object.values(APP_TENANT_ENUM);
@@ -0,0 +1,12 @@
1
+ export declare enum APP_TENANT_ENUM {
2
+ POS = "app-pos",
3
+ ADMIN = "app-admin",
4
+ WAREHOUSE = "app-warehouse",
5
+ DASHBOARD = "app-dashboard",
6
+ REPORTS = "app-reports",
7
+ ORDERING = "app-ordering",
8
+ RIDER = "app-rider",
9
+ DIALER = "app-dialer",
10
+ OMS = "app-oms"
11
+ }
12
+ export declare const ALL_APP_TENANT_IDS: APP_TENANT_ENUM[];
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ // Auto-split from constants/ENUMS.ts — see ENUMS.ts barrel for exports.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ALL_APP_TENANT_IDS = exports.APP_TENANT_ENUM = void 0;
5
+ // Identity Platform tenant ids for tenant-scoped apps (not Mongo tenant_id).
6
+ var APP_TENANT_ENUM;
7
+ (function (APP_TENANT_ENUM) {
8
+ APP_TENANT_ENUM["POS"] = "app-pos";
9
+ APP_TENANT_ENUM["ADMIN"] = "app-admin";
10
+ APP_TENANT_ENUM["WAREHOUSE"] = "app-warehouse";
11
+ APP_TENANT_ENUM["DASHBOARD"] = "app-dashboard";
12
+ APP_TENANT_ENUM["REPORTS"] = "app-reports";
13
+ APP_TENANT_ENUM["ORDERING"] = "app-ordering";
14
+ APP_TENANT_ENUM["RIDER"] = "app-rider";
15
+ APP_TENANT_ENUM["DIALER"] = "app-dialer";
16
+ APP_TENANT_ENUM["OMS"] = "app-oms";
17
+ })(APP_TENANT_ENUM || (exports.APP_TENANT_ENUM = APP_TENANT_ENUM = {}));
18
+ exports.ALL_APP_TENANT_IDS = Object.values(APP_TENANT_ENUM);
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const ENUMS_1 = require("../constants/ENUMS");
4
+ test('APP_TENANT_ENUM lists every tenant-scoped app and its pool tenant id', () => {
5
+ expect(ENUMS_1.APP_TENANT_ENUM).toEqual({
6
+ POS: 'app-pos',
7
+ ADMIN: 'app-admin',
8
+ WAREHOUSE: 'app-warehouse',
9
+ DASHBOARD: 'app-dashboard',
10
+ REPORTS: 'app-reports',
11
+ RIDER: 'app-rider',
12
+ ORDERING: 'app-ordering',
13
+ DIALER: 'app-dialer',
14
+ OMS: 'app-oms',
15
+ });
16
+ });
17
+ test('the values are unique Identity Platform tenant ids', () => {
18
+ expect(ENUMS_1.ALL_APP_TENANT_IDS).toHaveLength(9);
19
+ expect(new Set(ENUMS_1.ALL_APP_TENANT_IDS).size).toBe(ENUMS_1.ALL_APP_TENANT_IDS.length);
20
+ for (const tenantId of ENUMS_1.ALL_APP_TENANT_IDS) {
21
+ expect(tenantId).toMatch(/^app-[a-z]+$/);
22
+ }
23
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@managesome/eposmatic-toolkit",
3
- "version": "0.4.86",
3
+ "version": "0.4.88",
4
4
  "description": "A Toolkit Library for Eposmatic",
5
5
  "main": "lib/index.js",
6
6
  "module": "esm/index.js",