mftsccs-browser 2.2.10-beta → 2.2.12-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.
@@ -1 +1 @@
1
- export declare function GetImageApi(imageName: string): Promise<ReadableStream<Uint8Array> | null | undefined>;
1
+ export declare function GetImageApi(imageName: string): Promise<ReadableStream<Uint8Array<ArrayBuffer>> | null | undefined>;
@@ -9,6 +9,7 @@ export declare class BaseUrl {
9
9
  static BASE_APPLICATION: string;
10
10
  static DOCUMENTATION_WIDGET: number;
11
11
  static isNearestCache: boolean;
12
+ static ACCESS_CONTROL_BASE_URL: string;
12
13
  static FLAGS: any;
13
14
  static BASE_RANDOMIZER: number;
14
15
  static setRandomizer(id: number): void;
@@ -8,5 +8,7 @@ export declare class ApplicationMonitor {
8
8
  static logNetworkRequests(): void;
9
9
  static logPerformanceMetrics(): void;
10
10
  static logRouteChanges(): void;
11
+ static logOnWindowLoad(): void;
12
+ static logSample(): void;
11
13
  static logWebSocketEvents(): void;
12
14
  }
@@ -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
- conceptIdList: number[];
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: number[];
41
- entityIdList: number[];
42
- accessList: string[];
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
- entityIdList: number[];
69
- accessList: string[];
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
- userId: number;
129
+ conceptIdList?: number[];
130
+ connectionIdList?: number[];
116
131
  access: string;
117
- conceptIdList: number[];
132
+ userId: number;
118
133
  }): Promise<any>;
119
134
  /**
120
135
  * Gets entities with a specific access for a concept.
@@ -150,18 +165,54 @@ 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;
173
+ enable: boolean;
174
+ }): Promise<any>;
175
+ /**
176
+ * Sets access inheritance for multiple concepts in bulk.
177
+ * @param request - BulkAccessInheritanceRequest
178
+ */
179
+ static setAccessInheritanceBulk(request: {
180
+ items: Array<{
181
+ mainConceptId: number;
182
+ connectionTypeIds: number[];
183
+ }>;
156
184
  enable: boolean;
157
- connectionTypeId?: number;
158
185
  }): Promise<any>;
159
186
  /**
160
187
  * Gets the status of access inheritance for a concept.
161
188
  */
162
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>;
163
213
  private static get baseUrl();
164
214
  private static _get;
165
215
  private static _post;
166
216
  private static _delete;
167
217
  }
218
+ export default AccessControlService;
@@ -8,7 +8,7 @@ import { Connection } from "../../app";
8
8
  * @param reverse
9
9
  * @returns
10
10
  */
11
- export declare function FormatFunctionDataForData(connections: Connection[], compositionData: any[], reverse?: number[]): Promise<any[]>;
11
+ export declare function FormatFunctionDataForData(connections: Connection[], compositionData?: any[], reverse?: number[]): Promise<any[]>;
12
12
  /**
13
13
  * ############ Format is data-id and is used for list. ############
14
14
  * This is helpful in building a format that has multiple mainCompositions i.e. in the context of the list
@@ -1,3 +1,3 @@
1
- export declare function GetRequestHeader(contentType?: string, Accept?: string): {};
1
+ export declare function GetRequestHeader(contentType?: string, accept?: string): Record<string, string>;
2
2
  export declare function GetRequestHeaderWithAuthorization(contentType?: string, token?: string, Accept?: string): {};
3
3
  export declare function GetOnlyTokenHeader(): Headers;
@@ -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>;
@@ -25,4 +25,5 @@ export declare class WidgetTree {
25
25
  sChildId?: number;
26
26
  isPublished?: boolean;
27
27
  useLatest?: boolean;
28
+ dependency: string;
28
29
  }
@@ -127,11 +127,13 @@ export { removeAllChildren } from './Services/Common/RemoveAllChild';
127
127
  export { getUserDetails } from './Services/User/UserFromLocalStorage';
128
128
  export { CountInfo } from './DataStructures/Count/CountInfo';
129
129
  export { Selector } from './Api/Prototype/Selector';
130
- export { renderLatestWidget, renderPage, renderWidget, convertWidgetTreeToWidgetWithWrapper, getWidgetFromId, convertWidgetTreeToWidget, unwrapContainers, getWidgetBulkFromId } from './Widgets/RenderWidgetService';
130
+ export { AccessControlService } from './Services/AccessControl/AccessControl';
131
+ export { importLatestWidget, renderImportedWidget, renderLatestWidget, renderPage, renderWidget, convertWidgetTreeToWidgetWithWrapper, getWidgetFromId, convertWidgetTreeToWidget, unwrapContainers, getWidgetBulkFromId } from './Widgets/RenderWidgetService';
131
132
  export { CreateData } from './Services/automated/automated-concept-connection';
132
133
  export { Prototype } from './DataStructures/Prototype/Prototype';
133
134
  export { createPrototypeLocal } from './prototype/prototype.service';
134
135
  export { GetImageApi } from './Api/Images/GetImages';
136
+ export { GetAllLinkerConnectionsFromTheConcept } from "./Api/GetAllLinkerConnectionsFromTheConcept";
135
137
  export { GetFreeschemaImage, GetFreeschemaImageUrl } from './Services/assets/GetImageService';
136
138
  type listeners = {
137
139
  listenerId: string | number;
@@ -152,6 +154,7 @@ declare function updateAccessToken(accessToken?: string, session?: any): void;
152
154
  *
153
155
  * @param url This is the url for the backend c# system or our main data fabric server
154
156
  * @param aiurl This is the AI url that pulls in the data using our AI system . If you do not enter this then also disable the enableAi flag.
157
+ * @param accessControlUrl This is the url for the access control system. This is another server in the data fabric that is used as server for business logic and security features.
155
158
  * @param accessToken This is the JWT token that needs to be passed (But since you have just initilized the system). There is no way we can get access token
156
159
  * So this access token can be empty string. You can set it afterwards with another function UpdateAccessToken();
157
160
  * @param nodeUrl This is the url for the node server. This is another server in the data fabric that is used as server for business logic and security features.
@@ -171,7 +174,7 @@ declare function init(url?: string, aiurl?: string, accessToken?: string, nodeUr
171
174
  isTest?: boolean;
172
175
  }, parameters?: {
173
176
  logserver?: string;
174
- }): Promise<true | undefined>;
177
+ }, accessControlUrl?: string): Promise<true | undefined>;
175
178
  /**
176
179
  * Method to send message to the service worker from main thread
177
180
  * @param type string
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mftsccs-browser",
3
- "version": "2.2.10-beta",
3
+ "version": "2.2.12-beta",
4
4
 
5
5
  "environment": "production",
6
6
  "description": "Full Pack of concept and connection system",