mftsccs-browser 2.1.238-beta → 2.1.239-dev
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 +43918 -2
- package/dist/main.bundle.js.map +1 -0
- package/dist/serviceWorker.bundle.js +44844 -2
- package/dist/serviceWorker.bundle.js.map +1 -0
- package/package.json +4 -1
- package/dist/main.bundle.js.LICENSE.txt +0 -1
- package/dist/serviceWorker.bundle.js.LICENSE.txt +0 -1
- package/dist/types/AccessTracker/accessTracker.d.ts +0 -67
- package/dist/types/Anomaly/anomaly.d.ts +0 -103
- package/dist/types/Api/Create/CreateTheCharacter.d.ts +0 -24
- package/dist/types/Api/Create/CreateTheConceptApi.d.ts +0 -20
- package/dist/types/Api/Create/CreateTheConnectionApi.d.ts +0 -18
- package/dist/types/Api/Create/CreateTheGhostConceptApi.d.ts +0 -28
- package/dist/types/Api/Create/CreateTheGhostConnectionApi.d.ts +0 -18
- package/dist/types/Api/Create/CreateTheTextData.d.ts +0 -18
- package/dist/types/Api/Delete/DeleteConceptInBackend.d.ts +0 -14
- package/dist/types/Api/Delete/DeleteUserInBackend.d.ts +0 -19
- package/dist/types/Api/DeleteConnectionBulkApi.d.ts +0 -20
- package/dist/types/Api/DeleteTheConcept.d.ts +0 -20
- package/dist/types/Api/DeleteTheConnection.d.ts +0 -20
- package/dist/types/Api/GetAiData.d.ts +0 -10
- package/dist/types/Api/GetAllConceptsByType.d.ts +0 -12
- package/dist/types/Api/GetAllConnectionsOfComposition.d.ts +0 -23
- package/dist/types/Api/GetAllConnectionsOfCompositionBulk.d.ts +0 -23
- package/dist/types/Api/GetAllLinkerConnectionsFromTheConcept.d.ts +0 -12
- package/dist/types/Api/GetAllLinkerConnectionsToTheConcept.d.ts +0 -12
- package/dist/types/Api/GetCharacterDataByCharacter.d.ts +0 -12
- package/dist/types/Api/GetCompositionConnectionsBetweenTwoConcepts.d.ts +0 -13
- package/dist/types/Api/GetConcept.d.ts +0 -6
- package/dist/types/Api/GetConceptBulk.d.ts +0 -20
- package/dist/types/Api/GetConceptByCharacterAndType.d.ts +0 -15
- package/dist/types/Api/GetConceptByCharacterValue.d.ts +0 -12
- package/dist/types/Api/GetConnection.d.ts +0 -15
- package/dist/types/Api/GetConnectionBulk.d.ts +0 -7
- package/dist/types/Api/GetConnectionOfTheConcept.d.ts +0 -15
- package/dist/types/Api/GetConnectionToTheConcept.d.ts +0 -17
- package/dist/types/Api/GetConnections/GetConnectionsBetweenApi.d.ts +0 -40
- package/dist/types/Api/GetConnections/GetConnectionsByTypeApi.d.ts +0 -15
- package/dist/types/Api/GetInstanceConceptByCharacterType.d.ts +0 -9
- package/dist/types/Api/GetReservedConnectionIds.d.ts +0 -10
- package/dist/types/Api/GetReservedIds.d.ts +0 -10
- package/dist/types/Api/Images/GetImages.d.ts +0 -15
- package/dist/types/Api/Local/GetLocalConceptByCharacterValue.d.ts +0 -13
- package/dist/types/Api/Login.d.ts +0 -78
- package/dist/types/Api/MakeTheNameInBackend.d.ts +0 -14
- package/dist/types/Api/MakeTheTypeConceptApi.d.ts +0 -9
- package/dist/types/Api/Prototype/Selector.d.ts +0 -26
- package/dist/types/Api/RecursiveSearch.d.ts +0 -67
- package/dist/types/Api/Search/FreeschemaQueryApi.d.ts +0 -18
- package/dist/types/Api/Search/Search.d.ts +0 -73
- package/dist/types/Api/Search/SearchInternalApi.d.ts +0 -28
- package/dist/types/Api/Search/SearchLinkMultipleApi.d.ts +0 -15
- package/dist/types/Api/Search/SearchWithLinker.d.ts +0 -16
- package/dist/types/Api/Search/SearchWithTypeAndLinker.d.ts +0 -14
- package/dist/types/Api/SearchConcept/GetConceptByCharacterAndCategoryApi.d.ts +0 -12
- package/dist/types/Api/SearchConcept/GetConceptByCharacterAndCategoryDirect.d.ts +0 -13
- package/dist/types/Api/SearchConcept/GetTypeConceptByBulk.d.ts +0 -15
- package/dist/types/Api/Session/CreateSession.d.ts +0 -16
- package/dist/types/Api/Session/CreateSessionVisit.d.ts +0 -12
- package/dist/types/Api/Signin.d.ts +0 -24
- package/dist/types/Api/Signup.d.ts +0 -61
- package/dist/types/Api/Translate/TranslateLocalToReal.d.ts +0 -12
- package/dist/types/Api/View/ViewInternalDataApi.d.ts +0 -15
- package/dist/types/Constants/AccessConstants.d.ts +0 -3
- package/dist/types/Constants/ApiConstants.d.ts +0 -23
- package/dist/types/Constants/FormatConstants.d.ts +0 -8
- package/dist/types/Constants/ckeditorCSS.d.ts +0 -1
- package/dist/types/Constants/general.const.d.ts +0 -6
- package/dist/types/Constants/page.const.d.ts +0 -5
- package/dist/types/DataStructures/BaseUrl.d.ts +0 -89
- package/dist/types/DataStructures/BinaryCharacterTree.d.ts +0 -16
- package/dist/types/DataStructures/BinaryTree.d.ts +0 -77
- package/dist/types/DataStructures/BinaryTypeTree.d.ts +0 -17
- package/dist/types/DataStructures/CharacterRepository.d.ts +0 -8
- package/dist/types/DataStructures/Composition/Composition.d.ts +0 -14
- package/dist/types/DataStructures/Composition/CompositionBinaryTree.d.ts +0 -10
- package/dist/types/DataStructures/Composition/CompositionNode.d.ts +0 -21
- package/dist/types/DataStructures/Concept.d.ts +0 -25
- package/dist/types/DataStructures/ConceptData.d.ts +0 -30
- package/dist/types/DataStructures/ConceptsToDraw.d.ts +0 -11
- package/dist/types/DataStructures/Connection.d.ts +0 -23
- package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionBinaryTree.d.ts +0 -81
- package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionNode.d.ts +0 -27
- package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionOfNode.d.ts +0 -10
- package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionOfTheTree.d.ts +0 -24
- package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionTypeNode.d.ts +0 -10
- package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionTypeTree.d.ts +0 -20
- package/dist/types/DataStructures/ConnectionBinaryTree/NodePrimitive.d.ts +0 -15
- package/dist/types/DataStructures/ConnectionByType/GetConnectionByType.d.ts +0 -4
- package/dist/types/DataStructures/ConnectionData.d.ts +0 -26
- package/dist/types/DataStructures/Count/CountInfo.d.ts +0 -6
- package/dist/types/DataStructures/FetchConnection.d.ts +0 -64
- package/dist/types/DataStructures/FilterSearch.d.ts +0 -9
- package/dist/types/DataStructures/IdentifierFlags.d.ts +0 -11
- package/dist/types/DataStructures/Local/LConcept.d.ts +0 -23
- package/dist/types/DataStructures/Local/LConnection.d.ts +0 -18
- package/dist/types/DataStructures/Local/LNode.d.ts +0 -29
- package/dist/types/DataStructures/Local/LocalBinaryCharacterTree.d.ts +0 -13
- package/dist/types/DataStructures/Local/LocalBinaryTree.d.ts +0 -13
- package/dist/types/DataStructures/Local/LocalBinaryTypeTree.d.ts +0 -13
- package/dist/types/DataStructures/Local/LocalConceptData.d.ts +0 -21
- package/dist/types/DataStructures/Local/LocalConnectionData.d.ts +0 -20
- package/dist/types/DataStructures/Local/LocalGhostIdTree.d.ts +0 -11
- package/dist/types/DataStructures/Local/LocalId.d.ts +0 -19
- package/dist/types/DataStructures/Local/LocalSyncData.d.ts +0 -33
- package/dist/types/DataStructures/Node.d.ts +0 -30
- package/dist/types/DataStructures/PatcherStructure.d.ts +0 -8
- package/dist/types/DataStructures/Prototype/Prototype.d.ts +0 -19
- package/dist/types/DataStructures/Prototype/PrototypeOption.d.ts +0 -4
- package/dist/types/DataStructures/Prototype/QuerySelector.d.ts +0 -4
- package/dist/types/DataStructures/ReservedIds.d.ts +0 -10
- package/dist/types/DataStructures/Responses/ErrorResponse.d.ts +0 -74
- package/dist/types/DataStructures/Responses/StandardResponses.d.ts +0 -6
- package/dist/types/DataStructures/Returner.d.ts +0 -7
- package/dist/types/DataStructures/Search/FreeschemaQuery.d.ts +0 -25
- package/dist/types/DataStructures/Search/SearchStructure.d.ts +0 -10
- package/dist/types/DataStructures/SearchQuery.d.ts +0 -17
- package/dist/types/DataStructures/Security/SecureStorage.d.ts +0 -14
- package/dist/types/DataStructures/Security/TokenStorage.d.ts +0 -24
- package/dist/types/DataStructures/Session/SessionData.d.ts +0 -13
- package/dist/types/DataStructures/SettingData.d.ts +0 -5
- package/dist/types/DataStructures/Settings.d.ts +0 -4
- package/dist/types/DataStructures/SigninModel.d.ts +0 -4
- package/dist/types/DataStructures/SignupModel.d.ts +0 -4
- package/dist/types/DataStructures/SyncData.d.ts +0 -14
- package/dist/types/DataStructures/TheCharacter.d.ts +0 -13
- package/dist/types/DataStructures/TheTexts.d.ts +0 -14
- package/dist/types/DataStructures/TypeLibrary.d.ts +0 -19
- package/dist/types/DataStructures/TypeNode.d.ts +0 -18
- package/dist/types/DataStructures/User/UserBinaryTree.d.ts +0 -13
- package/dist/types/DataStructures/User/UserNode.d.ts +0 -18
- package/dist/types/DataStructures/WidgetCache/WidgetCache.d.ts +0 -10
- package/dist/types/DataStructures/WidgetCache/WidgetDetails.d.ts +0 -9
- package/dist/types/DataStructures/WidgetCache/WidgetNode.d.ts +0 -18
- package/dist/types/DataStructures/environments/environments.d.ts +0 -48
- package/dist/types/Database/CacheDatabase.d.ts +0 -57
- package/dist/types/Database/IndexUpdate.d.ts +0 -47
- package/dist/types/Database/NoIndexDb.d.ts +0 -9
- package/dist/types/Database/indexdblocal.d.ts +0 -43
- package/dist/types/Database/indexeddb.d.ts +0 -58
- package/dist/types/Helpers/CheckIfExists.d.ts +0 -9
- package/dist/types/Helpers/RemoveFromArray.d.ts +0 -5
- package/dist/types/Helpers/UniqueInsert.d.ts +0 -1
- package/dist/types/Middleware/ApplicationMonitor.d.ts +0 -14
- package/dist/types/Middleware/logger.service.d.ts +0 -144
- package/dist/types/ServiceWorker/actions/connectionActions.d.ts +0 -2
- package/dist/types/ServiceWorker/actions/createActions.d.ts +0 -2
- package/dist/types/ServiceWorker/actions/deleteActions.d.ts +0 -2
- package/dist/types/ServiceWorker/actions/getActions.d.ts +0 -2
- package/dist/types/ServiceWorker/actions/index.d.ts +0 -15
- package/dist/types/ServiceWorker/actions/searchActions.d.ts +0 -2
- package/dist/types/ServiceWorker/actions/syncActions.d.ts +0 -2
- package/dist/types/ServiceWorker/actions/updateActions.d.ts +0 -2
- package/dist/types/ServiceWorker/index.d.ts +0 -11
- package/dist/types/Services/CacheClear.d.ts +0 -7
- package/dist/types/Services/CheckForConnectionDeletion.d.ts +0 -3
- package/dist/types/Services/Common/DecodeCountInfo.d.ts +0 -3
- package/dist/types/Services/Common/DelayFunction.d.ts +0 -7
- package/dist/types/Services/Common/ErrorPosting.d.ts +0 -10
- package/dist/types/Services/Common/MergeArrays.d.ts +0 -7
- package/dist/types/Services/Common/RegexFunction.d.ts +0 -1
- package/dist/types/Services/Common/RemoveAllChild.d.ts +0 -1
- package/dist/types/Services/Composition/BuildComposition.d.ts +0 -3
- package/dist/types/Services/Composition/CompositionCache.d.ts +0 -4
- package/dist/types/Services/Composition/CreateCompositionCache.d.ts +0 -3
- package/dist/types/Services/ConceptFinding/GetConceptByCharacterAndCategory.d.ts +0 -5
- package/dist/types/Services/Conversion/ConvertConcepts.d.ts +0 -5
- package/dist/types/Services/CreateBinaryTreeFromData.d.ts +0 -5
- package/dist/types/Services/CreateConnection/CreateConnectionEntity.d.ts +0 -2
- package/dist/types/Services/CreateConnectionBetweenTwoConcepts.d.ts +0 -5
- package/dist/types/Services/CreateDefaultConcept.d.ts +0 -3
- package/dist/types/Services/CreateTheComposition.d.ts +0 -1
- package/dist/types/Services/CreateTheConcept.d.ts +0 -122
- package/dist/types/Services/CreateTheConnection.d.ts +0 -63
- package/dist/types/Services/CreateTheConnectionGeneral.d.ts +0 -2
- package/dist/types/Services/DeleteConcept.d.ts +0 -2
- package/dist/types/Services/DeleteConnection.d.ts +0 -2
- package/dist/types/Services/DeleteConnectionByType.d.ts +0 -22
- package/dist/types/Services/FindConeceptsFromConnection.d.ts +0 -6
- package/dist/types/Services/FindConnectionsOfCompositionBulkInMemory.d.ts +0 -1
- package/dist/types/Services/GetComposition.d.ts +0 -205
- package/dist/types/Services/GetCompositionBulk.d.ts +0 -100
- package/dist/types/Services/GetCompositionList.d.ts +0 -7
- package/dist/types/Services/GetConceptByCharacter.d.ts +0 -2
- package/dist/types/Services/GetConnectionBetweenTwoConceptsLinker.d.ts +0 -11
- package/dist/types/Services/GetConnections.d.ts +0 -1
- package/dist/types/Services/GetDataFromIndexDb.d.ts +0 -2
- package/dist/types/Services/GetLink.d.ts +0 -3
- package/dist/types/Services/GetLinkerConnectionFromConcept.d.ts +0 -3
- package/dist/types/Services/GetRelation.d.ts +0 -3
- package/dist/types/Services/GetTheConcept.d.ts +0 -96
- package/dist/types/Services/InitializeSystem.d.ts +0 -2
- package/dist/types/Services/Local/ConvertFromLConceptToConcept.d.ts +0 -41
- package/dist/types/Services/Local/ConvertFromLConnectionToConnection.d.ts +0 -47
- package/dist/types/Services/Local/CreateConnectionBetweenTwoConceptsLocal.d.ts +0 -44
- package/dist/types/Services/Local/CreateDefaultLConcept.d.ts +0 -46
- package/dist/types/Services/Local/CreateLocalBinaryTreeFromData.d.ts +0 -34
- package/dist/types/Services/Local/CreateTheCompositionLocal.d.ts +0 -104
- package/dist/types/Services/Local/CreateTheConceptLocal.d.ts +0 -84
- package/dist/types/Services/Local/CreateTheConnectionLocal.d.ts +0 -140
- package/dist/types/Services/Local/DeleteConceptLocal.d.ts +0 -47
- package/dist/types/Services/Local/GetCompositionListLocal.d.ts +0 -37
- package/dist/types/Services/Local/GetCompositionLocal.d.ts +0 -97
- package/dist/types/Services/Local/GetConceptByCharacterLocal.d.ts +0 -56
- package/dist/types/Services/Local/GetConnectionOfTheConceptLocal.d.ts +0 -19
- package/dist/types/Services/Local/GetRelationLocal.d.ts +0 -21
- package/dist/types/Services/Local/GetTheConceptLocal.d.ts +0 -63
- package/dist/types/Services/Local/MakeTheConceptLocal.d.ts +0 -22
- package/dist/types/Services/Local/MakeTheInstanceConceptLocal.d.ts +0 -164
- package/dist/types/Services/Local/MakeTheTypeLocal.d.ts +0 -36
- package/dist/types/Services/Local/UpdateCompositionLocal.d.ts +0 -42
- package/dist/types/Services/Logs/LogEvent.d.ts +0 -1
- package/dist/types/Services/Mail.d.ts +0 -18
- package/dist/types/Services/MakeTheCharacter.d.ts +0 -2
- package/dist/types/Services/MakeTheCharacterData.d.ts +0 -2
- package/dist/types/Services/MakeTheConcept.d.ts +0 -2
- package/dist/types/Services/MakeTheInstanceConcept.d.ts +0 -15
- package/dist/types/Services/MakeTheTimestamp.d.ts +0 -1
- package/dist/types/Services/MakeTheTypeConcept.d.ts +0 -1
- package/dist/types/Services/Mqtt/publishMessage.d.ts +0 -1
- package/dist/types/Services/Search/DataIdFormat.d.ts +0 -32
- package/dist/types/Services/Search/FormatData.d.ts +0 -36
- package/dist/types/Services/Search/JustIdFormat.d.ts +0 -23
- package/dist/types/Services/Search/NewFormat.d.ts +0 -4
- package/dist/types/Services/Search/SearchLinkInternal.d.ts +0 -3
- package/dist/types/Services/Search/SearchLinkMultiple.d.ts +0 -55
- package/dist/types/Services/Search/SearchWithTypeAndLinker.d.ts +0 -82
- package/dist/types/Services/Search/orderingConnections.d.ts +0 -2
- package/dist/types/Services/Security/GetRequestHeader.d.ts +0 -6
- package/dist/types/Services/SplitStrings.d.ts +0 -1
- package/dist/types/Services/Transaction/LocalTransaction.d.ts +0 -117
- package/dist/types/Services/UpdateComposition.d.ts +0 -2
- package/dist/types/Services/Upload.d.ts +0 -34
- package/dist/types/Services/User/UserFromLocalStorage.d.ts +0 -10
- package/dist/types/Services/User/UserTranslation.d.ts +0 -3
- package/dist/types/Services/View/ViewInternalData.d.ts +0 -1
- package/dist/types/Services/assets/GetImageService.d.ts +0 -14
- package/dist/types/Services/automated/automated-concept-connection.d.ts +0 -7
- package/dist/types/Services/cacheService.d.ts +0 -1
- package/dist/types/Validator/constant.d.ts +0 -3
- package/dist/types/Validator/interface.d.ts +0 -19
- package/dist/types/Validator/utils.d.ts +0 -7
- package/dist/types/Validator/validator.d.ts +0 -37
- package/dist/types/Visualize/ConceptCircle.d.ts +0 -35
- package/dist/types/Visualize/ConceptCircleList.d.ts +0 -9
- package/dist/types/Visualize/ConnectionLine.d.ts +0 -21
- package/dist/types/Visualize/ConnectionLineList.d.ts +0 -6
- package/dist/types/Visualize/drawExistingConcepts.d.ts +0 -8
- package/dist/types/Visualize/helper.d.ts +0 -15
- package/dist/types/Widgets/BaseObserver.d.ts +0 -25
- package/dist/types/Widgets/BaseWidget.d.ts +0 -37
- package/dist/types/Widgets/BuilderSpeceficFunctions.d.ts +0 -11
- package/dist/types/Widgets/BuilderStatefulWidget.d.ts +0 -392
- package/dist/types/Widgets/CacheWidget.service.d.ts +0 -77
- package/dist/types/Widgets/NormalizeStyles.service.d.ts +0 -10
- package/dist/types/Widgets/RenderPage.service.d.ts +0 -17
- package/dist/types/Widgets/RenderWidgetLibrary.service.d.ts +0 -22
- package/dist/types/Widgets/RenderWidgetService.d.ts +0 -187
- package/dist/types/Widgets/StatefulWidget.d.ts +0 -167
- package/dist/types/Widgets/WidgetBuild.d.ts +0 -45
- package/dist/types/Widgets/WidgetCacheManager.d.ts +0 -108
- package/dist/types/Widgets/WidgetTree.d.ts +0 -61
- package/dist/types/WrapperFunctions/DepenedencyObserver.d.ts +0 -95
- package/dist/types/WrapperFunctions/GetCompositionListObservable.d.ts +0 -51
- package/dist/types/WrapperFunctions/GetCompositionObservable.d.ts +0 -35
- package/dist/types/WrapperFunctions/GetLinkListObservable.d.ts +0 -57
- package/dist/types/WrapperFunctions/GetLinkObservable.d.ts +0 -50
- package/dist/types/WrapperFunctions/QueryCacheManager.d.ts +0 -107
- package/dist/types/WrapperFunctions/RecursiveSearchObservable.d.ts +0 -55
- package/dist/types/WrapperFunctions/SchemaQueryObservable.d.ts +0 -60
- package/dist/types/WrapperFunctions/SearchLinkMultipleAllObservable.d.ts +0 -36
- package/dist/types/app.d.ts +0 -377
- package/dist/types/prototype/prototype.service.d.ts +0 -25
- package/dist/types/service-worker.d.ts +0 -1
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Retrieves a concept by ID with support for both local (virtual) and server concepts.
|
|
3
|
-
*
|
|
4
|
-
* This is the primary function for fetching concepts in offline/local mode. It intelligently
|
|
5
|
-
* handles three types of concept IDs and retrieves from appropriate sources:
|
|
6
|
-
*
|
|
7
|
-
* **ID Types Handled:**
|
|
8
|
-
* 1. **Negative IDs (Virtual/Local)**: Concepts created locally not yet synced
|
|
9
|
-
* - Stored in LocalConceptsData (IndexedDB)
|
|
10
|
-
* - Return negative IDs
|
|
11
|
-
*
|
|
12
|
-
* 2. **Synced Virtual IDs**: Originally local concepts now synced to backend
|
|
13
|
-
* - Looked up via LocalGhostIdTree (maps negative to positive IDs)
|
|
14
|
-
* - Returns positive (real) ID with ghostId reference
|
|
15
|
-
*
|
|
16
|
-
* 3. **Positive IDs (Server)**: Real backend concepts
|
|
17
|
-
* - Fetched via GetTheConcept from backend
|
|
18
|
-
* - Converted to LConcept format
|
|
19
|
-
* - May have undefined ghostId
|
|
20
|
-
*
|
|
21
|
-
* **Retrieval Strategy:**
|
|
22
|
-
* - If id < 0: Check LocalConceptsData → Check LocalGhostIdTree
|
|
23
|
-
* - If id >= 0: Fetch from backend → Convert to LConcept
|
|
24
|
-
* - Routes through service worker if enabled
|
|
25
|
-
* - Returns default empty concept if not found
|
|
26
|
-
*
|
|
27
|
-
* **Ghost ID System:**
|
|
28
|
-
* - ghostId: Original negative ID (preserved after sync)
|
|
29
|
-
* - id: Current ID (negative if local, positive if synced)
|
|
30
|
-
* - LocalGhostIdTree maintains the mapping
|
|
31
|
-
*
|
|
32
|
-
* @param id - The concept ID to retrieve. Can be:
|
|
33
|
-
* - Negative (e.g., -12345) for local-only concepts
|
|
34
|
-
* - Positive (e.g., 789) for server concepts
|
|
35
|
-
*
|
|
36
|
-
* @returns Promise resolving to a Concept object in LConcept format.
|
|
37
|
-
* Returns default concept (id=0) if not found.
|
|
38
|
-
*
|
|
39
|
-
* @example
|
|
40
|
-
* // Get a local concept (negative ID)
|
|
41
|
-
* const localConcept = await GetTheConceptLocal(-12345);
|
|
42
|
-
* console.log(localConcept.id); // -12345
|
|
43
|
-
* console.log(localConcept.characterValue); // "Draft Note"
|
|
44
|
-
*
|
|
45
|
-
* @example
|
|
46
|
-
* // Get a synced concept (originally local, now on server)
|
|
47
|
-
* const syncedConcept = await GetTheConceptLocal(-12345);
|
|
48
|
-
* console.log(syncedConcept.id); // 789 (now positive, synced)
|
|
49
|
-
* console.log(syncedConcept.ghostId); // -12345 (original ID preserved)
|
|
50
|
-
*
|
|
51
|
-
* @example
|
|
52
|
-
* // Get a server concept
|
|
53
|
-
* const serverConcept = await GetTheConceptLocal(456);
|
|
54
|
-
* console.log(serverConcept.id); // 456
|
|
55
|
-
* // Converted to LConcept format for consistency
|
|
56
|
-
*
|
|
57
|
-
* @throws Logs errors but returns default concept instead of throwing
|
|
58
|
-
*
|
|
59
|
-
* @see {@link CreateTheConceptLocal} for creating local concepts
|
|
60
|
-
* @see {@link GetTheConcept} for fetching server concepts only
|
|
61
|
-
* @see {@link convertFromConceptToLConcept} for format conversion
|
|
62
|
-
*/
|
|
63
|
-
export declare function GetTheConceptLocal(id: number): Promise<any>;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { InnerActions } from "../../app";
|
|
2
|
-
/**
|
|
3
|
-
* Gets or creates a local concept - implements get-or-create pattern.
|
|
4
|
-
*
|
|
5
|
-
* Checks LocalConceptsData for existing concept matching referent and typeId.
|
|
6
|
-
* If found, returns existing concept. If not found, creates new local concept.
|
|
7
|
-
*
|
|
8
|
-
* **Special Case**: If typeCharacter is "the", sets categoryId to 1 (system category).
|
|
9
|
-
*
|
|
10
|
-
* @param referent - The character value/name of the concept
|
|
11
|
-
* @param typeCharacter - Type name string (e.g., "the_name")
|
|
12
|
-
* @param userId - User ID creating the concept
|
|
13
|
-
* @param categoryId - Category classification ID
|
|
14
|
-
* @param typeId - Type classification ID
|
|
15
|
-
* @param actions - Action tracking for batch operations
|
|
16
|
-
* @returns Existing or newly created Concept
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* const concept = await MakeTheConceptLocal("Active", "the_status", 101, 1, 5);
|
|
20
|
-
* // Returns existing "Active" status or creates new one
|
|
21
|
-
*/
|
|
22
|
-
export default function MakeTheConceptLocal(referent: string, typeCharacter: string, userId: number, categoryId: number, typeId: number, actions?: InnerActions): Promise<any>;
|
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
import { InnerActions } from "../../Constants/general.const";
|
|
2
|
-
/**
|
|
3
|
-
* Creates or retrieves an instance concept locally - the core building block of the concept-connection system.
|
|
4
|
-
*
|
|
5
|
-
* This is THE fundamental function for creating concepts in local storage. It implements an intelligent
|
|
6
|
-
* get-or-create pattern that checks for existing concepts before creating new ones, preventing duplicates
|
|
7
|
-
* while supporting both unique instances and composition concepts.
|
|
8
|
-
*
|
|
9
|
-
* **Core Behaviors:**
|
|
10
|
-
* 1. **Composition Mode (composition=true)**: Always creates a new concept
|
|
11
|
-
* - Used for containers/objects that need unique instances
|
|
12
|
-
* - Marks concept with isComposition flag
|
|
13
|
-
* - Example: Each "Project" is unique, even with same name
|
|
14
|
-
*
|
|
15
|
-
* 2. **Instance Mode (composition=false)**: Get-or-create pattern
|
|
16
|
-
* - Checks if concept with same type and value exists
|
|
17
|
-
* - Returns existing if found (deduplication)
|
|
18
|
-
* - Creates new only if not found
|
|
19
|
-
* - Example: "Published" status concept reused across items
|
|
20
|
-
*
|
|
21
|
-
* 3. **Long Text Handling**: Values >255 characters always create new
|
|
22
|
-
* - Prevents expensive lookups on large text
|
|
23
|
-
* - Each long text gets unique concept
|
|
24
|
-
*
|
|
25
|
-
* **Type String Processing:**
|
|
26
|
-
* - **Best Practice**: Always pass type with "the_" prefix (e.g., "the_name", "the_email")
|
|
27
|
-
* - Auto-correction: If missing, "the_" is automatically added internally
|
|
28
|
-
* - "name" → "the_name" (auto-corrected)
|
|
29
|
-
* - "email" → "the_email" (auto-corrected)
|
|
30
|
-
* - "the_status" → "the_status" (already correct)
|
|
31
|
-
* - Creates type concept if it doesn't exist
|
|
32
|
-
* - **Recommendation**: Use explicit "the_" prefix for code clarity and consistency
|
|
33
|
-
*
|
|
34
|
-
* **Sync and Storage:**
|
|
35
|
-
* - Adds concept to LocalSyncData queue for backend sync
|
|
36
|
-
* - Stores in LocalConceptsData (IndexedDB)
|
|
37
|
-
* - Tracks in actions parameter for batch operations
|
|
38
|
-
* - Assigns negative ID (virtual/local)
|
|
39
|
-
*
|
|
40
|
-
* **Process Flow:**
|
|
41
|
-
* 1. Normalizes type string (adds "the_" prefix)
|
|
42
|
-
* 2. Creates/retrieves type concept via MakeTheTypeConceptLocal
|
|
43
|
-
* 3. If composition=true: Creates new concept immediately
|
|
44
|
-
* 4. If referent length >255: Creates new concept
|
|
45
|
-
* 5. If regular instance: Checks for existing by type+value
|
|
46
|
-
* 6. Returns existing or creates new
|
|
47
|
-
* 7. Attaches type information
|
|
48
|
-
* 8. Adds to sync queue
|
|
49
|
-
*
|
|
50
|
-
* @param type - The type/key of the concept. **Should follow the format "the_xyz"**.
|
|
51
|
-
* Represents what kind of data this is.
|
|
52
|
-
* Examples: "the_name", "the_email", "the_status", "the_first_name"
|
|
53
|
-
*
|
|
54
|
-
* **Note**: If you pass without "the_" prefix (e.g., "name"), the code will
|
|
55
|
-
* automatically add it internally (becomes "the_name"). However, best practice
|
|
56
|
-
* is to always include the "the_" prefix for clarity and consistency.
|
|
57
|
-
*
|
|
58
|
-
* @param referent - The actual value/content of the concept.
|
|
59
|
-
* The human-readable data (e.g., "Alice", "alice@example.com", "Active").
|
|
60
|
-
* Can be empty string for composition concepts.
|
|
61
|
-
*
|
|
62
|
-
* @param composition - Boolean flag determining creation behavior.
|
|
63
|
-
* - true: Always creates new concept (unique instances)
|
|
64
|
-
* - false: Get-or-create pattern (reuses existing)
|
|
65
|
-
* Defaults to false.
|
|
66
|
-
*
|
|
67
|
-
* @param userId - The ID of the user creating this concept. Used for ownership and permissions.
|
|
68
|
-
*
|
|
69
|
-
* @param accessId - Access control level. Typically 4 (default internal access).
|
|
70
|
-
* Controls who can view/modify this concept.
|
|
71
|
-
*
|
|
72
|
-
* @param sessionInformationId - Session identifier for tracking. Defaults to 999 (system).
|
|
73
|
-
* Used for audit logging and session management.
|
|
74
|
-
*
|
|
75
|
-
* @param referentId - Optional reference to another concept ID.
|
|
76
|
-
* Used when this concept is an instance of or refers to another concept.
|
|
77
|
-
* Defaults to 0 (no reference).
|
|
78
|
-
*
|
|
79
|
-
* @param actions - Action tracking object that accumulates all created concepts and connections.
|
|
80
|
-
* Used for batch operations, rollback, and sync management.
|
|
81
|
-
* Structure: { concepts: Concept[], connections: Connection[] }
|
|
82
|
-
*
|
|
83
|
-
* @returns Promise resolving to the created or retrieved Concept object with:
|
|
84
|
-
* - Negative ID if newly created locally
|
|
85
|
-
* - Attached type information (concept.type)
|
|
86
|
-
* - All standard concept properties
|
|
87
|
-
*
|
|
88
|
-
* @example
|
|
89
|
-
* // Create a reusable status concept (get-or-create)
|
|
90
|
-
* const status = await MakeTheInstanceConceptLocal(
|
|
91
|
-
* "the_status", // type (with "the_" prefix - best practice)
|
|
92
|
-
* "Active", // value
|
|
93
|
-
* false, // not composition - will reuse if exists
|
|
94
|
-
* 101, // userId
|
|
95
|
-
* 4, // accessId
|
|
96
|
-
* 999, // sessionId
|
|
97
|
-
* 0 // no referent
|
|
98
|
-
* );
|
|
99
|
-
* // First call creates, subsequent calls return same concept
|
|
100
|
-
*
|
|
101
|
-
* @example
|
|
102
|
-
* // Create a composition concept (always new)
|
|
103
|
-
* const project = await MakeTheInstanceConceptLocal(
|
|
104
|
-
* "the_project", // type (with "the_" prefix)
|
|
105
|
-
* "Project Alpha", // value
|
|
106
|
-
* true, // composition - always creates new
|
|
107
|
-
* 101,
|
|
108
|
-
* 4,
|
|
109
|
-
* 999,
|
|
110
|
-
* 0
|
|
111
|
-
* );
|
|
112
|
-
* // Each project is unique, even with same name
|
|
113
|
-
* console.log(project.isComposition); // true
|
|
114
|
-
*
|
|
115
|
-
* @example
|
|
116
|
-
* // Type prefix is added automatically if missing (but prefer explicit)
|
|
117
|
-
* const email = await MakeTheInstanceConceptLocal(
|
|
118
|
-
* "email", // Missing "the_" - will become "the_email" internally
|
|
119
|
-
* "alice@example.com",
|
|
120
|
-
* false,
|
|
121
|
-
* 101, 4
|
|
122
|
-
* );
|
|
123
|
-
* console.log(email.typeCharacter); // "the_email" (auto-prefixed)
|
|
124
|
-
*
|
|
125
|
-
* // RECOMMENDED: Always include "the_" prefix explicitly
|
|
126
|
-
* const emailBetter = await MakeTheInstanceConceptLocal(
|
|
127
|
-
* "the_email", // Explicit prefix - clearer and more consistent
|
|
128
|
-
* "bob@example.com",
|
|
129
|
-
* false,
|
|
130
|
-
* 101, 4
|
|
131
|
-
* );
|
|
132
|
-
*
|
|
133
|
-
* @example
|
|
134
|
-
* // Long text always creates new concept
|
|
135
|
-
* const longDescription = "Lorem ipsum...".repeat(100); // >255 chars
|
|
136
|
-
* const concept = await MakeTheInstanceConceptLocal(
|
|
137
|
-
* "the_description", // type with "the_" prefix
|
|
138
|
-
* longDescription,
|
|
139
|
-
* false, // Even with false, creates new due to length
|
|
140
|
-
* 101, 4
|
|
141
|
-
* );
|
|
142
|
-
*
|
|
143
|
-
* @example
|
|
144
|
-
* // Track actions for batch operations
|
|
145
|
-
* const actions = { concepts: [], connections: [] };
|
|
146
|
-
* await MakeTheInstanceConceptLocal("the_name", "Alice", false, 101, 4, 999, 0, actions);
|
|
147
|
-
* await MakeTheInstanceConceptLocal("the_email", "alice@ex.com", false, 101, 4, 999, 0, actions);
|
|
148
|
-
* console.log(actions.concepts.length); // 2 (plus any type concepts created)
|
|
149
|
-
*
|
|
150
|
-
* @example
|
|
151
|
-
* // Deduplication in action
|
|
152
|
-
* const status1 = await MakeTheInstanceConceptLocal("the_status", "Published", false, 101, 4);
|
|
153
|
-
* const status2 = await MakeTheInstanceConceptLocal("the_status", "Published", false, 101, 4);
|
|
154
|
-
* console.log(status1.id === status2.id); // true - same concept reused
|
|
155
|
-
*
|
|
156
|
-
* @throws Logs errors and re-throws for handling by caller.
|
|
157
|
-
* Common issues: Type concept creation failures, IndexedDB errors.
|
|
158
|
-
*
|
|
159
|
-
* @see {@link CreateTheConceptLocal} for the underlying creation function
|
|
160
|
-
* @see {@link MakeTheTypeConceptLocal} for type concept creation/retrieval
|
|
161
|
-
* @see {@link LocalConceptsData.GetConceptByCharacterAndTypeLocal} for existence check
|
|
162
|
-
* @see {@link LocalSyncData.AddConcept} for sync queue management
|
|
163
|
-
*/
|
|
164
|
-
export declare function MakeTheInstanceConceptLocal(type: string, referent: string, composition: boolean | undefined, userId: number, accessId: number, sessionInformationId?: number, referentId?: number, actions?: InnerActions): Promise<any>;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { Concept } from "../../DataStructures/Concept";
|
|
2
|
-
import { InnerActions } from "../../Constants/general.const";
|
|
3
|
-
/**
|
|
4
|
-
* Creates or retrieves a type concept locally - handles hierarchical type system.
|
|
5
|
-
*
|
|
6
|
-
* Type concepts are placeholders/templates (e.g., "the_first_name", "the_email") that define
|
|
7
|
-
* what kind of data a concept represents. They have no actual value themselves.
|
|
8
|
-
*
|
|
9
|
-
* **Hierarchical Processing (Complex Logic)**:
|
|
10
|
-
* - Single word (e.g., "status"): Creates simple type concept with typeId=51
|
|
11
|
-
* - Compound words (e.g., "the_person_email"): Splits into parts and creates hierarchy:
|
|
12
|
-
* 1. Creates category concept from first part ("the_person")
|
|
13
|
-
* 2. Creates type concept from second part ("email")
|
|
14
|
-
* 3. Creates final concept with category and type linked
|
|
15
|
-
* **Uses recursion** to build multi-level type hierarchies
|
|
16
|
-
*
|
|
17
|
-
* Always checks for existing type concept before creating to prevent duplicates.
|
|
18
|
-
*
|
|
19
|
-
* @param typeString - The type name to create (e.g., "the_status", "the_person_email")
|
|
20
|
-
* @param sessionId - Session identifier (typically 999)
|
|
21
|
-
* @param sessionUserId - Session user ID (typically 999, not used)
|
|
22
|
-
* @param userId - User creating the type concept
|
|
23
|
-
* @param actions - Action tracking for batch operations
|
|
24
|
-
* @returns Type Concept (existing or newly created)
|
|
25
|
-
*
|
|
26
|
-
* @example
|
|
27
|
-
* // Simple type
|
|
28
|
-
* const statusType = await MakeTheTypeConceptLocal("the_status", 999, 999, 101);
|
|
29
|
-
* // Creates: "the_status" type concept
|
|
30
|
-
*
|
|
31
|
-
* @example
|
|
32
|
-
* // Hierarchical type (recursive processing)
|
|
33
|
-
* const emailType = await MakeTheTypeConceptLocal("the_person_email", 999, 999, 101);
|
|
34
|
-
* // Creates: "the_person" (category) + "email" (type) + "the_person_email" (combined)
|
|
35
|
-
*/
|
|
36
|
-
export declare function MakeTheTypeConceptLocal(typeString: string, sessionId: number, sessionUserId: number, userId: number, actions?: InnerActions): Promise<Concept>;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { PatcherStructure } from "../../DataStructures/PatcherStructure";
|
|
2
|
-
import { InnerActions } from "../../app";
|
|
3
|
-
/**
|
|
4
|
-
* Updates/patches a composition in local storage with new or modified properties.
|
|
5
|
-
*
|
|
6
|
-
* **Complex Patching Logic** (197 lines):
|
|
7
|
-
* 1. Fetches latest composition data from backend (all connections and concepts)
|
|
8
|
-
* 2. Iterates through patchObject properties to add/update
|
|
9
|
-
* 3. For each property:
|
|
10
|
-
* - If value is object/array: Creates composition concept and nested composition
|
|
11
|
-
* - If value is primitive: Creates instance concept with value
|
|
12
|
-
* - Checks if concept type already exists in composition
|
|
13
|
-
* - If exists: Marks old connections for deletion (replaces old value)
|
|
14
|
-
* - If new: Simply adds new connection
|
|
15
|
-
* 4. Creates connections between parent composition and new/updated concepts
|
|
16
|
-
* 5. Deletes old connections (cleanup)
|
|
17
|
-
* 6. Syncs changes to backend
|
|
18
|
-
*
|
|
19
|
-
* **Use Case**: Updating fields in an existing composition without recreating it entirely.
|
|
20
|
-
*
|
|
21
|
-
* @param patcherStructure - Object containing:
|
|
22
|
-
* - compositionId: The composition to update
|
|
23
|
-
* - ofTheCompositionId: Optional parent composition for nested updates
|
|
24
|
-
* - patchObject: Object with key-value pairs to add/update
|
|
25
|
-
* - userId, sessionId, accessId: User context
|
|
26
|
-
* @param actions - Action tracking for batch operations and rollback
|
|
27
|
-
*
|
|
28
|
-
* @example
|
|
29
|
-
* // Update a person's email and phone
|
|
30
|
-
* await UpdateCompositionLocal({
|
|
31
|
-
* compositionId: personId,
|
|
32
|
-
* patchObject: {
|
|
33
|
-
* the_email: "newemail@example.com",
|
|
34
|
-
* the_phone: "555-1234"
|
|
35
|
-
* },
|
|
36
|
-
* userId: 101,
|
|
37
|
-
* sessionId: 999,
|
|
38
|
-
* accessId: 4
|
|
39
|
-
* });
|
|
40
|
-
* // Old email connection deleted, new email connection created
|
|
41
|
-
*/
|
|
42
|
-
export declare function UpdateCompositionLocal(patcherStructure: PatcherStructure, actions?: InnerActions): Promise<any>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function LogEvent(EventName: string, EventDescription: string, event: any): void;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export interface EmailBody {
|
|
2
|
-
toAddress: string;
|
|
3
|
-
heading: string;
|
|
4
|
-
body?: string;
|
|
5
|
-
attachments?: Array<string>;
|
|
6
|
-
}
|
|
7
|
-
export interface BulkEmailBody extends Omit<EmailBody, 'toAddress'> {
|
|
8
|
-
toAddress?: string;
|
|
9
|
-
ccAddresses: Array<string>;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Method to send Email to user
|
|
13
|
-
* @param body FormData | EmailBody
|
|
14
|
-
* @param token string
|
|
15
|
-
* @param bulk boolean
|
|
16
|
-
* @returns JSON | string | null
|
|
17
|
-
*/
|
|
18
|
-
export declare const sendEmail: (body: FormData | EmailBody | BulkEmailBody, token: string, bulk?: boolean) => Promise<any>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This is the basic function of the concept connection system. This function let's you create a concept within the constraints of the
|
|
3
|
-
* concept connection system. This function is the building block of the concept connection system.
|
|
4
|
-
* @param type this is the type of the concept. You can also think of this as the key of concept. first_name, last_name etc.
|
|
5
|
-
* @param referent the actual value of the concept. The actual name of value of the concept.
|
|
6
|
-
* @param composition this is a boolean that defines if the concept is a composition or not. If this is a composition then other things are also
|
|
7
|
-
* connected internally with this concept. If composition is true then always a new concept is created otherwise it checks if the concept already exists
|
|
8
|
-
* and creates only in the case that the concept does not already exists with its type and value as its unique identifier.
|
|
9
|
-
* @param userId the userId of the creator.
|
|
10
|
-
* @param passedAccessId this is the accessId of the creator. By default should be 4.
|
|
11
|
-
* @param passedSessionId this is the session that is created by the system.
|
|
12
|
-
* @param referentId In case we need this concept to refer to any other concept.
|
|
13
|
-
* @returns a concept which is either newly created or an older concept that already exists.
|
|
14
|
-
*/
|
|
15
|
-
export default function MakeTheInstanceConcept(type: string, referent: string, composition: boolean | undefined, userId: number, passedAccessId?: number, passedSessionId?: number, referentId?: number): Promise<any>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function MakeTheTimestamp(type: string, referent: string, userId: number, accessId?: number, sessionInformationId?: number): Promise<any>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function MakeTheTypeConcept(typeString: string, sessionId: number, sessionUserId: number, userId: number): Promise<any>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function publishMessage(topic: string, message: any): void;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { Connection } from "../../app";
|
|
2
|
-
/**
|
|
3
|
-
* ## Format DATA-ID ##
|
|
4
|
-
* this function takes in connections and creates a single level objects so that all the data are added to its object/ array.
|
|
5
|
-
* This is then passed on further for stiching.
|
|
6
|
-
* @param connections
|
|
7
|
-
* @param compositionData
|
|
8
|
-
* @param reverse
|
|
9
|
-
* @returns
|
|
10
|
-
*/
|
|
11
|
-
export declare function FormatFunctionDataForData(connections: Connection[], compositionData: any[], reverse?: number[]): Promise<any[]>;
|
|
12
|
-
/**
|
|
13
|
-
* ############ Format is data-id and is used for list. ############
|
|
14
|
-
* This is helpful in building a format that has multiple mainCompositions i.e. in the context of the list
|
|
15
|
-
* The list format is helpful because you do not have to go over each individual query.
|
|
16
|
-
* @param connections the type connections that need (external connections) to be passed
|
|
17
|
-
* @param compositionData this is a dictionary type of format that has all the build compositions {id: { actual data}}
|
|
18
|
-
* @param mainComposition this is list of ids of the main composition that builds the tree
|
|
19
|
-
* @param reverse this is the list of connections ids that needs to go to the reverse direction (to---->from)
|
|
20
|
-
* @returns
|
|
21
|
-
*/
|
|
22
|
-
export declare function FormatFromConnectionsAlteredArrayExternal(connections: Connection[], compositionData: any[], newCompositionData: any, mainComposition: number[], reverse: number[] | undefined, CountDictionary: any[]): Promise<any[]>;
|
|
23
|
-
/**
|
|
24
|
-
* ## Format DATA-ID ##
|
|
25
|
-
* this function takes in connections and creates a single level objects so that all the data are added to its object/ array.
|
|
26
|
-
* This is then passed on further for stiching.
|
|
27
|
-
* @param connections
|
|
28
|
-
* @param compositionData
|
|
29
|
-
* @param reverse
|
|
30
|
-
* @returns
|
|
31
|
-
*/
|
|
32
|
-
export declare function FormatFunctionData(connections: Connection[], compositionData: any[], reverse?: number[]): Promise<any[]>;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { Connection } from "../../app";
|
|
2
|
-
/**
|
|
3
|
-
* ######### Format is normal ######### used for listing. This only provides type connections.
|
|
4
|
-
* This is helpful in building a format that has multiple mainCompositions i.e. in the context of the list
|
|
5
|
-
* The list format is helpful because you do not have to go over each individual query.
|
|
6
|
-
* @param connections the type connections that need (external connections) to be passed
|
|
7
|
-
* @param compositionData this is a dictionary type of format that has all the build compositions {id: { actual data}}
|
|
8
|
-
* @param mainComposition this is list of ids of the main composition that builds the tree
|
|
9
|
-
* @param reverse this is the list of connections ids that needs to go to the reverse direction (to---->from)
|
|
10
|
-
* @returns
|
|
11
|
-
*/
|
|
12
|
-
export declare function FormatConceptsAndConnectionsNormalList(connections: Connection[], compositionData: any[], mainComposition: number[], newCompositionData: any, reverse?: number[]): Promise<any[]>;
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* ## Format Normal ##
|
|
16
|
-
* This function takes in the connections and then converts the connections to the single level objects for further processing
|
|
17
|
-
* This function is the builder of the arrays/ objects from the connections.
|
|
18
|
-
*/
|
|
19
|
-
export declare function formatFunction(connections: Connection[], compositionData: any, reverse: number[]): Promise<any>;
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* ## Format Normal ##
|
|
23
|
-
* This function takes in the connections and then converts the connections to the single level objects for further processing
|
|
24
|
-
* This function is the builder of the arrays/ objects from the connections.
|
|
25
|
-
*/
|
|
26
|
-
export declare function formatFunctionForData(connections: Connection[], compositionData: any, reverse: number[]): Promise<any>;
|
|
27
|
-
/**
|
|
28
|
-
* ## Format DATA-ID ##
|
|
29
|
-
* this function takes in connections and creates a single level objects so that all the data are added to its object/ array.
|
|
30
|
-
* This is then passed on further for stiching.
|
|
31
|
-
* @param connections
|
|
32
|
-
* @param compositionData
|
|
33
|
-
* @param reverse
|
|
34
|
-
* @returns
|
|
35
|
-
*/
|
|
36
|
-
export declare function FormatFunctionData(connections: Connection[], compositionData: any[], reverse?: number[]): Promise<any[]>;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Connection } from "../../app";
|
|
2
|
-
/**
|
|
3
|
-
* ## Format Just-Id ##
|
|
4
|
-
* this function takes in connections and creates a single level objects so that all the data are added to its object/ array.
|
|
5
|
-
* This is then passed on further for stiching.
|
|
6
|
-
* @param connections
|
|
7
|
-
* @param compositionData
|
|
8
|
-
* @param reverse
|
|
9
|
-
* @returns
|
|
10
|
-
*/
|
|
11
|
-
export declare function FormatFunctionDataForDataJustId(connections: Connection[], compositionData: any[], reverse?: number[]): Promise<any[]>;
|
|
12
|
-
/**
|
|
13
|
-
* ############ Format is Just Id and is used for list. ############
|
|
14
|
-
* This is helpful in building a format that has multiple mainCompositions i.e. in the context of the list
|
|
15
|
-
* The list format is helpful because you do not have to go over each individual query.
|
|
16
|
-
* @param connections the type connections that need (external connections) to be passed
|
|
17
|
-
* @param compositionData this is a dictionary type of format that has all the build compositions {id: { actual data}}
|
|
18
|
-
* @param mainComposition this is list of ids of the main composition that builds the tree
|
|
19
|
-
* @param reverse this is the list of connections ids that needs to go to the reverse direction (to---->from)
|
|
20
|
-
* @returns
|
|
21
|
-
*/
|
|
22
|
-
export declare function FormatFromConnectionsAlteredArrayExternalJustId(connections: Connection[], compositionData: any[], mainComposition: number[], reverse: number[] | undefined, CountDictionary: any[]): Promise<any[]>;
|
|
23
|
-
export declare function AddCount(ofTheConceptId: number, CountDictionary: any, newData: any): void;
|
|
@@ -1,4 +0,0 @@
|
|
|
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[]>;
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { SearchQuery } from "../../DataStructures/SearchQuery";
|
|
2
|
-
import { Connection } from "../../app";
|
|
3
|
-
export declare function SearchLinkMultipleAll(searchQuery: SearchQuery[], token?: string, caller?: any, format?: number): Promise<any>;
|
|
4
|
-
/**
|
|
5
|
-
* ######### This layer builds the data. Format is dataid ##########
|
|
6
|
-
* @param linkers list of ids that help us
|
|
7
|
-
* @param conceptIds this is all the concept ids that need to be composited
|
|
8
|
-
* @param connections these are the internal connections of the compositions that help in creating individual compositions
|
|
9
|
-
* @param reverse this is the list of connection ids that need to show reverse connections(to->from)
|
|
10
|
-
* @param mainCompositionId this is the main centre point of this data.
|
|
11
|
-
* @returns
|
|
12
|
-
*/
|
|
13
|
-
export declare function DataIdBuildLayer(linkers: number[], conceptIds: number[], connections: number[], reverse: number[], mainCompositionId: number, searchQuery: SearchQuery, format?: number): Promise<any>;
|
|
14
|
-
/**
|
|
15
|
-
* ## Format is DATAID ##
|
|
16
|
-
* This is altered format and is different from others because it passes all the connections prebuilt/prefetched
|
|
17
|
-
* This will not let the connections to be again fetched from the memory.
|
|
18
|
-
* @param connections the type connections that need (external connections) to be passed
|
|
19
|
-
* @param compositionData this is a dictionary type of format that has all the build compositions {id: { actual data}}
|
|
20
|
-
* @param mainComposition this is the id of the main composition that builds the tree
|
|
21
|
-
* @param reverse this is the list of connections ids that needs to go to the reverse direction (to---->from)
|
|
22
|
-
* @returns
|
|
23
|
-
*/
|
|
24
|
-
export declare function FormatFromConnectionsAltered(connections: Connection[], compositionData: any[], mainComposition: number, reverse?: number[]): Promise<any>;
|
|
25
|
-
/**
|
|
26
|
-
* ######### Format is normal ######### used for listing.
|
|
27
|
-
* This is helpful in building a format that has multiple mainCompositions i.e. in the context of the list
|
|
28
|
-
* The list format is helpful because you do not have to go over each individual query.
|
|
29
|
-
* @param connections the type connections that need (external connections) to be passed
|
|
30
|
-
* @param compositionData this is a dictionary type of format that has all the build compositions {id: { actual data}}
|
|
31
|
-
* @param mainComposition this is list of ids of the main composition that builds the tree
|
|
32
|
-
* @param reverse this is the list of connections ids that needs to go to the reverse direction (to---->from)
|
|
33
|
-
* @returns
|
|
34
|
-
*/
|
|
35
|
-
export declare function FormatConceptsAndConnections(connections: Connection[], compositionData: any[], mainComposition: number[], reverse?: number[]): Promise<any[]>;
|
|
36
|
-
/**
|
|
37
|
-
* ############ Format is data-id and is used for list. ############
|
|
38
|
-
* This is helpful in building a format that has multiple mainCompositions i.e. in the context of the list
|
|
39
|
-
* The list format is helpful because you do not have to go over each individual query.
|
|
40
|
-
* @param connections the type connections that need (external connections) to be passed
|
|
41
|
-
* @param compositionData this is a dictionary type of format that has all the build compositions {id: { actual data}}
|
|
42
|
-
* @param mainComposition this is list of ids of the main composition that builds the tree
|
|
43
|
-
* @param reverse this is the list of connections ids that needs to go to the reverse direction (to---->from)
|
|
44
|
-
* @returns
|
|
45
|
-
*/
|
|
46
|
-
export declare function FormatFromConnectionsAlteredArray(connections: Connection[], compositionData: any[], conceptIds: number[], mainComposition: number[], reverse?: number[]): Promise<any[]>;
|
|
47
|
-
/**
|
|
48
|
-
* ########## Format works with JUSTDATA / NORMAL ########### used for single origin concept
|
|
49
|
-
* @param linkers this is the list of linkers that
|
|
50
|
-
* @param compositionData
|
|
51
|
-
* @param mainComposition
|
|
52
|
-
* @param reverse list of connection ids that need to show reverse conneciton.
|
|
53
|
-
* @returns
|
|
54
|
-
*/
|
|
55
|
-
export declare function FormatFromConnections(linkers: number[], compositionData: any[], mainComposition: number, reverse?: number[]): Promise<any>;
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { SearchStructure, SearchQuery } from '../../app';
|
|
2
|
-
import { CountInfo } from '../../DataStructures/Count/CountInfo';
|
|
3
|
-
/**
|
|
4
|
-
* This function will help you search a concept by their type and also to query inside of it.
|
|
5
|
-
* Put the number of compositions you want to get in the searchStructure which can be set by inpage and page
|
|
6
|
-
* Then the type should be set in searchQuery for the compositionName.
|
|
7
|
-
* Inside the searchQuery array this you can set the full linker / listLinker in the searchQuery.
|
|
8
|
-
* This will give the id of the structures.
|
|
9
|
-
*/
|
|
10
|
-
export declare function SearchWithTypeAndLinkerDataId(searchStructure: SearchStructure, searchQuery: SearchQuery[], token?: string): Promise<any>;
|
|
11
|
-
/**
|
|
12
|
-
* This function will help you search a concept by their type and also to query inside of it.
|
|
13
|
-
* Put the number of compositions you want to get in the searchStructure which can be set by inpage and page
|
|
14
|
-
* Then the type should be set in searchQuery for the compositionName.
|
|
15
|
-
* Inside the searchQuery array this you can set the full linker / listLinker in the searchQuery.
|
|
16
|
-
* This will not give the id of the structures.
|
|
17
|
-
*/
|
|
18
|
-
export declare function SearchWithTypeAndLinker(searchStructure: SearchStructure, searchQuery: SearchQuery[], token?: string): Promise<any>;
|
|
19
|
-
/**
|
|
20
|
-
* ## Format dataid ##
|
|
21
|
-
* @param linkers
|
|
22
|
-
* @param conceptIds
|
|
23
|
-
* @param connections
|
|
24
|
-
* @param mainCompositionIds
|
|
25
|
-
* @param reverse
|
|
26
|
-
* @returns
|
|
27
|
-
*/
|
|
28
|
-
export declare function formatDataArrayDataId(linkers: number[], conceptIds: number[], connections: number[], mainCompositionIds: number[], reverse: number[]): Promise<any>;
|
|
29
|
-
/**
|
|
30
|
-
* ## Format Normal ##
|
|
31
|
-
* @param linkers
|
|
32
|
-
* @param conceptIds
|
|
33
|
-
* @param connections
|
|
34
|
-
* @param mainCompositionIds
|
|
35
|
-
* @param reverse
|
|
36
|
-
* @returns
|
|
37
|
-
*/
|
|
38
|
-
export declare function formatDataArrayNormal(linkers: number[], conceptIds: number[], connections: number[], mainCompositionIds: number[], reverse: number[]): Promise<any>;
|
|
39
|
-
/**
|
|
40
|
-
* ## Format Normal ##
|
|
41
|
-
* @param linkers
|
|
42
|
-
* @param conceptIds
|
|
43
|
-
* @param connections
|
|
44
|
-
* @param mainCompositionIds
|
|
45
|
-
* @param reverse
|
|
46
|
-
* @returns
|
|
47
|
-
*/
|
|
48
|
-
export declare function formatLinkersNormal(linkers: number[], conceptIds: number[], connections: number[], mainCompositionIds: number[], reverse: number[]): Promise<any>;
|
|
49
|
-
/**
|
|
50
|
-
* ## Format Normal ##
|
|
51
|
-
* This function fetches all the connections and then converts all the connections to the single level connections
|
|
52
|
-
* Then those single level objects are then stiched together to create a complex json/ array.
|
|
53
|
-
* @param linkers
|
|
54
|
-
* @param conceptIds
|
|
55
|
-
* @param mainCompositionIds
|
|
56
|
-
* @param reverse
|
|
57
|
-
* @returns
|
|
58
|
-
*/
|
|
59
|
-
export declare function formatConnections(linkers: number[], conceptIds: number[], mainCompositionIds: number[], reverse: number[], countInfos: CountInfo[]): Promise<any>;
|
|
60
|
-
/**
|
|
61
|
-
* ## Format JustId ##
|
|
62
|
-
* This function fetches all the connections and then converts all the connections to the single level connections
|
|
63
|
-
* Then those single level objects are then stiched together to create a complex json/ array.
|
|
64
|
-
* @param linkers
|
|
65
|
-
* @param conceptIds
|
|
66
|
-
* @param mainCompositionIds
|
|
67
|
-
* @param reverse
|
|
68
|
-
* @returns
|
|
69
|
-
*/
|
|
70
|
-
export declare function formatConnectionsJustId(linkers: number[], conceptIds: number[], mainCompositionIds: number[], reverse: number[], countInfos: CountInfo[], order?: string): Promise<any>;
|
|
71
|
-
/**
|
|
72
|
-
* ## Format DATA-ID ##
|
|
73
|
-
* This function fetches all the connections and then converts all the connections to the single level connections
|
|
74
|
-
* Then those single level objects are then stiched together to create a complex json/ array.
|
|
75
|
-
* @param linkers
|
|
76
|
-
* @param conceptIds
|
|
77
|
-
* @param mainCompositionIds
|
|
78
|
-
* @param reverse
|
|
79
|
-
* @returns
|
|
80
|
-
*/
|
|
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>;
|