mftsccs-node 0.2.6 → 0.2.8

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 (287) hide show
  1. package/README.md +1148 -11
  2. package/dist/bundle.js +1 -1
  3. package/dist/types/Api/Create/CreateTheCharacter.d.ts +42 -0
  4. package/dist/types/Api/Create/CreateTheConceptApi.d.ts +50 -0
  5. package/dist/types/Api/Create/CreateTheConnectionApi.d.ts +51 -0
  6. package/dist/types/Api/Create/CreateTheTextData.d.ts +56 -0
  7. package/dist/types/Api/Delete/DeleteConceptInBackend.d.ts +43 -0
  8. package/dist/types/Api/DeleteConnectionApiBulk.d.ts +55 -0
  9. package/dist/types/Api/DeleteTheConcept.d.ts +64 -0
  10. package/dist/types/Api/DeleteTheConnection.d.ts +76 -0
  11. package/dist/types/Api/GetAiData.d.ts +36 -0
  12. package/dist/types/Api/GetAllConcepts.d.ts +42 -0
  13. package/dist/types/Api/GetAllConceptsByType.d.ts +45 -0
  14. package/dist/types/Api/GetAllConnections.d.ts +48 -0
  15. package/dist/types/Api/GetAllConnectionsOfComposition.d.ts +79 -0
  16. package/dist/types/Api/GetAllConnectionsOfCompositionBulk.d.ts +90 -0
  17. package/dist/types/Api/GetAllLinkerConnectionsFromTheConcept.d.ts +52 -0
  18. package/dist/types/Api/GetAllLinkerConnectionsToTheConcept.d.ts +61 -0
  19. package/dist/types/Api/GetAllPrefetchConnections.d.ts +51 -0
  20. package/dist/types/Api/GetCharacterDataByCharacter.d.ts +31 -0
  21. package/dist/types/Api/GetCompositionConnectionsBetweenTwoConcepts.d.ts +39 -0
  22. package/dist/types/Api/GetConcept.d.ts +47 -0
  23. package/dist/types/Api/GetConceptBulk.d.ts +68 -0
  24. package/dist/types/Api/GetConceptByCharacterAndType.d.ts +75 -0
  25. package/dist/types/Api/GetConceptByCharacterValue.d.ts +47 -0
  26. package/dist/types/Api/GetConnection.d.ts +49 -0
  27. package/dist/types/Api/GetConnectionBulk.d.ts +46 -0
  28. package/dist/types/Api/GetConnectionOfTheConcept.d.ts +50 -0
  29. package/dist/types/Api/GetConnectionToTheConcept.d.ts +56 -0
  30. package/dist/types/Api/GetReservedConnectionIds.d.ts +36 -0
  31. package/dist/types/Api/GetReservedIds.d.ts +37 -0
  32. package/dist/types/Api/Login.d.ts +38 -0
  33. package/dist/types/Api/MakeTheNameInBackend.d.ts +39 -0
  34. package/dist/types/Api/MakeTheTypeConceptApi.d.ts +40 -0
  35. package/dist/types/Api/RecursiveSearch.d.ts +43 -0
  36. package/dist/types/Api/Search/FreeschemaQueryApi.d.ts +46 -0
  37. package/dist/types/Api/Search/Search.d.ts +67 -0
  38. package/dist/types/Api/Search/SearchInternalApi.d.ts +69 -0
  39. package/dist/types/Api/Search/SearchLinkMultipleApi.d.ts +90 -0
  40. package/dist/types/Api/Search/SearchWithLinker.d.ts +97 -0
  41. package/dist/types/Api/SearchConcept/GetConceptByCharacterAndCategoryApi.d.ts +39 -0
  42. package/dist/types/Api/SearchConcept/GetConceptByCharacterAndCategoryDirect.d.ts +47 -0
  43. package/dist/types/Api/Session/CreateSession.d.ts +45 -0
  44. package/dist/types/Api/Session/CreateSessionVisit.d.ts +43 -0
  45. package/dist/types/Api/Signin.d.ts +48 -0
  46. package/dist/types/Api/Signup.d.ts +44 -0
  47. package/dist/types/Api/View/ViewInternalDataApi.d.ts +50 -0
  48. package/dist/types/Constants/ApiConstants.d.ts +226 -0
  49. package/dist/types/Constants/FormatConstants.d.ts +81 -0
  50. package/dist/types/DataStructures/BaseUrl.d.ts +210 -0
  51. package/dist/types/DataStructures/BinaryCharacterTree.d.ts +211 -0
  52. package/dist/types/DataStructures/BinaryTree.d.ts +139 -0
  53. package/dist/types/DataStructures/BinaryTypeTree.d.ts +196 -0
  54. package/dist/types/DataStructures/CharacterRepository.d.ts +109 -0
  55. package/dist/types/DataStructures/Composition/Composition.d.ts +103 -0
  56. package/dist/types/DataStructures/Composition/CompositionBinaryTree.d.ts +104 -0
  57. package/dist/types/DataStructures/Composition/CompositionNode.d.ts +202 -0
  58. package/dist/types/DataStructures/Concept.d.ts +110 -0
  59. package/dist/types/DataStructures/ConceptData.d.ts +292 -0
  60. package/dist/types/DataStructures/ConceptsToDraw.d.ts +168 -0
  61. package/dist/types/DataStructures/Connection.d.ts +76 -0
  62. package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionBinaryTree.d.ts +115 -0
  63. package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionNode.d.ts +169 -0
  64. package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionTypeTree.d.ts +82 -0
  65. package/dist/types/DataStructures/ConnectionData.d.ts +191 -0
  66. package/dist/types/DataStructures/Count/CountInfo.d.ts +73 -0
  67. package/dist/types/DataStructures/FilterSearch.d.ts +84 -0
  68. package/dist/types/DataStructures/IdentifierFlags.d.ts +34 -0
  69. package/dist/types/DataStructures/Local/LConcept.d.ts +105 -0
  70. package/dist/types/DataStructures/Local/LConnection.d.ts +83 -0
  71. package/dist/types/DataStructures/Local/LNode.d.ts +190 -0
  72. package/dist/types/DataStructures/Local/LocalBinaryCharacterTree.d.ts +133 -0
  73. package/dist/types/DataStructures/Local/LocalBinaryTree.d.ts +135 -0
  74. package/dist/types/DataStructures/Local/LocalBinaryTypeTree.d.ts +147 -0
  75. package/dist/types/DataStructures/Local/LocalConceptData.d.ts +100 -0
  76. package/dist/types/DataStructures/Local/LocalConnectionData.d.ts +109 -0
  77. package/dist/types/DataStructures/Local/LocalSyncData.d.ts +89 -0
  78. package/dist/types/DataStructures/PatcherStructure.d.ts +86 -0
  79. package/dist/types/DataStructures/ReferentInfo.d.ts +68 -0
  80. package/dist/types/DataStructures/ReservedIds.d.ts +101 -0
  81. package/dist/types/DataStructures/Responses/ErrorResponse.d.ts +184 -22
  82. package/dist/types/DataStructures/Responses/StandardResponses.d.ts +65 -0
  83. package/dist/types/DataStructures/Returner.d.ts +59 -0
  84. package/dist/types/DataStructures/Search/FreeschemaQuery.d.ts +165 -0
  85. package/dist/types/DataStructures/Search/SearchStructure.d.ts +69 -0
  86. package/dist/types/DataStructures/SearchQuery.d.ts +130 -0
  87. package/dist/types/DataStructures/Security/TokenStorage.d.ts +48 -0
  88. package/dist/types/DataStructures/Session/SessionData.d.ts +118 -0
  89. package/dist/types/DataStructures/SettingData.d.ts +32 -0
  90. package/dist/types/DataStructures/Settings.d.ts +27 -0
  91. package/dist/types/DataStructures/SigninModel.d.ts +50 -0
  92. package/dist/types/DataStructures/SignupModel.d.ts +50 -0
  93. package/dist/types/DataStructures/SyncData.d.ts +206 -0
  94. package/dist/types/DataStructures/TheCharacter.d.ts +87 -0
  95. package/dist/types/DataStructures/TheTexts.d.ts +92 -0
  96. package/dist/types/DataStructures/Transaction/Transaction.d.ts +294 -4
  97. package/dist/types/DataStructures/User/UserBinaryTree.d.ts +117 -0
  98. package/dist/types/DataStructures/User/UserNode.d.ts +130 -0
  99. package/dist/types/Database/GetConceptFromIndexDb.d.ts +9 -0
  100. package/dist/types/Database/NoIndexDb.d.ts +169 -0
  101. package/dist/types/Database/indexdblocal.d.ts +42 -0
  102. package/dist/types/Database/indexeddb.d.ts +43 -0
  103. package/dist/types/Drawing/ConceptDraw.d.ts +28 -0
  104. package/dist/types/Drawing/ConceptEvents.d.ts +46 -0
  105. package/dist/types/Helpers/CheckIfExists.d.ts +159 -0
  106. package/dist/types/Helpers/RemoveFromArray.d.ts +66 -0
  107. package/dist/types/Helpers/UniqueInsert.d.ts +28 -0
  108. package/dist/types/Services/CheckForConnectionDeletion.d.ts +190 -0
  109. package/dist/types/Services/Common/DecodeCountInfo.d.ts +54 -0
  110. package/dist/types/Services/Common/ErrorPosting.d.ts +49 -0
  111. package/dist/types/Services/Common/RegexFunction.d.ts +28 -0
  112. package/dist/types/Services/Composition/BuildComposition.d.ts +37 -0
  113. package/dist/types/Services/Composition/CompositionCache.d.ts +89 -0
  114. package/dist/types/Services/Composition/CreateCompositionCache.d.ts +43 -0
  115. package/dist/types/Services/Conversion/ConvertConcepts.d.ts +83 -0
  116. package/dist/types/Services/CreateBinaryTreeFromData.d.ts +38 -0
  117. package/dist/types/Services/CreateCharacterBinaryTreeFromData.d.ts +42 -0
  118. package/dist/types/Services/CreateConnectionBetweenTwoConcepts.d.ts +206 -0
  119. package/dist/types/Services/CreateDefaultConcept.d.ts +114 -0
  120. package/dist/types/Services/CreateTheComposition.d.ts +101 -0
  121. package/dist/types/Services/CreateTheConcept.d.ts +179 -0
  122. package/dist/types/Services/CreateTheConnection.d.ts +59 -0
  123. package/dist/types/Services/CreateTheConnectionGeneral.d.ts +127 -0
  124. package/dist/types/Services/CreateTypeTreeFromData.d.ts +43 -0
  125. package/dist/types/Services/Delete/DeleteConnectionByType.d.ts +52 -5
  126. package/dist/types/Services/Delete/GetAllConnectionByType.d.ts +57 -9
  127. package/dist/types/Services/DeleteConcept.d.ts +136 -0
  128. package/dist/types/Services/DeleteConnection.d.ts +194 -0
  129. package/dist/types/Services/FindConeceptsFromConnection.d.ts +179 -0
  130. package/dist/types/Services/FindConnectionsOfCompositionBulkInMemory.d.ts +157 -0
  131. package/dist/types/Services/GenerateHexNumber.d.ts +64 -0
  132. package/dist/types/Services/GetComposition.d.ts +331 -0
  133. package/dist/types/Services/GetCompositionBulk.d.ts +251 -3
  134. package/dist/types/Services/GetCompositionList.d.ts +130 -0
  135. package/dist/types/Services/GetConceptByCharacter.d.ts +84 -0
  136. package/dist/types/Services/GetConnections.d.ts +72 -0
  137. package/dist/types/Services/GetDataFromIndexDb.d.ts +79 -0
  138. package/dist/types/Services/GetLink.d.ts +104 -0
  139. package/dist/types/Services/GetLinkerConnectionFromConcept.d.ts +99 -0
  140. package/dist/types/Services/GetMaximumConnectionSyncTime.d.ts +57 -0
  141. package/dist/types/Services/GetRelation.d.ts +162 -0
  142. package/dist/types/Services/GetTheConcept.d.ts +71 -0
  143. package/dist/types/Services/GetTheReferent.d.ts +74 -0
  144. package/dist/types/Services/InitializeSystem.d.ts +119 -0
  145. package/dist/types/Services/Local/CreateDefaultLConcept.d.ts +48 -0
  146. package/dist/types/Services/Local/CreateLocalBinaryTreeFromData.d.ts +49 -0
  147. package/dist/types/Services/Local/CreateLocalBinaryTypeTreeFromData.d.ts +54 -0
  148. package/dist/types/Services/Local/CreateLocalCharacterBinaryTree.d.ts +60 -0
  149. package/dist/types/Services/Local/CreateTheCompositionLocal.d.ts +70 -0
  150. package/dist/types/Services/Local/CreateTheConceptLocal.d.ts +58 -0
  151. package/dist/types/Services/Local/CreateTheConnectionLocal.d.ts +56 -0
  152. package/dist/types/Services/Local/GetCompositionListLocal.d.ts +103 -0
  153. package/dist/types/Services/Local/GetCompositionLocal.d.ts +96 -0
  154. package/dist/types/Services/Local/GetConceptByCharacterLocal.d.ts +57 -0
  155. package/dist/types/Services/Local/MakeTheConceptLocal.d.ts +71 -0
  156. package/dist/types/Services/Local/MakeTheInstanceConceptLocal.d.ts +89 -0
  157. package/dist/types/Services/Local/MakeTheTypeLocal.d.ts +71 -0
  158. package/dist/types/Services/Local/UpdateCompositionLocal.d.ts +101 -0
  159. package/dist/types/Services/MakeTheCharacter.d.ts +74 -0
  160. package/dist/types/Services/MakeTheCharacterData.d.ts +65 -0
  161. package/dist/types/Services/MakeTheInstanceConcept.d.ts +75 -0
  162. package/dist/types/Services/MakeTheName.d.ts +81 -0
  163. package/dist/types/Services/MakeTheTimestamp.d.ts +68 -0
  164. package/dist/types/Services/MakeTheTypeConcept.d.ts +68 -0
  165. package/dist/types/Services/Mqtt/publishMessage.d.ts +27 -0
  166. package/dist/types/Services/Mqtt/subscribeMessage.d.ts +23 -0
  167. package/dist/types/Services/PatchComposition.d.ts +105 -0
  168. package/dist/types/Services/Search/DataIdFormat.d.ts +96 -24
  169. package/dist/types/Services/Search/FormatData.d.ts +92 -17
  170. package/dist/types/Services/Search/JustIdFormat.d.ts +91 -16
  171. package/dist/types/Services/Search/SearchLinkInternal.d.ts +28 -0
  172. package/dist/types/Services/Search/SearchLinkMultiple.d.ts +58 -0
  173. package/dist/types/Services/Search/SearchWithTypeAndLinker.d.ts +92 -24
  174. package/dist/types/Services/Search/orderingConnections.d.ts +34 -0
  175. package/dist/types/Services/SplitStrings.d.ts +50 -0
  176. package/dist/types/Services/UpdateComposition.d.ts +123 -0
  177. package/dist/types/Services/User/UserTranslation.d.ts +102 -0
  178. package/dist/types/Services/View/ViewInternalData.d.ts +32 -0
  179. package/dist/types/WrapperFunctions/SchemaQueryObservable.d.ts +140 -5
  180. package/dist/types/app.d.ts +72 -1
  181. package/package.json +1 -1
  182. package/dist/main.bundle.js +0 -2
  183. package/dist/main.bundle.js.LICENSE.txt +0 -1
  184. package/dist/serviceWorker.bundle.js +0 -2
  185. package/dist/serviceWorker.bundle.js.LICENSE.txt +0 -1
  186. package/dist/types/AccessTracker/accessTracker.d.ts +0 -67
  187. package/dist/types/Anomaly/anomaly.d.ts +0 -103
  188. package/dist/types/Api/Create/CreateTheGhostConceptApi.d.ts +0 -3
  189. package/dist/types/Api/Create/CreateTheGhostConnectionApi.d.ts +0 -2
  190. package/dist/types/Api/Delete/DeleteUserInBackend.d.ts +0 -1
  191. package/dist/types/Api/DeleteConnectionBulkApi.d.ts +0 -1
  192. package/dist/types/Api/GetConnections/GetConnectionsByTypeApi.d.ts +0 -3
  193. package/dist/types/Api/Images/GetImages.d.ts +0 -1
  194. package/dist/types/Api/Local/GetLocalConceptByCharacterValue.d.ts +0 -2
  195. package/dist/types/Api/Prototype/CreatePrototype.d.ts +0 -2
  196. package/dist/types/Api/Prototype/Selector.d.ts +0 -15
  197. package/dist/types/Api/Search/SearchWithTypeAndLinker.d.ts +0 -2
  198. package/dist/types/Api/SearchConcept/GetTypeConceptByBulk.d.ts +0 -2
  199. package/dist/types/Api/Translate/TranslateLocalToReal.d.ts +0 -2
  200. package/dist/types/Constants/AccessConstants.d.ts +0 -3
  201. package/dist/types/Constants/ckeditorCSS.d.ts +0 -1
  202. package/dist/types/Constants/general.const.d.ts +0 -6
  203. package/dist/types/Constants/page.const.d.ts +0 -5
  204. package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionOfNode.d.ts +0 -10
  205. package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionOfTheTree.d.ts +0 -24
  206. package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionTypeNode.d.ts +0 -10
  207. package/dist/types/DataStructures/ConnectionBinaryTree/NodePrimitive.d.ts +0 -15
  208. package/dist/types/DataStructures/ConnectionByType/GetConnectionByType.d.ts +0 -4
  209. package/dist/types/DataStructures/Local/LocalGhostIdTree.d.ts +0 -11
  210. package/dist/types/DataStructures/Local/LocalId.d.ts +0 -19
  211. package/dist/types/DataStructures/Prototype/Prototype.d.ts +0 -19
  212. package/dist/types/DataStructures/Prototype/PrototypeOption.d.ts +0 -4
  213. package/dist/types/DataStructures/Prototype/QuerySelector.d.ts +0 -4
  214. package/dist/types/DataStructures/TypeLibrary.d.ts +0 -19
  215. package/dist/types/DataStructures/TypeNode.d.ts +0 -18
  216. package/dist/types/DataStructures/WidgetCache/WidgetCache.d.ts +0 -10
  217. package/dist/types/DataStructures/WidgetCache/WidgetDetails.d.ts +0 -9
  218. package/dist/types/DataStructures/WidgetCache/WidgetNode.d.ts +0 -18
  219. package/dist/types/Database/IndexUpdate.d.ts +0 -47
  220. package/dist/types/Middleware/ApplicationMonitor.d.ts +0 -14
  221. package/dist/types/Middleware/ErrorHandling.d.ts +0 -0
  222. package/dist/types/Middleware/logger.service.d.ts +0 -144
  223. package/dist/types/ServiceWorker/actions/connectionActions.d.ts +0 -2
  224. package/dist/types/ServiceWorker/actions/createActions.d.ts +0 -2
  225. package/dist/types/ServiceWorker/actions/deleteActions.d.ts +0 -2
  226. package/dist/types/ServiceWorker/actions/getActions.d.ts +0 -2
  227. package/dist/types/ServiceWorker/actions/index.d.ts +0 -15
  228. package/dist/types/ServiceWorker/actions/searchActions.d.ts +0 -2
  229. package/dist/types/ServiceWorker/actions/syncActions.d.ts +0 -2
  230. package/dist/types/ServiceWorker/actions/updateActions.d.ts +0 -2
  231. package/dist/types/ServiceWorker/index.d.ts +0 -11
  232. package/dist/types/Services/AccessControl/AccessControl.d.ts +0 -218
  233. package/dist/types/Services/Common/DelayFunction.d.ts +0 -7
  234. package/dist/types/Services/Common/MergeArrays.d.ts +0 -7
  235. package/dist/types/Services/Common/RemoveAllChild.d.ts +0 -1
  236. package/dist/types/Services/CreateConnection/CreateConnectionEntity.d.ts +0 -2
  237. package/dist/types/Services/DeleteConnectionByType.d.ts +0 -22
  238. package/dist/types/Services/GetConnectionBetweenTwoConceptsLinker.d.ts +0 -11
  239. package/dist/types/Services/Local/ConvertFromLConceptToConcept.d.ts +0 -2
  240. package/dist/types/Services/Local/ConvertFromLConnectionToConnection.d.ts +0 -2
  241. package/dist/types/Services/Local/CreateConnectionBetweenTwoConceptsLocal.d.ts +0 -3
  242. package/dist/types/Services/Local/DeleteConceptLocal.d.ts +0 -1
  243. package/dist/types/Services/Local/GetConnectionOfTheConceptLocal.d.ts +0 -2
  244. package/dist/types/Services/Local/GetRelationLocal.d.ts +0 -1
  245. package/dist/types/Services/Local/GetTheConceptLocal.d.ts +0 -9
  246. package/dist/types/Services/Logs/LogEvent.d.ts +0 -1
  247. package/dist/types/Services/Mail.d.ts +0 -18
  248. package/dist/types/Services/Transaction/LocalTransaction.d.ts +0 -45
  249. package/dist/types/Services/Upload.d.ts +0 -33
  250. package/dist/types/Services/User/UserFromLocalStorage.d.ts +0 -6
  251. package/dist/types/Services/assets/GetImageService.d.ts +0 -14
  252. package/dist/types/Services/automated/automated-concept-connection.d.ts +0 -7
  253. package/dist/types/Services/cacheService.d.ts +0 -1
  254. package/dist/types/Validator/constant.d.ts +0 -3
  255. package/dist/types/Validator/interface.d.ts +0 -19
  256. package/dist/types/Validator/utils.d.ts +0 -7
  257. package/dist/types/Validator/validator.d.ts +0 -37
  258. package/dist/types/Visualize/ConceptCircle.d.ts +0 -35
  259. package/dist/types/Visualize/ConceptCircleList.d.ts +0 -9
  260. package/dist/types/Visualize/ConnectionLine.d.ts +0 -21
  261. package/dist/types/Visualize/ConnectionLineList.d.ts +0 -6
  262. package/dist/types/Visualize/drawExistingConcepts.d.ts +0 -8
  263. package/dist/types/Visualize/helper.d.ts +0 -15
  264. package/dist/types/Visualize/index.d.ts +0 -0
  265. package/dist/types/Widgets/BaseObserver.d.ts +0 -22
  266. package/dist/types/Widgets/BaseWidget.d.ts +0 -24
  267. package/dist/types/Widgets/BuilderSpeceficFunctions.d.ts +0 -2
  268. package/dist/types/Widgets/BuilderStatefulWidget.d.ts +0 -42
  269. package/dist/types/Widgets/CacheWidget.service.d.ts +0 -17
  270. package/dist/types/Widgets/NormalizeStyles.service.d.ts +0 -1
  271. package/dist/types/Widgets/RenderPage.service.d.ts +0 -12
  272. package/dist/types/Widgets/RenderWidgetLibrary.service.d.ts +0 -14
  273. package/dist/types/Widgets/RenderWidgetService.d.ts +0 -50
  274. package/dist/types/Widgets/StatefulWidget.d.ts +0 -102
  275. package/dist/types/Widgets/WidgetBuild.d.ts +0 -4
  276. package/dist/types/Widgets/WidgetTree.d.ts +0 -29
  277. package/dist/types/Widgets/mainView.class.d.ts +0 -6
  278. package/dist/types/WrapperFunctions/DepenedencyObserver.d.ts +0 -73
  279. package/dist/types/WrapperFunctions/GetCompositionListObservable.d.ts +0 -19
  280. package/dist/types/WrapperFunctions/GetCompositionObservable.d.ts +0 -13
  281. package/dist/types/WrapperFunctions/GetLinkListObservable.d.ts +0 -28
  282. package/dist/types/WrapperFunctions/GetLinkObservable.d.ts +0 -32
  283. package/dist/types/WrapperFunctions/RecursiveSearchObservable.d.ts +0 -37
  284. package/dist/types/WrapperFunctions/SearchLinkMultipleAllObservable.d.ts +0 -15
  285. package/dist/types/prototype/getPrototype.service.d.ts +0 -2
  286. package/dist/types/prototype/prototype.service.d.ts +0 -25
  287. package/dist/types/service-worker.d.ts +0 -1
@@ -1,6 +1,71 @@
1
+ /**
2
+ * @fileoverview Defines the FreeschemaResponse interface for standardized API responses.
3
+ * @module DataStructures/Responses/StandardResponses
4
+ */
5
+ /**
6
+ * Represents a standardized response structure for Freeschema API operations.
7
+ * This interface provides a consistent format for all API responses, including
8
+ * success and error cases, making it easier to handle responses uniformly across the application.
9
+ *
10
+ * @interface FreeschemaResponse
11
+ *
12
+ * @example
13
+ * ```typescript
14
+ * const response: FreeschemaResponse = {
15
+ * message: "User created successfully",
16
+ * status: true,
17
+ * statusCode: 201,
18
+ * data: { id: 123, name: "John Doe" }
19
+ * };
20
+ * ```
21
+ *
22
+ * @example
23
+ * ```typescript
24
+ * // Error response example
25
+ * const errorResponse: FreeschemaResponse = {
26
+ * message: "User not found",
27
+ * status: false,
28
+ * statusCode: 404,
29
+ * data: null
30
+ * };
31
+ * ```
32
+ */
1
33
  export interface FreeschemaResponse {
34
+ /**
35
+ * A human-readable message describing the result of the operation.
36
+ * Provides context about the success or failure of the request.
37
+ *
38
+ * @type {string}
39
+ */
2
40
  message: string;
41
+ /**
42
+ * A boolean flag indicating whether the operation was successful.
43
+ * True indicates success, false indicates failure.
44
+ *
45
+ * @type {boolean}
46
+ */
3
47
  status: boolean;
48
+ /**
49
+ * The HTTP status code representing the result of the operation.
50
+ * Standard HTTP status codes are used (e.g., 200 for success, 404 for not found, 500 for server error).
51
+ *
52
+ * @type {number}
53
+ *
54
+ * @example
55
+ * 200 - OK
56
+ * 201 - Created
57
+ * 400 - Bad Request
58
+ * 401 - Unauthorized
59
+ * 404 - Not Found
60
+ * 500 - Internal Server Error
61
+ */
4
62
  statusCode: number;
63
+ /**
64
+ * The response data payload.
65
+ * Can contain any type of data depending on the operation performed.
66
+ * May be null or undefined for operations that don't return data.
67
+ *
68
+ * @type {any}
69
+ */
5
70
  data: any;
6
71
  }
@@ -1,7 +1,66 @@
1
+ /**
2
+ * @fileoverview Returner data structure for tracking referent relationships in the CCS-JS system.
3
+ * @module DataStructures/Returner
4
+ */
5
+ /**
6
+ * Represents a returner entity that establishes a relationship between a user and a referent.
7
+ *
8
+ * @remarks
9
+ * The Returner class is a lightweight data structure that links entities through referent
10
+ * relationships. It tracks which user owns a particular referent reference and whether
11
+ * the relationship is newly created. This is commonly used in bidirectional relationship
12
+ * tracking within the concept composition system.
13
+ *
14
+ * @example
15
+ * ```typescript
16
+ * const returner = new Returner(
17
+ * 1001, // id
18
+ * 2001, // userId
19
+ * 3001, // referentId
20
+ * true // isNew
21
+ * );
22
+ * console.log(returner.referentId); // 3001
23
+ * ```
24
+ */
1
25
  export declare class Returner {
26
+ /**
27
+ * Unique identifier for this returner entity.
28
+ */
2
29
  id: number;
30
+ /**
31
+ * ID of the user who owns this returner relationship.
32
+ */
3
33
  userId: number;
34
+ /**
35
+ * ID of the referent being referenced by this returner.
36
+ *
37
+ * @remarks
38
+ * The referentId typically points to another entity in the system,
39
+ * establishing a directional relationship.
40
+ */
4
41
  referentId: number;
42
+ /**
43
+ * Flag indicating whether this returner relationship is newly created.
44
+ */
5
45
  isNew: boolean;
46
+ /**
47
+ * Creates a new Returner instance.
48
+ *
49
+ * @param id - Unique identifier for this returner
50
+ * @param userId - ID of the user who owns this relationship
51
+ * @param referentId - ID of the entity being referenced
52
+ * @param isNew - Whether this is a newly created relationship
53
+ *
54
+ * @example
55
+ * ```typescript
56
+ * // Create a returner linking user 100 to referent 500
57
+ * const returner = new Returner(1, 100, 500, false);
58
+ *
59
+ * // Check the relationship
60
+ * if (!returner.isNew) {
61
+ * console.log(`Existing relationship to referent ${returner.referentId}`);
62
+ * }
63
+ * ```
64
+ */
6
65
  constructor(id: number, userId: number, referentId: number, isNew: boolean);
7
66
  }
@@ -1,22 +1,187 @@
1
+ /**
2
+ * @fileoverview Defines the FreeschemaQuery class for complex, flexible query construction.
3
+ * @module DataStructures/Search/FreeschemaQuery
4
+ */
1
5
  import { Concept } from "../Concept";
2
6
  import { FilterSearch } from "../FilterSearch";
7
+ /**
8
+ * Represents a flexible, schema-free query structure for complex data retrieval operations.
9
+ * This class supports nested queries, filtering, ordering, and various output formats.
10
+ * It is designed to handle advanced querying scenarios with multiple concepts and connections.
11
+ *
12
+ * @class FreeschemaQuery
13
+ *
14
+ * @example
15
+ * ```typescript
16
+ * const query = new FreeschemaQuery();
17
+ * query.type = "User";
18
+ * query.inpage = 20;
19
+ * query.page = 1;
20
+ * query.order = "ASC";
21
+ * query.filters = [filterSearch1, filterSearch2];
22
+ * query.filterLogic = "AND";
23
+ * ```
24
+ *
25
+ * @example
26
+ * ```typescript
27
+ * // Nested query example
28
+ * const parentQuery = new FreeschemaQuery();
29
+ * const childQuery = new FreeschemaQuery();
30
+ * childQuery.type = "Comment";
31
+ * parentQuery.freeschemaQueries = [childQuery];
32
+ * ```
33
+ */
3
34
  export declare class FreeschemaQuery {
35
+ /**
36
+ * The type of entity to query (e.g., "User", "Post", "Comment").
37
+ * Determines the primary data structure being queried.
38
+ *
39
+ * @type {string}
40
+ * @default ""
41
+ */
4
42
  type: string;
43
+ /**
44
+ * The number of results to return per page (page size).
45
+ * Controls pagination by limiting results in the response.
46
+ *
47
+ * @type {number}
48
+ * @default 10
49
+ */
5
50
  inpage: number;
51
+ /**
52
+ * The page number to retrieve (1-indexed).
53
+ * Used with inpage for paginating through large result sets.
54
+ *
55
+ * @type {number}
56
+ * @default 1
57
+ */
6
58
  page: number;
59
+ /**
60
+ * Array of Concept objects to include in the query.
61
+ * Contains the actual concept instances used for filtering or joining.
62
+ *
63
+ * @type {Concept[]}
64
+ * @default []
65
+ */
7
66
  concepts: Concept[];
67
+ /**
68
+ * Array of concept IDs to filter by.
69
+ * Alternative to using full Concept objects when only IDs are needed.
70
+ *
71
+ * @type {number[]}
72
+ * @default []
73
+ */
8
74
  conceptIds: number[];
75
+ /**
76
+ * Array of field selectors to include in the query results.
77
+ * Specifies which properties should be returned in the response.
78
+ *
79
+ * @type {string[]}
80
+ * @default []
81
+ *
82
+ * @example
83
+ * ```typescript
84
+ * query.selectors = ["id", "name", "email"];
85
+ * ```
86
+ */
9
87
  selectors: string[];
88
+ /**
89
+ * Array of nested FreeschemaQuery objects for complex hierarchical queries.
90
+ * Enables querying related data structures in a single operation.
91
+ *
92
+ * @type {FreeschemaQuery[]}
93
+ * @default []
94
+ */
10
95
  freeschemaQueries: FreeschemaQuery[];
96
+ /**
97
+ * Array of FilterSearch objects to apply to the query.
98
+ * Each filter defines specific criteria for narrowing results.
99
+ *
100
+ * @type {FilterSearch[]}
101
+ * @default []
102
+ */
11
103
  filters: FilterSearch[];
104
+ /**
105
+ * The logical operator to combine multiple filters.
106
+ * Typically "AND" or "OR" to determine how filters are applied together.
107
+ *
108
+ * @type {string}
109
+ * @default ""
110
+ */
12
111
  filterLogic: string;
112
+ /**
113
+ * The type of connection to query when dealing with relationships.
114
+ * Specifies the connection type when traversing between concepts.
115
+ *
116
+ * @type {string}
117
+ * @default ""
118
+ */
13
119
  typeConnection: string;
120
+ /**
121
+ * The sort order for query results.
122
+ * Determines whether results are sorted in ascending or descending order.
123
+ *
124
+ * @type {string}
125
+ * @default "DESC"
126
+ */
14
127
  order: string;
128
+ /**
129
+ * The output format for query results.
130
+ * Determines the structure and presentation of returned data.
131
+ *
132
+ * @type {number}
133
+ * @default NORMAL
134
+ *
135
+ * @see {@link FormatConstants.NORMAL}
136
+ * @see {@link FormatConstants.ALLID}
137
+ */
15
138
  outputFormat: number;
139
+ /**
140
+ * A descriptive name for this query.
141
+ * Useful for identifying or debugging complex nested queries.
142
+ *
143
+ * @type {string}
144
+ * @default ""
145
+ */
16
146
  name: string;
147
+ /**
148
+ * Flag indicating whether to reverse the query direction.
149
+ * When true, traverses relationships in the opposite direction.
150
+ *
151
+ * @type {boolean}
152
+ * @default false
153
+ */
17
154
  reverse: boolean;
155
+ /**
156
+ * Flag indicating whether to apply a limit to the query results.
157
+ * When true, enforces the page size limit strictly.
158
+ *
159
+ * @type {boolean}
160
+ * @default false
161
+ */
18
162
  limit: boolean;
163
+ /**
164
+ * Filter criteria applied to ancestor nodes in hierarchical queries.
165
+ * Used for filtering based on parent or ancestor relationships.
166
+ *
167
+ * @type {string}
168
+ * @default ""
169
+ */
19
170
  filterAncestor: string;
171
+ /**
172
+ * Flag indicating whether to include this query in parent filter operations.
173
+ * When true, the query results are considered in parent-level filtering.
174
+ *
175
+ * @type {boolean}
176
+ * @default false
177
+ */
20
178
  includeInFilter: boolean;
179
+ /**
180
+ * Flag indicating whether to use legacy connection type behavior.
181
+ * Maintains backward compatibility with older connection type systems.
182
+ *
183
+ * @type {boolean}
184
+ * @default false
185
+ */
21
186
  isOldConnectionType: boolean;
22
187
  }
@@ -1,9 +1,78 @@
1
+ /**
2
+ * @fileoverview Defines the SearchStructure class for configuring search operations.
3
+ * @module DataStructures/Search/SearchStructure
4
+ */
5
+ /**
6
+ * Represents a search structure configuration for querying data.
7
+ * This class encapsulates all parameters needed to perform a search operation,
8
+ * including filtering, pagination, and composition settings.
9
+ *
10
+ * @class SearchStructure
11
+ *
12
+ * @example
13
+ * ```typescript
14
+ * const search = new SearchStructure();
15
+ * search.type = "concept";
16
+ * search.search = "user profile";
17
+ * search.page = 1;
18
+ * search.inpage = 20;
19
+ * ```
20
+ */
1
21
  export declare class SearchStructure {
22
+ /**
23
+ * The type of entity to search for (e.g., "concept", "connection").
24
+ * Determines which data structure will be queried.
25
+ *
26
+ * @type {string}
27
+ * @default ""
28
+ */
2
29
  type: string;
30
+ /**
31
+ * The search term or query string to match against.
32
+ * This is the primary search criteria used for filtering results.
33
+ *
34
+ * @type {string}
35
+ * @default ""
36
+ */
3
37
  search: string;
38
+ /**
39
+ * The composition identifier or filter for searching within compositions.
40
+ * Used to narrow search results to specific composition contexts.
41
+ *
42
+ * @type {string}
43
+ * @default ""
44
+ */
4
45
  composition: string;
46
+ /**
47
+ * Internal composition identifier for nested or hierarchical composition searches.
48
+ * Allows for more granular filtering within composition structures.
49
+ *
50
+ * @type {string}
51
+ * @default ""
52
+ */
5
53
  internalComposition: string;
54
+ /**
55
+ * The user ID associated with the search operation.
56
+ * Used for access control and filtering results based on user permissions.
57
+ *
58
+ * @type {number}
59
+ * @default 999
60
+ */
6
61
  userId: number;
62
+ /**
63
+ * The number of results to display per page (page size).
64
+ * Controls pagination by limiting the number of results returned.
65
+ *
66
+ * @type {number}
67
+ * @default 10
68
+ */
7
69
  inpage: number;
70
+ /**
71
+ * The page number to retrieve (1-indexed).
72
+ * Used in conjunction with inpage for pagination of search results.
73
+ *
74
+ * @type {number}
75
+ * @default 1
76
+ */
8
77
  page: number;
9
78
  }
@@ -1,16 +1,146 @@
1
+ /**
2
+ * @fileoverview Defines the SearchQuery class for constructing search queries with filtering and pagination.
3
+ * @module DataStructures/SearchQuery
4
+ */
1
5
  import { FilterSearch } from "./FilterSearch";
6
+ /**
7
+ * Represents a search query configuration with support for filtering, linking, and pagination.
8
+ * This class provides a comprehensive structure for building complex search operations
9
+ * with multiple criteria and logical operators.
10
+ *
11
+ * @class SearchQuery
12
+ *
13
+ * @example
14
+ * ```typescript
15
+ * const query = new SearchQuery();
16
+ * query.type = "Article";
17
+ * query.composition = 123;
18
+ * query.textSearch = "TypeScript tutorial";
19
+ * query.page = 1;
20
+ * query.inpage = 25;
21
+ * query.logic = "and";
22
+ * ```
23
+ *
24
+ * @example
25
+ * ```typescript
26
+ * // Search with filters
27
+ * const query = new SearchQuery();
28
+ * query.type = "Product";
29
+ * query.doFilter = true;
30
+ * query.filterSearches = [
31
+ * { type: "price", search: "100", logicoperator: ">", index: 0, composition: true, name: "price", operateon: "value" },
32
+ * { type: "category", search: "Electronics", logicoperator: "=", index: 1, composition: true, name: "category", operateon: "value" }
33
+ * ];
34
+ * ```
35
+ */
2
36
  export declare class SearchQuery {
37
+ /**
38
+ * The composition ID to search within.
39
+ * Specifies which composition context the search should be performed in.
40
+ *
41
+ * @type {number}
42
+ * @default 0
43
+ */
3
44
  composition: number;
45
+ /**
46
+ * The type of entity to search for.
47
+ * Determines the data structure or entity type being queried.
48
+ *
49
+ * @type {string}
50
+ * @default ""
51
+ */
4
52
  type: string;
53
+ /**
54
+ * The linker identifier for relationship-based searches.
55
+ * Used to specify connection types when traversing relationships.
56
+ *
57
+ * @type {string}
58
+ * @default ""
59
+ */
5
60
  linker: string;
61
+ /**
62
+ * The number of results to display per page (page size).
63
+ * Controls pagination by limiting the number of results returned.
64
+ *
65
+ * @type {number}
66
+ * @default 10
67
+ */
6
68
  inpage: number;
69
+ /**
70
+ * The page number to retrieve (1-indexed).
71
+ * Used with inpage for paginating through search results.
72
+ *
73
+ * @type {number}
74
+ * @default 1
75
+ */
7
76
  page: number;
77
+ /**
78
+ * Array of linker identifiers for multiple relationship types.
79
+ * Allows searching across multiple connection types simultaneously.
80
+ *
81
+ * @type {string[]}
82
+ * @default []
83
+ */
8
84
  listLinkers: string[];
85
+ /**
86
+ * Array of complete linker specifications for complex relationship queries.
87
+ * Contains fully qualified linker definitions for advanced searches.
88
+ *
89
+ * @type {string[]}
90
+ * @default []
91
+ */
9
92
  fullLinkers: string[];
93
+ /**
94
+ * The text search term or query string.
95
+ * Primary search criteria for text-based filtering.
96
+ *
97
+ * @type {string}
98
+ * @default ""
99
+ */
10
100
  textSearch: string;
101
+ /**
102
+ * The logical operator to combine multiple search criteria.
103
+ * Determines how multiple conditions are combined (e.g., "or", "and").
104
+ *
105
+ * @type {string}
106
+ * @default "or"
107
+ */
11
108
  logic: string;
109
+ /**
110
+ * Flag indicating whether to reverse the search direction.
111
+ * When true, traverses relationships in the opposite direction.
112
+ *
113
+ * @type {boolean}
114
+ * @default false
115
+ */
12
116
  reverse: boolean;
117
+ /**
118
+ * Flag indicating whether to apply filters to the search.
119
+ * When true, the filterSearches array is applied to narrow results.
120
+ *
121
+ * @type {boolean}
122
+ * @default false
123
+ */
13
124
  doFilter: boolean;
125
+ /**
126
+ * Array of FilterSearch objects defining specific filter criteria.
127
+ * Each filter specifies conditions that must be met for results to be included.
128
+ *
129
+ * @type {FilterSearch[]}
130
+ * @default []
131
+ */
14
132
  filterSearches: FilterSearch[];
133
+ /**
134
+ * Array of field selectors to include in the query results.
135
+ * Specifies which properties should be returned in the response.
136
+ *
137
+ * @type {string[]}
138
+ * @default []
139
+ *
140
+ * @example
141
+ * ```typescript
142
+ * query.selectors = ["id", "name", "createdAt"];
143
+ * ```
144
+ */
15
145
  selectors: string[];
16
146
  }
@@ -1,4 +1,52 @@
1
+ /**
2
+ * @fileoverview Defines the TokenStorage class for managing authentication tokens.
3
+ * @module DataStructures/Security/TokenStorage
4
+ */
5
+ /**
6
+ * Centralized storage for authentication tokens.
7
+ * This class provides a singleton-like static storage mechanism for managing
8
+ * Bearer access tokens across the application. The token is stored as a static
9
+ * property, making it accessible throughout the application without instantiation.
10
+ *
11
+ * @class TokenStorage
12
+ *
13
+ * @example
14
+ * ```typescript
15
+ * // Set the access token after authentication
16
+ * TokenStorage.BearerAccessToken = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...";
17
+ * ```
18
+ *
19
+ * @example
20
+ * ```typescript
21
+ * // Retrieve the access token for API requests
22
+ * const token = TokenStorage.BearerAccessToken;
23
+ * const headers = {
24
+ * 'Authorization': `Bearer ${token}`
25
+ * };
26
+ * ```
27
+ *
28
+ * @example
29
+ * ```typescript
30
+ * // Clear the token on logout
31
+ * TokenStorage.BearerAccessToken = "";
32
+ * ```
33
+ */
1
34
  export declare class TokenStorage {
35
+ /**
36
+ * The Bearer access token used for authentication.
37
+ * This static property stores the JWT or other authentication token
38
+ * used for authorizing API requests. The token typically has the format
39
+ * "Bearer <token>" when included in HTTP headers.
40
+ *
41
+ * @static
42
+ * @type {string}
43
+ * @default ""
44
+ *
45
+ * @remarks
46
+ * As a static property, this token is shared across all instances and modules.
47
+ * Exercise caution when handling this token to prevent security vulnerabilities.
48
+ * Consider clearing this value on logout or session expiration.
49
+ */
2
50
  static BearerAccessToken: string;
3
51
  static JwtSecret: string;
4
52
  }