mftsccs-browser 2.1.238-beta → 2.1.239-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 (274) hide show
  1. package/dist/main.bundle.js +43918 -2
  2. package/dist/main.bundle.js.map +1 -0
  3. package/dist/serviceWorker.bundle.js +44844 -2
  4. package/dist/serviceWorker.bundle.js.map +1 -0
  5. package/package.json +4 -1
  6. package/dist/main.bundle.js.LICENSE.txt +0 -1
  7. package/dist/serviceWorker.bundle.js.LICENSE.txt +0 -1
  8. package/dist/types/AccessTracker/accessTracker.d.ts +0 -67
  9. package/dist/types/Anomaly/anomaly.d.ts +0 -103
  10. package/dist/types/Api/Create/CreateTheCharacter.d.ts +0 -24
  11. package/dist/types/Api/Create/CreateTheConceptApi.d.ts +0 -20
  12. package/dist/types/Api/Create/CreateTheConnectionApi.d.ts +0 -18
  13. package/dist/types/Api/Create/CreateTheGhostConceptApi.d.ts +0 -28
  14. package/dist/types/Api/Create/CreateTheGhostConnectionApi.d.ts +0 -18
  15. package/dist/types/Api/Create/CreateTheTextData.d.ts +0 -18
  16. package/dist/types/Api/Delete/DeleteConceptInBackend.d.ts +0 -14
  17. package/dist/types/Api/Delete/DeleteUserInBackend.d.ts +0 -19
  18. package/dist/types/Api/DeleteConnectionBulkApi.d.ts +0 -20
  19. package/dist/types/Api/DeleteTheConcept.d.ts +0 -20
  20. package/dist/types/Api/DeleteTheConnection.d.ts +0 -20
  21. package/dist/types/Api/GetAiData.d.ts +0 -10
  22. package/dist/types/Api/GetAllConceptsByType.d.ts +0 -12
  23. package/dist/types/Api/GetAllConnectionsOfComposition.d.ts +0 -23
  24. package/dist/types/Api/GetAllConnectionsOfCompositionBulk.d.ts +0 -23
  25. package/dist/types/Api/GetAllLinkerConnectionsFromTheConcept.d.ts +0 -12
  26. package/dist/types/Api/GetAllLinkerConnectionsToTheConcept.d.ts +0 -12
  27. package/dist/types/Api/GetCharacterDataByCharacter.d.ts +0 -12
  28. package/dist/types/Api/GetCompositionConnectionsBetweenTwoConcepts.d.ts +0 -13
  29. package/dist/types/Api/GetConcept.d.ts +0 -6
  30. package/dist/types/Api/GetConceptBulk.d.ts +0 -20
  31. package/dist/types/Api/GetConceptByCharacterAndType.d.ts +0 -15
  32. package/dist/types/Api/GetConceptByCharacterValue.d.ts +0 -12
  33. package/dist/types/Api/GetConnection.d.ts +0 -15
  34. package/dist/types/Api/GetConnectionBulk.d.ts +0 -7
  35. package/dist/types/Api/GetConnectionOfTheConcept.d.ts +0 -15
  36. package/dist/types/Api/GetConnectionToTheConcept.d.ts +0 -17
  37. package/dist/types/Api/GetConnections/GetConnectionsBetweenApi.d.ts +0 -40
  38. package/dist/types/Api/GetConnections/GetConnectionsByTypeApi.d.ts +0 -15
  39. package/dist/types/Api/GetInstanceConceptByCharacterType.d.ts +0 -9
  40. package/dist/types/Api/GetReservedConnectionIds.d.ts +0 -10
  41. package/dist/types/Api/GetReservedIds.d.ts +0 -10
  42. package/dist/types/Api/Images/GetImages.d.ts +0 -15
  43. package/dist/types/Api/Local/GetLocalConceptByCharacterValue.d.ts +0 -13
  44. package/dist/types/Api/Login.d.ts +0 -78
  45. package/dist/types/Api/MakeTheNameInBackend.d.ts +0 -14
  46. package/dist/types/Api/MakeTheTypeConceptApi.d.ts +0 -9
  47. package/dist/types/Api/Prototype/Selector.d.ts +0 -26
  48. package/dist/types/Api/RecursiveSearch.d.ts +0 -67
  49. package/dist/types/Api/Search/FreeschemaQueryApi.d.ts +0 -18
  50. package/dist/types/Api/Search/Search.d.ts +0 -73
  51. package/dist/types/Api/Search/SearchInternalApi.d.ts +0 -28
  52. package/dist/types/Api/Search/SearchLinkMultipleApi.d.ts +0 -15
  53. package/dist/types/Api/Search/SearchWithLinker.d.ts +0 -16
  54. package/dist/types/Api/Search/SearchWithTypeAndLinker.d.ts +0 -14
  55. package/dist/types/Api/SearchConcept/GetConceptByCharacterAndCategoryApi.d.ts +0 -12
  56. package/dist/types/Api/SearchConcept/GetConceptByCharacterAndCategoryDirect.d.ts +0 -13
  57. package/dist/types/Api/SearchConcept/GetTypeConceptByBulk.d.ts +0 -15
  58. package/dist/types/Api/Session/CreateSession.d.ts +0 -16
  59. package/dist/types/Api/Session/CreateSessionVisit.d.ts +0 -12
  60. package/dist/types/Api/Signin.d.ts +0 -24
  61. package/dist/types/Api/Signup.d.ts +0 -61
  62. package/dist/types/Api/Translate/TranslateLocalToReal.d.ts +0 -12
  63. package/dist/types/Api/View/ViewInternalDataApi.d.ts +0 -15
  64. package/dist/types/Constants/AccessConstants.d.ts +0 -3
  65. package/dist/types/Constants/ApiConstants.d.ts +0 -23
  66. package/dist/types/Constants/FormatConstants.d.ts +0 -8
  67. package/dist/types/Constants/ckeditorCSS.d.ts +0 -1
  68. package/dist/types/Constants/general.const.d.ts +0 -6
  69. package/dist/types/Constants/page.const.d.ts +0 -5
  70. package/dist/types/DataStructures/BaseUrl.d.ts +0 -89
  71. package/dist/types/DataStructures/BinaryCharacterTree.d.ts +0 -16
  72. package/dist/types/DataStructures/BinaryTree.d.ts +0 -77
  73. package/dist/types/DataStructures/BinaryTypeTree.d.ts +0 -17
  74. package/dist/types/DataStructures/CharacterRepository.d.ts +0 -8
  75. package/dist/types/DataStructures/Composition/Composition.d.ts +0 -14
  76. package/dist/types/DataStructures/Composition/CompositionBinaryTree.d.ts +0 -10
  77. package/dist/types/DataStructures/Composition/CompositionNode.d.ts +0 -21
  78. package/dist/types/DataStructures/Concept.d.ts +0 -25
  79. package/dist/types/DataStructures/ConceptData.d.ts +0 -30
  80. package/dist/types/DataStructures/ConceptsToDraw.d.ts +0 -11
  81. package/dist/types/DataStructures/Connection.d.ts +0 -23
  82. package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionBinaryTree.d.ts +0 -81
  83. package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionNode.d.ts +0 -27
  84. package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionOfNode.d.ts +0 -10
  85. package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionOfTheTree.d.ts +0 -24
  86. package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionTypeNode.d.ts +0 -10
  87. package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionTypeTree.d.ts +0 -20
  88. package/dist/types/DataStructures/ConnectionBinaryTree/NodePrimitive.d.ts +0 -15
  89. package/dist/types/DataStructures/ConnectionByType/GetConnectionByType.d.ts +0 -4
  90. package/dist/types/DataStructures/ConnectionData.d.ts +0 -26
  91. package/dist/types/DataStructures/Count/CountInfo.d.ts +0 -6
  92. package/dist/types/DataStructures/FetchConnection.d.ts +0 -64
  93. package/dist/types/DataStructures/FilterSearch.d.ts +0 -9
  94. package/dist/types/DataStructures/IdentifierFlags.d.ts +0 -11
  95. package/dist/types/DataStructures/Local/LConcept.d.ts +0 -23
  96. package/dist/types/DataStructures/Local/LConnection.d.ts +0 -18
  97. package/dist/types/DataStructures/Local/LNode.d.ts +0 -29
  98. package/dist/types/DataStructures/Local/LocalBinaryCharacterTree.d.ts +0 -13
  99. package/dist/types/DataStructures/Local/LocalBinaryTree.d.ts +0 -13
  100. package/dist/types/DataStructures/Local/LocalBinaryTypeTree.d.ts +0 -13
  101. package/dist/types/DataStructures/Local/LocalConceptData.d.ts +0 -21
  102. package/dist/types/DataStructures/Local/LocalConnectionData.d.ts +0 -20
  103. package/dist/types/DataStructures/Local/LocalGhostIdTree.d.ts +0 -11
  104. package/dist/types/DataStructures/Local/LocalId.d.ts +0 -19
  105. package/dist/types/DataStructures/Local/LocalSyncData.d.ts +0 -33
  106. package/dist/types/DataStructures/Node.d.ts +0 -30
  107. package/dist/types/DataStructures/PatcherStructure.d.ts +0 -8
  108. package/dist/types/DataStructures/Prototype/Prototype.d.ts +0 -19
  109. package/dist/types/DataStructures/Prototype/PrototypeOption.d.ts +0 -4
  110. package/dist/types/DataStructures/Prototype/QuerySelector.d.ts +0 -4
  111. package/dist/types/DataStructures/ReservedIds.d.ts +0 -10
  112. package/dist/types/DataStructures/Responses/ErrorResponse.d.ts +0 -74
  113. package/dist/types/DataStructures/Responses/StandardResponses.d.ts +0 -6
  114. package/dist/types/DataStructures/Returner.d.ts +0 -7
  115. package/dist/types/DataStructures/Search/FreeschemaQuery.d.ts +0 -25
  116. package/dist/types/DataStructures/Search/SearchStructure.d.ts +0 -10
  117. package/dist/types/DataStructures/SearchQuery.d.ts +0 -17
  118. package/dist/types/DataStructures/Security/SecureStorage.d.ts +0 -14
  119. package/dist/types/DataStructures/Security/TokenStorage.d.ts +0 -24
  120. package/dist/types/DataStructures/Session/SessionData.d.ts +0 -13
  121. package/dist/types/DataStructures/SettingData.d.ts +0 -5
  122. package/dist/types/DataStructures/Settings.d.ts +0 -4
  123. package/dist/types/DataStructures/SigninModel.d.ts +0 -4
  124. package/dist/types/DataStructures/SignupModel.d.ts +0 -4
  125. package/dist/types/DataStructures/SyncData.d.ts +0 -14
  126. package/dist/types/DataStructures/TheCharacter.d.ts +0 -13
  127. package/dist/types/DataStructures/TheTexts.d.ts +0 -14
  128. package/dist/types/DataStructures/TypeLibrary.d.ts +0 -19
  129. package/dist/types/DataStructures/TypeNode.d.ts +0 -18
  130. package/dist/types/DataStructures/User/UserBinaryTree.d.ts +0 -13
  131. package/dist/types/DataStructures/User/UserNode.d.ts +0 -18
  132. package/dist/types/DataStructures/WidgetCache/WidgetCache.d.ts +0 -10
  133. package/dist/types/DataStructures/WidgetCache/WidgetDetails.d.ts +0 -9
  134. package/dist/types/DataStructures/WidgetCache/WidgetNode.d.ts +0 -18
  135. package/dist/types/DataStructures/environments/environments.d.ts +0 -48
  136. package/dist/types/Database/CacheDatabase.d.ts +0 -57
  137. package/dist/types/Database/IndexUpdate.d.ts +0 -47
  138. package/dist/types/Database/NoIndexDb.d.ts +0 -9
  139. package/dist/types/Database/indexdblocal.d.ts +0 -43
  140. package/dist/types/Database/indexeddb.d.ts +0 -58
  141. package/dist/types/Helpers/CheckIfExists.d.ts +0 -9
  142. package/dist/types/Helpers/RemoveFromArray.d.ts +0 -5
  143. package/dist/types/Helpers/UniqueInsert.d.ts +0 -1
  144. package/dist/types/Middleware/ApplicationMonitor.d.ts +0 -14
  145. package/dist/types/Middleware/logger.service.d.ts +0 -144
  146. package/dist/types/ServiceWorker/actions/connectionActions.d.ts +0 -2
  147. package/dist/types/ServiceWorker/actions/createActions.d.ts +0 -2
  148. package/dist/types/ServiceWorker/actions/deleteActions.d.ts +0 -2
  149. package/dist/types/ServiceWorker/actions/getActions.d.ts +0 -2
  150. package/dist/types/ServiceWorker/actions/index.d.ts +0 -15
  151. package/dist/types/ServiceWorker/actions/searchActions.d.ts +0 -2
  152. package/dist/types/ServiceWorker/actions/syncActions.d.ts +0 -2
  153. package/dist/types/ServiceWorker/actions/updateActions.d.ts +0 -2
  154. package/dist/types/ServiceWorker/index.d.ts +0 -11
  155. package/dist/types/Services/CacheClear.d.ts +0 -7
  156. package/dist/types/Services/CheckForConnectionDeletion.d.ts +0 -3
  157. package/dist/types/Services/Common/DecodeCountInfo.d.ts +0 -3
  158. package/dist/types/Services/Common/DelayFunction.d.ts +0 -7
  159. package/dist/types/Services/Common/ErrorPosting.d.ts +0 -10
  160. package/dist/types/Services/Common/MergeArrays.d.ts +0 -7
  161. package/dist/types/Services/Common/RegexFunction.d.ts +0 -1
  162. package/dist/types/Services/Common/RemoveAllChild.d.ts +0 -1
  163. package/dist/types/Services/Composition/BuildComposition.d.ts +0 -3
  164. package/dist/types/Services/Composition/CompositionCache.d.ts +0 -4
  165. package/dist/types/Services/Composition/CreateCompositionCache.d.ts +0 -3
  166. package/dist/types/Services/ConceptFinding/GetConceptByCharacterAndCategory.d.ts +0 -5
  167. package/dist/types/Services/Conversion/ConvertConcepts.d.ts +0 -5
  168. package/dist/types/Services/CreateBinaryTreeFromData.d.ts +0 -5
  169. package/dist/types/Services/CreateConnection/CreateConnectionEntity.d.ts +0 -2
  170. package/dist/types/Services/CreateConnectionBetweenTwoConcepts.d.ts +0 -5
  171. package/dist/types/Services/CreateDefaultConcept.d.ts +0 -3
  172. package/dist/types/Services/CreateTheComposition.d.ts +0 -1
  173. package/dist/types/Services/CreateTheConcept.d.ts +0 -122
  174. package/dist/types/Services/CreateTheConnection.d.ts +0 -63
  175. package/dist/types/Services/CreateTheConnectionGeneral.d.ts +0 -2
  176. package/dist/types/Services/DeleteConcept.d.ts +0 -2
  177. package/dist/types/Services/DeleteConnection.d.ts +0 -2
  178. package/dist/types/Services/DeleteConnectionByType.d.ts +0 -22
  179. package/dist/types/Services/FindConeceptsFromConnection.d.ts +0 -6
  180. package/dist/types/Services/FindConnectionsOfCompositionBulkInMemory.d.ts +0 -1
  181. package/dist/types/Services/GetComposition.d.ts +0 -205
  182. package/dist/types/Services/GetCompositionBulk.d.ts +0 -100
  183. package/dist/types/Services/GetCompositionList.d.ts +0 -7
  184. package/dist/types/Services/GetConceptByCharacter.d.ts +0 -2
  185. package/dist/types/Services/GetConnectionBetweenTwoConceptsLinker.d.ts +0 -11
  186. package/dist/types/Services/GetConnections.d.ts +0 -1
  187. package/dist/types/Services/GetDataFromIndexDb.d.ts +0 -2
  188. package/dist/types/Services/GetLink.d.ts +0 -3
  189. package/dist/types/Services/GetLinkerConnectionFromConcept.d.ts +0 -3
  190. package/dist/types/Services/GetRelation.d.ts +0 -3
  191. package/dist/types/Services/GetTheConcept.d.ts +0 -96
  192. package/dist/types/Services/InitializeSystem.d.ts +0 -2
  193. package/dist/types/Services/Local/ConvertFromLConceptToConcept.d.ts +0 -41
  194. package/dist/types/Services/Local/ConvertFromLConnectionToConnection.d.ts +0 -47
  195. package/dist/types/Services/Local/CreateConnectionBetweenTwoConceptsLocal.d.ts +0 -44
  196. package/dist/types/Services/Local/CreateDefaultLConcept.d.ts +0 -46
  197. package/dist/types/Services/Local/CreateLocalBinaryTreeFromData.d.ts +0 -34
  198. package/dist/types/Services/Local/CreateTheCompositionLocal.d.ts +0 -104
  199. package/dist/types/Services/Local/CreateTheConceptLocal.d.ts +0 -84
  200. package/dist/types/Services/Local/CreateTheConnectionLocal.d.ts +0 -140
  201. package/dist/types/Services/Local/DeleteConceptLocal.d.ts +0 -47
  202. package/dist/types/Services/Local/GetCompositionListLocal.d.ts +0 -37
  203. package/dist/types/Services/Local/GetCompositionLocal.d.ts +0 -97
  204. package/dist/types/Services/Local/GetConceptByCharacterLocal.d.ts +0 -56
  205. package/dist/types/Services/Local/GetConnectionOfTheConceptLocal.d.ts +0 -19
  206. package/dist/types/Services/Local/GetRelationLocal.d.ts +0 -21
  207. package/dist/types/Services/Local/GetTheConceptLocal.d.ts +0 -63
  208. package/dist/types/Services/Local/MakeTheConceptLocal.d.ts +0 -22
  209. package/dist/types/Services/Local/MakeTheInstanceConceptLocal.d.ts +0 -164
  210. package/dist/types/Services/Local/MakeTheTypeLocal.d.ts +0 -36
  211. package/dist/types/Services/Local/UpdateCompositionLocal.d.ts +0 -42
  212. package/dist/types/Services/Logs/LogEvent.d.ts +0 -1
  213. package/dist/types/Services/Mail.d.ts +0 -18
  214. package/dist/types/Services/MakeTheCharacter.d.ts +0 -2
  215. package/dist/types/Services/MakeTheCharacterData.d.ts +0 -2
  216. package/dist/types/Services/MakeTheConcept.d.ts +0 -2
  217. package/dist/types/Services/MakeTheInstanceConcept.d.ts +0 -15
  218. package/dist/types/Services/MakeTheTimestamp.d.ts +0 -1
  219. package/dist/types/Services/MakeTheTypeConcept.d.ts +0 -1
  220. package/dist/types/Services/Mqtt/publishMessage.d.ts +0 -1
  221. package/dist/types/Services/Search/DataIdFormat.d.ts +0 -32
  222. package/dist/types/Services/Search/FormatData.d.ts +0 -36
  223. package/dist/types/Services/Search/JustIdFormat.d.ts +0 -23
  224. package/dist/types/Services/Search/NewFormat.d.ts +0 -4
  225. package/dist/types/Services/Search/SearchLinkInternal.d.ts +0 -3
  226. package/dist/types/Services/Search/SearchLinkMultiple.d.ts +0 -55
  227. package/dist/types/Services/Search/SearchWithTypeAndLinker.d.ts +0 -82
  228. package/dist/types/Services/Search/orderingConnections.d.ts +0 -2
  229. package/dist/types/Services/Security/GetRequestHeader.d.ts +0 -6
  230. package/dist/types/Services/SplitStrings.d.ts +0 -1
  231. package/dist/types/Services/Transaction/LocalTransaction.d.ts +0 -117
  232. package/dist/types/Services/UpdateComposition.d.ts +0 -2
  233. package/dist/types/Services/Upload.d.ts +0 -34
  234. package/dist/types/Services/User/UserFromLocalStorage.d.ts +0 -10
  235. package/dist/types/Services/User/UserTranslation.d.ts +0 -3
  236. package/dist/types/Services/View/ViewInternalData.d.ts +0 -1
  237. package/dist/types/Services/assets/GetImageService.d.ts +0 -14
  238. package/dist/types/Services/automated/automated-concept-connection.d.ts +0 -7
  239. package/dist/types/Services/cacheService.d.ts +0 -1
  240. package/dist/types/Validator/constant.d.ts +0 -3
  241. package/dist/types/Validator/interface.d.ts +0 -19
  242. package/dist/types/Validator/utils.d.ts +0 -7
  243. package/dist/types/Validator/validator.d.ts +0 -37
  244. package/dist/types/Visualize/ConceptCircle.d.ts +0 -35
  245. package/dist/types/Visualize/ConceptCircleList.d.ts +0 -9
  246. package/dist/types/Visualize/ConnectionLine.d.ts +0 -21
  247. package/dist/types/Visualize/ConnectionLineList.d.ts +0 -6
  248. package/dist/types/Visualize/drawExistingConcepts.d.ts +0 -8
  249. package/dist/types/Visualize/helper.d.ts +0 -15
  250. package/dist/types/Widgets/BaseObserver.d.ts +0 -25
  251. package/dist/types/Widgets/BaseWidget.d.ts +0 -37
  252. package/dist/types/Widgets/BuilderSpeceficFunctions.d.ts +0 -11
  253. package/dist/types/Widgets/BuilderStatefulWidget.d.ts +0 -392
  254. package/dist/types/Widgets/CacheWidget.service.d.ts +0 -77
  255. package/dist/types/Widgets/NormalizeStyles.service.d.ts +0 -10
  256. package/dist/types/Widgets/RenderPage.service.d.ts +0 -17
  257. package/dist/types/Widgets/RenderWidgetLibrary.service.d.ts +0 -22
  258. package/dist/types/Widgets/RenderWidgetService.d.ts +0 -187
  259. package/dist/types/Widgets/StatefulWidget.d.ts +0 -167
  260. package/dist/types/Widgets/WidgetBuild.d.ts +0 -45
  261. package/dist/types/Widgets/WidgetCacheManager.d.ts +0 -108
  262. package/dist/types/Widgets/WidgetTree.d.ts +0 -61
  263. package/dist/types/WrapperFunctions/DepenedencyObserver.d.ts +0 -95
  264. package/dist/types/WrapperFunctions/GetCompositionListObservable.d.ts +0 -51
  265. package/dist/types/WrapperFunctions/GetCompositionObservable.d.ts +0 -35
  266. package/dist/types/WrapperFunctions/GetLinkListObservable.d.ts +0 -57
  267. package/dist/types/WrapperFunctions/GetLinkObservable.d.ts +0 -50
  268. package/dist/types/WrapperFunctions/QueryCacheManager.d.ts +0 -107
  269. package/dist/types/WrapperFunctions/RecursiveSearchObservable.d.ts +0 -55
  270. package/dist/types/WrapperFunctions/SchemaQueryObservable.d.ts +0 -60
  271. package/dist/types/WrapperFunctions/SearchLinkMultipleAllObservable.d.ts +0 -36
  272. package/dist/types/app.d.ts +0 -377
  273. package/dist/types/prototype/prototype.service.d.ts +0 -25
  274. package/dist/types/service-worker.d.ts +0 -1
@@ -1,205 +0,0 @@
1
- import { Concept } from "../DataStructures/Concept";
2
- import { Connection } from "../DataStructures/Connection";
3
- export declare function GetCompositionById(id: number): Promise<{
4
- connectionList: Connection[];
5
- compositionList: number[];
6
- }>;
7
- /**
8
- * ## format JUSTDATA ##
9
- * this function builds the composition with the main id as the point of building.
10
- * @param id id of the main composition that you want to build
11
- * @param connectionList list of connections
12
- * @param compositionList list of of_the_concept_ids for all the connections.
13
- * @returns
14
- */
15
- export declare function RecursiveFetchBuildLayer(id: number, connectionList: Connection[], compositionList: number[]): Promise<any>;
16
- /**
17
- * ## format DATAID ##
18
- * this function builds the composition with the main id as the point of building.
19
- * @param id id of the main composition that you want to build
20
- * @param connectionList list of connections
21
- * @param compositionList list of of_the_concept_ids for all the connections.
22
- * @returns
23
- */
24
- export declare function RecursiveFetchBuildLayerDataId(id: number, connectionList: Connection[], compositionList: number[]): Promise<any>;
25
- /**
26
- * ## format Normal ##
27
- * this function builds the composition with the main id as the point of building.
28
- * @param id id of the main composition that you want to build
29
- * @param connectionList list of connections
30
- * @param compositionList list of of_the_concept_ids for all the connections.
31
- * @returns
32
- */
33
- export declare function RecursiveFetchBuildLayerNormal(id: number, connectionList: Connection[], compositionList: number[]): Promise<any>;
34
- /**
35
- * Retrieves a complete composition structure for a given concept ID in JUSTDATA format.
36
- *
37
- * This is a primary composition retrieval function that builds a hierarchical structure
38
- * containing the main concept, all its connections, and recursively fetched related concepts.
39
- * The result is formatted as a nested object organized by concept types.
40
- *
41
- * **What is a Composition?**
42
- * A composition represents a concept along with its connected relationships and sub-structures.
43
- * Think of it as getting a "full profile" of a concept including everything connected to it.
44
- *
45
- * **Process:**
46
- * 1. Fetches all connections associated with the concept
47
- * 2. Identifies all related concept IDs from those connections
48
- * 3. Recursively builds the composition tree
49
- * 4. Fetches the main concept details
50
- * 5. Organizes output by concept type (e.g., result["Person"] = {...})
51
- * 6. Routes through service worker if enabled for better performance
52
- *
53
- * **Output Format (JUSTDATA):**
54
- * Returns an object keyed by the main concept's type character value:
55
- * ```
56
- * {
57
- * "Person": {
58
- * id: 123,
59
- * characterValue: "Alice",
60
- * connections: [...],
61
- * relatedConcepts: {...}
62
- * }
63
- * }
64
- * ```
65
- *
66
- * @param id - The unique identifier of the concept for which to build the composition.
67
- * This becomes the root of the composition tree.
68
- *
69
- * @returns Promise resolving to an object containing the composition data organized by
70
- * the main concept's type. Returns empty object if concept not found or on error.
71
- *
72
- * @example
73
- * // Get composition for a person concept
74
- * const composition = await GetComposition(12345);
75
- * console.log(composition["Person"]);
76
- * // {
77
- * // id: 12345,
78
- * // characterValue: "Alice Smith",
79
- * // connections: [... all connections],
80
- * // Company: { ... related company data },
81
- * // Projects: { ... related projects }
82
- * // }
83
- *
84
- * @example
85
- * // Get composition for an organization
86
- * const orgComposition = await GetComposition(456);
87
- * console.log(orgComposition["Organization"]);
88
- * // Contains the organization and all connected employees, departments, etc.
89
- *
90
- * @example
91
- * // Use with service worker (automatic if enabled)
92
- * // Service worker handles the heavy lifting in background
93
- * const result = await GetComposition(789);
94
- *
95
- * @see {@link GetCompositionWithId} for composition with ID and timestamp (DATAID format)
96
- * @see {@link GetCompositionBulk} for fetching multiple compositions efficiently
97
- * @see {@link GetCompositionWithCache} for cached composition retrieval
98
- * @see {@link recursiveFetch} for the recursive building logic
99
- */
100
- export declare function GetComposition(id: number): Promise<any>;
101
- export declare function GetCompositionWithAllIds(id: number): Promise<any>;
102
- /**
103
- * ### Format JUSTDATA ###
104
- * This function just builds data from the memory.
105
- * This is a function that takes on all the concepts and connections of the concept (as a composition ) and builds
106
- * it into a json data.
107
- * @param id this id is just used to get all the composition data from the concepts and connections in memory
108
- * @returns
109
- */
110
- export declare function GetCompositionFromMemory(id: number): Promise<any>;
111
- /**
112
- * ### Format Normal ###
113
- * This function just builds data from the memory.
114
- * This is a function that takes on all the concepts and connections of the concept (as a composition ) and builds
115
- * it into a json data.
116
- * @param id this id is just used to get all the composition data from the concepts and connections in memory
117
- * @returns
118
- */
119
- export declare function GetCompositionFromMemoryNormal(id: number): Promise<any>;
120
- /**
121
- * ### Format DATAIDDATE ####
122
- * Gets data just from memory
123
- * @param id
124
- * @returns
125
- */
126
- export declare function GetCompositionWithIdFromMemory(id: number): Promise<any>;
127
- /**
128
- * ### Format Normal ####
129
- * Gets data just from memory
130
- * @param id
131
- * @returns
132
- */
133
- export declare function GetCompositionFromMemoryWithConnections(id: number, connectionList: Connection[]): Promise<any>;
134
- /**
135
- * ### Format DATAIDDATE ####
136
- * Gets data just from memory
137
- * @param id
138
- * @returns
139
- */
140
- export declare function GetCompositionWithIdFromMemoryFromConnection(id: number, connectionList: Connection[]): Promise<any>;
141
- /**
142
- * ### Format DATAIDDATE ####
143
- * ### experimental ####
144
- * This is the new format that needs to work with a single or max two loops
145
- * @param id the id whose composition needs to be created
146
- * @returns
147
- */
148
- export declare function GetCompositionWithIdFromMemoryNew(id: number): Promise<any>;
149
- /**
150
- * ### Format DATAIDDATE #####
151
- * ### This just returns composition from memory and not from anywhere else.
152
- * @param id
153
- * @returns
154
- */
155
- export declare function GetCompositionWithIdAndDateFromMemory(id: number): Promise<any>;
156
- export declare function GetCompositionWithIdFromMemoryFromConnections(id: number, connectionList?: Connection[]): Promise<any>;
157
- /**
158
- * #### Format DATAID ####
159
- * ## This will return the composition even if it is not in the local memory ##
160
- * @param id
161
- * @returns
162
- */
163
- export declare function GetCompositionWithId(id: number): Promise<any>;
164
- /**
165
- * ## Format justdata ###
166
- * ## This contains a concept in the parameter so that you dont have to again find the concept ##
167
- * This function takes concepts and connections and then builds a json.
168
- * @param concept The concept that needs to get other concepts that are inside of it.
169
- * @param connectionList List of connections that are available in the composition. We have to loop over it.
170
- * @param compositionList Composition list is the list of concepts that have connections inside of them.
171
- * @param visitedConcepts This is a checking mechanism to not go in loops. So preferably pass an empty array.
172
- * @returns
173
- */
174
- export declare function recursiveFetchConcept(concept: Concept, connectionList: Connection[], compositionList: number[], visitedConcepts?: number[]): Promise<any>;
175
- /**
176
- * ## Format Normal ###
177
- * ## This contains a concept in the parameter so that you dont have to again find the concept ##
178
- * This function takes concepts and connections and then builds a json.
179
- * @param concept The concept that needs to get other concepts that are inside of it.
180
- * @param connectionList List of connections that are available in the composition. We have to loop over it.
181
- * @param compositionList Composition list is the list of concepts that have connections inside of them.
182
- * @param visitedConcepts This is a checking mechanism to not go in loops. So preferably pass an empty array.
183
- * @returns
184
- */
185
- export declare function recursiveFetchConceptNormal(concept: Concept, connectionList: Connection[], compositionList: number[], visitedConcepts?: number[]): Promise<any>;
186
- /**
187
- * ## experimental ##
188
- * This function takes concepts and connections and then builds a json.
189
- * @param concept The concept that needs to get other concepts that are inside of it.
190
- * @param connectionList List of connections that are available in the composition. We have to loop over it.
191
- * @param compositionList Composition list is the list of concepts that have connections inside of them.
192
- * @param visitedConcepts This is a checking mechanism to not go in loops. So preferably pass an empty array.
193
- * @returns
194
- */
195
- export declare function recursiveFetchConceptSingleLoop(concept: Concept, connectionList: Connection[], compositionList: number[], visitedConcepts?: number[]): Promise<any>;
196
- /**
197
- * ## Format justdata ##
198
- * @param id
199
- * @param connectionList
200
- * @param compositionList
201
- * @param visitedConcepts
202
- * @returns
203
- */
204
- export declare function recursiveFetch(id: number, connectionList: Connection[], compositionList: number[], visitedConcepts?: number[]): Promise<any>;
205
- export declare function recursiveFetchWithSubCompositions(id: number, connectionList: Connection[], compositionList: number[], visitedConcepts?: number[]): Promise<any>;
@@ -1,100 +0,0 @@
1
- import { Connection } from "../DataStructures/Connection";
2
- /**
3
- * ## Format JUSTDATA ##
4
- * Function converts the conceptIds to json (compositions)
5
- * This function takes in the conceptIds and returns a list of compositions related to those concepts.
6
- * @param conceptIds list of concept ids that are compositions.
7
- * @returns compositions
8
- */
9
- export declare function GetCompositionBulk(conceptIds?: number[]): Promise<any[]>;
10
- /**
11
- * ## FORMAT DATAIDDATE ##
12
- * Function converts the conceptIds to json (compositions)
13
- * @param conceptIds this is the list of concept ids that should be converted to compostions in data - id format.
14
- * @returns list of compositions in the data - id format.
15
- */
16
- export declare function GetCompositionBulkWithDataId(conceptIds?: number[]): Promise<any[]>;
17
- /**
18
- * ## FORMAT DATAIDDATE ##
19
- * This function converts the conceptIds and internal connectionIds to compositions in data-Id format.
20
- * @param conceptIds This is the list of concept ids that need to be converted to compositions.
21
- * @param connectionIds These are the internal connectionIds that need to be passed to create the compositions.
22
- * @returns list of compositions created from the passed conceptIds and connectionIds.
23
- */
24
- export declare function GetCompositionFromConnectionsWithDataId(conceptIds?: number[], connectionIds?: number[]): Promise<any>;
25
- /**
26
- * ## FORMAT DATAIDDATE ##
27
- * This is just a different version of GetCompositionFromConnectionsWithDataId, This has the added functionality that
28
- * it also prints out internal connections.
29
- * This function converts the conceptIds and internal connectionIds to compositions in data-Id format.
30
- * @param conceptIds This is the list of concept ids that need to be converted to compositions.
31
- * @param connectionIds These are the internal connectionIds that need to be passed to create the compositions.
32
- * @returns list of compositions created from the passed conceptIds and connectionIds.
33
- */
34
- export declare function GetCompositionFromConnectionsWithDataIdFromConnections(conceptIds?: number[], connectionIds?: number[]): Promise<any>;
35
- /**
36
- * ## Format DATAIDDATE ##
37
- * This function converts the conceptIds and internal connectionIds to compositions in data-Id format with index(conceptId).
38
- * @param conceptIds This is the list of concept ids that need to be converted to compositions.
39
- * @param connectionIds These are the internal connectionIds that need to be passed to create the compositions.
40
- * @returns dictionary of compositions created from the passed conceptIds and connectionIds with conceptId as its index .
41
- */
42
- export declare function GetCompositionFromConnectionsWithDataIdIndex(conceptIds?: number[], connectionIds?: number[]): Promise<any>;
43
- /**
44
- * ## Format is dictionary with key as concept id and value as data (json) ##
45
- * This function converts the conceptIds and internal connectionIds to compositions format with index(conceptId).
46
- * @param conceptIds This is the list of concept ids that need to be converted to compositions.
47
- * @param connectionIds These are the internal connectionIds that need to be passed to create the compositions.
48
- * @returns dictionary of compositions created from the passed conceptIds and connectionIds with conceptId as its index .
49
- */
50
- export declare function GetCompositionFromConnectionsWithIndex(conceptIds?: number[], connectionIds?: number[]): Promise<any>;
51
- /**
52
- * ## FORMAT DATAIDDATE ##
53
- * This is just a different version of GetCompositionFromConnectionsWithDataId, This has the added functionality that
54
- * it also prints out internal connections.
55
- * This function converts the conceptIds and internal connectionIds to compositions in data-Id format.
56
- * @param conceptIds This is the list of concept ids that need to be converted to compositions.
57
- * @param connectionIds These are the internal connectionIds that need to be passed to create the compositions.
58
- * @returns list of compositions created from the passed conceptIds and connectionIds.
59
- */
60
- export declare function GetCompositionFromConnectionsWithIndexFromConnections(conceptIds?: number[], connectionIds?: number[]): Promise<any>;
61
- /**
62
- * Used to prefetch all the connections and their related concepts.
63
- * @param connectionIds these are the connection ids that are used to fetch all the connections and also their related concepts.
64
- * @returns all the connections that are passed as ids.
65
- */
66
- export declare function GetConnectionDataPrefetch(connectionIds: number[]): Promise<Connection[]>;
67
- /**
68
- * ## Format DATAIDDATE ##
69
- * This function converts the conceptIds and internal connections to create compositions.
70
- * Format is of a dictionary with ids as the key and value is the composition data.
71
- * @param conceptIds these are the concept ids that need to be fetched to create their compositions
72
- * @param connections these are the connections that are used to create the structure.
73
- * @returns a dictionary / object that has key as their conceptId and the value as their composition object.
74
- */
75
- export declare function GetCompositionFromConnectionsWithDataIdInObject(conceptIds?: number[], connections?: number[]): Promise<any>;
76
- /**
77
- * ## Format DATAIDDATE ##
78
- * ## duplicate ##
79
- * This function converts the conceptIds and internal connections to create compositions.
80
- * @param conceptIds these are the concept ids that need to be fetched to create their compositions
81
- * @param connections these are the connections that are used to create the structure.
82
- * @returns a dictionary / object that has key as their conceptId and the value as their composition object.
83
- */
84
- export declare function GetCompositionFromConnectionsWithDataIdInObjectNew(conceptIds?: number[], connections?: number[]): Promise<any>;
85
- /**
86
- * ## Format justdata ##
87
- * This function converts the conceptIds and internal connections to create compositions.
88
- * @param conceptIds these are the concept ids that need to be fetched to create their compositions
89
- * @param connections these are the connections that are used to create the structure.
90
- * @returns a dictionary / object that has key as their conceptId and the value as their composition object.
91
- */
92
- export declare function GetCompositionFromConnectionsInObject(conceptIds?: number[], connections?: number[]): Promise<any>;
93
- /**
94
- * ## Format Normal ##
95
- * This function converts the conceptIds and internal connections to create compositions.
96
- * @param conceptIds these are the concept ids that need to be fetched to create their compositions
97
- * @param connections these are the connections that are used to create the structure.
98
- * @returns a dictionary / object that has key as their conceptId and the value as their composition object.
99
- */
100
- export declare function GetCompositionFromConnectionsInObjectNormal(conceptIds?: number[], connections?: number[]): Promise<any>;
@@ -1,7 +0,0 @@
1
- import { Concept } from "../app";
2
- export declare function GetCompositionList(compositionName: string, userId: number, inpage?: number, page?: number): Promise<any>;
3
- export declare function GetCompositionListAll(compositionName: string, userId: number, inpage?: number, page?: number): Promise<any[]>;
4
- export declare function GetCompositionListAllWithId(compositionName: string, userId: number, inpage?: number, page?: number): Promise<any>;
5
- export declare function GetCompositionListWithId(compositionName: string, userId: number, inpage?: number, page?: number): Promise<any>;
6
- export declare function GetCompositionListWithIdUpdated(compositionName: string, userId: number, inpage?: number, page?: number): Promise<any>;
7
- export declare function FormatTheConcepts(conceptList: Concept[], localConceptList: Concept[], inpage?: number, page?: number): Promise<any[]>;
@@ -1,2 +0,0 @@
1
- export default function GetConceptByCharacter(characterValue: string): Promise<any>;
2
- export declare function GetConceptByCharacterUpdated(characterValue: string): Promise<any>;
@@ -1,11 +0,0 @@
1
- import { Concept } from "../app";
2
- /**
3
- * This function will give you all the connections between two concepts by their linker or fullLinker
4
- * @param ofTheConcept start of the connecction
5
- * @param toTheConcept end of the connection
6
- * @param linker the primitive linkers with type connection (16) these are the old type of linkers (if you want full linker then put this as empty string)
7
- * @param fullLinker fullLinker is the modern linker (if you want linker then put this as empty string)
8
- * @param forward if you want to get the forward relation in the primitive linker put true else for backward linker false.
9
- * @returns list of connections
10
- */
11
- export declare function GetConnectionBetweenTwoConceptsLinker(ofTheConcept: Concept, toTheConcept: Concept, linker: string, fullLinker: string, forward?: boolean): Promise<any>;
@@ -1 +0,0 @@
1
- export declare function GetConnectionById(id: number): Promise<any>;
@@ -1,2 +0,0 @@
1
- export declare function GetConnectionsFromIndexDb(): Promise<void>;
2
- export declare function GetConnectionsFromIndexDbLocal(): Promise<void>;
@@ -1,3 +0,0 @@
1
- import { Concept } from "./../DataStructures/Concept";
2
- export declare function GetLink(id: number, linker: string, inpage?: number, page?: number): Promise<any>;
3
- export declare function GetLinkRaw(id: number, linker: string, inpage?: number, page?: number): Promise<Concept[]>;
@@ -1,3 +0,0 @@
1
- import { Connection } from "../DataStructures/Connection";
2
- export declare function GetLinkerConnectionFromConcepts(id: number): Promise<Connection[]>;
3
- export declare function GetLinkerConnectionToConcepts(id: number): Promise<Connection[]>;
@@ -1,3 +0,0 @@
1
- export declare function GetRelation(id: number, relation: string, inpage?: number, page?: number, reverse?: boolean): Promise<any>;
2
- export declare function GetRelationNew(id: number, relation: string, inpage?: number, page?: number, reverse?: boolean): Promise<void>;
3
- export declare function GetRelationRaw(id: number, relation: string, inpage?: number, page?: number, reverse?: boolean): Promise<any>;
@@ -1,96 +0,0 @@
1
- import { Concept } from "../DataStructures/Concept";
2
- /**
3
- * Retrieves a concept by its ID with intelligent caching and multi-source lookup.
4
- *
5
- * This is the primary function for fetching concepts in the system. It implements a sophisticated
6
- * multi-level retrieval strategy:
7
- *
8
- * **Retrieval Strategy:**
9
- * 1. Checks in-memory promise cache to prevent duplicate requests
10
- * 2. For negative IDs: Fetches from local IndexedDB (LocalConceptsData)
11
- * 3. For positive IDs: Checks local ConceptsData cache first
12
- * 4. If not in cache: Fetches from backend API
13
- * 5. Automatically resolves and attaches the concept's type information
14
- * 6. Routes through service worker if enabled for better performance
15
- *
16
- * **Features:**
17
- * - Promise caching prevents duplicate concurrent requests for the same concept
18
- * - Automatic type resolution (fetches and attaches type concept)
19
- * - Access tracking integration (increments access counter if enabled)
20
- * - Service worker support for background processing
21
- * - Error logging and performance monitoring
22
- * - Supports both server concepts (positive IDs) and local concepts (negative IDs)
23
- *
24
- * @param id - The unique identifier of the concept to retrieve.
25
- * Positive IDs = server concepts, Negative IDs = local-only concepts
26
- * @param userId - The ID of the user requesting the concept. Used for access tracking
27
- * and audit logging. Defaults to 999 (system/anonymous user)
28
- *
29
- * @returns Promise resolving to the Concept object if found, or a default empty Concept if not found
30
- *
31
- * @example
32
- * // Get a server concept
33
- * const concept = await GetTheConcept(12345, 101);
34
- * console.log(concept.characterValue); // "Alice Smith"
35
- * console.log(concept.type?.characterValue); // "Person" (auto-resolved)
36
- *
37
- * @example
38
- * // Get a local concept (negative ID)
39
- * const localConcept = await GetTheConcept(-5, 101);
40
- * console.log(localConcept.characterValue); // "Local Draft"
41
- *
42
- * @example
43
- * // Multiple concurrent calls use the same promise (efficient)
44
- * const [c1, c2, c3] = await Promise.all([
45
- * GetTheConcept(123),
46
- * GetTheConcept(123), // Same ID - uses cached promise
47
- * GetTheConcept(123) // Same ID - uses cached promise
48
- * ]);
49
- * // Only one actual fetch is performed
50
- *
51
- * @throws Will log errors but returns a default empty concept instead of throwing
52
- *
53
- * @see {@link CreateTheConcept} for creating new concepts
54
- * @see {@link GetConceptBulk} for fetching multiple concepts efficiently
55
- * @see {@link AddTypeConcept} for manually adding type information to a concept
56
- */
57
- export default function GetTheConcept(id: number, userId?: number): Promise<Concept>;
58
- /**
59
- * Fetches and attaches type information to a concept if not already present.
60
- *
61
- * This utility function ensures that a concept has its type information loaded and attached.
62
- * Every concept has a `typeId` that references another concept representing its type
63
- * (e.g., a person concept might have typeId=1 which points to a "Person" type concept).
64
- *
65
- * **Process:**
66
- * 1. Checks if concept.type is already set (if yes, does nothing)
67
- * 2. Attempts to fetch type concept from local cache (ConceptsData)
68
- * 3. If not in cache and typeId is valid: fetches from backend API
69
- * 4. Attaches the type concept to concept.type property
70
- * 5. Routes through service worker if enabled
71
- *
72
- * **Type Concept:**
73
- * A type concept is a special concept that represents a classification or category.
74
- * For example: "Person", "Document", "Organization" are type concepts.
75
- *
76
- * @param concept - The concept object to which type information should be added.
77
- * The concept must have a valid `typeId` property.
78
- *
79
- * @returns Promise that resolves when type information has been attached (or confirmed present)
80
- *
81
- * @example
82
- * const concept = await GetTheConcept(12345);
83
- * console.log(concept.type); // might be null
84
- *
85
- * await AddTypeConcept(concept);
86
- * console.log(concept.type?.characterValue); // "Person"
87
- *
88
- * @example
89
- * // Ensure multiple concepts have their types loaded
90
- * const concepts = await GetConceptBulk([1, 2, 3, 4, 5]);
91
- * await Promise.all(concepts.map(c => AddTypeConcept(c)));
92
- * // All concepts now have their type information
93
- *
94
- * @see {@link GetTheConcept} which automatically calls this function
95
- */
96
- export declare function AddTypeConcept(concept: Concept): Promise<Concept | undefined>;
@@ -1,2 +0,0 @@
1
- export default function InitializeSystem(enableAi?: boolean): Promise<boolean>;
2
- export declare function PurgatoryDatabaseUpdated(): Promise<void>;
@@ -1,41 +0,0 @@
1
- import { Concept } from "../../DataStructures/Concept";
2
- /**
3
- * Converts a local concept (LConcept) to a standard Concept format.
4
- *
5
- * This function is part of the local/server concept conversion system. Currently, it
6
- * performs a passthrough as LConcept and Concept share the same structure. This function
7
- * exists for:
8
- * - API consistency and symmetry with convertFromConceptToLConcept
9
- * - Future extensibility if conversion logic is needed
10
- * - Type clarity in code (explicit conversion intent)
11
- *
12
- * **LConcept vs Concept:**
13
- * - LConcept: Local-only concepts stored in IndexedDB (negative IDs)
14
- * - Concept: Server-synced concepts (positive IDs)
15
- * - Both use the same Concept class structure
16
- *
17
- * **When to Use:**
18
- * - Preparing local concepts for backend sync
19
- * - Converting local concepts to server format
20
- * - Type-safe conversion in TypeScript
21
- * - Maintaining code clarity and intent
22
- *
23
- * @param lconcept - The local concept to convert
24
- *
25
- * @returns The concept in standard Concept format (currently identical to input)
26
- *
27
- * @example
28
- * // Convert local concept before syncing
29
- * const localConcept = await CreateTheConceptLocal('Draft', 'the_note', 101, 1, 3, 2);
30
- * const serverConcept = ConvertFromLConceptToConcept(localConcept);
31
- * // Now ready for backend sync
32
- *
33
- * @example
34
- * // Type-safe conversion
35
- * const lconcepts = await GetAllLocalConcepts();
36
- * const concepts = lconcepts.map(lc => ConvertFromLConceptToConcept(lc));
37
- *
38
- * @see {@link convertFromConceptToLConcept} for the reverse conversion
39
- * @see {@link CreateTheConceptLocal} for creating local concepts
40
- */
41
- export declare function ConvertFromLConceptToConcept(lconcept: Concept): Concept;
@@ -1,47 +0,0 @@
1
- import { Connection } from "../../DataStructures/Connection";
2
- /**
3
- * Converts a local connection (LConnection) to a standard Connection format.
4
- *
5
- * This function extracts the essential properties from a local connection and creates
6
- * a new Connection object. It's part of the local/server conversion system used when
7
- * preparing local connections for backend sync.
8
- *
9
- * **Properties Transferred:**
10
- * - id: Connection identifier
11
- * - ofTheConceptId: Source concept ID
12
- * - toTheConceptId: Target concept ID
13
- * - typeId: Connection type ID
14
- * - orderId: Order for sorting connections
15
- *
16
- * **LConnection vs Connection:**
17
- * - LConnection: Local-only connections stored in IndexedDB (negative IDs)
18
- * - Connection: Server-synced connections (positive IDs)
19
- * - Both use the same Connection class structure
20
- *
21
- * **Use Cases:**
22
- * - Preparing local connections for backend sync
23
- * - Converting local data to server format
24
- * - Data export and serialization
25
- * - Maintaining consistency across local and server data
26
- *
27
- * @param lconnection - The local connection to convert
28
- *
29
- * @returns A new Connection object with properties copied from the local connection
30
- *
31
- * @example
32
- * // Convert local connection before syncing
33
- * const localConn = await CreateTheConnectionLocal(fromId, toId, typeId, 1);
34
- * const serverConn = ConvertFromLConnectionToConnection(localConn);
35
- * // Now ready for backend sync
36
- *
37
- * @example
38
- * // Batch conversion
39
- * const localConnections = await GetAllLocalConnections();
40
- * const serverConnections = localConnections.map(lc =>
41
- * ConvertFromLConnectionToConnection(lc)
42
- * );
43
- *
44
- * @see {@link CreateTheConnectionLocal} for creating local connections
45
- * @see {@link ConvertFromLConceptToConcept} for concept conversion
46
- */
47
- export declare function ConvertFromLConnectionToConnection(lconnection: Connection): Connection;
@@ -1,44 +0,0 @@
1
- import { Concept } from "../../app";
2
- import { InnerActions } from "../../Constants/general.const";
3
- /**
4
- * Creates a named connection between two concepts with optional bidirectional linking.
5
- *
6
- * **Complex Naming Logic**:
7
- * - Forward connection type: "{ofType}_s_{linker}_s" (e.g., "person_s_knows_s")
8
- * - Backward connection type: "{toType}_s_{linker}_by" (e.g., "person_s_knows_by")
9
- * - Uses type.characterValue from concepts to build meaningful connection names
10
- *
11
- * **Bidirectional Mode (both=true)**:
12
- * - Creates two connections: A→B and B→A
13
- * - Forward: ofTheConcept → toTheConcept with "{ofType}_s_{linker}_s"
14
- * - Backward: toTheConcept → ofTheConcept with "{toType}_s_{linker}_by"
15
- *
16
- * @param ofTheConcept - Source concept (connection starts here)
17
- * @param toTheConcept - Target concept (connection points here)
18
- * @param linker - Relationship name (e.g., "knows", "works_at", "has")
19
- * @param both - If true, creates bidirectional connection (both A→B and B→A)
20
- * @param actions - Action tracking for batch operations
21
- * @returns The forward connection object
22
- * @throws Error if connection creation fails
23
- *
24
- * @example
25
- * // Create unidirectional "Alice knows Bob"
26
- * const conn = await CreateConnectionBetweenTwoConceptsLocal(
27
- * aliceConcept,
28
- * bobConcept,
29
- * "knows",
30
- * false
31
- * );
32
- * // Creates: person_s_knows_s connection from Alice to Bob
33
- *
34
- * @example
35
- * // Create bidirectional "Alice friends Bob" (both directions)
36
- * await CreateConnectionBetweenTwoConceptsLocal(
37
- * aliceConcept,
38
- * bobConcept,
39
- * "friends",
40
- * true
41
- * );
42
- * // Creates: person_s_friends_s (Alice→Bob) AND person_s_friends_by (Bob→Alice)
43
- */
44
- export declare function CreateConnectionBetweenTwoConceptsLocal(ofTheConcept: Concept, toTheConcept: Concept, linker: string, both?: boolean, actions?: InnerActions): Promise<any>;
@@ -1,46 +0,0 @@
1
- import { Concept } from "../../DataStructures/Concept";
2
- /**
3
- * Creates a default empty local concept with all properties set to zero/default values.
4
- *
5
- * This utility function generates a blank Concept object that can be used as a placeholder
6
- * or default return value when a concept is not found. All IDs and values are set to 0
7
- * or empty defaults.
8
- *
9
- * **Default Values:**
10
- * - id: 0 (indicates empty/not found)
11
- * - userId: 0
12
- * - typeId: 0
13
- * - categoryId: 0
14
- * - referentId: 0
15
- * - characterValue: "0"
16
- * - accessId: 0
17
- * - isNew: false
18
- * - entryTimeStamp: current date
19
- * - updatedTimeStamp: current date
20
- * - typeCharacter: "0"
21
- *
22
- * **Use Cases:**
23
- * - Default return value when concept not found
24
- * - Placeholder for conditional logic
25
- * - Initial state before loading data
26
- * - Template for creating new concepts
27
- *
28
- * @returns A Concept object with all properties set to default/zero values
29
- *
30
- * @example
31
- * // Use as default return
32
- * let concept = await GetTheConceptLocal(id);
33
- * if (concept.id === 0) {
34
- * concept = CreateDefaultLConcept();
35
- * }
36
- *
37
- * @example
38
- * // Check if concept is valid
39
- * const concept = CreateDefaultLConcept();
40
- * console.log(concept.id); // 0
41
- * console.log(concept.characterValue); // "0"
42
- *
43
- * @see {@link CreateTheConceptLocal} for creating actual local concepts
44
- * @see {@link GetTheConceptLocal} for retrieving local concepts
45
- */
46
- export declare function CreateDefaultLConcept(): Concept;