mftsccs-node 0.2.4 → 0.2.6
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.
- package/dist/bundle.js +2 -0
- package/dist/bundle.js.LICENSE.txt +1 -0
- package/dist/main.bundle.js +1 -1
- package/dist/serviceWorker.bundle.js +1 -1
- package/dist/types/Api/Create/CreateTheConceptApi.d.ts +1 -1
- package/dist/types/Api/DeleteConnectionApiBulk.d.ts +1 -0
- package/dist/types/Api/DeleteTheConcept.d.ts +1 -1
- package/dist/types/Api/DeleteTheConnection.d.ts +1 -1
- package/dist/types/Api/GetAllConnectionsOfComposition.d.ts +1 -1
- package/dist/types/Api/GetAllConnectionsOfCompositionBulk.d.ts +2 -2
- package/dist/types/Api/GetCharacterDataByCharacter.d.ts +1 -1
- package/dist/types/Api/GetCompositionConnectionsBetweenTwoConcepts.d.ts +2 -1
- package/dist/types/Api/GetConcept.d.ts +2 -6
- package/dist/types/Api/GetConceptBulk.d.ts +1 -8
- package/dist/types/Api/GetConceptByCharacterAndType.d.ts +3 -1
- package/dist/types/Api/GetConnection.d.ts +1 -1
- package/dist/types/Api/GetConnectionBulk.d.ts +0 -5
- package/dist/types/Api/GetConnectionOfTheConcept.d.ts +2 -1
- package/dist/types/Api/Images/GetImages.d.ts +1 -1
- package/dist/types/Api/Login.d.ts +1 -1
- package/dist/types/Api/MakeTheTypeConceptApi.d.ts +0 -7
- package/dist/types/Api/RecursiveSearch.d.ts +1 -6
- package/dist/types/Api/Search/FreeschemaQueryApi.d.ts +1 -1
- package/dist/types/Api/Search/SearchInternalApi.d.ts +0 -1
- package/dist/types/Api/SearchConcept/GetConceptByCharacterAndCategoryApi.d.ts +1 -1
- package/dist/types/Api/SearchConcept/GetTypeConceptByBulk.d.ts +2 -0
- package/dist/types/Api/Signin.d.ts +1 -1
- package/dist/types/Api/Signup.d.ts +1 -17
- package/dist/types/Constants/FormatConstants.d.ts +0 -1
- package/dist/types/DataStructures/BaseUrl.d.ts +1 -32
- package/dist/types/DataStructures/BinaryTree.d.ts +0 -1
- package/dist/types/DataStructures/BinaryTypeTree.d.ts +5 -7
- package/dist/types/DataStructures/Concept.d.ts +15 -11
- package/dist/types/DataStructures/ConceptData.d.ts +2 -7
- package/dist/types/DataStructures/Connection.d.ts +10 -6
- package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionBinaryTree.d.ts +1 -3
- package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionNode.d.ts +0 -3
- package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionTypeTree.d.ts +9 -16
- package/dist/types/DataStructures/ConnectionData.d.ts +3 -11
- package/dist/types/DataStructures/Local/LConcept.d.ts +3 -5
- package/dist/types/DataStructures/Local/LConnection.d.ts +3 -3
- package/dist/types/DataStructures/Local/LNode.d.ts +3 -5
- package/dist/types/DataStructures/Local/LocalBinaryCharacterTree.d.ts +2 -3
- package/dist/types/DataStructures/Local/LocalBinaryTree.d.ts +2 -3
- package/dist/types/DataStructures/Local/LocalBinaryTypeTree.d.ts +4 -4
- package/dist/types/DataStructures/Local/LocalConceptData.d.ts +9 -16
- package/dist/types/DataStructures/Local/LocalConnectionData.d.ts +9 -13
- package/dist/types/DataStructures/Local/LocalSyncData.d.ts +10 -29
- package/dist/types/DataStructures/Node.d.ts +0 -1
- package/dist/types/DataStructures/Search/FreeschemaQuery.d.ts +1 -2
- package/dist/types/DataStructures/Search/SearchStructure.d.ts +0 -1
- package/dist/types/DataStructures/SearchQuery.d.ts +0 -1
- package/dist/types/DataStructures/Security/TokenStorage.d.ts +1 -2
- package/dist/types/DataStructures/SyncData.d.ts +13 -1
- package/dist/types/DataStructures/Transaction/Transaction.d.ts +30 -0
- package/dist/types/DataStructures/User/UserBinaryTree.d.ts +7 -5
- package/dist/types/DataStructures/User/UserNode.d.ts +5 -3
- package/dist/types/Database/NoIndexDb.d.ts +1 -1
- package/dist/types/Database/indexdblocal.d.ts +0 -40
- package/dist/types/Database/indexeddb.d.ts +0 -50
- package/dist/types/Helpers/CheckIfExists.d.ts +3 -2
- package/dist/types/Helpers/RemoveFromArray.d.ts +2 -1
- package/dist/types/Services/AccessControl/AccessControlCacheService.d.ts +19 -0
- package/dist/types/Services/AccessControl/AccessControlService.d.ts +267 -0
- package/dist/types/Services/AccessControl/PermissionSet.d.ts +8 -0
- package/dist/types/Services/Common/ErrorPosting.d.ts +0 -8
- package/dist/types/Services/ConceptFinding/GetConceptByCharacterAndCategory.d.ts +1 -0
- package/dist/types/Services/Conversion/ConvertConcepts.d.ts +5 -3
- package/dist/types/Services/CreateBinaryTreeFromData.d.ts +1 -4
- package/dist/types/Services/CreateCharacterBinaryTreeFromData.d.ts +0 -4
- package/dist/types/Services/CreateConnectionBetweenTwoConcepts.d.ts +1 -1
- package/dist/types/Services/CreateTheComposition.d.ts +2 -1
- package/dist/types/Services/CreateTheConcept.d.ts +4 -3
- package/dist/types/Services/CreateTheConnection.d.ts +1 -9
- package/dist/types/Services/CreateTheConnectionGeneral.d.ts +4 -1
- package/dist/types/Services/Delete/DeleteConnectionByType.d.ts +13 -0
- package/dist/types/Services/Delete/GetAllConnectionByType.d.ts +16 -0
- package/dist/types/Services/DeleteConcept.d.ts +1 -2
- package/dist/types/Services/DeleteConnection.d.ts +2 -2
- package/dist/types/Services/FindConeceptsFromConnection.d.ts +0 -4
- package/dist/types/Services/FindConnectionsOfCompositionBulkInMemory.d.ts +2 -1
- package/dist/types/Services/GetComposition.d.ts +2 -139
- package/dist/types/Services/GetCompositionBulk.d.ts +5 -94
- package/dist/types/Services/GetCompositionList.d.ts +0 -5
- package/dist/types/Services/GetConceptByCharacter.d.ts +3 -2
- package/dist/types/Services/GetConnections.d.ts +2 -1
- package/dist/types/Services/GetDataFromIndexDb.d.ts +2 -2
- package/dist/types/Services/GetLink.d.ts +1 -1
- package/dist/types/Services/GetRelation.d.ts +5 -2
- package/dist/types/Services/GetTheConcept.d.ts +0 -7
- package/dist/types/Services/InitializeSystem.d.ts +1 -1
- package/dist/types/Services/Local/CreateDefaultLConcept.d.ts +2 -2
- package/dist/types/Services/Local/CreateLocalBinaryTreeFromData.d.ts +1 -29
- package/dist/types/Services/Local/CreateTheCompositionLocal.d.ts +2 -14
- package/dist/types/Services/Local/CreateTheConceptLocal.d.ts +2 -22
- package/dist/types/Services/Local/CreateTheConnectionLocal.d.ts +2 -16
- package/dist/types/Services/Local/GetCompositionListLocal.d.ts +0 -12
- package/dist/types/Services/Local/GetConceptByCharacterLocal.d.ts +1 -10
- package/dist/types/Services/Local/MakeTheConceptLocal.d.ts +2 -2
- package/dist/types/Services/Local/MakeTheInstanceConceptLocal.d.ts +2 -18
- package/dist/types/Services/Local/MakeTheTypeLocal.d.ts +2 -16
- package/dist/types/Services/Local/UpdateCompositionLocal.d.ts +2 -3
- package/dist/types/Services/Logs/LogEvent.d.ts +1 -0
- package/dist/types/Services/MakeTheConcept.d.ts +1 -1
- package/dist/types/Services/MakeTheInstanceConcept.d.ts +3 -15
- package/dist/types/Services/MakeTheLocalConcept.d.ts +0 -0
- package/dist/types/Services/MakeTheName.d.ts +2 -0
- package/dist/types/Services/MakeTheTimestamp.d.ts +2 -1
- package/dist/types/Services/MakeTheTypeConcept.d.ts +3 -1
- package/dist/types/Services/Search/DataIdFormat.d.ts +18 -18
- package/dist/types/Services/Search/FormatData.d.ts +10 -20
- package/dist/types/Services/Search/SearchLinkInternal.d.ts +0 -1
- package/dist/types/Services/Search/SearchLinkMultiple.d.ts +1 -53
- package/dist/types/Services/Search/SearchWithTypeAndLinker.d.ts +5 -53
- package/dist/types/Services/Security/GetRequestHeader.d.ts +10 -3
- package/dist/types/Services/UpdateComposition.d.ts +1 -1
- package/dist/types/Services/User/UserTranslation.d.ts +6 -3
- package/dist/types/Services/auth/AuthService.d.ts +1 -0
- package/dist/types/WrapperFunctions/SchemaQueryObservable.d.ts +11 -9
- package/dist/types/app.d.ts +26 -128
- package/package.json +1 -1
|
@@ -1,100 +1,11 @@
|
|
|
1
1
|
import { Connection } from "../DataStructures/Connection";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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>;
|
|
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[]>;
|
|
61
5
|
/**
|
|
62
6
|
* Used to prefetch all the connections and their related concepts.
|
|
63
7
|
* @param connectionIds these are the connection ids that are used to fetch all the connections and also their related concepts.
|
|
64
8
|
* @returns all the connections that are passed as ids.
|
|
65
9
|
*/
|
|
66
|
-
export declare function GetConnectionDataPrefetch(connectionIds
|
|
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>;
|
|
10
|
+
export declare function GetConnectionDataPrefetch(connectionIds?: number[]): Promise<Connection[]>;
|
|
11
|
+
export declare function GetCompositionFromConnectionsWithDataIdInObject(ids?: number[], connections?: number[]): Promise<any>;
|
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
import { Concept } from "../app";
|
|
2
1
|
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>;
|
|
5
2
|
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,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
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 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { Connection } from "../DataStructures/Connection";
|
|
2
|
+
export declare function GetConnectionById(id: number): Promise<Connection>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function
|
|
2
|
-
export declare function
|
|
1
|
+
export declare function GetDataFromIndexDb(): Promise<void>;
|
|
2
|
+
export declare function GetDataFromIndexDbLocal(): 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,2 +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,9 +1,2 @@
|
|
|
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
|
-
*/
|
|
8
2
|
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(
|
|
1
|
+
export default function InitializeSystem(): Promise<boolean>;
|
|
2
2
|
export declare function PurgatoryDatabaseUpdated(): Promise<void>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function CreateDefaultLConcept():
|
|
1
|
+
import { LConcept } from "../../DataStructures/Local/LConcept";
|
|
2
|
+
export declare function CreateDefaultLConcept(): LConcept;
|
|
@@ -1,29 +1 @@
|
|
|
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
|
+
export default function CreateLocalBinaryTreeFromData(): Promise<void>;
|
|
@@ -1,14 +1,2 @@
|
|
|
1
|
-
import {
|
|
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
|
+
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,22 +1,2 @@
|
|
|
1
|
-
import {
|
|
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
|
+
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,16 +1,2 @@
|
|
|
1
|
-
import {
|
|
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>;
|
|
1
|
+
import { LConnection } from "../../DataStructures/Local/LConnection";
|
|
2
|
+
export declare function CreateTheConnectionLocal(ofTheConceptId: number, toTheConceptId: number, typeId: number, orderId?: number): LConnection;
|
|
@@ -1,14 +1,2 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This function returns the list of composition which have the type @param compositionName
|
|
3
|
-
* @param compositionName The type of the composition to pull
|
|
4
|
-
* @param userId User Id of the user trying to pull the list
|
|
5
|
-
* @returns list of compositions.
|
|
6
|
-
*/
|
|
7
1
|
export declare function GetCompositionListLocal(compositionName: string, userId: number): Promise<any>;
|
|
8
|
-
/**
|
|
9
|
-
* This function returns the list of composition with data - id format which have the type @param compositionName
|
|
10
|
-
* @param compositionName The type of the composition to pull
|
|
11
|
-
* @param userId User Id of the user trying to pull the list
|
|
12
|
-
* @returns list of compositions with data - id format.
|
|
13
|
-
*/
|
|
14
2
|
export declare function GetCompositionListLocalWithId(compositionName: string, userId: number): Promise<any>;
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export default function GetConceptByCharacterLocal(characterValue: string): Promise<Concept>;
|
|
3
|
-
/**
|
|
4
|
-
*
|
|
5
|
-
* @param character the character value of the concept we want to find in our local system.
|
|
6
|
-
* @returns LConcept which will be the associated concept with the character Value.
|
|
7
|
-
*/
|
|
8
|
-
export declare function GetConceptByCharacterAndCategoryLocal(character: string): Promise<any>;
|
|
9
|
-
export declare function GetConceptByCategoryAndCharacterLocalMemory(value: string, categoryId: number): Promise<Concept>;
|
|
10
|
-
export declare function GetConceptByCharacterLocalFull(characterValue: string): Promise<Concept>;
|
|
1
|
+
export default function GetConceptByCharacterLocal(characterValue: string): Promise<import("../../app").LConcept>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export default function MakeTheConceptLocal(referent: string, typeCharacter: string, userId: number, categoryId: number, typeId: number
|
|
1
|
+
import { LConcept } from "../../DataStructures/Local/LConcept";
|
|
2
|
+
export default function MakeTheConceptLocal(referent: string, typeCharacter: string, userId: number, categoryId: number, typeId: number): Promise<LConcept>;
|
|
@@ -1,18 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
* This is the basic function of the concept connection system. This function let's you create a concept within the constraints of the
|
|
4
|
-
* concept connection system. This function is the building block of the concept connection system.
|
|
5
|
-
* This function automatically passes the concept to be synced to the background. Next time you sync the data this concept will also be created in the backend.
|
|
6
|
-
* @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.
|
|
7
|
-
* @param referent the actual value of the concept. The actual name of value of the concept.
|
|
8
|
-
* @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
|
|
9
|
-
* connected internally with this concept. If composition is true then always a new concept is created otherwise it checks if the concept already exists
|
|
10
|
-
* and creates only in the case that the concept does not already exists with its type and value as its unique identifier.
|
|
11
|
-
* @param userId the userId of the creator.
|
|
12
|
-
* @param accessId this is the accessId of the creator. By default should be 4.
|
|
13
|
-
* @param sessionInformationId this is the session that is created by the system.
|
|
14
|
-
* @param referentId In case we need this concept to refer to any other concept.
|
|
15
|
-
* @param actions InnerActions Array for capturing concepts and connection
|
|
16
|
-
* @returns a concept which is either newly created or an older concept that already exists.
|
|
17
|
-
*/
|
|
18
|
-
export declare function MakeTheInstanceConceptLocal(type: string, referent: string, composition: boolean | undefined, userId: number, accessId: number, sessionInformationId?: number, referentId?: number, actions?: InnerActions): Promise<any>;
|
|
1
|
+
import { LConcept } from "../../DataStructures/Local/LConcept";
|
|
2
|
+
export declare function MakeTheInstanceConceptLocal(type: string, referent: string, composition: boolean | undefined, userId: number, accessId: number, sessionInformationId?: number, referentId?: number): Promise<LConcept>;
|
|
@@ -1,16 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* There are two types of concepts. One type of concept is a type concept. These concepts have no actual value and do not mean
|
|
5
|
-
* anything unless they are associated with other values. These are placeholders like first_name, last_name, age etc that are required in the system.
|
|
6
|
-
* These types need to be created seperately.
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* @param typeString type of the concept that needs to be created.
|
|
10
|
-
* @param sessionId SessionId of the user
|
|
11
|
-
* @param sessionUserId Not required pass 999
|
|
12
|
-
* @param userId UserId of the user creating this concept
|
|
13
|
-
* @param actions InnerActions|undefined actions to collect
|
|
14
|
-
* @returns
|
|
15
|
-
*/
|
|
16
|
-
export declare function MakeTheTypeConceptLocal(typeString: string, sessionId: number, sessionUserId: number, userId: number, actions?: InnerActions): Promise<Concept>;
|
|
1
|
+
import { LConcept } from "../../DataStructures/Local/LConcept";
|
|
2
|
+
export default function MakeTheTypeConceptLocal(typeString: string, sessionId: number, sessionUserId: number, userId: number): Promise<LConcept>;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { PatcherStructure } from
|
|
2
|
-
|
|
3
|
-
export declare function UpdateCompositionLocal(patcherStructure: PatcherStructure, actions?: InnerActions): Promise<any>;
|
|
1
|
+
import { PatcherStructure } from '../../DataStructures/PatcherStructure';
|
|
2
|
+
export declare function UpdateCompositionLocal(patcherStructure: PatcherStructure): Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function LogEvent(EventName: string, EventDescription: string, event: any): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { Concept } from "../DataStructures/Concept";
|
|
2
|
-
export default function MakeTheConcept(referent: string, userId: number, categoryId: number, typeId: number, referentId: number, accessId: number,
|
|
2
|
+
export default function MakeTheConcept(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>;
|
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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>;
|
|
1
|
+
import { Concept } from "../DataStructures/Concept";
|
|
2
|
+
import { InnerActions } from "../DataStructures/Transaction/Transaction";
|
|
3
|
+
export default function MakeTheInstanceConcept(type: string, referent: string, composition: boolean | undefined, userId: number, passedAccessId: number, passedSessionId?: number, referentId?: number, actions?: InnerActions): Promise<Concept>;
|
|
File without changes
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { Concept } from "../DataStructures/Concept";
|
|
2
|
+
export declare function MakeTheName(theCharacterData: string, userId: number, securityId: number, securityUserId: number, accessId: number, accessUserId: number, sessionInformationId: number, sessionInformationUserId: number, typeId: number, typeUserId: number, existingConcept: Concept): Promise<Concept>;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { Concept } from "../DataStructures/Concept";
|
|
2
|
+
export declare function MakeTheTimestamp(type: string, referent: string, userId: number, accessId: number, sessionInformationId?: number): Promise<Concept>;
|
|
@@ -1 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import { Concept } from "../DataStructures/Concept";
|
|
2
|
+
import { InnerActions } from "../DataStructures/Transaction/Transaction";
|
|
3
|
+
export declare function MakeTheTypeConcept(typeString: string, sessionId: number, sessionUserId: number, userId: number, actions?: InnerActions): Promise<Concept>;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { Connection } from "../../app";
|
|
2
2
|
/**
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export declare function FormatFunctionDataForData(connections: Connection[], compositionData
|
|
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
12
|
/**
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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
22
|
export declare function FormatFromConnectionsAlteredArrayExternal(connections: Connection[], compositionData: any[], newCompositionData: any, mainComposition: number[], reverse: number[] | undefined, CountDictionary: any[]): Promise<any[]>;
|
|
23
23
|
/**
|
|
24
24
|
* ## Format DATA-ID ##
|
|
@@ -1,15 +1,4 @@
|
|
|
1
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
2
|
/**
|
|
14
3
|
*
|
|
15
4
|
* ## Format Normal ##
|
|
@@ -25,12 +14,13 @@ export declare function formatFunction(connections: Connection[], compositionDat
|
|
|
25
14
|
*/
|
|
26
15
|
export declare function formatFunctionForData(connections: Connection[], compositionData: any, reverse: number[]): Promise<any>;
|
|
27
16
|
/**
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
17
|
+
* ######### Format is normal ######### used for listing. This only provides type connections.
|
|
18
|
+
* This is helpful in building a format that has multiple mainCompositions i.e. in the context of the list
|
|
19
|
+
* The list format is helpful because you do not have to go over each individual query.
|
|
20
|
+
* @param connections the type connections that need (external connections) to be passed
|
|
21
|
+
* @param compositionData this is a dictionary type of format that has all the build compositions {id: { actual data}}
|
|
22
|
+
* @param mainComposition this is list of ids of the main composition that builds the tree
|
|
23
|
+
* @param reverse this is the list of connections ids that needs to go to the reverse direction (to---->from)
|
|
24
|
+
* @returns
|
|
25
|
+
*/
|
|
26
|
+
export declare function FormatConceptsAndConnectionsNormalList(connections: Connection[] | undefined, compositionData: any[] | undefined, mainComposition: number[] | undefined, newCompositionData: any, reverse?: number[]): Promise<any[]>;
|
|
@@ -1,55 +1,3 @@
|
|
|
1
1
|
import { SearchQuery } from "../../DataStructures/SearchQuery";
|
|
2
|
-
|
|
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
|
-
*/
|
|
2
|
+
export declare function SearchLinkMultipleAll(searchQuery: SearchQuery[], token?: string): Promise<any>;
|
|
55
3
|
export declare function FormatFromConnections(linkers: number[], compositionData: any[], mainComposition: number, reverse?: number[]): Promise<any>;
|