cloud-ide-shared 1.0.42 → 1.0.45
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/fesm2022/cloud-ide-shared.mjs +173 -34
- package/fesm2022/cloud-ide-shared.mjs.map +1 -1
- package/index.d.ts +21 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -975,6 +975,27 @@ declare class CideSharedOrgStructureComponent implements OnInit {
|
|
|
975
975
|
* Build organization structure from flat entity list
|
|
976
976
|
*/
|
|
977
977
|
private buildOrgStructure;
|
|
978
|
+
/**
|
|
979
|
+
* Remove duplicate entities based on _id
|
|
980
|
+
* Priority logic when duplicates exist:
|
|
981
|
+
* 1. Keep entity with syenm_isdefault: true
|
|
982
|
+
* 2. If neither/both default, keep one with syenm_isloggedin: true
|
|
983
|
+
* 3. Otherwise, keep the one with more non-null fields
|
|
984
|
+
*/
|
|
985
|
+
private removeDuplicateEntities;
|
|
986
|
+
/**
|
|
987
|
+
* Determine if a new entity should replace the existing one
|
|
988
|
+
* Based on priority: default status > logged in status > field completeness
|
|
989
|
+
*/
|
|
990
|
+
private shouldReplaceEntity;
|
|
991
|
+
/**
|
|
992
|
+
* Get human-readable reason for entity replacement decision
|
|
993
|
+
*/
|
|
994
|
+
private getReplacementReason;
|
|
995
|
+
/**
|
|
996
|
+
* Count non-null fields in an entity
|
|
997
|
+
*/
|
|
998
|
+
private countNonNullFields;
|
|
978
999
|
/**
|
|
979
1000
|
* Calculate level of a node based on its parent
|
|
980
1001
|
*/
|