mftsccs-browser 100.0.72 → 100.0.73
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 +1 -1
- package/dist/types/Api/Create/CreateTheGhostConceptApi.d.ts +2 -2
- package/dist/types/Api/Local/GetLocalConceptByCharacterValue.d.ts +2 -2
- package/dist/types/DataStructures/Concept.d.ts +16 -10
- package/dist/types/DataStructures/Local/LConnection.d.ts +2 -2
- package/dist/types/DataStructures/Local/LNode.d.ts +3 -3
- package/dist/types/DataStructures/Local/LocalBinaryCharacterTree.d.ts +2 -2
- package/dist/types/DataStructures/Local/LocalBinaryTree.d.ts +2 -2
- package/dist/types/DataStructures/Local/LocalBinaryTypeTree.d.ts +4 -4
- package/dist/types/DataStructures/Local/LocalConceptData.d.ts +13 -13
- package/dist/types/DataStructures/Local/LocalGhostIdTree.d.ts +2 -2
- package/dist/types/DataStructures/Local/LocalSyncData.d.ts +9 -9
- package/dist/types/DataStructures/User/UserBinaryTree.d.ts +2 -2
- package/dist/types/DataStructures/User/UserNode.d.ts +3 -3
- package/dist/types/Helpers/CheckIfExists.d.ts +2 -2
- package/dist/types/Services/Conversion/ConvertConcepts.d.ts +3 -2
- package/dist/types/Services/CreateTheConcept.d.ts +3 -3
- package/dist/types/Services/GetCompositionList.d.ts +2 -2
- package/dist/types/Services/Local/ConvertFromLConceptToConcept.d.ts +2 -1
- package/dist/types/Services/Local/CreateConnectionBetweenTwoConceptsLocal.d.ts +2 -2
- package/dist/types/Services/Local/CreateDefaultLConcept.d.ts +2 -2
- package/dist/types/Services/Local/CreateTheCompositionLocal.d.ts +2 -2
- package/dist/types/Services/Local/CreateTheConceptLocal.d.ts +2 -2
- package/dist/types/Services/Local/GetConceptByCharacterLocal.d.ts +5 -5
- package/dist/types/Services/Local/GetTheConceptLocal.d.ts +2 -2
- package/dist/types/Services/Local/MakeTheConceptLocal.d.ts +2 -2
- package/dist/types/Services/Local/MakeTheInstanceConceptLocal.d.ts +2 -2
- package/dist/types/Services/Local/MakeTheTypeLocal.d.ts +2 -2
- package/dist/types/Services/MakeTheConcept.d.ts +1 -1
- package/dist/types/Services/User/UserTranslation.d.ts +3 -3
- package/dist/types/app.d.ts +3 -3
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LConcept } from "../../DataStructures/Local/LConcept";
|
|
2
2
|
import { LConnection } from "../../app";
|
|
3
|
-
export declare function CreateTheGhostConceptApi(conceptData:
|
|
3
|
+
export declare function CreateTheGhostConceptApi(conceptData: LConcept[], connectionData: LConnection[]): Promise<{
|
|
4
4
|
concepts: never[];
|
|
5
5
|
connections: never[];
|
|
6
6
|
}>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function GetLocalConceptByCharacterValue(characterValue: string): Promise<
|
|
1
|
+
import { LConcept } from "../../DataStructures/Local/LConcept";
|
|
2
|
+
export declare function GetLocalConceptByCharacterValue(characterValue: string): Promise<LConcept>;
|
|
@@ -1,23 +1,29 @@
|
|
|
1
|
+
import { LConcept } from "../app";
|
|
1
2
|
export declare class Concept {
|
|
3
|
+
x: number;
|
|
4
|
+
y: number;
|
|
2
5
|
id: number;
|
|
3
6
|
ghostId: number;
|
|
4
7
|
userId: number;
|
|
5
8
|
typeId: number;
|
|
9
|
+
typeUserId: number;
|
|
6
10
|
categoryId: number;
|
|
7
|
-
|
|
11
|
+
categoryUserId: number;
|
|
12
|
+
referentId: number;
|
|
13
|
+
referentUserId: number;
|
|
8
14
|
characterValue: string;
|
|
9
|
-
|
|
15
|
+
securityId: number;
|
|
16
|
+
securityUserId: number;
|
|
17
|
+
accessId: number;
|
|
18
|
+
accessUserId: number;
|
|
19
|
+
sessionInformationId: number;
|
|
20
|
+
sessionInformationUserId: number;
|
|
10
21
|
entryTimeStamp: Date;
|
|
11
|
-
referentId: number;
|
|
12
22
|
updatedTimeStamp: Date;
|
|
13
|
-
|
|
23
|
+
referent: number;
|
|
24
|
+
type: Concept | null | void | LConcept;
|
|
14
25
|
isNew: boolean;
|
|
15
|
-
isComposition: boolean;
|
|
16
26
|
isTemp: boolean;
|
|
17
|
-
|
|
18
|
-
applicationId: number;
|
|
19
|
-
x: number;
|
|
20
|
-
y: number;
|
|
21
|
-
constructor(id: number, userId: number, typeId: number, categoryId: number, referentId: number, characterValue: string, accessId: number, isNew: boolean | undefined, entryTimeStamp: Date, updatedTimeStamp: Date, typeCharacter: string);
|
|
27
|
+
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);
|
|
22
28
|
getType(): void;
|
|
23
29
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LConcept } from "./LConcept";
|
|
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:
|
|
16
|
+
type: LConcept;
|
|
17
17
|
constructor(id: number, ofTheConceptId: number, toTheConceptId: number, typeId: number, orderId: number, accessId: number);
|
|
18
18
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LConcept } from "./LConcept";
|
|
2
2
|
export declare class LNode {
|
|
3
3
|
key: any;
|
|
4
|
-
value:
|
|
4
|
+
value: LConcept;
|
|
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: LConcept, 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;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LConcept } from "../../DataStructures/Local/LConcept";
|
|
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: LConcept): void;
|
|
9
9
|
static getNodeFromTree(value: string): LNode | null;
|
|
10
10
|
static getCharacterAndTypeFromTree(value: string, typeId: number): Promise<LNode | null>;
|
|
11
11
|
static getCharacterAndCategoryFromTree(value: string, categoryId: number): Promise<LNode | null>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LConcept } from "../../DataStructures/Local/LConcept";
|
|
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: LConcept): void;
|
|
7
7
|
static waitForDataToLoad(): Promise<unknown>;
|
|
8
8
|
static checkFlag(resolve: any): any;
|
|
9
9
|
static getNodeFromTree(id: number): Promise<LNode | null>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LConcept } from "../../DataStructures/Local/LConcept";
|
|
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: LConcept): 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): LConcept[] | 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<LConcept[]>;
|
|
13
13
|
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LConcept } from "./../Local/LConcept";
|
|
2
2
|
export declare class LocalConceptsData {
|
|
3
3
|
name: string;
|
|
4
4
|
constructor();
|
|
5
|
-
static localconceptsArray:
|
|
6
|
-
static AddConcept(concept:
|
|
7
|
-
static AddPermanentConcept(concept:
|
|
8
|
-
static RemoveConcept(concept:
|
|
9
|
-
static AddConceptToMemory(concept:
|
|
10
|
-
static GetConcept(id: number): Promise<
|
|
5
|
+
static localconceptsArray: LConcept[];
|
|
6
|
+
static AddConcept(concept: LConcept): void;
|
|
7
|
+
static AddPermanentConcept(concept: LConcept): void;
|
|
8
|
+
static RemoveConcept(concept: LConcept): Promise<void>;
|
|
9
|
+
static AddConceptToMemory(concept: LConcept): void;
|
|
10
|
+
static GetConcept(id: number): Promise<LConcept>;
|
|
11
11
|
static UpdateConceptSyncStatus(id: number): Promise<void>;
|
|
12
|
-
static GetConceptByGhostId(id: number): Promise<
|
|
13
|
-
static GetConceptByCharacter(characterValue: string): Promise<
|
|
14
|
-
static GetConceptByCharacterAndTypeLocal(character_value: string, typeId: number): Promise<
|
|
15
|
-
static GetConceptByCharacterAndCategoryLocal(character_value: string, categoryId: number): Promise<
|
|
16
|
-
static GetConceptsByTypeId(typeId: number):
|
|
17
|
-
static GetConceptsByTypeIdAndUser(typeId: number, userId: number): Promise<
|
|
12
|
+
static GetConceptByGhostId(id: number): Promise<LConcept>;
|
|
13
|
+
static GetConceptByCharacter(characterValue: string): Promise<LConcept>;
|
|
14
|
+
static GetConceptByCharacterAndTypeLocal(character_value: string, typeId: number): Promise<LConcept>;
|
|
15
|
+
static GetConceptByCharacterAndCategoryLocal(character_value: string, categoryId: number): Promise<LConcept>;
|
|
16
|
+
static GetConceptsByTypeId(typeId: number): LConcept[];
|
|
17
|
+
static GetConceptsByTypeIdAndUser(typeId: number, userId: number): Promise<LConcept[]>;
|
|
18
18
|
getName(): string;
|
|
19
19
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LConcept } from "../../DataStructures/Local/LConcept";
|
|
2
2
|
import { LNode } from "./../Local/LNode";
|
|
3
3
|
export declare class LocalGhostIdTree {
|
|
4
4
|
static root: LNode | null;
|
|
5
5
|
static addNodeToTree(node: LNode): LNode | undefined;
|
|
6
|
-
static addConceptToTree(concept:
|
|
6
|
+
static addConceptToTree(concept: LConcept): void;
|
|
7
7
|
static waitForDataToLoad(): Promise<unknown>;
|
|
8
8
|
static checkFlag(resolve: any): any;
|
|
9
9
|
static getNodeFromTree(id: number): Promise<LNode | null>;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LConcept } from "./LConcept";
|
|
2
2
|
import { LConnection } from "./LConnection";
|
|
3
3
|
export declare class LocalSyncData {
|
|
4
|
-
static conceptsSyncArray:
|
|
4
|
+
static conceptsSyncArray: LConcept[];
|
|
5
5
|
static connectionSyncArray: LConnection[];
|
|
6
6
|
static ghostIdMap: Map<any, any>;
|
|
7
|
-
static CheckContains(concept:
|
|
7
|
+
static CheckContains(concept: LConcept): boolean;
|
|
8
8
|
static SyncDataDelete(id: number): void;
|
|
9
9
|
static CheckContainsConnection(connection: LConnection): boolean;
|
|
10
|
-
static AddConcept(concept:
|
|
11
|
-
static RemoveConcept(concept:
|
|
12
|
-
static SyncDataOnline(): Promise<
|
|
10
|
+
static AddConcept(concept: LConcept): void;
|
|
11
|
+
static RemoveConcept(concept: LConcept): void;
|
|
12
|
+
static SyncDataOnline(): Promise<LConcept[]>;
|
|
13
13
|
static ConvertGhostIdsInConnections(connectionArray: LConnection[]): void;
|
|
14
|
-
static UpdateConceptListToIncludeRelatedConcepts(connectionArray: LConnection[], conceptsArray:
|
|
15
|
-
static AddConceptIfDoesNotExist(concept:
|
|
16
|
-
static CheckIfTheConceptIdExists(id: number, conceptList?:
|
|
14
|
+
static UpdateConceptListToIncludeRelatedConcepts(connectionArray: LConnection[], conceptsArray: LConcept[]): Promise<void>;
|
|
15
|
+
static AddConceptIfDoesNotExist(concept: LConcept, conceptList?: LConcept[]): void;
|
|
16
|
+
static CheckIfTheConceptIdExists(id: number, conceptList?: LConcept[]): LConcept;
|
|
17
17
|
static AddConnection(connection: LConnection): void;
|
|
18
18
|
static RemoveConnection(connection: LConnection): void;
|
|
19
19
|
static syncDataLocalDb(): Promise<string>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LConcept } from "../../DataStructures/Local/LConcept";
|
|
2
2
|
import { UserNode } from "./UserNode";
|
|
3
3
|
export declare class UserBinaryTree {
|
|
4
4
|
static root: UserNode | null;
|
|
@@ -6,7 +6,7 @@ export declare class UserBinaryTree {
|
|
|
6
6
|
static addNodeToTree(node: UserNode): UserNode | undefined;
|
|
7
7
|
static waitForDataToLoad(): Promise<unknown>;
|
|
8
8
|
static checkFlag(resolve: any): any;
|
|
9
|
-
static addConceptToTree(concept:
|
|
9
|
+
static addConceptToTree(concept: LConcept, userId: number, sessionId?: number): void;
|
|
10
10
|
static getNodeFromTree(userId: number, sessionId: number): Promise<UserNode | null>;
|
|
11
11
|
static removeNodeFromTree(userId: number, sessionId?: number): Promise<void>;
|
|
12
12
|
static countNumberOfNodes(): number;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LConcept } from "../Local/LConcept";
|
|
2
2
|
export declare class UserNode {
|
|
3
3
|
key: any;
|
|
4
|
-
value:
|
|
4
|
+
value: LConcept[];
|
|
5
5
|
leftNode: UserNode | null;
|
|
6
6
|
rightNode: UserNode | null;
|
|
7
7
|
height: number;
|
|
8
|
-
constructor(key: any, value:
|
|
8
|
+
constructor(key: any, value: LConcept, leftNode: UserNode | null, rightNode: UserNode | null);
|
|
9
9
|
addNode(passedNode: UserNode, node: UserNode | null, height: number): UserNode | null;
|
|
10
10
|
rightRotate(y: UserNode | null): UserNode | null;
|
|
11
11
|
leftRotate(x: UserNode | null): UserNode | null;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Concept } from "../DataStructures/Concept";
|
|
2
2
|
import { Connection } from "../DataStructures/Connection";
|
|
3
|
-
import { LConnection } from "../app";
|
|
3
|
+
import { LConcept, LConnection } from "../app";
|
|
4
4
|
export declare function CheckIfConceptsExistsInArray(conceptList: Concept[] | undefined, concept: Concept): Concept;
|
|
5
5
|
export declare function CheckIfTypeConceptsExistsInArray(conceptList: Concept[] | undefined, concept: Concept): Concept[];
|
|
6
|
-
export declare function CheckIfTypeLConceptsExistsInArray(conceptList:
|
|
6
|
+
export declare function CheckIfTypeLConceptsExistsInArray(conceptList: LConcept[] | undefined, concept: LConcept): LConcept[];
|
|
7
7
|
export declare function CheckIfConnectionExistsInArray(connectionList: Connection[] | undefined, connection: Connection): Connection;
|
|
8
8
|
export declare function CheckIfToTheConceptExistsInConnectionArray(connectionList: Connection[] | undefined, conceptId: number): Connection;
|
|
9
9
|
export declare function CheckAllConnectionsConnectedInConnectionArray(connectionList: Connection[] | undefined, conceptId: number): Connection[];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Concept } from "../../DataStructures/Concept";
|
|
2
2
|
import { Connection } from "../../DataStructures/Connection";
|
|
3
|
+
import { LConcept } from "../../DataStructures/Local/LConcept";
|
|
3
4
|
import { LConnection } from "../../DataStructures/Local/LConnection";
|
|
4
|
-
export declare function convertFromConceptToLConcept(concept: Concept):
|
|
5
|
-
export declare function convertFromLConceptToConcept(lconcept:
|
|
5
|
+
export declare function convertFromConceptToLConcept(concept: Concept): LConcept;
|
|
6
|
+
export declare function convertFromLConceptToConcept(lconcept: LConcept): Concept;
|
|
6
7
|
export declare function convertFromConnectionToLConnection(connection: Connection): LConnection;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Concept } from "../DataStructures/Concept";
|
|
2
|
-
export default function CreateTheConcept(referent: string, userId: number, categoryId: number, typeId: number, referentId: number, accessId: number,
|
|
3
|
-
export declare function CreateTheConceptTemporary(referent: string, userId: number, categoryId: number, typeId: number, referentId: number, accessId: number,
|
|
4
|
-
export declare function CreateTheConceptImmediate(referent: string, userId: number, categoryId: number, typeId: number, referentId: number, accessId: number,
|
|
2
|
+
export default function CreateTheConcept(referent: string, userId: number, categoryId: number, categoryUserId: number, typeId: number, typeUserId: number, referentId: number, referentUserId: number, securityId: number, securityUserId: number, accessId: number, accessUserId: number, sessionInformationId: number, sessionInformationUserId: number): Promise<Concept>;
|
|
3
|
+
export declare function CreateTheConceptTemporary(referent: string, userId: number, categoryId: number, categoryUserId: number, typeId: number, typeUserId: number, referentId: number, referentUserId: number, securityId: number, securityUserId: number, accessId: number, accessUserId: number, sessionInformationId: number, sessionInformationUserId: number): Promise<Concept>;
|
|
4
|
+
export declare function CreateTheConceptImmediate(referent: string, userId: number, categoryId: number, categoryUserId: number, typeId: number, typeUserId: number, referentId: number, referentUserId: number, securityId: number, securityUserId: number, accessId: number, accessUserId: number, sessionInformationId: number, sessionInformationUserId: number): Promise<Concept>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Concept } from "../app";
|
|
1
|
+
import { Concept, LConcept } from "../app";
|
|
2
2
|
export declare function GetCompositionList(compositionName: string, userId: number, inpage?: number, page?: number): Promise<any>;
|
|
3
3
|
export declare function GetCompositionListAll(compositionName: string, userId: number, inpage?: number, page?: number): Promise<any[]>;
|
|
4
4
|
export declare function GetCompositionListAllWithId(compositionName: string, userId: number, inpage?: number, page?: number): Promise<any[]>;
|
|
5
5
|
export declare function GetCompositionListWithId(compositionName: string, userId: number, inpage?: number, page?: number): Promise<any>;
|
|
6
|
-
export declare function FormatTheConcepts(conceptList: Concept[], localConceptList:
|
|
6
|
+
export declare function FormatTheConcepts(conceptList: Concept[], localConceptList: LConcept[], inpage?: number, page?: number): Promise<any[]>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import { LConcept } from "../../DataStructures/Local/LConcept";
|
|
1
2
|
import { Concept } from "../../DataStructures/Concept";
|
|
2
|
-
export declare function ConvertFromLConceptToConcept(lconcept:
|
|
3
|
+
export declare function ConvertFromLConceptToConcept(lconcept: LConcept): Concept;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function CreateConnectionBetweenTwoConceptsLocal(ofTheConcept:
|
|
1
|
+
import { LConcept } from "../../app";
|
|
2
|
+
export declare function CreateConnectionBetweenTwoConceptsLocal(ofTheConcept: LConcept, toTheConcept: LConcept, linker: string, both?: boolean): Promise<import("../../app").LConnection>;
|
|
@@ -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,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LConcept } from "../../DataStructures/Local/LConcept";
|
|
2
2
|
/**
|
|
3
3
|
* This function converts a json data to concept connection and also preserves its relation.
|
|
4
4
|
* @param json The json data that needs to be converted to the concept connection system
|
|
@@ -11,4 +11,4 @@ import { Concept } from "../../DataStructures/Concept";
|
|
|
11
11
|
* @param automaticSync for future use.
|
|
12
12
|
* @returns the main concept of this composition.
|
|
13
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): Promise<
|
|
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): Promise<LConcept>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LConcept } from "../../DataStructures/Local/LConcept";
|
|
2
2
|
/**
|
|
3
3
|
* This function creates the concept in the local system (Local memory and IndexDb) but not in the backend database
|
|
4
4
|
* To create this concept in the backend database you need to sync the local data to the backend by LocalSyncData class.
|
|
@@ -19,4 +19,4 @@ import { Concept } from "../../DataStructures/Concept";
|
|
|
19
19
|
* @param referentId if this concept refers to any other concept then this needs to be passed.
|
|
20
20
|
* @returns
|
|
21
21
|
*/
|
|
22
|
-
export default function CreateTheConceptLocal(referent: string, typecharacter: string, userId: number, categoryId: number, typeId: number, accessId: number, isComposition?: boolean, referentId?: number): Promise<
|
|
22
|
+
export default function CreateTheConceptLocal(referent: string, typecharacter: string, userId: number, categoryId: number, typeId: number, accessId: number, isComposition?: boolean, referentId?: number): Promise<LConcept>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export default function GetConceptByCharacterLocal(characterValue: string): Promise<
|
|
1
|
+
import { LConcept } from "../../app";
|
|
2
|
+
export default function GetConceptByCharacterLocal(characterValue: string): Promise<LConcept>;
|
|
3
3
|
/**
|
|
4
4
|
*
|
|
5
5
|
* @param character the character value of the concept we want to find in our local system.
|
|
6
6
|
* @returns LConcept which will be the associated concept with the character Value.
|
|
7
7
|
*/
|
|
8
|
-
export declare function GetConceptByCharacterAndCategoryLocal(character: string): Promise<
|
|
9
|
-
export declare function GetConceptByCategoryAndCharacterLocalMemory(value: string, categoryId: number): Promise<
|
|
10
|
-
export declare function GetConceptByCharacterLocalFull(characterValue: string): Promise<
|
|
8
|
+
export declare function GetConceptByCharacterAndCategoryLocal(character: string): Promise<LConcept>;
|
|
9
|
+
export declare function GetConceptByCategoryAndCharacterLocalMemory(value: string, categoryId: number): Promise<LConcept>;
|
|
10
|
+
export declare function GetConceptByCharacterLocalFull(characterValue: string): Promise<LConcept>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LConcept } from "../../app";
|
|
2
2
|
/**
|
|
3
3
|
* This function converts any local/ virtual or real concept id to a LConcept.
|
|
4
4
|
* In case that the id is virtual then it tries to find it from the local memory. This will return -ve id.
|
|
@@ -7,4 +7,4 @@ import { Concept } from "../../app";
|
|
|
7
7
|
* @param id the id that you want to find out the concept of. This could be a negative (virtual id ) or a real concept id.
|
|
8
8
|
* @returns LConcept with either (-ve or +ve id)
|
|
9
9
|
*/
|
|
10
|
-
export declare function GetTheConceptLocal(id: number): Promise<
|
|
10
|
+
export declare function GetTheConceptLocal(id: number): Promise<LConcept>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export default function MakeTheConceptLocal(referent: string, typeCharacter: string, userId: number, categoryId: number, typeId: number): Promise<
|
|
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,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LConcept } from "../../DataStructures/Local/LConcept";
|
|
2
2
|
/**
|
|
3
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
4
|
* concept connection system. This function is the building block of the concept connection system.
|
|
@@ -14,4 +14,4 @@ import { Concept } from "../../DataStructures/Concept";
|
|
|
14
14
|
* @param referentId In case we need this concept to refer to any other concept.
|
|
15
15
|
* @returns a concept which is either newly created or an older concept that already exists.
|
|
16
16
|
*/
|
|
17
|
-
export declare function MakeTheInstanceConceptLocal(type: string, referent: string, composition: boolean | undefined, userId: number, accessId: number, sessionInformationId?: number, referentId?: number): Promise<
|
|
17
|
+
export declare function MakeTheInstanceConceptLocal(type: string, referent: string, composition: boolean | undefined, userId: number, accessId: number, sessionInformationId?: number, referentId?: number): Promise<LConcept>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LConcept } from "../../DataStructures/Local/LConcept";
|
|
2
2
|
/**
|
|
3
3
|
* There are two types of concepts. One type of concept is a type concept. These concepts have no actual value and do not mean
|
|
4
4
|
* anything unless they are associated with other values. These are placeholders like first_name, last_name, age etc that are required in the system.
|
|
@@ -11,4 +11,4 @@ import { Concept } from "../../DataStructures/Concept";
|
|
|
11
11
|
* @param userId UserId of the user creating this concept
|
|
12
12
|
* @returns
|
|
13
13
|
*/
|
|
14
|
-
export declare function MakeTheTypeConceptLocal(typeString: string, sessionId: number, sessionUserId: number, userId: number): Promise<
|
|
14
|
+
export declare function MakeTheTypeConceptLocal(typeString: string, sessionId: number, sessionUserId: number, userId: number): Promise<LConcept>;
|
|
@@ -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,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function GetUserGhostId(userId: number, ghostId: number, sessionId?: number): Promise<
|
|
3
|
-
export declare function AddGhostConcept(concept:
|
|
1
|
+
import { LConcept } from './../../DataStructures/Local/LConcept';
|
|
2
|
+
export declare function GetUserGhostId(userId: number, ghostId: number, sessionId?: number): Promise<LConcept>;
|
|
3
|
+
export declare function AddGhostConcept(concept: LConcept, userId: number, sessionId?: number): Promise<void>;
|
package/dist/types/app.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { init, updateAccessToken };
|
|
1
2
|
export { SplitStrings } from './Services/SplitStrings';
|
|
2
3
|
export { GetCompositionList, GetCompositionListWithId } from './Services/GetCompositionList';
|
|
3
4
|
export { GetCompositionListLocal, GetCompositionListLocalWithId } from './Services/Local/GetCompositionListLocal';
|
|
@@ -60,7 +61,6 @@ export { convertFromLConceptToConcept, convertFromConceptToLConcept } from './Se
|
|
|
60
61
|
export { SearchLinkInternal } from './Services/Search/SearchLinkInternal';
|
|
61
62
|
export { CreateConnectionBetweenTwoConceptsLocal } from './Services/Local/CreateConnectionBetweenTwoConceptsLocal';
|
|
62
63
|
export { DeleteConceptLocal } from './Services/Local/DeleteConceptLocal';
|
|
63
|
-
export { GetCompositionConnectionsBetweenTwoConcepts } from './Api/GetCompositionConnectionsBetweenTwoConcepts';
|
|
64
64
|
export { GetConnectionBetweenTwoConceptsLinker } from './Services/GetConnectionBetweenTwoConceptsLinker';
|
|
65
65
|
export { DelayFunctionExecution } from './Services/Common/DelayFunction';
|
|
66
66
|
export { SyncData } from './DataStructures/SyncData';
|
|
@@ -91,7 +91,7 @@ export { BaseUrl } from './DataStructures/BaseUrl';
|
|
|
91
91
|
* Your concepts using this package.
|
|
92
92
|
* @param accessToken access token got from the sign in process
|
|
93
93
|
*/
|
|
94
|
-
|
|
94
|
+
declare function updateAccessToken(accessToken?: string): void;
|
|
95
95
|
/**
|
|
96
96
|
*
|
|
97
97
|
* @param url This is the url for the backend c# system or our main data fabric server
|
|
@@ -102,4 +102,4 @@ export declare function updateAccessToken(accessToken?: string): void;
|
|
|
102
102
|
* @param enableAi This flag is used to enable or disable the AI feature that preloads data in the indexdb.
|
|
103
103
|
* @param applicationName This is an unique name that is given to a program. Use this to discern one indexdb from another.
|
|
104
104
|
*/
|
|
105
|
-
|
|
105
|
+
declare function init(url?: string, aiurl?: string, accessToken?: string, nodeUrl?: string, enableAi?: boolean, applicationName?: string, isTest?: boolean): Promise<true | undefined>;
|