@optifye/dashboard-core 6.11.1 → 6.11.2
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.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -14
- package/dist/index.mjs +3 -14
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -4630,7 +4630,7 @@ declare class UserManagementService {
|
|
|
4630
4630
|
* @param roleFilter - Optional filter by role
|
|
4631
4631
|
* @returns Promise<CompanyUserWithDetails[]>
|
|
4632
4632
|
*/
|
|
4633
|
-
getCompanyUsers(companyId: string, roleFilter?:
|
|
4633
|
+
getCompanyUsers(companyId: string, roleFilter?: string): Promise<CompanyUserWithDetails[]>;
|
|
4634
4634
|
/**
|
|
4635
4635
|
* Get ALL users across all companies (optifye role only)
|
|
4636
4636
|
* This method bypasses company filtering and returns all users in the system
|
package/dist/index.d.ts
CHANGED
|
@@ -4630,7 +4630,7 @@ declare class UserManagementService {
|
|
|
4630
4630
|
* @param roleFilter - Optional filter by role
|
|
4631
4631
|
* @returns Promise<CompanyUserWithDetails[]>
|
|
4632
4632
|
*/
|
|
4633
|
-
getCompanyUsers(companyId: string, roleFilter?:
|
|
4633
|
+
getCompanyUsers(companyId: string, roleFilter?: string): Promise<CompanyUserWithDetails[]>;
|
|
4634
4634
|
/**
|
|
4635
4635
|
* Get ALL users across all companies (optifye role only)
|
|
4636
4636
|
* This method bypasses company filtering and returns all users in the system
|
package/dist/index.js
CHANGED
|
@@ -69746,20 +69746,9 @@ var ImprovementCenterView = () => {
|
|
|
69746
69746
|
if (!supabase || !companyId) return;
|
|
69747
69747
|
try {
|
|
69748
69748
|
const userService2 = createUserManagementService(supabase);
|
|
69749
|
-
const
|
|
69750
|
-
|
|
69751
|
-
|
|
69752
|
-
);
|
|
69753
|
-
roleResults.forEach((result, index) => {
|
|
69754
|
-
if (result.status === "rejected") {
|
|
69755
|
-
console.warn(
|
|
69756
|
-
`[ImprovementCenterView] Failed to load ${roleFilters[index]} users`,
|
|
69757
|
-
result.reason
|
|
69758
|
-
);
|
|
69759
|
-
}
|
|
69760
|
-
});
|
|
69761
|
-
const users = roleResults.flatMap(
|
|
69762
|
-
(result) => result.status === "fulfilled" ? result.value : []
|
|
69749
|
+
const users = await userService2.getCompanyUsers(
|
|
69750
|
+
companyId,
|
|
69751
|
+
"supervisor,owner,industrial_engineer"
|
|
69763
69752
|
);
|
|
69764
69753
|
if (cancelled) return;
|
|
69765
69754
|
const membersById = /* @__PURE__ */ new Map();
|
package/dist/index.mjs
CHANGED
|
@@ -69717,20 +69717,9 @@ var ImprovementCenterView = () => {
|
|
|
69717
69717
|
if (!supabase || !companyId) return;
|
|
69718
69718
|
try {
|
|
69719
69719
|
const userService2 = createUserManagementService(supabase);
|
|
69720
|
-
const
|
|
69721
|
-
|
|
69722
|
-
|
|
69723
|
-
);
|
|
69724
|
-
roleResults.forEach((result, index) => {
|
|
69725
|
-
if (result.status === "rejected") {
|
|
69726
|
-
console.warn(
|
|
69727
|
-
`[ImprovementCenterView] Failed to load ${roleFilters[index]} users`,
|
|
69728
|
-
result.reason
|
|
69729
|
-
);
|
|
69730
|
-
}
|
|
69731
|
-
});
|
|
69732
|
-
const users = roleResults.flatMap(
|
|
69733
|
-
(result) => result.status === "fulfilled" ? result.value : []
|
|
69720
|
+
const users = await userService2.getCompanyUsers(
|
|
69721
|
+
companyId,
|
|
69722
|
+
"supervisor,owner,industrial_engineer"
|
|
69734
69723
|
);
|
|
69735
69724
|
if (cancelled) return;
|
|
69736
69725
|
const membersById = /* @__PURE__ */ new Map();
|