mftsccs-browser 2.1.239-dev → 2.1.240-dev

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