mftsccs-browser 2.2.9-beta → 2.2.10-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-report.html +39 -0
- package/dist/main.bundle.js +2 -1
- package/dist/main.bundle.js.LICENSE.txt +1 -4
- package/dist/serviceWorker.bundle.js +2 -1
- package/dist/serviceWorker.bundle.js.LICENSE.txt +1 -4
- package/dist/types/Api/Images/GetImages.d.ts +1 -0
- package/dist/types/Api/Login.d.ts +1 -1
- package/dist/types/Constants/FormatConstants.d.ts +1 -0
- package/dist/types/DataStructures/BaseUrl.d.ts +4 -1
- package/dist/types/DataStructures/Security/TokenStorage.d.ts +1 -0
- package/dist/types/Middleware/logger.service.d.ts +4 -0
- package/dist/types/Services/Search/DataIdFormat.d.ts +1 -1
- package/dist/types/Services/Search/NewFormat.d.ts +4 -0
- package/dist/types/Services/Search/SearchWithTypeAndLinker.d.ts +1 -0
- package/dist/types/Services/Security/GetRequestHeader.d.ts +1 -1
- package/dist/types/Services/Upload.d.ts +7 -0
- package/dist/types/Services/assets/GetImageService.d.ts +14 -0
- package/dist/types/Widgets/NormalizeStyles.service.d.ts +1 -0
- package/dist/types/Widgets/RenderWidgetService.d.ts +4 -3
- package/dist/types/Widgets/StatefulWidget.d.ts +1 -0
- package/dist/types/app.d.ts +8 -5
- package/package.json +3 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function GetImageApi(imageName: string): Promise<ReadableStream<Uint8Array> | null | undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function LoginToBackend(email: string, password: string): Promise<any>;
|
|
1
|
+
export declare function LoginToBackend(email: string, password: string, application?: string): Promise<any>;
|
|
@@ -8,7 +8,7 @@ export declare class BaseUrl {
|
|
|
8
8
|
static MQTT_CONNECTION: any;
|
|
9
9
|
static BASE_APPLICATION: string;
|
|
10
10
|
static DOCUMENTATION_WIDGET: number;
|
|
11
|
-
static
|
|
11
|
+
static isNearestCache: boolean;
|
|
12
12
|
static FLAGS: any;
|
|
13
13
|
static BASE_RANDOMIZER: number;
|
|
14
14
|
static setRandomizer(id: number): void;
|
|
@@ -35,6 +35,7 @@ export declare class BaseUrl {
|
|
|
35
35
|
static GetSuggestedConcepts(): string;
|
|
36
36
|
static GetSuggestedConnections(): string;
|
|
37
37
|
static PostLogger(): string;
|
|
38
|
+
static LogHealth(): string;
|
|
38
39
|
static GetAllPrefetchConnectionsUrl(): string;
|
|
39
40
|
static GetAllLinkerConnectionOfConceptUrl(): string;
|
|
40
41
|
static GetAllLinkerConnectionToConceptUrl(): string;
|
|
@@ -69,6 +70,7 @@ export declare class BaseUrl {
|
|
|
69
70
|
static DeleteTheConnectionBulkUrl(): string;
|
|
70
71
|
static FreeschemaQueryUrl(): string;
|
|
71
72
|
static uploadImageUrl(): string;
|
|
73
|
+
static uploadImageUrlWithSmall(): string;
|
|
72
74
|
static uploadFileUrl(): string;
|
|
73
75
|
static sendMail(): string;
|
|
74
76
|
static sendBulkMail(): string;
|
|
@@ -76,4 +78,5 @@ export declare class BaseUrl {
|
|
|
76
78
|
static getLatestWidgetData(): string;
|
|
77
79
|
static getConnectionsByTypes(): string;
|
|
78
80
|
static CreatePrototypeUrl(): string;
|
|
81
|
+
static GetCachedImage(ImageName: string): string;
|
|
79
82
|
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export declare class Logger {
|
|
2
|
+
private static isLoggerActive;
|
|
3
|
+
private static lastCheck;
|
|
4
|
+
private static checkInterval;
|
|
2
5
|
private static logLevel;
|
|
3
6
|
private static packageLogsData;
|
|
4
7
|
private static applicationLogsData;
|
|
@@ -40,6 +43,7 @@ export declare class Logger {
|
|
|
40
43
|
static logfunction(myFunction: string, ...args: any[]): any;
|
|
41
44
|
static logError(startTime: number, userId: string | number, operationType?: "read" | "create" | "update" | "delete" | "search", requestFrom?: string, requestIP?: string, responseStatus?: number, responseData?: any, functionName?: string, functionParameters?: any[], userAgent?: string, conceptsUsed?: string[]): void;
|
|
42
45
|
static logApplication(level: string, message: string, data?: any): void;
|
|
46
|
+
static checkLoggerServerStatus(): Promise<void>;
|
|
43
47
|
/**
|
|
44
48
|
* Helper method to send logs to the server.
|
|
45
49
|
*/
|
|
@@ -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
|
|
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
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Connection } from "../../app";
|
|
2
|
+
export declare function FormatFunctionDataV2(connections: Connection[], compositionData?: Record<number, any>, reverse?: number[]): Promise<Record<number, any>>;
|
|
3
|
+
export declare function FormatFunctionDataForDataV2(connections: Connection[], compositionData?: Record<number, any>, reverse?: number[]): Promise<Record<number, any>>;
|
|
4
|
+
export declare function FormatFromConnectionsAlteredArrayExternalV2(connections: Connection[], compositionData: Record<number, any>, mainComposition: number[], reverse: number[] | undefined, CountDictionary: Record<number, any>): Promise<any[]>;
|
|
@@ -79,3 +79,4 @@ export declare function formatConnectionsJustId(linkers: number[], conceptIds: n
|
|
|
79
79
|
* @returns
|
|
80
80
|
*/
|
|
81
81
|
export declare function formatConnectionsDataId(linkers: number[], conceptIds: number[], mainCompositionIds: number[], reverse: number[], countInfos: CountInfo[], order?: string): Promise<any>;
|
|
82
|
+
export declare function formatConnectionsV2(linkers: number[], conceptIds: number[], mainCompositionIds: number[], reverse: number[], countInfos: CountInfo[], order?: string): Promise<any>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare function GetRequestHeader(contentType?: string,
|
|
1
|
+
export declare function GetRequestHeader(contentType?: string, Accept?: string): {};
|
|
2
2
|
export declare function GetRequestHeaderWithAuthorization(contentType?: string, token?: string, Accept?: string): {};
|
|
3
3
|
export declare function GetOnlyTokenHeader(): Headers;
|
|
@@ -17,6 +17,13 @@ export declare function uploadAttachment(file: File, token?: string): Promise<{
|
|
|
17
17
|
* @returns JSON | string | null
|
|
18
18
|
*/
|
|
19
19
|
export declare function uploadImage(body: FormData, token?: string): Promise<any>;
|
|
20
|
+
/**
|
|
21
|
+
* Method to upload image to server
|
|
22
|
+
* @param body FormData
|
|
23
|
+
* @param token string?
|
|
24
|
+
* @returns JSON | string | null
|
|
25
|
+
*/
|
|
26
|
+
export declare function uploadImageV2(body: FormData, token?: string): Promise<any>;
|
|
20
27
|
/**
|
|
21
28
|
* Method to upload file to server
|
|
22
29
|
* @param body FormData
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* @param url this is the url of the image that you have. This image will be cached in the cache server
|
|
4
|
+
* @param format this is the format it can be either normal , small, by default it is normal
|
|
5
|
+
* @returns
|
|
6
|
+
*/
|
|
7
|
+
export declare function GetFreeschemaImage(url: string, format?: string): Promise<any>;
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @param url this is the url of the image that you have. This image will be cached in the cache server
|
|
11
|
+
* @param format this is the format it can be either normal , small, by default it is normal
|
|
12
|
+
* @returns
|
|
13
|
+
*/
|
|
14
|
+
export declare function GetFreeschemaImageUrl(url: string, format?: string): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function normalizeCSS(cssString: string): Promise<string | null>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BuilderStatefulWidget, WidgetTree } from "../app";
|
|
1
|
+
import { BuilderStatefulWidget, StatefulWidget, WidgetTree } from "../app";
|
|
2
2
|
export declare function renderPage(pageId: number, attachNode: HTMLElement, props?: any, showDocumentation?: boolean): Promise<void>;
|
|
3
3
|
export declare function renderLatestWidget(widgetId: number, attachNode: HTMLElement, props?: any, showDocumentation?: boolean): Promise<BuilderStatefulWidget | undefined>;
|
|
4
4
|
export declare function renderWidget(widgetId: number, attachNode: HTMLElement, props?: any, showDocumentation?: boolean): Promise<BuilderStatefulWidget | undefined>;
|
|
@@ -19,7 +19,8 @@ export declare function getWidgetBulkFromId(widgetId: number, visitedWidgets: nu
|
|
|
19
19
|
* @returns the widgetree with widgets attached inside of it.
|
|
20
20
|
* Also this will add the tree to the dom.
|
|
21
21
|
*/
|
|
22
|
-
export declare function convertWidgetTreeToWidget(tree: WidgetTree, parentElement: HTMLElement, isMain?: boolean, props?: any, state?: any): Promise<BuilderStatefulWidget>;
|
|
22
|
+
export declare function convertWidgetTreeToWidget(tree: WidgetTree, parentElement: HTMLElement, isMain?: boolean, props?: any, state?: any, parentWidget?: StatefulWidget | null): Promise<BuilderStatefulWidget>;
|
|
23
|
+
export declare function makeShallow(input: any): any;
|
|
23
24
|
/**
|
|
24
25
|
*
|
|
25
26
|
* @param tree Widget tree from getWidgetFromId(widgetId);
|
|
@@ -27,7 +28,7 @@ export declare function convertWidgetTreeToWidget(tree: WidgetTree, parentElemen
|
|
|
27
28
|
* @returns the widgetree with widgets attached inside of it.
|
|
28
29
|
* Also this will add the tree to the dom.
|
|
29
30
|
*/
|
|
30
|
-
export declare function convertWidgetTreeToWidgetWithWrapper(tree: WidgetTree, parentElement: HTMLElement, isMain?: boolean, state?: object, isInDevelopment?: boolean): Promise<BuilderStatefulWidget>;
|
|
31
|
+
export declare function convertWidgetTreeToWidgetWithWrapper(tree: WidgetTree, parentElement: HTMLElement, isMain?: boolean, state?: object, isInDevelopment?: boolean, parentWidget?: StatefulWidget | null): Promise<BuilderStatefulWidget>;
|
|
31
32
|
export declare function unwrapContainers(parentElement: HTMLElement, selector: string): Promise<void>;
|
|
32
33
|
/**
|
|
33
34
|
* Opens documentation modal
|
package/dist/types/app.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ export { GetConnectionById } from './Services/GetConnections';
|
|
|
27
27
|
export { MakeTheTimestamp } from './Services/MakeTheTimestamp';
|
|
28
28
|
export { RecursiveSearchApi, RecursiveSearchApiWithInternalConnections, RecursiveSearchApiRaw, RecursiveSearchApiRawFullLinker, RecursiveSearchApiNewRawFullLinker } from './Api/RecursiveSearch';
|
|
29
29
|
export { GetCompositionBulkWithDataId, GetCompositionFromConnectionsWithDataIdFromConnections, GetCompositionFromConnectionsWithIndexFromConnections, GetCompositionBulk, GetCompositionFromConnectionsWithDataId } from './Services/GetCompositionBulk';
|
|
30
|
-
export { uploadAttachment, uploadFile, uploadImage, validDocumentFormats, validImageFormats } from './Services/Upload';
|
|
30
|
+
export { uploadAttachment, uploadFile, uploadImage, uploadImageV2, validDocumentFormats, validImageFormats } from './Services/Upload';
|
|
31
31
|
export { GetConceptBulk } from './Api/GetConceptBulk';
|
|
32
32
|
export { GetConnectionBulk } from './Api/GetConnectionBulk';
|
|
33
33
|
export { GetAllConnectionsOfCompositionBulk } from './Api/GetAllConnectionsOfCompositionBulk';
|
|
@@ -69,7 +69,7 @@ export { GetCompositionWithIdAndDateFromMemory, GetCompositionFromMemoryWithConn
|
|
|
69
69
|
export { GetConceptByCharacterAndType } from './Api/GetConceptByCharacterAndType';
|
|
70
70
|
export { GetConnectionDataPrefetch } from './Services/GetCompositionBulk';
|
|
71
71
|
export { FormatFromConnectionsAltered } from './Services/Search/SearchLinkMultiple';
|
|
72
|
-
export { NORMAL, JUSTDATA, DATAID, DATAIDDATE, RAW, ALLID, LISTNORMAL } from './Constants/FormatConstants';
|
|
72
|
+
export { NORMAL, JUSTDATA, DATAID, DATAIDDATE, RAW, ALLID, LISTNORMAL, DATAV2 } from './Constants/FormatConstants';
|
|
73
73
|
export { PRIVATE, PUBLIC, ADMIN } from './Constants/AccessConstants';
|
|
74
74
|
export { SearchWithTypeAndLinkerApi } from './Api/Search/SearchWithTypeAndLinker';
|
|
75
75
|
export { DependencyObserver } from './WrapperFunctions/DepenedencyObserver';
|
|
@@ -80,6 +80,8 @@ export { SearchWithTypeAndLinker } from './Services/Search/SearchWithTypeAndLink
|
|
|
80
80
|
export { GetLinkListener } from './WrapperFunctions/GetLinkObservable';
|
|
81
81
|
export { RecursiveSearchListener } from './WrapperFunctions/RecursiveSearchObservable';
|
|
82
82
|
export { GetLinkListListener } from './WrapperFunctions/GetLinkListObservable';
|
|
83
|
+
export { GetConnectionTypeForCount } from './Services/Common/DecodeCountInfo';
|
|
84
|
+
export { orderTheConnections } from './Services/Search/orderingConnections';
|
|
83
85
|
export { SyncData } from './DataStructures/SyncData';
|
|
84
86
|
export { Concept } from './DataStructures/Concept';
|
|
85
87
|
export { LConcept } from './DataStructures/Local/LConcept';
|
|
@@ -123,12 +125,14 @@ export { CreateConnectionBetweenEntityLocal } from './Services/CreateConnection/
|
|
|
123
125
|
export { BuildWidgetFromId } from './Widgets/WidgetBuild';
|
|
124
126
|
export { removeAllChildren } from './Services/Common/RemoveAllChild';
|
|
125
127
|
export { getUserDetails } from './Services/User/UserFromLocalStorage';
|
|
128
|
+
export { CountInfo } from './DataStructures/Count/CountInfo';
|
|
126
129
|
export { Selector } from './Api/Prototype/Selector';
|
|
127
|
-
export { AccessControlService } from './Services/AccessControl/AccessControl';
|
|
128
130
|
export { renderLatestWidget, renderPage, renderWidget, convertWidgetTreeToWidgetWithWrapper, getWidgetFromId, convertWidgetTreeToWidget, unwrapContainers, getWidgetBulkFromId } from './Widgets/RenderWidgetService';
|
|
129
131
|
export { CreateData } from './Services/automated/automated-concept-connection';
|
|
130
132
|
export { Prototype } from './DataStructures/Prototype/Prototype';
|
|
131
133
|
export { createPrototypeLocal } from './prototype/prototype.service';
|
|
134
|
+
export { GetImageApi } from './Api/Images/GetImages';
|
|
135
|
+
export { GetFreeschemaImage, GetFreeschemaImageUrl } from './Services/assets/GetImageService';
|
|
132
136
|
type listeners = {
|
|
133
137
|
listenerId: string | number;
|
|
134
138
|
callback: any;
|
|
@@ -148,7 +152,6 @@ declare function updateAccessToken(accessToken?: string, session?: any): void;
|
|
|
148
152
|
*
|
|
149
153
|
* @param url This is the url for the backend c# system or our main data fabric server
|
|
150
154
|
* @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.
|
|
151
|
-
* @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.
|
|
152
155
|
* @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
|
|
153
156
|
* So this access token can be empty string. You can set it afterwards with another function UpdateAccessToken();
|
|
154
157
|
* @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.
|
|
@@ -168,7 +171,7 @@ declare function init(url?: string, aiurl?: string, accessToken?: string, nodeUr
|
|
|
168
171
|
isTest?: boolean;
|
|
169
172
|
}, parameters?: {
|
|
170
173
|
logserver?: string;
|
|
171
|
-
}
|
|
174
|
+
}): Promise<true | undefined>;
|
|
172
175
|
/**
|
|
173
176
|
* Method to send message to the service worker from main thread
|
|
174
177
|
* @param type string
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mftsccs-browser",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.10-beta",
|
|
4
4
|
|
|
5
5
|
"environment": "production",
|
|
6
6
|
"description": "Full Pack of concept and connection system",
|
|
@@ -25,11 +25,9 @@
|
|
|
25
25
|
"@babel/plugin-transform-modules-commonjs": "^7.24.8",
|
|
26
26
|
"@babel/preset-env": "^7.25.4",
|
|
27
27
|
"@babel/preset-typescript": "^7.24.7",
|
|
28
|
-
"babel-jest": "^29.7.0",
|
|
29
28
|
"cross-fetch": "^4.0.0",
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"jest-environment-jsdom": "^29.7.0",
|
|
29
|
+
"postcss": "^8.5.6",
|
|
30
|
+
"postcss-nested": "^7.0.2",
|
|
33
31
|
"ts-loader": "^9.5.1",
|
|
34
32
|
"typescript": "^5.3.2",
|
|
35
33
|
"webpack": "^5.89.0",
|