mftsccs-browser 2.1.239-dev → 2.1.240-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 (272) hide show
  1. package/dist/main.bundle.js +404 -95
  2. package/dist/main.bundle.js.map +1 -1
  3. package/dist/serviceWorker.bundle.js +398 -94
  4. package/dist/serviceWorker.bundle.js.map +1 -1
  5. package/dist/types/AccessTracker/accessTracker.d.ts +67 -0
  6. package/dist/types/Anomaly/anomaly.d.ts +103 -0
  7. package/dist/types/Api/Create/CreateTheCharacter.d.ts +24 -0
  8. package/dist/types/Api/Create/CreateTheConceptApi.d.ts +20 -0
  9. package/dist/types/Api/Create/CreateTheConnectionApi.d.ts +18 -0
  10. package/dist/types/Api/Create/CreateTheGhostConceptApi.d.ts +28 -0
  11. package/dist/types/Api/Create/CreateTheGhostConnectionApi.d.ts +18 -0
  12. package/dist/types/Api/Create/CreateTheTextData.d.ts +18 -0
  13. package/dist/types/Api/Delete/DeleteConceptInBackend.d.ts +14 -0
  14. package/dist/types/Api/Delete/DeleteUserInBackend.d.ts +19 -0
  15. package/dist/types/Api/DeleteConnectionBulkApi.d.ts +20 -0
  16. package/dist/types/Api/DeleteTheConcept.d.ts +20 -0
  17. package/dist/types/Api/DeleteTheConnection.d.ts +20 -0
  18. package/dist/types/Api/GetAiData.d.ts +10 -0
  19. package/dist/types/Api/GetAllConceptsByType.d.ts +12 -0
  20. package/dist/types/Api/GetAllConnectionsOfComposition.d.ts +23 -0
  21. package/dist/types/Api/GetAllConnectionsOfCompositionBulk.d.ts +23 -0
  22. package/dist/types/Api/GetAllLinkerConnectionsFromTheConcept.d.ts +12 -0
  23. package/dist/types/Api/GetAllLinkerConnectionsToTheConcept.d.ts +12 -0
  24. package/dist/types/Api/GetCharacterDataByCharacter.d.ts +12 -0
  25. package/dist/types/Api/GetCompositionConnectionsBetweenTwoConcepts.d.ts +13 -0
  26. package/dist/types/Api/GetConcept.d.ts +6 -0
  27. package/dist/types/Api/GetConceptBulk.d.ts +20 -0
  28. package/dist/types/Api/GetConceptByCharacterAndType.d.ts +15 -0
  29. package/dist/types/Api/GetConceptByCharacterValue.d.ts +12 -0
  30. package/dist/types/Api/GetConnection.d.ts +15 -0
  31. package/dist/types/Api/GetConnectionBulk.d.ts +7 -0
  32. package/dist/types/Api/GetConnectionOfTheConcept.d.ts +15 -0
  33. package/dist/types/Api/GetConnectionToTheConcept.d.ts +17 -0
  34. package/dist/types/Api/GetConnections/GetConnectionsBetweenApi.d.ts +40 -0
  35. package/dist/types/Api/GetConnections/GetConnectionsByTypeApi.d.ts +15 -0
  36. package/dist/types/Api/GetInstanceConceptByCharacterType.d.ts +9 -0
  37. package/dist/types/Api/GetReservedConnectionIds.d.ts +10 -0
  38. package/dist/types/Api/GetReservedIds.d.ts +10 -0
  39. package/dist/types/Api/Images/GetImages.d.ts +15 -0
  40. package/dist/types/Api/Local/GetLocalConceptByCharacterValue.d.ts +13 -0
  41. package/dist/types/Api/Login.d.ts +78 -0
  42. package/dist/types/Api/MakeTheNameInBackend.d.ts +14 -0
  43. package/dist/types/Api/MakeTheTypeConceptApi.d.ts +9 -0
  44. package/dist/types/Api/Prototype/Selector.d.ts +26 -0
  45. package/dist/types/Api/RecursiveSearch.d.ts +67 -0
  46. package/dist/types/Api/Search/FreeschemaQueryApi.d.ts +18 -0
  47. package/dist/types/Api/Search/Search.d.ts +73 -0
  48. package/dist/types/Api/Search/SearchInternalApi.d.ts +28 -0
  49. package/dist/types/Api/Search/SearchLinkMultipleApi.d.ts +15 -0
  50. package/dist/types/Api/Search/SearchWithLinker.d.ts +16 -0
  51. package/dist/types/Api/Search/SearchWithTypeAndLinker.d.ts +14 -0
  52. package/dist/types/Api/SearchConcept/GetConceptByCharacterAndCategoryApi.d.ts +12 -0
  53. package/dist/types/Api/SearchConcept/GetConceptByCharacterAndCategoryDirect.d.ts +13 -0
  54. package/dist/types/Api/SearchConcept/GetTypeConceptByBulk.d.ts +15 -0
  55. package/dist/types/Api/Session/CreateSession.d.ts +16 -0
  56. package/dist/types/Api/Session/CreateSessionVisit.d.ts +12 -0
  57. package/dist/types/Api/Signin.d.ts +24 -0
  58. package/dist/types/Api/Signup.d.ts +61 -0
  59. package/dist/types/Api/Translate/TranslateLocalToReal.d.ts +12 -0
  60. package/dist/types/Api/View/ViewInternalDataApi.d.ts +15 -0
  61. package/dist/types/Constants/AccessConstants.d.ts +3 -0
  62. package/dist/types/Constants/ApiConstants.d.ts +23 -0
  63. package/dist/types/Constants/FormatConstants.d.ts +8 -0
  64. package/dist/types/Constants/ckeditorCSS.d.ts +1 -0
  65. package/dist/types/Constants/general.const.d.ts +6 -0
  66. package/dist/types/Constants/page.const.d.ts +5 -0
  67. package/dist/types/DataStructures/BaseUrl.d.ts +94 -0
  68. package/dist/types/DataStructures/BinaryCharacterTree.d.ts +16 -0
  69. package/dist/types/DataStructures/BinaryTree.d.ts +77 -0
  70. package/dist/types/DataStructures/BinaryTypeTree.d.ts +17 -0
  71. package/dist/types/DataStructures/CharacterRepository.d.ts +8 -0
  72. package/dist/types/DataStructures/Composition/Composition.d.ts +14 -0
  73. package/dist/types/DataStructures/Composition/CompositionBinaryTree.d.ts +10 -0
  74. package/dist/types/DataStructures/Composition/CompositionNode.d.ts +21 -0
  75. package/dist/types/DataStructures/Concept.d.ts +25 -0
  76. package/dist/types/DataStructures/ConceptData.d.ts +30 -0
  77. package/dist/types/DataStructures/ConceptsToDraw.d.ts +11 -0
  78. package/dist/types/DataStructures/Connection.d.ts +23 -0
  79. package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionBinaryTree.d.ts +81 -0
  80. package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionNode.d.ts +27 -0
  81. package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionOfNode.d.ts +10 -0
  82. package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionOfTheTree.d.ts +24 -0
  83. package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionTypeNode.d.ts +10 -0
  84. package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionTypeTree.d.ts +20 -0
  85. package/dist/types/DataStructures/ConnectionBinaryTree/NodePrimitive.d.ts +15 -0
  86. package/dist/types/DataStructures/ConnectionByType/GetConnectionByType.d.ts +4 -0
  87. package/dist/types/DataStructures/ConnectionData.d.ts +26 -0
  88. package/dist/types/DataStructures/Count/CountInfo.d.ts +6 -0
  89. package/dist/types/DataStructures/FetchConnection.d.ts +64 -0
  90. package/dist/types/DataStructures/FilterSearch.d.ts +9 -0
  91. package/dist/types/DataStructures/IdentifierFlags.d.ts +11 -0
  92. package/dist/types/DataStructures/Local/LConcept.d.ts +23 -0
  93. package/dist/types/DataStructures/Local/LConnection.d.ts +18 -0
  94. package/dist/types/DataStructures/Local/LNode.d.ts +29 -0
  95. package/dist/types/DataStructures/Local/LocalBinaryCharacterTree.d.ts +13 -0
  96. package/dist/types/DataStructures/Local/LocalBinaryTree.d.ts +13 -0
  97. package/dist/types/DataStructures/Local/LocalBinaryTypeTree.d.ts +13 -0
  98. package/dist/types/DataStructures/Local/LocalConceptData.d.ts +21 -0
  99. package/dist/types/DataStructures/Local/LocalConnectionData.d.ts +20 -0
  100. package/dist/types/DataStructures/Local/LocalGhostIdTree.d.ts +11 -0
  101. package/dist/types/DataStructures/Local/LocalId.d.ts +19 -0
  102. package/dist/types/DataStructures/Local/LocalSyncData.d.ts +33 -0
  103. package/dist/types/DataStructures/Node.d.ts +30 -0
  104. package/dist/types/DataStructures/PatcherStructure.d.ts +8 -0
  105. package/dist/types/DataStructures/Prototype/Prototype.d.ts +19 -0
  106. package/dist/types/DataStructures/Prototype/PrototypeOption.d.ts +4 -0
  107. package/dist/types/DataStructures/Prototype/QuerySelector.d.ts +4 -0
  108. package/dist/types/DataStructures/ReservedIds.d.ts +10 -0
  109. package/dist/types/DataStructures/Responses/ErrorResponse.d.ts +74 -0
  110. package/dist/types/DataStructures/Responses/StandardResponses.d.ts +6 -0
  111. package/dist/types/DataStructures/Returner.d.ts +7 -0
  112. package/dist/types/DataStructures/Search/FreeschemaQuery.d.ts +25 -0
  113. package/dist/types/DataStructures/Search/SearchStructure.d.ts +10 -0
  114. package/dist/types/DataStructures/SearchQuery.d.ts +17 -0
  115. package/dist/types/DataStructures/Security/SecureStorage.d.ts +14 -0
  116. package/dist/types/DataStructures/Security/TokenStorage.d.ts +24 -0
  117. package/dist/types/DataStructures/Session/SessionData.d.ts +13 -0
  118. package/dist/types/DataStructures/SettingData.d.ts +5 -0
  119. package/dist/types/DataStructures/Settings.d.ts +4 -0
  120. package/dist/types/DataStructures/SigninModel.d.ts +4 -0
  121. package/dist/types/DataStructures/SignupModel.d.ts +4 -0
  122. package/dist/types/DataStructures/SyncData.d.ts +14 -0
  123. package/dist/types/DataStructures/TheCharacter.d.ts +13 -0
  124. package/dist/types/DataStructures/TheTexts.d.ts +14 -0
  125. package/dist/types/DataStructures/TypeLibrary.d.ts +19 -0
  126. package/dist/types/DataStructures/TypeNode.d.ts +18 -0
  127. package/dist/types/DataStructures/User/UserBinaryTree.d.ts +13 -0
  128. package/dist/types/DataStructures/User/UserNode.d.ts +18 -0
  129. package/dist/types/DataStructures/WidgetCache/WidgetCache.d.ts +10 -0
  130. package/dist/types/DataStructures/WidgetCache/WidgetDetails.d.ts +9 -0
  131. package/dist/types/DataStructures/WidgetCache/WidgetNode.d.ts +18 -0
  132. package/dist/types/DataStructures/environments/environments.d.ts +48 -0
  133. package/dist/types/Database/CacheDatabase.d.ts +57 -0
  134. package/dist/types/Database/IndexUpdate.d.ts +47 -0
  135. package/dist/types/Database/NoIndexDb.d.ts +9 -0
  136. package/dist/types/Database/indexdblocal.d.ts +43 -0
  137. package/dist/types/Database/indexeddb.d.ts +58 -0
  138. package/dist/types/Helpers/CheckIfExists.d.ts +9 -0
  139. package/dist/types/Helpers/RemoveFromArray.d.ts +5 -0
  140. package/dist/types/Helpers/UniqueInsert.d.ts +1 -0
  141. package/dist/types/Middleware/ApplicationMonitor.d.ts +14 -0
  142. package/dist/types/Middleware/logger.service.d.ts +144 -0
  143. package/dist/types/ServiceWorker/actions/connectionActions.d.ts +2 -0
  144. package/dist/types/ServiceWorker/actions/createActions.d.ts +2 -0
  145. package/dist/types/ServiceWorker/actions/deleteActions.d.ts +2 -0
  146. package/dist/types/ServiceWorker/actions/getActions.d.ts +2 -0
  147. package/dist/types/ServiceWorker/actions/index.d.ts +15 -0
  148. package/dist/types/ServiceWorker/actions/searchActions.d.ts +2 -0
  149. package/dist/types/ServiceWorker/actions/syncActions.d.ts +2 -0
  150. package/dist/types/ServiceWorker/actions/updateActions.d.ts +2 -0
  151. package/dist/types/ServiceWorker/index.d.ts +11 -0
  152. package/dist/types/Services/CacheClear.d.ts +7 -0
  153. package/dist/types/Services/CheckForConnectionDeletion.d.ts +3 -0
  154. package/dist/types/Services/Common/DecodeCountInfo.d.ts +3 -0
  155. package/dist/types/Services/Common/DelayFunction.d.ts +7 -0
  156. package/dist/types/Services/Common/ErrorPosting.d.ts +10 -0
  157. package/dist/types/Services/Common/MergeArrays.d.ts +7 -0
  158. package/dist/types/Services/Common/RegexFunction.d.ts +1 -0
  159. package/dist/types/Services/Common/RemoveAllChild.d.ts +1 -0
  160. package/dist/types/Services/Composition/BuildComposition.d.ts +3 -0
  161. package/dist/types/Services/Composition/CompositionCache.d.ts +4 -0
  162. package/dist/types/Services/Composition/CreateCompositionCache.d.ts +3 -0
  163. package/dist/types/Services/ConceptFinding/GetConceptByCharacterAndCategory.d.ts +5 -0
  164. package/dist/types/Services/Conversion/ConvertConcepts.d.ts +5 -0
  165. package/dist/types/Services/CreateBinaryTreeFromData.d.ts +5 -0
  166. package/dist/types/Services/CreateConnection/CreateConnectionEntity.d.ts +2 -0
  167. package/dist/types/Services/CreateConnectionBetweenTwoConcepts.d.ts +5 -0
  168. package/dist/types/Services/CreateDefaultConcept.d.ts +3 -0
  169. package/dist/types/Services/CreateTheComposition.d.ts +1 -0
  170. package/dist/types/Services/CreateTheConcept.d.ts +122 -0
  171. package/dist/types/Services/CreateTheConnection.d.ts +63 -0
  172. package/dist/types/Services/CreateTheConnectionGeneral.d.ts +2 -0
  173. package/dist/types/Services/DeleteConcept.d.ts +2 -0
  174. package/dist/types/Services/DeleteConnection.d.ts +2 -0
  175. package/dist/types/Services/DeleteConnectionByType.d.ts +22 -0
  176. package/dist/types/Services/FindConeceptsFromConnection.d.ts +6 -0
  177. package/dist/types/Services/FindConnectionsOfCompositionBulkInMemory.d.ts +1 -0
  178. package/dist/types/Services/GetComposition.d.ts +205 -0
  179. package/dist/types/Services/GetCompositionBulk.d.ts +100 -0
  180. package/dist/types/Services/GetCompositionList.d.ts +7 -0
  181. package/dist/types/Services/GetConceptByCharacter.d.ts +2 -0
  182. package/dist/types/Services/GetConnectionBetweenTwoConceptsLinker.d.ts +11 -0
  183. package/dist/types/Services/GetConnections.d.ts +1 -0
  184. package/dist/types/Services/GetDataFromIndexDb.d.ts +2 -0
  185. package/dist/types/Services/GetLink.d.ts +3 -0
  186. package/dist/types/Services/GetLinkerConnectionFromConcept.d.ts +3 -0
  187. package/dist/types/Services/GetRelation.d.ts +3 -0
  188. package/dist/types/Services/GetTheConcept.d.ts +96 -0
  189. package/dist/types/Services/InitializeSystem.d.ts +2 -0
  190. package/dist/types/Services/Local/ConvertFromLConceptToConcept.d.ts +41 -0
  191. package/dist/types/Services/Local/ConvertFromLConnectionToConnection.d.ts +47 -0
  192. package/dist/types/Services/Local/CreateConnectionBetweenTwoConceptsLocal.d.ts +44 -0
  193. package/dist/types/Services/Local/CreateDefaultLConcept.d.ts +46 -0
  194. package/dist/types/Services/Local/CreateLocalBinaryTreeFromData.d.ts +34 -0
  195. package/dist/types/Services/Local/CreateTheCompositionLocal.d.ts +104 -0
  196. package/dist/types/Services/Local/CreateTheConceptLocal.d.ts +84 -0
  197. package/dist/types/Services/Local/CreateTheConnectionLocal.d.ts +140 -0
  198. package/dist/types/Services/Local/DeleteConceptLocal.d.ts +47 -0
  199. package/dist/types/Services/Local/GetCompositionListLocal.d.ts +37 -0
  200. package/dist/types/Services/Local/GetCompositionLocal.d.ts +97 -0
  201. package/dist/types/Services/Local/GetConceptByCharacterLocal.d.ts +56 -0
  202. package/dist/types/Services/Local/GetConnectionOfTheConceptLocal.d.ts +19 -0
  203. package/dist/types/Services/Local/GetRelationLocal.d.ts +21 -0
  204. package/dist/types/Services/Local/GetTheConceptLocal.d.ts +63 -0
  205. package/dist/types/Services/Local/MakeTheConceptLocal.d.ts +22 -0
  206. package/dist/types/Services/Local/MakeTheInstanceConceptLocal.d.ts +164 -0
  207. package/dist/types/Services/Local/MakeTheTypeLocal.d.ts +36 -0
  208. package/dist/types/Services/Local/UpdateCompositionLocal.d.ts +42 -0
  209. package/dist/types/Services/Logs/LogEvent.d.ts +1 -0
  210. package/dist/types/Services/Mail.d.ts +41 -0
  211. package/dist/types/Services/MakeTheCharacter.d.ts +2 -0
  212. package/dist/types/Services/MakeTheCharacterData.d.ts +2 -0
  213. package/dist/types/Services/MakeTheConcept.d.ts +2 -0
  214. package/dist/types/Services/MakeTheInstanceConcept.d.ts +15 -0
  215. package/dist/types/Services/MakeTheTimestamp.d.ts +1 -0
  216. package/dist/types/Services/MakeTheTypeConcept.d.ts +1 -0
  217. package/dist/types/Services/Mqtt/publishMessage.d.ts +1 -0
  218. package/dist/types/Services/Search/DataIdFormat.d.ts +32 -0
  219. package/dist/types/Services/Search/FormatData.d.ts +36 -0
  220. package/dist/types/Services/Search/JustIdFormat.d.ts +23 -0
  221. package/dist/types/Services/Search/NewFormat.d.ts +4 -0
  222. package/dist/types/Services/Search/SearchLinkInternal.d.ts +3 -0
  223. package/dist/types/Services/Search/SearchLinkMultiple.d.ts +55 -0
  224. package/dist/types/Services/Search/SearchWithTypeAndLinker.d.ts +82 -0
  225. package/dist/types/Services/Search/orderingConnections.d.ts +2 -0
  226. package/dist/types/Services/Security/GetRequestHeader.d.ts +6 -0
  227. package/dist/types/Services/SplitStrings.d.ts +1 -0
  228. package/dist/types/Services/Transaction/LocalTransaction.d.ts +117 -0
  229. package/dist/types/Services/UpdateComposition.d.ts +2 -0
  230. package/dist/types/Services/Upload.d.ts +111 -0
  231. package/dist/types/Services/User/UserFromLocalStorage.d.ts +10 -0
  232. package/dist/types/Services/User/UserTranslation.d.ts +3 -0
  233. package/dist/types/Services/View/ViewInternalData.d.ts +1 -0
  234. package/dist/types/Services/assets/GetImageService.d.ts +14 -0
  235. package/dist/types/Services/automated/automated-concept-connection.d.ts +7 -0
  236. package/dist/types/Services/cacheService.d.ts +1 -0
  237. package/dist/types/Validator/constant.d.ts +3 -0
  238. package/dist/types/Validator/interface.d.ts +19 -0
  239. package/dist/types/Validator/utils.d.ts +7 -0
  240. package/dist/types/Validator/validator.d.ts +37 -0
  241. package/dist/types/Visualize/ConceptCircle.d.ts +35 -0
  242. package/dist/types/Visualize/ConceptCircleList.d.ts +9 -0
  243. package/dist/types/Visualize/ConnectionLine.d.ts +21 -0
  244. package/dist/types/Visualize/ConnectionLineList.d.ts +6 -0
  245. package/dist/types/Visualize/drawExistingConcepts.d.ts +8 -0
  246. package/dist/types/Visualize/helper.d.ts +15 -0
  247. package/dist/types/Widgets/BaseObserver.d.ts +25 -0
  248. package/dist/types/Widgets/BaseWidget.d.ts +37 -0
  249. package/dist/types/Widgets/BuilderSpeceficFunctions.d.ts +11 -0
  250. package/dist/types/Widgets/BuilderStatefulWidget.d.ts +392 -0
  251. package/dist/types/Widgets/CacheWidget.service.d.ts +77 -0
  252. package/dist/types/Widgets/NormalizeStyles.service.d.ts +10 -0
  253. package/dist/types/Widgets/RenderPage.service.d.ts +17 -0
  254. package/dist/types/Widgets/RenderWidgetLibrary.service.d.ts +22 -0
  255. package/dist/types/Widgets/RenderWidgetService.d.ts +187 -0
  256. package/dist/types/Widgets/StatefulWidget.d.ts +167 -0
  257. package/dist/types/Widgets/WidgetBuild.d.ts +45 -0
  258. package/dist/types/Widgets/WidgetCacheManager.d.ts +108 -0
  259. package/dist/types/Widgets/WidgetTree.d.ts +61 -0
  260. package/dist/types/WrapperFunctions/DepenedencyObserver.d.ts +95 -0
  261. package/dist/types/WrapperFunctions/GetCompositionListObservable.d.ts +51 -0
  262. package/dist/types/WrapperFunctions/GetCompositionObservable.d.ts +35 -0
  263. package/dist/types/WrapperFunctions/GetLinkListObservable.d.ts +57 -0
  264. package/dist/types/WrapperFunctions/GetLinkObservable.d.ts +50 -0
  265. package/dist/types/WrapperFunctions/QueryCacheManager.d.ts +107 -0
  266. package/dist/types/WrapperFunctions/RecursiveSearchObservable.d.ts +55 -0
  267. package/dist/types/WrapperFunctions/SchemaQueryObservable.d.ts +60 -0
  268. package/dist/types/WrapperFunctions/SearchLinkMultipleAllObservable.d.ts +36 -0
  269. package/dist/types/app.d.ts +381 -0
  270. package/dist/types/prototype/prototype.service.d.ts +25 -0
  271. package/dist/types/service-worker.d.ts +1 -0
  272. package/package.json +1 -1
@@ -0,0 +1,36 @@
1
+ import { Concept } from "../../DataStructures/Concept";
2
+ import { InnerActions } from "../../Constants/general.const";
3
+ /**
4
+ * Creates or retrieves a type concept locally - handles hierarchical type system.
5
+ *
6
+ * Type concepts are placeholders/templates (e.g., "the_first_name", "the_email") that define
7
+ * what kind of data a concept represents. They have no actual value themselves.
8
+ *
9
+ * **Hierarchical Processing (Complex Logic)**:
10
+ * - Single word (e.g., "status"): Creates simple type concept with typeId=51
11
+ * - Compound words (e.g., "the_person_email"): Splits into parts and creates hierarchy:
12
+ * 1. Creates category concept from first part ("the_person")
13
+ * 2. Creates type concept from second part ("email")
14
+ * 3. Creates final concept with category and type linked
15
+ * **Uses recursion** to build multi-level type hierarchies
16
+ *
17
+ * Always checks for existing type concept before creating to prevent duplicates.
18
+ *
19
+ * @param typeString - The type name to create (e.g., "the_status", "the_person_email")
20
+ * @param sessionId - Session identifier (typically 999)
21
+ * @param sessionUserId - Session user ID (typically 999, not used)
22
+ * @param userId - User creating the type concept
23
+ * @param actions - Action tracking for batch operations
24
+ * @returns Type Concept (existing or newly created)
25
+ *
26
+ * @example
27
+ * // Simple type
28
+ * const statusType = await MakeTheTypeConceptLocal("the_status", 999, 999, 101);
29
+ * // Creates: "the_status" type concept
30
+ *
31
+ * @example
32
+ * // Hierarchical type (recursive processing)
33
+ * const emailType = await MakeTheTypeConceptLocal("the_person_email", 999, 999, 101);
34
+ * // Creates: "the_person" (category) + "email" (type) + "the_person_email" (combined)
35
+ */
36
+ export declare function MakeTheTypeConceptLocal(typeString: string, sessionId: number, sessionUserId: number, userId: number, actions?: InnerActions): Promise<Concept>;
@@ -0,0 +1,42 @@
1
+ import { PatcherStructure } from "../../DataStructures/PatcherStructure";
2
+ import { InnerActions } from "../../app";
3
+ /**
4
+ * Updates/patches a composition in local storage with new or modified properties.
5
+ *
6
+ * **Complex Patching Logic** (197 lines):
7
+ * 1. Fetches latest composition data from backend (all connections and concepts)
8
+ * 2. Iterates through patchObject properties to add/update
9
+ * 3. For each property:
10
+ * - If value is object/array: Creates composition concept and nested composition
11
+ * - If value is primitive: Creates instance concept with value
12
+ * - Checks if concept type already exists in composition
13
+ * - If exists: Marks old connections for deletion (replaces old value)
14
+ * - If new: Simply adds new connection
15
+ * 4. Creates connections between parent composition and new/updated concepts
16
+ * 5. Deletes old connections (cleanup)
17
+ * 6. Syncs changes to backend
18
+ *
19
+ * **Use Case**: Updating fields in an existing composition without recreating it entirely.
20
+ *
21
+ * @param patcherStructure - Object containing:
22
+ * - compositionId: The composition to update
23
+ * - ofTheCompositionId: Optional parent composition for nested updates
24
+ * - patchObject: Object with key-value pairs to add/update
25
+ * - userId, sessionId, accessId: User context
26
+ * @param actions - Action tracking for batch operations and rollback
27
+ *
28
+ * @example
29
+ * // Update a person's email and phone
30
+ * await UpdateCompositionLocal({
31
+ * compositionId: personId,
32
+ * patchObject: {
33
+ * the_email: "newemail@example.com",
34
+ * the_phone: "555-1234"
35
+ * },
36
+ * userId: 101,
37
+ * sessionId: 999,
38
+ * accessId: 4
39
+ * });
40
+ * // Old email connection deleted, new email connection created
41
+ */
42
+ export declare function UpdateCompositionLocal(patcherStructure: PatcherStructure, actions?: InnerActions): Promise<any>;
@@ -0,0 +1 @@
1
+ export declare function LogEvent(EventName: string, EventDescription: string, event: any): void;
@@ -0,0 +1,41 @@
1
+ export interface EmailBody {
2
+ toAddress: string;
3
+ heading: string;
4
+ body?: string;
5
+ attachments?: Array<string>;
6
+ CaptchaToken?: string;
7
+ recaptchaAction?: string;
8
+ }
9
+ export interface BulkEmailBody extends Omit<EmailBody, 'toAddress'> {
10
+ toAddress?: string;
11
+ ccAddresses: Array<string>;
12
+ }
13
+ export interface RecaptchaOptions {
14
+ token: string;
15
+ action?: string;
16
+ fieldName?: string;
17
+ actionFieldName?: string;
18
+ headerName?: string;
19
+ }
20
+ export interface SendEmailOptions {
21
+ bulk?: boolean;
22
+ personal?: boolean;
23
+ recaptcha?: string | RecaptchaOptions;
24
+ }
25
+ /**
26
+ * Method to send Email to user
27
+ * @param body FormData | EmailBody
28
+ * @param token string
29
+ * @param bulkOrOptions boolean | SendEmailOptions
30
+ * @param recaptchaToken string
31
+ * @returns JSON | string | null
32
+ */
33
+ export declare const sendEmail: (body: FormData | EmailBody | BulkEmailBody, token: string, bulkOrOptions?: boolean | SendEmailOptions, recaptchaToken?: string) => Promise<any>;
34
+ /**
35
+ * Method to send a personal Email to user.
36
+ * @param body FormData | EmailBody
37
+ * @param token string
38
+ * @param options SendEmailOptions
39
+ * @returns JSON | string | null
40
+ */
41
+ export declare const sendPersonalEmail: (body: FormData | EmailBody, token: string, options?: Omit<SendEmailOptions, "personal" | "bulk">) => Promise<any>;
@@ -0,0 +1,2 @@
1
+ import { Concept } from "../DataStructures/Concept";
2
+ export default function MakeTheCharacter(the_character_data: string, userId: number, securityId: number, accessId: number, accessUserId: number, sessionId: number): Promise<Concept>;
@@ -0,0 +1,2 @@
1
+ import { Returner } from "../DataStructures/Returner";
2
+ export default function MakeTheCharacterData(the_character_data: string, userId: number, securityId: number, accessId: number, sessionId: number): Promise<Returner>;
@@ -0,0 +1,2 @@
1
+ import { Concept } from "../DataStructures/Concept";
2
+ export default function MakeTheConcept(referent: string, userId: number, categoryId: number, typeId: number, referentId: number, accessId: number, typeCharacter: string): Promise<Concept>;
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This is the basic function of the concept connection system. This function let's you create a concept within the constraints of the
3
+ * concept connection system. This function is the building block of the concept connection system.
4
+ * @param type this is the type of the concept. You can also think of this as the key of concept. first_name, last_name etc.
5
+ * @param referent the actual value of the concept. The actual name of value of the concept.
6
+ * @param composition this is a boolean that defines if the concept is a composition or not. If this is a composition then other things are also
7
+ * connected internally with this concept. If composition is true then always a new concept is created otherwise it checks if the concept already exists
8
+ * and creates only in the case that the concept does not already exists with its type and value as its unique identifier.
9
+ * @param userId the userId of the creator.
10
+ * @param passedAccessId this is the accessId of the creator. By default should be 4.
11
+ * @param passedSessionId this is the session that is created by the system.
12
+ * @param referentId In case we need this concept to refer to any other concept.
13
+ * @returns a concept which is either newly created or an older concept that already exists.
14
+ */
15
+ export default function MakeTheInstanceConcept(type: string, referent: string, composition: boolean | undefined, userId: number, passedAccessId?: number, passedSessionId?: number, referentId?: number): Promise<any>;
@@ -0,0 +1 @@
1
+ export declare function MakeTheTimestamp(type: string, referent: string, userId: number, accessId?: number, sessionInformationId?: number): Promise<any>;
@@ -0,0 +1 @@
1
+ export declare function MakeTheTypeConcept(typeString: string, sessionId: number, sessionUserId: number, userId: number): Promise<any>;
@@ -0,0 +1 @@
1
+ export declare function publishMessage(topic: string, message: any): void;
@@ -0,0 +1,32 @@
1
+ import { Connection } from "../../app";
2
+ /**
3
+ * ## Format DATA-ID ##
4
+ * this function takes in connections and creates a single level objects so that all the data are added to its object/ array.
5
+ * This is then passed on further for stiching.
6
+ * @param connections
7
+ * @param compositionData
8
+ * @param reverse
9
+ * @returns
10
+ */
11
+ export declare function FormatFunctionDataForData(connections: Connection[], compositionData: any[], reverse?: number[]): Promise<any[]>;
12
+ /**
13
+ * ############ Format is data-id and is used for list. ############
14
+ * This is helpful in building a format that has multiple mainCompositions i.e. in the context of the list
15
+ * The list format is helpful because you do not have to go over each individual query.
16
+ * @param connections the type connections that need (external connections) to be passed
17
+ * @param compositionData this is a dictionary type of format that has all the build compositions {id: { actual data}}
18
+ * @param mainComposition this is list of ids of the main composition that builds the tree
19
+ * @param reverse this is the list of connections ids that needs to go to the reverse direction (to---->from)
20
+ * @returns
21
+ */
22
+ export declare function FormatFromConnectionsAlteredArrayExternal(connections: Connection[], compositionData: any[], newCompositionData: any, mainComposition: number[], reverse: number[] | undefined, CountDictionary: any[]): Promise<any[]>;
23
+ /**
24
+ * ## Format DATA-ID ##
25
+ * this function takes in connections and creates a single level objects so that all the data are added to its object/ array.
26
+ * This is then passed on further for stiching.
27
+ * @param connections
28
+ * @param compositionData
29
+ * @param reverse
30
+ * @returns
31
+ */
32
+ export declare function FormatFunctionData(connections: Connection[], compositionData: any[], reverse?: number[]): Promise<any[]>;
@@ -0,0 +1,36 @@
1
+ import { Connection } from "../../app";
2
+ /**
3
+ * ######### Format is normal ######### used for listing. This only provides type connections.
4
+ * This is helpful in building a format that has multiple mainCompositions i.e. in the context of the list
5
+ * The list format is helpful because you do not have to go over each individual query.
6
+ * @param connections the type connections that need (external connections) to be passed
7
+ * @param compositionData this is a dictionary type of format that has all the build compositions {id: { actual data}}
8
+ * @param mainComposition this is list of ids of the main composition that builds the tree
9
+ * @param reverse this is the list of connections ids that needs to go to the reverse direction (to---->from)
10
+ * @returns
11
+ */
12
+ export declare function FormatConceptsAndConnectionsNormalList(connections: Connection[], compositionData: any[], mainComposition: number[], newCompositionData: any, reverse?: number[]): Promise<any[]>;
13
+ /**
14
+ *
15
+ * ## Format Normal ##
16
+ * This function takes in the connections and then converts the connections to the single level objects for further processing
17
+ * This function is the builder of the arrays/ objects from the connections.
18
+ */
19
+ export declare function formatFunction(connections: Connection[], compositionData: any, reverse: number[]): Promise<any>;
20
+ /**
21
+ *
22
+ * ## Format Normal ##
23
+ * This function takes in the connections and then converts the connections to the single level objects for further processing
24
+ * This function is the builder of the arrays/ objects from the connections.
25
+ */
26
+ export declare function formatFunctionForData(connections: Connection[], compositionData: any, reverse: number[]): Promise<any>;
27
+ /**
28
+ * ## Format DATA-ID ##
29
+ * this function takes in connections and creates a single level objects so that all the data are added to its object/ array.
30
+ * This is then passed on further for stiching.
31
+ * @param connections
32
+ * @param compositionData
33
+ * @param reverse
34
+ * @returns
35
+ */
36
+ export declare function FormatFunctionData(connections: Connection[], compositionData: any[], reverse?: number[]): Promise<any[]>;
@@ -0,0 +1,23 @@
1
+ import { Connection } from "../../app";
2
+ /**
3
+ * ## Format Just-Id ##
4
+ * this function takes in connections and creates a single level objects so that all the data are added to its object/ array.
5
+ * This is then passed on further for stiching.
6
+ * @param connections
7
+ * @param compositionData
8
+ * @param reverse
9
+ * @returns
10
+ */
11
+ export declare function FormatFunctionDataForDataJustId(connections: Connection[], compositionData: any[], reverse?: number[]): Promise<any[]>;
12
+ /**
13
+ * ############ Format is Just Id and is used for list. ############
14
+ * This is helpful in building a format that has multiple mainCompositions i.e. in the context of the list
15
+ * The list format is helpful because you do not have to go over each individual query.
16
+ * @param connections the type connections that need (external connections) to be passed
17
+ * @param compositionData this is a dictionary type of format that has all the build compositions {id: { actual data}}
18
+ * @param mainComposition this is list of ids of the main composition that builds the tree
19
+ * @param reverse this is the list of connections ids that needs to go to the reverse direction (to---->from)
20
+ * @returns
21
+ */
22
+ export declare function FormatFromConnectionsAlteredArrayExternalJustId(connections: Connection[], compositionData: any[], mainComposition: number[], reverse: number[] | undefined, CountDictionary: any[]): Promise<any[]>;
23
+ export declare function AddCount(ofTheConceptId: number, CountDictionary: any, newData: any): void;
@@ -0,0 +1,4 @@
1
+ import { Connection } from "../../app";
2
+ export declare function FormatFunctionDataV2(connections: Connection[], compositionData?: Record<number, any>, reverse?: number[]): Promise<Record<number, any>>;
3
+ export declare function FormatFunctionDataForDataV2(connections: Connection[], compositionData?: Record<number, any>, reverse?: number[]): Promise<Record<number, any>>;
4
+ export declare function FormatFromConnectionsAlteredArrayExternalV2(connections: Connection[], compositionData: Record<number, any>, mainComposition: number[], reverse: number[] | undefined, CountDictionary: Record<number, any>): Promise<any[]>;
@@ -0,0 +1,3 @@
1
+ import { SearchStructure } from "../../app";
2
+ export declare function SearchLinkInternal(searchQuery: SearchStructure, token?: string): Promise<any[]>;
3
+ export declare function SearchLinkInternalAll(searchQuery: SearchStructure, token?: string): Promise<any>;
@@ -0,0 +1,55 @@
1
+ import { SearchQuery } from "../../DataStructures/SearchQuery";
2
+ import { Connection } from "../../app";
3
+ export declare function SearchLinkMultipleAll(searchQuery: SearchQuery[], token?: string, caller?: any, format?: number): Promise<any>;
4
+ /**
5
+ * ######### This layer builds the data. Format is dataid ##########
6
+ * @param linkers list of ids that help us
7
+ * @param conceptIds this is all the concept ids that need to be composited
8
+ * @param connections these are the internal connections of the compositions that help in creating individual compositions
9
+ * @param reverse this is the list of connection ids that need to show reverse connections(to->from)
10
+ * @param mainCompositionId this is the main centre point of this data.
11
+ * @returns
12
+ */
13
+ export declare function DataIdBuildLayer(linkers: number[], conceptIds: number[], connections: number[], reverse: number[], mainCompositionId: number, searchQuery: SearchQuery, format?: number): Promise<any>;
14
+ /**
15
+ * ## Format is DATAID ##
16
+ * This is altered format and is different from others because it passes all the connections prebuilt/prefetched
17
+ * This will not let the connections to be again fetched from the memory.
18
+ * @param connections the type connections that need (external connections) to be passed
19
+ * @param compositionData this is a dictionary type of format that has all the build compositions {id: { actual data}}
20
+ * @param mainComposition this is the id of the main composition that builds the tree
21
+ * @param reverse this is the list of connections ids that needs to go to the reverse direction (to---->from)
22
+ * @returns
23
+ */
24
+ export declare function FormatFromConnectionsAltered(connections: Connection[], compositionData: any[], mainComposition: number, reverse?: number[]): Promise<any>;
25
+ /**
26
+ * ######### Format is normal ######### used for listing.
27
+ * This is helpful in building a format that has multiple mainCompositions i.e. in the context of the list
28
+ * The list format is helpful because you do not have to go over each individual query.
29
+ * @param connections the type connections that need (external connections) to be passed
30
+ * @param compositionData this is a dictionary type of format that has all the build compositions {id: { actual data}}
31
+ * @param mainComposition this is list of ids of the main composition that builds the tree
32
+ * @param reverse this is the list of connections ids that needs to go to the reverse direction (to---->from)
33
+ * @returns
34
+ */
35
+ export declare function FormatConceptsAndConnections(connections: Connection[], compositionData: any[], mainComposition: number[], reverse?: number[]): Promise<any[]>;
36
+ /**
37
+ * ############ Format is data-id and is used for list. ############
38
+ * This is helpful in building a format that has multiple mainCompositions i.e. in the context of the list
39
+ * The list format is helpful because you do not have to go over each individual query.
40
+ * @param connections the type connections that need (external connections) to be passed
41
+ * @param compositionData this is a dictionary type of format that has all the build compositions {id: { actual data}}
42
+ * @param mainComposition this is list of ids of the main composition that builds the tree
43
+ * @param reverse this is the list of connections ids that needs to go to the reverse direction (to---->from)
44
+ * @returns
45
+ */
46
+ export declare function FormatFromConnectionsAlteredArray(connections: Connection[], compositionData: any[], conceptIds: number[], mainComposition: number[], reverse?: number[]): Promise<any[]>;
47
+ /**
48
+ * ########## Format works with JUSTDATA / NORMAL ########### used for single origin concept
49
+ * @param linkers this is the list of linkers that
50
+ * @param compositionData
51
+ * @param mainComposition
52
+ * @param reverse list of connection ids that need to show reverse conneciton.
53
+ * @returns
54
+ */
55
+ export declare function FormatFromConnections(linkers: number[], compositionData: any[], mainComposition: number, reverse?: number[]): Promise<any>;
@@ -0,0 +1,82 @@
1
+ import { SearchStructure, SearchQuery } from '../../app';
2
+ import { CountInfo } from '../../DataStructures/Count/CountInfo';
3
+ /**
4
+ * This function will help you search a concept by their type and also to query inside of it.
5
+ * Put the number of compositions you want to get in the searchStructure which can be set by inpage and page
6
+ * Then the type should be set in searchQuery for the compositionName.
7
+ * Inside the searchQuery array this you can set the full linker / listLinker in the searchQuery.
8
+ * This will give the id of the structures.
9
+ */
10
+ export declare function SearchWithTypeAndLinkerDataId(searchStructure: SearchStructure, searchQuery: SearchQuery[], token?: string): Promise<any>;
11
+ /**
12
+ * This function will help you search a concept by their type and also to query inside of it.
13
+ * Put the number of compositions you want to get in the searchStructure which can be set by inpage and page
14
+ * Then the type should be set in searchQuery for the compositionName.
15
+ * Inside the searchQuery array this you can set the full linker / listLinker in the searchQuery.
16
+ * This will not give the id of the structures.
17
+ */
18
+ export declare function SearchWithTypeAndLinker(searchStructure: SearchStructure, searchQuery: SearchQuery[], token?: string): Promise<any>;
19
+ /**
20
+ * ## Format dataid ##
21
+ * @param linkers
22
+ * @param conceptIds
23
+ * @param connections
24
+ * @param mainCompositionIds
25
+ * @param reverse
26
+ * @returns
27
+ */
28
+ export declare function formatDataArrayDataId(linkers: number[], conceptIds: number[], connections: number[], mainCompositionIds: number[], reverse: number[]): Promise<any>;
29
+ /**
30
+ * ## Format Normal ##
31
+ * @param linkers
32
+ * @param conceptIds
33
+ * @param connections
34
+ * @param mainCompositionIds
35
+ * @param reverse
36
+ * @returns
37
+ */
38
+ export declare function formatDataArrayNormal(linkers: number[], conceptIds: number[], connections: number[], mainCompositionIds: number[], reverse: number[]): Promise<any>;
39
+ /**
40
+ * ## Format Normal ##
41
+ * @param linkers
42
+ * @param conceptIds
43
+ * @param connections
44
+ * @param mainCompositionIds
45
+ * @param reverse
46
+ * @returns
47
+ */
48
+ export declare function formatLinkersNormal(linkers: number[], conceptIds: number[], connections: number[], mainCompositionIds: number[], reverse: number[]): Promise<any>;
49
+ /**
50
+ * ## Format Normal ##
51
+ * This function fetches all the connections and then converts all the connections to the single level connections
52
+ * Then those single level objects are then stiched together to create a complex json/ array.
53
+ * @param linkers
54
+ * @param conceptIds
55
+ * @param mainCompositionIds
56
+ * @param reverse
57
+ * @returns
58
+ */
59
+ export declare function formatConnections(linkers: number[], conceptIds: number[], mainCompositionIds: number[], reverse: number[], countInfos: CountInfo[]): Promise<any>;
60
+ /**
61
+ * ## Format JustId ##
62
+ * This function fetches all the connections and then converts all the connections to the single level connections
63
+ * Then those single level objects are then stiched together to create a complex json/ array.
64
+ * @param linkers
65
+ * @param conceptIds
66
+ * @param mainCompositionIds
67
+ * @param reverse
68
+ * @returns
69
+ */
70
+ export declare function formatConnectionsJustId(linkers: number[], conceptIds: number[], mainCompositionIds: number[], reverse: number[], countInfos: CountInfo[], order?: string): Promise<any>;
71
+ /**
72
+ * ## Format DATA-ID ##
73
+ * This function fetches all the connections and then converts all the connections to the single level connections
74
+ * Then those single level objects are then stiched together to create a complex json/ array.
75
+ * @param linkers
76
+ * @param conceptIds
77
+ * @param mainCompositionIds
78
+ * @param reverse
79
+ * @returns
80
+ */
81
+ export declare function formatConnectionsDataId(linkers: number[], conceptIds: number[], mainCompositionIds: number[], reverse: number[], countInfos: CountInfo[], order?: string): Promise<any>;
82
+ export declare function formatConnectionsV2(linkers: number[], conceptIds: number[], mainCompositionIds: number[], reverse: number[], countInfos: CountInfo[], order?: string): Promise<any>;
@@ -0,0 +1,2 @@
1
+ import { Connection } from "../../app";
2
+ export declare function orderTheConnections(connections: Connection[], order?: string): Connection[];
@@ -0,0 +1,6 @@
1
+ type RequestHeader = Record<string, string>;
2
+ export declare function GetRequestHeader(contentType?: string, Accept?: string): Promise<RequestHeader>;
3
+ export declare function GetRequestHeaderWithAuthorization(contentType?: string, token?: string, Accept?: string): Promise<RequestHeader>;
4
+ export declare function GetOnlyTokenHeader(): Promise<Headers>;
5
+ export declare function getValidAccessToken(token?: string): Promise<string>;
6
+ export {};
@@ -0,0 +1 @@
1
+ export declare function SplitStrings(typeString: string): string[];
@@ -0,0 +1,117 @@
1
+ import { Concept, InnerActions } from "../../app";
2
+ import { FetchConnectionQuery } from "../../DataStructures/FetchConnection";
3
+ export declare class LocalTransaction {
4
+ protected transactionId: string;
5
+ actions: InnerActions;
6
+ protected success: boolean;
7
+ protected pendingConnectionDeletions: number[];
8
+ constructor();
9
+ /**
10
+ * Method to initialize the transactions for specified transaction
11
+ */
12
+ initialize(): Promise<void>;
13
+ /**
14
+ * Method to commi the created Transactions
15
+ */
16
+ commitTransaction(): Promise<void>;
17
+ commitTransactionWithoutAuth(): Promise<void>;
18
+ /**
19
+ * Method to rollback all the tranctions occured
20
+ */
21
+ rollbackTransaction(): Promise<void>;
22
+ /**
23
+ * Method to move concepts and connection to transaction collection
24
+ * @param concept Concept
25
+ */
26
+ protected markAction(): Promise<void>;
27
+ /**
28
+ * Deletions
29
+ */
30
+ /**
31
+ * Queries the backend for connections matching the given criteria and queues all
32
+ * returned connection IDs for bulk deletion when commitTransaction() is called.
33
+ *
34
+ * **Nothing is deleted until commitTransaction() is called.**
35
+ * Calling rollbackTransaction() discards the queue without touching the backend.
36
+ *
37
+ * Supported query permutations:
38
+ * 1. `ofTheConceptId` + `toTheConceptId` + `type` — connections between two specific concepts
39
+ * 2. `ofTheConceptId` + `type` — all connections FROM a concept of that type
40
+ * 3. `toTheConceptId` + `type` — all connections TO a concept of that type
41
+ * 4. `typeId` + `isComposition: true` — all internal connections of a composition
42
+ *
43
+ * For multiple queries in one go use {@link DeleteConnectionsBetweenBulk} — it sends
44
+ * all queries in a single HTTP request.
45
+ *
46
+ * @param query - Partial FetchConnectionQuery with only the fields relevant to your permutation.
47
+ * @returns The connection IDs queued for deletion by this call.
48
+ *
49
+ * @example
50
+ * // Delete all connections of type "the_project_s_page" from concept 103927382
51
+ * const ids = await transaction.DeleteConnectionsBetween({
52
+ * ofTheConceptId: 103927382,
53
+ * type: "the_project_s_page"
54
+ * });
55
+ * await transaction.commitTransaction(); // deletion fires here
56
+ *
57
+ * @example
58
+ * // Delete connections between two specific concepts
59
+ * await transaction.DeleteConnectionsBetween({
60
+ * ofTheConceptId: 103927382,
61
+ * toTheConceptId: 103927389,
62
+ * type: "the_project_s_page"
63
+ * });
64
+ *
65
+ * @example
66
+ * // Delete all internal connections of a composition
67
+ * await transaction.DeleteConnectionsBetween({
68
+ * typeId: 101490186,
69
+ * isComposition: true
70
+ * });
71
+ *
72
+ * @see {@link DeleteConnectionsBetweenBulk} for sending multiple queries in one HTTP request
73
+ * @see {@link commitTransaction} where the queued deletions are executed via bulk delete
74
+ */
75
+ DeleteConnectionsBetween(query: Partial<FetchConnectionQuery>): Promise<number[]>;
76
+ /**
77
+ * Same as {@link DeleteConnectionsBetween} but resolves multiple queries in a single
78
+ * HTTP request to POST /api/get-connection-between.
79
+ *
80
+ * Prefer this over looping DeleteConnectionsBetween — all queries go to the backend
81
+ * in one round trip, and all returned IDs are merged into the same pending-deletion queue.
82
+ * The actual deletion still fires as a single bulk call inside commitTransaction().
83
+ *
84
+ * @param queries - Array of partial FetchConnectionQuery objects, one per query permutation.
85
+ * @returns All connection IDs queued for deletion across every query in this call.
86
+ *
87
+ * @example
88
+ * // Three different queries → one HTTP request to get IDs → one bulk delete on commit
89
+ * await transaction.DeleteConnectionsBetweenBulk([
90
+ * { ofTheConceptId: 103927382, type: "the_project_s_page" },
91
+ * { ofTheConceptId: 103927382, type: "the_project_s_tag" },
92
+ * { typeId: 101490186, isComposition: true },
93
+ * ]);
94
+ * await transaction.commitTransaction();
95
+ *
96
+ * @see {@link DeleteConnectionsBetween} for the single-query convenience wrapper
97
+ * @see {@link commitTransaction} where the queued deletions are executed via bulk delete
98
+ */
99
+ DeleteConnectionsBetweenBulk(queries: Partial<FetchConnectionQuery>[]): Promise<number[]>;
100
+ /**
101
+ * Concepts
102
+ */
103
+ MakeTheInstanceConceptLocal(type: string, referent: string, composition: boolean | undefined, userId: number, accessId: number, sessionInformationId?: number, referentId?: number): Promise<any>;
104
+ MakeTheTypeConceptLocal(typeString: string, sessionId: number, sessionUserId: number, userId: number): Promise<Concept>;
105
+ CreateTheConceptLocal(referent: string, typecharacter: string, userId: number, categoryId: number, typeId: number, accessId: number, isComposition?: boolean, referentId?: number | null, actions?: InnerActions): Promise<any>;
106
+ /**
107
+ * Connections
108
+ */
109
+ CreateConnectionBetweenTwoConceptsLocal(ofTheConcept: Concept, toTheConcept: Concept, linker: string, both?: boolean): Promise<any>;
110
+ CreateTheConnectionLocal(ofTheConceptId: number, toTheConceptId: number, typeId: number, orderId?: number, typeString?: string, userId?: number): Promise<any>;
111
+ CreateConnection(ofTheConcept: Concept, toTheConcept: Concept, connectionTypeString: string): Promise<any>;
112
+ CreateConnectionBetweenEntityLocal(concept1Data: Concept, concept2Data: Concept, linker: string): Promise<any>;
113
+ /**
114
+ * Compositions
115
+ */
116
+ CreateTheCompositionLocal(json: any, ofTheConceptId?: number | null, ofTheConceptUserId?: number | null, mainKey?: number | null, userId?: number | null, accessId?: number | null, sessionInformationId?: number | null, automaticSync?: boolean): Promise<any>;
117
+ }
@@ -0,0 +1,2 @@
1
+ import { PatcherStructure } from "../DataStructures/PatcherStructure";
2
+ export default function UpdateComposition(patcherStructure: PatcherStructure): Promise<any>;