mftsccs-node 0.2.2 → 0.2.4
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 +2 -0
- package/dist/main.bundle.js.LICENSE.txt +1 -0
- package/dist/serviceWorker.bundle.js +2 -0
- package/dist/serviceWorker.bundle.js.LICENSE.txt +1 -0
- package/dist/types/AccessTracker/accessTracker.d.ts +67 -0
- package/dist/types/Anomaly/anomaly.d.ts +103 -0
- package/dist/types/Api/Create/CreateTheConceptApi.d.ts +1 -1
- package/dist/types/Api/Create/CreateTheGhostConceptApi.d.ts +3 -0
- package/dist/types/Api/Create/CreateTheGhostConnectionApi.d.ts +2 -0
- package/dist/types/Api/Delete/DeleteUserInBackend.d.ts +1 -0
- package/dist/types/Api/DeleteConnectionBulkApi.d.ts +1 -0
- package/dist/types/Api/DeleteTheConcept.d.ts +1 -1
- package/dist/types/Api/DeleteTheConnection.d.ts +1 -1
- package/dist/types/Api/GetAllConnectionsOfComposition.d.ts +1 -1
- package/dist/types/Api/GetAllConnectionsOfCompositionBulk.d.ts +2 -2
- package/dist/types/Api/GetCharacterDataByCharacter.d.ts +1 -1
- package/dist/types/Api/GetCompositionConnectionsBetweenTwoConcepts.d.ts +1 -2
- package/dist/types/Api/GetConcept.d.ts +6 -2
- package/dist/types/Api/GetConceptBulk.d.ts +8 -1
- package/dist/types/Api/GetConceptByCharacterAndType.d.ts +1 -2
- package/dist/types/Api/GetConnection.d.ts +1 -1
- package/dist/types/Api/GetConnectionBulk.d.ts +5 -0
- package/dist/types/Api/GetConnectionOfTheConcept.d.ts +1 -2
- package/dist/types/Api/GetConnections/GetConnectionsByTypeApi.d.ts +3 -0
- package/dist/types/Api/Images/GetImages.d.ts +1 -0
- package/dist/types/Api/Local/GetLocalConceptByCharacterValue.d.ts +2 -0
- package/dist/types/Api/Login.d.ts +1 -1
- package/dist/types/Api/MakeTheTypeConceptApi.d.ts +7 -0
- package/dist/types/Api/Prototype/CreatePrototype.d.ts +2 -0
- package/dist/types/Api/Prototype/Selector.d.ts +15 -0
- package/dist/types/Api/RecursiveSearch.d.ts +6 -1
- package/dist/types/Api/Search/FreeschemaQueryApi.d.ts +1 -1
- package/dist/types/Api/Search/SearchInternalApi.d.ts +1 -0
- package/dist/types/Api/Search/SearchWithTypeAndLinker.d.ts +2 -0
- package/dist/types/Api/SearchConcept/GetConceptByCharacterAndCategoryApi.d.ts +1 -1
- package/dist/types/Api/Signin.d.ts +1 -1
- package/dist/types/Api/Signup.d.ts +17 -1
- package/dist/types/Api/Translate/TranslateLocalToReal.d.ts +2 -0
- package/dist/types/Constants/AccessConstants.d.ts +3 -0
- package/dist/types/Constants/FormatConstants.d.ts +1 -0
- package/dist/types/Constants/ckeditorCSS.d.ts +1 -0
- package/dist/types/Constants/general.const.d.ts +6 -0
- package/dist/types/Constants/page.const.d.ts +5 -0
- package/dist/types/DataStructures/BaseUrl.d.ts +33 -0
- package/dist/types/DataStructures/BinaryTree.d.ts +1 -0
- package/dist/types/DataStructures/BinaryTypeTree.d.ts +7 -5
- package/dist/types/DataStructures/Concept.d.ts +11 -15
- package/dist/types/DataStructures/ConceptData.d.ts +7 -2
- package/dist/types/DataStructures/Connection.d.ts +6 -10
- package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionBinaryTree.d.ts +3 -1
- package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionNode.d.ts +3 -0
- package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionOfNode.d.ts +10 -0
- package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionOfTheTree.d.ts +24 -0
- package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionTypeNode.d.ts +10 -0
- package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionTypeTree.d.ts +16 -9
- package/dist/types/DataStructures/ConnectionBinaryTree/NodePrimitive.d.ts +15 -0
- package/dist/types/DataStructures/ConnectionByType/GetConnectionByType.d.ts +4 -0
- package/dist/types/DataStructures/ConnectionData.d.ts +11 -3
- package/dist/types/DataStructures/Local/LConcept.d.ts +5 -3
- package/dist/types/DataStructures/Local/LConnection.d.ts +3 -3
- package/dist/types/DataStructures/Local/LNode.d.ts +5 -3
- package/dist/types/DataStructures/Local/LocalBinaryCharacterTree.d.ts +3 -2
- package/dist/types/DataStructures/Local/LocalBinaryTree.d.ts +3 -2
- package/dist/types/DataStructures/Local/LocalBinaryTypeTree.d.ts +4 -4
- package/dist/types/DataStructures/Local/LocalConceptData.d.ts +16 -9
- package/dist/types/DataStructures/Local/LocalConnectionData.d.ts +13 -9
- package/dist/types/DataStructures/Local/LocalGhostIdTree.d.ts +11 -0
- package/dist/types/DataStructures/Local/LocalId.d.ts +19 -0
- package/dist/types/DataStructures/Local/LocalSyncData.d.ts +29 -10
- package/dist/types/DataStructures/Node.d.ts +1 -0
- package/dist/types/DataStructures/Prototype/Prototype.d.ts +19 -0
- package/dist/types/DataStructures/Prototype/PrototypeOption.d.ts +4 -0
- package/dist/types/DataStructures/Prototype/QuerySelector.d.ts +4 -0
- package/dist/types/DataStructures/Search/FreeschemaQuery.d.ts +2 -1
- package/dist/types/DataStructures/Search/SearchStructure.d.ts +1 -0
- package/dist/types/DataStructures/SearchQuery.d.ts +1 -0
- package/dist/types/DataStructures/Security/TokenStorage.d.ts +2 -1
- package/dist/types/DataStructures/SyncData.d.ts +1 -2
- package/dist/types/DataStructures/TypeLibrary.d.ts +19 -0
- package/dist/types/DataStructures/TypeNode.d.ts +18 -0
- package/dist/types/DataStructures/User/UserBinaryTree.d.ts +5 -7
- package/dist/types/DataStructures/User/UserNode.d.ts +3 -5
- 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/Database/IndexUpdate.d.ts +47 -0
- package/dist/types/Database/NoIndexDb.d.ts +1 -1
- package/dist/types/Database/indexdblocal.d.ts +40 -0
- package/dist/types/Database/indexeddb.d.ts +50 -0
- package/dist/types/Helpers/CheckIfExists.d.ts +2 -3
- package/dist/types/Helpers/RemoveFromArray.d.ts +1 -2
- package/dist/types/Middleware/ApplicationMonitor.d.ts +14 -0
- package/dist/types/Middleware/logger.service.d.ts +144 -0
- package/dist/types/ServiceWorker/actions/connectionActions.d.ts +2 -0
- package/dist/types/ServiceWorker/actions/createActions.d.ts +2 -0
- package/dist/types/ServiceWorker/actions/deleteActions.d.ts +2 -0
- package/dist/types/ServiceWorker/actions/getActions.d.ts +2 -0
- package/dist/types/ServiceWorker/actions/index.d.ts +15 -0
- package/dist/types/ServiceWorker/actions/searchActions.d.ts +2 -0
- package/dist/types/ServiceWorker/actions/syncActions.d.ts +2 -0
- package/dist/types/ServiceWorker/actions/updateActions.d.ts +2 -0
- package/dist/types/ServiceWorker/index.d.ts +11 -0
- package/dist/types/Services/AccessControl/AccessControl.d.ts +218 -0
- package/dist/types/Services/Common/DelayFunction.d.ts +7 -0
- package/dist/types/Services/Common/ErrorPosting.d.ts +8 -0
- package/dist/types/Services/Common/MergeArrays.d.ts +7 -0
- package/dist/types/Services/Common/RemoveAllChild.d.ts +1 -0
- package/dist/types/Services/ConceptFinding/GetConceptByCharacterAndCategory.d.ts +0 -1
- package/dist/types/Services/Conversion/ConvertConcepts.d.ts +3 -5
- package/dist/types/Services/CreateBinaryTreeFromData.d.ts +4 -1
- package/dist/types/Services/CreateCharacterBinaryTreeFromData.d.ts +4 -0
- package/dist/types/Services/CreateConnection/CreateConnectionEntity.d.ts +2 -0
- package/dist/types/Services/CreateConnectionBetweenTwoConcepts.d.ts +1 -1
- package/dist/types/Services/CreateTheComposition.d.ts +1 -2
- package/dist/types/Services/CreateTheConcept.d.ts +3 -3
- package/dist/types/Services/CreateTheConnection.d.ts +9 -1
- package/dist/types/Services/CreateTheConnectionGeneral.d.ts +1 -3
- package/dist/types/Services/DeleteConcept.d.ts +2 -1
- package/dist/types/Services/DeleteConnection.d.ts +2 -1
- package/dist/types/Services/DeleteConnectionByType.d.ts +22 -0
- package/dist/types/Services/FindConeceptsFromConnection.d.ts +4 -0
- package/dist/types/Services/FindConnectionsOfCompositionBulkInMemory.d.ts +1 -2
- package/dist/types/Services/GetComposition.d.ts +139 -1
- package/dist/types/Services/GetCompositionBulk.d.ts +94 -5
- package/dist/types/Services/GetCompositionList.d.ts +5 -0
- package/dist/types/Services/GetConceptByCharacter.d.ts +2 -3
- package/dist/types/Services/GetConnectionBetweenTwoConceptsLinker.d.ts +11 -0
- package/dist/types/Services/GetConnections.d.ts +1 -2
- package/dist/types/Services/GetDataFromIndexDb.d.ts +2 -2
- package/dist/types/Services/GetLink.d.ts +1 -1
- package/dist/types/Services/GetRelation.d.ts +2 -5
- package/dist/types/Services/GetTheConcept.d.ts +7 -0
- package/dist/types/Services/InitializeSystem.d.ts +1 -1
- package/dist/types/Services/Local/ConvertFromLConceptToConcept.d.ts +2 -0
- package/dist/types/Services/Local/ConvertFromLConnectionToConnection.d.ts +2 -0
- package/dist/types/Services/Local/CreateConnectionBetweenTwoConceptsLocal.d.ts +3 -0
- package/dist/types/Services/Local/CreateDefaultLConcept.d.ts +2 -2
- package/dist/types/Services/Local/CreateLocalBinaryTreeFromData.d.ts +29 -1
- package/dist/types/Services/Local/CreateTheCompositionLocal.d.ts +14 -2
- package/dist/types/Services/Local/CreateTheConceptLocal.d.ts +22 -2
- package/dist/types/Services/Local/CreateTheConnectionLocal.d.ts +16 -2
- package/dist/types/Services/Local/DeleteConceptLocal.d.ts +1 -0
- package/dist/types/Services/Local/GetCompositionListLocal.d.ts +12 -0
- package/dist/types/Services/Local/GetConceptByCharacterLocal.d.ts +10 -1
- package/dist/types/Services/Local/GetConnectionOfTheConceptLocal.d.ts +2 -0
- package/dist/types/Services/Local/GetRelationLocal.d.ts +1 -0
- package/dist/types/Services/Local/GetTheConceptLocal.d.ts +9 -0
- package/dist/types/Services/Local/MakeTheConceptLocal.d.ts +2 -2
- package/dist/types/Services/Local/MakeTheInstanceConceptLocal.d.ts +18 -2
- package/dist/types/Services/Local/MakeTheTypeLocal.d.ts +16 -2
- package/dist/types/Services/Local/UpdateCompositionLocal.d.ts +3 -2
- package/dist/types/Services/Mail.d.ts +18 -0
- package/dist/types/Services/MakeTheConcept.d.ts +1 -1
- package/dist/types/Services/MakeTheInstanceConcept.d.ts +15 -2
- package/dist/types/Services/MakeTheTimestamp.d.ts +1 -2
- package/dist/types/Services/MakeTheTypeConcept.d.ts +1 -2
- package/dist/types/Services/Search/DataIdFormat.d.ts +18 -18
- package/dist/types/Services/Search/FormatData.d.ts +20 -10
- package/dist/types/Services/Search/NewFormat.d.ts +4 -0
- package/dist/types/Services/Search/SearchLinkInternal.d.ts +1 -0
- package/dist/types/Services/Search/SearchLinkMultiple.d.ts +53 -1
- package/dist/types/Services/Search/SearchWithTypeAndLinker.d.ts +53 -5
- package/dist/types/Services/Security/GetRequestHeader.d.ts +3 -10
- package/dist/types/Services/Transaction/LocalTransaction.d.ts +45 -0
- package/dist/types/Services/UpdateComposition.d.ts +1 -1
- package/dist/types/Services/Upload.d.ts +33 -0
- package/dist/types/Services/User/UserFromLocalStorage.d.ts +6 -0
- package/dist/types/Services/User/UserTranslation.d.ts +3 -6
- package/dist/types/Services/assets/GetImageService.d.ts +14 -0
- package/dist/types/Services/automated/automated-concept-connection.d.ts +7 -0
- package/dist/types/Services/cacheService.d.ts +1 -0
- package/dist/types/Validator/constant.d.ts +3 -0
- package/dist/types/Validator/interface.d.ts +19 -0
- package/dist/types/Validator/utils.d.ts +7 -0
- package/dist/types/Validator/validator.d.ts +37 -0
- package/dist/types/Visualize/ConceptCircle.d.ts +35 -0
- package/dist/types/Visualize/ConceptCircleList.d.ts +9 -0
- package/dist/types/Visualize/ConnectionLine.d.ts +21 -0
- package/dist/types/Visualize/ConnectionLineList.d.ts +6 -0
- package/dist/types/Visualize/drawExistingConcepts.d.ts +8 -0
- package/dist/types/Visualize/helper.d.ts +15 -0
- package/dist/types/Visualize/index.d.ts +0 -0
- package/dist/types/Widgets/BaseObserver.d.ts +22 -0
- package/dist/types/Widgets/BaseWidget.d.ts +24 -0
- package/dist/types/Widgets/BuilderSpeceficFunctions.d.ts +2 -0
- package/dist/types/Widgets/BuilderStatefulWidget.d.ts +42 -0
- package/dist/types/Widgets/CacheWidget.service.d.ts +17 -0
- package/dist/types/Widgets/NormalizeStyles.service.d.ts +1 -0
- package/dist/types/Widgets/RenderPage.service.d.ts +12 -0
- package/dist/types/Widgets/RenderWidgetLibrary.service.d.ts +14 -0
- package/dist/types/Widgets/RenderWidgetService.d.ts +50 -0
- package/dist/types/Widgets/StatefulWidget.d.ts +102 -0
- package/dist/types/Widgets/WidgetBuild.d.ts +4 -0
- package/dist/types/Widgets/WidgetTree.d.ts +29 -0
- package/dist/types/Widgets/mainView.class.d.ts +6 -0
- package/dist/types/WrapperFunctions/DepenedencyObserver.d.ts +73 -0
- package/dist/types/WrapperFunctions/GetCompositionListObservable.d.ts +19 -0
- package/dist/types/WrapperFunctions/GetCompositionObservable.d.ts +13 -0
- package/dist/types/WrapperFunctions/GetLinkListObservable.d.ts +28 -0
- package/dist/types/WrapperFunctions/GetLinkObservable.d.ts +32 -0
- package/dist/types/WrapperFunctions/RecursiveSearchObservable.d.ts +37 -0
- package/dist/types/WrapperFunctions/SchemaQueryObservable.d.ts +9 -11
- package/dist/types/WrapperFunctions/SearchLinkMultipleAllObservable.d.ts +15 -0
- package/dist/types/app.d.ts +128 -21
- package/dist/types/prototype/getPrototype.service.d.ts +2 -0
- package/dist/types/prototype/prototype.service.d.ts +25 -0
- package/dist/types/service-worker.d.ts +1 -0
- package/package.json +1 -1
- package/dist/bundle.js +0 -2
- package/dist/bundle.js.LICENSE.txt +0 -1
- package/dist/types/Services/AccessControl/AccessControlCacheService.d.ts +0 -19
- package/dist/types/Services/AccessControl/AccessControlService.d.ts +0 -4
- package/dist/types/Services/AccessControl/PermissionSet.d.ts +0 -8
- package/dist/types/Services/Delete/GetAllConnectionByType.d.ts +0 -16
- package/dist/types/Services/MakeTheName.d.ts +0 -2
- package/dist/types/Services/auth/AuthService.d.ts +0 -1
- /package/dist/types/{Services/MakeTheLocalConcept.d.ts → Middleware/ErrorHandling.d.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! https://mths.be/cssesc v3.0.0 by @mathias */
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
export declare class AccessTracker {
|
|
2
|
+
private static conceptsData;
|
|
3
|
+
private static connectionsData;
|
|
4
|
+
private static readonly SYNC_INTERVAL_MS;
|
|
5
|
+
private static nextSyncTime;
|
|
6
|
+
static activateStatus: boolean;
|
|
7
|
+
private static readonly accessData;
|
|
8
|
+
/**
|
|
9
|
+
* Increments the count for a specific conceptId.
|
|
10
|
+
*/
|
|
11
|
+
static incrementConcept(conceptId: number): void;
|
|
12
|
+
/**
|
|
13
|
+
* Increments the count for a specific connectionId.
|
|
14
|
+
*/
|
|
15
|
+
static incrementConnection(connectionId: number): void;
|
|
16
|
+
/**
|
|
17
|
+
* Retrieves the top N concepts by their counts.
|
|
18
|
+
*/
|
|
19
|
+
static getTopConcepts(n: number): [number, number][];
|
|
20
|
+
/**
|
|
21
|
+
* Retrieves the top N connections by their counts.
|
|
22
|
+
*/
|
|
23
|
+
static getTopConnections(n: number): [number, number][];
|
|
24
|
+
/**
|
|
25
|
+
* Saves the concept and connection data to localStorage.
|
|
26
|
+
*/
|
|
27
|
+
static saveDataToLocalStorage(): void;
|
|
28
|
+
/**
|
|
29
|
+
* Loads the concept and connection data from localStorage.
|
|
30
|
+
*/
|
|
31
|
+
static loadDataFromLocalStorage(): void;
|
|
32
|
+
static sendToServer(): Promise<void>;
|
|
33
|
+
/**
|
|
34
|
+
* Syncs the concept and connection data with the server.
|
|
35
|
+
*/
|
|
36
|
+
private static syncToServer;
|
|
37
|
+
/**
|
|
38
|
+
* Sets the next sync time based on the current time and sync interval.
|
|
39
|
+
*/
|
|
40
|
+
private static setNextSyncTime;
|
|
41
|
+
/**
|
|
42
|
+
* Starts auto-syncing to the server every specified time interval.
|
|
43
|
+
* This will automatically call `syncToServer` every 5 minutes
|
|
44
|
+
*/
|
|
45
|
+
private static startAutoSync;
|
|
46
|
+
/**
|
|
47
|
+
* Sync immediately called by setInterval when time to sync has arrived.
|
|
48
|
+
*/
|
|
49
|
+
private static syncNow;
|
|
50
|
+
/**
|
|
51
|
+
* Fetch suggested concepts from the server with proper error handling.
|
|
52
|
+
*/
|
|
53
|
+
static GetSuggestedConcepts(top?: number): Promise<any>;
|
|
54
|
+
/**
|
|
55
|
+
* Fetch suggested connections from the server with proper error handling.
|
|
56
|
+
* @param top number of connections to get load
|
|
57
|
+
*/
|
|
58
|
+
static GetSuggestedConnections(top?: number): Promise<any>;
|
|
59
|
+
/**
|
|
60
|
+
* Add Concepts to Binary Tree
|
|
61
|
+
*/
|
|
62
|
+
private static addConceptToBinaryTree;
|
|
63
|
+
/**
|
|
64
|
+
* Add Concepts to Binary Tree
|
|
65
|
+
*/
|
|
66
|
+
private static addConnectionToBinaryTree;
|
|
67
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { FormFieldData } from "../Validator/interface";
|
|
2
|
+
/**
|
|
3
|
+
* Class representing the Anomaly detection logic for checking data validity based on predefined rules.
|
|
4
|
+
* This class contains methods for initializing, caching, and fetching anomaly parameters from an external API,
|
|
5
|
+
* as well as checking for anomalies in individual concepts and bulk data.
|
|
6
|
+
*/
|
|
7
|
+
export declare class Anomaly {
|
|
8
|
+
/**
|
|
9
|
+
* Static cache for storing fetched anomaly parameters.
|
|
10
|
+
* @type {any} - Stores the fetched anomaly parameters from the API.
|
|
11
|
+
*/
|
|
12
|
+
private static anomalyParamsCache;
|
|
13
|
+
/**
|
|
14
|
+
* Flag indicating if the anomaly parameters cache has been initialized.
|
|
15
|
+
* @type {boolean} - `true` if the cache is initialized, `false` otherwise.
|
|
16
|
+
*/
|
|
17
|
+
private static cacheInitialized;
|
|
18
|
+
/**
|
|
19
|
+
* Timestamp indicating the last time the anomaly parameters were fetched.
|
|
20
|
+
* @type {number} - Time in milliseconds.
|
|
21
|
+
*/
|
|
22
|
+
private static lastFetchedTime;
|
|
23
|
+
/**
|
|
24
|
+
* Cache expiry threshold, after which the data will be considered expired.
|
|
25
|
+
* @type {number} - Cache expiry threshold in milliseconds (default is 10 minutes).
|
|
26
|
+
*/
|
|
27
|
+
private static cacheExpiryThreshold;
|
|
28
|
+
/**
|
|
29
|
+
* Constructor that initializes anomaly parameters if the cache is not yet initialized.
|
|
30
|
+
* It ensures that the anomaly parameters are loaded and cached for use.
|
|
31
|
+
*/
|
|
32
|
+
constructor();
|
|
33
|
+
/**
|
|
34
|
+
* Initializes the anomaly parameters by fetching them from the API.
|
|
35
|
+
* This method is only run once on startup to ensure the cache is ready for use.
|
|
36
|
+
* It will fetch the parameters from the API and store them in a static cache.
|
|
37
|
+
*
|
|
38
|
+
* @returns {Promise<void>} - A promise that resolves once the parameters have been initialized.
|
|
39
|
+
*/
|
|
40
|
+
private static initializeAnomalyParameters;
|
|
41
|
+
/**
|
|
42
|
+
* Fetches the anomaly parameters.
|
|
43
|
+
* It first checks if the parameters are cached and whether the cache is still valid (not expired).
|
|
44
|
+
* If the cache is valid, it returns the cached data. If not, it fetches the data from the API.
|
|
45
|
+
*
|
|
46
|
+
* @returns {Promise<any>} - A promise that resolves to the anomaly parameters.
|
|
47
|
+
*/
|
|
48
|
+
static getAnomalyParameters(): Promise<any>;
|
|
49
|
+
/**
|
|
50
|
+
* Fetches anomaly parameters directly from the backend API.
|
|
51
|
+
* This method is used internally by `getAnomalyParameters` to retrieve fresh data.
|
|
52
|
+
*
|
|
53
|
+
* @returns {Promise<any>} - A promise that resolves to the fetched anomaly parameters.
|
|
54
|
+
*/
|
|
55
|
+
private static fetchAnomalyParameters;
|
|
56
|
+
/**
|
|
57
|
+
* Refreshes the anomaly parameters cache if the cache has expired.
|
|
58
|
+
* If the cache expiry threshold has been surpassed, the method re-fetches the data from the API.
|
|
59
|
+
*
|
|
60
|
+
* @returns {Promise<void>} - A promise that resolves when the cache has been refreshed.
|
|
61
|
+
*/
|
|
62
|
+
private static refreshCache;
|
|
63
|
+
/**
|
|
64
|
+
* Detects the data type of a given value based on predefined rules.
|
|
65
|
+
* It checks the value against the `DATA_TYPES_RULES` to find the matching data type.
|
|
66
|
+
*
|
|
67
|
+
* @param {string} value - The value to check.
|
|
68
|
+
* @returns {string | null} - The detected data type, or `null` if no match is found.
|
|
69
|
+
*/
|
|
70
|
+
detectDataType(value: string): string | null;
|
|
71
|
+
/**
|
|
72
|
+
* Checks whether a given concept and value pair contains an anomaly.
|
|
73
|
+
* An anomaly is detected based on the concept's length and type rules.
|
|
74
|
+
*
|
|
75
|
+
* @param {string} typeConcept - The concept type (e.g., `the_name`).
|
|
76
|
+
* @param {string} value - The value to check for anomalies.
|
|
77
|
+
* @returns {Promise<{ valid: boolean, warnings: string[] }>} - A promise that resolves to an object containing:
|
|
78
|
+
* - `valid`: A boolean indicating whether the value is valid according to the anomaly rules.
|
|
79
|
+
* - `warnings`: An array of warning messages related to the value's anomalies.
|
|
80
|
+
*/
|
|
81
|
+
checkConceptAnomaly(typeConcept: string, value: string | null): Promise<{
|
|
82
|
+
valid: boolean;
|
|
83
|
+
warnings: string[];
|
|
84
|
+
}>;
|
|
85
|
+
/**
|
|
86
|
+
* Checks anomalies for multiple concepts in bulk.
|
|
87
|
+
* Iterates over a record of concept-value pairs and detects anomalies.
|
|
88
|
+
*
|
|
89
|
+
* @param {Record<string, string>} instanceData - An object where each key is a concept type and each value is the corresponding data value.
|
|
90
|
+
* @returns {Promise<Record<string, { valid: boolean, warnings: string[] }>>} - A promise that resolves to an object where each key is a concept type
|
|
91
|
+
* and the value is an object containing `valid` (boolean) and `warnings` (array of warning messages).
|
|
92
|
+
*/
|
|
93
|
+
static checkAnomalyInBulk(formData: Record<string, FormFieldData>): Promise<Record<string, {
|
|
94
|
+
valid: boolean;
|
|
95
|
+
warnings: string[];
|
|
96
|
+
}>>;
|
|
97
|
+
/**
|
|
98
|
+
* List all the exported functions of the package
|
|
99
|
+
* @returns Keys of the Object which has exported functions
|
|
100
|
+
*/
|
|
101
|
+
static getExportedFunction(): string[];
|
|
102
|
+
private static getFunctionaAnomalyParameters;
|
|
103
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { Concept } from "../../DataStructures/Concept";
|
|
2
|
-
export declare function CreateTheConceptApi(conceptData: any): Promise<Concept>;
|
|
2
|
+
export declare function CreateTheConceptApi(conceptData: any): Promise<Concept | undefined>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function DeleteUserInBackend(id: number): Promise<number | undefined>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function DeleteTheConnectionBulkApi(ids: number[]): Promise<boolean>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function DeleteTheConcept(id: number
|
|
1
|
+
export default function DeleteTheConcept(id: number): Promise<boolean>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function DeleteTheConnection(id: number
|
|
1
|
+
export default function DeleteTheConnection(id: number): Promise<boolean>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Connection } from '../DataStructures/Connection';
|
|
2
2
|
export declare function GetAllConnectionsOfComposition(composition_id: number): Promise<Connection[]>;
|
|
3
|
-
export declare function GetAllConnectionsOfCompositionOnline(composition_id: number): Promise<Connection[]>;
|
|
3
|
+
export declare function GetAllConnectionsOfCompositionOnline(composition_id: number): Promise<Connection[] | undefined>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Connection } from '../DataStructures/Connection';
|
|
2
|
-
export declare function GetAllConnectionsOfCompositionBulk(composition_ids?: number[]): Promise<
|
|
3
|
-
export declare function GetAllConnectionsOfCompositionOnline(composition_ids?: number[]): Promise<Connection[]>;
|
|
2
|
+
export declare function GetAllConnectionsOfCompositionBulk(composition_ids?: number[]): Promise<any>;
|
|
3
|
+
export declare function GetAllConnectionsOfCompositionOnline(composition_ids?: number[]): Promise<Connection[] | undefined>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { TheCharacter } from "../DataStructures/TheCharacter";
|
|
2
|
-
export declare function GetCharacterByCharacter(characterValue: string): Promise<TheCharacter>;
|
|
2
|
+
export declare function GetCharacterByCharacter(characterValue: string): Promise<TheCharacter | undefined>;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function GetCompositionConnectionsBetweenTwoConcepts(ofConceptId: number, toConcept: number, mainKey: number): Promise<Connection[]>;
|
|
1
|
+
export declare function GetCompositionConnectionsBetweenTwoConcepts(ofConceptId: number, toConcept: number, mainKey: number): Promise<any>;
|
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* This function helps you get concept from the id. This can only be positive.
|
|
3
|
+
* @param id The id that you want to get the concept of
|
|
4
|
+
* @returns
|
|
5
|
+
*/
|
|
6
|
+
export declare function GetConcept(id: number): Promise<any>;
|
|
@@ -1,3 +1,10 @@
|
|
|
1
1
|
import { Concept } from "./../DataStructures/Concept";
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* This function takes in a list of ids and returns a list of concepts . This uses local memory to find concepts
|
|
4
|
+
* namely in the concept binary tree. If it could not find the concepts in local memory then it fetches those from
|
|
5
|
+
* the api. The fetched concepts from api are then stored in the memory for further use in future.
|
|
6
|
+
* @param conceptIds list of concept ids that need to be fetched
|
|
7
|
+
* @returns list of concepts
|
|
8
|
+
*/
|
|
9
|
+
export declare function GetConceptBulk(passedConcepts: number[]): Promise<Concept[]>;
|
|
3
10
|
export declare function BulkConceptGetterApi(bulkConceptFetch: number[]): Promise<Concept[]>;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function GetConceptByCharacterAndType(characterValue: string, typeId: number): Promise<Concept>;
|
|
1
|
+
export declare function GetConceptByCharacterAndType(characterValue: string, typeId: number): Promise<any>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { Connection } from "../DataStructures/Connection";
|
|
2
|
-
export declare function GetConnection(id: number): Promise<Connection>;
|
|
2
|
+
export declare function GetConnection(id: number): Promise<Connection | undefined>;
|
|
@@ -1,2 +1,7 @@
|
|
|
1
1
|
import { Connection } from "../DataStructures/Connection";
|
|
2
|
+
/**
|
|
3
|
+
* After fetching these connections it is saved in the local static ConnectionBinaryTree so it can be reused without being fetched
|
|
4
|
+
* @param connectionIds array of connection ids that need to fetched by the local system
|
|
5
|
+
* @returns the list of connections that have been fetched
|
|
6
|
+
*/
|
|
2
7
|
export declare function GetConnectionBulk(connectionIds?: number[]): Promise<Connection[]>;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function GetConnectionOfTheConcept(typeId: number, ofTheConceptId: number, userId: number, inpage?: number, page?: number): Promise<Connection[]>;
|
|
1
|
+
export declare function GetConnectionOfTheConcept(typeId: number, ofTheConceptId: number, userId: number, inpage?: number, page?: number): Promise<any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function GetImageApi(imageName: string): Promise<ReadableStream<Uint8Array<ArrayBuffer>> | 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>;
|
|
@@ -1,2 +1,9 @@
|
|
|
1
1
|
import { Concept } from "../DataStructures/Concept";
|
|
2
|
+
/**
|
|
3
|
+
* This function is used to check the type concpet of a passed string
|
|
4
|
+
* if the text is "the_person" then the function finds the related concept
|
|
5
|
+
* @param type This is the type of the concept that needs to be created.
|
|
6
|
+
* @param userId This is the userId of the creator.
|
|
7
|
+
* @returns the concept created.
|
|
8
|
+
*/
|
|
2
9
|
export declare function MakeTheTypeConceptApi(type: string, userId: number): Promise<Concept>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { StatefulWidget } from "../../app";
|
|
2
|
+
export declare class Selector extends StatefulWidget {
|
|
3
|
+
selector: string;
|
|
4
|
+
mainType: string;
|
|
5
|
+
mainDetails: any;
|
|
6
|
+
filterType: string;
|
|
7
|
+
query: any;
|
|
8
|
+
inpage: number;
|
|
9
|
+
parentDomElement: HTMLElement;
|
|
10
|
+
constructor(mainType: string, selector: string, parentElement: HTMLElement, filterType?: string, inpage?: number);
|
|
11
|
+
before_render(): void;
|
|
12
|
+
addFilter(value: string): void;
|
|
13
|
+
after_render(): void;
|
|
14
|
+
getHtml(): string;
|
|
15
|
+
}
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
export declare function RecursiveSearchApi(composition?: number, listLinkers?: string[], textSearch?: string): Promise<any
|
|
1
|
+
export declare function RecursiveSearchApi(composition?: number, listLinkers?: string[], textSearch?: string, fullLinkers?: string[]): Promise<any>;
|
|
2
|
+
export declare function RecursiveSearchApiWithInternalConnections(composition?: number, listLinkers?: string[], textSearch?: string): Promise<any>;
|
|
3
|
+
export declare function RecursiveSearchApiRaw(composition?: number, listLinkers?: string[], textSearch?: string, fullLinkers?: string[]): Promise<any>;
|
|
4
|
+
export declare function RecursiveSearchApiRawFullLinker(composition?: number, fullLinkers?: string[], textSearch?: string): Promise<any>;
|
|
5
|
+
export declare function RecursiveSearchApiNewRawFullLinker(composition?: number, fullLinkers?: string[], textSearch?: string): Promise<any>;
|
|
6
|
+
export declare function RecursiveSearchLocal(composition: number, listLinkers?: string[], textSearch?: string): Promise<void>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { FreeschemaQuery } from "../../
|
|
1
|
+
import { FreeschemaQuery } from "../../app";
|
|
2
2
|
export declare function FreeschemaQueryApi(query: FreeschemaQuery, token?: string): Promise<any>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { Concept } from "../../DataStructures/Concept";
|
|
2
|
-
export declare function GetConceptByCharacterAndCategoryApi(characterValue: string): Promise<Concept>;
|
|
2
|
+
export declare function GetConceptByCharacterAndCategoryApi(characterValue: string): Promise<Concept | undefined>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FreeschemaResponse } from "../DataStructures/Responses/StandardResponses";
|
|
2
2
|
import { SigninModel } from "../DataStructures/SigninModel";
|
|
3
|
-
export default function Signin(signinInfo: SigninModel): Promise<FreeschemaResponse>;
|
|
3
|
+
export default function Signin(signinInfo: SigninModel): Promise<FreeschemaResponse | undefined>;
|
|
@@ -1,3 +1,19 @@
|
|
|
1
1
|
import { FreeschemaResponse } from "../DataStructures/Responses/StandardResponses";
|
|
2
2
|
import { SignupModel } from "../DataStructures/SignupModel";
|
|
3
|
-
export default function Signup(signupModel: SignupModel): Promise<FreeschemaResponse>;
|
|
3
|
+
export default function Signup(signupModel: SignupModel): Promise<FreeschemaResponse | undefined>;
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* @param signupData
|
|
7
|
+
* const signupData: any = {
|
|
8
|
+
* type: typeValue,
|
|
9
|
+
* username: usernameValue,
|
|
10
|
+
* title: genderValue,
|
|
11
|
+
* email: emailValue,
|
|
12
|
+
* password: passwordValue,
|
|
13
|
+
* timestamp: new Date().toISOString(),
|
|
14
|
+
* fname: firstNameValue,
|
|
15
|
+
* lname: lastNameValue,
|
|
16
|
+
* };
|
|
17
|
+
* @returns
|
|
18
|
+
*/
|
|
19
|
+
export declare function SignupEntity(signupData: any): Promise<any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ckeditorCSS = "\n/* CKEditor content styles */\n.ck-content {\n /* Container styles */\n max-width: 100%;\n margin: 0 auto;\n font-family: system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\", sans-serif;\n line-height: 1.5;\n padding: 0.75rem;\n background: #fff;\n color: #333;\n border: 1px solid #ccced1;\n}\n\n/* Headings */\n.ck-content h1, .ck-content h2, .ck-content h3, \n.ck-content h4, .ck-content h5, .ck-content h6 {\n font-weight: 700;\n line-height: 1.2;\n margin: 1em 0 0.5em;\n}\n\n.ck-content h1 { font-size: 2.5em; }\n.ck-content h2 { font-size: 2em; }\n.ck-content h3 { font-size: 1.75em; }\n.ck-content h4 { font-size: 1.5em; }\n.ck-content h5 { font-size: 1.25em; }\n.ck-content h6 { font-size: 1em; }\n\n/* Paragraphs and spacing */\n.ck-content p {\n margin: 1em 0;\n line-height: 1.6;\n}\n\n/* Links */\n.ck-content a {\n color: #1a73e8;\n text-decoration: none;\n}\n\n.ck-content a:hover {\n text-decoration: underline;\n}\n\n/* Lists */\n.ck-content ul,\n.ck-content ol {\n padding-left: 2em;\n margin: 1em 0;\n}\n\n.ck-content ul {\n list-style: disc;\n}\n\n.ck-content ol {\n list-style: decimal;\n}\n\n.ck-content li {\n margin: 0.5em 0;\n}\n\n/* Blockquotes */\n.ck-content blockquote {\n margin: 1em 0;\n padding-left: 1em;\n border-left: 5px solid #ccc;\n font-style: italic;\n color: #666;\n}\n\n/* Code blocks */\n.ck-content pre {\n background: #f5f5f5;\n border: 1px solid #ddd;\n border-radius: 4px;\n padding: 1em;\n margin: 1em 0;\n overflow-x: auto;\n font-family: \"SFMono-Regular\", Consolas, \"Liberation Mono\", Menlo, Courier, monospace;\n}\n\n.ck-content code {\n background: #f5f5f5;\n padding: 0.2em 0.4em;\n border-radius: 3px;\n font-size: 0.9em;\n font-family: \"SFMono-Regular\", Consolas, \"Liberation Mono\", Menlo, Courier, monospace;\n}\n\n/* Tables */\n.ck-content table {\n border-collapse: collapse;\n width: 100%;\n margin: 1em 0;\n}\n\n.ck-content table th,\n.ck-content table td {\n border: 1px solid #ddd;\n padding: 0.75em;\n text-align: left;\n}\n\n.ck-content table th {\n background: #f5f5f5;\n font-weight: bold;\n}\n\n/* Images */\n.ck-content img {\n max-width: 100%;\n height: auto;\n margin: 1em 0;\n}\n\n.ck-content figure {\n margin: 1em 0;\n text-align: center;\n}\n\n.ck-content figure img {\n margin: 0;\n}\n\n.ck-content figcaption {\n color: #666;\n font-size: 0.9em;\n margin-top: 0.5em;\n}\n\n/* Dark mode */\n/*\n@media (prefers-color-scheme: dark) {\n .ck-content {\n background: #1a1a1a;\n color: #e0e0e0;\n }\n\n .ck-content a {\n color: #64b5f6;\n }\n\n .ck-content blockquote {\n border-left-color: #404040;\n color: #b0b0b0;\n }\n\n .ck-content pre,\n .ck-content code {\n background: #2d2d2d;\n border-color: #404040;\n }\n\n .ck-content table th,\n .ck-content table td {\n border-color: #404040;\n }\n\n .ck-content table th {\n background: #2d2d2d;\n }\n\n .ck-content figcaption {\n color: #b0b0b0;\n }\n}\n*/\n\n/* CUSTOM DOCUMENTATION CSS */\n\n#documentation-preview {\n border: 1px solid #ccc;\n padding: 1rem;\n}\n\n#documentation-preview h3 {\n font-size: 1.5rem;\n margin-bottom: 1rem;\n}\n\n.pre-wrapper {\n background: #f2f5f9;\n border: 1px solid #cecece;\n display: block;\n padding: 1rem;\n border-radius: 0.25rem;\n margin-top: 1rem;\n margin-bottom: 1rem;\n}\n\n.pre-wrapper pre {\n margin: 0;\n color: #e87aa2;\n}\n\n.widget-doc-section pre {\n background-color: transparent;\n}\n\n.widget-doc-section p {\n margin: 0;\n}\n\n.widget-doc-section code {\n color: #e87aa2;\n font-size: 0.875rem;\n}\n\n.mv-3 {\n margin-top: 1rem;\n margin-bottom: 1rem;\n}\n\n.pv-3 {\n padding-top: 1rem;\n padding-bottom: 1rem;\n}\n\n .widget-documentation-heading {\n background-color: #6e757d;\n color: #eee;\n font-size: 1.5rem;\n padding: 0.5rem 1rem;\n display: flex;\n align-items: center;\n justify-content: space-between;\n }\n\n .widget-documentation-heading h4 {\n margin-bottom: 0;\n }\n\n .close-documentation-button {\n border: none;\n outline: none;\n background-color: transparent;\n line-height: 0;\n margin: 0;\n padding: 0;\n cursor: pointer;\n }\n\n .close-documentation-button:hover,\n .close-documentation-button:focus {\n background-color: transparent;\n }\n\n .documentation-creator {\n text-align: right;\n color: #666;\n margin: 0;\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n }\n\n .documentation-creator span {\n font-style: italic;\n }\n\n .documentation-attachments {\n display: flex;\n flex-wrap: wrap;\n }\n\n .documentation-attachments img {\n width: 25%;\n height: auto;\n border: 1px solid #ccc;\n padding: 0.25rem;\n margin-top: 0.5rem;\n margin-bottom: 0.5rem;\n }\n\n .documentation-attachments iframe {\n width: 50%;\n border: 1px solid #ccc;\n padding: 0.25rem;\n margin-top: 0.5rem;\n margin-bottom: 0.5rem;\n }\n\n .widget-documentation-footer {\n text-align: right;\n margin-top: 1rem;\n }\n\n .widget-documentation-footer button {\n border-radius: 0;\n border: none;\n padding: 0.5rem 1.5rem;\n text-align: center;\n background: #6e757d;\n color: #eee;\n }\n\n #widget-details {\n position: absolute;\n right: 0px;\n top: 0px;\n z-index: 9999;\n }\n\n #widget-details button {\n background: #fff;\n border: 1px solid #ccc;\n border-radius: 0 0 0 0.25rem;\n height: auto;\n width: auto;\n cursor: pointer;\n display: flex;\n align-items: center;\n gap: 0.25rem;\n }\n\n #widget-details button:hover, \n #widget-details button:focus {\n opacity: 0.75;\n }\n\n #widget-details button span {\n pointer-events: none;\n font-size: 1rem;\n }\n\n #widget-details button svg {\n pointer-events: none;\n width: 16px;\n height: 16px;\n fill: #999;\n }\n\n #widget-documentation-preview-modal {\n border: none;\n }\n\n @media (min-width: 768px) {\n #widget-documentation-preview-modal {\n flex: 0 0 auto;\n width: 66.66666667%;\n }\n }\n\n";
|
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
export declare class BaseUrl {
|
|
2
2
|
static BASE_URL: string;
|
|
3
|
+
static NODE_CACHE_URL: string;
|
|
3
4
|
static AI_URL: string;
|
|
4
5
|
static MQTT_URL: string;
|
|
5
6
|
static NODE_URL: string;
|
|
7
|
+
static LOG_SERVER: string;
|
|
6
8
|
static MQTT_CONNECTION: any;
|
|
9
|
+
static BASE_APPLICATION: string;
|
|
10
|
+
static DOCUMENTATION_WIDGET: number;
|
|
11
|
+
static isNearestCache: boolean;
|
|
12
|
+
static ACCESS_CONTROL_BASE_URL: string;
|
|
13
|
+
static FLAGS: any;
|
|
14
|
+
static BASE_RANDOMIZER: number;
|
|
15
|
+
static setRandomizer(id: number): void;
|
|
16
|
+
static getRandomizer(): number;
|
|
7
17
|
static GetConceptUrl(): string;
|
|
8
18
|
static GetConnectionUrl(): string;
|
|
9
19
|
static GetConceptBulkUrl(): string;
|
|
@@ -21,13 +31,21 @@ export declare class BaseUrl {
|
|
|
21
31
|
static GetAllConnectionsOfConceptUrl(): string;
|
|
22
32
|
static GetAllConnectionsToConceptUrl(): string;
|
|
23
33
|
static GetAllAiData(): string;
|
|
34
|
+
static getAppConfig(): string;
|
|
35
|
+
static PostPrefetchConceptConnections(): string;
|
|
36
|
+
static GetSuggestedConcepts(): string;
|
|
37
|
+
static GetSuggestedConnections(): string;
|
|
38
|
+
static PostLogger(): string;
|
|
39
|
+
static LogHealth(): string;
|
|
24
40
|
static GetAllPrefetchConnectionsUrl(): string;
|
|
25
41
|
static GetAllLinkerConnectionOfConceptUrl(): string;
|
|
26
42
|
static GetAllLinkerConnectionToConceptUrl(): string;
|
|
27
43
|
static DeleteConceptUrl(): string;
|
|
44
|
+
static DeleteUserUrl(): string;
|
|
28
45
|
static RecursiveSearchUrl(): string;
|
|
29
46
|
static SearchLinkMultipleAllApiUrl(): string;
|
|
30
47
|
static MakeTheNameInBackendUrl(): string;
|
|
48
|
+
static SearchAllTypeWithLinker(auth?: boolean): string;
|
|
31
49
|
static LoginUrl(): string;
|
|
32
50
|
static SignupUrl(): string;
|
|
33
51
|
static GetCompositionConnectionBetweenTwoConceptsUrl(): string;
|
|
@@ -37,6 +55,10 @@ export declare class BaseUrl {
|
|
|
37
55
|
static CreateSessionVisitUrl(): string;
|
|
38
56
|
static ViewInternalDataUrl(): string;
|
|
39
57
|
static SearchInternalWithAuthenticatedCcsUrl(): string;
|
|
58
|
+
static SearchInternalWithCcsUrl(): string;
|
|
59
|
+
static CreateGhostConceptApiUrl(withAuth?: boolean): string;
|
|
60
|
+
static CreateGhostConnectionApiUrl(): string;
|
|
61
|
+
static GetRealConceptById(): string;
|
|
40
62
|
static GetReservedIdUrl(): string;
|
|
41
63
|
static GetReservedConnectionIdUrl(): string;
|
|
42
64
|
static CreateTheTextDataUrl(): string;
|
|
@@ -46,5 +68,16 @@ export declare class BaseUrl {
|
|
|
46
68
|
static CreateTheConnectionNewUrl(): string;
|
|
47
69
|
static MakeTheTypeConceptUrl(): string;
|
|
48
70
|
static DeleteTheConnectionUrl(): string;
|
|
71
|
+
static DeleteTheConnectionBulkUrl(): string;
|
|
49
72
|
static FreeschemaQueryUrl(): string;
|
|
73
|
+
static uploadImageUrl(): string;
|
|
74
|
+
static uploadImageUrlWithSmall(): string;
|
|
75
|
+
static uploadFileUrl(): string;
|
|
76
|
+
static sendMail(): string;
|
|
77
|
+
static sendBulkMail(): string;
|
|
78
|
+
static getWidgetData(): string;
|
|
79
|
+
static getLatestWidgetData(): string;
|
|
80
|
+
static getConnectionsByTypes(): string;
|
|
81
|
+
static CreatePrototypeUrl(): string;
|
|
82
|
+
static GetCachedImage(ImageName: string): string;
|
|
50
83
|
}
|
|
@@ -8,5 +8,6 @@ export declare class BinaryTree {
|
|
|
8
8
|
static addConceptToTree(concept: Concept): void;
|
|
9
9
|
static getNodeFromTree(id: number): Promise<Node | null>;
|
|
10
10
|
static removeNodeFromTree(id: number): Promise<void>;
|
|
11
|
+
static getConceptListFromIds(ids: number[], connectionArray: Concept[], remainingIds: any): Promise<void>;
|
|
11
12
|
static countNumberOfNodes(): number;
|
|
12
13
|
}
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { Concept } from "../DataStructures/Concept";
|
|
2
2
|
import { Node } from "./Node";
|
|
3
|
+
import { TypeNode } from "./TypeNode";
|
|
3
4
|
export declare class BinaryTypeTree {
|
|
4
5
|
static typeRoot: Node | null;
|
|
5
|
-
static
|
|
6
|
+
static root: TypeNode | null;
|
|
7
|
+
static addType(node: TypeNode): Promise<TypeNode | null>;
|
|
6
8
|
static addConceptToTree(concept: Concept): void;
|
|
7
9
|
static removeTypeConcept(typeId: number, id: number): void;
|
|
8
|
-
static
|
|
9
|
-
static
|
|
10
|
+
static getNodeFromTreeNew(id: number): TypeNode | null;
|
|
11
|
+
static getTypeVariantsFromTreeNew(typeId: number): Promise<Concept[]>;
|
|
10
12
|
static waitForDataToLoad(): Promise<unknown>;
|
|
11
13
|
static checkFlag(resolve: any): any;
|
|
12
|
-
static
|
|
13
|
-
static
|
|
14
|
+
static getTypeVariantsFromTreeWithUserIdNew(typeId: number, userId: number): Promise<Concept[]>;
|
|
15
|
+
static getTypeVariantsWithCharacterValueNew(characterValue: string, typeId: number): Promise<Concept>;
|
|
14
16
|
static countNumberOfNodes(): number;
|
|
15
17
|
}
|
|
@@ -1,29 +1,25 @@
|
|
|
1
1
|
export declare class Concept {
|
|
2
|
-
x: number;
|
|
3
|
-
y: number;
|
|
4
2
|
id: number;
|
|
5
3
|
ghostId: number;
|
|
4
|
+
count: number;
|
|
6
5
|
userId: number;
|
|
7
6
|
typeId: number;
|
|
8
|
-
typeUserId: number;
|
|
9
7
|
categoryId: number;
|
|
10
|
-
categoryUserId: number;
|
|
11
|
-
referentId: number;
|
|
12
|
-
referentUserId: number;
|
|
13
|
-
characterValue: string;
|
|
14
|
-
securityId: number;
|
|
15
|
-
securityUserId: number;
|
|
16
8
|
accessId: number;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
sessionInformationUserId: number;
|
|
9
|
+
characterValue: string;
|
|
10
|
+
typeCharacter: string;
|
|
20
11
|
entryTimeStamp: Date | string;
|
|
12
|
+
referentId: number | null;
|
|
21
13
|
updatedTimeStamp: Date | string;
|
|
22
14
|
referent: Concept | null | void;
|
|
23
|
-
type:
|
|
15
|
+
type: null | void | Concept;
|
|
24
16
|
isNew: boolean;
|
|
25
|
-
|
|
17
|
+
isComposition: boolean;
|
|
26
18
|
isTemp: boolean;
|
|
27
|
-
|
|
19
|
+
isSynced: boolean;
|
|
20
|
+
applicationId: number;
|
|
21
|
+
x: number;
|
|
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 | string, updatedTimeStamp: Date | string, typeCharacter: string);
|
|
28
24
|
getType(): void;
|
|
29
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();
|
|
@@ -9,17 +10,21 @@ export declare class ConceptsData {
|
|
|
9
10
|
static AddNpc(id: number): void;
|
|
10
11
|
static GetNpc(id: number): boolean;
|
|
11
12
|
static AddConceptToStorage(concept: Concept): void;
|
|
13
|
+
static GetConceptBulkData(ids: number[], connectionArray: Concept[], remainingIds: any): Promise<void>;
|
|
14
|
+
static AddWidget(widgetDetails: WidgetDetails): void;
|
|
12
15
|
static AddConcept(concept: Concept): void;
|
|
13
16
|
static AddConceptToMemory(concept: Concept): void;
|
|
14
17
|
static AddConceptTemporary(concept: Concept): void;
|
|
15
18
|
static RemoveConcept(concept: Concept): void;
|
|
16
|
-
static
|
|
19
|
+
static GetWidget(id: number): Promise<WidgetDetails>;
|
|
20
|
+
static RemoveWidget(id: number): Promise<any>;
|
|
21
|
+
static GetConcept(id: number): Promise<any>;
|
|
17
22
|
static GetConceptByCharacter(characterValue: string): Promise<Concept>;
|
|
18
23
|
static GetConceptByCharacterUpdated(characterValue: string): Promise<Concept>;
|
|
19
24
|
static GetConceptByCharacterAndTypeLocal(character_value: string, typeId: number): Promise<Concept>;
|
|
20
25
|
static GetConceptByCharacterAndCategoryLocal(character_value: string, categoryId: number): Promise<Concept>;
|
|
21
26
|
static GetConceptsByTypeId(typeId: number): Concept[];
|
|
22
|
-
static GetConceptsByTypeIdAndUser(typeId: number, userId: number): Promise<
|
|
27
|
+
static GetConceptsByTypeIdAndUser(typeId: number, userId: number): Promise<any>;
|
|
23
28
|
static GetBinaryCharacterTree(): import("./Node").Node | null;
|
|
24
29
|
getName(): string;
|
|
25
30
|
}
|