mftsccs-browser 2.1.242-dev → 2.1.244-dev

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.
Files changed (271) hide show
  1. package/README.md +1 -1
  2. package/dist/main.bundle.js +2 -44551
  3. package/dist/main.bundle.js.LICENSE.txt +1 -0
  4. package/dist/serviceWorker.bundle.js +2 -45399
  5. package/dist/serviceWorker.bundle.js.LICENSE.txt +1 -0
  6. package/dist/types/AccessTracker/accessTracker.d.ts +72 -0
  7. package/dist/types/Anomaly/anomaly.d.ts +103 -0
  8. package/dist/types/Api/Create/CreateTheCharacter.d.ts +24 -0
  9. package/dist/types/Api/Create/CreateTheConceptApi.d.ts +20 -0
  10. package/dist/types/Api/Create/CreateTheConnectionApi.d.ts +18 -0
  11. package/dist/types/Api/Create/CreateTheGhostConceptApi.d.ts +28 -0
  12. package/dist/types/Api/Create/CreateTheGhostConnectionApi.d.ts +18 -0
  13. package/dist/types/Api/Create/CreateTheTextData.d.ts +18 -0
  14. package/dist/types/Api/Delete/DeleteConceptInBackend.d.ts +14 -0
  15. package/dist/types/Api/Delete/DeleteUserInBackend.d.ts +19 -0
  16. package/dist/types/Api/DeleteConnectionBulkApi.d.ts +20 -0
  17. package/dist/types/Api/DeleteTheConcept.d.ts +20 -0
  18. package/dist/types/Api/DeleteTheConnection.d.ts +20 -0
  19. package/dist/types/Api/GetAiData.d.ts +10 -0
  20. package/dist/types/Api/GetAllConceptsByType.d.ts +12 -0
  21. package/dist/types/Api/GetAllConnectionsOfComposition.d.ts +23 -0
  22. package/dist/types/Api/GetAllConnectionsOfCompositionBulk.d.ts +23 -0
  23. package/dist/types/Api/GetAllLinkerConnectionsFromTheConcept.d.ts +12 -0
  24. package/dist/types/Api/GetAllLinkerConnectionsToTheConcept.d.ts +12 -0
  25. package/dist/types/Api/GetCharacterDataByCharacter.d.ts +12 -0
  26. package/dist/types/Api/GetCompositionConnectionsBetweenTwoConcepts.d.ts +13 -0
  27. package/dist/types/Api/GetConcept.d.ts +6 -0
  28. package/dist/types/Api/GetConceptBulk.d.ts +20 -0
  29. package/dist/types/Api/GetConceptByCharacterAndType.d.ts +15 -0
  30. package/dist/types/Api/GetConceptByCharacterValue.d.ts +12 -0
  31. package/dist/types/Api/GetConnection.d.ts +15 -0
  32. package/dist/types/Api/GetConnectionBulk.d.ts +7 -0
  33. package/dist/types/Api/GetConnectionOfTheConcept.d.ts +15 -0
  34. package/dist/types/Api/GetConnectionToTheConcept.d.ts +17 -0
  35. package/dist/types/Api/GetConnections/GetConnectionsBetweenApi.d.ts +40 -0
  36. package/dist/types/Api/GetConnections/GetConnectionsByTypeApi.d.ts +15 -0
  37. package/dist/types/Api/GetInstanceConceptByCharacterType.d.ts +9 -0
  38. package/dist/types/Api/GetReservedConnectionIds.d.ts +10 -0
  39. package/dist/types/Api/GetReservedIds.d.ts +10 -0
  40. package/dist/types/Api/Images/GetImages.d.ts +15 -0
  41. package/dist/types/Api/Local/GetLocalConceptByCharacterValue.d.ts +13 -0
  42. package/dist/types/Api/Login.d.ts +78 -0
  43. package/dist/types/Api/MakeTheNameInBackend.d.ts +14 -0
  44. package/dist/types/Api/MakeTheTypeConceptApi.d.ts +9 -0
  45. package/dist/types/Api/Prototype/Selector.d.ts +26 -0
  46. package/dist/types/Api/RecursiveSearch.d.ts +67 -0
  47. package/dist/types/Api/Search/FreeschemaQueryApi.d.ts +18 -0
  48. package/dist/types/Api/Search/Search.d.ts +73 -0
  49. package/dist/types/Api/Search/SearchInternalApi.d.ts +28 -0
  50. package/dist/types/Api/Search/SearchLinkMultipleApi.d.ts +15 -0
  51. package/dist/types/Api/Search/SearchWithLinker.d.ts +16 -0
  52. package/dist/types/Api/Search/SearchWithTypeAndLinker.d.ts +14 -0
  53. package/dist/types/Api/SearchConcept/GetConceptByCharacterAndCategoryApi.d.ts +12 -0
  54. package/dist/types/Api/SearchConcept/GetConceptByCharacterAndCategoryDirect.d.ts +13 -0
  55. package/dist/types/Api/SearchConcept/GetTypeConceptByBulk.d.ts +15 -0
  56. package/dist/types/Api/Session/CreateSession.d.ts +16 -0
  57. package/dist/types/Api/Session/CreateSessionVisit.d.ts +12 -0
  58. package/dist/types/Api/Signin.d.ts +24 -0
  59. package/dist/types/Api/Signup.d.ts +61 -0
  60. package/dist/types/Api/Translate/TranslateLocalToReal.d.ts +12 -0
  61. package/dist/types/Api/View/ViewInternalDataApi.d.ts +15 -0
  62. package/dist/types/Constants/AccessConstants.d.ts +3 -0
  63. package/dist/types/Constants/ApiConstants.d.ts +23 -0
  64. package/dist/types/Constants/FormatConstants.d.ts +8 -0
  65. package/dist/types/Constants/ckeditorCSS.d.ts +1 -0
  66. package/dist/types/Constants/general.const.d.ts +11 -0
  67. package/dist/types/Constants/page.const.d.ts +5 -0
  68. package/dist/types/DataStructures/AccessControl/AccessControlModels.d.ts +84 -0
  69. package/dist/types/DataStructures/BaseUrl.d.ts +95 -0
  70. package/dist/types/DataStructures/BinaryCharacterTree.d.ts +16 -0
  71. package/dist/types/DataStructures/BinaryTree.d.ts +78 -0
  72. package/dist/types/DataStructures/BinaryTypeTree.d.ts +17 -0
  73. package/dist/types/DataStructures/CharacterRepository.d.ts +8 -0
  74. package/dist/types/DataStructures/Composition/Composition.d.ts +14 -0
  75. package/dist/types/DataStructures/Composition/CompositionBinaryTree.d.ts +10 -0
  76. package/dist/types/DataStructures/Composition/CompositionNode.d.ts +21 -0
  77. package/dist/types/DataStructures/Concept.d.ts +25 -0
  78. package/dist/types/DataStructures/ConceptData.d.ts +30 -0
  79. package/dist/types/DataStructures/Connection.d.ts +23 -0
  80. package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionBinaryTree.d.ts +81 -0
  81. package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionNode.d.ts +27 -0
  82. package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionOfNode.d.ts +10 -0
  83. package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionOfTheTree.d.ts +24 -0
  84. package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionTypeNode.d.ts +10 -0
  85. package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionTypeTree.d.ts +20 -0
  86. package/dist/types/DataStructures/ConnectionBinaryTree/NodePrimitive.d.ts +15 -0
  87. package/dist/types/DataStructures/ConnectionByType/GetConnectionByType.d.ts +4 -0
  88. package/dist/types/DataStructures/ConnectionData.d.ts +26 -0
  89. package/dist/types/DataStructures/Count/CountInfo.d.ts +6 -0
  90. package/dist/types/DataStructures/FetchConnection.d.ts +64 -0
  91. package/dist/types/DataStructures/FilterSearch.d.ts +9 -0
  92. package/dist/types/DataStructures/IdentifierFlags.d.ts +11 -0
  93. package/dist/types/DataStructures/Local/LConcept.d.ts +23 -0
  94. package/dist/types/DataStructures/Local/LConnection.d.ts +18 -0
  95. package/dist/types/DataStructures/Local/LNode.d.ts +29 -0
  96. package/dist/types/DataStructures/Local/LocalBinaryCharacterTree.d.ts +13 -0
  97. package/dist/types/DataStructures/Local/LocalBinaryTree.d.ts +13 -0
  98. package/dist/types/DataStructures/Local/LocalBinaryTypeTree.d.ts +13 -0
  99. package/dist/types/DataStructures/Local/LocalConceptData.d.ts +21 -0
  100. package/dist/types/DataStructures/Local/LocalConnectionData.d.ts +20 -0
  101. package/dist/types/DataStructures/Local/LocalGhostIdTree.d.ts +11 -0
  102. package/dist/types/DataStructures/Local/LocalId.d.ts +19 -0
  103. package/dist/types/DataStructures/Local/LocalSyncData.d.ts +33 -0
  104. package/dist/types/DataStructures/Node.d.ts +30 -0
  105. package/dist/types/DataStructures/PatcherStructure.d.ts +8 -0
  106. package/dist/types/DataStructures/Prototype/Prototype.d.ts +19 -0
  107. package/dist/types/DataStructures/Prototype/PrototypeOption.d.ts +4 -0
  108. package/dist/types/DataStructures/Prototype/QuerySelector.d.ts +4 -0
  109. package/dist/types/DataStructures/ReservedIds.d.ts +10 -0
  110. package/dist/types/DataStructures/Responses/ErrorResponse.d.ts +74 -0
  111. package/dist/types/DataStructures/Responses/StandardResponses.d.ts +6 -0
  112. package/dist/types/DataStructures/Returner.d.ts +7 -0
  113. package/dist/types/DataStructures/Search/FreeschemaQuery.d.ts +25 -0
  114. package/dist/types/DataStructures/Search/SearchStructure.d.ts +10 -0
  115. package/dist/types/DataStructures/SearchQuery.d.ts +17 -0
  116. package/dist/types/DataStructures/Security/SecureStorage.d.ts +14 -0
  117. package/dist/types/DataStructures/Security/TokenStorage.d.ts +24 -0
  118. package/dist/types/DataStructures/Session/SessionData.d.ts +13 -0
  119. package/dist/types/DataStructures/SettingData.d.ts +5 -0
  120. package/dist/types/DataStructures/Settings.d.ts +4 -0
  121. package/dist/types/DataStructures/SigninModel.d.ts +4 -0
  122. package/dist/types/DataStructures/SignupModel.d.ts +4 -0
  123. package/dist/types/DataStructures/SyncData.d.ts +14 -0
  124. package/dist/types/DataStructures/TheCharacter.d.ts +13 -0
  125. package/dist/types/DataStructures/TheTexts.d.ts +14 -0
  126. package/dist/types/DataStructures/TypeLibrary.d.ts +19 -0
  127. package/dist/types/DataStructures/TypeNode.d.ts +18 -0
  128. package/dist/types/DataStructures/User/UserBinaryTree.d.ts +13 -0
  129. package/dist/types/DataStructures/User/UserNode.d.ts +18 -0
  130. package/dist/types/DataStructures/WidgetCache/WidgetCache.d.ts +10 -0
  131. package/dist/types/DataStructures/WidgetCache/WidgetDetails.d.ts +9 -0
  132. package/dist/types/DataStructures/WidgetCache/WidgetNode.d.ts +18 -0
  133. package/dist/types/DataStructures/environments/environments.d.ts +48 -0
  134. package/dist/types/Database/CacheDatabase.d.ts +57 -0
  135. package/dist/types/Database/IndexUpdate.d.ts +47 -0
  136. package/dist/types/Database/NoIndexDb.d.ts +9 -0
  137. package/dist/types/Database/indexdblocal.d.ts +43 -0
  138. package/dist/types/Database/indexeddb.d.ts +58 -0
  139. package/dist/types/Helpers/CheckIfExists.d.ts +9 -0
  140. package/dist/types/Helpers/RemoveFromArray.d.ts +5 -0
  141. package/dist/types/Helpers/UniqueInsert.d.ts +1 -0
  142. package/dist/types/Middleware/ApplicationMonitor.d.ts +25 -0
  143. package/dist/types/Middleware/logger.service.d.ts +144 -0
  144. package/dist/types/ServiceWorker/actions/connectionActions.d.ts +2 -0
  145. package/dist/types/ServiceWorker/actions/createActions.d.ts +2 -0
  146. package/dist/types/ServiceWorker/actions/deleteActions.d.ts +2 -0
  147. package/dist/types/ServiceWorker/actions/getActions.d.ts +2 -0
  148. package/dist/types/ServiceWorker/actions/index.d.ts +15 -0
  149. package/dist/types/ServiceWorker/actions/searchActions.d.ts +2 -0
  150. package/dist/types/ServiceWorker/actions/syncActions.d.ts +2 -0
  151. package/dist/types/ServiceWorker/actions/updateActions.d.ts +2 -0
  152. package/dist/types/ServiceWorker/index.d.ts +11 -0
  153. package/dist/types/Services/AccessControl/APIClientService.d.ts +167 -0
  154. package/dist/types/Services/AccessControl/AccessControl.d.ts +114 -0
  155. package/dist/types/Services/CacheClear.d.ts +7 -0
  156. package/dist/types/Services/CheckForConnectionDeletion.d.ts +3 -0
  157. package/dist/types/Services/Common/DecodeCountInfo.d.ts +3 -0
  158. package/dist/types/Services/Common/DelayFunction.d.ts +7 -0
  159. package/dist/types/Services/Common/ErrorPosting.d.ts +10 -0
  160. package/dist/types/Services/Common/MergeArrays.d.ts +7 -0
  161. package/dist/types/Services/Common/RegexFunction.d.ts +1 -0
  162. package/dist/types/Services/Common/RemoveAllChild.d.ts +1 -0
  163. package/dist/types/Services/Composition/BuildComposition.d.ts +3 -0
  164. package/dist/types/Services/Composition/CompositionCache.d.ts +4 -0
  165. package/dist/types/Services/Composition/CreateCompositionCache.d.ts +3 -0
  166. package/dist/types/Services/ConceptFinding/GetConceptByCharacterAndCategory.d.ts +5 -0
  167. package/dist/types/Services/Conversion/ConvertConcepts.d.ts +5 -0
  168. package/dist/types/Services/CreateBinaryTreeFromData.d.ts +5 -0
  169. package/dist/types/Services/CreateConnection/CreateConnectionEntity.d.ts +2 -0
  170. package/dist/types/Services/CreateConnectionBetweenTwoConcepts.d.ts +5 -0
  171. package/dist/types/Services/CreateDefaultConcept.d.ts +3 -0
  172. package/dist/types/Services/CreateTheComposition.d.ts +1 -0
  173. package/dist/types/Services/CreateTheConcept.d.ts +122 -0
  174. package/dist/types/Services/CreateTheConnection.d.ts +63 -0
  175. package/dist/types/Services/CreateTheConnectionGeneral.d.ts +2 -0
  176. package/dist/types/Services/DeleteConcept.d.ts +2 -0
  177. package/dist/types/Services/DeleteConnection.d.ts +2 -0
  178. package/dist/types/Services/DeleteConnectionByType.d.ts +22 -0
  179. package/dist/types/Services/FindConeceptsFromConnection.d.ts +6 -0
  180. package/dist/types/Services/FindConnectionsOfCompositionBulkInMemory.d.ts +1 -0
  181. package/dist/types/Services/GetComposition.d.ts +205 -0
  182. package/dist/types/Services/GetCompositionBulk.d.ts +100 -0
  183. package/dist/types/Services/GetCompositionList.d.ts +7 -0
  184. package/dist/types/Services/GetConceptByCharacter.d.ts +2 -0
  185. package/dist/types/Services/GetConnectionBetweenTwoConceptsLinker.d.ts +11 -0
  186. package/dist/types/Services/GetConnections.d.ts +1 -0
  187. package/dist/types/Services/GetDataFromIndexDb.d.ts +2 -0
  188. package/dist/types/Services/GetLink.d.ts +3 -0
  189. package/dist/types/Services/GetLinkerConnectionFromConcept.d.ts +3 -0
  190. package/dist/types/Services/GetRelation.d.ts +3 -0
  191. package/dist/types/Services/GetTheConcept.d.ts +96 -0
  192. package/dist/types/Services/InitializeSystem.d.ts +2 -0
  193. package/dist/types/Services/Local/ConvertFromLConceptToConcept.d.ts +41 -0
  194. package/dist/types/Services/Local/ConvertFromLConnectionToConnection.d.ts +47 -0
  195. package/dist/types/Services/Local/CreateConnectionBetweenTwoConceptsLocal.d.ts +44 -0
  196. package/dist/types/Services/Local/CreateDefaultLConcept.d.ts +46 -0
  197. package/dist/types/Services/Local/CreateLocalBinaryTreeFromData.d.ts +34 -0
  198. package/dist/types/Services/Local/CreateTheCompositionLocal.d.ts +104 -0
  199. package/dist/types/Services/Local/CreateTheConceptLocal.d.ts +84 -0
  200. package/dist/types/Services/Local/CreateTheConnectionLocal.d.ts +140 -0
  201. package/dist/types/Services/Local/DeleteConceptLocal.d.ts +47 -0
  202. package/dist/types/Services/Local/GetCompositionListLocal.d.ts +37 -0
  203. package/dist/types/Services/Local/GetCompositionLocal.d.ts +97 -0
  204. package/dist/types/Services/Local/GetConceptByCharacterLocal.d.ts +56 -0
  205. package/dist/types/Services/Local/GetConnectionOfTheConceptLocal.d.ts +19 -0
  206. package/dist/types/Services/Local/GetRelationLocal.d.ts +21 -0
  207. package/dist/types/Services/Local/GetTheConceptLocal.d.ts +63 -0
  208. package/dist/types/Services/Local/MakeTheConceptLocal.d.ts +22 -0
  209. package/dist/types/Services/Local/MakeTheInstanceConceptLocal.d.ts +164 -0
  210. package/dist/types/Services/Local/MakeTheTypeLocal.d.ts +36 -0
  211. package/dist/types/Services/Local/UpdateCompositionLocal.d.ts +42 -0
  212. package/dist/types/Services/Logs/LogEvent.d.ts +1 -0
  213. package/dist/types/Services/Mail.d.ts +41 -0
  214. package/dist/types/Services/MakeTheCharacter.d.ts +2 -0
  215. package/dist/types/Services/MakeTheCharacterData.d.ts +2 -0
  216. package/dist/types/Services/MakeTheConcept.d.ts +2 -0
  217. package/dist/types/Services/MakeTheInstanceConcept.d.ts +15 -0
  218. package/dist/types/Services/MakeTheTimestamp.d.ts +1 -0
  219. package/dist/types/Services/MakeTheTypeConcept.d.ts +1 -0
  220. package/dist/types/Services/Mqtt/publishMessage.d.ts +1 -0
  221. package/dist/types/Services/Search/DataIdFormat.d.ts +32 -0
  222. package/dist/types/Services/Search/FormatData.d.ts +36 -0
  223. package/dist/types/Services/Search/JustIdFormat.d.ts +23 -0
  224. package/dist/types/Services/Search/NewFormat.d.ts +4 -0
  225. package/dist/types/Services/Search/SearchLinkInternal.d.ts +3 -0
  226. package/dist/types/Services/Search/SearchLinkMultiple.d.ts +55 -0
  227. package/dist/types/Services/Search/SearchWithTypeAndLinker.d.ts +82 -0
  228. package/dist/types/Services/Search/orderingConnections.d.ts +2 -0
  229. package/dist/types/Services/Security/GetRequestHeader.d.ts +7 -0
  230. package/dist/types/Services/SplitStrings.d.ts +1 -0
  231. package/dist/types/Services/Transaction/LocalTransaction.d.ts +117 -0
  232. package/dist/types/Services/UpdateComposition.d.ts +2 -0
  233. package/dist/types/Services/Upload.d.ts +111 -0
  234. package/dist/types/Services/User/UserFromLocalStorage.d.ts +10 -0
  235. package/dist/types/Services/User/UserTranslation.d.ts +3 -0
  236. package/dist/types/Services/View/ViewInternalData.d.ts +1 -0
  237. package/dist/types/Services/assets/GetImageService.d.ts +14 -0
  238. package/dist/types/Services/automated/automated-concept-connection.d.ts +7 -0
  239. package/dist/types/Services/cacheService.d.ts +1 -0
  240. package/dist/types/Validator/constant.d.ts +3 -0
  241. package/dist/types/Validator/interface.d.ts +19 -0
  242. package/dist/types/Validator/utils.d.ts +7 -0
  243. package/dist/types/Validator/validator.d.ts +37 -0
  244. package/dist/types/Widgets/BaseObserver.d.ts +25 -0
  245. package/dist/types/Widgets/BaseWidget.d.ts +37 -0
  246. package/dist/types/Widgets/BuilderSpeceficFunctions.d.ts +11 -0
  247. package/dist/types/Widgets/BuilderStatefulWidget.d.ts +392 -0
  248. package/dist/types/Widgets/CacheWidget.service.d.ts +77 -0
  249. package/dist/types/Widgets/NormalizeStyles.service.d.ts +10 -0
  250. package/dist/types/Widgets/RenderPage.service.d.ts +17 -0
  251. package/dist/types/Widgets/RenderWidgetLibrary.service.d.ts +22 -0
  252. package/dist/types/Widgets/RenderWidgetService.d.ts +187 -0
  253. package/dist/types/Widgets/StatefulWidget.d.ts +167 -0
  254. package/dist/types/Widgets/WidgetBuild.d.ts +45 -0
  255. package/dist/types/Widgets/WidgetCacheManager.d.ts +108 -0
  256. package/dist/types/Widgets/WidgetTree.d.ts +61 -0
  257. package/dist/types/WrapperFunctions/DepenedencyObserver.d.ts +116 -0
  258. package/dist/types/WrapperFunctions/GetCompositionListObservable.d.ts +51 -0
  259. package/dist/types/WrapperFunctions/GetCompositionObservable.d.ts +35 -0
  260. package/dist/types/WrapperFunctions/GetLinkListObservable.d.ts +57 -0
  261. package/dist/types/WrapperFunctions/GetLinkObservable.d.ts +50 -0
  262. package/dist/types/WrapperFunctions/QueryCacheManager.d.ts +107 -0
  263. package/dist/types/WrapperFunctions/RecursiveSearchObservable.d.ts +55 -0
  264. package/dist/types/WrapperFunctions/SchemaQueryObservable.d.ts +64 -0
  265. package/dist/types/WrapperFunctions/SearchLinkMultipleAllObservable.d.ts +36 -0
  266. package/dist/types/app.d.ts +385 -0
  267. package/dist/types/prototype/prototype.service.d.ts +25 -0
  268. package/dist/types/service-worker.d.ts +1 -0
  269. package/package.json +2 -2
  270. package/dist/main.bundle.js.map +0 -1
  271. package/dist/serviceWorker.bundle.js.map +0 -1
@@ -0,0 +1,81 @@
1
+ import { Connection } from "../../DataStructures/Connection";
2
+ import { ConnectionNode } from "./ConnectionNode";
3
+ /**
4
+ * ConnectionBinaryTree — In-memory connection store keyed by numeric connection ID.
5
+ *
6
+ * Backed by a Map<number, Connection> for O(1) lookups, inserts, and deletes.
7
+ * The secondary index trees (ConnectionTypeTree, ConnectionOfTheTree) are
8
+ * managed separately by ConnectionData and remain unchanged.
9
+ *
10
+ * All public method signatures are preserved for backward compatibility.
11
+ * getNodeFromTree returns a { key, value } wrapper so callers that access
12
+ * node.value continue to work without changes.
13
+ */
14
+ export declare class ConnectionBinaryTree {
15
+ /** Sentinel root — non-null when the map has data, null when empty. */
16
+ static connectionroot: ConnectionNode | null;
17
+ /** Primary data store: connection ID → Connection object */
18
+ private static connectionMap;
19
+ /**
20
+ * Low-level add — stores the node's key/value in the Map.
21
+ * Kept for API compatibility.
22
+ * @param node - ConnectionNode with numeric key and Connection value
23
+ */
24
+ static addNodeToTree(node: ConnectionNode): void;
25
+ /**
26
+ * Adds a connection to the Map and dispatches an event for the
27
+ * owning concept so UI listeners can react.
28
+ *
29
+ * The dispatchIdEvent(ofTheConceptId) was previously fired inside
30
+ * ConnectionNode.addNode when the node was placed into a null slot.
31
+ * We only fire it for new connections (not overwrites) to preserve
32
+ * the original behavior.
33
+ *
34
+ * @param connection - The Connection to store
35
+ */
36
+ static addConnectionToTree(connection: Connection): void;
37
+ /**
38
+ * Returns the total number of connections stored.
39
+ * @returns Number of connections in the Map
40
+ */
41
+ static traverse(): number;
42
+ /**
43
+ * Polls until IdentifierFlags.isConnectionLoaded is true (max 25 seconds).
44
+ * Used by callers that need to wait for the initial IndexedDB load to finish.
45
+ */
46
+ static waitForDataToLoad(): Promise<unknown>;
47
+ /** Recursive polling helper for waitForDataToLoad */
48
+ static checkFlag(resolve: any): any;
49
+ /**
50
+ * Removes a connection by ID. Dispatches an event for the owning concept
51
+ * before deletion so listeners can react to the removal.
52
+ *
53
+ * @param id - The connection ID to remove
54
+ */
55
+ static removeNodeFromTree(id: number): Promise<void>;
56
+ /**
57
+ * Retrieves a connection by ID from the Map.
58
+ *
59
+ * Returns a { key, value } wrapper matching the ConnectionNode shape.
60
+ * Also increments the connection's count field for access tracking
61
+ * (preserving the original ConnectionNode.getFromNode behavior).
62
+ *
63
+ * @param id - The connection ID to look up
64
+ * @returns ConnectionNode-like wrapper with .value = Connection, or null/undefined
65
+ */
66
+ static getNodeFromTree(id: number): Promise<ConnectionNode | null | undefined>;
67
+ /**
68
+ * Bulk connection retrieval by ID list.
69
+ *
70
+ * For each ID found in the Map, pushes the Connection into connectionArray
71
+ * and removes the ID from the ids array. IDs remaining after this call
72
+ * are "not found" and will be fetched from the backend.
73
+ *
74
+ * Performance: O(k) where k = ids.length (was O(N) full tree traversal).
75
+ *
76
+ * @param ids - Array of connection IDs to look up (mutated: found IDs are spliced out)
77
+ * @param connectionArray - Output array (mutated: found Connections are pushed)
78
+ * @param remainingIds - Not used directly but kept for API compatibility
79
+ */
80
+ static getConnectionListFromIds(ids: number[], connectionArray: Connection[], remainingIds: any): Promise<void>;
81
+ }
@@ -0,0 +1,27 @@
1
+ import { Connection } from "./../Connection";
2
+ export declare class ConnectionNode {
3
+ key: any;
4
+ value: Connection;
5
+ leftNode: ConnectionNode | null;
6
+ rightNode: ConnectionNode | null;
7
+ currentNode: ConnectionNode | null;
8
+ variants: ConnectionNode[];
9
+ height: number;
10
+ constructor(key: any, value: Connection, leftNode: ConnectionNode | null, rightNode: ConnectionNode | null);
11
+ addCurrentNode(passedNode: ConnectionNode, node: ConnectionNode | null): ConnectionNode;
12
+ addCurrentNodeType(passedNode: ConnectionNode, node: ConnectionNode | null): ConnectionNode;
13
+ getMax(a: number, b: number): number;
14
+ addNode(passedNode: ConnectionNode, node: ConnectionNode | null, height: number): ConnectionNode | null;
15
+ addTypeNode(passedNode: ConnectionNode, node: ConnectionNode | null, height: number): ConnectionNode | null;
16
+ rightRotate(y: ConnectionNode | null): ConnectionNode | null;
17
+ leftRotate(x: ConnectionNode | null): ConnectionNode | null;
18
+ getHeight(node: ConnectionNode | null): number;
19
+ getBalanceFactor(N: ConnectionNode | null): number;
20
+ getFromNode(id: number, node: ConnectionNode | null): ConnectionNode | null;
21
+ getCharacterFromNode(value: string, node: ConnectionNode | null): ConnectionNode | null;
22
+ checkIfIdsInNode(node: ConnectionNode | null, ids: number[], connectionArray: Connection[], remainingIds: any): void;
23
+ traverse(node: ConnectionNode | null): number;
24
+ removeNode(passedNode: ConnectionNode | null, id: number): ConnectionNode | null;
25
+ removeNodeWithVariants(passedNode: ConnectionNode | null, typeIdentifier: any, conceptId: number): ConnectionNode | null;
26
+ inOrderSuccessor(root: ConnectionNode): ConnectionNode;
27
+ }
@@ -0,0 +1,10 @@
1
+ import { NodePrimitive } from "./NodePrimitive";
2
+ export declare class ConnectionOfNode extends NodePrimitive {
3
+ key: string;
4
+ value: number[];
5
+ height: number;
6
+ leftNode: ConnectionOfNode | null;
7
+ rightNode: ConnectionOfNode | null;
8
+ constructor(key: any, value: number[], leftNode: ConnectionOfNode | null, rightNode: ConnectionOfNode | null);
9
+ addNode(passedNode: ConnectionOfNode, node: ConnectionOfNode | null, height: number): any;
10
+ }
@@ -0,0 +1,24 @@
1
+ import { Connection } from "../Connection";
2
+ import { ConnectionOfNode } from "./ConnectionOfNode";
3
+ /**
4
+ * This is a binary tree that is used to store the reference to the main connection of the concept.
5
+ */
6
+ export declare class ConnectionOfTheTree {
7
+ static node: ConnectionOfNode | null;
8
+ static CreateCompositionKey(ofTheConceptId: number, typeId: number): number;
9
+ static GetConnectionByOfTheConceptAndTypeId(ofTheConceptId: number, typeId: number): any;
10
+ /**
11
+ * This function lets you add a connection by composite key with of the concept id and type id.
12
+ * This function checks if the connection already exists and then updates in the case that it does not
13
+ * If the connection of the concept id and type id combination is encountered first time then a node is created.
14
+ * @param connection connection that needs to be added.
15
+ */
16
+ static addConnection(connection: Connection): void;
17
+ /**
18
+ * This is a function to add the connectionNode to the existing tree
19
+ * @param connectionOfNode This is the node that needs to be added to the tree.
20
+ * @returns ConnectionOfNode
21
+ */
22
+ static addNodeToTree(connectionOfNode: ConnectionOfNode): Promise<ConnectionOfNode | null>;
23
+ static removeNodeFromTree(id: number): Promise<void>;
24
+ }
@@ -0,0 +1,10 @@
1
+ import { NodePrimitive } from "./NodePrimitive";
2
+ export declare class ConnectionTypeNode extends NodePrimitive {
3
+ key: string;
4
+ value: number[];
5
+ height: number;
6
+ leftNode: ConnectionTypeNode | null;
7
+ rightNode: ConnectionTypeNode | null;
8
+ constructor(key: any, value: number[], leftNode: ConnectionTypeNode | null, rightNode: ConnectionTypeNode | null);
9
+ addNode(passedNode: ConnectionTypeNode, node: ConnectionTypeNode | null, height: number): any;
10
+ }
@@ -0,0 +1,20 @@
1
+ import { Connection } from "../../DataStructures/Connection";
2
+ import { ConnectionTypeNode } from "./ConnectionTypeNode";
3
+ export declare class ConnectionTypeTree {
4
+ static connectionTypeRoot: ConnectionTypeNode | null;
5
+ static CreateCompositionKey(typeId: number): number;
6
+ /**
7
+ * This is a function to add the connectionNode to the existing tree
8
+ * @param connectionOfNode This is the node that needs to be added to the tree.
9
+ * @returns ConnectionOfNode
10
+ */
11
+ static addNodeToTree(connectionOfNode: ConnectionTypeNode): Promise<ConnectionTypeNode | null>;
12
+ /**
13
+ * This function lets you add a connection by composite key with of the concept id and type id.
14
+ * This function checks if the connection already exists and then updates in the case that it does not
15
+ * If the connection of the concept id and type id combination is encountered first time then a node is created.
16
+ * @param connection connection that needs to be added.
17
+ */
18
+ static addConnectionToTree(connection: Connection): void;
19
+ static GetConnectionByOfTheConceptAndTypeId(ofTheConceptId: number, typeId: number): any;
20
+ }
@@ -0,0 +1,15 @@
1
+ export declare class NodePrimitive {
2
+ key: string;
3
+ value: number[];
4
+ height: number;
5
+ leftNode: any | null;
6
+ rightNode: any | null;
7
+ constructor(key: any, value: number[], leftNode: NodePrimitive | null, rightNode: NodePrimitive | null);
8
+ getFromNode(id: any, node: any | null): any | null;
9
+ rightRotate(y: NodePrimitive | null): any;
10
+ leftRotate(x: NodePrimitive | null): any;
11
+ getHeight(node: NodePrimitive | null): number;
12
+ getBalanceFactor(N: NodePrimitive | null): number;
13
+ removeNode(passedNode: any | null, id: number): any;
14
+ inOrderSuccessor(root: any): any;
15
+ }
@@ -0,0 +1,4 @@
1
+ export declare class GetConnectionsByTypes {
2
+ ofTheConceptId: number;
3
+ connectionTypes: string[];
4
+ }
@@ -0,0 +1,26 @@
1
+ import { Connection } from "./Connection";
2
+ export declare class ConnectionData {
3
+ name: string;
4
+ constructor();
5
+ static deletedConnections: number[];
6
+ static connectionArray: Connection[];
7
+ static connectionDictionary: Connection[];
8
+ static CheckContains(connection: Connection): boolean;
9
+ static AddConnectionToStorage(connection: Connection): void;
10
+ static AddNpConn(id: number): void;
11
+ static GetNpConn(id: number): boolean;
12
+ static AddConnection(connection: Connection): void;
13
+ static AddConnectionToMemory(connection: Connection): void;
14
+ static AddToDictionary(connection: Connection): void;
15
+ static RemoveConnection(connection: Connection): void;
16
+ static GetConnectionTypeOfTree(): void;
17
+ static GetConnectionByOfTheConceptAndType(ofTheConceptId: number, typeId: number): Promise<any>;
18
+ static GetConnectionByOfType(ofTheConceptId: number, typeId: number): any;
19
+ static GetConnectionTree(): import("./ConnectionBinaryTree/ConnectionNode").ConnectionNode | null;
20
+ static GetConnectionTypeTree(): import("./ConnectionBinaryTree/ConnectionTypeNode").ConnectionTypeNode | null;
21
+ static GetConnectionBulkData(ids: number[], connectionArray: Connection[], remainingIds: any): Promise<void>;
22
+ static GetConnection(id: number): Promise<any>;
23
+ static GetConnectionsOfCompositionLocal(id: number): Promise<any>;
24
+ static GetConnectionsOfConcept(id: number): Promise<any>;
25
+ getName(): string;
26
+ }
@@ -0,0 +1,6 @@
1
+ export declare class CountInfo {
2
+ conceptId: number;
3
+ connectionTypeId: number;
4
+ connectionType: string;
5
+ count: number;
6
+ }
@@ -0,0 +1,64 @@
1
+ /**
2
+ * Request/response shape for the POST /api/get-connection-between endpoint.
3
+ *
4
+ * Use only the fields relevant to your query permutation and leave the rest at their
5
+ * zero/empty defaults. The backend resolves `typeId` from the `type` string when
6
+ * `typeId` is 0, so you never need to supply both.
7
+ *
8
+ * **Query permutations:**
9
+ * 1. `ofTheConceptId` + `toTheConceptId` + `type` — connections between two specific concepts of that type
10
+ * 2. `ofTheConceptId` + `type` — all connections FROM a concept of that type
11
+ * 3. `toTheConceptId` + `type` — all connections TO a concept of that type
12
+ * 4. `typeId` + `isComposition: true` — all internal connections of a composition
13
+ *
14
+ * After the request, the backend populates `connectionIds` and the resolved `typeId`
15
+ * on each item and returns the same array.
16
+ */
17
+ export interface FetchConnection {
18
+ /** Source concept ID. 0 means "not specified". */
19
+ ofTheConceptId: number;
20
+ /** Target concept ID. 0 means "not specified". */
21
+ toTheConceptId: number;
22
+ /** Resolved type concept ID. Set directly or leave 0 — backend resolves it from `type`. */
23
+ typeId: number;
24
+ /** Human-readable type string (e.g. "the_project_s_page"). Used when typeId is 0. */
25
+ type: string;
26
+ /** Legacy type string resolved relative to the source concept's type. Leave empty unless required. */
27
+ oldType: string;
28
+ /** When true, searches for connections in the reverse direction (toTheConceptId → ofTheConceptId). */
29
+ reverse: boolean;
30
+ /** When true, treats typeId as a composition ID and returns its internal connections. */
31
+ isComposition: boolean;
32
+ /** Populated by the backend after the request — the matching connection IDs. */
33
+ connectionIds: number[];
34
+ }
35
+ /**
36
+ * Input-only shape for building a FetchConnection query.
37
+ * Omits `connectionIds` since that is an output field populated by the backend.
38
+ */
39
+ export type FetchConnectionQuery = Omit<FetchConnection, 'connectionIds'>;
40
+ /**
41
+ * Builds a complete FetchConnection request object from a partial query,
42
+ * filling unspecified fields with their zero/empty defaults.
43
+ *
44
+ * Use this instead of constructing FetchConnection manually so you only
45
+ * need to specify the fields relevant to your query permutation.
46
+ *
47
+ * @param query - Partial query with only the fields you need.
48
+ * @returns A fully initialised FetchConnection ready to send to the API.
49
+ *
50
+ * @example
51
+ * // Between two concepts
52
+ * buildFetchConnection({ ofTheConceptId: 1, toTheConceptId: 2, type: "the_project_s_page" })
53
+ *
54
+ * @example
55
+ * // All connections from a concept
56
+ * buildFetchConnection({ ofTheConceptId: 1, type: "the_project_s_page" })
57
+ *
58
+ * @example
59
+ * // All internal connections of a composition
60
+ * buildFetchConnection({ typeId: 101490186, isComposition: true })
61
+ *
62
+ * @see {@link GetConnectionsBetweenApi} to send the built query to the backend
63
+ */
64
+ export declare function buildFetchConnection(query: Partial<FetchConnectionQuery>): FetchConnection;
@@ -0,0 +1,9 @@
1
+ export declare class FilterSearch {
2
+ type: string;
3
+ search: string;
4
+ logicoperator: string;
5
+ index: number;
6
+ composition: boolean;
7
+ name: string;
8
+ operateon: string;
9
+ }
@@ -0,0 +1,11 @@
1
+ export declare class IdentifierFlags {
2
+ static isTypeLoaded: boolean;
3
+ static isCharacterLoaded: boolean;
4
+ static isDataLoaded: boolean;
5
+ static isLocalDataLoaded: boolean;
6
+ static isLocalCharacterLoaded: boolean;
7
+ static isLocalTypeLoaded: boolean;
8
+ static isConnectionLoaded: boolean;
9
+ static isConnectionTypeLoaded: boolean;
10
+ static isLocalConnectionLoaded: boolean;
11
+ }
@@ -0,0 +1,23 @@
1
+ import { Concept } from "../Concept";
2
+ export declare class LConcept {
3
+ id: number;
4
+ structureType: string;
5
+ ghostId: number;
6
+ userId: number;
7
+ typeId: number;
8
+ categoryId: number;
9
+ accessId: number;
10
+ characterValue: string;
11
+ typeCharacter: string;
12
+ entryTimeStamp: Date;
13
+ referentId: number;
14
+ updatedTimeStamp: Date;
15
+ type: LConcept | null | void | Concept;
16
+ isNew: boolean;
17
+ isComposition: boolean;
18
+ isTemp: boolean;
19
+ isSynced: boolean;
20
+ applicationId: number;
21
+ constructor(id: number, userId: number, typeId: number, categoryId: number, accessId: number, characterValue: string, typeCharacter: string, isNew: boolean | undefined, entryTimeStamp: Date, updatedTimeStamp: Date, referentId: number);
22
+ getType(): void;
23
+ }
@@ -0,0 +1,18 @@
1
+ import { Concept } from "../Concept";
2
+ export declare class LConnection {
3
+ id: number;
4
+ ghostId: number;
5
+ ofTheConceptId: number;
6
+ toTheConceptId: number;
7
+ entryTimeStamp: Date | string;
8
+ terminationDateTime: Date;
9
+ accessId: number;
10
+ typeId: number;
11
+ orderId: number;
12
+ typeCharacter: string;
13
+ localSyncTime: Date;
14
+ isTemp: boolean;
15
+ applicationId: number;
16
+ type: Concept;
17
+ constructor(id: number, ofTheConceptId: number, toTheConceptId: number, typeId: number, orderId: number, accessId: number);
18
+ }
@@ -0,0 +1,29 @@
1
+ import { Concept } from "./../Concept";
2
+ export declare class LNode {
3
+ key: any;
4
+ value: Concept;
5
+ leftNode: LNode | null;
6
+ rightNode: LNode | null;
7
+ currentNode: LNode | null;
8
+ variants: LNode[];
9
+ height: number;
10
+ constructor(key: any, value: Concept, leftNode: LNode | null, rightNode: LNode | null);
11
+ addCurrentNode(passedNode: LNode, node: LNode | null): LNode;
12
+ addCurrentNodeType(passedNode: LNode, node: LNode | null): LNode;
13
+ addNode(passedNode: LNode, node: LNode | null, height: number): LNode | null;
14
+ addCharacterNode(passedNode: LNode, node: LNode | null, height: number): LNode | null;
15
+ addTypeNode(passedNode: LNode, node: LNode | null, height: number): LNode | null;
16
+ rightRotate(y: LNode | null): LNode | null;
17
+ leftRotate(x: LNode | null): LNode | null;
18
+ getHeight(node: LNode | null): number;
19
+ getBalanceFactor(N: LNode | null): number;
20
+ getFromNode(id: number, node: LNode | null): LNode | null;
21
+ updateNodeSyncStatus(id: number, value: any, node: LNode | null): LNode | null;
22
+ getCharacterFromNode(value: string, node: LNode | null): LNode | null;
23
+ getFromNodeWithCharacterAndType(value: string, typeId: number, node: LNode | null): LNode | null;
24
+ getFromNodeWithCharacterAndCategory(value: string, categoryId: number, node: LNode | null): LNode | null;
25
+ removeNode(passedNode: LNode | null, id: number): LNode | null;
26
+ removeNodeWithVariants(passedNode: LNode | null, typeIdentifier: any, conceptId: number): LNode | null;
27
+ countNodeBelow(root: LNode | null): number;
28
+ inOrderSuccessor(root: LNode): LNode;
29
+ }
@@ -0,0 +1,13 @@
1
+ import { Concept } from "../../DataStructures/Concept";
2
+ import { LNode } from "./../Local/LNode";
3
+ export declare class LocalBinaryCharacterTree {
4
+ static LocalCharacterRoot: LNode | null;
5
+ static waitForDataToLoad(): Promise<unknown>;
6
+ static checkFlag(resolve: any): any;
7
+ static addNodeToTree(node: LNode): Promise<LNode | null>;
8
+ static addConceptToTree(concept: Concept): void;
9
+ static getNodeFromTree(value: string): LNode | null;
10
+ static getCharacterAndTypeFromTree(value: string, typeId: number): Promise<LNode | null>;
11
+ static getCharacterAndCategoryFromTree(value: string, categoryId: number): Promise<LNode | null>;
12
+ static removeConceptType(character: string, id: number): void;
13
+ }
@@ -0,0 +1,13 @@
1
+ import { Concept } from "../../DataStructures/Concept";
2
+ import { LNode } from "./../Local/LNode";
3
+ export declare class LocalBinaryTree {
4
+ static root: LNode | null;
5
+ static addNodeToTree(node: LNode): LNode | undefined;
6
+ static addConceptToTree(concept: Concept): void;
7
+ static waitForDataToLoad(): Promise<unknown>;
8
+ static checkFlag(resolve: any): any;
9
+ static getNodeFromTree(id: number): Promise<LNode | null>;
10
+ static getCharacterAndTypeFromTree(value: string, typeId: number): LNode | null;
11
+ static updateSyncStatus(id: number): LNode | null;
12
+ static removeNodeFromTree(id: number): Promise<void>;
13
+ }
@@ -0,0 +1,13 @@
1
+ import { Concept } from "../../DataStructures/Concept";
2
+ import { LNode } from "./LNode";
3
+ export declare class LocalBinaryTypeTree {
4
+ static LocalTypeRoot: LNode | null;
5
+ static addNodeToTree(node: LNode): Promise<LNode | null>;
6
+ static addConceptToTree(concept: Concept): void;
7
+ static removeConceptType(typeId: number, id: number): void;
8
+ static getNodeFromTree(id: number): LNode | null;
9
+ static getTypeVariantsFromTree(typeId: number): Concept[] | undefined;
10
+ static waitForDataToLoad(): Promise<unknown>;
11
+ static checkFlag(resolve: any): any;
12
+ static getTypeVariantsFromTreeWithUserId(typeId: number, userId: number): Promise<Concept[]>;
13
+ }
@@ -0,0 +1,21 @@
1
+ import { Concept } from "./../Concept";
2
+ export declare class LocalConceptsData {
3
+ name: string;
4
+ constructor();
5
+ static localconceptsArray: Concept[];
6
+ static AddConcept(concept: Concept): void;
7
+ static AddPermanentConcept(concept: Concept): void;
8
+ static RemoveConcept(concept: Concept): Promise<void>;
9
+ static RemoveConceptById(conceptId: number): Promise<void>;
10
+ static AddConceptToMemory(concept: Concept): void;
11
+ static GetConcept(id: number): Promise<Concept>;
12
+ static UpdateConceptSyncStatus(id: number): Promise<void>;
13
+ static GetConceptByGhostId(id: number): Promise<Concept>;
14
+ static GetConceptByCharacter(characterValue: string): Promise<Concept>;
15
+ static GetConceptByCharacterAndTypeLocal(character_value: string, typeId: number): Promise<Concept>;
16
+ static GetConceptByCharacterAndCategoryLocal(character_value: string, categoryId: number): Promise<Concept>;
17
+ static GetConceptsByTypeId(typeId: number): Concept[];
18
+ static GetConceptsByTypeIdAndUser(typeId: number, userId: number): Promise<Concept[]>;
19
+ static ClearData(): Promise<void>;
20
+ getName(): string;
21
+ }
@@ -0,0 +1,20 @@
1
+ import { Connection } from "../Connection";
2
+ export declare class LocalConnectionData {
3
+ name: string;
4
+ constructor();
5
+ static connectionArray: Connection[];
6
+ static connectionDictionary: Connection[];
7
+ static CheckContains(connection: Connection): boolean;
8
+ static AddConnection(connection: Connection): void;
9
+ static AddConnectionToMemory(connection: Connection): void;
10
+ static AddToDictionary(connection: Connection): void;
11
+ static RemoveConnection(connection: Connection): void;
12
+ static RemoveConnectionById(connectionId: number): void;
13
+ static AddPermanentConnection(connection: Connection): void;
14
+ static GetConnection(id: number): Connection | null;
15
+ static waitForDataToLoad(): Promise<unknown>;
16
+ static checkFlag(resolve: any): any;
17
+ static GetConnectionsOfCompositionLocal(id: number): Promise<Connection[]>;
18
+ static GetConnectionOfCompositionAndTypeLocal(typeId: number, ofTheConceptId: number): Promise<Connection[]>;
19
+ getName(): string;
20
+ }
@@ -0,0 +1,11 @@
1
+ import { Concept } from "../../DataStructures/Concept";
2
+ import { LNode } from "./../Local/LNode";
3
+ export declare class LocalGhostIdTree {
4
+ static root: LNode | null;
5
+ static addNodeToTree(node: LNode): LNode | undefined;
6
+ static addConceptToTree(concept: Concept): void;
7
+ static waitForDataToLoad(): Promise<unknown>;
8
+ static checkFlag(resolve: any): any;
9
+ static getNodeFromTree(id: number): Promise<LNode | null>;
10
+ static removeNodeFromTree(id: number): Promise<void>;
11
+ }
@@ -0,0 +1,19 @@
1
+ export declare class LocalId {
2
+ static localId: number;
3
+ static localConnectionId: number;
4
+ static ReservedLocalId: number[];
5
+ static ReservedConnectionId: number[];
6
+ static AddConceptId(id: any): void;
7
+ /**
8
+ *
9
+ * This function will get the local concept id from the indexdb
10
+ * @returns the local concept id
11
+ */
12
+ static getConceptId(): Promise<number>;
13
+ /**
14
+ *
15
+ * @param object This is the object that needs to be updated
16
+ */
17
+ static AddConnectionId(object: any): void;
18
+ static getConnectionId(): Promise<number>;
19
+ }
@@ -0,0 +1,33 @@
1
+ import { Concept } from "./../Concept";
2
+ import { Connection } from "../Connection";
3
+ import { InnerActions } from "../../app";
4
+ type syncContainer = {
5
+ id: string;
6
+ data: InnerActions;
7
+ createdDate: string;
8
+ };
9
+ export declare class LocalSyncData {
10
+ static conceptsSyncArray: Concept[];
11
+ static connectionSyncArray: Connection[];
12
+ static ghostIdMap: Map<any, any>;
13
+ static transactionCollections: syncContainer[];
14
+ static CheckContains(concept: Concept): boolean;
15
+ static SyncDataDelete(id: number): void;
16
+ static CheckContainsConnection(connection: Connection): boolean;
17
+ static AddConcept(concept: Concept): void;
18
+ static RemoveConcept(concept: Concept): void;
19
+ static SyncDataOnlineWithoutAuth(transactionId?: string, actions?: InnerActions, withAuth?: boolean): Promise<any>;
20
+ static SyncDataOnline(transactionId?: string, actions?: InnerActions, withAuth?: boolean): Promise<any>;
21
+ static ConvertGhostIdsInConnections(connectionArray: Connection[]): void;
22
+ static UpdateConceptListToIncludeRelatedConcepts(connectionArray: Connection[], conceptsArray: Concept[]): Promise<void>;
23
+ static AddConceptIfDoesNotExist(concept: Concept, conceptList?: Concept[]): void;
24
+ static CheckIfTheConceptIdExists(id: number, conceptList?: Concept[]): Concept;
25
+ static AddConnection(connection: Connection): void;
26
+ static RemoveConnection(connection: Connection): void;
27
+ static RemoveConnectionById(connectionId: number): void;
28
+ static syncDataLocalDb(): Promise<string>;
29
+ static initializeTransaction(transactionId: string): Promise<any>;
30
+ static markTransactionActions(transactionId: string, actions: InnerActions): Promise<any>;
31
+ static rollbackTransaction(transactionId: string, actions: InnerActions): Promise<any>;
32
+ }
33
+ export {};
@@ -0,0 +1,30 @@
1
+ import { Concept } from "./Concept";
2
+ export declare class Node {
3
+ key: any;
4
+ value: Concept;
5
+ leftNode: Node | null;
6
+ rightNode: Node | null;
7
+ currentNode: Node | null;
8
+ variants: Node[];
9
+ height: number;
10
+ constructor(key: any, value: Concept, leftNode: Node | null, rightNode: Node | null);
11
+ addCurrentNode(passedNode: Node, node: Node | null): Node;
12
+ addCurrentNodeType(passedNode: Node, node: Node | null): Node;
13
+ addNode(passedNode: Node, node: Node | null, height: number): Node | null;
14
+ checkIfIdsInNode(node: Node | null, ids: number[], connectionArray: Concept[], remainingIds: any): void;
15
+ addCharacterNode(passedNode: Node, node: Node | null, height: number): Node | null;
16
+ addTypeNode(passedNode: Node, node: Node | null, height: number): Node | null;
17
+ rightRotate(y: Node | null): Node | null;
18
+ leftRotate(x: Node | null): Node | null;
19
+ getHeight(node: Node | null): number;
20
+ getBalanceFactor(N: Node | null): number;
21
+ getFromNode(id: number, node: Node | null): Node | null;
22
+ getCharacterFromNode(value: string, node: Node | null): Node | null;
23
+ getCharacterFromNodeUpdated(value: string, node: Node | null): Node | null;
24
+ getFromNodeWithCharacterAndType(value: string, typeId: number, node: Node | null): Node | null;
25
+ getFromNodeWithCharacterAndCategory(value: string, categoryId: number, node: Node | null): Node | null;
26
+ removeNode(passedNode: Node | null, id: number): Node | null;
27
+ removeNodeWithVariants(passedNode: Node | null, typeIdentifier: any, conceptId: number): Node | null;
28
+ countNodeBelow(root: Node | null): number;
29
+ inOrderSuccessor(root: Node): Node;
30
+ }
@@ -0,0 +1,8 @@
1
+ export declare class PatcherStructure {
2
+ compositionId: number;
3
+ userId: number;
4
+ sessionId: number;
5
+ accessId: number;
6
+ ofTheCompositionId: number;
7
+ patchObject: any;
8
+ }
@@ -0,0 +1,19 @@
1
+ import { Concept } from "../Concept";
2
+ import { Connection } from "../Connection";
3
+ import { PrototypeOption } from "./PrototypeOption";
4
+ import { QuerySelector } from "./QuerySelector";
5
+ export declare class Prototype {
6
+ prototype: string;
7
+ required: string[];
8
+ optional: string[];
9
+ field: string;
10
+ childPrototypes: Prototype[];
11
+ isCompositional: boolean;
12
+ options: PrototypeOption[];
13
+ isQueryType: boolean;
14
+ querySelector: QuerySelector | null;
15
+ concepts: Concept[];
16
+ connections: Connection[];
17
+ addedConcepts: Concept[];
18
+ addedConnections: Connection[];
19
+ }
@@ -0,0 +1,4 @@
1
+ export declare class PrototypeOption {
2
+ type: string;
3
+ value: string;
4
+ }
@@ -0,0 +1,4 @@
1
+ export declare class QuerySelector {
2
+ filterType: string;
3
+ selector: string;
4
+ }
@@ -0,0 +1,10 @@
1
+ export declare class ReservedIds {
2
+ static ids: number[];
3
+ static getId(): Promise<number>;
4
+ static AddId(id: number): void;
5
+ }
6
+ export declare class ReservedConnectionIds {
7
+ static connectionIds: number[];
8
+ static getId(): Promise<number>;
9
+ static AddId(id: number): void;
10
+ }