@bahmni/services 0.0.1-dev.424 → 0.0.1-dev.427
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
|
@@ -14619,9 +14619,9 @@ const eE = "/bahmni_config/openmrs/apps", xc = "org.bahmni.home.dashboard", tE =
|
|
|
14619
14619
|
}), sE = (t, e) => e === void 0 ? t : t.filter((r) => r.requiredPrivilege ? e.includes(r.requiredPrivilege) : !0), oE = (t) => {
|
|
14620
14620
|
const e = navigator.onLine;
|
|
14621
14621
|
return t.filter((r) => !(r.exclusiveOnlineModule && !e || r.exclusiveOfflineModule && e));
|
|
14622
|
-
}, aE = (t) => [...t].sort((e, r) => (e.order ?? 0) - (r.order ?? 0)), uv = async (t = xc, e) => {
|
|
14623
|
-
const
|
|
14624
|
-
return aE(
|
|
14622
|
+
}, aE = (t) => [...t].sort((e, r) => (e.order ?? 0) - (r.order ?? 0)), uv = async (t = xc, e, r = "home") => {
|
|
14623
|
+
const n = await rE(r), s = nE(n, t), o = sE(s, e), a = oE(o);
|
|
14624
|
+
return aE(a);
|
|
14625
14625
|
}, iE = (t, e) => W + `/availableStocks?productUuid=${t}&locationUuid=${e}`, lv = async (t, e) => await V(
|
|
14626
14626
|
iE(t, e)
|
|
14627
14627
|
), cE = (t, e, r) => {
|
|
@@ -16,5 +16,5 @@ export declare const getExtensionsByPoint: (extensions: Module[], extensionPoint
|
|
|
16
16
|
export declare const filterByPrivilege: (extensions: Module[], userPrivileges?: string[]) => Module[];
|
|
17
17
|
export declare const filterByOnlineStatus: (modules: Module[]) => Module[];
|
|
18
18
|
export declare const sortByOrder: (modules: Module[]) => Module[];
|
|
19
|
-
export declare const getVisibleModules: (extensionPointId?: string, userPrivileges?: string[]) => Promise<Module[]>;
|
|
19
|
+
export declare const getVisibleModules: (extensionPointId?: string, userPrivileges?: string[], appName?: string) => Promise<Module[]>;
|
|
20
20
|
//# sourceMappingURL=moduleService.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"moduleService.d.ts","sourceRoot":"","sources":["../../src/moduleService/moduleService.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,gBAAgB,EAAE,MAAM,CAAC;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAClC;AAQD,eAAO,MAAM,qBAAqB,GAChC,UAAS,MAAe,KACvB,OAAO,CAAC,MAAM,EAAE,CAelB,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAC/B,YAAY,MAAM,EAAE,EACpB,mBAAkB,MAA6B,EAC/C,OAAM,MAAe,KACpB,MAAM,EAMR,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAC5B,YAAY,MAAM,EAAE,EACpB,iBAAiB,MAAM,EAAE,KACxB,MAAM,EAaR,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,SAAS,MAAM,EAAE,KAAG,MAAM,EAY9D,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,SAAS,MAAM,EAAE,KAAG,MAAM,EAErD,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAC5B,mBAAkB,MAA6B,EAC/C,iBAAiB,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"moduleService.d.ts","sourceRoot":"","sources":["../../src/moduleService/moduleService.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,gBAAgB,EAAE,MAAM,CAAC;IACzB,IAAI,EAAE,MAAM,CAAC;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