mftsccs-browser 2.1.242-dev → 2.1.243-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 (267) hide show
  1. package/dist/main.bundle.js +2 -44551
  2. package/dist/main.bundle.js.LICENSE.txt +1 -0
  3. package/dist/serviceWorker.bundle.js +2 -45399
  4. package/dist/serviceWorker.bundle.js.LICENSE.txt +1 -0
  5. package/dist/types/AccessTracker/accessTracker.d.ts +72 -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 +11 -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 +78 -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/Connection.d.ts +23 -0
  78. package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionBinaryTree.d.ts +81 -0
  79. package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionNode.d.ts +27 -0
  80. package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionOfNode.d.ts +10 -0
  81. package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionOfTheTree.d.ts +24 -0
  82. package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionTypeNode.d.ts +10 -0
  83. package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionTypeTree.d.ts +20 -0
  84. package/dist/types/DataStructures/ConnectionBinaryTree/NodePrimitive.d.ts +15 -0
  85. package/dist/types/DataStructures/ConnectionByType/GetConnectionByType.d.ts +4 -0
  86. package/dist/types/DataStructures/ConnectionData.d.ts +26 -0
  87. package/dist/types/DataStructures/Count/CountInfo.d.ts +6 -0
  88. package/dist/types/DataStructures/FetchConnection.d.ts +64 -0
  89. package/dist/types/DataStructures/FilterSearch.d.ts +9 -0
  90. package/dist/types/DataStructures/IdentifierFlags.d.ts +11 -0
  91. package/dist/types/DataStructures/Local/LConcept.d.ts +23 -0
  92. package/dist/types/DataStructures/Local/LConnection.d.ts +18 -0
  93. package/dist/types/DataStructures/Local/LNode.d.ts +29 -0
  94. package/dist/types/DataStructures/Local/LocalBinaryCharacterTree.d.ts +13 -0
  95. package/dist/types/DataStructures/Local/LocalBinaryTree.d.ts +13 -0
  96. package/dist/types/DataStructures/Local/LocalBinaryTypeTree.d.ts +13 -0
  97. package/dist/types/DataStructures/Local/LocalConceptData.d.ts +21 -0
  98. package/dist/types/DataStructures/Local/LocalConnectionData.d.ts +20 -0
  99. package/dist/types/DataStructures/Local/LocalGhostIdTree.d.ts +11 -0
  100. package/dist/types/DataStructures/Local/LocalId.d.ts +19 -0
  101. package/dist/types/DataStructures/Local/LocalSyncData.d.ts +33 -0
  102. package/dist/types/DataStructures/Node.d.ts +30 -0
  103. package/dist/types/DataStructures/PatcherStructure.d.ts +8 -0
  104. package/dist/types/DataStructures/Prototype/Prototype.d.ts +19 -0
  105. package/dist/types/DataStructures/Prototype/PrototypeOption.d.ts +4 -0
  106. package/dist/types/DataStructures/Prototype/QuerySelector.d.ts +4 -0
  107. package/dist/types/DataStructures/ReservedIds.d.ts +10 -0
  108. package/dist/types/DataStructures/Responses/ErrorResponse.d.ts +74 -0
  109. package/dist/types/DataStructures/Responses/StandardResponses.d.ts +6 -0
  110. package/dist/types/DataStructures/Returner.d.ts +7 -0
  111. package/dist/types/DataStructures/Search/FreeschemaQuery.d.ts +25 -0
  112. package/dist/types/DataStructures/Search/SearchStructure.d.ts +10 -0
  113. package/dist/types/DataStructures/SearchQuery.d.ts +17 -0
  114. package/dist/types/DataStructures/Security/SecureStorage.d.ts +14 -0
  115. package/dist/types/DataStructures/Security/TokenStorage.d.ts +24 -0
  116. package/dist/types/DataStructures/Session/SessionData.d.ts +13 -0
  117. package/dist/types/DataStructures/SettingData.d.ts +5 -0
  118. package/dist/types/DataStructures/Settings.d.ts +4 -0
  119. package/dist/types/DataStructures/SigninModel.d.ts +4 -0
  120. package/dist/types/DataStructures/SignupModel.d.ts +4 -0
  121. package/dist/types/DataStructures/SyncData.d.ts +14 -0
  122. package/dist/types/DataStructures/TheCharacter.d.ts +13 -0
  123. package/dist/types/DataStructures/TheTexts.d.ts +14 -0
  124. package/dist/types/DataStructures/TypeLibrary.d.ts +19 -0
  125. package/dist/types/DataStructures/TypeNode.d.ts +18 -0
  126. package/dist/types/DataStructures/User/UserBinaryTree.d.ts +13 -0
  127. package/dist/types/DataStructures/User/UserNode.d.ts +18 -0
  128. package/dist/types/DataStructures/WidgetCache/WidgetCache.d.ts +10 -0
  129. package/dist/types/DataStructures/WidgetCache/WidgetDetails.d.ts +9 -0
  130. package/dist/types/DataStructures/WidgetCache/WidgetNode.d.ts +18 -0
  131. package/dist/types/DataStructures/environments/environments.d.ts +48 -0
  132. package/dist/types/Database/CacheDatabase.d.ts +57 -0
  133. package/dist/types/Database/IndexUpdate.d.ts +47 -0
  134. package/dist/types/Database/NoIndexDb.d.ts +9 -0
  135. package/dist/types/Database/indexdblocal.d.ts +43 -0
  136. package/dist/types/Database/indexeddb.d.ts +58 -0
  137. package/dist/types/Helpers/CheckIfExists.d.ts +9 -0
  138. package/dist/types/Helpers/RemoveFromArray.d.ts +5 -0
  139. package/dist/types/Helpers/UniqueInsert.d.ts +1 -0
  140. package/dist/types/Middleware/ApplicationMonitor.d.ts +25 -0
  141. package/dist/types/Middleware/logger.service.d.ts +144 -0
  142. package/dist/types/ServiceWorker/actions/connectionActions.d.ts +2 -0
  143. package/dist/types/ServiceWorker/actions/createActions.d.ts +2 -0
  144. package/dist/types/ServiceWorker/actions/deleteActions.d.ts +2 -0
  145. package/dist/types/ServiceWorker/actions/getActions.d.ts +2 -0
  146. package/dist/types/ServiceWorker/actions/index.d.ts +15 -0
  147. package/dist/types/ServiceWorker/actions/searchActions.d.ts +2 -0
  148. package/dist/types/ServiceWorker/actions/syncActions.d.ts +2 -0
  149. package/dist/types/ServiceWorker/actions/updateActions.d.ts +2 -0
  150. package/dist/types/ServiceWorker/index.d.ts +11 -0
  151. package/dist/types/Services/CacheClear.d.ts +7 -0
  152. package/dist/types/Services/CheckForConnectionDeletion.d.ts +3 -0
  153. package/dist/types/Services/Common/DecodeCountInfo.d.ts +3 -0
  154. package/dist/types/Services/Common/DelayFunction.d.ts +7 -0
  155. package/dist/types/Services/Common/ErrorPosting.d.ts +10 -0
  156. package/dist/types/Services/Common/MergeArrays.d.ts +7 -0
  157. package/dist/types/Services/Common/RegexFunction.d.ts +1 -0
  158. package/dist/types/Services/Common/RemoveAllChild.d.ts +1 -0
  159. package/dist/types/Services/Composition/BuildComposition.d.ts +3 -0
  160. package/dist/types/Services/Composition/CompositionCache.d.ts +4 -0
  161. package/dist/types/Services/Composition/CreateCompositionCache.d.ts +3 -0
  162. package/dist/types/Services/ConceptFinding/GetConceptByCharacterAndCategory.d.ts +5 -0
  163. package/dist/types/Services/Conversion/ConvertConcepts.d.ts +5 -0
  164. package/dist/types/Services/CreateBinaryTreeFromData.d.ts +5 -0
  165. package/dist/types/Services/CreateConnection/CreateConnectionEntity.d.ts +2 -0
  166. package/dist/types/Services/CreateConnectionBetweenTwoConcepts.d.ts +5 -0
  167. package/dist/types/Services/CreateDefaultConcept.d.ts +3 -0
  168. package/dist/types/Services/CreateTheComposition.d.ts +1 -0
  169. package/dist/types/Services/CreateTheConcept.d.ts +122 -0
  170. package/dist/types/Services/CreateTheConnection.d.ts +63 -0
  171. package/dist/types/Services/CreateTheConnectionGeneral.d.ts +2 -0
  172. package/dist/types/Services/DeleteConcept.d.ts +2 -0
  173. package/dist/types/Services/DeleteConnection.d.ts +2 -0
  174. package/dist/types/Services/DeleteConnectionByType.d.ts +22 -0
  175. package/dist/types/Services/FindConeceptsFromConnection.d.ts +6 -0
  176. package/dist/types/Services/FindConnectionsOfCompositionBulkInMemory.d.ts +1 -0
  177. package/dist/types/Services/GetComposition.d.ts +205 -0
  178. package/dist/types/Services/GetCompositionBulk.d.ts +100 -0
  179. package/dist/types/Services/GetCompositionList.d.ts +7 -0
  180. package/dist/types/Services/GetConceptByCharacter.d.ts +2 -0
  181. package/dist/types/Services/GetConnectionBetweenTwoConceptsLinker.d.ts +11 -0
  182. package/dist/types/Services/GetConnections.d.ts +1 -0
  183. package/dist/types/Services/GetDataFromIndexDb.d.ts +2 -0
  184. package/dist/types/Services/GetLink.d.ts +3 -0
  185. package/dist/types/Services/GetLinkerConnectionFromConcept.d.ts +3 -0
  186. package/dist/types/Services/GetRelation.d.ts +3 -0
  187. package/dist/types/Services/GetTheConcept.d.ts +96 -0
  188. package/dist/types/Services/InitializeSystem.d.ts +2 -0
  189. package/dist/types/Services/Local/ConvertFromLConceptToConcept.d.ts +41 -0
  190. package/dist/types/Services/Local/ConvertFromLConnectionToConnection.d.ts +47 -0
  191. package/dist/types/Services/Local/CreateConnectionBetweenTwoConceptsLocal.d.ts +44 -0
  192. package/dist/types/Services/Local/CreateDefaultLConcept.d.ts +46 -0
  193. package/dist/types/Services/Local/CreateLocalBinaryTreeFromData.d.ts +34 -0
  194. package/dist/types/Services/Local/CreateTheCompositionLocal.d.ts +104 -0
  195. package/dist/types/Services/Local/CreateTheConceptLocal.d.ts +84 -0
  196. package/dist/types/Services/Local/CreateTheConnectionLocal.d.ts +140 -0
  197. package/dist/types/Services/Local/DeleteConceptLocal.d.ts +47 -0
  198. package/dist/types/Services/Local/GetCompositionListLocal.d.ts +37 -0
  199. package/dist/types/Services/Local/GetCompositionLocal.d.ts +97 -0
  200. package/dist/types/Services/Local/GetConceptByCharacterLocal.d.ts +56 -0
  201. package/dist/types/Services/Local/GetConnectionOfTheConceptLocal.d.ts +19 -0
  202. package/dist/types/Services/Local/GetRelationLocal.d.ts +21 -0
  203. package/dist/types/Services/Local/GetTheConceptLocal.d.ts +63 -0
  204. package/dist/types/Services/Local/MakeTheConceptLocal.d.ts +22 -0
  205. package/dist/types/Services/Local/MakeTheInstanceConceptLocal.d.ts +164 -0
  206. package/dist/types/Services/Local/MakeTheTypeLocal.d.ts +36 -0
  207. package/dist/types/Services/Local/UpdateCompositionLocal.d.ts +42 -0
  208. package/dist/types/Services/Logs/LogEvent.d.ts +1 -0
  209. package/dist/types/Services/Mail.d.ts +41 -0
  210. package/dist/types/Services/MakeTheCharacter.d.ts +2 -0
  211. package/dist/types/Services/MakeTheCharacterData.d.ts +2 -0
  212. package/dist/types/Services/MakeTheConcept.d.ts +2 -0
  213. package/dist/types/Services/MakeTheInstanceConcept.d.ts +15 -0
  214. package/dist/types/Services/MakeTheTimestamp.d.ts +1 -0
  215. package/dist/types/Services/MakeTheTypeConcept.d.ts +1 -0
  216. package/dist/types/Services/Mqtt/publishMessage.d.ts +1 -0
  217. package/dist/types/Services/Search/DataIdFormat.d.ts +32 -0
  218. package/dist/types/Services/Search/FormatData.d.ts +36 -0
  219. package/dist/types/Services/Search/JustIdFormat.d.ts +23 -0
  220. package/dist/types/Services/Search/NewFormat.d.ts +4 -0
  221. package/dist/types/Services/Search/SearchLinkInternal.d.ts +3 -0
  222. package/dist/types/Services/Search/SearchLinkMultiple.d.ts +55 -0
  223. package/dist/types/Services/Search/SearchWithTypeAndLinker.d.ts +82 -0
  224. package/dist/types/Services/Search/orderingConnections.d.ts +2 -0
  225. package/dist/types/Services/Security/GetRequestHeader.d.ts +7 -0
  226. package/dist/types/Services/SplitStrings.d.ts +1 -0
  227. package/dist/types/Services/Transaction/LocalTransaction.d.ts +117 -0
  228. package/dist/types/Services/UpdateComposition.d.ts +2 -0
  229. package/dist/types/Services/Upload.d.ts +111 -0
  230. package/dist/types/Services/User/UserFromLocalStorage.d.ts +10 -0
  231. package/dist/types/Services/User/UserTranslation.d.ts +3 -0
  232. package/dist/types/Services/View/ViewInternalData.d.ts +1 -0
  233. package/dist/types/Services/assets/GetImageService.d.ts +14 -0
  234. package/dist/types/Services/automated/automated-concept-connection.d.ts +7 -0
  235. package/dist/types/Services/cacheService.d.ts +1 -0
  236. package/dist/types/Validator/constant.d.ts +3 -0
  237. package/dist/types/Validator/interface.d.ts +19 -0
  238. package/dist/types/Validator/utils.d.ts +7 -0
  239. package/dist/types/Validator/validator.d.ts +37 -0
  240. package/dist/types/Widgets/BaseObserver.d.ts +25 -0
  241. package/dist/types/Widgets/BaseWidget.d.ts +37 -0
  242. package/dist/types/Widgets/BuilderSpeceficFunctions.d.ts +11 -0
  243. package/dist/types/Widgets/BuilderStatefulWidget.d.ts +392 -0
  244. package/dist/types/Widgets/CacheWidget.service.d.ts +77 -0
  245. package/dist/types/Widgets/NormalizeStyles.service.d.ts +10 -0
  246. package/dist/types/Widgets/RenderPage.service.d.ts +17 -0
  247. package/dist/types/Widgets/RenderWidgetLibrary.service.d.ts +22 -0
  248. package/dist/types/Widgets/RenderWidgetService.d.ts +187 -0
  249. package/dist/types/Widgets/StatefulWidget.d.ts +167 -0
  250. package/dist/types/Widgets/WidgetBuild.d.ts +45 -0
  251. package/dist/types/Widgets/WidgetCacheManager.d.ts +108 -0
  252. package/dist/types/Widgets/WidgetTree.d.ts +61 -0
  253. package/dist/types/WrapperFunctions/DepenedencyObserver.d.ts +116 -0
  254. package/dist/types/WrapperFunctions/GetCompositionListObservable.d.ts +51 -0
  255. package/dist/types/WrapperFunctions/GetCompositionObservable.d.ts +35 -0
  256. package/dist/types/WrapperFunctions/GetLinkListObservable.d.ts +57 -0
  257. package/dist/types/WrapperFunctions/GetLinkObservable.d.ts +50 -0
  258. package/dist/types/WrapperFunctions/QueryCacheManager.d.ts +107 -0
  259. package/dist/types/WrapperFunctions/RecursiveSearchObservable.d.ts +55 -0
  260. package/dist/types/WrapperFunctions/SchemaQueryObservable.d.ts +64 -0
  261. package/dist/types/WrapperFunctions/SearchLinkMultipleAllObservable.d.ts +36 -0
  262. package/dist/types/app.d.ts +381 -0
  263. package/dist/types/prototype/prototype.service.d.ts +25 -0
  264. package/dist/types/service-worker.d.ts +1 -0
  265. package/package.json +1 -1
  266. package/dist/main.bundle.js.map +0 -1
  267. package/dist/serviceWorker.bundle.js.map +0 -1
@@ -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,7 @@
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 fetchWithAuthRetry(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
6
+ export declare function getValidAccessToken(token?: string): Promise<string>;
7
+ 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>;
@@ -0,0 +1,111 @@
1
+ export declare const validImageFormats: string[];
2
+ export declare const validDocumentFormats: string[];
3
+ export interface R2UploadData {
4
+ key: string;
5
+ bucket: string;
6
+ contentType: string;
7
+ size: number;
8
+ eTag: string;
9
+ url: string;
10
+ }
11
+ export interface R2PresignedUploadUrlRequest {
12
+ fileName: string;
13
+ contentType: string;
14
+ folder?: string;
15
+ expiresInSeconds?: number;
16
+ }
17
+ export interface R2PresignedUploadUrlData {
18
+ uploadUrl: string;
19
+ key: string;
20
+ bucket: string;
21
+ contentType: string;
22
+ expiresInSeconds: number;
23
+ expiresAt: string;
24
+ publicUrl: string;
25
+ }
26
+ export interface R2PresignedUploadOptions {
27
+ fileName?: string;
28
+ contentType?: string;
29
+ folder?: string;
30
+ expiresInSeconds?: number;
31
+ }
32
+ export interface R2PresignedUploadResult {
33
+ message: string;
34
+ success: boolean;
35
+ url?: string;
36
+ data?: R2PresignedUploadUrlData;
37
+ eTag?: string | null;
38
+ }
39
+ export interface UploadResponse<T = string | R2UploadData> {
40
+ message: string;
41
+ success: boolean;
42
+ data?: T;
43
+ }
44
+ type UploadFileParam = Blob & {
45
+ name?: string;
46
+ type?: string;
47
+ uri?: string;
48
+ };
49
+ /**
50
+ * Generic method to upload file or image
51
+ * @param file File
52
+ * @returns Promise<{message: string, success: boolean, url?: string}>
53
+ */
54
+ export declare function uploadAttachment(file: File, token?: string): Promise<{
55
+ message: string;
56
+ success: boolean;
57
+ url?: string;
58
+ }>;
59
+ /**
60
+ * Method to upload a file or image to R2 storage.
61
+ * @param body FormData. Append the file under the "file" key.
62
+ * @param token string?
63
+ * @returns UploadResponse<R2UploadData> | null
64
+ */
65
+ export declare function uploadR2Storage(body: FormData, token?: string): Promise<UploadResponse<R2UploadData> | null>;
66
+ /**
67
+ * Method to request an R2 pre-signed upload URL from the backend.
68
+ * @param body Request metadata for the file to upload.
69
+ * @param token string?
70
+ * @returns UploadResponse<R2PresignedUploadUrlData> | null
71
+ */
72
+ export declare function getR2PresignedUploadUrl(body: R2PresignedUploadUrlRequest, token?: string): Promise<UploadResponse<R2PresignedUploadUrlData> | null>;
73
+ /**
74
+ * Method to upload a file body to a pre-signed R2 URL.
75
+ * @param uploadUrl URL returned by getR2PresignedUploadUrl
76
+ * @param file Blob/File, raw body, or compatible file-like object
77
+ * @param contentType Must match the contentType used when creating the signed URL.
78
+ * @returns Response from R2
79
+ */
80
+ export declare function uploadToR2PresignedUrl(uploadUrl: string, file: UploadFileParam | Blob | BodyInit | any, contentType: string): Promise<Response>;
81
+ /**
82
+ * Full R2 pre-signed upload workflow: create URL, PUT file to R2, return public URL.
83
+ * @param file Blob/File, raw body, or compatible file-like object
84
+ * @param options Optional fileName/contentType/folder/expiresInSeconds overrides.
85
+ * @param token string?
86
+ * @returns R2PresignedUploadResult
87
+ */
88
+ export declare function uploadWithR2PresignedUrl(file: UploadFileParam | Blob | BodyInit | any, options?: R2PresignedUploadOptions, token?: string): Promise<R2PresignedUploadResult>;
89
+ /**
90
+ * Method to upload image to server
91
+ * @param body FormData
92
+ * @param token string?
93
+ * @returns JSON | string | null
94
+ */
95
+ export declare function uploadImage(body: FormData, token?: string): Promise<R2PresignedUploadResult>;
96
+ /**
97
+ * Method to upload image to server
98
+ * @param body FormData
99
+ * @param token string?
100
+ * @returns JSON | string | null
101
+ */
102
+ export declare function uploadImageV2(body: FormData, token?: string): Promise<UploadResponse<string | R2UploadData> | null>;
103
+ /**
104
+ * Method to upload file to server
105
+ * @param body FormData
106
+ * @param token string?
107
+ * @returns JSON | string | null
108
+ */
109
+ export declare function uploadFile(body: FormData, token?: string): Promise<UploadResponse<R2UploadData> | null>;
110
+ export declare function getUploadFileLimit(): Promise<{}>;
111
+ export {};
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Returns user details synchronously.
3
+ * Priority: in-memory profileCache (encrypted) → legacy localStorage("profile") fallback.
4
+ */
5
+ export declare function getUserDetails(): Record<string, any>;
6
+ /**
7
+ * Returns user details after hydrating storage and refreshing an expired token.
8
+ * Use this when callers need a valid token from the user details object.
9
+ */
10
+ export declare function getUserDetailsWithRefresh(): Promise<Record<string, any>>;
@@ -0,0 +1,3 @@
1
+ import { Concept } from './../../DataStructures/Concept';
2
+ export declare function GetUserGhostId(userId: number, ghostId: number, sessionId?: number): Promise<Concept>;
3
+ export declare function AddGhostConcept(concept: Concept, userId: number, sessionId?: number): Promise<void>;
@@ -0,0 +1 @@
1
+ export declare function ViewInternalData(ids: number[]): Promise<any[]>;
@@ -0,0 +1,14 @@
1
+ /**
2
+ *
3
+ * @param url this is the url of the image that you have. This image will be cached in the cache server
4
+ * @param format this is the format it can be either normal , small, by default it is normal
5
+ * @returns
6
+ */
7
+ export declare function GetFreeschemaImage(url: string, format?: string): Promise<any>;
8
+ /**
9
+ *
10
+ * @param url this is the url of the image that you have. This image will be cached in the cache server
11
+ * @param format this is the format it can be either normal , small, by default it is normal
12
+ * @returns
13
+ */
14
+ export declare function GetFreeschemaImageUrl(url: string, format?: string): string;
@@ -0,0 +1,7 @@
1
+ import { Concept, InnerActions } from "../../app";
2
+ export declare function CreateData(json: any, ofConcept?: Concept | null, typeConcept?: string, actions?: InnerActions): Promise<any>;
3
+ export declare function removePrefix(key: string): string;
4
+ export declare function addPrefix(key: string): string;
5
+ export declare function addArrayPrefix(key: string): string;
6
+ export declare function removeArrayPrefix(key: string): string;
7
+ export declare function createTypeString(typeConceptString: string, key: any): string;
@@ -0,0 +1 @@
1
+ export declare function requestNextCacheServer(requestData: any, url: string): Promise<Response>;
@@ -0,0 +1,3 @@
1
+ export declare const DATA_TYPES_RULES: {
2
+ [key: string]: RegExp;
3
+ };
@@ -0,0 +1,19 @@
1
+ export interface FormErrors {
2
+ [key: string]: {} | undefined;
3
+ }
4
+ export interface FormFieldData {
5
+ name: string | null;
6
+ value: string | null;
7
+ type?: string | null;
8
+ dataType?: string | null;
9
+ pattern?: string | null;
10
+ conceptType?: string | null;
11
+ maxLength?: number | null;
12
+ minLength?: number | null;
13
+ minValue?: number | null;
14
+ maxValue?: number | null;
15
+ accept?: string | null;
16
+ file?: File | null;
17
+ required?: boolean;
18
+ isUnique?: boolean;
19
+ }
@@ -0,0 +1,7 @@
1
+ import { FormFieldData } from "./interface";
2
+ /**
3
+ * Utility function to get input field data and attributes
4
+ * @param fieldName - The Name of the form field.
5
+ * @returns - An object containing the field's value and constraints (type, maxLength, etc.).
6
+ */
7
+ export declare const createFormFieldData: (fieldName: string) => FormFieldData;
@@ -0,0 +1,37 @@
1
+ import { FormErrors, FormFieldData } from "./interface";
2
+ export declare class Validator {
3
+ /**
4
+ * Checks if a concept with the given type and value is unique.
5
+ * @param type concept type where to check
6
+ * @param value value to check
7
+ * @returns boolean indicating uniqueness
8
+ */
9
+ checkUniqueness(type: string, value: string): Promise<boolean>;
10
+ /**
11
+ * Validates a single form field based on its constraints and uniqueness.
12
+ * @param options - An object containing field properties including name, value, type, and validation constraints.
13
+ * @returns An object containing validation errors if validation fails.
14
+ */
15
+ validateField(options: FormFieldData): Promise<{
16
+ [fieldName: string]: string;
17
+ }>;
18
+ /**
19
+ * Validates all form fields by iterating over the provided form data.
20
+ * It checks each field's value, data type, and constraints, collecting errors where necessary.
21
+ *
22
+ * @param formData - An object representing the form data, where each key is a field name
23
+ * and each value is an object containing the `value`, `dataType`, and constraints (e.g., `maxLength`, `minLength`).
24
+ *
25
+ * @returns An object containing validation errors for fields that failed validation.
26
+ * If no errors exist, the object will be empty.
27
+ */
28
+ validateForm(formData: {
29
+ [key: string]: FormFieldData;
30
+ }): Promise<FormErrors>;
31
+ /**
32
+ * Take field element attributes
33
+ * @param options Object conist of attributes
34
+ * @returns Object with status and details
35
+ */
36
+ validate(options: FormFieldData): any;
37
+ }
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Observable base class implementing the Observer pattern for reactive widgets.
3
+ *
4
+ * Provides data change notification system allowing subscribers to react to state updates.
5
+ */
6
+ export declare class BaseObserver {
7
+ /** Widget data that can be observed for changes */
8
+ data: any;
9
+ /** Flag to enable development mode features */
10
+ inDevelopment: boolean;
11
+ /** Array of callback functions subscribed to data changes */
12
+ subscribers: any;
13
+ /**
14
+ * Notifies all subscribers when data changes.
15
+ *
16
+ * @param passedData - Optional data to pass to subscribers. Uses this.data if not provided.
17
+ */
18
+ notify(passedData?: any): void;
19
+ /**
20
+ * Registers a callback function to be invoked on data changes.
21
+ *
22
+ * @param callback - Function to execute when data changes
23
+ */
24
+ dataChange(callback: any): void;
25
+ }
@@ -0,0 +1,37 @@
1
+ import { BaseObserver } from "./BaseObserver";
2
+ /**
3
+ * Base widget class providing core DOM element management and identification.
4
+ *
5
+ * Extends BaseObserver to provide reactive data capabilities along with fundamental
6
+ * widget element operations and unique identification.
7
+ */
8
+ export declare class BaseWidget extends BaseObserver {
9
+ /** The mounted DOM element wrapper for this widget */
10
+ element: HTMLElement | null;
11
+ /** Unique numeric identifier for this widget instance */
12
+ elementIdentifier: number;
13
+ /** Flag indicating whether the widget has been mounted to the DOM */
14
+ widgetMounted: boolean;
15
+ /**
16
+ * Gets the root component element of this widget.
17
+ *
18
+ * @returns The widget's root HTML element or null if not mounted
19
+ */
20
+ getComponent(): HTMLElement | null;
21
+ /**
22
+ * Finds an element by ID within this widget's scope.
23
+ *
24
+ * @param identifier - The element ID to search for (without '#' prefix)
25
+ * @returns The found HTML element or null if not found
26
+ */
27
+ getElementById(identifier: string): HTMLElement | null;
28
+ /**
29
+ * Generates a unique identifier for this widget's wrapper element.
30
+ *
31
+ * Creates a random number to uniquely identify the widget and its children
32
+ * from other widgets in the DOM.
33
+ *
34
+ * @returns The generated identifier as a string
35
+ */
36
+ createWidgetWrapperIdentifier(): string;
37
+ }
@@ -0,0 +1,11 @@
1
+ import { BuilderStatefulWidget } from "./BuilderStatefulWidget";
2
+ /**
3
+ * Opens the type editor interface for a widget in development mode.
4
+ *
5
+ * Creates an input field allowing developers to change the widget type
6
+ * dynamically. Updates the widget when type value changes.
7
+ *
8
+ * @param event - The click event that triggered the editor
9
+ * @param that - The BuilderStatefulWidget instance to edit
10
+ */
11
+ export declare function TypeEditor(event: any, that: BuilderStatefulWidget): void;