mftsccs-browser 2.1.242-dev → 2.1.244-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 (271) hide show
  1. package/README.md +1 -1
  2. package/dist/main.bundle.js +2 -44551
  3. package/dist/main.bundle.js.LICENSE.txt +1 -0
  4. package/dist/serviceWorker.bundle.js +2 -45399
  5. package/dist/serviceWorker.bundle.js.LICENSE.txt +1 -0
  6. package/dist/types/AccessTracker/accessTracker.d.ts +72 -0
  7. package/dist/types/Anomaly/anomaly.d.ts +103 -0
  8. package/dist/types/Api/Create/CreateTheCharacter.d.ts +24 -0
  9. package/dist/types/Api/Create/CreateTheConceptApi.d.ts +20 -0
  10. package/dist/types/Api/Create/CreateTheConnectionApi.d.ts +18 -0
  11. package/dist/types/Api/Create/CreateTheGhostConceptApi.d.ts +28 -0
  12. package/dist/types/Api/Create/CreateTheGhostConnectionApi.d.ts +18 -0
  13. package/dist/types/Api/Create/CreateTheTextData.d.ts +18 -0
  14. package/dist/types/Api/Delete/DeleteConceptInBackend.d.ts +14 -0
  15. package/dist/types/Api/Delete/DeleteUserInBackend.d.ts +19 -0
  16. package/dist/types/Api/DeleteConnectionBulkApi.d.ts +20 -0
  17. package/dist/types/Api/DeleteTheConcept.d.ts +20 -0
  18. package/dist/types/Api/DeleteTheConnection.d.ts +20 -0
  19. package/dist/types/Api/GetAiData.d.ts +10 -0
  20. package/dist/types/Api/GetAllConceptsByType.d.ts +12 -0
  21. package/dist/types/Api/GetAllConnectionsOfComposition.d.ts +23 -0
  22. package/dist/types/Api/GetAllConnectionsOfCompositionBulk.d.ts +23 -0
  23. package/dist/types/Api/GetAllLinkerConnectionsFromTheConcept.d.ts +12 -0
  24. package/dist/types/Api/GetAllLinkerConnectionsToTheConcept.d.ts +12 -0
  25. package/dist/types/Api/GetCharacterDataByCharacter.d.ts +12 -0
  26. package/dist/types/Api/GetCompositionConnectionsBetweenTwoConcepts.d.ts +13 -0
  27. package/dist/types/Api/GetConcept.d.ts +6 -0
  28. package/dist/types/Api/GetConceptBulk.d.ts +20 -0
  29. package/dist/types/Api/GetConceptByCharacterAndType.d.ts +15 -0
  30. package/dist/types/Api/GetConceptByCharacterValue.d.ts +12 -0
  31. package/dist/types/Api/GetConnection.d.ts +15 -0
  32. package/dist/types/Api/GetConnectionBulk.d.ts +7 -0
  33. package/dist/types/Api/GetConnectionOfTheConcept.d.ts +15 -0
  34. package/dist/types/Api/GetConnectionToTheConcept.d.ts +17 -0
  35. package/dist/types/Api/GetConnections/GetConnectionsBetweenApi.d.ts +40 -0
  36. package/dist/types/Api/GetConnections/GetConnectionsByTypeApi.d.ts +15 -0
  37. package/dist/types/Api/GetInstanceConceptByCharacterType.d.ts +9 -0
  38. package/dist/types/Api/GetReservedConnectionIds.d.ts +10 -0
  39. package/dist/types/Api/GetReservedIds.d.ts +10 -0
  40. package/dist/types/Api/Images/GetImages.d.ts +15 -0
  41. package/dist/types/Api/Local/GetLocalConceptByCharacterValue.d.ts +13 -0
  42. package/dist/types/Api/Login.d.ts +78 -0
  43. package/dist/types/Api/MakeTheNameInBackend.d.ts +14 -0
  44. package/dist/types/Api/MakeTheTypeConceptApi.d.ts +9 -0
  45. package/dist/types/Api/Prototype/Selector.d.ts +26 -0
  46. package/dist/types/Api/RecursiveSearch.d.ts +67 -0
  47. package/dist/types/Api/Search/FreeschemaQueryApi.d.ts +18 -0
  48. package/dist/types/Api/Search/Search.d.ts +73 -0
  49. package/dist/types/Api/Search/SearchInternalApi.d.ts +28 -0
  50. package/dist/types/Api/Search/SearchLinkMultipleApi.d.ts +15 -0
  51. package/dist/types/Api/Search/SearchWithLinker.d.ts +16 -0
  52. package/dist/types/Api/Search/SearchWithTypeAndLinker.d.ts +14 -0
  53. package/dist/types/Api/SearchConcept/GetConceptByCharacterAndCategoryApi.d.ts +12 -0
  54. package/dist/types/Api/SearchConcept/GetConceptByCharacterAndCategoryDirect.d.ts +13 -0
  55. package/dist/types/Api/SearchConcept/GetTypeConceptByBulk.d.ts +15 -0
  56. package/dist/types/Api/Session/CreateSession.d.ts +16 -0
  57. package/dist/types/Api/Session/CreateSessionVisit.d.ts +12 -0
  58. package/dist/types/Api/Signin.d.ts +24 -0
  59. package/dist/types/Api/Signup.d.ts +61 -0
  60. package/dist/types/Api/Translate/TranslateLocalToReal.d.ts +12 -0
  61. package/dist/types/Api/View/ViewInternalDataApi.d.ts +15 -0
  62. package/dist/types/Constants/AccessConstants.d.ts +3 -0
  63. package/dist/types/Constants/ApiConstants.d.ts +23 -0
  64. package/dist/types/Constants/FormatConstants.d.ts +8 -0
  65. package/dist/types/Constants/ckeditorCSS.d.ts +1 -0
  66. package/dist/types/Constants/general.const.d.ts +11 -0
  67. package/dist/types/Constants/page.const.d.ts +5 -0
  68. package/dist/types/DataStructures/AccessControl/AccessControlModels.d.ts +84 -0
  69. package/dist/types/DataStructures/BaseUrl.d.ts +95 -0
  70. package/dist/types/DataStructures/BinaryCharacterTree.d.ts +16 -0
  71. package/dist/types/DataStructures/BinaryTree.d.ts +78 -0
  72. package/dist/types/DataStructures/BinaryTypeTree.d.ts +17 -0
  73. package/dist/types/DataStructures/CharacterRepository.d.ts +8 -0
  74. package/dist/types/DataStructures/Composition/Composition.d.ts +14 -0
  75. package/dist/types/DataStructures/Composition/CompositionBinaryTree.d.ts +10 -0
  76. package/dist/types/DataStructures/Composition/CompositionNode.d.ts +21 -0
  77. package/dist/types/DataStructures/Concept.d.ts +25 -0
  78. package/dist/types/DataStructures/ConceptData.d.ts +30 -0
  79. package/dist/types/DataStructures/Connection.d.ts +23 -0
  80. package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionBinaryTree.d.ts +81 -0
  81. package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionNode.d.ts +27 -0
  82. package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionOfNode.d.ts +10 -0
  83. package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionOfTheTree.d.ts +24 -0
  84. package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionTypeNode.d.ts +10 -0
  85. package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionTypeTree.d.ts +20 -0
  86. package/dist/types/DataStructures/ConnectionBinaryTree/NodePrimitive.d.ts +15 -0
  87. package/dist/types/DataStructures/ConnectionByType/GetConnectionByType.d.ts +4 -0
  88. package/dist/types/DataStructures/ConnectionData.d.ts +26 -0
  89. package/dist/types/DataStructures/Count/CountInfo.d.ts +6 -0
  90. package/dist/types/DataStructures/FetchConnection.d.ts +64 -0
  91. package/dist/types/DataStructures/FilterSearch.d.ts +9 -0
  92. package/dist/types/DataStructures/IdentifierFlags.d.ts +11 -0
  93. package/dist/types/DataStructures/Local/LConcept.d.ts +23 -0
  94. package/dist/types/DataStructures/Local/LConnection.d.ts +18 -0
  95. package/dist/types/DataStructures/Local/LNode.d.ts +29 -0
  96. package/dist/types/DataStructures/Local/LocalBinaryCharacterTree.d.ts +13 -0
  97. package/dist/types/DataStructures/Local/LocalBinaryTree.d.ts +13 -0
  98. package/dist/types/DataStructures/Local/LocalBinaryTypeTree.d.ts +13 -0
  99. package/dist/types/DataStructures/Local/LocalConceptData.d.ts +21 -0
  100. package/dist/types/DataStructures/Local/LocalConnectionData.d.ts +20 -0
  101. package/dist/types/DataStructures/Local/LocalGhostIdTree.d.ts +11 -0
  102. package/dist/types/DataStructures/Local/LocalId.d.ts +19 -0
  103. package/dist/types/DataStructures/Local/LocalSyncData.d.ts +33 -0
  104. package/dist/types/DataStructures/Node.d.ts +30 -0
  105. package/dist/types/DataStructures/PatcherStructure.d.ts +8 -0
  106. package/dist/types/DataStructures/Prototype/Prototype.d.ts +19 -0
  107. package/dist/types/DataStructures/Prototype/PrototypeOption.d.ts +4 -0
  108. package/dist/types/DataStructures/Prototype/QuerySelector.d.ts +4 -0
  109. package/dist/types/DataStructures/ReservedIds.d.ts +10 -0
  110. package/dist/types/DataStructures/Responses/ErrorResponse.d.ts +74 -0
  111. package/dist/types/DataStructures/Responses/StandardResponses.d.ts +6 -0
  112. package/dist/types/DataStructures/Returner.d.ts +7 -0
  113. package/dist/types/DataStructures/Search/FreeschemaQuery.d.ts +25 -0
  114. package/dist/types/DataStructures/Search/SearchStructure.d.ts +10 -0
  115. package/dist/types/DataStructures/SearchQuery.d.ts +17 -0
  116. package/dist/types/DataStructures/Security/SecureStorage.d.ts +14 -0
  117. package/dist/types/DataStructures/Security/TokenStorage.d.ts +24 -0
  118. package/dist/types/DataStructures/Session/SessionData.d.ts +13 -0
  119. package/dist/types/DataStructures/SettingData.d.ts +5 -0
  120. package/dist/types/DataStructures/Settings.d.ts +4 -0
  121. package/dist/types/DataStructures/SigninModel.d.ts +4 -0
  122. package/dist/types/DataStructures/SignupModel.d.ts +4 -0
  123. package/dist/types/DataStructures/SyncData.d.ts +14 -0
  124. package/dist/types/DataStructures/TheCharacter.d.ts +13 -0
  125. package/dist/types/DataStructures/TheTexts.d.ts +14 -0
  126. package/dist/types/DataStructures/TypeLibrary.d.ts +19 -0
  127. package/dist/types/DataStructures/TypeNode.d.ts +18 -0
  128. package/dist/types/DataStructures/User/UserBinaryTree.d.ts +13 -0
  129. package/dist/types/DataStructures/User/UserNode.d.ts +18 -0
  130. package/dist/types/DataStructures/WidgetCache/WidgetCache.d.ts +10 -0
  131. package/dist/types/DataStructures/WidgetCache/WidgetDetails.d.ts +9 -0
  132. package/dist/types/DataStructures/WidgetCache/WidgetNode.d.ts +18 -0
  133. package/dist/types/DataStructures/environments/environments.d.ts +48 -0
  134. package/dist/types/Database/CacheDatabase.d.ts +57 -0
  135. package/dist/types/Database/IndexUpdate.d.ts +47 -0
  136. package/dist/types/Database/NoIndexDb.d.ts +9 -0
  137. package/dist/types/Database/indexdblocal.d.ts +43 -0
  138. package/dist/types/Database/indexeddb.d.ts +58 -0
  139. package/dist/types/Helpers/CheckIfExists.d.ts +9 -0
  140. package/dist/types/Helpers/RemoveFromArray.d.ts +5 -0
  141. package/dist/types/Helpers/UniqueInsert.d.ts +1 -0
  142. package/dist/types/Middleware/ApplicationMonitor.d.ts +25 -0
  143. package/dist/types/Middleware/logger.service.d.ts +144 -0
  144. package/dist/types/ServiceWorker/actions/connectionActions.d.ts +2 -0
  145. package/dist/types/ServiceWorker/actions/createActions.d.ts +2 -0
  146. package/dist/types/ServiceWorker/actions/deleteActions.d.ts +2 -0
  147. package/dist/types/ServiceWorker/actions/getActions.d.ts +2 -0
  148. package/dist/types/ServiceWorker/actions/index.d.ts +15 -0
  149. package/dist/types/ServiceWorker/actions/searchActions.d.ts +2 -0
  150. package/dist/types/ServiceWorker/actions/syncActions.d.ts +2 -0
  151. package/dist/types/ServiceWorker/actions/updateActions.d.ts +2 -0
  152. package/dist/types/ServiceWorker/index.d.ts +11 -0
  153. package/dist/types/Services/AccessControl/APIClientService.d.ts +167 -0
  154. package/dist/types/Services/AccessControl/AccessControl.d.ts +114 -0
  155. package/dist/types/Services/CacheClear.d.ts +7 -0
  156. package/dist/types/Services/CheckForConnectionDeletion.d.ts +3 -0
  157. package/dist/types/Services/Common/DecodeCountInfo.d.ts +3 -0
  158. package/dist/types/Services/Common/DelayFunction.d.ts +7 -0
  159. package/dist/types/Services/Common/ErrorPosting.d.ts +10 -0
  160. package/dist/types/Services/Common/MergeArrays.d.ts +7 -0
  161. package/dist/types/Services/Common/RegexFunction.d.ts +1 -0
  162. package/dist/types/Services/Common/RemoveAllChild.d.ts +1 -0
  163. package/dist/types/Services/Composition/BuildComposition.d.ts +3 -0
  164. package/dist/types/Services/Composition/CompositionCache.d.ts +4 -0
  165. package/dist/types/Services/Composition/CreateCompositionCache.d.ts +3 -0
  166. package/dist/types/Services/ConceptFinding/GetConceptByCharacterAndCategory.d.ts +5 -0
  167. package/dist/types/Services/Conversion/ConvertConcepts.d.ts +5 -0
  168. package/dist/types/Services/CreateBinaryTreeFromData.d.ts +5 -0
  169. package/dist/types/Services/CreateConnection/CreateConnectionEntity.d.ts +2 -0
  170. package/dist/types/Services/CreateConnectionBetweenTwoConcepts.d.ts +5 -0
  171. package/dist/types/Services/CreateDefaultConcept.d.ts +3 -0
  172. package/dist/types/Services/CreateTheComposition.d.ts +1 -0
  173. package/dist/types/Services/CreateTheConcept.d.ts +122 -0
  174. package/dist/types/Services/CreateTheConnection.d.ts +63 -0
  175. package/dist/types/Services/CreateTheConnectionGeneral.d.ts +2 -0
  176. package/dist/types/Services/DeleteConcept.d.ts +2 -0
  177. package/dist/types/Services/DeleteConnection.d.ts +2 -0
  178. package/dist/types/Services/DeleteConnectionByType.d.ts +22 -0
  179. package/dist/types/Services/FindConeceptsFromConnection.d.ts +6 -0
  180. package/dist/types/Services/FindConnectionsOfCompositionBulkInMemory.d.ts +1 -0
  181. package/dist/types/Services/GetComposition.d.ts +205 -0
  182. package/dist/types/Services/GetCompositionBulk.d.ts +100 -0
  183. package/dist/types/Services/GetCompositionList.d.ts +7 -0
  184. package/dist/types/Services/GetConceptByCharacter.d.ts +2 -0
  185. package/dist/types/Services/GetConnectionBetweenTwoConceptsLinker.d.ts +11 -0
  186. package/dist/types/Services/GetConnections.d.ts +1 -0
  187. package/dist/types/Services/GetDataFromIndexDb.d.ts +2 -0
  188. package/dist/types/Services/GetLink.d.ts +3 -0
  189. package/dist/types/Services/GetLinkerConnectionFromConcept.d.ts +3 -0
  190. package/dist/types/Services/GetRelation.d.ts +3 -0
  191. package/dist/types/Services/GetTheConcept.d.ts +96 -0
  192. package/dist/types/Services/InitializeSystem.d.ts +2 -0
  193. package/dist/types/Services/Local/ConvertFromLConceptToConcept.d.ts +41 -0
  194. package/dist/types/Services/Local/ConvertFromLConnectionToConnection.d.ts +47 -0
  195. package/dist/types/Services/Local/CreateConnectionBetweenTwoConceptsLocal.d.ts +44 -0
  196. package/dist/types/Services/Local/CreateDefaultLConcept.d.ts +46 -0
  197. package/dist/types/Services/Local/CreateLocalBinaryTreeFromData.d.ts +34 -0
  198. package/dist/types/Services/Local/CreateTheCompositionLocal.d.ts +104 -0
  199. package/dist/types/Services/Local/CreateTheConceptLocal.d.ts +84 -0
  200. package/dist/types/Services/Local/CreateTheConnectionLocal.d.ts +140 -0
  201. package/dist/types/Services/Local/DeleteConceptLocal.d.ts +47 -0
  202. package/dist/types/Services/Local/GetCompositionListLocal.d.ts +37 -0
  203. package/dist/types/Services/Local/GetCompositionLocal.d.ts +97 -0
  204. package/dist/types/Services/Local/GetConceptByCharacterLocal.d.ts +56 -0
  205. package/dist/types/Services/Local/GetConnectionOfTheConceptLocal.d.ts +19 -0
  206. package/dist/types/Services/Local/GetRelationLocal.d.ts +21 -0
  207. package/dist/types/Services/Local/GetTheConceptLocal.d.ts +63 -0
  208. package/dist/types/Services/Local/MakeTheConceptLocal.d.ts +22 -0
  209. package/dist/types/Services/Local/MakeTheInstanceConceptLocal.d.ts +164 -0
  210. package/dist/types/Services/Local/MakeTheTypeLocal.d.ts +36 -0
  211. package/dist/types/Services/Local/UpdateCompositionLocal.d.ts +42 -0
  212. package/dist/types/Services/Logs/LogEvent.d.ts +1 -0
  213. package/dist/types/Services/Mail.d.ts +41 -0
  214. package/dist/types/Services/MakeTheCharacter.d.ts +2 -0
  215. package/dist/types/Services/MakeTheCharacterData.d.ts +2 -0
  216. package/dist/types/Services/MakeTheConcept.d.ts +2 -0
  217. package/dist/types/Services/MakeTheInstanceConcept.d.ts +15 -0
  218. package/dist/types/Services/MakeTheTimestamp.d.ts +1 -0
  219. package/dist/types/Services/MakeTheTypeConcept.d.ts +1 -0
  220. package/dist/types/Services/Mqtt/publishMessage.d.ts +1 -0
  221. package/dist/types/Services/Search/DataIdFormat.d.ts +32 -0
  222. package/dist/types/Services/Search/FormatData.d.ts +36 -0
  223. package/dist/types/Services/Search/JustIdFormat.d.ts +23 -0
  224. package/dist/types/Services/Search/NewFormat.d.ts +4 -0
  225. package/dist/types/Services/Search/SearchLinkInternal.d.ts +3 -0
  226. package/dist/types/Services/Search/SearchLinkMultiple.d.ts +55 -0
  227. package/dist/types/Services/Search/SearchWithTypeAndLinker.d.ts +82 -0
  228. package/dist/types/Services/Search/orderingConnections.d.ts +2 -0
  229. package/dist/types/Services/Security/GetRequestHeader.d.ts +7 -0
  230. package/dist/types/Services/SplitStrings.d.ts +1 -0
  231. package/dist/types/Services/Transaction/LocalTransaction.d.ts +117 -0
  232. package/dist/types/Services/UpdateComposition.d.ts +2 -0
  233. package/dist/types/Services/Upload.d.ts +111 -0
  234. package/dist/types/Services/User/UserFromLocalStorage.d.ts +10 -0
  235. package/dist/types/Services/User/UserTranslation.d.ts +3 -0
  236. package/dist/types/Services/View/ViewInternalData.d.ts +1 -0
  237. package/dist/types/Services/assets/GetImageService.d.ts +14 -0
  238. package/dist/types/Services/automated/automated-concept-connection.d.ts +7 -0
  239. package/dist/types/Services/cacheService.d.ts +1 -0
  240. package/dist/types/Validator/constant.d.ts +3 -0
  241. package/dist/types/Validator/interface.d.ts +19 -0
  242. package/dist/types/Validator/utils.d.ts +7 -0
  243. package/dist/types/Validator/validator.d.ts +37 -0
  244. package/dist/types/Widgets/BaseObserver.d.ts +25 -0
  245. package/dist/types/Widgets/BaseWidget.d.ts +37 -0
  246. package/dist/types/Widgets/BuilderSpeceficFunctions.d.ts +11 -0
  247. package/dist/types/Widgets/BuilderStatefulWidget.d.ts +392 -0
  248. package/dist/types/Widgets/CacheWidget.service.d.ts +77 -0
  249. package/dist/types/Widgets/NormalizeStyles.service.d.ts +10 -0
  250. package/dist/types/Widgets/RenderPage.service.d.ts +17 -0
  251. package/dist/types/Widgets/RenderWidgetLibrary.service.d.ts +22 -0
  252. package/dist/types/Widgets/RenderWidgetService.d.ts +187 -0
  253. package/dist/types/Widgets/StatefulWidget.d.ts +167 -0
  254. package/dist/types/Widgets/WidgetBuild.d.ts +45 -0
  255. package/dist/types/Widgets/WidgetCacheManager.d.ts +108 -0
  256. package/dist/types/Widgets/WidgetTree.d.ts +61 -0
  257. package/dist/types/WrapperFunctions/DepenedencyObserver.d.ts +116 -0
  258. package/dist/types/WrapperFunctions/GetCompositionListObservable.d.ts +51 -0
  259. package/dist/types/WrapperFunctions/GetCompositionObservable.d.ts +35 -0
  260. package/dist/types/WrapperFunctions/GetLinkListObservable.d.ts +57 -0
  261. package/dist/types/WrapperFunctions/GetLinkObservable.d.ts +50 -0
  262. package/dist/types/WrapperFunctions/QueryCacheManager.d.ts +107 -0
  263. package/dist/types/WrapperFunctions/RecursiveSearchObservable.d.ts +55 -0
  264. package/dist/types/WrapperFunctions/SchemaQueryObservable.d.ts +64 -0
  265. package/dist/types/WrapperFunctions/SearchLinkMultipleAllObservable.d.ts +36 -0
  266. package/dist/types/app.d.ts +385 -0
  267. package/dist/types/prototype/prototype.service.d.ts +25 -0
  268. package/dist/types/service-worker.d.ts +1 -0
  269. package/package.json +2 -2
  270. package/dist/main.bundle.js.map +0 -1
  271. package/dist/serviceWorker.bundle.js.map +0 -1
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This is the basic function of the concept connection system. This function let's you create a concept within the constraints of the
3
+ * concept connection system. This function is the building block of the concept connection system.
4
+ * @param type this is the type of the concept. You can also think of this as the key of concept. first_name, last_name etc.
5
+ * @param referent the actual value of the concept. The actual name of value of the concept.
6
+ * @param composition this is a boolean that defines if the concept is a composition or not. If this is a composition then other things are also
7
+ * connected internally with this concept. If composition is true then always a new concept is created otherwise it checks if the concept already exists
8
+ * and creates only in the case that the concept does not already exists with its type and value as its unique identifier.
9
+ * @param userId the userId of the creator.
10
+ * @param passedAccessId this is the accessId of the creator. By default should be 4.
11
+ * @param passedSessionId this is the session that is created by the system.
12
+ * @param referentId In case we need this concept to refer to any other concept.
13
+ * @returns a concept which is either newly created or an older concept that already exists.
14
+ */
15
+ export default function MakeTheInstanceConcept(type: string, referent: string, composition: boolean | undefined, userId: number, passedAccessId?: number, passedSessionId?: number, referentId?: number): Promise<any>;
@@ -0,0 +1 @@
1
+ export declare function MakeTheTimestamp(type: string, referent: string, userId: number, accessId?: number, sessionInformationId?: number): Promise<any>;
@@ -0,0 +1 @@
1
+ export declare function MakeTheTypeConcept(typeString: string, sessionId: number, sessionUserId: number, userId: number): Promise<any>;
@@ -0,0 +1 @@
1
+ export declare function publishMessage(topic: string, message: any): void;
@@ -0,0 +1,32 @@
1
+ import { Connection } from "../../app";
2
+ /**
3
+ * ## Format DATA-ID ##
4
+ * this function takes in connections and creates a single level objects so that all the data are added to its object/ array.
5
+ * This is then passed on further for stiching.
6
+ * @param connections
7
+ * @param compositionData
8
+ * @param reverse
9
+ * @returns
10
+ */
11
+ export declare function FormatFunctionDataForData(connections: Connection[], compositionData?: any[], reverse?: number[]): Promise<any[]>;
12
+ /**
13
+ * ############ Format is data-id and is used for list. ############
14
+ * This is helpful in building a format that has multiple mainCompositions i.e. in the context of the list
15
+ * The list format is helpful because you do not have to go over each individual query.
16
+ * @param connections the type connections that need (external connections) to be passed
17
+ * @param compositionData this is a dictionary type of format that has all the build compositions {id: { actual data}}
18
+ * @param mainComposition this is list of ids of the main composition that builds the tree
19
+ * @param reverse this is the list of connections ids that needs to go to the reverse direction (to---->from)
20
+ * @returns
21
+ */
22
+ export declare function FormatFromConnectionsAlteredArrayExternal(connections: Connection[], compositionData: any[], newCompositionData: any, mainComposition: number[], reverse: number[] | undefined, CountDictionary: any[]): Promise<any[]>;
23
+ /**
24
+ * ## Format DATA-ID ##
25
+ * this function takes in connections and creates a single level objects so that all the data are added to its object/ array.
26
+ * This is then passed on further for stiching.
27
+ * @param connections
28
+ * @param compositionData
29
+ * @param reverse
30
+ * @returns
31
+ */
32
+ export declare function FormatFunctionData(connections: Connection[], compositionData: any[], reverse?: number[]): Promise<any[]>;
@@ -0,0 +1,36 @@
1
+ import { Connection } from "../../app";
2
+ /**
3
+ * ######### Format is normal ######### used for listing. This only provides type connections.
4
+ * This is helpful in building a format that has multiple mainCompositions i.e. in the context of the list
5
+ * The list format is helpful because you do not have to go over each individual query.
6
+ * @param connections the type connections that need (external connections) to be passed
7
+ * @param compositionData this is a dictionary type of format that has all the build compositions {id: { actual data}}
8
+ * @param mainComposition this is list of ids of the main composition that builds the tree
9
+ * @param reverse this is the list of connections ids that needs to go to the reverse direction (to---->from)
10
+ * @returns
11
+ */
12
+ export declare function FormatConceptsAndConnectionsNormalList(connections: Connection[], compositionData: any[], mainComposition: number[], newCompositionData: any, reverse?: number[]): Promise<any[]>;
13
+ /**
14
+ *
15
+ * ## Format Normal ##
16
+ * This function takes in the connections and then converts the connections to the single level objects for further processing
17
+ * This function is the builder of the arrays/ objects from the connections.
18
+ */
19
+ export declare function formatFunction(connections: Connection[], compositionData: any, reverse: number[]): Promise<any>;
20
+ /**
21
+ *
22
+ * ## Format Normal ##
23
+ * This function takes in the connections and then converts the connections to the single level objects for further processing
24
+ * This function is the builder of the arrays/ objects from the connections.
25
+ */
26
+ export declare function formatFunctionForData(connections: Connection[], compositionData: any, reverse: number[]): Promise<any>;
27
+ /**
28
+ * ## Format DATA-ID ##
29
+ * this function takes in connections and creates a single level objects so that all the data are added to its object/ array.
30
+ * This is then passed on further for stiching.
31
+ * @param connections
32
+ * @param compositionData
33
+ * @param reverse
34
+ * @returns
35
+ */
36
+ export declare function FormatFunctionData(connections: Connection[], compositionData: any[], reverse?: number[]): Promise<any[]>;
@@ -0,0 +1,23 @@
1
+ import { Connection } from "../../app";
2
+ /**
3
+ * ## Format Just-Id ##
4
+ * this function takes in connections and creates a single level objects so that all the data are added to its object/ array.
5
+ * This is then passed on further for stiching.
6
+ * @param connections
7
+ * @param compositionData
8
+ * @param reverse
9
+ * @returns
10
+ */
11
+ export declare function FormatFunctionDataForDataJustId(connections: Connection[], compositionData: any[], reverse?: number[]): Promise<any[]>;
12
+ /**
13
+ * ############ Format is Just Id and is used for list. ############
14
+ * This is helpful in building a format that has multiple mainCompositions i.e. in the context of the list
15
+ * The list format is helpful because you do not have to go over each individual query.
16
+ * @param connections the type connections that need (external connections) to be passed
17
+ * @param compositionData this is a dictionary type of format that has all the build compositions {id: { actual data}}
18
+ * @param mainComposition this is list of ids of the main composition that builds the tree
19
+ * @param reverse this is the list of connections ids that needs to go to the reverse direction (to---->from)
20
+ * @returns
21
+ */
22
+ export declare function FormatFromConnectionsAlteredArrayExternalJustId(connections: Connection[], compositionData: any[], mainComposition: number[], reverse: number[] | undefined, CountDictionary: any[]): Promise<any[]>;
23
+ export declare function AddCount(ofTheConceptId: number, CountDictionary: any, newData: any): void;
@@ -0,0 +1,4 @@
1
+ import { Connection } from "../../app";
2
+ export declare function FormatFunctionDataV2(connections: Connection[], compositionData?: Record<number, any>, reverse?: number[]): Promise<Record<number, any>>;
3
+ export declare function FormatFunctionDataForDataV2(connections: Connection[], compositionData?: Record<number, any>, reverse?: number[]): Promise<Record<number, any>>;
4
+ export declare function FormatFromConnectionsAlteredArrayExternalV2(connections: Connection[], compositionData: Record<number, any>, mainComposition: number[], reverse: number[] | undefined, CountDictionary: Record<number, any>): Promise<any[]>;
@@ -0,0 +1,3 @@
1
+ import { SearchStructure } from "../../app";
2
+ export declare function SearchLinkInternal(searchQuery: SearchStructure, token?: string): Promise<any[]>;
3
+ export declare function SearchLinkInternalAll(searchQuery: SearchStructure, token?: string): Promise<any>;
@@ -0,0 +1,55 @@
1
+ import { SearchQuery } from "../../DataStructures/SearchQuery";
2
+ import { Connection } from "../../app";
3
+ export declare function SearchLinkMultipleAll(searchQuery: SearchQuery[], token?: string, caller?: any, format?: number): Promise<any>;
4
+ /**
5
+ * ######### This layer builds the data. Format is dataid ##########
6
+ * @param linkers list of ids that help us
7
+ * @param conceptIds this is all the concept ids that need to be composited
8
+ * @param connections these are the internal connections of the compositions that help in creating individual compositions
9
+ * @param reverse this is the list of connection ids that need to show reverse connections(to->from)
10
+ * @param mainCompositionId this is the main centre point of this data.
11
+ * @returns
12
+ */
13
+ export declare function DataIdBuildLayer(linkers: number[], conceptIds: number[], connections: number[], reverse: number[], mainCompositionId: number, searchQuery: SearchQuery, format?: number): Promise<any>;
14
+ /**
15
+ * ## Format is DATAID ##
16
+ * This is altered format and is different from others because it passes all the connections prebuilt/prefetched
17
+ * This will not let the connections to be again fetched from the memory.
18
+ * @param connections the type connections that need (external connections) to be passed
19
+ * @param compositionData this is a dictionary type of format that has all the build compositions {id: { actual data}}
20
+ * @param mainComposition this is the id of the main composition that builds the tree
21
+ * @param reverse this is the list of connections ids that needs to go to the reverse direction (to---->from)
22
+ * @returns
23
+ */
24
+ export declare function FormatFromConnectionsAltered(connections: Connection[], compositionData: any[], mainComposition: number, reverse?: number[]): Promise<any>;
25
+ /**
26
+ * ######### Format is normal ######### used for listing.
27
+ * This is helpful in building a format that has multiple mainCompositions i.e. in the context of the list
28
+ * The list format is helpful because you do not have to go over each individual query.
29
+ * @param connections the type connections that need (external connections) to be passed
30
+ * @param compositionData this is a dictionary type of format that has all the build compositions {id: { actual data}}
31
+ * @param mainComposition this is list of ids of the main composition that builds the tree
32
+ * @param reverse this is the list of connections ids that needs to go to the reverse direction (to---->from)
33
+ * @returns
34
+ */
35
+ export declare function FormatConceptsAndConnections(connections: Connection[], compositionData: any[], mainComposition: number[], reverse?: number[]): Promise<any[]>;
36
+ /**
37
+ * ############ Format is data-id and is used for list. ############
38
+ * This is helpful in building a format that has multiple mainCompositions i.e. in the context of the list
39
+ * The list format is helpful because you do not have to go over each individual query.
40
+ * @param connections the type connections that need (external connections) to be passed
41
+ * @param compositionData this is a dictionary type of format that has all the build compositions {id: { actual data}}
42
+ * @param mainComposition this is list of ids of the main composition that builds the tree
43
+ * @param reverse this is the list of connections ids that needs to go to the reverse direction (to---->from)
44
+ * @returns
45
+ */
46
+ export declare function FormatFromConnectionsAlteredArray(connections: Connection[], compositionData: any[], conceptIds: number[], mainComposition: number[], reverse?: number[]): Promise<any[]>;
47
+ /**
48
+ * ########## Format works with JUSTDATA / NORMAL ########### used for single origin concept
49
+ * @param linkers this is the list of linkers that
50
+ * @param compositionData
51
+ * @param mainComposition
52
+ * @param reverse list of connection ids that need to show reverse conneciton.
53
+ * @returns
54
+ */
55
+ export declare function FormatFromConnections(linkers: number[], compositionData: any[], mainComposition: number, reverse?: number[]): Promise<any>;
@@ -0,0 +1,82 @@
1
+ import { SearchStructure, SearchQuery } from '../../app';
2
+ import { CountInfo } from '../../DataStructures/Count/CountInfo';
3
+ /**
4
+ * This function will help you search a concept by their type and also to query inside of it.
5
+ * Put the number of compositions you want to get in the searchStructure which can be set by inpage and page
6
+ * Then the type should be set in searchQuery for the compositionName.
7
+ * Inside the searchQuery array this you can set the full linker / listLinker in the searchQuery.
8
+ * This will give the id of the structures.
9
+ */
10
+ export declare function SearchWithTypeAndLinkerDataId(searchStructure: SearchStructure, searchQuery: SearchQuery[], token?: string): Promise<any>;
11
+ /**
12
+ * This function will help you search a concept by their type and also to query inside of it.
13
+ * Put the number of compositions you want to get in the searchStructure which can be set by inpage and page
14
+ * Then the type should be set in searchQuery for the compositionName.
15
+ * Inside the searchQuery array this you can set the full linker / listLinker in the searchQuery.
16
+ * This will not give the id of the structures.
17
+ */
18
+ export declare function SearchWithTypeAndLinker(searchStructure: SearchStructure, searchQuery: SearchQuery[], token?: string): Promise<any>;
19
+ /**
20
+ * ## Format dataid ##
21
+ * @param linkers
22
+ * @param conceptIds
23
+ * @param connections
24
+ * @param mainCompositionIds
25
+ * @param reverse
26
+ * @returns
27
+ */
28
+ export declare function formatDataArrayDataId(linkers: number[], conceptIds: number[], connections: number[], mainCompositionIds: number[], reverse: number[]): Promise<any>;
29
+ /**
30
+ * ## Format Normal ##
31
+ * @param linkers
32
+ * @param conceptIds
33
+ * @param connections
34
+ * @param mainCompositionIds
35
+ * @param reverse
36
+ * @returns
37
+ */
38
+ export declare function formatDataArrayNormal(linkers: number[], conceptIds: number[], connections: number[], mainCompositionIds: number[], reverse: number[]): Promise<any>;
39
+ /**
40
+ * ## Format Normal ##
41
+ * @param linkers
42
+ * @param conceptIds
43
+ * @param connections
44
+ * @param mainCompositionIds
45
+ * @param reverse
46
+ * @returns
47
+ */
48
+ export declare function formatLinkersNormal(linkers: number[], conceptIds: number[], connections: number[], mainCompositionIds: number[], reverse: number[]): Promise<any>;
49
+ /**
50
+ * ## Format Normal ##
51
+ * This function fetches all the connections and then converts all the connections to the single level connections
52
+ * Then those single level objects are then stiched together to create a complex json/ array.
53
+ * @param linkers
54
+ * @param conceptIds
55
+ * @param mainCompositionIds
56
+ * @param reverse
57
+ * @returns
58
+ */
59
+ export declare function formatConnections(linkers: number[], conceptIds: number[], mainCompositionIds: number[], reverse: number[], countInfos: CountInfo[]): Promise<any>;
60
+ /**
61
+ * ## Format JustId ##
62
+ * This function fetches all the connections and then converts all the connections to the single level connections
63
+ * Then those single level objects are then stiched together to create a complex json/ array.
64
+ * @param linkers
65
+ * @param conceptIds
66
+ * @param mainCompositionIds
67
+ * @param reverse
68
+ * @returns
69
+ */
70
+ export declare function formatConnectionsJustId(linkers: number[], conceptIds: number[], mainCompositionIds: number[], reverse: number[], countInfos: CountInfo[], order?: string): Promise<any>;
71
+ /**
72
+ * ## Format DATA-ID ##
73
+ * This function fetches all the connections and then converts all the connections to the single level connections
74
+ * Then those single level objects are then stiched together to create a complex json/ array.
75
+ * @param linkers
76
+ * @param conceptIds
77
+ * @param mainCompositionIds
78
+ * @param reverse
79
+ * @returns
80
+ */
81
+ export declare function formatConnectionsDataId(linkers: number[], conceptIds: number[], mainCompositionIds: number[], reverse: number[], countInfos: CountInfo[], order?: string): Promise<any>;
82
+ export declare function formatConnectionsV2(linkers: number[], conceptIds: number[], mainCompositionIds: number[], reverse: number[], countInfos: CountInfo[], order?: string): Promise<any>;
@@ -0,0 +1,2 @@
1
+ import { Connection } from "../../app";
2
+ export declare function orderTheConnections(connections: Connection[], order?: string): Connection[];
@@ -0,0 +1,7 @@
1
+ type RequestHeader = Record<string, string>;
2
+ export declare function GetRequestHeader(contentType?: string | null, Accept?: string): Promise<RequestHeader>;
3
+ export declare function GetRequestHeaderWithAuthorization(contentType?: string | null, 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
+ }