mftsccs-node 0.2.2 → 0.2.4

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 (217) hide show
  1. package/dist/main.bundle.js +2 -0
  2. package/dist/main.bundle.js.LICENSE.txt +1 -0
  3. package/dist/serviceWorker.bundle.js +2 -0
  4. package/dist/serviceWorker.bundle.js.LICENSE.txt +1 -0
  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/CreateTheConceptApi.d.ts +1 -1
  8. package/dist/types/Api/Create/CreateTheGhostConceptApi.d.ts +3 -0
  9. package/dist/types/Api/Create/CreateTheGhostConnectionApi.d.ts +2 -0
  10. package/dist/types/Api/Delete/DeleteUserInBackend.d.ts +1 -0
  11. package/dist/types/Api/DeleteConnectionBulkApi.d.ts +1 -0
  12. package/dist/types/Api/DeleteTheConcept.d.ts +1 -1
  13. package/dist/types/Api/DeleteTheConnection.d.ts +1 -1
  14. package/dist/types/Api/GetAllConnectionsOfComposition.d.ts +1 -1
  15. package/dist/types/Api/GetAllConnectionsOfCompositionBulk.d.ts +2 -2
  16. package/dist/types/Api/GetCharacterDataByCharacter.d.ts +1 -1
  17. package/dist/types/Api/GetCompositionConnectionsBetweenTwoConcepts.d.ts +1 -2
  18. package/dist/types/Api/GetConcept.d.ts +6 -2
  19. package/dist/types/Api/GetConceptBulk.d.ts +8 -1
  20. package/dist/types/Api/GetConceptByCharacterAndType.d.ts +1 -2
  21. package/dist/types/Api/GetConnection.d.ts +1 -1
  22. package/dist/types/Api/GetConnectionBulk.d.ts +5 -0
  23. package/dist/types/Api/GetConnectionOfTheConcept.d.ts +1 -2
  24. package/dist/types/Api/GetConnections/GetConnectionsByTypeApi.d.ts +3 -0
  25. package/dist/types/Api/Images/GetImages.d.ts +1 -0
  26. package/dist/types/Api/Local/GetLocalConceptByCharacterValue.d.ts +2 -0
  27. package/dist/types/Api/Login.d.ts +1 -1
  28. package/dist/types/Api/MakeTheTypeConceptApi.d.ts +7 -0
  29. package/dist/types/Api/Prototype/CreatePrototype.d.ts +2 -0
  30. package/dist/types/Api/Prototype/Selector.d.ts +15 -0
  31. package/dist/types/Api/RecursiveSearch.d.ts +6 -1
  32. package/dist/types/Api/Search/FreeschemaQueryApi.d.ts +1 -1
  33. package/dist/types/Api/Search/SearchInternalApi.d.ts +1 -0
  34. package/dist/types/Api/Search/SearchWithTypeAndLinker.d.ts +2 -0
  35. package/dist/types/Api/SearchConcept/GetConceptByCharacterAndCategoryApi.d.ts +1 -1
  36. package/dist/types/Api/Signin.d.ts +1 -1
  37. package/dist/types/Api/Signup.d.ts +17 -1
  38. package/dist/types/Api/Translate/TranslateLocalToReal.d.ts +2 -0
  39. package/dist/types/Constants/AccessConstants.d.ts +3 -0
  40. package/dist/types/Constants/FormatConstants.d.ts +1 -0
  41. package/dist/types/Constants/ckeditorCSS.d.ts +1 -0
  42. package/dist/types/Constants/general.const.d.ts +6 -0
  43. package/dist/types/Constants/page.const.d.ts +5 -0
  44. package/dist/types/DataStructures/BaseUrl.d.ts +33 -0
  45. package/dist/types/DataStructures/BinaryTree.d.ts +1 -0
  46. package/dist/types/DataStructures/BinaryTypeTree.d.ts +7 -5
  47. package/dist/types/DataStructures/Concept.d.ts +11 -15
  48. package/dist/types/DataStructures/ConceptData.d.ts +7 -2
  49. package/dist/types/DataStructures/Connection.d.ts +6 -10
  50. package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionBinaryTree.d.ts +3 -1
  51. package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionNode.d.ts +3 -0
  52. package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionOfNode.d.ts +10 -0
  53. package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionOfTheTree.d.ts +24 -0
  54. package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionTypeNode.d.ts +10 -0
  55. package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionTypeTree.d.ts +16 -9
  56. package/dist/types/DataStructures/ConnectionBinaryTree/NodePrimitive.d.ts +15 -0
  57. package/dist/types/DataStructures/ConnectionByType/GetConnectionByType.d.ts +4 -0
  58. package/dist/types/DataStructures/ConnectionData.d.ts +11 -3
  59. package/dist/types/DataStructures/Local/LConcept.d.ts +5 -3
  60. package/dist/types/DataStructures/Local/LConnection.d.ts +3 -3
  61. package/dist/types/DataStructures/Local/LNode.d.ts +5 -3
  62. package/dist/types/DataStructures/Local/LocalBinaryCharacterTree.d.ts +3 -2
  63. package/dist/types/DataStructures/Local/LocalBinaryTree.d.ts +3 -2
  64. package/dist/types/DataStructures/Local/LocalBinaryTypeTree.d.ts +4 -4
  65. package/dist/types/DataStructures/Local/LocalConceptData.d.ts +16 -9
  66. package/dist/types/DataStructures/Local/LocalConnectionData.d.ts +13 -9
  67. package/dist/types/DataStructures/Local/LocalGhostIdTree.d.ts +11 -0
  68. package/dist/types/DataStructures/Local/LocalId.d.ts +19 -0
  69. package/dist/types/DataStructures/Local/LocalSyncData.d.ts +29 -10
  70. package/dist/types/DataStructures/Node.d.ts +1 -0
  71. package/dist/types/DataStructures/Prototype/Prototype.d.ts +19 -0
  72. package/dist/types/DataStructures/Prototype/PrototypeOption.d.ts +4 -0
  73. package/dist/types/DataStructures/Prototype/QuerySelector.d.ts +4 -0
  74. package/dist/types/DataStructures/Search/FreeschemaQuery.d.ts +2 -1
  75. package/dist/types/DataStructures/Search/SearchStructure.d.ts +1 -0
  76. package/dist/types/DataStructures/SearchQuery.d.ts +1 -0
  77. package/dist/types/DataStructures/Security/TokenStorage.d.ts +2 -1
  78. package/dist/types/DataStructures/SyncData.d.ts +1 -2
  79. package/dist/types/DataStructures/TypeLibrary.d.ts +19 -0
  80. package/dist/types/DataStructures/TypeNode.d.ts +18 -0
  81. package/dist/types/DataStructures/User/UserBinaryTree.d.ts +5 -7
  82. package/dist/types/DataStructures/User/UserNode.d.ts +3 -5
  83. package/dist/types/DataStructures/WidgetCache/WidgetCache.d.ts +10 -0
  84. package/dist/types/DataStructures/WidgetCache/WidgetDetails.d.ts +9 -0
  85. package/dist/types/DataStructures/WidgetCache/WidgetNode.d.ts +18 -0
  86. package/dist/types/Database/IndexUpdate.d.ts +47 -0
  87. package/dist/types/Database/NoIndexDb.d.ts +1 -1
  88. package/dist/types/Database/indexdblocal.d.ts +40 -0
  89. package/dist/types/Database/indexeddb.d.ts +50 -0
  90. package/dist/types/Helpers/CheckIfExists.d.ts +2 -3
  91. package/dist/types/Helpers/RemoveFromArray.d.ts +1 -2
  92. package/dist/types/Middleware/ApplicationMonitor.d.ts +14 -0
  93. package/dist/types/Middleware/logger.service.d.ts +144 -0
  94. package/dist/types/ServiceWorker/actions/connectionActions.d.ts +2 -0
  95. package/dist/types/ServiceWorker/actions/createActions.d.ts +2 -0
  96. package/dist/types/ServiceWorker/actions/deleteActions.d.ts +2 -0
  97. package/dist/types/ServiceWorker/actions/getActions.d.ts +2 -0
  98. package/dist/types/ServiceWorker/actions/index.d.ts +15 -0
  99. package/dist/types/ServiceWorker/actions/searchActions.d.ts +2 -0
  100. package/dist/types/ServiceWorker/actions/syncActions.d.ts +2 -0
  101. package/dist/types/ServiceWorker/actions/updateActions.d.ts +2 -0
  102. package/dist/types/ServiceWorker/index.d.ts +11 -0
  103. package/dist/types/Services/AccessControl/AccessControl.d.ts +218 -0
  104. package/dist/types/Services/Common/DelayFunction.d.ts +7 -0
  105. package/dist/types/Services/Common/ErrorPosting.d.ts +8 -0
  106. package/dist/types/Services/Common/MergeArrays.d.ts +7 -0
  107. package/dist/types/Services/Common/RemoveAllChild.d.ts +1 -0
  108. package/dist/types/Services/ConceptFinding/GetConceptByCharacterAndCategory.d.ts +0 -1
  109. package/dist/types/Services/Conversion/ConvertConcepts.d.ts +3 -5
  110. package/dist/types/Services/CreateBinaryTreeFromData.d.ts +4 -1
  111. package/dist/types/Services/CreateCharacterBinaryTreeFromData.d.ts +4 -0
  112. package/dist/types/Services/CreateConnection/CreateConnectionEntity.d.ts +2 -0
  113. package/dist/types/Services/CreateConnectionBetweenTwoConcepts.d.ts +1 -1
  114. package/dist/types/Services/CreateTheComposition.d.ts +1 -2
  115. package/dist/types/Services/CreateTheConcept.d.ts +3 -3
  116. package/dist/types/Services/CreateTheConnection.d.ts +9 -1
  117. package/dist/types/Services/CreateTheConnectionGeneral.d.ts +1 -3
  118. package/dist/types/Services/DeleteConcept.d.ts +2 -1
  119. package/dist/types/Services/DeleteConnection.d.ts +2 -1
  120. package/dist/types/Services/DeleteConnectionByType.d.ts +22 -0
  121. package/dist/types/Services/FindConeceptsFromConnection.d.ts +4 -0
  122. package/dist/types/Services/FindConnectionsOfCompositionBulkInMemory.d.ts +1 -2
  123. package/dist/types/Services/GetComposition.d.ts +139 -1
  124. package/dist/types/Services/GetCompositionBulk.d.ts +94 -5
  125. package/dist/types/Services/GetCompositionList.d.ts +5 -0
  126. package/dist/types/Services/GetConceptByCharacter.d.ts +2 -3
  127. package/dist/types/Services/GetConnectionBetweenTwoConceptsLinker.d.ts +11 -0
  128. package/dist/types/Services/GetConnections.d.ts +1 -2
  129. package/dist/types/Services/GetDataFromIndexDb.d.ts +2 -2
  130. package/dist/types/Services/GetLink.d.ts +1 -1
  131. package/dist/types/Services/GetRelation.d.ts +2 -5
  132. package/dist/types/Services/GetTheConcept.d.ts +7 -0
  133. package/dist/types/Services/InitializeSystem.d.ts +1 -1
  134. package/dist/types/Services/Local/ConvertFromLConceptToConcept.d.ts +2 -0
  135. package/dist/types/Services/Local/ConvertFromLConnectionToConnection.d.ts +2 -0
  136. package/dist/types/Services/Local/CreateConnectionBetweenTwoConceptsLocal.d.ts +3 -0
  137. package/dist/types/Services/Local/CreateDefaultLConcept.d.ts +2 -2
  138. package/dist/types/Services/Local/CreateLocalBinaryTreeFromData.d.ts +29 -1
  139. package/dist/types/Services/Local/CreateTheCompositionLocal.d.ts +14 -2
  140. package/dist/types/Services/Local/CreateTheConceptLocal.d.ts +22 -2
  141. package/dist/types/Services/Local/CreateTheConnectionLocal.d.ts +16 -2
  142. package/dist/types/Services/Local/DeleteConceptLocal.d.ts +1 -0
  143. package/dist/types/Services/Local/GetCompositionListLocal.d.ts +12 -0
  144. package/dist/types/Services/Local/GetConceptByCharacterLocal.d.ts +10 -1
  145. package/dist/types/Services/Local/GetConnectionOfTheConceptLocal.d.ts +2 -0
  146. package/dist/types/Services/Local/GetRelationLocal.d.ts +1 -0
  147. package/dist/types/Services/Local/GetTheConceptLocal.d.ts +9 -0
  148. package/dist/types/Services/Local/MakeTheConceptLocal.d.ts +2 -2
  149. package/dist/types/Services/Local/MakeTheInstanceConceptLocal.d.ts +18 -2
  150. package/dist/types/Services/Local/MakeTheTypeLocal.d.ts +16 -2
  151. package/dist/types/Services/Local/UpdateCompositionLocal.d.ts +3 -2
  152. package/dist/types/Services/Mail.d.ts +18 -0
  153. package/dist/types/Services/MakeTheConcept.d.ts +1 -1
  154. package/dist/types/Services/MakeTheInstanceConcept.d.ts +15 -2
  155. package/dist/types/Services/MakeTheTimestamp.d.ts +1 -2
  156. package/dist/types/Services/MakeTheTypeConcept.d.ts +1 -2
  157. package/dist/types/Services/Search/DataIdFormat.d.ts +18 -18
  158. package/dist/types/Services/Search/FormatData.d.ts +20 -10
  159. package/dist/types/Services/Search/NewFormat.d.ts +4 -0
  160. package/dist/types/Services/Search/SearchLinkInternal.d.ts +1 -0
  161. package/dist/types/Services/Search/SearchLinkMultiple.d.ts +53 -1
  162. package/dist/types/Services/Search/SearchWithTypeAndLinker.d.ts +53 -5
  163. package/dist/types/Services/Security/GetRequestHeader.d.ts +3 -10
  164. package/dist/types/Services/Transaction/LocalTransaction.d.ts +45 -0
  165. package/dist/types/Services/UpdateComposition.d.ts +1 -1
  166. package/dist/types/Services/Upload.d.ts +33 -0
  167. package/dist/types/Services/User/UserFromLocalStorage.d.ts +6 -0
  168. package/dist/types/Services/User/UserTranslation.d.ts +3 -6
  169. package/dist/types/Services/assets/GetImageService.d.ts +14 -0
  170. package/dist/types/Services/automated/automated-concept-connection.d.ts +7 -0
  171. package/dist/types/Services/cacheService.d.ts +1 -0
  172. package/dist/types/Validator/constant.d.ts +3 -0
  173. package/dist/types/Validator/interface.d.ts +19 -0
  174. package/dist/types/Validator/utils.d.ts +7 -0
  175. package/dist/types/Validator/validator.d.ts +37 -0
  176. package/dist/types/Visualize/ConceptCircle.d.ts +35 -0
  177. package/dist/types/Visualize/ConceptCircleList.d.ts +9 -0
  178. package/dist/types/Visualize/ConnectionLine.d.ts +21 -0
  179. package/dist/types/Visualize/ConnectionLineList.d.ts +6 -0
  180. package/dist/types/Visualize/drawExistingConcepts.d.ts +8 -0
  181. package/dist/types/Visualize/helper.d.ts +15 -0
  182. package/dist/types/Visualize/index.d.ts +0 -0
  183. package/dist/types/Widgets/BaseObserver.d.ts +22 -0
  184. package/dist/types/Widgets/BaseWidget.d.ts +24 -0
  185. package/dist/types/Widgets/BuilderSpeceficFunctions.d.ts +2 -0
  186. package/dist/types/Widgets/BuilderStatefulWidget.d.ts +42 -0
  187. package/dist/types/Widgets/CacheWidget.service.d.ts +17 -0
  188. package/dist/types/Widgets/NormalizeStyles.service.d.ts +1 -0
  189. package/dist/types/Widgets/RenderPage.service.d.ts +12 -0
  190. package/dist/types/Widgets/RenderWidgetLibrary.service.d.ts +14 -0
  191. package/dist/types/Widgets/RenderWidgetService.d.ts +50 -0
  192. package/dist/types/Widgets/StatefulWidget.d.ts +102 -0
  193. package/dist/types/Widgets/WidgetBuild.d.ts +4 -0
  194. package/dist/types/Widgets/WidgetTree.d.ts +29 -0
  195. package/dist/types/Widgets/mainView.class.d.ts +6 -0
  196. package/dist/types/WrapperFunctions/DepenedencyObserver.d.ts +73 -0
  197. package/dist/types/WrapperFunctions/GetCompositionListObservable.d.ts +19 -0
  198. package/dist/types/WrapperFunctions/GetCompositionObservable.d.ts +13 -0
  199. package/dist/types/WrapperFunctions/GetLinkListObservable.d.ts +28 -0
  200. package/dist/types/WrapperFunctions/GetLinkObservable.d.ts +32 -0
  201. package/dist/types/WrapperFunctions/RecursiveSearchObservable.d.ts +37 -0
  202. package/dist/types/WrapperFunctions/SchemaQueryObservable.d.ts +9 -11
  203. package/dist/types/WrapperFunctions/SearchLinkMultipleAllObservable.d.ts +15 -0
  204. package/dist/types/app.d.ts +128 -21
  205. package/dist/types/prototype/getPrototype.service.d.ts +2 -0
  206. package/dist/types/prototype/prototype.service.d.ts +25 -0
  207. package/dist/types/service-worker.d.ts +1 -0
  208. package/package.json +1 -1
  209. package/dist/bundle.js +0 -2
  210. package/dist/bundle.js.LICENSE.txt +0 -1
  211. package/dist/types/Services/AccessControl/AccessControlCacheService.d.ts +0 -19
  212. package/dist/types/Services/AccessControl/AccessControlService.d.ts +0 -4
  213. package/dist/types/Services/AccessControl/PermissionSet.d.ts +0 -8
  214. package/dist/types/Services/Delete/GetAllConnectionByType.d.ts +0 -16
  215. package/dist/types/Services/MakeTheName.d.ts +0 -2
  216. package/dist/types/Services/auth/AuthService.d.ts +0 -1
  217. /package/dist/types/{Services/MakeTheLocalConcept.d.ts → Middleware/ErrorHandling.d.ts} +0 -0
@@ -1,2 +1,10 @@
1
1
  export declare function HandleHttpError(response: Response): void;
2
+ export declare function HandleHttpErrorObject(response: Response, output?: any): void;
2
3
  export declare function HandleInternalError(error: any, url?: string): void;
4
+ /**
5
+ * Handle errors inside package functions
6
+ * @updateLog existing function log at start
7
+ * @param functionName name of the function that encountered the error
8
+ * @param error error appeared
9
+ */
10
+ export declare function UpdatePackageLogWithError(logData: any, functionName: string, error: any): void;
@@ -0,0 +1,7 @@
1
+ /**
2
+ *
3
+ * @param array1 The array you want to merge into
4
+ * @param array2 The array you want to merge
5
+ * @returns array1 with the elements of array 2
6
+ */
7
+ export declare function MergeTwoArrays(array1: any, array2: any): any;
@@ -0,0 +1 @@
1
+ export declare function removeAllChildren(parent: HTMLElement): void;
@@ -1,5 +1,4 @@
1
1
  import { Concept } from "../../app";
2
2
  export declare function GetConceptByCharacterAndCategory(character: string): Promise<Concept>;
3
3
  export declare function GetConceptByCharacter(characterValue: string): Promise<Concept>;
4
- export declare function GetConceptByCharacterSingle(characterValue: string): Promise<Concept>;
5
4
  export declare function GetConceptByCharacterAndCategoryFromMemory(character: string, category: number): Promise<Concept>;
@@ -1,7 +1,5 @@
1
1
  import { Concept } from "../../DataStructures/Concept";
2
2
  import { Connection } from "../../DataStructures/Connection";
3
- import { LConcept } from "../../DataStructures/Local/LConcept";
4
- import { LConnection } from "../../DataStructures/Local/LConnection";
5
- export declare function convertFromConceptToLConcept(concept: Concept): LConcept;
6
- export declare function convertFromLConceptToConcept(lconcept: LConcept): Concept;
7
- export declare function convertFromConnectionToLConnection(connection: Connection): LConnection;
3
+ export declare function convertFromConceptToLConcept(concept: Concept): Concept;
4
+ export declare function convertFromLConceptToConcept(lconcept: Concept): Concept;
5
+ export declare function convertFromConnectionToLConnection(connection: Connection): Connection;
@@ -1 +1,4 @@
1
- export default function CreateBinaryTreeFromData(): Promise<void>;
1
+ /**
2
+ * This function builds up the binary tree on startup from the indexdb
3
+ */
4
+ export default function CreateConceptBinaryTreeFromIndexDb(): Promise<void>;
@@ -1 +1,5 @@
1
+ /**
2
+ * This function creates a binary character tree in the memory from which we can search for concepts using character key
3
+ * This helps us in searching concept by character faster.
4
+ */
1
5
  export declare function CreateCharacterBinaryTreeFromData(): Promise<void>;
@@ -0,0 +1,2 @@
1
+ import { Concept, InnerActions } from "../../app";
2
+ export declare function CreateConnectionBetweenEntityLocal(concept1Data: Concept, concept2Data: Concept, linker: string, actions?: InnerActions): Promise<any>;
@@ -1,5 +1,5 @@
1
1
  import { Concept } from "../DataStructures/Concept";
2
2
  import { Connection } from "../DataStructures/Connection";
3
- export declare function CreateConnectionBetweenTwoConcepts(ofTheConcept: Concept, toTheConcept: Concept, linker: string, both?: boolean, count?: boolean): Promise<Connection>;
3
+ export declare function CreateConnectionBetweenTwoConcepts(ofTheConcept: Concept, toTheConcept: Concept, linker: string, both?: boolean, count?: boolean): Promise<any>;
4
4
  export declare function CountRelationship(linker: string, concept: Concept, passedUserId?: number | null): Promise<void>;
5
5
  export declare function CreateConnectionBetweenTwoConceptsGeneral(ofTheConcept: Concept, toTheConcept: Concept, linker: string, both?: boolean, count?: boolean): Promise<Connection>;
@@ -1,2 +1 @@
1
- import { Concept } from "../DataStructures/Concept";
2
- export default function CreateTheComposition(json: any, ofTheConceptId?: number | null, ofTheConceptUserId?: number | null, mainKey?: number | null, userId?: number | null, accessId?: number | null, sessionInformationId?: number | null): Promise<Concept>;
1
+ export default function CreateTheComposition(json: any, ofTheConceptId?: number | null, ofTheConceptUserId?: number | null, mainKey?: number | null, userId?: number | null, accessId?: number | null, sessionInformationId?: number | null): Promise<any>;
@@ -1,4 +1,4 @@
1
1
  import { Concept } from "../DataStructures/Concept";
2
- export default function CreateTheConcept(referent: string, userId: number, categoryId: number, categoryUserId: number, typeId: number, typeUserId: number, referentId: number, referentUserId: number, securityId: number, securityUserId: number, accessId: number, accessUserId: number, sessionInformationId: number, sessionInformationUserId: number): Promise<Concept>;
3
- export declare function CreateTheConceptTemporary(referent: string, userId: number, categoryId: number, categoryUserId: number, typeId: number, typeUserId: number, referentId: number, referentUserId: number, securityId: number, securityUserId: number, accessId: number, accessUserId: number, sessionInformationId: number, sessionInformationUserId: number): Promise<Concept>;
4
- export declare function CreateTheConceptImmediate(referent: string, userId: number, categoryId: number, categoryUserId: number, typeId: number, typeUserId: number, referentId: number, referentUserId: number, securityId: number, securityUserId: number, accessId: number, accessUserId: number, sessionInformationId: number, sessionInformationUserId: number): Promise<Concept>;
2
+ export default function CreateTheConcept(referent: string, userId: number, categoryId: number, typeId: number, referentId: number, accessId: number, typeCharacter: string): Promise<Concept>;
3
+ export declare function CreateTheConceptTemporary(referent: string, userId: number, categoryId: number, typeId: number, referentId: number, accessId: number, typeCharacter: string): Promise<Concept>;
4
+ export declare function CreateTheConceptImmediate(referent: string, userId: number, categoryId: number, typeId: number, referentId: number | null, accessId: number, typeCharacter: string): Promise<Concept>;
@@ -1,2 +1,10 @@
1
1
  import { Connection } from "../DataStructures/Connection";
2
- export declare function createTheConnection(ofTheConceptId: number, ofTheConceptUserId: number, toTheConceptId: number, toTheConceptUserId: number, typeId: number, sessionInformationId: number, sessionInformationUserId: number): Connection;
2
+ /**
3
+ * This function is used to create a connection that is internal(inside of a composition)
4
+ * @param ofTheConceptId Start of the connection
5
+ * @param userId user id fo the user creating the connection
6
+ * @param toTheConceptId the end of the connection
7
+ * @param typeId this is the type of the connection
8
+ * @returns
9
+ */
10
+ export declare function createTheConnection(ofTheConceptId: number, userId: number, toTheConceptId: number, typeId: number): Connection;
@@ -1,4 +1,2 @@
1
- import { Concept } from "../app";
2
1
  import { Connection } from "../DataStructures/Connection";
3
- export declare function CreateTheConnectionGeneral(ofTheConceptId: number, ofTheConceptUserId: number, toTheConceptId: number, toTheConceptUserId: number, typeId: number, sessionInformationId: number, sessionInformationUserId: number, orderId?: number, accessId?: number, passedUserId?: number): Promise<Connection>;
4
- export declare function CreateConnection(ofTheConcept: Concept, toTheConcept: Concept, connectionTypeString: string): Promise<Connection>;
2
+ export declare function CreateTheConnectionGeneral(ofTheConceptId: number, ofTheConceptUserId: number, toTheConceptId: number, typeId: number, orderId?: number, accessId?: number): Promise<Connection>;
@@ -1 +1,2 @@
1
- export declare function DeleteConceptById(id: number, token?: string): Promise<void>;
1
+ export declare function DeleteConceptById(id: number): Promise<any>;
2
+ export declare function DeleteUser(id: number): Promise<any>;
@@ -1 +1,2 @@
1
- export declare function DeleteConnectionById(id: number, token?: string): Promise<boolean>;
1
+ export declare function DeleteConnectionById(id: number): Promise<any>;
2
+ export declare function DeleteConnectionByIdBulk(ids: number[]): Promise<any>;
@@ -0,0 +1,22 @@
1
+ /**
2
+ *
3
+ * @param id
4
+ * @param linker
5
+ * @returns
6
+ */
7
+ export declare function DeleteConnectionByType(id: number, linker: string): Promise<any>;
8
+ export declare function DeleteConnectionByTypeBulk(id: number, linkers: string[]): Promise<any>;
9
+ /**
10
+ * This function returns all the connections from the ofTheConceptId and connection type
11
+ * @param id ofTheConceptId
12
+ * @param linker the connection type
13
+ * @returns Array of connections
14
+ */
15
+ export declare function GetAllTheConnectionsByTypeAndOfTheConcept(id: number, linker: string, reverse?: boolean): Promise<any>;
16
+ /**
17
+ *
18
+ * @param id
19
+ * @param linker
20
+ * @returns
21
+ */
22
+ export declare function DeleteConnectionsByTypeLocal(id: number, linkerStrings: string[]): Promise<any>;
@@ -1,2 +1,6 @@
1
1
  import { Connection } from "../DataStructures/Connection";
2
+ /**
3
+ * This function takes in a list of connections and in bulk gets the concepts that are related with these connections.
4
+ * @param connectionList list of connections whose concepts need to be found out.
5
+ */
2
6
  export declare function FindConceptsFromConnections(connectionList?: Connection[]): Promise<void>;
@@ -1,2 +1 @@
1
- import { Connection } from "../DataStructures/Connection";
2
- export declare function FindConnectionsOfCompositionsBulkInMemory(composition_ids?: number[]): Promise<Connection[]>;
1
+ export declare function FindConnectionsOfCompositionsBulkInMemory(composition_ids?: number[]): Promise<any>;
@@ -1,10 +1,148 @@
1
+ import { Concept } from "../DataStructures/Concept";
1
2
  import { Connection } from "../DataStructures/Connection";
3
+ export declare function GetCompositionById(id: number): Promise<{
4
+ connectionList: Connection[];
5
+ compositionList: number[];
6
+ }>;
7
+ /**
8
+ * ## format JUSTDATA ##
9
+ * this function builds the composition with the main id as the point of building.
10
+ * @param id id of the main composition that you want to build
11
+ * @param connectionList list of connections
12
+ * @param compositionList list of of_the_concept_ids for all the connections.
13
+ * @returns
14
+ */
15
+ export declare function RecursiveFetchBuildLayer(id: number, connectionList: Connection[], compositionList: number[]): Promise<any>;
16
+ /**
17
+ * ## format DATAID ##
18
+ * this function builds the composition with the main id as the point of building.
19
+ * @param id id of the main composition that you want to build
20
+ * @param connectionList list of connections
21
+ * @param compositionList list of of_the_concept_ids for all the connections.
22
+ * @returns
23
+ */
24
+ export declare function RecursiveFetchBuildLayerDataId(id: number, connectionList: Connection[], compositionList: number[]): Promise<any>;
25
+ /**
26
+ * ## format Normal ##
27
+ * this function builds the composition with the main id as the point of building.
28
+ * @param id id of the main composition that you want to build
29
+ * @param connectionList list of connections
30
+ * @param compositionList list of of_the_concept_ids for all the connections.
31
+ * @returns
32
+ */
33
+ export declare function RecursiveFetchBuildLayerNormal(id: number, connectionList: Connection[], compositionList: number[]): Promise<any>;
34
+ /**
35
+ * ## format JUSTDATA ##
36
+ * this function builds the composition with the main id as the point of building.
37
+ * This just requires the id
38
+ * @param id id of the main composition that you want to build
39
+ * @param connectionList list of connections
40
+ * @param compositionList list of of_the_concept_ids for all the connections.
41
+ * @returns
42
+ */
2
43
  export declare function GetComposition(id: number): Promise<any>;
3
44
  export declare function GetCompositionWithAllIds(id: number): Promise<any>;
45
+ /**
46
+ * ### Format JUSTDATA ###
47
+ * This function just builds data from the memory.
48
+ * This is a function that takes on all the concepts and connections of the concept (as a composition ) and builds
49
+ * it into a json data.
50
+ * @param id this id is just used to get all the composition data from the concepts and connections in memory
51
+ * @returns
52
+ */
4
53
  export declare function GetCompositionFromMemory(id: number): Promise<any>;
54
+ /**
55
+ * ### Format Normal ###
56
+ * This function just builds data from the memory.
57
+ * This is a function that takes on all the concepts and connections of the concept (as a composition ) and builds
58
+ * it into a json data.
59
+ * @param id this id is just used to get all the composition data from the concepts and connections in memory
60
+ * @returns
61
+ */
62
+ export declare function GetCompositionFromMemoryNormal(id: number): Promise<any>;
63
+ /**
64
+ * ### Format DATAIDDATE ####
65
+ * Gets data just from memory
66
+ * @param id
67
+ * @returns
68
+ */
5
69
  export declare function GetCompositionWithIdFromMemory(id: number): Promise<any>;
70
+ /**
71
+ * ### Format Normal ####
72
+ * Gets data just from memory
73
+ * @param id
74
+ * @returns
75
+ */
76
+ export declare function GetCompositionFromMemoryWithConnections(id: number, connectionList: Connection[]): Promise<any>;
77
+ /**
78
+ * ### Format DATAIDDATE ####
79
+ * Gets data just from memory
80
+ * @param id
81
+ * @returns
82
+ */
83
+ export declare function GetCompositionWithIdFromMemoryFromConnection(id: number, connectionList: Connection[]): Promise<any>;
84
+ /**
85
+ * ### Format DATAIDDATE ####
86
+ * ### experimental ####
87
+ * This is the new format that needs to work with a single or max two loops
88
+ * @param id the id whose composition needs to be created
89
+ * @returns
90
+ */
91
+ export declare function GetCompositionWithIdFromMemoryNew(id: number): Promise<any>;
92
+ /**
93
+ * ### Format DATAIDDATE #####
94
+ * ### This just returns composition from memory and not from anywhere else.
95
+ * @param id
96
+ * @returns
97
+ */
6
98
  export declare function GetCompositionWithIdAndDateFromMemory(id: number): Promise<any>;
7
- export declare function GetCompositionWithIdFromMemoryFromConnections(id: number, connectionList: Connection[]): Promise<any>;
99
+ export declare function GetCompositionWithIdFromMemoryFromConnections(id: number, connectionList?: Connection[]): Promise<any>;
100
+ /**
101
+ * #### Format DATAID ####
102
+ * ## This will return the composition even if it is not in the local memory ##
103
+ * @param id
104
+ * @returns
105
+ */
8
106
  export declare function GetCompositionWithId(id: number): Promise<any>;
107
+ /**
108
+ * ## Format justdata ###
109
+ * ## This contains a concept in the parameter so that you dont have to again find the concept ##
110
+ * This function takes concepts and connections and then builds a json.
111
+ * @param concept The concept that needs to get other concepts that are inside of it.
112
+ * @param connectionList List of connections that are available in the composition. We have to loop over it.
113
+ * @param compositionList Composition list is the list of concepts that have connections inside of them.
114
+ * @param visitedConcepts This is a checking mechanism to not go in loops. So preferably pass an empty array.
115
+ * @returns
116
+ */
117
+ export declare function recursiveFetchConcept(concept: Concept, connectionList: Connection[], compositionList: number[], visitedConcepts?: number[]): Promise<any>;
118
+ /**
119
+ * ## Format Normal ###
120
+ * ## This contains a concept in the parameter so that you dont have to again find the concept ##
121
+ * This function takes concepts and connections and then builds a json.
122
+ * @param concept The concept that needs to get other concepts that are inside of it.
123
+ * @param connectionList List of connections that are available in the composition. We have to loop over it.
124
+ * @param compositionList Composition list is the list of concepts that have connections inside of them.
125
+ * @param visitedConcepts This is a checking mechanism to not go in loops. So preferably pass an empty array.
126
+ * @returns
127
+ */
128
+ export declare function recursiveFetchConceptNormal(concept: Concept, connectionList: Connection[], compositionList: number[], visitedConcepts?: number[]): Promise<any>;
129
+ /**
130
+ * ## experimental ##
131
+ * This function takes concepts and connections and then builds a json.
132
+ * @param concept The concept that needs to get other concepts that are inside of it.
133
+ * @param connectionList List of connections that are available in the composition. We have to loop over it.
134
+ * @param compositionList Composition list is the list of concepts that have connections inside of them.
135
+ * @param visitedConcepts This is a checking mechanism to not go in loops. So preferably pass an empty array.
136
+ * @returns
137
+ */
138
+ export declare function recursiveFetchConceptSingleLoop(concept: Concept, connectionList: Connection[], compositionList: number[], visitedConcepts?: number[]): Promise<any>;
139
+ /**
140
+ * ## Format justdata ##
141
+ * @param id
142
+ * @param connectionList
143
+ * @param compositionList
144
+ * @param visitedConcepts
145
+ * @returns
146
+ */
9
147
  export declare function recursiveFetch(id: number, connectionList: Connection[], compositionList: number[], visitedConcepts?: number[]): Promise<any>;
10
148
  export declare function recursiveFetchWithSubCompositions(id: number, connectionList: Connection[], compositionList: number[], visitedConcepts?: number[]): Promise<any>;
@@ -1,11 +1,100 @@
1
1
  import { Connection } from "../DataStructures/Connection";
2
- export declare function GetCompositionBulk(ids?: number[]): Promise<any[]>;
3
- export declare function GetCompositionBulkWithDataId(ids?: number[]): Promise<any[]>;
4
- export declare function GetCompositionFromConnectionsWithDataId(ids?: number[], connections?: number[]): Promise<any[]>;
2
+ /**
3
+ * ## Format JUSTDATA ##
4
+ * Function converts the conceptIds to json (compositions)
5
+ * This function takes in the conceptIds and returns a list of compositions related to those concepts.
6
+ * @param conceptIds list of concept ids that are compositions.
7
+ * @returns compositions
8
+ */
9
+ export declare function GetCompositionBulk(conceptIds?: number[]): Promise<any[]>;
10
+ /**
11
+ * ## FORMAT DATAIDDATE ##
12
+ * Function converts the conceptIds to json (compositions)
13
+ * @param conceptIds this is the list of concept ids that should be converted to compostions in data - id format.
14
+ * @returns list of compositions in the data - id format.
15
+ */
16
+ export declare function GetCompositionBulkWithDataId(conceptIds?: number[]): Promise<any[]>;
17
+ /**
18
+ * ## FORMAT DATAIDDATE ##
19
+ * This function converts the conceptIds and internal connectionIds to compositions in data-Id format.
20
+ * @param conceptIds This is the list of concept ids that need to be converted to compositions.
21
+ * @param connectionIds These are the internal connectionIds that need to be passed to create the compositions.
22
+ * @returns list of compositions created from the passed conceptIds and connectionIds.
23
+ */
24
+ export declare function GetCompositionFromConnectionsWithDataId(conceptIds?: number[], connectionIds?: number[]): Promise<any>;
25
+ /**
26
+ * ## FORMAT DATAIDDATE ##
27
+ * This is just a different version of GetCompositionFromConnectionsWithDataId, This has the added functionality that
28
+ * it also prints out internal connections.
29
+ * This function converts the conceptIds and internal connectionIds to compositions in data-Id format.
30
+ * @param conceptIds This is the list of concept ids that need to be converted to compositions.
31
+ * @param connectionIds These are the internal connectionIds that need to be passed to create the compositions.
32
+ * @returns list of compositions created from the passed conceptIds and connectionIds.
33
+ */
34
+ export declare function GetCompositionFromConnectionsWithDataIdFromConnections(conceptIds?: number[], connectionIds?: number[]): Promise<any>;
35
+ /**
36
+ * ## Format DATAIDDATE ##
37
+ * This function converts the conceptIds and internal connectionIds to compositions in data-Id format with index(conceptId).
38
+ * @param conceptIds This is the list of concept ids that need to be converted to compositions.
39
+ * @param connectionIds These are the internal connectionIds that need to be passed to create the compositions.
40
+ * @returns dictionary of compositions created from the passed conceptIds and connectionIds with conceptId as its index .
41
+ */
42
+ export declare function GetCompositionFromConnectionsWithDataIdIndex(conceptIds?: number[], connectionIds?: number[]): Promise<any>;
43
+ /**
44
+ * ## Format is dictionary with key as concept id and value as data (json) ##
45
+ * This function converts the conceptIds and internal connectionIds to compositions format with index(conceptId).
46
+ * @param conceptIds This is the list of concept ids that need to be converted to compositions.
47
+ * @param connectionIds These are the internal connectionIds that need to be passed to create the compositions.
48
+ * @returns dictionary of compositions created from the passed conceptIds and connectionIds with conceptId as its index .
49
+ */
50
+ export declare function GetCompositionFromConnectionsWithIndex(conceptIds?: number[], connectionIds?: number[]): Promise<any>;
51
+ /**
52
+ * ## FORMAT DATAIDDATE ##
53
+ * This is just a different version of GetCompositionFromConnectionsWithDataId, This has the added functionality that
54
+ * it also prints out internal connections.
55
+ * This function converts the conceptIds and internal connectionIds to compositions in data-Id format.
56
+ * @param conceptIds This is the list of concept ids that need to be converted to compositions.
57
+ * @param connectionIds These are the internal connectionIds that need to be passed to create the compositions.
58
+ * @returns list of compositions created from the passed conceptIds and connectionIds.
59
+ */
60
+ export declare function GetCompositionFromConnectionsWithIndexFromConnections(conceptIds?: number[], connectionIds?: number[]): Promise<any>;
5
61
  /**
6
62
  * Used to prefetch all the connections and their related concepts.
7
63
  * @param connectionIds these are the connection ids that are used to fetch all the connections and also their related concepts.
8
64
  * @returns all the connections that are passed as ids.
9
65
  */
10
- export declare function GetConnectionDataPrefetch(connectionIds?: number[]): Promise<Connection[]>;
11
- export declare function GetCompositionFromConnectionsWithDataIdInObject(ids?: number[], connections?: number[]): Promise<any>;
66
+ export declare function GetConnectionDataPrefetch(connectionIds: number[]): Promise<Connection[]>;
67
+ /**
68
+ * ## Format DATAIDDATE ##
69
+ * This function converts the conceptIds and internal connections to create compositions.
70
+ * Format is of a dictionary with ids as the key and value is the composition data.
71
+ * @param conceptIds these are the concept ids that need to be fetched to create their compositions
72
+ * @param connections these are the connections that are used to create the structure.
73
+ * @returns a dictionary / object that has key as their conceptId and the value as their composition object.
74
+ */
75
+ export declare function GetCompositionFromConnectionsWithDataIdInObject(conceptIds?: number[], connections?: number[]): Promise<any>;
76
+ /**
77
+ * ## Format DATAIDDATE ##
78
+ * ## duplicate ##
79
+ * This function converts the conceptIds and internal connections to create compositions.
80
+ * @param conceptIds these are the concept ids that need to be fetched to create their compositions
81
+ * @param connections these are the connections that are used to create the structure.
82
+ * @returns a dictionary / object that has key as their conceptId and the value as their composition object.
83
+ */
84
+ export declare function GetCompositionFromConnectionsWithDataIdInObjectNew(conceptIds?: number[], connections?: number[]): Promise<any>;
85
+ /**
86
+ * ## Format justdata ##
87
+ * This function converts the conceptIds and internal connections to create compositions.
88
+ * @param conceptIds these are the concept ids that need to be fetched to create their compositions
89
+ * @param connections these are the connections that are used to create the structure.
90
+ * @returns a dictionary / object that has key as their conceptId and the value as their composition object.
91
+ */
92
+ export declare function GetCompositionFromConnectionsInObject(conceptIds?: number[], connections?: number[]): Promise<any>;
93
+ /**
94
+ * ## Format Normal ##
95
+ * This function converts the conceptIds and internal connections to create compositions.
96
+ * @param conceptIds these are the concept ids that need to be fetched to create their compositions
97
+ * @param connections these are the connections that are used to create the structure.
98
+ * @returns a dictionary / object that has key as their conceptId and the value as their composition object.
99
+ */
100
+ export declare function GetCompositionFromConnectionsInObjectNormal(conceptIds?: number[], connections?: number[]): Promise<any>;
@@ -1,2 +1,7 @@
1
+ import { Concept } from "../app";
1
2
  export declare function GetCompositionList(compositionName: string, userId: number, inpage?: number, page?: number): Promise<any>;
3
+ export declare function GetCompositionListAll(compositionName: string, userId: number, inpage?: number, page?: number): Promise<any[]>;
4
+ export declare function GetCompositionListAllWithId(compositionName: string, userId: number, inpage?: number, page?: number): Promise<any>;
2
5
  export declare function GetCompositionListWithId(compositionName: string, userId: number, inpage?: number, page?: number): Promise<any>;
6
+ export declare function GetCompositionListWithIdUpdated(compositionName: string, userId: number, inpage?: number, page?: number): Promise<any>;
7
+ export declare function FormatTheConcepts(conceptList: Concept[], localConceptList: Concept[], inpage?: number, page?: number): Promise<any[]>;
@@ -1,3 +1,2 @@
1
- import { Concept } from "../DataStructures/Concept";
2
- export default function GetConceptByCharacter(characterValue: string): Promise<Concept>;
3
- export declare function GetConceptByCharacterUpdated(characterValue: string): Promise<Concept>;
1
+ export default function GetConceptByCharacter(characterValue: string): Promise<any>;
2
+ export declare function GetConceptByCharacterUpdated(characterValue: string): Promise<any>;
@@ -0,0 +1,11 @@
1
+ import { Concept } from "../app";
2
+ /**
3
+ * This function will give you all the connections between two concepts by their linker or fullLinker
4
+ * @param ofTheConcept start of the connecction
5
+ * @param toTheConcept end of the connection
6
+ * @param linker the primitive linkers with type connection (16) these are the old type of linkers (if you want full linker then put this as empty string)
7
+ * @param fullLinker fullLinker is the modern linker (if you want linker then put this as empty string)
8
+ * @param forward if you want to get the forward relation in the primitive linker put true else for backward linker false.
9
+ * @returns list of connections
10
+ */
11
+ export declare function GetConnectionBetweenTwoConceptsLinker(ofTheConcept: Concept, toTheConcept: Concept, linker: string, fullLinker: string, forward?: boolean): Promise<any>;
@@ -1,2 +1 @@
1
- import { Connection } from "../DataStructures/Connection";
2
- export declare function GetConnectionById(id: number): Promise<Connection>;
1
+ export declare function GetConnectionById(id: number): Promise<any>;
@@ -1,2 +1,2 @@
1
- export declare function GetDataFromIndexDb(): Promise<void>;
2
- export declare function GetDataFromIndexDbLocal(): Promise<void>;
1
+ export declare function GetConnectionsFromIndexDb(): Promise<void>;
2
+ export declare function GetConnectionsFromIndexDbLocal(): Promise<void>;
@@ -1,3 +1,3 @@
1
1
  import { Concept } from "./../DataStructures/Concept";
2
- export declare function GetLink(id: number, linker: string, inpage?: number, page?: number): Promise<any[]>;
2
+ export declare function GetLink(id: number, linker: string, inpage?: number, page?: number): Promise<any>;
3
3
  export declare function GetLinkRaw(id: number, linker: string, inpage?: number, page?: number): Promise<Concept[]>;
@@ -1,5 +1,2 @@
1
- import { Connection } from "../DataStructures/Connection";
2
- import { Concept } from "./../DataStructures/Concept";
3
- export declare function GetRelation(id: number, relation: string, inpage?: number, page?: number, reverse?: boolean): Promise<any[]>;
4
- export declare function GetRelationRaw(id: number, relation: string, inpage?: number, page?: number, reverse?: boolean): Promise<Concept[]>;
5
- export declare function GetRelationConnections(id: number, relation: string, inpage?: number, page?: number, reverse?: boolean): Promise<Connection[]>;
1
+ export declare function GetRelation(id: number, relation: string, inpage?: number, page?: number, reverse?: boolean): Promise<any>;
2
+ export declare function GetRelationRaw(id: number, relation: string, inpage?: number, page?: number, reverse?: boolean): Promise<any>;
@@ -1,2 +1,9 @@
1
1
  import { Concept } from "../DataStructures/Concept";
2
+ /**
3
+ * Get The Concept From Concept Id
4
+ * @param id this is the id that can be used to get the concept.
5
+ * @param userId This is the user that calls the concept
6
+ * @returns Concept if it exists
7
+ */
2
8
  export default function GetTheConcept(id: number, userId?: number): Promise<Concept>;
9
+ export declare function AddTypeConcept(concept: Concept): Promise<Concept | undefined>;
@@ -1,2 +1,2 @@
1
- export default function InitializeSystem(): Promise<boolean>;
1
+ export default function InitializeSystem(enableAi?: boolean): Promise<boolean>;
2
2
  export declare function PurgatoryDatabaseUpdated(): Promise<void>;
@@ -0,0 +1,2 @@
1
+ import { Concept } from "../../DataStructures/Concept";
2
+ export declare function ConvertFromLConceptToConcept(lconcept: Concept): Concept;
@@ -0,0 +1,2 @@
1
+ import { Connection } from "../../DataStructures/Connection";
2
+ export declare function ConvertFromLConnectionToConnection(lconnection: Connection): Connection;
@@ -0,0 +1,3 @@
1
+ import { Concept } from "../../app";
2
+ import { InnerActions } from "../../Constants/general.const";
3
+ export declare function CreateConnectionBetweenTwoConceptsLocal(ofTheConcept: Concept, toTheConcept: Concept, linker: string, both?: boolean, actions?: InnerActions): Promise<any>;
@@ -1,2 +1,2 @@
1
- import { LConcept } from "../../DataStructures/Local/LConcept";
2
- export declare function CreateDefaultLConcept(): LConcept;
1
+ import { Concept } from "../../DataStructures/Concept";
2
+ export declare function CreateDefaultLConcept(): Concept;
@@ -1 +1,29 @@
1
- export default function CreateLocalBinaryTreeFromData(): Promise<void>;
1
+ /**
2
+ * This will create a binary tree of local concepts that is saved from the indexdb.
3
+ */
4
+ export default function CreateLocalBinaryTreeFromIndexDb(): Promise<void>;
5
+ /**
6
+ * We have designed our system to use local concepts and connections with its own local ids(negative ids) that
7
+ * is only valid for the browser that creates this. We have a translator in our node server.
8
+ * We cannot keep on using the indexdb to get the new data so we populate the data from indexdb to our memory
9
+ * then we use these ids from memory and update the indexdb with the latest id frequently.
10
+ * This function does this process in initlization from indexdb to memory.
11
+ *
12
+ * Here we have locked this function so that other processes cannot access this process in the case that this process is ongoing
13
+ *
14
+ *
15
+ */
16
+ export declare function PopulateTheLocalConceptsToMemory(): Promise<void>;
17
+ /**
18
+ * We have designed our system to use local concepts and connections with its own local ids(negative ids) that
19
+ * is only valid for the browser that creates this. We have a translator in our node server.
20
+ * We cannot keep on using the indexdb to get the new data so we populate the data from indexdb to our memory
21
+ * then we use these ids from memory and update the indexdb with the latest id frequently.
22
+ * This function does this process in initlization from indexdb to memory.
23
+ *
24
+ * This function locked so that no two parallel process can access this functionality at the same time.
25
+ * That might cause some ids to be repeated.
26
+ *
27
+ *
28
+ */
29
+ export declare function PopulateTheLocalConnectionToMemory(): Promise<void>;
@@ -1,2 +1,14 @@
1
- import { LConcept } from "../../DataStructures/Local/LConcept";
2
- export declare function CreateTheCompositionLocal(json: any, ofTheConceptId?: number | null, ofTheConceptUserId?: number | null, mainKey?: number | null, userId?: number | null, accessId?: number | null, sessionInformationId?: number | null): Promise<LConcept>;
1
+ import { InnerActions } from "../../app";
2
+ /**
3
+ * This function converts a json data to concept connection and also preserves its relation.
4
+ * @param json The json data that needs to be converted to the concept connection system
5
+ * @param ofTheConceptId If in case that this composition is part of other composition then this must be the connecting concept.
6
+ * @param ofTheConceptUserId If in case that this composition is part of other composition then this must be the user Id of the connecting concept.
7
+ * @param mainKey If in case that this composition is part of other composition then this must be the main composition
8
+ * @param userId The user Id of the user creating the composition.
9
+ * @param accessId The accessId of the user creating the composition.
10
+ * @param sessionInformationId Session of the user.
11
+ * @param automaticSync for future use.
12
+ * @returns the main concept of this composition.
13
+ */
14
+ export declare function CreateTheCompositionLocal(json: any, ofTheConceptId?: number | null, ofTheConceptUserId?: number | null, mainKey?: number | null, userId?: number | null, accessId?: number | null, sessionInformationId?: number | null, automaticSync?: boolean, actions?: InnerActions): Promise<any>;
@@ -1,2 +1,22 @@
1
- import { LConcept } from "../../DataStructures/Local/LConcept";
2
- export default function CreateTheConceptLocal(referent: string, typecharacter: string, userId: number, categoryId: number, typeId: number, accessId: number, referentId?: number): Promise<LConcept>;
1
+ import { InnerActions } from "../../app";
2
+ /**
3
+ * This function creates the concept in the local system (Local memory and IndexDb) but not in the backend database
4
+ * To create this concept in the backend database you need to sync the local data to the backend by LocalSyncData class.
5
+ *
6
+ * This function creates a id and ghost id which are equal to each other.
7
+ * These id and ghostId are negative which means that they are virtual concepts. After these concepts have been synced with the backend
8
+ * they are converted to real id. After returning from the backend the id changes to positive(+) and real id while the ghostId remains the same
9
+ *
10
+ * The system then saves this relation between -ve id and real id in the backend server and also in the local memory.
11
+ *
12
+ * @param referent This is the string that is the actual value of the concept.
13
+ * @param typecharacter The string that defines the type of the concept.
14
+ * @param userId This is the userId of the creator.
15
+ * @param categoryId This is the category Id of the concept.
16
+ * @param typeId This is the type Id of the concept that relates to the typecharacter passed above.
17
+ * @param accessId This is the accessId of the concept(most probably is the accessId of the user)
18
+ * @param isComposition This is set in the case that the composition needs to be created.
19
+ * @param referentId if this concept refers to any other concept then this needs to be passed.
20
+ * @returns
21
+ */
22
+ export default function CreateTheConceptLocal(referent: string, typecharacter: string, userId: number, categoryId: number, typeId: number, accessId: number, isComposition?: boolean, referentId?: number | null, actions?: InnerActions): Promise<any>;
@@ -1,2 +1,16 @@
1
- import { LConnection } from "../../DataStructures/Local/LConnection";
2
- export declare function CreateTheConnectionLocal(ofTheConceptId: number, toTheConceptId: number, typeId: number, orderId?: number): LConnection;
1
+ import { Concept, InnerActions } from "../../app";
2
+ /**
3
+ * This function creates a connection for the concept connection system. This connection will only be created in real sense
4
+ * once the data is synced using LocalSyncData.SyncDataOnline()
5
+ * Here id and ghostId are created which are negative(these are virtual ids). After they are synced then they become real ids
6
+ * The real ids are then associated with these ghost ids in node server (backend) and also in the local memory.
7
+ * @param ofTheConceptId Of the concept Id for the connection
8
+ * @param toTheConceptId To the concept Id for the connection
9
+ * @param typeId Type of the connection, should be the composition id for internal connection and type concept in case
10
+ * of external connection.
11
+ * @param orderId current context is that for internal connections the order id is less than 3 and for external connections greater than 999
12
+ * @param typeString this is the typeString in the case of external connections.
13
+ * @returns a connection that is created and stored in the local system.
14
+ */
15
+ export declare function CreateTheConnectionLocal(ofTheConceptId: number, toTheConceptId: number, typeId: number, orderId?: number, typeString?: string, userId?: number, actions?: InnerActions): Promise<any>;
16
+ export declare function CreateConnection(ofTheConcept: Concept, toTheConcept: Concept, connectionTypeString: string, actions?: InnerActions): Promise<any>;
@@ -0,0 +1 @@
1
+ export declare function DeleteConceptLocal(id: number): Promise<any>;