mftsccs-browser 2.2.11-beta → 2.2.13-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/bundle.js +2 -0
- package/dist/bundle.js.LICENSE.txt +1 -0
- package/dist/main.bundle.js +1 -1
- package/dist/serviceWorker.bundle.js +1 -1
- package/dist/types/DataStructures/Transaction/Transaction.d.ts +30 -0
- package/dist/types/Middleware/ApplicationMonitor.d.ts +2 -0
- package/dist/types/Services/AccessControl/AccessControl.d.ts +58 -17
- package/dist/types/Services/AccessControl/AccessControlCacheService.d.ts +19 -0
- package/dist/types/Services/AccessControl/AccessControlService.d.ts +267 -0
- package/dist/types/Services/AccessControl/PermissionSet.d.ts +8 -0
- package/dist/types/Services/Delete/GetAllConnectionByType.d.ts +16 -0
- package/dist/types/Services/MakeTheLocalConcept.d.ts +0 -0
- package/dist/types/Services/MakeTheName.d.ts +2 -0
- package/dist/types/Services/auth/AuthService.d.ts +1 -0
- package/dist/types/Widgets/BuilderStatefulWidget.d.ts +2 -0
- package/dist/types/Widgets/CacheWidget.service.d.ts +17 -0
- package/dist/types/Widgets/RenderWidgetService.d.ts +2 -0
- package/dist/types/Widgets/WidgetTree.d.ts +1 -0
- package/dist/types/app.d.ts +1 -1
- package/package.json +1 -1
- package/dist/bundle-report.html +0 -39
- package/dist/main.bundle.js.map +0 -1
- package/dist/serviceWorker.bundle.js.map +0 -1
- package/dist/types/Api/GetConnections/GetConnectionsByTypesApi.d.ts +0 -3
- package/dist/types/DataStructures/ConnectionByType/GetConnectionsByType.d.ts +0 -4
- package/dist/types/Services/Delete/DeleteConnectionByIdLocal.d.ts +0 -1
- package/dist/types/Services/Search/DataFormat.d.ts +0 -23
- package/dist/types/Services/automated/auotmated-update.d.ts +0 -2
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Concept } from "../Concept";
|
|
2
|
+
import { Connection } from "../Connection";
|
|
3
|
+
export declare class Transaction {
|
|
4
|
+
protected transactionId: string;
|
|
5
|
+
actions: InnerActions;
|
|
6
|
+
protected success: boolean;
|
|
7
|
+
constructor();
|
|
8
|
+
initialize(): Promise<void>;
|
|
9
|
+
/**
|
|
10
|
+
* Method to move concepts and connection to transaction collection
|
|
11
|
+
* @param concept Concept
|
|
12
|
+
*/
|
|
13
|
+
protected markAction(): Promise<void>;
|
|
14
|
+
/**
|
|
15
|
+
* Method to rollback all the tranctions occured
|
|
16
|
+
*/
|
|
17
|
+
rollbackTransaction(): Promise<void>;
|
|
18
|
+
commitTransaction(): Promise<void>;
|
|
19
|
+
/**
|
|
20
|
+
* Concepts
|
|
21
|
+
*/
|
|
22
|
+
MakeTheInstanceConcept(type: string, referent: string, composition: boolean | undefined, userId: number, accessId: number, sessionInformationId?: number, referentId?: number): Promise<Concept>;
|
|
23
|
+
CreateConnection(ofTheConcept: Concept, toTheConcept: Concept, typeConnection: string): Promise<Connection>;
|
|
24
|
+
MakeTheTypeConcept(typeString: string, sessionId: number, sessionUserId: number, userId: number): Promise<Concept>;
|
|
25
|
+
CreateTheConnectionGeneral(ofTheConceptId: number, ofTheConceptUserId: number, toTheConceptId: number, toTheConceptUserId: number, typeId: number, sessionInformationId: number, sessionInformationUserId: number, orderId?: number, accessId?: number, passedUserId?: number): Promise<Connection>;
|
|
26
|
+
}
|
|
27
|
+
export interface InnerActions {
|
|
28
|
+
concepts: Concept[];
|
|
29
|
+
connections: Connection[];
|
|
30
|
+
}
|
|
@@ -5,46 +5,49 @@
|
|
|
5
5
|
export declare class AccessControlService {
|
|
6
6
|
/**
|
|
7
7
|
* Assigns access to a specific entity for a concept.
|
|
8
|
+
* @param request - AddAccessByEntityRequest
|
|
8
9
|
*/
|
|
9
10
|
static assignAccessToEntity(request: {
|
|
10
11
|
conceptId: number;
|
|
11
12
|
access: string;
|
|
12
13
|
entityId: number;
|
|
13
14
|
makePublic: boolean;
|
|
15
|
+
nestedAccessLevel?: number;
|
|
14
16
|
}): Promise<any>;
|
|
15
17
|
/**
|
|
16
|
-
* Assigns public access to a concept.
|
|
18
|
+
* Assigns public access to a concept or list of concepts.
|
|
19
|
+
* @param request - AddPublicAccessToConcept
|
|
17
20
|
*/
|
|
18
21
|
static assignPublicAccess(request: {
|
|
19
22
|
conceptId: number;
|
|
23
|
+
conceptIdList?: number[];
|
|
20
24
|
accessList: string[];
|
|
21
|
-
connectionTypeList?: string[];
|
|
22
25
|
nestedAccessLevel?: number;
|
|
23
|
-
conceptIdList?: number[];
|
|
24
26
|
}): Promise<any>;
|
|
25
27
|
/**
|
|
26
28
|
* Assigns public access to multiple concepts in bulk.
|
|
29
|
+
* @param request - AddPublicAccessToConcept
|
|
27
30
|
*/
|
|
28
31
|
static assignPublicAccessBlukConcept(request: {
|
|
29
|
-
|
|
32
|
+
conceptId: number;
|
|
33
|
+
conceptIdList?: number[];
|
|
30
34
|
accessList: string[];
|
|
31
|
-
connectionTypeList?: string[];
|
|
32
35
|
nestedAccessLevel?: number;
|
|
33
|
-
conceptId?: number;
|
|
34
36
|
}): Promise<any>;
|
|
35
37
|
/**
|
|
36
38
|
* Assigns access to multiple entities and concepts in bulk.
|
|
39
|
+
* @param request - AddAccessByEntityBulkRequest
|
|
37
40
|
*/
|
|
38
41
|
static assignAccessToEntityBulk(request: {
|
|
39
42
|
conceptId: number;
|
|
40
|
-
conceptIdList
|
|
41
|
-
entityIdList
|
|
42
|
-
accessList
|
|
43
|
-
connectionTypeList?: string[];
|
|
43
|
+
conceptIdList?: number[];
|
|
44
|
+
entityIdList?: number[];
|
|
45
|
+
accessList?: string[];
|
|
44
46
|
nestedAccessLevel?: number;
|
|
45
47
|
}): Promise<any>;
|
|
46
48
|
/**
|
|
47
49
|
* Assigns access to a user for a concept.
|
|
50
|
+
* @param request - AddAccessByUserRequest
|
|
48
51
|
*/
|
|
49
52
|
static assignAccessByUser(request: {
|
|
50
53
|
conceptId: number;
|
|
@@ -54,6 +57,7 @@ export declare class AccessControlService {
|
|
|
54
57
|
}): Promise<any>;
|
|
55
58
|
/**
|
|
56
59
|
* Revokes access for an entity from a concept.
|
|
60
|
+
* @param params - conceptId, access, entityId
|
|
57
61
|
*/
|
|
58
62
|
static revokeAccess(params: {
|
|
59
63
|
conceptId: number;
|
|
@@ -62,11 +66,14 @@ export declare class AccessControlService {
|
|
|
62
66
|
}): Promise<any>;
|
|
63
67
|
/**
|
|
64
68
|
* Revokes access for multiple entities in bulk.
|
|
69
|
+
* @param request - AddAccessByEntityBulkRequest
|
|
65
70
|
*/
|
|
66
71
|
static revokeAccessBulk(request: {
|
|
67
72
|
conceptId: number;
|
|
68
|
-
|
|
69
|
-
|
|
73
|
+
conceptIdList?: number[];
|
|
74
|
+
entityIdList?: number[];
|
|
75
|
+
accessList?: string[];
|
|
76
|
+
nestedAccessLevel?: number;
|
|
70
77
|
}): Promise<any>;
|
|
71
78
|
/**
|
|
72
79
|
* Gets the access list for a concept and user.
|
|
@@ -78,10 +85,13 @@ export declare class AccessControlService {
|
|
|
78
85
|
static getPublicAccessList(conceptIdList: number[]): Promise<any>;
|
|
79
86
|
/**
|
|
80
87
|
* Revokes public access for a concept.
|
|
88
|
+
* @param request - AddPublicAccessToConcept
|
|
81
89
|
*/
|
|
82
90
|
static revokePublicAccess(request: {
|
|
83
91
|
conceptId: number;
|
|
92
|
+
conceptIdList?: number[];
|
|
84
93
|
accessList: string[];
|
|
94
|
+
nestedAccessLevel?: number;
|
|
85
95
|
}): Promise<any>;
|
|
86
96
|
/**
|
|
87
97
|
* Checks if an entity has a specific permission for a concept.
|
|
@@ -93,28 +103,33 @@ export declare class AccessControlService {
|
|
|
93
103
|
}): Promise<any>;
|
|
94
104
|
/**
|
|
95
105
|
* Checks if a user has a specific access for a concept.
|
|
106
|
+
* @param request - AddAccessByUserRequest
|
|
96
107
|
*/
|
|
97
108
|
static checkAccessByUser(request: {
|
|
98
109
|
conceptId: number;
|
|
99
110
|
access: string;
|
|
100
111
|
userId: number;
|
|
112
|
+
makePublic?: boolean;
|
|
101
113
|
}): Promise<any>;
|
|
102
114
|
/**
|
|
103
115
|
* Filters concepts by access for a user.
|
|
116
|
+
* @param request - CheckAccessBulk
|
|
104
117
|
*/
|
|
105
118
|
static filterConceptsByAccess(request: {
|
|
106
|
-
userId: number;
|
|
107
|
-
access: string;
|
|
108
119
|
conceptIdList?: number[];
|
|
109
120
|
connectionIdList?: number[];
|
|
121
|
+
access: string;
|
|
122
|
+
userId: number;
|
|
110
123
|
}): Promise<any>;
|
|
111
124
|
/**
|
|
112
125
|
* Checks access for a user on multiple concepts in bulk.
|
|
126
|
+
* @param request - CheckAccessBulk
|
|
113
127
|
*/
|
|
114
128
|
static checkAccessOfConceptBulk(request: {
|
|
115
|
-
|
|
129
|
+
conceptIdList?: number[];
|
|
130
|
+
connectionIdList?: number[];
|
|
116
131
|
access: string;
|
|
117
|
-
|
|
132
|
+
userId: number;
|
|
118
133
|
}): Promise<any>;
|
|
119
134
|
/**
|
|
120
135
|
* Gets entities with a specific access for a concept.
|
|
@@ -150,14 +165,16 @@ export declare class AccessControlService {
|
|
|
150
165
|
static assignAccessByConncetionTypeOfUser(): Promise<any>;
|
|
151
166
|
/**
|
|
152
167
|
* Sets access inheritance for a concept.
|
|
168
|
+
* @param request - AccessInheritanceRequest
|
|
153
169
|
*/
|
|
154
170
|
static setAccessInheritance(request: {
|
|
155
171
|
mainConceptId: number;
|
|
172
|
+
connectionTypeId: number;
|
|
156
173
|
enable: boolean;
|
|
157
|
-
connectionTypeId?: number;
|
|
158
174
|
}): Promise<any>;
|
|
159
175
|
/**
|
|
160
176
|
* Sets access inheritance for multiple concepts in bulk.
|
|
177
|
+
* @param request - BulkAccessInheritanceRequest
|
|
161
178
|
*/
|
|
162
179
|
static setAccessInheritanceBulk(request: {
|
|
163
180
|
items: Array<{
|
|
@@ -170,8 +187,32 @@ export declare class AccessControlService {
|
|
|
170
187
|
* Gets the status of access inheritance for a concept.
|
|
171
188
|
*/
|
|
172
189
|
static getAccessInheritanceStatus(mainConceptId: number, connectionTypeId?: number): Promise<any>;
|
|
190
|
+
/**
|
|
191
|
+
* Gets the access matrix for a given access ID.
|
|
192
|
+
*/
|
|
193
|
+
static getAccessMatrix(accessId: number): Promise<any>;
|
|
194
|
+
/**
|
|
195
|
+
* Assigns super admin access.
|
|
196
|
+
* @param request - SuperAdminRequest
|
|
197
|
+
*/
|
|
198
|
+
static assignSuperAdminAccess(request: {
|
|
199
|
+
entityConceptId: number;
|
|
200
|
+
}): Promise<any>;
|
|
201
|
+
/**
|
|
202
|
+
* Revokes super admin access.
|
|
203
|
+
* @param request - SuperAdminRequest
|
|
204
|
+
*/
|
|
205
|
+
static revokeSuperAdminAccess(request: {
|
|
206
|
+
entityConceptId: number;
|
|
207
|
+
}): Promise<any>;
|
|
208
|
+
/**
|
|
209
|
+
* Gets super admin access info for an entity concept.
|
|
210
|
+
*/
|
|
211
|
+
static getSuperAdminAccess(entityConceptId: number): Promise<any>;
|
|
212
|
+
static isSuperAdmin(entityConceptId: number): Promise<any>;
|
|
173
213
|
private static get baseUrl();
|
|
174
214
|
private static _get;
|
|
175
215
|
private static _post;
|
|
176
216
|
private static _delete;
|
|
177
217
|
}
|
|
218
|
+
export default AccessControlService;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { PermissionSet } from './PermissionSet';
|
|
2
|
+
export declare class AccessControlCacheService {
|
|
3
|
+
private readonly userAccessCache;
|
|
4
|
+
private readonly publicAccessCache;
|
|
5
|
+
private readonly baseUrl;
|
|
6
|
+
constructor();
|
|
7
|
+
loadCacheFromApi(entityId?: number): Promise<void>;
|
|
8
|
+
loadCacheFromJson(jsonData: any): void;
|
|
9
|
+
hasAccess(entityId: number, conceptId: number, required: PermissionSet): Promise<boolean>;
|
|
10
|
+
getAccessibleConcepts(entityId: number, conceptIds: number[], required: PermissionSet): Promise<number[]>;
|
|
11
|
+
getAccessByUser(entityId: number): Promise<Map<number, PermissionSet>>;
|
|
12
|
+
getAccessByConcept(conceptId: number): Promise<Map<number, PermissionSet>>;
|
|
13
|
+
deleteRecordByUserId(entityId: number): void;
|
|
14
|
+
deletePublicAccessRecordById(conceptId: number): void;
|
|
15
|
+
clearCache(): void;
|
|
16
|
+
getConceptsByPublicAccess(): Promise<Record<number, string[]>>;
|
|
17
|
+
hasPublicAccess(conceptId: number, required: PermissionSet): Promise<boolean>;
|
|
18
|
+
getConceptsWithPublicAccess(conceptIds: number[], required: PermissionSet): Promise<number[]>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
import { PermissionSet } from "./PermissionSet";
|
|
2
|
+
export declare class AccessControlService {
|
|
3
|
+
private static accessCache;
|
|
4
|
+
private static baseUrl;
|
|
5
|
+
private static initialize;
|
|
6
|
+
/**
|
|
7
|
+
* Checks if a user or entity has the specified access for a single concept.
|
|
8
|
+
* @param userId - The user's ID.
|
|
9
|
+
* @param access - The required PermissionSet.
|
|
10
|
+
* @param conceptId - The concept ID to check.
|
|
11
|
+
* @param entityId - Optional entity ID (defaults to userId).
|
|
12
|
+
* @returns Promise<boolean> - True if access is granted, false otherwise.
|
|
13
|
+
*/
|
|
14
|
+
static checkAccessOfConcept(userId: number, access: PermissionSet, conceptId: number, entityId?: number): Promise<boolean>;
|
|
15
|
+
/**
|
|
16
|
+
* Checks if a user or entity has the specified access for all concepts in a list.
|
|
17
|
+
* @param userId - The user's ID.
|
|
18
|
+
* @param access - The required PermissionSet.
|
|
19
|
+
* @param conceptIdList - Array of concept IDs to check.
|
|
20
|
+
* @param entityId - Optional entity ID (defaults to userId).
|
|
21
|
+
* @returns Promise<boolean> - True if access is granted for all, false otherwise.
|
|
22
|
+
*/
|
|
23
|
+
static checkAccessOfConceptList(userId: number, access: PermissionSet, conceptIdList: number[], entityId?: number): Promise<boolean>;
|
|
24
|
+
/**
|
|
25
|
+
* Filters a list of concept IDs, returning only those for which the user or entity has the specified access.
|
|
26
|
+
* @param userId - The user's ID.
|
|
27
|
+
* @param access - The required PermissionSet.
|
|
28
|
+
* @param conceptIdList - Array of concept IDs to filter.
|
|
29
|
+
* @param entityId - Optional entity ID (defaults to userId).
|
|
30
|
+
* @returns Promise<number[]> - Array of concept IDs with access.
|
|
31
|
+
*/
|
|
32
|
+
static filterConceptListByAccess(userId: number, access: PermissionSet, conceptIdList: number[], entityId?: number): Promise<number[]>;
|
|
33
|
+
/**
|
|
34
|
+
* Gets the entity ID for a given user ID.
|
|
35
|
+
* @param userId - The user's ID.
|
|
36
|
+
* @returns number - The entity ID (default: userId).
|
|
37
|
+
*/
|
|
38
|
+
private static getEntityIdConceptByUserId;
|
|
39
|
+
/**
|
|
40
|
+
* Assigns access to a specific entity for a concept.
|
|
41
|
+
* @param request - Object containing conceptId, access, entityId, makePublic.
|
|
42
|
+
* @returns Promise<any> - API response.
|
|
43
|
+
*/
|
|
44
|
+
static assignAccessToEntity(request: {
|
|
45
|
+
conceptId: number;
|
|
46
|
+
access: string;
|
|
47
|
+
entityId: number;
|
|
48
|
+
makePublic: boolean;
|
|
49
|
+
}): Promise<any>;
|
|
50
|
+
/**
|
|
51
|
+
* Assigns public access to a concept or list of concepts.
|
|
52
|
+
* @param request - Object containing conceptId, accessList, connectionTypeList, nestedAccessLevel, conceptIdList.
|
|
53
|
+
* @returns Promise<any> - API response.
|
|
54
|
+
*/
|
|
55
|
+
static assignPublicAccess(request: {
|
|
56
|
+
conceptId: number;
|
|
57
|
+
accessList: string[];
|
|
58
|
+
connectionTypeList?: string[];
|
|
59
|
+
nestedAccessLevel?: number;
|
|
60
|
+
conceptIdList?: number[];
|
|
61
|
+
}): Promise<any>;
|
|
62
|
+
/**
|
|
63
|
+
* Assigns public access to multiple concepts in bulk.
|
|
64
|
+
* @param request - Object containing conceptIdList, accessList, connectionTypeList, nestedAccessLevel, conceptId.
|
|
65
|
+
* @returns Promise<any> - API response.
|
|
66
|
+
*/
|
|
67
|
+
static assignPublicAccessBlukConcept(request: {
|
|
68
|
+
conceptIdList: number[];
|
|
69
|
+
accessList: string[];
|
|
70
|
+
connectionTypeList?: string[];
|
|
71
|
+
nestedAccessLevel?: number;
|
|
72
|
+
conceptId?: number;
|
|
73
|
+
}): Promise<any>;
|
|
74
|
+
/**
|
|
75
|
+
* Assigns access to multiple entities and concepts in bulk.
|
|
76
|
+
* @param request - Object containing conceptId, conceptIdList, entityIdList, accessList, connectionTypeList, nestedAccessLevel.
|
|
77
|
+
* @returns Promise<any> - API response.
|
|
78
|
+
*/
|
|
79
|
+
static assignAccessToEntityBulk(request: {
|
|
80
|
+
conceptId: number;
|
|
81
|
+
conceptIdList?: number[];
|
|
82
|
+
entityIdList: number[];
|
|
83
|
+
accessList: string[];
|
|
84
|
+
connectionTypeList?: string[];
|
|
85
|
+
nestedAccessLevel?: number;
|
|
86
|
+
}): Promise<any>;
|
|
87
|
+
/**
|
|
88
|
+
* Assigns access to a user for a concept.
|
|
89
|
+
* @param request - Object containing conceptId, access, userId, makePublic.
|
|
90
|
+
* @returns Promise<any> - API response.
|
|
91
|
+
*/
|
|
92
|
+
static assignAccessByUser(request: {
|
|
93
|
+
conceptId: number;
|
|
94
|
+
access: string;
|
|
95
|
+
userId: number;
|
|
96
|
+
makePublic: boolean;
|
|
97
|
+
}): Promise<any>;
|
|
98
|
+
/**
|
|
99
|
+
* Revokes access for an entity from a concept.
|
|
100
|
+
* @param params - Object containing conceptId, access, entityId.
|
|
101
|
+
* @returns Promise<any> - API response.
|
|
102
|
+
*/
|
|
103
|
+
static revokeAccess(params: {
|
|
104
|
+
conceptId: number;
|
|
105
|
+
access: string;
|
|
106
|
+
entityId: number;
|
|
107
|
+
}): Promise<any>;
|
|
108
|
+
/**
|
|
109
|
+
* Revokes access for multiple entities in bulk.
|
|
110
|
+
* @param request - Object containing conceptId, entityIdList, accessList.
|
|
111
|
+
* @returns Promise<any> - API response.
|
|
112
|
+
*/
|
|
113
|
+
static revokeAccessBulk(request: {
|
|
114
|
+
conceptId: number;
|
|
115
|
+
entityIdList: number[];
|
|
116
|
+
accessList: string[];
|
|
117
|
+
}): Promise<any>;
|
|
118
|
+
/**
|
|
119
|
+
* Gets the access list for a concept and user.
|
|
120
|
+
* @param conceptId - The concept ID.
|
|
121
|
+
* @param userId - The user ID.
|
|
122
|
+
* @returns Promise<any> - API response.
|
|
123
|
+
*/
|
|
124
|
+
static getAccessList(conceptId: number, userId: number): Promise<any>;
|
|
125
|
+
/**
|
|
126
|
+
* Gets the public access list for a list of concept IDs.
|
|
127
|
+
* @param conceptIdList - Array of concept IDs.
|
|
128
|
+
* @returns Promise<any> - API response.
|
|
129
|
+
*/
|
|
130
|
+
static getPublicAccessList(conceptIdList: number[]): Promise<any>;
|
|
131
|
+
/**
|
|
132
|
+
* Revokes public access for a concept.
|
|
133
|
+
* @param request - Object containing conceptId, accessList.
|
|
134
|
+
* @returns Promise<any> - API response.
|
|
135
|
+
*/
|
|
136
|
+
static revokePublicAccess(request: {
|
|
137
|
+
conceptId: number;
|
|
138
|
+
accessList: string[];
|
|
139
|
+
}): Promise<any>;
|
|
140
|
+
/**
|
|
141
|
+
* Checks if an entity has a specific permission for a concept.
|
|
142
|
+
* @param params - Object containing conceptId, permission, entityId.
|
|
143
|
+
* @returns Promise<any> - API response.
|
|
144
|
+
*/
|
|
145
|
+
static checkAccess(params: {
|
|
146
|
+
conceptId: number;
|
|
147
|
+
permission: string;
|
|
148
|
+
entityId: number;
|
|
149
|
+
}): Promise<any>;
|
|
150
|
+
/**
|
|
151
|
+
* Checks if a user has a specific access for a concept.
|
|
152
|
+
* @param request - Object containing conceptId, access, userId.
|
|
153
|
+
* @returns Promise<any> - API response.
|
|
154
|
+
*/
|
|
155
|
+
static checkAccessByUser(request: {
|
|
156
|
+
conceptId: number;
|
|
157
|
+
access: string;
|
|
158
|
+
userId: number;
|
|
159
|
+
}): Promise<any>;
|
|
160
|
+
/**
|
|
161
|
+
* Filters concepts by access for a user.
|
|
162
|
+
* @param request - Object containing userId, access, conceptIdList, connectionIdList.
|
|
163
|
+
* @returns Promise<any> - API response.
|
|
164
|
+
*/
|
|
165
|
+
static filterConceptsByAccess(request: {
|
|
166
|
+
userId: number;
|
|
167
|
+
access: string;
|
|
168
|
+
conceptIdList?: number[];
|
|
169
|
+
connectionIdList?: number[];
|
|
170
|
+
}): Promise<any>;
|
|
171
|
+
/**
|
|
172
|
+
* Checks access for a user on multiple concepts in bulk.
|
|
173
|
+
* @param request - Object containing userId, access, conceptIdList.
|
|
174
|
+
* @returns Promise<any> - API response.
|
|
175
|
+
*/
|
|
176
|
+
static checkAccessOfConceptBulk(request: {
|
|
177
|
+
userId: number;
|
|
178
|
+
access: string;
|
|
179
|
+
conceptIdList: number[];
|
|
180
|
+
}): Promise<any>;
|
|
181
|
+
/**
|
|
182
|
+
* Gets entities with a specific access for a concept.
|
|
183
|
+
* @param conceptId - The concept ID.
|
|
184
|
+
* @param access - The access type.
|
|
185
|
+
* @returns Promise<any> - API response.
|
|
186
|
+
*/
|
|
187
|
+
static getEntitiesByAccess(conceptId: number, access: string): Promise<any>;
|
|
188
|
+
/**
|
|
189
|
+
* Gets all entities with any access for a concept.
|
|
190
|
+
* @param conceptId - The concept ID.
|
|
191
|
+
* @returns Promise<any> - API response.
|
|
192
|
+
*/
|
|
193
|
+
static getEntitiesWithAccess(conceptId: number): Promise<any>;
|
|
194
|
+
/**
|
|
195
|
+
* Gets access groups by entity.
|
|
196
|
+
* @param entityId - Optional entity ID.
|
|
197
|
+
* @returns Promise<any> - API response.
|
|
198
|
+
*/
|
|
199
|
+
static getAccessGroupByEntity(entityId?: number): Promise<any>;
|
|
200
|
+
/**
|
|
201
|
+
* Gets access groups by user.
|
|
202
|
+
* @param userId - Optional user ID.
|
|
203
|
+
* @returns Promise<any> - API response.
|
|
204
|
+
*/
|
|
205
|
+
static getAccessGroupByUser(userId?: number): Promise<any>;
|
|
206
|
+
/**
|
|
207
|
+
* Gets public access by access IDs.
|
|
208
|
+
* @param accessIdList - Array of access IDs.
|
|
209
|
+
* @returns Promise<any> - API response.
|
|
210
|
+
*/
|
|
211
|
+
static getPublicAccessByAccessIds(accessIdList: number[]): Promise<any>;
|
|
212
|
+
/**
|
|
213
|
+
* Gets the full access mapping for public users.
|
|
214
|
+
* @returns Promise<any> - API response.
|
|
215
|
+
*/
|
|
216
|
+
static getFullAccessMappingForPublic(): Promise<any>;
|
|
217
|
+
/**
|
|
218
|
+
* Assigns public access for all users.
|
|
219
|
+
* @returns Promise<any> - API response.
|
|
220
|
+
*/
|
|
221
|
+
static assignPublicAccessForAllUser(): Promise<any>;
|
|
222
|
+
/**
|
|
223
|
+
* Assigns access by connection type for users.
|
|
224
|
+
* @returns Promise<any> - API response.
|
|
225
|
+
*/
|
|
226
|
+
static assignAccessByConncetionTypeOfUser(): Promise<any>;
|
|
227
|
+
/**
|
|
228
|
+
* Sets access inheritance for a concept.
|
|
229
|
+
* @param request - Object containing mainConceptId, enable, connectionTypeId.
|
|
230
|
+
* @returns Promise<any> - API response.
|
|
231
|
+
*/
|
|
232
|
+
static setAccessInheritance(request: {
|
|
233
|
+
mainConceptId: number;
|
|
234
|
+
enable: boolean;
|
|
235
|
+
connectionTypeId?: number;
|
|
236
|
+
}): Promise<any>;
|
|
237
|
+
/**
|
|
238
|
+
* Gets the status of access inheritance for a concept.
|
|
239
|
+
* @param mainConceptId - The main concept ID.
|
|
240
|
+
* @param connectionTypeId - The connection type ID (default: 999).
|
|
241
|
+
* @returns Promise<any> - API response.
|
|
242
|
+
*/
|
|
243
|
+
static getAccessInheritanceStatus(mainConceptId: number, connectionTypeId?: number): Promise<any>;
|
|
244
|
+
/**
|
|
245
|
+
* Performs a GET request to the backend API.
|
|
246
|
+
* @param path - The API path.
|
|
247
|
+
* @param errorMsg - Error message to throw if request fails.
|
|
248
|
+
* @returns Promise<any> - API response.
|
|
249
|
+
*/
|
|
250
|
+
private static _get;
|
|
251
|
+
/**
|
|
252
|
+
* Performs a POST request to the backend API.
|
|
253
|
+
* @param path - The API path.
|
|
254
|
+
* @param body - Request body.
|
|
255
|
+
* @param errorMsg - Error message to throw if request fails.
|
|
256
|
+
* @returns Promise<any> - API response.
|
|
257
|
+
*/
|
|
258
|
+
private static _post;
|
|
259
|
+
/**
|
|
260
|
+
* Performs a DELETE request to the backend API.
|
|
261
|
+
* @param path - The API path.
|
|
262
|
+
* @param body - Optional request body.
|
|
263
|
+
* @param errorMsg - Error message to throw if request fails.
|
|
264
|
+
* @returns Promise<any> - API response.
|
|
265
|
+
*/
|
|
266
|
+
private static _delete;
|
|
267
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Connection } from "../../app";
|
|
2
|
+
/**
|
|
3
|
+
* This function returns all the connections from the ofTheConceptId and connection type
|
|
4
|
+
* @param id ofTheConceptId
|
|
5
|
+
* @param linker the connection type
|
|
6
|
+
* @param reverse if you put in reverse true then the reverse connections are returned.
|
|
7
|
+
* @returns Array of connections
|
|
8
|
+
*/
|
|
9
|
+
export declare function GetAllTheConnectionsByTypeAndOfTheConcept(id: number, linker: string, reverse?: boolean): Promise<Connection[]>;
|
|
10
|
+
/**
|
|
11
|
+
* This function returns all the connections from the ofTheConceptId with toTheConceptId and linkers as given, the reverse is also true.
|
|
12
|
+
* @param id ofTheConceptId
|
|
13
|
+
* @param linker the connection type
|
|
14
|
+
* @returns Array of connections
|
|
15
|
+
*/
|
|
16
|
+
export declare function GiveConnection(ofTheConceptId: number, toTheConceptId: number, linker: string, reverse?: boolean): Promise<Connection[]>;
|
|
File without changes
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { Concept } from "../DataStructures/Concept";
|
|
2
|
+
export declare function MakeTheName(theCharacterData: string, userId: number, securityId: number, securityUserId: number, accessId: number, accessUserId: number, sessionInformationId: number, sessionInformationUserId: number, typeId: number, typeUserId: number, existingConcept: Concept): Promise<Concept>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getServerJwtToken: () => string;
|
|
@@ -17,6 +17,7 @@ export declare class BuilderStatefulWidget extends StatefulWidget {
|
|
|
17
17
|
widgetType: string;
|
|
18
18
|
parentConceptList: any;
|
|
19
19
|
customFunctions: TCustomFunction[];
|
|
20
|
+
widgetDependenciesData: string;
|
|
20
21
|
getUserId(): Promise<any>;
|
|
21
22
|
getTypeValueList(typeName?: string): Promise<unknown>;
|
|
22
23
|
setTitle(title: string): void;
|
|
@@ -30,6 +31,7 @@ export declare class BuilderStatefulWidget extends StatefulWidget {
|
|
|
30
31
|
* @param parent This is the function that creates a new div and then mounts the html element to the parent.
|
|
31
32
|
*/
|
|
32
33
|
mount(parent: HTMLElement): Promise<void>;
|
|
34
|
+
render_widgetDependencies(): void;
|
|
33
35
|
render_custom_functions(): void;
|
|
34
36
|
/**
|
|
35
37
|
* This function will be called after the component mounts.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface CacheStats {
|
|
2
|
+
cacheSize: number;
|
|
3
|
+
pendingRequests: number;
|
|
4
|
+
keys: string[];
|
|
5
|
+
}
|
|
6
|
+
export declare class DataCache<T = any> {
|
|
7
|
+
static cache: Map<string, any>;
|
|
8
|
+
static promises: Map<string, Promise<any>>;
|
|
9
|
+
static get<K>(key: string, fetcher: () => Promise<K>): Promise<K>;
|
|
10
|
+
static has(key: string): boolean;
|
|
11
|
+
static peek<K>(key: string): K | undefined;
|
|
12
|
+
static invalidate(key: string): void;
|
|
13
|
+
static clear(): void;
|
|
14
|
+
static set<K>(key: string, data: K): Promise<K>;
|
|
15
|
+
static stats(): CacheStats;
|
|
16
|
+
}
|
|
17
|
+
export declare function initWidgetCache(): DataCache<any>;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { BuilderStatefulWidget, StatefulWidget, WidgetTree } from "../app";
|
|
2
2
|
export declare function renderPage(pageId: number, attachNode: HTMLElement, props?: any, showDocumentation?: boolean): Promise<void>;
|
|
3
|
+
export declare function importLatestWidget(widgetId: number, attachNode?: HTMLElement, props?: any, showDocumentation?: boolean): Promise<WidgetTree | undefined>;
|
|
4
|
+
export declare function renderImportedWidget(widgetId: number, attachNode: HTMLElement, props?: any, showDocumentation?: boolean): Promise<BuilderStatefulWidget | undefined>;
|
|
3
5
|
export declare function renderLatestWidget(widgetId: number, attachNode: HTMLElement, props?: any, showDocumentation?: boolean): Promise<BuilderStatefulWidget | undefined>;
|
|
4
6
|
export declare function renderWidget(widgetId: number, attachNode: HTMLElement, props?: any, showDocumentation?: boolean): Promise<BuilderStatefulWidget | undefined>;
|
|
5
7
|
export declare function materializeWidget(widgetId: number, bulkWidget: any, attachNode: HTMLElement, props?: any, showDocumentation?: boolean): Promise<BuilderStatefulWidget | undefined>;
|
package/dist/types/app.d.ts
CHANGED
|
@@ -128,7 +128,7 @@ export { getUserDetails } from './Services/User/UserFromLocalStorage';
|
|
|
128
128
|
export { CountInfo } from './DataStructures/Count/CountInfo';
|
|
129
129
|
export { Selector } from './Api/Prototype/Selector';
|
|
130
130
|
export { AccessControlService } from './Services/AccessControl/AccessControl';
|
|
131
|
-
export { renderLatestWidget, renderPage, renderWidget, convertWidgetTreeToWidgetWithWrapper, getWidgetFromId, convertWidgetTreeToWidget, unwrapContainers, getWidgetBulkFromId } from './Widgets/RenderWidgetService';
|
|
131
|
+
export { importLatestWidget, renderImportedWidget, renderLatestWidget, renderPage, renderWidget, convertWidgetTreeToWidgetWithWrapper, getWidgetFromId, convertWidgetTreeToWidget, unwrapContainers, getWidgetBulkFromId } from './Widgets/RenderWidgetService';
|
|
132
132
|
export { CreateData } from './Services/automated/automated-concept-connection';
|
|
133
133
|
export { Prototype } from './DataStructures/Prototype/Prototype';
|
|
134
134
|
export { createPrototypeLocal } from './prototype/prototype.service';
|