mftsccs-node 0.2.3 → 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.
- package/dist/main.bundle.js +2 -0
- package/dist/main.bundle.js.LICENSE.txt +1 -0
- package/dist/serviceWorker.bundle.js +2 -0
- package/dist/serviceWorker.bundle.js.LICENSE.txt +1 -0
- package/dist/types/AccessTracker/accessTracker.d.ts +67 -0
- package/dist/types/Anomaly/anomaly.d.ts +103 -0
- package/dist/types/Api/Create/CreateTheConceptApi.d.ts +1 -1
- package/dist/types/Api/Create/CreateTheGhostConceptApi.d.ts +3 -0
- package/dist/types/Api/Create/CreateTheGhostConnectionApi.d.ts +2 -0
- package/dist/types/Api/Delete/DeleteUserInBackend.d.ts +1 -0
- package/dist/types/Api/DeleteConnectionBulkApi.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 +1 -2
- package/dist/types/Api/GetConcept.d.ts +6 -2
- package/dist/types/Api/GetConceptBulk.d.ts +8 -1
- package/dist/types/Api/GetConceptByCharacterAndType.d.ts +1 -2
- package/dist/types/Api/GetConnection.d.ts +1 -1
- package/dist/types/Api/GetConnectionBulk.d.ts +5 -0
- package/dist/types/Api/GetConnectionOfTheConcept.d.ts +1 -2
- package/dist/types/Api/GetConnections/GetConnectionsByTypeApi.d.ts +3 -0
- package/dist/types/Api/Images/GetImages.d.ts +1 -0
- package/dist/types/Api/Local/GetLocalConceptByCharacterValue.d.ts +2 -0
- package/dist/types/Api/Login.d.ts +1 -1
- package/dist/types/Api/MakeTheTypeConceptApi.d.ts +7 -0
- package/dist/types/Api/Prototype/CreatePrototype.d.ts +2 -0
- package/dist/types/Api/Prototype/Selector.d.ts +15 -0
- package/dist/types/Api/RecursiveSearch.d.ts +6 -1
- package/dist/types/Api/Search/FreeschemaQueryApi.d.ts +1 -1
- package/dist/types/Api/Search/SearchInternalApi.d.ts +1 -0
- package/dist/types/Api/Search/SearchWithTypeAndLinker.d.ts +2 -0
- package/dist/types/Api/SearchConcept/GetConceptByCharacterAndCategoryApi.d.ts +1 -1
- package/dist/types/Api/Signin.d.ts +1 -1
- package/dist/types/Api/Signup.d.ts +17 -1
- package/dist/types/Api/Translate/TranslateLocalToReal.d.ts +2 -0
- package/dist/types/Constants/AccessConstants.d.ts +3 -0
- package/dist/types/Constants/FormatConstants.d.ts +1 -0
- package/dist/types/Constants/ckeditorCSS.d.ts +1 -0
- package/dist/types/Constants/general.const.d.ts +6 -0
- package/dist/types/Constants/page.const.d.ts +5 -0
- package/dist/types/DataStructures/BaseUrl.d.ts +33 -0
- package/dist/types/DataStructures/BinaryTree.d.ts +1 -0
- package/dist/types/DataStructures/BinaryTypeTree.d.ts +7 -5
- package/dist/types/DataStructures/Concept.d.ts +11 -15
- package/dist/types/DataStructures/ConceptData.d.ts +7 -2
- package/dist/types/DataStructures/Connection.d.ts +6 -10
- package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionBinaryTree.d.ts +3 -1
- package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionNode.d.ts +3 -0
- package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionOfNode.d.ts +10 -0
- package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionOfTheTree.d.ts +24 -0
- package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionTypeNode.d.ts +10 -0
- package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionTypeTree.d.ts +16 -9
- package/dist/types/DataStructures/ConnectionBinaryTree/NodePrimitive.d.ts +15 -0
- package/dist/types/DataStructures/ConnectionByType/GetConnectionByType.d.ts +4 -0
- package/dist/types/DataStructures/ConnectionData.d.ts +11 -3
- package/dist/types/DataStructures/Local/LConcept.d.ts +5 -3
- package/dist/types/DataStructures/Local/LConnection.d.ts +3 -3
- package/dist/types/DataStructures/Local/LNode.d.ts +5 -3
- package/dist/types/DataStructures/Local/LocalBinaryCharacterTree.d.ts +3 -2
- package/dist/types/DataStructures/Local/LocalBinaryTree.d.ts +3 -2
- package/dist/types/DataStructures/Local/LocalBinaryTypeTree.d.ts +4 -4
- package/dist/types/DataStructures/Local/LocalConceptData.d.ts +16 -9
- package/dist/types/DataStructures/Local/LocalConnectionData.d.ts +13 -9
- package/dist/types/DataStructures/Local/LocalGhostIdTree.d.ts +11 -0
- package/dist/types/DataStructures/Local/LocalId.d.ts +19 -0
- package/dist/types/DataStructures/Local/LocalSyncData.d.ts +29 -10
- package/dist/types/DataStructures/Node.d.ts +1 -0
- package/dist/types/DataStructures/Prototype/Prototype.d.ts +19 -0
- package/dist/types/DataStructures/Prototype/PrototypeOption.d.ts +4 -0
- package/dist/types/DataStructures/Prototype/QuerySelector.d.ts +4 -0
- package/dist/types/DataStructures/Search/FreeschemaQuery.d.ts +2 -1
- package/dist/types/DataStructures/Search/SearchStructure.d.ts +1 -0
- package/dist/types/DataStructures/SearchQuery.d.ts +1 -0
- package/dist/types/DataStructures/Security/TokenStorage.d.ts +2 -1
- package/dist/types/DataStructures/SyncData.d.ts +1 -13
- package/dist/types/DataStructures/TypeLibrary.d.ts +19 -0
- package/dist/types/DataStructures/TypeNode.d.ts +18 -0
- package/dist/types/DataStructures/User/UserBinaryTree.d.ts +5 -7
- package/dist/types/DataStructures/User/UserNode.d.ts +3 -5
- package/dist/types/DataStructures/WidgetCache/WidgetCache.d.ts +10 -0
- package/dist/types/DataStructures/WidgetCache/WidgetDetails.d.ts +9 -0
- package/dist/types/DataStructures/WidgetCache/WidgetNode.d.ts +18 -0
- package/dist/types/Database/IndexUpdate.d.ts +47 -0
- package/dist/types/Database/NoIndexDb.d.ts +1 -1
- package/dist/types/Database/indexdblocal.d.ts +40 -0
- package/dist/types/Database/indexeddb.d.ts +50 -0
- package/dist/types/Helpers/CheckIfExists.d.ts +2 -3
- package/dist/types/Helpers/RemoveFromArray.d.ts +1 -2
- package/dist/types/Middleware/ApplicationMonitor.d.ts +14 -0
- package/dist/types/Middleware/logger.service.d.ts +144 -0
- package/dist/types/ServiceWorker/actions/connectionActions.d.ts +2 -0
- package/dist/types/ServiceWorker/actions/createActions.d.ts +2 -0
- package/dist/types/ServiceWorker/actions/deleteActions.d.ts +2 -0
- package/dist/types/ServiceWorker/actions/getActions.d.ts +2 -0
- package/dist/types/ServiceWorker/actions/index.d.ts +15 -0
- package/dist/types/ServiceWorker/actions/searchActions.d.ts +2 -0
- package/dist/types/ServiceWorker/actions/syncActions.d.ts +2 -0
- package/dist/types/ServiceWorker/actions/updateActions.d.ts +2 -0
- package/dist/types/ServiceWorker/index.d.ts +11 -0
- package/dist/types/Services/AccessControl/AccessControl.d.ts +218 -0
- package/dist/types/Services/Common/DelayFunction.d.ts +7 -0
- package/dist/types/Services/Common/ErrorPosting.d.ts +8 -0
- package/dist/types/Services/Common/MergeArrays.d.ts +7 -0
- package/dist/types/Services/Common/RemoveAllChild.d.ts +1 -0
- package/dist/types/Services/ConceptFinding/GetConceptByCharacterAndCategory.d.ts +0 -1
- package/dist/types/Services/Conversion/ConvertConcepts.d.ts +3 -5
- package/dist/types/Services/CreateBinaryTreeFromData.d.ts +4 -1
- package/dist/types/Services/CreateCharacterBinaryTreeFromData.d.ts +4 -0
- package/dist/types/Services/CreateConnection/CreateConnectionEntity.d.ts +2 -0
- package/dist/types/Services/CreateConnectionBetweenTwoConcepts.d.ts +1 -1
- package/dist/types/Services/CreateTheComposition.d.ts +1 -2
- package/dist/types/Services/CreateTheConcept.d.ts +3 -4
- package/dist/types/Services/CreateTheConnection.d.ts +9 -1
- package/dist/types/Services/CreateTheConnectionGeneral.d.ts +1 -4
- package/dist/types/Services/DeleteConcept.d.ts +2 -1
- package/dist/types/Services/DeleteConnection.d.ts +2 -1
- package/dist/types/Services/DeleteConnectionByType.d.ts +22 -0
- package/dist/types/Services/FindConeceptsFromConnection.d.ts +4 -0
- package/dist/types/Services/FindConnectionsOfCompositionBulkInMemory.d.ts +1 -2
- package/dist/types/Services/GetComposition.d.ts +139 -1
- package/dist/types/Services/GetCompositionBulk.d.ts +94 -5
- package/dist/types/Services/GetCompositionList.d.ts +5 -0
- package/dist/types/Services/GetConceptByCharacter.d.ts +2 -3
- package/dist/types/Services/GetConnectionBetweenTwoConceptsLinker.d.ts +11 -0
- package/dist/types/Services/GetConnections.d.ts +1 -2
- 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 +2 -5
- package/dist/types/Services/GetTheConcept.d.ts +7 -0
- package/dist/types/Services/InitializeSystem.d.ts +1 -1
- package/dist/types/Services/Local/ConvertFromLConceptToConcept.d.ts +2 -0
- package/dist/types/Services/Local/ConvertFromLConnectionToConnection.d.ts +2 -0
- package/dist/types/Services/Local/CreateConnectionBetweenTwoConceptsLocal.d.ts +3 -0
- package/dist/types/Services/Local/CreateDefaultLConcept.d.ts +2 -2
- package/dist/types/Services/Local/CreateLocalBinaryTreeFromData.d.ts +29 -1
- package/dist/types/Services/Local/CreateTheCompositionLocal.d.ts +14 -2
- package/dist/types/Services/Local/CreateTheConceptLocal.d.ts +22 -2
- package/dist/types/Services/Local/CreateTheConnectionLocal.d.ts +16 -2
- package/dist/types/Services/Local/DeleteConceptLocal.d.ts +1 -0
- package/dist/types/Services/Local/GetCompositionListLocal.d.ts +12 -0
- package/dist/types/Services/Local/GetConceptByCharacterLocal.d.ts +10 -1
- package/dist/types/Services/Local/GetConnectionOfTheConceptLocal.d.ts +2 -0
- package/dist/types/Services/Local/GetRelationLocal.d.ts +1 -0
- package/dist/types/Services/Local/GetTheConceptLocal.d.ts +9 -0
- package/dist/types/Services/Local/MakeTheConceptLocal.d.ts +2 -2
- package/dist/types/Services/Local/MakeTheInstanceConceptLocal.d.ts +18 -2
- package/dist/types/Services/Local/MakeTheTypeLocal.d.ts +16 -2
- package/dist/types/Services/Local/UpdateCompositionLocal.d.ts +3 -2
- package/dist/types/Services/Mail.d.ts +18 -0
- package/dist/types/Services/MakeTheConcept.d.ts +1 -1
- package/dist/types/Services/MakeTheInstanceConcept.d.ts +15 -3
- package/dist/types/Services/MakeTheTimestamp.d.ts +1 -2
- package/dist/types/Services/MakeTheTypeConcept.d.ts +1 -3
- package/dist/types/Services/Search/DataIdFormat.d.ts +18 -18
- package/dist/types/Services/Search/FormatData.d.ts +20 -10
- package/dist/types/Services/Search/NewFormat.d.ts +4 -0
- package/dist/types/Services/Search/SearchLinkInternal.d.ts +1 -0
- package/dist/types/Services/Search/SearchLinkMultiple.d.ts +53 -1
- package/dist/types/Services/Search/SearchWithTypeAndLinker.d.ts +53 -5
- package/dist/types/Services/Security/GetRequestHeader.d.ts +3 -10
- package/dist/types/Services/Transaction/LocalTransaction.d.ts +45 -0
- package/dist/types/Services/UpdateComposition.d.ts +1 -1
- package/dist/types/Services/Upload.d.ts +33 -0
- package/dist/types/Services/User/UserFromLocalStorage.d.ts +6 -0
- package/dist/types/Services/User/UserTranslation.d.ts +3 -6
- package/dist/types/Services/assets/GetImageService.d.ts +14 -0
- package/dist/types/Services/automated/automated-concept-connection.d.ts +7 -0
- package/dist/types/Services/cacheService.d.ts +1 -0
- package/dist/types/Validator/constant.d.ts +3 -0
- package/dist/types/Validator/interface.d.ts +19 -0
- package/dist/types/Validator/utils.d.ts +7 -0
- package/dist/types/Validator/validator.d.ts +37 -0
- package/dist/types/Visualize/ConceptCircle.d.ts +35 -0
- package/dist/types/Visualize/ConceptCircleList.d.ts +9 -0
- package/dist/types/Visualize/ConnectionLine.d.ts +21 -0
- package/dist/types/Visualize/ConnectionLineList.d.ts +6 -0
- package/dist/types/Visualize/drawExistingConcepts.d.ts +8 -0
- package/dist/types/Visualize/helper.d.ts +15 -0
- package/dist/types/Visualize/index.d.ts +0 -0
- package/dist/types/Widgets/BaseObserver.d.ts +22 -0
- package/dist/types/Widgets/BaseWidget.d.ts +24 -0
- package/dist/types/Widgets/BuilderSpeceficFunctions.d.ts +2 -0
- package/dist/types/Widgets/BuilderStatefulWidget.d.ts +42 -0
- package/dist/types/Widgets/CacheWidget.service.d.ts +17 -0
- package/dist/types/Widgets/NormalizeStyles.service.d.ts +1 -0
- package/dist/types/Widgets/RenderPage.service.d.ts +12 -0
- package/dist/types/Widgets/RenderWidgetLibrary.service.d.ts +14 -0
- package/dist/types/Widgets/RenderWidgetService.d.ts +50 -0
- package/dist/types/Widgets/StatefulWidget.d.ts +102 -0
- package/dist/types/Widgets/WidgetBuild.d.ts +4 -0
- package/dist/types/Widgets/WidgetTree.d.ts +29 -0
- package/dist/types/Widgets/mainView.class.d.ts +6 -0
- package/dist/types/WrapperFunctions/DepenedencyObserver.d.ts +73 -0
- package/dist/types/WrapperFunctions/GetCompositionListObservable.d.ts +19 -0
- package/dist/types/WrapperFunctions/GetCompositionObservable.d.ts +13 -0
- package/dist/types/WrapperFunctions/GetLinkListObservable.d.ts +28 -0
- package/dist/types/WrapperFunctions/GetLinkObservable.d.ts +32 -0
- package/dist/types/WrapperFunctions/RecursiveSearchObservable.d.ts +37 -0
- package/dist/types/WrapperFunctions/SchemaQueryObservable.d.ts +9 -11
- package/dist/types/WrapperFunctions/SearchLinkMultipleAllObservable.d.ts +15 -0
- package/dist/types/app.d.ts +128 -24
- package/dist/types/prototype/getPrototype.service.d.ts +2 -0
- package/dist/types/prototype/prototype.service.d.ts +25 -0
- package/dist/types/service-worker.d.ts +1 -0
- package/package.json +1 -1
- package/dist/bundle.js +0 -2
- package/dist/bundle.js.LICENSE.txt +0 -1
- package/dist/types/DataStructures/Transaction/Transaction.d.ts +0 -30
- package/dist/types/Services/AccessControl/AccessControlCacheService.d.ts +0 -19
- package/dist/types/Services/AccessControl/AccessControlService.d.ts +0 -267
- package/dist/types/Services/AccessControl/PermissionSet.d.ts +0 -8
- package/dist/types/Services/Delete/GetAllConnectionByType.d.ts +0 -16
- package/dist/types/Services/MakeTheName.d.ts +0 -2
- package/dist/types/Services/auth/AuthService.d.ts +0 -1
- /package/dist/types/{Services/MakeTheLocalConcept.d.ts → Middleware/ErrorHandling.d.ts} +0 -0
|
@@ -1,27 +1,23 @@
|
|
|
1
1
|
import { Concept } from "./Concept";
|
|
2
2
|
export declare class Connection {
|
|
3
3
|
id: number;
|
|
4
|
+
count: number;
|
|
4
5
|
userId: number;
|
|
5
6
|
ghostId: number;
|
|
6
7
|
ofTheConceptId: number;
|
|
7
8
|
toTheConceptId: number;
|
|
8
|
-
ofTheConceptUserId: number;
|
|
9
|
-
toTheConceptUserId: number;
|
|
10
9
|
entryTimeStamp: Date | string;
|
|
11
10
|
terminationDateTime: Date;
|
|
12
11
|
typeId: number;
|
|
13
|
-
typeUserId: number;
|
|
14
12
|
orderId: number;
|
|
15
|
-
orderUserId: number;
|
|
16
|
-
securityId: number;
|
|
17
|
-
securityUserId: number;
|
|
18
13
|
accessId: number;
|
|
19
|
-
|
|
20
|
-
sessionInformationId: number;
|
|
21
|
-
sessionInformationUserId: number;
|
|
14
|
+
typeCharacter: string;
|
|
22
15
|
localSyncTime: Date;
|
|
23
16
|
isTemp: boolean;
|
|
24
17
|
toUpdate: boolean;
|
|
18
|
+
applicationId: number;
|
|
25
19
|
type: Concept;
|
|
26
|
-
|
|
20
|
+
ofConcept: Concept;
|
|
21
|
+
toConcept: Concept;
|
|
22
|
+
constructor(id: number | undefined, ofTheConceptId: number, toTheConceptId: number, userId: number, typeId: number, orderId: number, accessId: number);
|
|
27
23
|
}
|
|
@@ -4,8 +4,10 @@ export declare class ConnectionBinaryTree {
|
|
|
4
4
|
static connectionroot: ConnectionNode | null;
|
|
5
5
|
static addNodeToTree(node: ConnectionNode): ConnectionNode | undefined;
|
|
6
6
|
static addConnectionToTree(connection: Connection): void;
|
|
7
|
+
static traverse(): number | undefined;
|
|
7
8
|
static waitForDataToLoad(): Promise<unknown>;
|
|
8
9
|
static checkFlag(resolve: any): any;
|
|
9
10
|
static removeNodeFromTree(id: number): Promise<void>;
|
|
10
|
-
static getNodeFromTree(id: number): Promise<ConnectionNode | null>;
|
|
11
|
+
static getNodeFromTree(id: number): Promise<ConnectionNode | null | undefined>;
|
|
12
|
+
static getConnectionListFromIds(ids: number[], connectionArray: Connection[], remainingIds: any): Promise<void>;
|
|
11
13
|
}
|
|
@@ -10,6 +10,7 @@ export declare class ConnectionNode {
|
|
|
10
10
|
constructor(key: any, value: Connection, leftNode: ConnectionNode | null, rightNode: ConnectionNode | null);
|
|
11
11
|
addCurrentNode(passedNode: ConnectionNode, node: ConnectionNode | null): ConnectionNode;
|
|
12
12
|
addCurrentNodeType(passedNode: ConnectionNode, node: ConnectionNode | null): ConnectionNode;
|
|
13
|
+
getMax(a: number, b: number): number;
|
|
13
14
|
addNode(passedNode: ConnectionNode, node: ConnectionNode | null, height: number): ConnectionNode | null;
|
|
14
15
|
addTypeNode(passedNode: ConnectionNode, node: ConnectionNode | null, height: number): ConnectionNode | null;
|
|
15
16
|
rightRotate(y: ConnectionNode | null): ConnectionNode | null;
|
|
@@ -18,6 +19,8 @@ export declare class ConnectionNode {
|
|
|
18
19
|
getBalanceFactor(N: ConnectionNode | null): number;
|
|
19
20
|
getFromNode(id: number, node: ConnectionNode | null): ConnectionNode | null;
|
|
20
21
|
getCharacterFromNode(value: string, node: ConnectionNode | null): ConnectionNode | null;
|
|
22
|
+
checkIfIdsInNode(node: ConnectionNode | null, ids: number[], connectionArray: Connection[], remainingIds: any): void;
|
|
23
|
+
traverse(node: ConnectionNode | null): number;
|
|
21
24
|
removeNode(passedNode: ConnectionNode | null, id: number): ConnectionNode | null;
|
|
22
25
|
removeNodeWithVariants(passedNode: ConnectionNode | null, typeIdentifier: any, conceptId: number): ConnectionNode | null;
|
|
23
26
|
inOrderSuccessor(root: ConnectionNode): ConnectionNode;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { NodePrimitive } from "./NodePrimitive";
|
|
2
|
+
export declare class ConnectionOfNode extends NodePrimitive {
|
|
3
|
+
key: string;
|
|
4
|
+
value: number[];
|
|
5
|
+
height: number;
|
|
6
|
+
leftNode: ConnectionOfNode | null;
|
|
7
|
+
rightNode: ConnectionOfNode | null;
|
|
8
|
+
constructor(key: any, value: number[], leftNode: ConnectionOfNode | null, rightNode: ConnectionOfNode | null);
|
|
9
|
+
addNode(passedNode: ConnectionOfNode, node: ConnectionOfNode | null, height: number): any;
|
|
10
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Connection } from "../Connection";
|
|
2
|
+
import { ConnectionOfNode } from "./ConnectionOfNode";
|
|
3
|
+
/**
|
|
4
|
+
* This is a binary tree that is used to store the reference to the main connection of the concept.
|
|
5
|
+
*/
|
|
6
|
+
export declare class ConnectionOfTheTree {
|
|
7
|
+
static node: ConnectionOfNode | null;
|
|
8
|
+
static CreateCompositionKey(ofTheConceptId: number, typeId: number): number;
|
|
9
|
+
static GetConnectionByOfTheConceptAndTypeId(ofTheConceptId: number, typeId: number): any;
|
|
10
|
+
/**
|
|
11
|
+
* This function lets you add a connection by composite key with of the concept id and type id.
|
|
12
|
+
* This function checks if the connection already exists and then updates in the case that it does not
|
|
13
|
+
* If the connection of the concept id and type id combination is encountered first time then a node is created.
|
|
14
|
+
* @param connection connection that needs to be added.
|
|
15
|
+
*/
|
|
16
|
+
static addConnection(connection: Connection): void;
|
|
17
|
+
/**
|
|
18
|
+
* This is a function to add the connectionNode to the existing tree
|
|
19
|
+
* @param connectionOfNode This is the node that needs to be added to the tree.
|
|
20
|
+
* @returns ConnectionOfNode
|
|
21
|
+
*/
|
|
22
|
+
static addNodeToTree(connectionOfNode: ConnectionOfNode): Promise<ConnectionOfNode | null>;
|
|
23
|
+
static removeNodeFromTree(id: number): Promise<void>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { NodePrimitive } from "./NodePrimitive";
|
|
2
|
+
export declare class ConnectionTypeNode extends NodePrimitive {
|
|
3
|
+
key: string;
|
|
4
|
+
value: number[];
|
|
5
|
+
height: number;
|
|
6
|
+
leftNode: ConnectionTypeNode | null;
|
|
7
|
+
rightNode: ConnectionTypeNode | null;
|
|
8
|
+
constructor(key: any, value: number[], leftNode: ConnectionTypeNode | null, rightNode: ConnectionTypeNode | null);
|
|
9
|
+
addNode(passedNode: ConnectionTypeNode, node: ConnectionTypeNode | null, height: number): any;
|
|
10
|
+
}
|
|
@@ -1,13 +1,20 @@
|
|
|
1
1
|
import { Connection } from "../../DataStructures/Connection";
|
|
2
|
-
import {
|
|
2
|
+
import { ConnectionTypeNode } from "./ConnectionTypeNode";
|
|
3
3
|
export declare class ConnectionTypeTree {
|
|
4
|
-
static connectionTypeRoot:
|
|
5
|
-
static
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
static connectionTypeRoot: ConnectionTypeNode | null;
|
|
5
|
+
static CreateCompositionKey(typeId: number): number;
|
|
6
|
+
/**
|
|
7
|
+
* This is a function to add the connectionNode to the existing tree
|
|
8
|
+
* @param connectionOfNode This is the node that needs to be added to the tree.
|
|
9
|
+
* @returns ConnectionOfNode
|
|
10
|
+
*/
|
|
11
|
+
static addNodeToTree(connectionOfNode: ConnectionTypeNode): Promise<ConnectionTypeNode | null>;
|
|
12
|
+
/**
|
|
13
|
+
* This function lets you add a connection by composite key with of the concept id and type id.
|
|
14
|
+
* This function checks if the connection already exists and then updates in the case that it does not
|
|
15
|
+
* If the connection of the concept id and type id combination is encountered first time then a node is created.
|
|
16
|
+
* @param connection connection that needs to be added.
|
|
17
|
+
*/
|
|
8
18
|
static addConnectionToTree(connection: Connection): void;
|
|
9
|
-
static
|
|
10
|
-
static getNodeFromTree(id: number): ConnectionNode | null;
|
|
11
|
-
static getTypeVariantsFromTree(typeId: number): Promise<Connection[] | undefined>;
|
|
12
|
-
static getTypeVariantsFromTreeWithUserId(typeId: number, userId: number): Promise<Connection[]>;
|
|
19
|
+
static GetConnectionByOfTheConceptAndTypeId(ofTheConceptId: number, typeId: number): any;
|
|
13
20
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare class NodePrimitive {
|
|
2
|
+
key: string;
|
|
3
|
+
value: number[];
|
|
4
|
+
height: number;
|
|
5
|
+
leftNode: any | null;
|
|
6
|
+
rightNode: any | null;
|
|
7
|
+
constructor(key: any, value: number[], leftNode: NodePrimitive | null, rightNode: NodePrimitive | null);
|
|
8
|
+
getFromNode(id: any, node: any | null): any | null;
|
|
9
|
+
rightRotate(y: NodePrimitive | null): any;
|
|
10
|
+
leftRotate(x: NodePrimitive | null): any;
|
|
11
|
+
getHeight(node: NodePrimitive | null): number;
|
|
12
|
+
getBalanceFactor(N: NodePrimitive | null): number;
|
|
13
|
+
removeNode(passedNode: any | null, id: number): any;
|
|
14
|
+
inOrderSuccessor(root: any): any;
|
|
15
|
+
}
|
|
@@ -2,17 +2,25 @@ import { Connection } from "./Connection";
|
|
|
2
2
|
export declare class ConnectionData {
|
|
3
3
|
name: string;
|
|
4
4
|
constructor();
|
|
5
|
+
static deletedConnections: number[];
|
|
5
6
|
static connectionArray: Connection[];
|
|
6
7
|
static connectionDictionary: Connection[];
|
|
7
8
|
static CheckContains(connection: Connection): boolean;
|
|
8
9
|
static AddConnectionToStorage(connection: Connection): void;
|
|
10
|
+
static AddNpConn(id: number): void;
|
|
11
|
+
static GetNpConn(id: number): boolean;
|
|
9
12
|
static AddConnection(connection: Connection): void;
|
|
10
13
|
static AddConnectionToMemory(connection: Connection): void;
|
|
11
14
|
static AddToDictionary(connection: Connection): void;
|
|
12
15
|
static RemoveConnection(connection: Connection): void;
|
|
16
|
+
static GetConnectionTypeOfTree(): void;
|
|
17
|
+
static GetConnectionByOfTheConceptAndType(ofTheConceptId: number, typeId: number): Promise<any>;
|
|
18
|
+
static GetConnectionByOfType(ofTheConceptId: number, typeId: number): any;
|
|
13
19
|
static GetConnectionTree(): import("./ConnectionBinaryTree/ConnectionNode").ConnectionNode | null;
|
|
14
|
-
static GetConnectionTypeTree(): import("./ConnectionBinaryTree/
|
|
15
|
-
static
|
|
16
|
-
static
|
|
20
|
+
static GetConnectionTypeTree(): import("./ConnectionBinaryTree/ConnectionTypeNode").ConnectionTypeNode | null;
|
|
21
|
+
static GetConnectionBulkData(ids: number[], connectionArray: Connection[], remainingIds: any): Promise<void>;
|
|
22
|
+
static GetConnection(id: number): Promise<any>;
|
|
23
|
+
static GetConnectionsOfCompositionLocal(id: number): Promise<any>;
|
|
24
|
+
static GetConnectionsOfConcept(id: number): Promise<any>;
|
|
17
25
|
getName(): string;
|
|
18
26
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Concept } from "../Concept";
|
|
2
2
|
export declare class LConcept {
|
|
3
3
|
id: number;
|
|
4
|
+
structureType: string;
|
|
4
5
|
ghostId: number;
|
|
5
6
|
userId: number;
|
|
6
7
|
typeId: number;
|
|
@@ -8,14 +9,15 @@ export declare class LConcept {
|
|
|
8
9
|
accessId: number;
|
|
9
10
|
characterValue: string;
|
|
10
11
|
typeCharacter: string;
|
|
11
|
-
entryTimeStamp: Date
|
|
12
|
+
entryTimeStamp: Date;
|
|
12
13
|
referentId: number;
|
|
13
|
-
updatedTimeStamp: Date
|
|
14
|
+
updatedTimeStamp: Date;
|
|
14
15
|
type: LConcept | null | void | Concept;
|
|
15
16
|
isNew: boolean;
|
|
16
17
|
isComposition: boolean;
|
|
17
18
|
isTemp: boolean;
|
|
19
|
+
isSynced: boolean;
|
|
18
20
|
applicationId: number;
|
|
19
|
-
constructor(id: number, userId: number, typeId: number, categoryId: number, accessId: number, characterValue: string, typeCharacter: string, isNew: boolean | undefined, entryTimeStamp: Date
|
|
21
|
+
constructor(id: number, userId: number, typeId: number, categoryId: number, accessId: number, characterValue: string, typeCharacter: string, isNew: boolean | undefined, entryTimeStamp: Date, updatedTimeStamp: Date, referentId: number);
|
|
20
22
|
getType(): void;
|
|
21
23
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Concept } from "../Concept";
|
|
2
2
|
export declare class LConnection {
|
|
3
3
|
id: number;
|
|
4
4
|
ghostId: number;
|
|
@@ -13,6 +13,6 @@ export declare class LConnection {
|
|
|
13
13
|
localSyncTime: Date;
|
|
14
14
|
isTemp: boolean;
|
|
15
15
|
applicationId: number;
|
|
16
|
-
type:
|
|
17
|
-
constructor(id: number
|
|
16
|
+
type: Concept;
|
|
17
|
+
constructor(id: number, ofTheConceptId: number, toTheConceptId: number, typeId: number, orderId: number, accessId: number);
|
|
18
18
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Concept } from "./../Concept";
|
|
2
2
|
export declare class LNode {
|
|
3
3
|
key: any;
|
|
4
|
-
value:
|
|
4
|
+
value: Concept;
|
|
5
5
|
leftNode: LNode | null;
|
|
6
6
|
rightNode: LNode | null;
|
|
7
7
|
currentNode: LNode | null;
|
|
8
8
|
variants: LNode[];
|
|
9
9
|
height: number;
|
|
10
|
-
constructor(key: any, value:
|
|
10
|
+
constructor(key: any, value: Concept, leftNode: LNode | null, rightNode: LNode | null);
|
|
11
11
|
addCurrentNode(passedNode: LNode, node: LNode | null): LNode;
|
|
12
12
|
addCurrentNodeType(passedNode: LNode, node: LNode | null): LNode;
|
|
13
13
|
addNode(passedNode: LNode, node: LNode | null, height: number): LNode | null;
|
|
@@ -18,8 +18,10 @@ export declare class LNode {
|
|
|
18
18
|
getHeight(node: LNode | null): number;
|
|
19
19
|
getBalanceFactor(N: LNode | null): number;
|
|
20
20
|
getFromNode(id: number, node: LNode | null): LNode | null;
|
|
21
|
+
updateNodeSyncStatus(id: number, value: any, node: LNode | null): LNode | null;
|
|
21
22
|
getCharacterFromNode(value: string, node: LNode | null): LNode | null;
|
|
22
23
|
getFromNodeWithCharacterAndType(value: string, typeId: number, node: LNode | null): LNode | null;
|
|
24
|
+
getFromNodeWithCharacterAndCategory(value: string, categoryId: number, node: LNode | null): LNode | null;
|
|
23
25
|
removeNode(passedNode: LNode | null, id: number): LNode | null;
|
|
24
26
|
removeNodeWithVariants(passedNode: LNode | null, typeIdentifier: any, conceptId: number): LNode | null;
|
|
25
27
|
countNodeBelow(root: LNode | null): number;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Concept } from "../../DataStructures/Concept";
|
|
2
2
|
import { LNode } from "./../Local/LNode";
|
|
3
3
|
export declare class LocalBinaryCharacterTree {
|
|
4
4
|
static LocalCharacterRoot: LNode | null;
|
|
5
5
|
static waitForDataToLoad(): Promise<unknown>;
|
|
6
6
|
static checkFlag(resolve: any): any;
|
|
7
7
|
static addNodeToTree(node: LNode): Promise<LNode | null>;
|
|
8
|
-
static addConceptToTree(concept:
|
|
8
|
+
static addConceptToTree(concept: Concept): void;
|
|
9
9
|
static getNodeFromTree(value: string): LNode | null;
|
|
10
10
|
static getCharacterAndTypeFromTree(value: string, typeId: number): Promise<LNode | null>;
|
|
11
|
+
static getCharacterAndCategoryFromTree(value: string, categoryId: number): Promise<LNode | null>;
|
|
11
12
|
static removeConceptType(character: string, id: number): void;
|
|
12
13
|
}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Concept } from "../../DataStructures/Concept";
|
|
2
2
|
import { LNode } from "./../Local/LNode";
|
|
3
3
|
export declare class LocalBinaryTree {
|
|
4
4
|
static root: LNode | null;
|
|
5
5
|
static addNodeToTree(node: LNode): LNode | undefined;
|
|
6
|
-
static addConceptToTree(concept:
|
|
6
|
+
static addConceptToTree(concept: Concept): void;
|
|
7
7
|
static waitForDataToLoad(): Promise<unknown>;
|
|
8
8
|
static checkFlag(resolve: any): any;
|
|
9
9
|
static getNodeFromTree(id: number): Promise<LNode | null>;
|
|
10
10
|
static getCharacterAndTypeFromTree(value: string, typeId: number): LNode | null;
|
|
11
|
+
static updateSyncStatus(id: number): LNode | null;
|
|
11
12
|
static removeNodeFromTree(id: number): Promise<void>;
|
|
12
13
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Concept } from "../../DataStructures/Concept";
|
|
2
2
|
import { LNode } from "./LNode";
|
|
3
3
|
export declare class LocalBinaryTypeTree {
|
|
4
4
|
static LocalTypeRoot: LNode | null;
|
|
5
5
|
static addNodeToTree(node: LNode): Promise<LNode | null>;
|
|
6
|
-
static addConceptToTree(concept:
|
|
6
|
+
static addConceptToTree(concept: Concept): void;
|
|
7
7
|
static removeConceptType(typeId: number, id: number): void;
|
|
8
8
|
static getNodeFromTree(id: number): LNode | null;
|
|
9
|
-
static getTypeVariantsFromTree(typeId: number):
|
|
9
|
+
static getTypeVariantsFromTree(typeId: number): Concept[] | undefined;
|
|
10
10
|
static waitForDataToLoad(): Promise<unknown>;
|
|
11
11
|
static checkFlag(resolve: any): any;
|
|
12
|
-
static getTypeVariantsFromTreeWithUserId(typeId: number, userId: number): Promise<
|
|
12
|
+
static getTypeVariantsFromTreeWithUserId(typeId: number, userId: number): Promise<Concept[]>;
|
|
13
13
|
}
|
|
@@ -1,14 +1,21 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Concept } from "./../Concept";
|
|
2
2
|
export declare class LocalConceptsData {
|
|
3
3
|
name: string;
|
|
4
4
|
constructor();
|
|
5
|
-
static localconceptsArray:
|
|
6
|
-
static AddConcept(concept:
|
|
7
|
-
static
|
|
8
|
-
static
|
|
9
|
-
static
|
|
10
|
-
static
|
|
11
|
-
static
|
|
12
|
-
static
|
|
5
|
+
static localconceptsArray: Concept[];
|
|
6
|
+
static AddConcept(concept: Concept): void;
|
|
7
|
+
static AddPermanentConcept(concept: Concept): void;
|
|
8
|
+
static RemoveConcept(concept: Concept): Promise<void>;
|
|
9
|
+
static RemoveConceptById(conceptId: number): Promise<void>;
|
|
10
|
+
static AddConceptToMemory(concept: Concept): void;
|
|
11
|
+
static GetConcept(id: number): Promise<Concept>;
|
|
12
|
+
static UpdateConceptSyncStatus(id: number): Promise<void>;
|
|
13
|
+
static GetConceptByGhostId(id: number): Promise<Concept>;
|
|
14
|
+
static GetConceptByCharacter(characterValue: string): Promise<Concept>;
|
|
15
|
+
static GetConceptByCharacterAndTypeLocal(character_value: string, typeId: number): Promise<Concept>;
|
|
16
|
+
static GetConceptByCharacterAndCategoryLocal(character_value: string, categoryId: number): Promise<Concept>;
|
|
17
|
+
static GetConceptsByTypeId(typeId: number): Concept[];
|
|
18
|
+
static GetConceptsByTypeIdAndUser(typeId: number, userId: number): Promise<Concept[]>;
|
|
19
|
+
static ClearData(): Promise<void>;
|
|
13
20
|
getName(): string;
|
|
14
21
|
}
|
|
@@ -1,16 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Connection } from "../Connection";
|
|
2
2
|
export declare class LocalConnectionData {
|
|
3
3
|
name: string;
|
|
4
4
|
constructor();
|
|
5
|
-
static connectionArray:
|
|
6
|
-
static connectionDictionary:
|
|
7
|
-
static CheckContains(connection:
|
|
8
|
-
static AddConnection(connection:
|
|
9
|
-
static
|
|
10
|
-
static
|
|
11
|
-
static
|
|
5
|
+
static connectionArray: Connection[];
|
|
6
|
+
static connectionDictionary: Connection[];
|
|
7
|
+
static CheckContains(connection: Connection): boolean;
|
|
8
|
+
static AddConnection(connection: Connection): void;
|
|
9
|
+
static AddConnectionToMemory(connection: Connection): void;
|
|
10
|
+
static AddToDictionary(connection: Connection): void;
|
|
11
|
+
static RemoveConnection(connection: Connection): void;
|
|
12
|
+
static RemoveConnectionById(connectionId: number): void;
|
|
13
|
+
static AddPermanentConnection(connection: Connection): void;
|
|
14
|
+
static GetConnection(id: number): Connection | null;
|
|
12
15
|
static waitForDataToLoad(): Promise<unknown>;
|
|
13
16
|
static checkFlag(resolve: any): any;
|
|
14
|
-
static GetConnectionsOfCompositionLocal(id: number): Promise<
|
|
17
|
+
static GetConnectionsOfCompositionLocal(id: number): Promise<Connection[]>;
|
|
18
|
+
static GetConnectionOfCompositionAndTypeLocal(typeId: number, ofTheConceptId: number): Promise<Connection[]>;
|
|
15
19
|
getName(): string;
|
|
16
20
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Concept } from "../../DataStructures/Concept";
|
|
2
|
+
import { LNode } from "./../Local/LNode";
|
|
3
|
+
export declare class LocalGhostIdTree {
|
|
4
|
+
static root: LNode | null;
|
|
5
|
+
static addNodeToTree(node: LNode): LNode | undefined;
|
|
6
|
+
static addConceptToTree(concept: Concept): void;
|
|
7
|
+
static waitForDataToLoad(): Promise<unknown>;
|
|
8
|
+
static checkFlag(resolve: any): any;
|
|
9
|
+
static getNodeFromTree(id: number): Promise<LNode | null>;
|
|
10
|
+
static removeNodeFromTree(id: number): Promise<void>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare class LocalId {
|
|
2
|
+
static localId: number;
|
|
3
|
+
static localConnectionId: number;
|
|
4
|
+
static ReservedLocalId: number[];
|
|
5
|
+
static ReservedConnectionId: number[];
|
|
6
|
+
static AddConceptId(id: any): void;
|
|
7
|
+
/**
|
|
8
|
+
*
|
|
9
|
+
* This function will get the local concept id from the indexdb
|
|
10
|
+
* @returns the local concept id
|
|
11
|
+
*/
|
|
12
|
+
static getConceptId(): Promise<number>;
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @param object This is the object that needs to be updated
|
|
16
|
+
*/
|
|
17
|
+
static AddConnectionId(object: any): void;
|
|
18
|
+
static getConnectionId(): Promise<number>;
|
|
19
|
+
}
|
|
@@ -1,14 +1,33 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Concept } from "./../Concept";
|
|
2
|
+
import { Connection } from "../Connection";
|
|
3
|
+
import { InnerActions } from "../../app";
|
|
4
|
+
type syncContainer = {
|
|
5
|
+
id: string;
|
|
6
|
+
data: InnerActions;
|
|
7
|
+
createdDate: string;
|
|
8
|
+
};
|
|
3
9
|
export declare class LocalSyncData {
|
|
4
|
-
static conceptsSyncArray:
|
|
5
|
-
static connectionSyncArray:
|
|
6
|
-
static
|
|
10
|
+
static conceptsSyncArray: Concept[];
|
|
11
|
+
static connectionSyncArray: Connection[];
|
|
12
|
+
static ghostIdMap: Map<any, any>;
|
|
13
|
+
static transactionCollections: syncContainer[];
|
|
14
|
+
static CheckContains(concept: Concept): boolean;
|
|
7
15
|
static SyncDataDelete(id: number): void;
|
|
8
|
-
static CheckContainsConnection(connection:
|
|
9
|
-
static AddConcept(concept:
|
|
10
|
-
static RemoveConcept(concept:
|
|
11
|
-
static
|
|
12
|
-
static
|
|
16
|
+
static CheckContainsConnection(connection: Connection): boolean;
|
|
17
|
+
static AddConcept(concept: Concept): void;
|
|
18
|
+
static RemoveConcept(concept: Concept): void;
|
|
19
|
+
static SyncDataOnlineWithoutAuth(transactionId?: string, actions?: InnerActions, withAuth?: boolean): Promise<any>;
|
|
20
|
+
static SyncDataOnline(transactionId?: string, actions?: InnerActions, withAuth?: boolean): Promise<any>;
|
|
21
|
+
static ConvertGhostIdsInConnections(connectionArray: Connection[]): void;
|
|
22
|
+
static UpdateConceptListToIncludeRelatedConcepts(connectionArray: Connection[], conceptsArray: Concept[]): Promise<void>;
|
|
23
|
+
static AddConceptIfDoesNotExist(concept: Concept, conceptList?: Concept[]): void;
|
|
24
|
+
static CheckIfTheConceptIdExists(id: number, conceptList?: Concept[]): Concept;
|
|
25
|
+
static AddConnection(connection: Connection): void;
|
|
26
|
+
static RemoveConnection(connection: Connection): void;
|
|
27
|
+
static RemoveConnectionById(connectionId: number): void;
|
|
13
28
|
static syncDataLocalDb(): Promise<string>;
|
|
29
|
+
static initializeTransaction(transactionId: string): Promise<any>;
|
|
30
|
+
static markTransactionActions(transactionId: string, actions: InnerActions): Promise<any>;
|
|
31
|
+
static rollbackTransaction(transactionId: string, actions: InnerActions): Promise<any>;
|
|
14
32
|
}
|
|
33
|
+
export {};
|
|
@@ -11,6 +11,7 @@ export declare class Node {
|
|
|
11
11
|
addCurrentNode(passedNode: Node, node: Node | null): Node;
|
|
12
12
|
addCurrentNodeType(passedNode: Node, node: Node | null): Node;
|
|
13
13
|
addNode(passedNode: Node, node: Node | null, height: number): Node | null;
|
|
14
|
+
checkIfIdsInNode(node: Node | null, ids: number[], connectionArray: Concept[], remainingIds: any): void;
|
|
14
15
|
addCharacterNode(passedNode: Node, node: Node | null, height: number): Node | null;
|
|
15
16
|
addTypeNode(passedNode: Node, node: Node | null, height: number): Node | null;
|
|
16
17
|
rightRotate(y: Node | null): Node | null;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Concept } from "../Concept";
|
|
2
|
+
import { Connection } from "../Connection";
|
|
3
|
+
import { PrototypeOption } from "./PrototypeOption";
|
|
4
|
+
import { QuerySelector } from "./QuerySelector";
|
|
5
|
+
export declare class Prototype {
|
|
6
|
+
prototype: string;
|
|
7
|
+
required: string[];
|
|
8
|
+
optional: string[];
|
|
9
|
+
field: string;
|
|
10
|
+
childPrototypes: Prototype[];
|
|
11
|
+
isCompositional: boolean;
|
|
12
|
+
options: PrototypeOption[];
|
|
13
|
+
isQueryType: boolean;
|
|
14
|
+
querySelector: QuerySelector | null;
|
|
15
|
+
concepts: Concept[];
|
|
16
|
+
connections: Connection[];
|
|
17
|
+
addedConcepts: Concept[];
|
|
18
|
+
addedConnections: Connection[];
|
|
19
|
+
}
|
|
@@ -14,9 +14,10 @@ export declare class FreeschemaQuery {
|
|
|
14
14
|
order: string;
|
|
15
15
|
outputFormat: number;
|
|
16
16
|
name: string;
|
|
17
|
+
filterAncestor: string;
|
|
17
18
|
reverse: boolean;
|
|
18
19
|
limit: boolean;
|
|
19
|
-
|
|
20
|
+
isSecure: boolean;
|
|
20
21
|
includeInFilter: boolean;
|
|
21
22
|
isOldConnectionType: boolean;
|
|
22
23
|
}
|
|
@@ -1,15 +1,8 @@
|
|
|
1
1
|
import { Concept } from "./Concept";
|
|
2
2
|
import { Connection } from "./Connection";
|
|
3
|
-
import { InnerActions } from "./Transaction/Transaction";
|
|
4
|
-
type syncContainer = {
|
|
5
|
-
id: string;
|
|
6
|
-
data: InnerActions;
|
|
7
|
-
createdDate: string;
|
|
8
|
-
};
|
|
9
3
|
export declare class SyncData {
|
|
10
4
|
static conceptsSyncArray: Concept[];
|
|
11
5
|
static connectionSyncArray: Connection[];
|
|
12
|
-
static transactionCollections: syncContainer[];
|
|
13
6
|
static CheckContains(concept: Concept): boolean;
|
|
14
7
|
static SyncDataDelete(id: number): void;
|
|
15
8
|
static CheckContainsConnection(connection: Connection): boolean;
|
|
@@ -17,10 +10,5 @@ export declare class SyncData {
|
|
|
17
10
|
static RemoveConcept(concept: Concept): void;
|
|
18
11
|
static AddConnection(connection: Connection): void;
|
|
19
12
|
static RemoveConnection(connection: Connection): void;
|
|
20
|
-
static SyncDataOnline(
|
|
21
|
-
static initializeTransaction(transactionId: string): Promise<void>;
|
|
22
|
-
static markTransactionActions(transactionId: string, actions: InnerActions): Promise<void>;
|
|
23
|
-
static rollbackTransaction(transactionId: string, actions: InnerActions): Promise<void>;
|
|
24
|
-
static syncDataLocalDb(): Promise<string>;
|
|
13
|
+
static SyncDataOnline(): Promise<any>;
|
|
25
14
|
}
|
|
26
|
-
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export type TLibrary = {
|
|
2
|
+
order: number;
|
|
3
|
+
url: string;
|
|
4
|
+
};
|
|
5
|
+
export type TMainLibrary = {
|
|
6
|
+
css: TLibrary[];
|
|
7
|
+
js: TLibrary[];
|
|
8
|
+
};
|
|
9
|
+
export type TAssistant = {
|
|
10
|
+
id: string;
|
|
11
|
+
input: string;
|
|
12
|
+
type: string;
|
|
13
|
+
};
|
|
14
|
+
export type TCustomFunction = {
|
|
15
|
+
id?: number;
|
|
16
|
+
code: string;
|
|
17
|
+
name: string;
|
|
18
|
+
slug: string;
|
|
19
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare class TypeNode {
|
|
2
|
+
key: any;
|
|
3
|
+
value: number[];
|
|
4
|
+
leftNode: TypeNode | null;
|
|
5
|
+
rightNode: TypeNode | null;
|
|
6
|
+
currentNode: TypeNode | null;
|
|
7
|
+
height: number;
|
|
8
|
+
constructor(key: any, value: number);
|
|
9
|
+
addType(node: TypeNode | null, key: number, value: number): TypeNode | null;
|
|
10
|
+
rightRotate(y: TypeNode | null): TypeNode | null;
|
|
11
|
+
leftRotate(x: TypeNode | null): TypeNode | null;
|
|
12
|
+
getHeight(node: TypeNode | null): number;
|
|
13
|
+
getBalanceFactor(N: TypeNode | null): number;
|
|
14
|
+
getFromNode(id: number, node: TypeNode | null): TypeNode | null;
|
|
15
|
+
removeNodeWithVariants(passedNode: TypeNode | null, key: any, conceptId: number): TypeNode | null;
|
|
16
|
+
countNodeBelow(root: TypeNode | null): number;
|
|
17
|
+
inOrderSuccessor(root: TypeNode): TypeNode;
|
|
18
|
+
}
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Concept } from "../../DataStructures/Concept";
|
|
2
2
|
import { UserNode } from "./UserNode";
|
|
3
|
-
import { LConnection } from "../Local/LConnection";
|
|
4
3
|
export declare class UserBinaryTree {
|
|
5
4
|
static root: UserNode | null;
|
|
6
|
-
static compositeKey(userId: number, sessionId: number
|
|
5
|
+
static compositeKey(userId: number, sessionId: number): string;
|
|
7
6
|
static addNodeToTree(node: UserNode): UserNode | undefined;
|
|
8
7
|
static waitForDataToLoad(): Promise<unknown>;
|
|
9
8
|
static checkFlag(resolve: any): any;
|
|
10
|
-
static addConceptToTree(concept:
|
|
11
|
-
static
|
|
12
|
-
static
|
|
13
|
-
static removeNodeFromTree(userId: number, sessionId?: number, randomizer?: number): Promise<void>;
|
|
9
|
+
static addConceptToTree(concept: Concept, userId: number, sessionId?: number): void;
|
|
10
|
+
static getNodeFromTree(userId: number, sessionId: number): Promise<UserNode | null>;
|
|
11
|
+
static removeNodeFromTree(userId: number, sessionId?: number): Promise<void>;
|
|
14
12
|
static countNumberOfNodes(): number;
|
|
15
13
|
}
|