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,51 +0,0 @@
1
- import { DependencyObserver } from "./DepenedencyObserver";
2
- /**
3
- * Observable wrapper for retrieving a paginated list of compositions by type with automatic updates.
4
- */
5
- export declare class GetCompositionListObservable extends DependencyObserver {
6
- /** The composition type character name */
7
- compositionName: string;
8
- /** The user ID who owns the compositions */
9
- userId: number;
10
- /** Number of items per page */
11
- inpage: number;
12
- /** Current page number */
13
- page: number;
14
- /** List of composition data */
15
- data: any;
16
- /** Starting page index */
17
- startPage: number;
18
- /**
19
- * Creates a new composition list observable.
20
- * @param compositionName - The composition type name
21
- * @param userId - The user ID who owns the compositions
22
- * @param inpage - Number of items per page
23
- * @param page - Page number (1-indexed)
24
- * @param format - Output format (JUSTDATA, DATAID, NORMAL)
25
- */
26
- constructor(compositionName: string, userId: number, inpage: number, page: number, format: number);
27
- /**
28
- * Fetches paginated composition list and sets up change listeners.
29
- * @returns Array of formatted composition data
30
- */
31
- bind(): Promise<any>;
32
- /**
33
- * Builds the list of compositions in the specified format.
34
- * @returns Array of formatted composition data
35
- */
36
- build(): Promise<any>;
37
- }
38
- /**
39
- * Creates an observable that tracks a paginated list of compositions and updates subscribers when they change.
40
- * @param compositionName - The composition type name
41
- * @param userId - The user ID who owns the compositions
42
- * @param inpage - Number of items per page
43
- * @param page - Page number (1-indexed)
44
- * @param format - Output format (JUSTDATA, DATAID, NORMAL)
45
- * @returns Observable instance for the composition list
46
- *
47
- * @example
48
- * const observer = GetCompositionListListener("BlogPost", 123, 10, 1, JUSTDATA);
49
- * observer.subscribe((data) => console.log(data));
50
- */
51
- export declare function GetCompositionListListener(compositionName: string, userId: number, inpage: number, page: number, format?: number): GetCompositionListObservable;
@@ -1,35 +0,0 @@
1
- import { DependencyObserver } from "./DepenedencyObserver";
2
- /**
3
- * Observable wrapper for retrieving a composition with automatic updates when the composition changes.
4
- */
5
- export declare class GetCompositionObservable extends DependencyObserver {
6
- /** The composition ID to observe */
7
- id: number;
8
- /**
9
- * Creates a new composition observable.
10
- * @param id - The composition concept ID
11
- * @param format - Output format (JUSTDATA, DATAID, NORMAL)
12
- */
13
- constructor(id: number, format?: number);
14
- /**
15
- * Fetches composition data and sets up change listeners.
16
- * @returns The formatted composition data
17
- */
18
- bind(): Promise<any>;
19
- /**
20
- * Builds the composition data in the specified format.
21
- * @returns The formatted composition data
22
- */
23
- build(): Promise<any>;
24
- }
25
- /**
26
- * Creates an observable that tracks a composition and updates subscribers when it changes.
27
- * @param id - The composition concept ID to observe
28
- * @param format - Output format (JUSTDATA, DATAID, NORMAL)
29
- * @returns Observable instance for the composition
30
- *
31
- * @example
32
- * const observer = GetCompositionListener(123, JUSTDATA);
33
- * observer.subscribe((data) => console.log(data));
34
- */
35
- export declare function GetCompositionListener(id: number, format?: number): GetCompositionObservable;
@@ -1,57 +0,0 @@
1
- import { SearchQuery, SearchStructure } from "../app";
2
- import { DependencyObserver } from "./DepenedencyObserver";
3
- /**
4
- * Observable wrapper for searching linked concepts with complex query structures and automatic updates.
5
- */
6
- export declare class GetLinkListObservable extends DependencyObserver {
7
- /** Array of search query conditions */
8
- searchQuery: SearchQuery[];
9
- /** Search structure defining composition and linker types */
10
- searchStructure: SearchStructure;
11
- /** Output format */
12
- format: number;
13
- /** List of main composition IDs */
14
- mainCompositionIds: number[];
15
- /** Character value of the search composition */
16
- searchCharacter: string;
17
- /** Authentication token */
18
- token: string;
19
- /**
20
- * Creates a new link list observable.
21
- * @param searchStructure - Defines composition and linker types for the search
22
- * @param searchQuery - Array of query conditions to filter results
23
- * @param token - Authentication token
24
- * @param format - Output format (DATAID, NORMAL)
25
- */
26
- constructor(searchStructure: SearchStructure, searchQuery: SearchQuery[], token: string, format?: number);
27
- /**
28
- * Overrides base method to handle new compositions of the searched type being created.
29
- * @param id - The type concept ID to track
30
- */
31
- listenToEventType(id: number): void;
32
- /**
33
- * Executes the search query and sets up change listeners.
34
- * @returns Array of formatted search results
35
- */
36
- bind(): Promise<any>;
37
- /**
38
- * Builds the search results in the specified format.
39
- * @returns Array of formatted search results
40
- */
41
- build(): Promise<any>;
42
- }
43
- /**
44
- * Creates an observable that tracks search results with complex query conditions and updates subscribers when results change.
45
- * @param searchStructure - Defines composition and linker types for the search
46
- * @param searchQuery - Array of query conditions to filter results
47
- * @param token - Authentication token
48
- * @param format - Output format (DATAID, NORMAL)
49
- * @returns Observable instance for the search results
50
- *
51
- * @example
52
- * const structure = { composition: "BlogPost", linker: ["Author", "Category"] };
53
- * const queries = [{ type: "BlogPost", searchField: "title", searchText: "tutorial" }];
54
- * const observer = GetLinkListListener(structure, queries, token, DATAID);
55
- * observer.subscribe((results) => console.log(results));
56
- */
57
- export declare function GetLinkListListener(searchStructure: SearchStructure, searchQuery: SearchQuery[], token: string, format?: number): GetLinkListObservable;
@@ -1,50 +0,0 @@
1
- import { Connection } from "../app";
2
- import { DependencyObserver } from "./DepenedencyObserver";
3
- /**
4
- * Observable wrapper for retrieving linked concepts from a source concept with automatic updates.
5
- */
6
- export declare class GetLinkObservable extends DependencyObserver {
7
- /** The linker type name defining the relationship */
8
- linker: string;
9
- /** Number of items per page */
10
- inpage: number;
11
- /** Current page number */
12
- page: number;
13
- /** List of connection objects */
14
- connections: Connection[];
15
- /** Array of linked composition data */
16
- data: any;
17
- /**
18
- * Creates a new link observable.
19
- * @param id - The source concept ID whose links to retrieve
20
- * @param linker - The linker type name defining the relationship
21
- * @param inpage - Number of items per page
22
- * @param page - Page number (1-indexed)
23
- * @param format - Output format (NORMAL, DATAID, JUSTDATA, DATAIDDATE)
24
- */
25
- constructor(id: number, linker: string, inpage: number, page: number, format: number);
26
- /**
27
- * Fetches linked concepts and sets up change listeners.
28
- * @returns Array of linked composition data
29
- */
30
- bind(): Promise<any>;
31
- /**
32
- * Builds the array of linked compositions in the specified format.
33
- * @returns Array of formatted linked composition data
34
- */
35
- build(): Promise<any>;
36
- }
37
- /**
38
- * Creates an observable that tracks linked concepts and updates subscribers when links change.
39
- * @param id - The source concept ID whose links to retrieve
40
- * @param linker - The linker type name defining the relationship
41
- * @param inpage - Number of items per page
42
- * @param page - Page number (1-indexed)
43
- * @param format - Output format (NORMAL, DATAID, JUSTDATA, DATAIDDATE)
44
- * @returns Observable instance for the linked concepts
45
- *
46
- * @example
47
- * const observer = GetLinkListener(123, "Author", 10, 1, NORMAL);
48
- * observer.subscribe((linkedData) => console.log(linkedData));
49
- */
50
- export declare function GetLinkListener(id: number, linker: string, inpage: number, page: number, format?: number): GetLinkObservable;
@@ -1,107 +0,0 @@
1
- /**
2
- * QueryCacheManager — In-memory cache with IndexedDB persistence for freeschema query results.
3
- *
4
- * Architecture:
5
- * - **Reads** (`get`) are synchronous from an in-memory Map — no async overhead.
6
- * - **Writes** (`set`) update the Map immediately, then persist to IndexedDB
7
- * in the background (fire-and-forget). Also dispatches a CustomEvent so
8
- * active subscribers (SchemaQueryObservable) can re-render with fresh data.
9
- * - **On startup**, `init()` loads all persisted query results from IndexedDB
10
- * into the Map so cached data is available from the very first read.
11
- *
12
- * This gives us the speed of in-memory access with the durability of IndexedDB
13
- * (no 5 MB localStorage limit, survives page reloads).
14
- *
15
- * The stale-while-revalidate flow in FreeschemaQueryApi:
16
- * 1. `get(hash)` returns cached data synchronously from memory
17
- * 2. Caller returns cached data to UI immediately
18
- * 3. Background fetch gets fresh data from API
19
- * 4. `set(hash, fresh)` updates memory + IndexedDB + fires CustomEvent
20
- * 5. Subscribers pick up the event and re-render with fresh data
21
- */
22
- export declare class QueryCacheManager {
23
- /** Prefix for CustomEvent names — ensures no collision with other window events */
24
- private static prefix;
25
- /** In-memory cache: hash → query result data */
26
- private static cacheMap;
27
- /**
28
- * Loads all persisted query cache data from IndexedDB into memory.
29
- * Call this once during app initialization (handled automatically by `init()`).
30
- * Safe to call multiple times — just overwrites the Map.
31
- *
32
- * Skips entirely when `Environments.getValue('enableCache', true)` is `false`,
33
- * which is set by the `enableCache` parameter passed to `init()`.
34
- */
35
- static init(): Promise<void>;
36
- /**
37
- * Computes a SHA-256 hash of a query object for use as a cache key.
38
- *
39
- * The query is canonicalized by recursively sorting all object keys before
40
- * hashing, so that `{a:1, b:2}` and `{b:2, a:1}` produce the same hash.
41
- *
42
- * @param query - The freeschema query object to hash
43
- * @returns Hex-encoded SHA-256 hash string
44
- */
45
- static getHash(query: any): Promise<string>;
46
- /**
47
- * Retrieves cached query results by hash key (synchronous, from memory).
48
- *
49
- * Returns `null` immediately when `Environments.getValue('enableCache', true)` is `false`,
50
- * causing `FreeschemaQueryApi` to fall through to a live backend fetch.
51
- *
52
- * @param hash - The SHA-256 hash of the query (from getHash)
53
- * @returns The cached result data, or null if not found or cache is disabled
54
- */
55
- static get(hash: string): any | null;
56
- /**
57
- * Stores query results in memory, persists to IndexedDB, and notifies subscribers.
58
- *
59
- * Includes a deduplication guard: if the new data serializes identically to
60
- * what's already in memory, the write and event dispatch are both skipped.
61
- * This prevents infinite revalidation loops (set → event → fetch → set → ...).
62
- *
63
- * No-ops entirely when `Environments.getValue('enableCache', true)` is `false`
64
- * so neither memory nor IndexedDB is written to.
65
- *
66
- * @param hash - The SHA-256 hash key for this query
67
- * @param data - The query result data to cache
68
- */
69
- static set(hash: string, data: any): void;
70
- /**
71
- * Subscribes to cache updates for a specific query hash.
72
- *
73
- * Uses window CustomEvents (synchronous, in-memory) so subscribers are
74
- * notified immediately when `set()` is called — no IndexedDB polling needed.
75
- *
76
- * @param hash - The query hash to listen for updates on
77
- * @param callback - Function called with the fresh data when cache is updated
78
- * @returns An unsubscribe function — call it to stop listening
79
- */
80
- static subscribe(hash: string, callback: (data: any) => void): () => void;
81
- /**
82
- * Removes a single cached query result from memory and IndexedDB.
83
- * @param hash - The query hash key to remove
84
- */
85
- static remove(hash: string): void;
86
- /**
87
- * Clears all cached query results from memory and IndexedDB.
88
- * Useful for cache invalidation on logout or environment switch.
89
- */
90
- static clearAll(): void;
91
- }
92
- /**
93
- * Computes a deterministic SHA-256 hash of any JSON-serializable object.
94
- *
95
- * To ensure that semantically identical objects always produce the same hash
96
- * regardless of property insertion order, all object keys are recursively sorted
97
- * before serialization. Arrays maintain their order (only object keys are sorted).
98
- *
99
- * @param obj - Any JSON-serializable value (object, array, string, number, etc.)
100
- * @returns Hex-encoded SHA-256 hash string (64 characters)
101
- *
102
- * @example
103
- * // These produce the same hash:
104
- * await hashJsonObject({ a: 1, b: 2 });
105
- * await hashJsonObject({ b: 2, a: 1 });
106
- */
107
- export declare function hashJsonObject(obj: any): Promise<string>;
@@ -1,55 +0,0 @@
1
- import { Connection, DependencyObserver } from "../app";
2
- /**
3
- * Observable wrapper for recursive multi-level searches following linker paths with automatic updates.
4
- */
5
- declare class RecursiveSearchObservable extends DependencyObserver {
6
- /** Array of linker type names defining the search path */
7
- searchLinkers: string[];
8
- /** Search text placeholder */
9
- searchText: string;
10
- /** Text to search for in linked concepts */
11
- textSearch: string;
12
- /** List of connection objects */
13
- connections: Connection[];
14
- /** List of external (linker) connection IDs */
15
- externalConnectionIds: number[];
16
- /** Search result data */
17
- data: any;
18
- /**
19
- * Creates a new recursive search observable.
20
- * @param id - The starting concept ID for the recursive search
21
- * @param linkers - Array of linker type names defining the traversal path
22
- * @param textSearch - Optional text to search for in linked concepts
23
- * @param format - Output format (RAW for raw IDs, undefined for formatted compositions)
24
- */
25
- constructor(id: number, linkers: string[], textSearch?: string, format?: number);
26
- /**
27
- * Overrides base method to track connection changes for concepts in the search results.
28
- * @param id - The concept ID to track
29
- */
30
- listenToEvent(id: number): void;
31
- /**
32
- * Executes recursive search and sets up change listeners for all found compositions.
33
- * @returns Formatted search results or raw ID structure
34
- */
35
- bind(): Promise<any>;
36
- /**
37
- * Builds the search results in the specified format.
38
- * @returns Formatted composition data or raw ID structure
39
- */
40
- build(): Promise<any>;
41
- }
42
- /**
43
- * Creates an observable that performs recursive multi-level searches and updates subscribers when results change.
44
- * @param id - The starting concept ID for the recursive search
45
- * @param linkers - Array of linker type names defining the traversal path
46
- * @param searchText - Optional text to search for in linked concepts
47
- * @param format - Output format (RAW for raw IDs, undefined for formatted compositions)
48
- * @returns Observable instance for the recursive search
49
- *
50
- * @example
51
- * const observer = RecursiveSearchListener(123, ["Author", "Category"], "tutorial", RAW);
52
- * observer.subscribe((results) => console.log(results));
53
- */
54
- export declare function RecursiveSearchListener(id: number, linkers: string[], searchText?: string, format?: number): RecursiveSearchObservable;
55
- export {};
@@ -1,60 +0,0 @@
1
- import { FreeschemaQuery } from "../app";
2
- import { DependencyObserver } from "./DepenedencyObserver";
3
- /**
4
- * Observable wrapper for executing free-schema queries with automatic updates.
5
- * Supports complex filtering, sorting, and pagination with multiple output formats.
6
- */
7
- export declare class SearchLinkMultipleAllObservable extends DependencyObserver {
8
- /** The free-schema query object containing all search parameters */
9
- query: FreeschemaQuery;
10
- /** Encoded count information strings */
11
- countInfoStrings: string[];
12
- /** Sort order for results */
13
- order: string;
14
- /** Total count of matching results */
15
- totalCount: number;
16
- /** Cleanup function for cache subscription */
17
- private unsubscribeCache;
18
- /**
19
- * Creates a new schema query observable.
20
- * @param query - FreeschemaQuery object with search parameters
21
- * @param token - Authentication token
22
- */
23
- constructor(query: FreeschemaQuery, token: string);
24
- /**
25
- * Executes the query once without subscribing to updates.
26
- * @returns Formatted query results
27
- */
28
- run(): Promise<any>;
29
- /**
30
- * Executes the query and sets up change listeners for all matching compositions.
31
- * @returns Formatted query results
32
- */
33
- bind(): Promise<any>;
34
- /**
35
- * Builds the query results in the specified format.
36
- * @returns Formatted query results based on the output format
37
- */
38
- build(): Promise<any>;
39
- }
40
- /**
41
- * Creates an observable that executes a free-schema query and updates subscribers when results change.
42
- * @param query - FreeschemaQuery object with search, filter, sort, and pagination parameters
43
- * @param token - Authentication token
44
- * @returns Observable instance for the query results
45
- *
46
- * @example
47
- * const query = new FreeschemaQuery();
48
- * query.type = "BlogPost";
49
- * query.outputFormat = DATAID;
50
- * const observer = SchemaQueryListener(query, token);
51
- * observer.subscribe((results) => console.log(results));
52
- */
53
- export declare function SchemaQueryListener(query: FreeschemaQuery, token: string): SearchLinkMultipleAllObservable;
54
- /**
55
- * Executes a free-schema query once without creating a subscription.
56
- * @param query - FreeschemaQuery object with search parameters
57
- * @param token - Authentication token
58
- * @returns Promise resolving to formatted query results
59
- */
60
- export declare function SchemaQuery(query: FreeschemaQuery, token: string): Promise<void>;
@@ -1,36 +0,0 @@
1
- import { SearchQuery } from "../app";
2
- import { DependencyObserver } from "./DepenedencyObserver";
3
- /**
4
- * Observable wrapper for executing multiple search queries with automatic updates.
5
- */
6
- export declare class SearchLinkMultipleAllObservable extends DependencyObserver {
7
- /** Array of search query conditions */
8
- searchQuery: SearchQuery[];
9
- /** Output format */
10
- format: number;
11
- /**
12
- * Creates a new multi-search observable.
13
- * @param searchQuery - Array of SearchQuery objects defining search conditions
14
- * @param token - Authentication token
15
- * @param format - Output format (DATAID by default)
16
- */
17
- constructor(searchQuery: SearchQuery[], token: string, format?: number);
18
- /**
19
- * Executes the search queries and sets up change listeners.
20
- * @returns Formatted search results
21
- */
22
- bind(): Promise<any>;
23
- }
24
- /**
25
- * Creates an observable that executes multiple search queries and updates subscribers when results change.
26
- * @param searchQueries - Array of SearchQuery objects defining search conditions
27
- * @param token - Authentication token
28
- * @param format - Output format (DATAID by default)
29
- * @returns Observable instance for the search results
30
- *
31
- * @example
32
- * const queries = [{ composition: 123, type: "BlogPost", searchField: "title", searchText: "tutorial" }];
33
- * const observer = searchLinkMultipleListener(queries, token, DATAID);
34
- * observer.subscribe((results) => console.log(results));
35
- */
36
- export declare function searchLinkMultipleListener(searchQueries: SearchQuery[], token?: string, format?: number): SearchLinkMultipleAllObservable;