mftsccs-browser 2.2.4-beta → 2.2.6-beta
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 +1 -1
- package/dist/main.bundle.js.map +1 -1
- package/dist/serviceWorker.bundle.js +1 -1
- package/dist/serviceWorker.bundle.js.map +1 -1
- package/dist/types/Api/DeleteConnectionBulkApi.d.ts +1 -0
- package/dist/types/Api/GetConnectionToTheConcept.d.ts +2 -0
- package/dist/types/Constants/page.const.d.ts +5 -0
- package/dist/types/DataStructures/BaseUrl.d.ts +4 -1
- package/dist/types/DataStructures/Concept.d.ts +3 -3
- package/dist/types/DataStructures/ConceptData.d.ts +4 -0
- package/dist/types/DataStructures/Connection.d.ts +1 -1
- package/dist/types/DataStructures/Local/LConnection.d.ts +1 -1
- 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/Services/AccessControl/AccessControl.d.ts +47 -0
- package/dist/types/Services/CreateConnection/CreateConnectionEntity.d.ts +2 -2
- package/dist/types/Services/CreateDefaultConcept.d.ts +1 -0
- package/dist/types/Services/DeleteConnection.d.ts +1 -0
- package/dist/types/Services/DeleteConnectionByType.d.ts +1 -0
- package/dist/types/Services/GetRelation.d.ts +2 -2
- package/dist/types/Services/Local/CreateTheConnectionLocal.d.ts +2 -1
- package/dist/types/Services/Search/DataFormat.d.ts +23 -0
- package/dist/types/Services/Transaction/LocalTransaction.d.ts +2 -0
- package/dist/types/Services/User/UserFromLocalStorage.d.ts +6 -0
- package/dist/types/Widgets/RenderPage.service.d.ts +12 -0
- package/dist/types/Widgets/RenderWidgetService.d.ts +1 -1
- package/dist/types/Widgets/WidgetBuild.d.ts +1 -0
- package/dist/types/app.d.ts +4 -3
- package/package.json +2 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function DeleteTheConnectionBulkApi(ids: number[]): Promise<boolean>;
|
|
@@ -7,6 +7,7 @@ export declare class BaseUrl {
|
|
|
7
7
|
static LOG_SERVER: string;
|
|
8
8
|
static MQTT_CONNECTION: any;
|
|
9
9
|
static BASE_APPLICATION: string;
|
|
10
|
+
static DOCUMENTATION_WIDGET: number;
|
|
10
11
|
static ACCESS_CONTROL_BASE_URL: string;
|
|
11
12
|
static FLAGS: any;
|
|
12
13
|
static BASE_RANDOMIZER: number;
|
|
@@ -27,8 +28,9 @@ export declare class BaseUrl {
|
|
|
27
28
|
static GetCharacterByCharacterUrl(): string;
|
|
28
29
|
static GetAllConceptsByTypeUrl(): string;
|
|
29
30
|
static GetAllConnectionsOfConceptUrl(): string;
|
|
31
|
+
static GetAllConnectionsToConceptUrl(): string;
|
|
30
32
|
static GetAllAiData(): string;
|
|
31
|
-
static
|
|
33
|
+
static getAppConfig(): string;
|
|
32
34
|
static PostPrefetchConceptConnections(): string;
|
|
33
35
|
static GetSuggestedConcepts(): string;
|
|
34
36
|
static GetSuggestedConnections(): string;
|
|
@@ -64,6 +66,7 @@ export declare class BaseUrl {
|
|
|
64
66
|
static CreateTheConnectionNewUrl(): string;
|
|
65
67
|
static MakeTheTypeConceptUrl(): string;
|
|
66
68
|
static DeleteTheConnectionUrl(): string;
|
|
69
|
+
static DeleteTheConnectionBulkUrl(): string;
|
|
67
70
|
static FreeschemaQueryUrl(): string;
|
|
68
71
|
static uploadImageUrl(): string;
|
|
69
72
|
static uploadFileUrl(): string;
|
|
@@ -8,9 +8,9 @@ export declare class Concept {
|
|
|
8
8
|
accessId: number;
|
|
9
9
|
characterValue: string;
|
|
10
10
|
typeCharacter: string;
|
|
11
|
-
entryTimeStamp: Date;
|
|
11
|
+
entryTimeStamp: Date | string;
|
|
12
12
|
referentId: number | null;
|
|
13
|
-
updatedTimeStamp: Date;
|
|
13
|
+
updatedTimeStamp: Date | string;
|
|
14
14
|
referent: Concept | null | void;
|
|
15
15
|
type: null | void | Concept;
|
|
16
16
|
isNew: boolean;
|
|
@@ -20,6 +20,6 @@ export declare class Concept {
|
|
|
20
20
|
applicationId: number;
|
|
21
21
|
x: number;
|
|
22
22
|
y: number;
|
|
23
|
-
constructor(id: number, userId: number, typeId: number, categoryId: number, referentId: number | null, characterValue: string, accessId: number, isNew: boolean | undefined, entryTimeStamp: Date, updatedTimeStamp: Date, typeCharacter: string);
|
|
23
|
+
constructor(id: number, userId: number, typeId: number, categoryId: number, referentId: number | null, characterValue: string, accessId: number, isNew: boolean | undefined, entryTimeStamp: Date | string, updatedTimeStamp: Date | string, typeCharacter: string);
|
|
24
24
|
getType(): void;
|
|
25
25
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Concept } from "./Concept";
|
|
2
|
+
import { WidgetDetails } from "./WidgetCache/WidgetDetails";
|
|
2
3
|
export declare class ConceptsData {
|
|
3
4
|
name: string;
|
|
4
5
|
constructor();
|
|
@@ -10,10 +11,13 @@ export declare class ConceptsData {
|
|
|
10
11
|
static GetNpc(id: number): boolean;
|
|
11
12
|
static AddConceptToStorage(concept: Concept): void;
|
|
12
13
|
static GetConceptBulkData(ids: number[], connectionArray: Concept[], remainingIds: any): Promise<void>;
|
|
14
|
+
static AddWidget(widgetDetails: WidgetDetails): void;
|
|
13
15
|
static AddConcept(concept: Concept): void;
|
|
14
16
|
static AddConceptToMemory(concept: Concept): void;
|
|
15
17
|
static AddConceptTemporary(concept: Concept): void;
|
|
16
18
|
static RemoveConcept(concept: Concept): void;
|
|
19
|
+
static GetWidget(id: number): Promise<WidgetDetails>;
|
|
20
|
+
static RemoveWidget(id: number): Promise<any>;
|
|
17
21
|
static GetConcept(id: number): Promise<any>;
|
|
18
22
|
static GetConceptByCharacter(characterValue: string): Promise<Concept>;
|
|
19
23
|
static GetConceptByCharacterUpdated(characterValue: string): Promise<Concept>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { WidgetDetails } from "./WidgetDetails";
|
|
2
|
+
import { WidgetNode } from "./WidgetNode";
|
|
3
|
+
export declare class WidgetCache {
|
|
4
|
+
static root: WidgetNode | null;
|
|
5
|
+
static addNodeToTree(node: WidgetNode): WidgetNode | undefined;
|
|
6
|
+
static addWidgetToTree(widgetDetails: WidgetDetails): void;
|
|
7
|
+
static getNodeFromTree(id: number): Promise<WidgetNode | null>;
|
|
8
|
+
static removeNodeFromTree(id: number): Promise<void>;
|
|
9
|
+
static countNumberOfNodes(): number;
|
|
10
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { WidgetDetails } from "./WidgetDetails";
|
|
2
|
+
export declare class WidgetNode {
|
|
3
|
+
key: any;
|
|
4
|
+
value: WidgetDetails;
|
|
5
|
+
leftNode: WidgetNode | null;
|
|
6
|
+
rightNode: WidgetNode | null;
|
|
7
|
+
height: number;
|
|
8
|
+
constructor(key: any, value: WidgetDetails, leftNode: WidgetNode | null, rightNode: WidgetNode | null);
|
|
9
|
+
addNode(passedNode: WidgetNode, node: WidgetNode | null, height: number): WidgetNode | null;
|
|
10
|
+
rightRotate(y: WidgetNode | null): WidgetNode | null;
|
|
11
|
+
leftRotate(x: WidgetNode | null): WidgetNode | null;
|
|
12
|
+
getHeight(node: WidgetNode | null): number;
|
|
13
|
+
getBalanceFactor(N: WidgetNode | null): number;
|
|
14
|
+
getFromNode(id: number, node: WidgetNode | null): WidgetNode | null;
|
|
15
|
+
removeNode(passedNode: WidgetNode | null, id: number): WidgetNode | null;
|
|
16
|
+
countNodeBelow(root: WidgetNode | null): number;
|
|
17
|
+
inOrderSuccessor(root: WidgetNode): WidgetNode;
|
|
18
|
+
}
|
|
@@ -9,15 +9,20 @@ export declare class AccessControlService {
|
|
|
9
9
|
conceptId: number;
|
|
10
10
|
accessList: string[];
|
|
11
11
|
nestedAccessLevel?: number;
|
|
12
|
+
conceptIdList?: number[];
|
|
12
13
|
}): Promise<any>;
|
|
13
14
|
static assignPublicAccessBlukConcept(request: {
|
|
14
15
|
conceptIdList: number[];
|
|
15
16
|
accessList: string[];
|
|
17
|
+
nestedAccessLevel?: number;
|
|
18
|
+
conceptId?: number;
|
|
16
19
|
}): Promise<any>;
|
|
17
20
|
static assignAccessToEntityBulk(request: {
|
|
18
21
|
conceptId: number;
|
|
22
|
+
conceptIdList: number[];
|
|
19
23
|
entityIdList: number[];
|
|
20
24
|
accessList: string[];
|
|
25
|
+
nestedAccessLevel?: number;
|
|
21
26
|
}): Promise<any>;
|
|
22
27
|
static assignAccessByUser(request: {
|
|
23
28
|
conceptId: number;
|
|
@@ -35,4 +40,46 @@ export declare class AccessControlService {
|
|
|
35
40
|
entityIdList: number[];
|
|
36
41
|
accessList: string[];
|
|
37
42
|
}): Promise<any>;
|
|
43
|
+
static getAccessList(conceptId: number, userId: number): Promise<any>;
|
|
44
|
+
static getPublicAccessList(conceptIdList: number[]): Promise<any>;
|
|
45
|
+
static revokePublicAccess(request: {
|
|
46
|
+
conceptId: number;
|
|
47
|
+
accessList: string[];
|
|
48
|
+
nestedAccessLevel?: number;
|
|
49
|
+
}): Promise<any>;
|
|
50
|
+
static checkAccess(params: {
|
|
51
|
+
conceptId: number;
|
|
52
|
+
permission: string;
|
|
53
|
+
entityId: number;
|
|
54
|
+
}): Promise<any>;
|
|
55
|
+
static checkAccessByUser(request: {
|
|
56
|
+
conceptId: number;
|
|
57
|
+
access: string;
|
|
58
|
+
userId: number;
|
|
59
|
+
}): Promise<any>;
|
|
60
|
+
static filterConceptsByAccess(request: {
|
|
61
|
+
userId: number;
|
|
62
|
+
access: string;
|
|
63
|
+
conceptIdList?: number[];
|
|
64
|
+
connectionIdList?: number[];
|
|
65
|
+
}): Promise<any>;
|
|
66
|
+
static checkAccessOfConceptBulk(request: {
|
|
67
|
+
userId: number;
|
|
68
|
+
access: string;
|
|
69
|
+
conceptIdList: number[];
|
|
70
|
+
}): Promise<any>;
|
|
71
|
+
static getEntitiesByAccess(conceptId: number, access: string): Promise<any>;
|
|
72
|
+
static getEntitiesWithAccess(conceptId: number): Promise<any>;
|
|
73
|
+
static getAccessGroupByEntity(entityId?: number): Promise<any>;
|
|
74
|
+
static getAccessGroupByUser(userId?: number): Promise<any>;
|
|
75
|
+
static getPublicAccessByAccessIds(accessIdList: number[]): Promise<any>;
|
|
76
|
+
static getFullAccessMappingForPublic(): Promise<any>;
|
|
77
|
+
static assignPublicAccessForAllUser(): Promise<any>;
|
|
78
|
+
static assignAccessByConncetionTypeOfUser(): Promise<any>;
|
|
79
|
+
static setAccessInheritance(request: {
|
|
80
|
+
mainConceptId: number;
|
|
81
|
+
enable: boolean;
|
|
82
|
+
connectionTypeId?: number;
|
|
83
|
+
}): Promise<any>;
|
|
84
|
+
static getAccessInheritanceStatus(mainConceptId: number, connectionTypeId?: number): Promise<any>;
|
|
38
85
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Concept } from "../../app";
|
|
2
|
-
export declare function CreateConnectionBetweenEntityLocal(concept1Data: Concept, concept2Data: Concept, linker: string): Promise<
|
|
1
|
+
import { Concept, InnerActions } from "../../app";
|
|
2
|
+
export declare function CreateConnectionBetweenEntityLocal(concept1Data: Concept, concept2Data: Concept, linker: string, actions?: InnerActions): Promise<any>;
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* @returns
|
|
6
6
|
*/
|
|
7
7
|
export declare function DeleteConnectionByType(id: number, linker: string): Promise<any>;
|
|
8
|
+
export declare function DeleteConnectionByTypeBulk(id: number, linkers: string[]): Promise<any>;
|
|
8
9
|
/**
|
|
9
10
|
* This function returns all the connections from the ofTheConceptId and connection type
|
|
10
11
|
* @param id ofTheConceptId
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function GetRelation(id: number, relation: string, inpage?: number, page?: number): Promise<any>;
|
|
2
|
-
export declare function GetRelationRaw(id: number, relation: string, inpage?: number, page?: number): Promise<any>;
|
|
1
|
+
export declare function GetRelation(id: number, relation: string, inpage?: number, page?: number, reverse?: boolean): Promise<any>;
|
|
2
|
+
export declare function GetRelationRaw(id: number, relation: string, inpage?: number, page?: number, reverse?: boolean): Promise<any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InnerActions } from "../../app";
|
|
1
|
+
import { Concept, InnerActions } from "../../app";
|
|
2
2
|
/**
|
|
3
3
|
* This function creates a connection for the concept connection system. This connection will only be created in real sense
|
|
4
4
|
* once the data is synced using LocalSyncData.SyncDataOnline()
|
|
@@ -13,3 +13,4 @@ import { InnerActions } from "../../app";
|
|
|
13
13
|
* @returns a connection that is created and stored in the local system.
|
|
14
14
|
*/
|
|
15
15
|
export declare function CreateTheConnectionLocal(ofTheConceptId: number, toTheConceptId: number, typeId: number, orderId?: number, typeString?: string, userId?: number, actions?: InnerActions): Promise<any>;
|
|
16
|
+
export declare function CreateConnection(ofTheConcept: Concept, toTheConcept: Concept, connectionTypeString: string, actions?: InnerActions): Promise<any>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Connection } from "../../app";
|
|
2
|
+
/**
|
|
3
|
+
* ## Format Just-Id ##
|
|
4
|
+
* this function takes in connections and creates a single level objects so that all the data are added to its object/ array.
|
|
5
|
+
* This is then passed on further for stiching.
|
|
6
|
+
* @param connections
|
|
7
|
+
* @param compositionData
|
|
8
|
+
* @param reverse
|
|
9
|
+
* @returns
|
|
10
|
+
*/
|
|
11
|
+
export declare function FormatFunctionDataForClean(connections: Connection[], compositionData: any[], reverse?: number[]): Promise<any[]>;
|
|
12
|
+
/**
|
|
13
|
+
* ############ Format is Just Id and is used for list. ############
|
|
14
|
+
* This is helpful in building a format that has multiple mainCompositions i.e. in the context of the list
|
|
15
|
+
* The list format is helpful because you do not have to go over each individual query.
|
|
16
|
+
* @param connections the type connections that need (external connections) to be passed
|
|
17
|
+
* @param compositionData this is a dictionary type of format that has all the build compositions {id: { actual data}}
|
|
18
|
+
* @param mainComposition this is list of ids of the main composition that builds the tree
|
|
19
|
+
* @param reverse this is the list of connections ids that needs to go to the reverse direction (to---->from)
|
|
20
|
+
* @returns
|
|
21
|
+
*/
|
|
22
|
+
export declare function FormatFromConnectionsAlteredArrayExternalClean(connections: Connection[], compositionData: any[], mainComposition: number[], reverse: number[] | undefined, CountDictionary: any[]): Promise<any[]>;
|
|
23
|
+
export declare function AddCount(ofTheConceptId: number, CountDictionary: any, newData: any): void;
|
|
@@ -32,6 +32,8 @@ export declare class LocalTransaction {
|
|
|
32
32
|
*/
|
|
33
33
|
CreateConnectionBetweenTwoConceptsLocal(ofTheConcept: Concept, toTheConcept: Concept, linker: string, both?: boolean): Promise<any>;
|
|
34
34
|
CreateTheConnectionLocal(ofTheConceptId: number, toTheConceptId: number, typeId: number, orderId?: number, typeString?: string, userId?: number): Promise<any>;
|
|
35
|
+
CreateConnection(ofTheConcept: Concept, toTheConcept: Concept, connectionTypeString: string): Promise<any>;
|
|
36
|
+
CreateConnectionBetweenEntityLocal(concept1Data: Concept, concept2Data: Concept, linker: string): Promise<any>;
|
|
35
37
|
/**
|
|
36
38
|
* Compositions
|
|
37
39
|
*/
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* @param pageData
|
|
4
|
+
*/
|
|
5
|
+
export declare function applyPageProperties(pageData: any): Promise<void>;
|
|
6
|
+
/**
|
|
7
|
+
*
|
|
8
|
+
* @param property
|
|
9
|
+
* @param value
|
|
10
|
+
* @returns
|
|
11
|
+
*/
|
|
12
|
+
export declare function applyPageProperty(property: string, value: any): Promise<void>;
|
|
@@ -34,7 +34,7 @@ export declare function unwrapContainers(parentElement: HTMLElement, selector: s
|
|
|
34
34
|
* @param widgetId
|
|
35
35
|
*/
|
|
36
36
|
export declare function openDocumentationPreviewModal(widgetId: number): Promise<void>;
|
|
37
|
-
export declare function showWidgetDocumentation(widgetDocumentData: any): void
|
|
37
|
+
export declare function showWidgetDocumentation(widgetDocumentData: any, widgetId: number): Promise<void>;
|
|
38
38
|
/**
|
|
39
39
|
* Opens modal
|
|
40
40
|
* @param modalId
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export declare function BuildWidgetFromId(id: number): Promise<any>;
|
|
2
|
+
export declare function BuildWidgetFromCache(id: number): Promise<any>;
|
|
2
3
|
export declare function BuildWidgetFromIdForLatest(id: number): Promise<any>;
|
|
3
4
|
export declare function GetWidgetForTree(data: any, id: number): any;
|
package/dist/types/app.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export { MakeTheTypeConceptLocal } from './Services/Local/MakeTheTypeLocal';
|
|
|
21
21
|
export { MakeTheTypeConceptApi } from './Api/MakeTheTypeConceptApi';
|
|
22
22
|
export { GetLinkerConnectionFromConcepts, GetLinkerConnectionToConcepts } from './Services/GetLinkerConnectionFromConcept';
|
|
23
23
|
export { DeleteConceptById } from './Services/DeleteConcept';
|
|
24
|
-
export { DeleteConnectionById } from './Services/DeleteConnection';
|
|
24
|
+
export { DeleteConnectionById, DeleteConnectionByIdBulk } from './Services/DeleteConnection';
|
|
25
25
|
export { TrashTheConcept } from './Api/Delete/DeleteConceptInBackend';
|
|
26
26
|
export { GetConnectionById } from './Services/GetConnections';
|
|
27
27
|
export { MakeTheTimestamp } from './Services/MakeTheTimestamp';
|
|
@@ -48,7 +48,7 @@ export { recursiveFetchNew } from './Services/Composition/BuildComposition';
|
|
|
48
48
|
export { CreateTheCompositionWithCache } from './Services/Composition/CreateCompositionCache';
|
|
49
49
|
export { CreateDefaultLConcept } from './Services/Local/CreateDefaultLConcept';
|
|
50
50
|
export { CreateTheConnectionGeneral } from './Services/CreateTheConnectionGeneral';
|
|
51
|
-
export { CreateTheConnectionLocal } from './Services/Local/CreateTheConnectionLocal';
|
|
51
|
+
export { CreateTheConnectionLocal, CreateConnection } from './Services/Local/CreateTheConnectionLocal';
|
|
52
52
|
export { GetCompositionListAll, GetCompositionListAllWithId, GetCompositionListWithIdUpdated } from './Services/GetCompositionList';
|
|
53
53
|
export { GetUserGhostId, AddGhostConcept } from './Services/User/UserTranslation';
|
|
54
54
|
export { SearchLinkMultipleAll, FormatFromConnections } from './Services/Search/SearchLinkMultiple';
|
|
@@ -112,7 +112,7 @@ export { Validator } from './Validator/validator';
|
|
|
112
112
|
export { createFormFieldData } from './Validator/utils';
|
|
113
113
|
export { BaseUrl } from './DataStructures/BaseUrl';
|
|
114
114
|
export { StatefulWidget } from './Widgets/StatefulWidget';
|
|
115
|
-
export { DeleteConnectionByType, GetAllTheConnectionsByTypeAndOfTheConcept } from './Services/DeleteConnectionByType';
|
|
115
|
+
export { DeleteConnectionByType, DeleteConnectionByTypeBulk, GetAllTheConnectionsByTypeAndOfTheConcept } from './Services/DeleteConnectionByType';
|
|
116
116
|
export { FreeschemaQuery } from './DataStructures/Search/FreeschemaQuery';
|
|
117
117
|
export { FreeschemaQueryApi } from './Api/Search/FreeschemaQueryApi';
|
|
118
118
|
export { SchemaQueryListener, SchemaQuery } from './WrapperFunctions/SchemaQueryObservable';
|
|
@@ -122,6 +122,7 @@ export { AccessTracker } from './AccessTracker/accessTracker';
|
|
|
122
122
|
export { CreateConnectionBetweenEntityLocal } from './Services/CreateConnection/CreateConnectionEntity';
|
|
123
123
|
export { BuildWidgetFromId } from './Widgets/WidgetBuild';
|
|
124
124
|
export { removeAllChildren } from './Services/Common/RemoveAllChild';
|
|
125
|
+
export { getUserDetails } from './Services/User/UserFromLocalStorage';
|
|
125
126
|
export { Selector } from './Api/Prototype/Selector';
|
|
126
127
|
export { AccessControlService } from './Services/AccessControl/AccessControl';
|
|
127
128
|
export { renderLatestWidget, renderPage, renderWidget, convertWidgetTreeToWidgetWithWrapper, getWidgetFromId, convertWidgetTreeToWidget, unwrapContainers, getWidgetBulkFromId } from './Widgets/RenderWidgetService';
|