mftsccs-node 0.0.0
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/README.md +24 -0
- package/dist/bundle.js +10064 -0
- package/dist/conceptconnection.js +5 -0
- package/dist/createComposition.js +7 -0
- package/dist/index.js +5363 -0
- package/dist/listComposition.js +26 -0
- package/dist/main.js +21 -0
- package/dist/test.js +190 -0
- package/dist/tumble.js +6544 -0
- package/dist/types/Api/Create/CreateTheCharacter.d.ts +3 -0
- package/dist/types/Api/Create/CreateTheConceptApi.d.ts +2 -0
- package/dist/types/Api/Create/CreateTheConnectionApi.d.ts +2 -0
- package/dist/types/Api/Create/CreateTheTextData.d.ts +2 -0
- package/dist/types/Api/Delete/DeleteConceptInBackend.d.ts +1 -0
- package/dist/types/Api/DeleteTheConcept.d.ts +1 -0
- package/dist/types/Api/DeleteTheConnection.d.ts +1 -0
- package/dist/types/Api/GetAccessIdOfUser.d.ts +0 -0
- package/dist/types/Api/GetAiData.d.ts +1 -0
- package/dist/types/Api/GetAllConcepts.d.ts +1 -0
- package/dist/types/Api/GetAllConceptsByType.d.ts +1 -0
- package/dist/types/Api/GetAllConnections.d.ts +1 -0
- package/dist/types/Api/GetAllConnectionsOfComposition.d.ts +3 -0
- package/dist/types/Api/GetAllConnectionsOfCompositionBulk.d.ts +3 -0
- package/dist/types/Api/GetAllLinkerConnectionsFromTheConcept.d.ts +2 -0
- package/dist/types/Api/GetAllPrefetchConnections.d.ts +1 -0
- package/dist/types/Api/GetCharacterDataByCharacter.d.ts +2 -0
- package/dist/types/Api/GetCompositionConnectionsBetweenTwoConcepts.d.ts +2 -0
- package/dist/types/Api/GetConcept.d.ts +2 -0
- package/dist/types/Api/GetConceptBulk.d.ts +3 -0
- package/dist/types/Api/GetConceptByCharacterAndType.d.ts +2 -0
- package/dist/types/Api/GetConceptByCharacterValue.d.ts +2 -0
- package/dist/types/Api/GetConnection.d.ts +2 -0
- package/dist/types/Api/GetConnectionBulk.d.ts +2 -0
- package/dist/types/Api/GetConnectionOfTheConcept.d.ts +2 -0
- package/dist/types/Api/GetReservedConnectionIds.d.ts +1 -0
- package/dist/types/Api/GetReservedIds.d.ts +1 -0
- package/dist/types/Api/Login.d.ts +1 -0
- package/dist/types/Api/MakeTheNameInBackend.d.ts +1 -0
- package/dist/types/Api/MakeTheTypeConceptApi.d.ts +2 -0
- package/dist/types/Api/RecursiveSearch.d.ts +1 -0
- package/dist/types/Api/Search/Search.d.ts +1 -0
- package/dist/types/Api/Search/SearchLinkMultipleApi.d.ts +2 -0
- package/dist/types/Api/Search/SearchWithLinker.d.ts +2 -0
- package/dist/types/Api/Session/CreateSession.d.ts +2 -0
- package/dist/types/Api/Session/CreateSessionVisit.d.ts +1 -0
- package/dist/types/Api/Signin.d.ts +3 -0
- package/dist/types/Api/Signup.d.ts +3 -0
- package/dist/types/Constants/ApiConstants.d.ts +23 -0
- package/dist/types/DataStructures/BaseUrl.d.ts +42 -0
- package/dist/types/DataStructures/BinaryCharacterTree.d.ts +14 -0
- package/dist/types/DataStructures/BinaryTree.d.ts +12 -0
- package/dist/types/DataStructures/BinaryTypeTree.d.ts +15 -0
- package/dist/types/DataStructures/CharacterRepository.d.ts +8 -0
- package/dist/types/DataStructures/Composition/Composition.d.ts +14 -0
- package/dist/types/DataStructures/Composition/CompositionBinaryTree.d.ts +10 -0
- package/dist/types/DataStructures/Composition/CompositionNode.d.ts +21 -0
- package/dist/types/DataStructures/Concept.d.ts +28 -0
- package/dist/types/DataStructures/ConceptData.d.ts +20 -0
- package/dist/types/DataStructures/ConceptsToDraw.d.ts +11 -0
- package/dist/types/DataStructures/Connection.d.ts +28 -0
- package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionBinaryTree.d.ts +11 -0
- package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionNode.d.ts +24 -0
- package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionTypeTree.d.ts +13 -0
- package/dist/types/DataStructures/ConnectionData.d.ts +18 -0
- package/dist/types/DataStructures/FilterSearch.d.ts +6 -0
- package/dist/types/DataStructures/IdentifierFlags.d.ts +11 -0
- package/dist/types/DataStructures/Local/LConcept.d.ts +19 -0
- package/dist/types/DataStructures/Local/LConnection.d.ts +18 -0
- package/dist/types/DataStructures/Local/LNode.d.ts +27 -0
- package/dist/types/DataStructures/Local/LocalBinaryCharacterTree.d.ts +12 -0
- package/dist/types/DataStructures/Local/LocalBinaryTree.d.ts +12 -0
- package/dist/types/DataStructures/Local/LocalBinaryTypeTree.d.ts +13 -0
- package/dist/types/DataStructures/Local/LocalConceptData.d.ts +14 -0
- package/dist/types/DataStructures/Local/LocalConnectionData.d.ts +16 -0
- package/dist/types/DataStructures/Local/LocalSyncData.d.ts +14 -0
- package/dist/types/DataStructures/Node.d.ts +27 -0
- package/dist/types/DataStructures/PatcherStructure.d.ts +8 -0
- package/dist/types/DataStructures/ReferentInfo.d.ts +7 -0
- package/dist/types/DataStructures/ReservedIds.d.ts +10 -0
- package/dist/types/DataStructures/Responses/StandardResponses.d.ts +6 -0
- package/dist/types/DataStructures/Returner.d.ts +7 -0
- package/dist/types/DataStructures/SearchQuery.d.ts +14 -0
- package/dist/types/DataStructures/Security/TokenStorage.d.ts +3 -0
- package/dist/types/DataStructures/Session/SessionData.d.ts +13 -0
- package/dist/types/DataStructures/SettingData.d.ts +5 -0
- package/dist/types/DataStructures/Settings.d.ts +4 -0
- package/dist/types/DataStructures/SigninModel.d.ts +4 -0
- package/dist/types/DataStructures/SignupModel.d.ts +4 -0
- package/dist/types/DataStructures/SyncData.d.ts +15 -0
- package/dist/types/DataStructures/TheCharacter.d.ts +13 -0
- package/dist/types/DataStructures/TheTexts.d.ts +14 -0
- package/dist/types/DataStructures/TokenStorage.d.ts +3 -0
- package/dist/types/DataStructures/User/UserBinaryTree.d.ts +12 -0
- package/dist/types/DataStructures/User/UserNode.d.ts +18 -0
- package/dist/types/Database/GetConceptFromIndexDb.d.ts +0 -0
- package/dist/types/Database/NoIndexDb.d.ts +9 -0
- package/dist/types/Database/indexdblocal.d.ts +3 -0
- package/dist/types/Database/indexeddb.d.ts +3 -0
- package/dist/types/Drawing/ConceptDraw.d.ts +1 -0
- package/dist/types/Drawing/ConceptEvents.d.ts +1 -0
- package/dist/types/Helpers/CheckIfExists.d.ts +8 -0
- package/dist/types/Helpers/RemoveFromArray.d.ts +4 -0
- package/dist/types/Helpers/UniqueInsert.d.ts +1 -0
- package/dist/types/Services/CheckForConnectionDeletion.d.ts +3 -0
- package/dist/types/Services/CheckIfConnection.d.ts +2 -0
- package/dist/types/Services/Composition/BuildComposition.d.ts +3 -0
- package/dist/types/Services/Composition/CompositionCache.d.ts +4 -0
- package/dist/types/Services/Composition/CreateCompositionCache.d.ts +3 -0
- package/dist/types/Services/CreateBinaryTreeFromData.d.ts +1 -0
- package/dist/types/Services/CreateCharacterBinaryTreeFromData.d.ts +1 -0
- package/dist/types/Services/CreateConnectionBetweenTwoConcepts.d.ts +3 -0
- package/dist/types/Services/CreateDefaultConcept.d.ts +2 -0
- package/dist/types/Services/CreateTheComposition.d.ts +2 -0
- package/dist/types/Services/CreateTheConcept.d.ts +4 -0
- package/dist/types/Services/CreateTheConnection.d.ts +2 -0
- package/dist/types/Services/CreateTheConnectionGeneral.d.ts +2 -0
- package/dist/types/Services/CreateTypeTreeFromData.d.ts +1 -0
- package/dist/types/Services/DeleteConcept.d.ts +1 -0
- package/dist/types/Services/DeleteConnection.d.ts +1 -0
- package/dist/types/Services/FindConeceptsFromConnection.d.ts +2 -0
- package/dist/types/Services/FindConnectionsOfCompositionBulkInMemory.d.ts +2 -0
- package/dist/types/Services/GenerateHexNumber.d.ts +1 -0
- package/dist/types/Services/GetAccessIdOfUser.d.ts +0 -0
- package/dist/types/Services/GetComposition.d.ts +10 -0
- package/dist/types/Services/GetCompositionBulk.d.ts +4 -0
- package/dist/types/Services/GetCompositionList.d.ts +2 -0
- package/dist/types/Services/GetConceptByCharacter.d.ts +2 -0
- package/dist/types/Services/GetConnections.d.ts +2 -0
- package/dist/types/Services/GetDataFromIndexDb.d.ts +2 -0
- package/dist/types/Services/GetLink.d.ts +3 -0
- package/dist/types/Services/GetLinkerConnectionFromConcept.d.ts +2 -0
- package/dist/types/Services/GetMaximumConnectionSyncTime.d.ts +2 -0
- package/dist/types/Services/GetTheConcept.d.ts +2 -0
- package/dist/types/Services/GetTheReferent.d.ts +2 -0
- package/dist/types/Services/InitializeSystem.d.ts +2 -0
- package/dist/types/Services/Local/CreateConnectionListFromDatat.d.ts +0 -0
- package/dist/types/Services/Local/CreateDefaultLConcept.d.ts +2 -0
- package/dist/types/Services/Local/CreateLocalBinaryTreeFromData.d.ts +1 -0
- package/dist/types/Services/Local/CreateLocalBinaryTypeTreeFromData.d.ts +1 -0
- package/dist/types/Services/Local/CreateLocalCharacterBinaryTree.d.ts +1 -0
- package/dist/types/Services/Local/CreateTheCompositionLocal.d.ts +2 -0
- package/dist/types/Services/Local/CreateTheConceptLocal.d.ts +2 -0
- package/dist/types/Services/Local/CreateTheConnectionLocal.d.ts +2 -0
- package/dist/types/Services/Local/GetCompositionListLocal.d.ts +2 -0
- package/dist/types/Services/Local/GetCompositionLocal.d.ts +2 -0
- package/dist/types/Services/Local/GetConceptByCharacterLocal.d.ts +1 -0
- package/dist/types/Services/Local/MakeTheConceptLocal.d.ts +2 -0
- package/dist/types/Services/Local/MakeTheInstanceConceptLocal.d.ts +2 -0
- package/dist/types/Services/Local/MakeTheTypeLocal.d.ts +2 -0
- package/dist/types/Services/MakeTheCharacter.d.ts +2 -0
- package/dist/types/Services/MakeTheCharacterData.d.ts +2 -0
- package/dist/types/Services/MakeTheConcept.d.ts +2 -0
- package/dist/types/Services/MakeTheInstanceConcept.d.ts +2 -0
- 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 -0
- package/dist/types/Services/MakeTheTypeConcept.d.ts +2 -0
- package/dist/types/Services/Mqtt/publishMessage.d.ts +1 -0
- package/dist/types/Services/Mqtt/subscribeMessage.d.ts +0 -0
- package/dist/types/Services/PatchComposition.d.ts +2 -0
- package/dist/types/Services/Search/SearchLinkMultiple.d.ts +3 -0
- package/dist/types/Services/Security/GetRequestHeader.d.ts +10 -0
- package/dist/types/Services/SplitStrings.d.ts +1 -0
- package/dist/types/Services/UpdateComposition.d.ts +2 -0
- package/dist/types/Services/User/UserTranslation.d.ts +3 -0
- package/dist/types/app.d.ts +70 -0
- package/package.json +173 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function TrashTheConcept(id: number, token: string): Promise<string | undefined>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function DeleteTheConcept(id: number): Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function DeleteTheConnection(id: number): Promise<void>;
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function GetAiData(): Promise<string | undefined>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function GetAllUserConcepts(userId: number): Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function GetAllConceptsByType(type: string, userId: number): Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function GetAllUserConnections(userId: number): Promise<void>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { Connection } from '../DataStructures/Connection';
|
|
2
|
+
export declare function GetAllConnectionsOfCompositionBulk(composition_ids?: number[]): Promise<Connection[]>;
|
|
3
|
+
export declare function GetAllConnectionsOfCompositionOnline(composition_ids?: number[]): Promise<Connection[]>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function GetAllPrefetchConnections(userId: number, inpage: number): Promise<string | undefined>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function GetReservedConnectionIds(): Promise<string | undefined>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function GetReservedIds(): Promise<string | undefined>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function LoginToBackend(email: string, password: string): Promise<any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function MakeTheNameInBackend(newConceptId: number, referent: string, typeId: number, typeUserId: number): Promise<string | undefined>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function RecursiveSearchApi(composition?: number, listLinkers?: string[], textSearch?: string): Promise<any[]>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function SearchAllConcepts(type: string, search: string, composition: string, token: string, inpage?: number, page?: number): Promise<any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function CreateSessionVisit(sessionId: number, url: string): Promise<any>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare const config: {
|
|
2
|
+
BASE_URL: string;
|
|
3
|
+
};
|
|
4
|
+
export declare const BASE_URL: string;
|
|
5
|
+
export declare const GetConceptUrl: string;
|
|
6
|
+
export declare const GetConceptBulkUrl: string;
|
|
7
|
+
export declare const GetAllConceptsOfUserUrl: string;
|
|
8
|
+
export declare const GetAllConnectionsOfUserUrl: string;
|
|
9
|
+
export declare const GetAllConnectionsOfCompositionUrl: string;
|
|
10
|
+
export declare const GetAllConnectionsOfCompositionBulkUrl: string;
|
|
11
|
+
export declare const GetConceptByCharacterValueUrl: string;
|
|
12
|
+
export declare const GetConceptByCharacterAndTypeUrl: string;
|
|
13
|
+
export declare const GetCharacterByCharacterUrl: string;
|
|
14
|
+
export declare const GetAllConceptsByTypeUrl: string;
|
|
15
|
+
export declare const GetAllConnectionsOfConceptUrl: string;
|
|
16
|
+
export declare const GetAllAiData: string;
|
|
17
|
+
export declare const GetReservedIdUrl: string;
|
|
18
|
+
export declare const CreateTheTextDataUrl: string;
|
|
19
|
+
export declare const CreateTheCharacterDataUrl: string;
|
|
20
|
+
export declare const CreateTheConceptUrl: string;
|
|
21
|
+
export declare const CreateTheConnectionUrl: string;
|
|
22
|
+
export declare function changeBaseUrl(url: string): void;
|
|
23
|
+
export declare function getBaseUrl(): string;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export declare class BaseUrl {
|
|
2
|
+
static BASE_URL: string;
|
|
3
|
+
static AI_URL: string;
|
|
4
|
+
static MQTT_URL: string;
|
|
5
|
+
static NODE_URL: string;
|
|
6
|
+
static MQTT_CONNECTION: any;
|
|
7
|
+
static GetConceptUrl(): string;
|
|
8
|
+
static GetConnectionUrl(): string;
|
|
9
|
+
static GetConceptBulkUrl(): string;
|
|
10
|
+
static GetConnectionBulkUrl(): string;
|
|
11
|
+
static GetAllConceptsOfUserUrl(): string;
|
|
12
|
+
static GetAllConnectionsOfUserUrl(): string;
|
|
13
|
+
static GetAllConnectionsOfCompositionUrl(): string;
|
|
14
|
+
static GetAllConnectionsOfCompositionBulkUrl(): string;
|
|
15
|
+
static GetConceptByCharacterValueUrl(): string;
|
|
16
|
+
static GetConceptByCharacterAndTypeUrl(): string;
|
|
17
|
+
static GetCharacterByCharacterUrl(): string;
|
|
18
|
+
static GetAllConceptsByTypeUrl(): string;
|
|
19
|
+
static GetAllConnectionsOfConceptUrl(): string;
|
|
20
|
+
static GetAllAiData(): string;
|
|
21
|
+
static GetAllPrefetchConnectionsUrl(): string;
|
|
22
|
+
static GetAllLinkerConnectionOfConceptUrl(): string;
|
|
23
|
+
static DeleteConceptUrl(): string;
|
|
24
|
+
static RecursiveSearchUrl(): string;
|
|
25
|
+
static SearchLinkMultipleAllApiUrl(): string;
|
|
26
|
+
static MakeTheNameInBackendUrl(): string;
|
|
27
|
+
static LoginUrl(): string;
|
|
28
|
+
static SignupUrl(): string;
|
|
29
|
+
static GetCompositionConnectionBetweenTwoConceptsUrl(): string;
|
|
30
|
+
static SearchCompositionsUrl(): string;
|
|
31
|
+
static SearchLinkMultipleAll(): string;
|
|
32
|
+
static CreateSessionId(): string;
|
|
33
|
+
static CreateSessionVisitUrl(): string;
|
|
34
|
+
static GetReservedIdUrl(): string;
|
|
35
|
+
static GetReservedConnectionIdUrl(): string;
|
|
36
|
+
static CreateTheTextDataUrl(): string;
|
|
37
|
+
static CreateTheCharacterDataUrl(): string;
|
|
38
|
+
static CreateTheConceptUrl(): string;
|
|
39
|
+
static CreateTheConnectionUrl(): string;
|
|
40
|
+
static MakeTheTypeConceptUrl(): string;
|
|
41
|
+
static DeleteTheConnectionUrl(): string;
|
|
42
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Concept } from "../DataStructures/Concept";
|
|
2
|
+
import { Node } from "./Node";
|
|
3
|
+
export declare class BinaryCharacterTree {
|
|
4
|
+
static characterRoot: Node | null;
|
|
5
|
+
static waitForDataToLoad(): Promise<unknown>;
|
|
6
|
+
static checkFlag(resolve: any): any;
|
|
7
|
+
static addNodeToTree(node: Node): Promise<Node | null>;
|
|
8
|
+
static removeNodeByCharacter(character: string, id: number): Promise<void>;
|
|
9
|
+
static countNumberOfNodes(): number;
|
|
10
|
+
static addConceptToTree(concept: Concept): void;
|
|
11
|
+
static getNodeFromTree(value: string): Node | null;
|
|
12
|
+
static getCharacterAndTypeFromTree(value: string, typeId: number): Promise<Node | null>;
|
|
13
|
+
static removeConceptCharacter(id: number): void;
|
|
14
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Concept } from "../DataStructures/Concept";
|
|
2
|
+
import { Node } from "./Node";
|
|
3
|
+
export declare class BinaryTree {
|
|
4
|
+
static root: Node | null;
|
|
5
|
+
static addNodeToTree(node: Node): Node | undefined;
|
|
6
|
+
static waitForDataToLoad(): Promise<unknown>;
|
|
7
|
+
static checkFlag(resolve: any): any;
|
|
8
|
+
static addConceptToTree(concept: Concept): void;
|
|
9
|
+
static getNodeFromTree(id: number): Promise<Node | null>;
|
|
10
|
+
static removeNodeFromTree(id: number): Promise<void>;
|
|
11
|
+
static countNumberOfNodes(): number;
|
|
12
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Concept } from "../DataStructures/Concept";
|
|
2
|
+
import { Node } from "./Node";
|
|
3
|
+
export declare class BinaryTypeTree {
|
|
4
|
+
static typeRoot: Node | null;
|
|
5
|
+
static addNodeToTree(node: Node): Promise<Node | null>;
|
|
6
|
+
static addConceptToTree(concept: Concept): void;
|
|
7
|
+
static removeTypeConcept(typeId: number, id: number): void;
|
|
8
|
+
static getNodeFromTree(id: number): Node | null;
|
|
9
|
+
static getTypeVariantsFromTree(typeId: number): Concept[] | undefined;
|
|
10
|
+
static waitForDataToLoad(): Promise<unknown>;
|
|
11
|
+
static checkFlag(resolve: any): any;
|
|
12
|
+
static getTypeVariantsFromTreeWithUserId(typeId: number, userId: number): Promise<Concept[]>;
|
|
13
|
+
static getTypeVariantsWithCharacterValue(characterValue: string, typeId: number): Promise<Concept>;
|
|
14
|
+
static countNumberOfNodes(): number;
|
|
15
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TheCharacter } from "./TheCharacter";
|
|
2
|
+
export declare class CharacterRepository {
|
|
3
|
+
name: string;
|
|
4
|
+
constructor();
|
|
5
|
+
static characterData: TheCharacter[];
|
|
6
|
+
static AddCharacter(character: TheCharacter): void;
|
|
7
|
+
static GetCharacter(value: string): TheCharacter;
|
|
8
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Connection } from '../../DataStructures/Connection';
|
|
2
|
+
import { Concept } from '../../DataStructures/Concept';
|
|
3
|
+
export declare class Composition {
|
|
4
|
+
id: number;
|
|
5
|
+
mainConcept: Concept;
|
|
6
|
+
connections: Connection[];
|
|
7
|
+
concepts: Concept[];
|
|
8
|
+
subcompositions: number[];
|
|
9
|
+
cached: any;
|
|
10
|
+
updateCache(): Promise<void>;
|
|
11
|
+
UpdateAcrossDistributedSystem(): void;
|
|
12
|
+
isUpdating(): void;
|
|
13
|
+
GetDataCache(): any;
|
|
14
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Composition } from './Composition';
|
|
2
|
+
import { CompositionNode } from './CompositionNode';
|
|
3
|
+
export declare class CompositionBinaryTree {
|
|
4
|
+
static root: CompositionNode | null;
|
|
5
|
+
static addNodeToTree(node: CompositionNode): CompositionNode | undefined;
|
|
6
|
+
static addCompositionToTree(composition: Composition): void;
|
|
7
|
+
static getNodeFromTree(id: number): Promise<CompositionNode | null>;
|
|
8
|
+
static removeNodeFromTree(id: number): Promise<void>;
|
|
9
|
+
static countNumberOfNodes(): number;
|
|
10
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Composition } from './Composition';
|
|
2
|
+
export declare class CompositionNode {
|
|
3
|
+
expiryTime: Date;
|
|
4
|
+
key: number;
|
|
5
|
+
value: Composition;
|
|
6
|
+
leftNode: CompositionNode | null;
|
|
7
|
+
rightNode: CompositionNode | null;
|
|
8
|
+
height: number;
|
|
9
|
+
constructor(key: number, value: Composition, leftNode: CompositionNode | null, rightNode: CompositionNode | null);
|
|
10
|
+
isValid(): boolean;
|
|
11
|
+
saveToCache(data: any): void;
|
|
12
|
+
addNode(passedNode: CompositionNode, node: CompositionNode | null, height: number): CompositionNode | null;
|
|
13
|
+
rightRotate(y: CompositionNode | null): CompositionNode | null;
|
|
14
|
+
leftRotate(x: CompositionNode | null): CompositionNode | null;
|
|
15
|
+
getHeight(node: CompositionNode | null): number;
|
|
16
|
+
getBalanceFactor(N: CompositionNode | null): number;
|
|
17
|
+
getFromNode(id: number, node: CompositionNode | null): CompositionNode | null;
|
|
18
|
+
removeNode(passedNode: CompositionNode | null, id: number): CompositionNode | null;
|
|
19
|
+
countNodeBelow(root: CompositionNode | null): number;
|
|
20
|
+
inOrderSuccessor(root: CompositionNode): CompositionNode;
|
|
21
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare class Concept {
|
|
2
|
+
x: number;
|
|
3
|
+
y: number;
|
|
4
|
+
id: number;
|
|
5
|
+
ghostId: number;
|
|
6
|
+
userId: number;
|
|
7
|
+
typeId: number;
|
|
8
|
+
typeUserId: number;
|
|
9
|
+
categoryId: number;
|
|
10
|
+
categoryUserId: number;
|
|
11
|
+
referentId: number;
|
|
12
|
+
referentUserId: number;
|
|
13
|
+
characterValue: string;
|
|
14
|
+
securityId: number;
|
|
15
|
+
securityUserId: number;
|
|
16
|
+
accessId: number;
|
|
17
|
+
accessUserId: number;
|
|
18
|
+
sessionInformationId: number;
|
|
19
|
+
sessionInformationUserId: number;
|
|
20
|
+
entryTimeStamp: Date;
|
|
21
|
+
updatedTimeStamp: Date;
|
|
22
|
+
referent: number;
|
|
23
|
+
type: Concept | null | void;
|
|
24
|
+
isNew: boolean;
|
|
25
|
+
isTemp: boolean;
|
|
26
|
+
constructor(id: number, userId: number, typeId: number, typeUserId: number, categoryId: number, categoryUserId: number, referentId: number, referentUserId: number, characterValue: string, securityId: number, securityUserId: number, accessId: number, accessUserId: number, sessionId: number, sessionUserId: number, isNew: boolean | undefined, entryTimeStamp: Date, updatedTimeStamp: Date);
|
|
27
|
+
getType(): void;
|
|
28
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Concept } from "./Concept";
|
|
2
|
+
export declare class ConceptsData {
|
|
3
|
+
name: string;
|
|
4
|
+
constructor();
|
|
5
|
+
static conceptsArray: Concept[];
|
|
6
|
+
static conceptDictionary: Concept[];
|
|
7
|
+
static CheckContains(concept: Concept): boolean;
|
|
8
|
+
static AddConceptToStorage(concept: Concept): void;
|
|
9
|
+
static AddConcept(concept: Concept): void;
|
|
10
|
+
static AddConceptToMemory(concept: Concept): void;
|
|
11
|
+
static AddConceptTemporary(concept: Concept): void;
|
|
12
|
+
static RemoveConcept(concept: Concept): void;
|
|
13
|
+
static GetConcept(id: number): Promise<Concept>;
|
|
14
|
+
static GetConceptByCharacter(characterValue: string): Promise<Concept>;
|
|
15
|
+
static GetConceptByCharacterAndTypeLocal(character_value: string, typeId: number): Promise<Concept>;
|
|
16
|
+
static GetConceptsByTypeId(typeId: number): Concept[];
|
|
17
|
+
static GetConceptsByTypeIdAndUser(typeId: number, userId: number): Promise<Concept[]>;
|
|
18
|
+
static GetBinaryCharacterTree(): import("./Node").Node | null;
|
|
19
|
+
getName(): string;
|
|
20
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Concept } from "./Concept";
|
|
2
|
+
export declare class ConceptsToDraw {
|
|
3
|
+
name: string;
|
|
4
|
+
constructor();
|
|
5
|
+
static conceptsArray: Concept[];
|
|
6
|
+
static CheckContains(concept: Concept): boolean;
|
|
7
|
+
static AddConcept(concept: Concept): void;
|
|
8
|
+
static RemoveConcept(concept: Concept): void;
|
|
9
|
+
static GetConcept(id: number): Concept | null;
|
|
10
|
+
getName(): string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Concept } from "./Concept";
|
|
2
|
+
export declare class Connection {
|
|
3
|
+
id: number;
|
|
4
|
+
userId: number;
|
|
5
|
+
ghostId: number;
|
|
6
|
+
OfTheConceptId: number;
|
|
7
|
+
ToTheConceptId: number;
|
|
8
|
+
ofTheConceptId: number;
|
|
9
|
+
toTheConceptId: number;
|
|
10
|
+
OfTheConceptUserId: number;
|
|
11
|
+
ToTheConceptUserId: number;
|
|
12
|
+
entryTimeStamp: Date;
|
|
13
|
+
terminationDateTime: Date;
|
|
14
|
+
typeId: number;
|
|
15
|
+
typeUserId: number;
|
|
16
|
+
orderId: number;
|
|
17
|
+
orderUserId: number;
|
|
18
|
+
securityId: number;
|
|
19
|
+
securityUserId: number;
|
|
20
|
+
accessId: number;
|
|
21
|
+
accessUserId: number;
|
|
22
|
+
sessionInformationId: number;
|
|
23
|
+
sessionInformationUserId: number;
|
|
24
|
+
localSyncTime: Date;
|
|
25
|
+
isTemp: boolean;
|
|
26
|
+
type: Concept;
|
|
27
|
+
constructor(id: number | undefined, ofTheConceptId: number, toTheConceptId: number, ofTheConceptUserId: number, toTheConceptUserId: number, userId: number, typeId: number, typeUserId: number, orderId: number, orderUserId: number, securityId: number, securityUserId: number, accessId: number, accessUserId: number, sessionInformationId: number, sessionInformationUserId: number);
|
|
28
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Connection } from "../../DataStructures/Connection";
|
|
2
|
+
import { ConnectionNode } from "./ConnectionNode";
|
|
3
|
+
export declare class ConnectionBinaryTree {
|
|
4
|
+
static connectionroot: ConnectionNode | null;
|
|
5
|
+
static addNodeToTree(node: ConnectionNode): ConnectionNode | undefined;
|
|
6
|
+
static addConnectionToTree(connection: Connection): void;
|
|
7
|
+
static waitForDataToLoad(): Promise<unknown>;
|
|
8
|
+
static checkFlag(resolve: any): any;
|
|
9
|
+
static removeNodeFromTree(id: number): Promise<void>;
|
|
10
|
+
static getNodeFromTree(id: number): Promise<ConnectionNode | null>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Connection } from "./../Connection";
|
|
2
|
+
export declare class ConnectionNode {
|
|
3
|
+
key: any;
|
|
4
|
+
value: Connection;
|
|
5
|
+
leftNode: ConnectionNode | null;
|
|
6
|
+
rightNode: ConnectionNode | null;
|
|
7
|
+
currentNode: ConnectionNode | null;
|
|
8
|
+
variants: ConnectionNode[];
|
|
9
|
+
height: number;
|
|
10
|
+
constructor(key: any, value: Connection, leftNode: ConnectionNode | null, rightNode: ConnectionNode | null);
|
|
11
|
+
addCurrentNode(passedNode: ConnectionNode, node: ConnectionNode | null): ConnectionNode;
|
|
12
|
+
addCurrentNodeType(passedNode: ConnectionNode, node: ConnectionNode | null): ConnectionNode;
|
|
13
|
+
addNode(passedNode: ConnectionNode, node: ConnectionNode | null, height: number): ConnectionNode | null;
|
|
14
|
+
addTypeNode(passedNode: ConnectionNode, node: ConnectionNode | null, height: number): ConnectionNode | null;
|
|
15
|
+
rightRotate(y: ConnectionNode | null): ConnectionNode | null;
|
|
16
|
+
leftRotate(x: ConnectionNode | null): ConnectionNode | null;
|
|
17
|
+
getHeight(node: ConnectionNode | null): number;
|
|
18
|
+
getBalanceFactor(N: ConnectionNode | null): number;
|
|
19
|
+
getFromNode(id: number, node: ConnectionNode | null): ConnectionNode | null;
|
|
20
|
+
getCharacterFromNode(value: string, node: ConnectionNode | null): ConnectionNode | null;
|
|
21
|
+
removeNode(passedNode: ConnectionNode | null, id: number): ConnectionNode | null;
|
|
22
|
+
removeNodeWithVariants(passedNode: ConnectionNode | null, typeIdentifier: any, conceptId: number): ConnectionNode | null;
|
|
23
|
+
inOrderSuccessor(root: ConnectionNode): ConnectionNode;
|
|
24
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Connection } from "../../DataStructures/Connection";
|
|
2
|
+
import { ConnectionNode } from "./ConnectionNode";
|
|
3
|
+
export declare class ConnectionTypeTree {
|
|
4
|
+
static connectionTypeRoot: ConnectionNode | null;
|
|
5
|
+
static addNodeToTree(node: ConnectionNode): Promise<ConnectionNode | null>;
|
|
6
|
+
static waitForDataToLoad(): Promise<unknown>;
|
|
7
|
+
static checkFlag(resolve: any): any;
|
|
8
|
+
static addConnectionToTree(connection: Connection): void;
|
|
9
|
+
static removeTypeConcept(typeId: number, id: number): void;
|
|
10
|
+
static getNodeFromTree(id: number): ConnectionNode | null;
|
|
11
|
+
static getTypeVariantsFromTree(typeId: number): Promise<Connection[] | undefined>;
|
|
12
|
+
static getTypeVariantsFromTreeWithUserId(typeId: number, userId: number): Promise<Connection[]>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Connection } from "./Connection";
|
|
2
|
+
export declare class ConnectionData {
|
|
3
|
+
name: string;
|
|
4
|
+
constructor();
|
|
5
|
+
static connectionArray: Connection[];
|
|
6
|
+
static connectionDictionary: Connection[];
|
|
7
|
+
static CheckContains(connection: Connection): boolean;
|
|
8
|
+
static AddConnectionToStorage(connection: Connection): void;
|
|
9
|
+
static AddConnection(connection: Connection): void;
|
|
10
|
+
static AddConnectionToMemory(connection: Connection): void;
|
|
11
|
+
static AddToDictionary(connection: Connection): void;
|
|
12
|
+
static RemoveConnection(connection: Connection): void;
|
|
13
|
+
static GetConnectionTree(): import("./ConnectionBinaryTree/ConnectionNode").ConnectionNode | null;
|
|
14
|
+
static GetConnectionTypeTree(): import("./ConnectionBinaryTree/ConnectionNode").ConnectionNode | null;
|
|
15
|
+
static GetConnection(id: number): Promise<Connection>;
|
|
16
|
+
static GetConnectionsOfCompositionLocal(id: number): Promise<Connection[]>;
|
|
17
|
+
getName(): string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare class IdentifierFlags {
|
|
2
|
+
static isTypeLoaded: boolean;
|
|
3
|
+
static isCharacterLoaded: boolean;
|
|
4
|
+
static isDataLoaded: boolean;
|
|
5
|
+
static isLocalDataLoaded: boolean;
|
|
6
|
+
static isLocalCharacterLoaded: boolean;
|
|
7
|
+
static isLocalTypeLoaded: boolean;
|
|
8
|
+
static isConnectionLoaded: boolean;
|
|
9
|
+
static isConnectionTypeLoaded: boolean;
|
|
10
|
+
static isLocalConnectionLoaded: boolean;
|
|
11
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Concept } from "../Concept";
|
|
2
|
+
export declare class LConcept {
|
|
3
|
+
id: number;
|
|
4
|
+
ghostId: number;
|
|
5
|
+
userId: number;
|
|
6
|
+
typeId: number;
|
|
7
|
+
categoryId: number;
|
|
8
|
+
accessId: number;
|
|
9
|
+
characterValue: string;
|
|
10
|
+
typeCharacter: string;
|
|
11
|
+
entryTimeStamp: Date;
|
|
12
|
+
updatedTimeStamp: Date;
|
|
13
|
+
type: LConcept | null | void | Concept;
|
|
14
|
+
isNew: boolean;
|
|
15
|
+
isComposition: boolean;
|
|
16
|
+
isTemp: boolean;
|
|
17
|
+
constructor(id: number, userId: number, typeId: number, categoryId: number, accessId: number, characterValue: string, typeCharacter: string, isNew: boolean | undefined, entryTimeStamp: Date, updatedTimeStamp: Date);
|
|
18
|
+
getType(): void;
|
|
19
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { LConcept } from "./LConcept";
|
|
2
|
+
export declare class LConnection {
|
|
3
|
+
id: number;
|
|
4
|
+
ghostId: number;
|
|
5
|
+
OfTheConceptId: number;
|
|
6
|
+
ToTheConceptId: number;
|
|
7
|
+
ofTheConceptId: number;
|
|
8
|
+
toTheConceptId: number;
|
|
9
|
+
entryTimeStamp: Date;
|
|
10
|
+
terminationDateTime: Date;
|
|
11
|
+
accessId: number;
|
|
12
|
+
typeId: number;
|
|
13
|
+
orderId: number;
|
|
14
|
+
localSyncTime: Date;
|
|
15
|
+
isTemp: boolean;
|
|
16
|
+
type: LConcept;
|
|
17
|
+
constructor(id: number | undefined, ofTheConceptId: number, toTheConceptId: number, typeId: number, orderId: number, accessId: number);
|
|
18
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { LConcept } from "./LConcept";
|
|
2
|
+
export declare class LNode {
|
|
3
|
+
key: any;
|
|
4
|
+
value: LConcept;
|
|
5
|
+
leftNode: LNode | null;
|
|
6
|
+
rightNode: LNode | null;
|
|
7
|
+
currentNode: LNode | null;
|
|
8
|
+
variants: LNode[];
|
|
9
|
+
height: number;
|
|
10
|
+
constructor(key: any, value: LConcept, leftNode: LNode | null, rightNode: LNode | null);
|
|
11
|
+
addCurrentNode(passedNode: LNode, node: LNode | null): LNode;
|
|
12
|
+
addCurrentNodeType(passedNode: LNode, node: LNode | null): LNode;
|
|
13
|
+
addNode(passedNode: LNode, node: LNode | null, height: number): LNode | null;
|
|
14
|
+
addCharacterNode(passedNode: LNode, node: LNode | null, height: number): LNode | null;
|
|
15
|
+
addTypeNode(passedNode: LNode, node: LNode | null, height: number): LNode | null;
|
|
16
|
+
rightRotate(y: LNode | null): LNode | null;
|
|
17
|
+
leftRotate(x: LNode | null): LNode | null;
|
|
18
|
+
getHeight(node: LNode | null): number;
|
|
19
|
+
getBalanceFactor(N: LNode | null): number;
|
|
20
|
+
getFromNode(id: number, node: LNode | null): LNode | null;
|
|
21
|
+
getCharacterFromNode(value: string, node: LNode | null): LNode | null;
|
|
22
|
+
getFromNodeWithCharacterAndType(value: string, typeId: number, node: LNode | null): LNode | null;
|
|
23
|
+
removeNode(passedNode: LNode | null, id: number): LNode | null;
|
|
24
|
+
removeNodeWithVariants(passedNode: LNode | null, typeIdentifier: any, conceptId: number): LNode | null;
|
|
25
|
+
countNodeBelow(root: LNode | null): number;
|
|
26
|
+
inOrderSuccessor(root: LNode): LNode;
|
|
27
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { LConcept } from "../../DataStructures/Local/LConcept";
|
|
2
|
+
import { LNode } from "./../Local/LNode";
|
|
3
|
+
export declare class LocalBinaryCharacterTree {
|
|
4
|
+
static LocalCharacterRoot: LNode | null;
|
|
5
|
+
static waitForDataToLoad(): Promise<unknown>;
|
|
6
|
+
static checkFlag(resolve: any): any;
|
|
7
|
+
static addNodeToTree(node: LNode): Promise<LNode | null>;
|
|
8
|
+
static addConceptToTree(concept: LConcept): void;
|
|
9
|
+
static getNodeFromTree(value: string): LNode | null;
|
|
10
|
+
static getCharacterAndTypeFromTree(value: string, typeId: number): Promise<LNode | null>;
|
|
11
|
+
static removeConceptType(character: string, id: number): void;
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { LConcept } from "../../DataStructures/Local/LConcept";
|
|
2
|
+
import { LNode } from "./../Local/LNode";
|
|
3
|
+
export declare class LocalBinaryTree {
|
|
4
|
+
static root: LNode | null;
|
|
5
|
+
static addNodeToTree(node: LNode): LNode | undefined;
|
|
6
|
+
static addConceptToTree(concept: LConcept): void;
|
|
7
|
+
static waitForDataToLoad(): Promise<unknown>;
|
|
8
|
+
static checkFlag(resolve: any): any;
|
|
9
|
+
static getNodeFromTree(id: number): Promise<LNode | null>;
|
|
10
|
+
static getCharacterAndTypeFromTree(value: string, typeId: number): LNode | null;
|
|
11
|
+
static removeNodeFromTree(id: number): Promise<void>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { LConcept } from "../../DataStructures/Local/LConcept";
|
|
2
|
+
import { LNode } from "./LNode";
|
|
3
|
+
export declare class LocalBinaryTypeTree {
|
|
4
|
+
static LocalTypeRoot: LNode | null;
|
|
5
|
+
static addNodeToTree(node: LNode): Promise<LNode | null>;
|
|
6
|
+
static addConceptToTree(concept: LConcept): void;
|
|
7
|
+
static removeConceptType(typeId: number, id: number): void;
|
|
8
|
+
static getNodeFromTree(id: number): LNode | null;
|
|
9
|
+
static getTypeVariantsFromTree(typeId: number): LConcept[] | undefined;
|
|
10
|
+
static waitForDataToLoad(): Promise<unknown>;
|
|
11
|
+
static checkFlag(resolve: any): any;
|
|
12
|
+
static getTypeVariantsFromTreeWithUserId(typeId: number, userId: number): Promise<LConcept[]>;
|
|
13
|
+
}
|