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,51 +0,0 @@
|
|
|
1
|
-
import { DependencyObserver } from "./DepenedencyObserver";
|
|
2
|
-
/**
|
|
3
|
-
* Observable wrapper for retrieving a paginated list of compositions by type with automatic updates.
|
|
4
|
-
*/
|
|
5
|
-
export declare class GetCompositionListObservable extends DependencyObserver {
|
|
6
|
-
/** The composition type character name */
|
|
7
|
-
compositionName: string;
|
|
8
|
-
/** The user ID who owns the compositions */
|
|
9
|
-
userId: number;
|
|
10
|
-
/** Number of items per page */
|
|
11
|
-
inpage: number;
|
|
12
|
-
/** Current page number */
|
|
13
|
-
page: number;
|
|
14
|
-
/** List of composition data */
|
|
15
|
-
data: any;
|
|
16
|
-
/** Starting page index */
|
|
17
|
-
startPage: number;
|
|
18
|
-
/**
|
|
19
|
-
* Creates a new composition list observable.
|
|
20
|
-
* @param compositionName - The composition type name
|
|
21
|
-
* @param userId - The user ID who owns the compositions
|
|
22
|
-
* @param inpage - Number of items per page
|
|
23
|
-
* @param page - Page number (1-indexed)
|
|
24
|
-
* @param format - Output format (JUSTDATA, DATAID, NORMAL)
|
|
25
|
-
*/
|
|
26
|
-
constructor(compositionName: string, userId: number, inpage: number, page: number, format: number);
|
|
27
|
-
/**
|
|
28
|
-
* Fetches paginated composition list and sets up change listeners.
|
|
29
|
-
* @returns Array of formatted composition data
|
|
30
|
-
*/
|
|
31
|
-
bind(): Promise<any>;
|
|
32
|
-
/**
|
|
33
|
-
* Builds the list of compositions in the specified format.
|
|
34
|
-
* @returns Array of formatted composition data
|
|
35
|
-
*/
|
|
36
|
-
build(): Promise<any>;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Creates an observable that tracks a paginated list of compositions and updates subscribers when they change.
|
|
40
|
-
* @param compositionName - The composition type name
|
|
41
|
-
* @param userId - The user ID who owns the compositions
|
|
42
|
-
* @param inpage - Number of items per page
|
|
43
|
-
* @param page - Page number (1-indexed)
|
|
44
|
-
* @param format - Output format (JUSTDATA, DATAID, NORMAL)
|
|
45
|
-
* @returns Observable instance for the composition list
|
|
46
|
-
*
|
|
47
|
-
* @example
|
|
48
|
-
* const observer = GetCompositionListListener("BlogPost", 123, 10, 1, JUSTDATA);
|
|
49
|
-
* observer.subscribe((data) => console.log(data));
|
|
50
|
-
*/
|
|
51
|
-
export declare function GetCompositionListListener(compositionName: string, userId: number, inpage: number, page: number, format?: number): GetCompositionListObservable;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { DependencyObserver } from "./DepenedencyObserver";
|
|
2
|
-
/**
|
|
3
|
-
* Observable wrapper for retrieving a composition with automatic updates when the composition changes.
|
|
4
|
-
*/
|
|
5
|
-
export declare class GetCompositionObservable extends DependencyObserver {
|
|
6
|
-
/** The composition ID to observe */
|
|
7
|
-
id: number;
|
|
8
|
-
/**
|
|
9
|
-
* Creates a new composition observable.
|
|
10
|
-
* @param id - The composition concept ID
|
|
11
|
-
* @param format - Output format (JUSTDATA, DATAID, NORMAL)
|
|
12
|
-
*/
|
|
13
|
-
constructor(id: number, format?: number);
|
|
14
|
-
/**
|
|
15
|
-
* Fetches composition data and sets up change listeners.
|
|
16
|
-
* @returns The formatted composition data
|
|
17
|
-
*/
|
|
18
|
-
bind(): Promise<any>;
|
|
19
|
-
/**
|
|
20
|
-
* Builds the composition data in the specified format.
|
|
21
|
-
* @returns The formatted composition data
|
|
22
|
-
*/
|
|
23
|
-
build(): Promise<any>;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Creates an observable that tracks a composition and updates subscribers when it changes.
|
|
27
|
-
* @param id - The composition concept ID to observe
|
|
28
|
-
* @param format - Output format (JUSTDATA, DATAID, NORMAL)
|
|
29
|
-
* @returns Observable instance for the composition
|
|
30
|
-
*
|
|
31
|
-
* @example
|
|
32
|
-
* const observer = GetCompositionListener(123, JUSTDATA);
|
|
33
|
-
* observer.subscribe((data) => console.log(data));
|
|
34
|
-
*/
|
|
35
|
-
export declare function GetCompositionListener(id: number, format?: number): GetCompositionObservable;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { SearchQuery, SearchStructure } from "../app";
|
|
2
|
-
import { DependencyObserver } from "./DepenedencyObserver";
|
|
3
|
-
/**
|
|
4
|
-
* Observable wrapper for searching linked concepts with complex query structures and automatic updates.
|
|
5
|
-
*/
|
|
6
|
-
export declare class GetLinkListObservable extends DependencyObserver {
|
|
7
|
-
/** Array of search query conditions */
|
|
8
|
-
searchQuery: SearchQuery[];
|
|
9
|
-
/** Search structure defining composition and linker types */
|
|
10
|
-
searchStructure: SearchStructure;
|
|
11
|
-
/** Output format */
|
|
12
|
-
format: number;
|
|
13
|
-
/** List of main composition IDs */
|
|
14
|
-
mainCompositionIds: number[];
|
|
15
|
-
/** Character value of the search composition */
|
|
16
|
-
searchCharacter: string;
|
|
17
|
-
/** Authentication token */
|
|
18
|
-
token: string;
|
|
19
|
-
/**
|
|
20
|
-
* Creates a new link list observable.
|
|
21
|
-
* @param searchStructure - Defines composition and linker types for the search
|
|
22
|
-
* @param searchQuery - Array of query conditions to filter results
|
|
23
|
-
* @param token - Authentication token
|
|
24
|
-
* @param format - Output format (DATAID, NORMAL)
|
|
25
|
-
*/
|
|
26
|
-
constructor(searchStructure: SearchStructure, searchQuery: SearchQuery[], token: string, format?: number);
|
|
27
|
-
/**
|
|
28
|
-
* Overrides base method to handle new compositions of the searched type being created.
|
|
29
|
-
* @param id - The type concept ID to track
|
|
30
|
-
*/
|
|
31
|
-
listenToEventType(id: number): void;
|
|
32
|
-
/**
|
|
33
|
-
* Executes the search query and sets up change listeners.
|
|
34
|
-
* @returns Array of formatted search results
|
|
35
|
-
*/
|
|
36
|
-
bind(): Promise<any>;
|
|
37
|
-
/**
|
|
38
|
-
* Builds the search results in the specified format.
|
|
39
|
-
* @returns Array of formatted search results
|
|
40
|
-
*/
|
|
41
|
-
build(): Promise<any>;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Creates an observable that tracks search results with complex query conditions and updates subscribers when results change.
|
|
45
|
-
* @param searchStructure - Defines composition and linker types for the search
|
|
46
|
-
* @param searchQuery - Array of query conditions to filter results
|
|
47
|
-
* @param token - Authentication token
|
|
48
|
-
* @param format - Output format (DATAID, NORMAL)
|
|
49
|
-
* @returns Observable instance for the search results
|
|
50
|
-
*
|
|
51
|
-
* @example
|
|
52
|
-
* const structure = { composition: "BlogPost", linker: ["Author", "Category"] };
|
|
53
|
-
* const queries = [{ type: "BlogPost", searchField: "title", searchText: "tutorial" }];
|
|
54
|
-
* const observer = GetLinkListListener(structure, queries, token, DATAID);
|
|
55
|
-
* observer.subscribe((results) => console.log(results));
|
|
56
|
-
*/
|
|
57
|
-
export declare function GetLinkListListener(searchStructure: SearchStructure, searchQuery: SearchQuery[], token: string, format?: number): GetLinkListObservable;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { Connection } from "../app";
|
|
2
|
-
import { DependencyObserver } from "./DepenedencyObserver";
|
|
3
|
-
/**
|
|
4
|
-
* Observable wrapper for retrieving linked concepts from a source concept with automatic updates.
|
|
5
|
-
*/
|
|
6
|
-
export declare class GetLinkObservable extends DependencyObserver {
|
|
7
|
-
/** The linker type name defining the relationship */
|
|
8
|
-
linker: string;
|
|
9
|
-
/** Number of items per page */
|
|
10
|
-
inpage: number;
|
|
11
|
-
/** Current page number */
|
|
12
|
-
page: number;
|
|
13
|
-
/** List of connection objects */
|
|
14
|
-
connections: Connection[];
|
|
15
|
-
/** Array of linked composition data */
|
|
16
|
-
data: any;
|
|
17
|
-
/**
|
|
18
|
-
* Creates a new link observable.
|
|
19
|
-
* @param id - The source concept ID whose links to retrieve
|
|
20
|
-
* @param linker - The linker type name defining the relationship
|
|
21
|
-
* @param inpage - Number of items per page
|
|
22
|
-
* @param page - Page number (1-indexed)
|
|
23
|
-
* @param format - Output format (NORMAL, DATAID, JUSTDATA, DATAIDDATE)
|
|
24
|
-
*/
|
|
25
|
-
constructor(id: number, linker: string, inpage: number, page: number, format: number);
|
|
26
|
-
/**
|
|
27
|
-
* Fetches linked concepts and sets up change listeners.
|
|
28
|
-
* @returns Array of linked composition data
|
|
29
|
-
*/
|
|
30
|
-
bind(): Promise<any>;
|
|
31
|
-
/**
|
|
32
|
-
* Builds the array of linked compositions in the specified format.
|
|
33
|
-
* @returns Array of formatted linked composition data
|
|
34
|
-
*/
|
|
35
|
-
build(): Promise<any>;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Creates an observable that tracks linked concepts and updates subscribers when links change.
|
|
39
|
-
* @param id - The source concept ID whose links to retrieve
|
|
40
|
-
* @param linker - The linker type name defining the relationship
|
|
41
|
-
* @param inpage - Number of items per page
|
|
42
|
-
* @param page - Page number (1-indexed)
|
|
43
|
-
* @param format - Output format (NORMAL, DATAID, JUSTDATA, DATAIDDATE)
|
|
44
|
-
* @returns Observable instance for the linked concepts
|
|
45
|
-
*
|
|
46
|
-
* @example
|
|
47
|
-
* const observer = GetLinkListener(123, "Author", 10, 1, NORMAL);
|
|
48
|
-
* observer.subscribe((linkedData) => console.log(linkedData));
|
|
49
|
-
*/
|
|
50
|
-
export declare function GetLinkListener(id: number, linker: string, inpage: number, page: number, format?: number): GetLinkObservable;
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* QueryCacheManager — In-memory cache with IndexedDB persistence for freeschema query results.
|
|
3
|
-
*
|
|
4
|
-
* Architecture:
|
|
5
|
-
* - **Reads** (`get`) are synchronous from an in-memory Map — no async overhead.
|
|
6
|
-
* - **Writes** (`set`) update the Map immediately, then persist to IndexedDB
|
|
7
|
-
* in the background (fire-and-forget). Also dispatches a CustomEvent so
|
|
8
|
-
* active subscribers (SchemaQueryObservable) can re-render with fresh data.
|
|
9
|
-
* - **On startup**, `init()` loads all persisted query results from IndexedDB
|
|
10
|
-
* into the Map so cached data is available from the very first read.
|
|
11
|
-
*
|
|
12
|
-
* This gives us the speed of in-memory access with the durability of IndexedDB
|
|
13
|
-
* (no 5 MB localStorage limit, survives page reloads).
|
|
14
|
-
*
|
|
15
|
-
* The stale-while-revalidate flow in FreeschemaQueryApi:
|
|
16
|
-
* 1. `get(hash)` returns cached data synchronously from memory
|
|
17
|
-
* 2. Caller returns cached data to UI immediately
|
|
18
|
-
* 3. Background fetch gets fresh data from API
|
|
19
|
-
* 4. `set(hash, fresh)` updates memory + IndexedDB + fires CustomEvent
|
|
20
|
-
* 5. Subscribers pick up the event and re-render with fresh data
|
|
21
|
-
*/
|
|
22
|
-
export declare class QueryCacheManager {
|
|
23
|
-
/** Prefix for CustomEvent names — ensures no collision with other window events */
|
|
24
|
-
private static prefix;
|
|
25
|
-
/** In-memory cache: hash → query result data */
|
|
26
|
-
private static cacheMap;
|
|
27
|
-
/**
|
|
28
|
-
* Loads all persisted query cache data from IndexedDB into memory.
|
|
29
|
-
* Call this once during app initialization (handled automatically by `init()`).
|
|
30
|
-
* Safe to call multiple times — just overwrites the Map.
|
|
31
|
-
*
|
|
32
|
-
* Skips entirely when `Environments.getValue('enableCache', true)` is `false`,
|
|
33
|
-
* which is set by the `enableCache` parameter passed to `init()`.
|
|
34
|
-
*/
|
|
35
|
-
static init(): Promise<void>;
|
|
36
|
-
/**
|
|
37
|
-
* Computes a SHA-256 hash of a query object for use as a cache key.
|
|
38
|
-
*
|
|
39
|
-
* The query is canonicalized by recursively sorting all object keys before
|
|
40
|
-
* hashing, so that `{a:1, b:2}` and `{b:2, a:1}` produce the same hash.
|
|
41
|
-
*
|
|
42
|
-
* @param query - The freeschema query object to hash
|
|
43
|
-
* @returns Hex-encoded SHA-256 hash string
|
|
44
|
-
*/
|
|
45
|
-
static getHash(query: any): Promise<string>;
|
|
46
|
-
/**
|
|
47
|
-
* Retrieves cached query results by hash key (synchronous, from memory).
|
|
48
|
-
*
|
|
49
|
-
* Returns `null` immediately when `Environments.getValue('enableCache', true)` is `false`,
|
|
50
|
-
* causing `FreeschemaQueryApi` to fall through to a live backend fetch.
|
|
51
|
-
*
|
|
52
|
-
* @param hash - The SHA-256 hash of the query (from getHash)
|
|
53
|
-
* @returns The cached result data, or null if not found or cache is disabled
|
|
54
|
-
*/
|
|
55
|
-
static get(hash: string): any | null;
|
|
56
|
-
/**
|
|
57
|
-
* Stores query results in memory, persists to IndexedDB, and notifies subscribers.
|
|
58
|
-
*
|
|
59
|
-
* Includes a deduplication guard: if the new data serializes identically to
|
|
60
|
-
* what's already in memory, the write and event dispatch are both skipped.
|
|
61
|
-
* This prevents infinite revalidation loops (set → event → fetch → set → ...).
|
|
62
|
-
*
|
|
63
|
-
* No-ops entirely when `Environments.getValue('enableCache', true)` is `false`
|
|
64
|
-
* so neither memory nor IndexedDB is written to.
|
|
65
|
-
*
|
|
66
|
-
* @param hash - The SHA-256 hash key for this query
|
|
67
|
-
* @param data - The query result data to cache
|
|
68
|
-
*/
|
|
69
|
-
static set(hash: string, data: any): void;
|
|
70
|
-
/**
|
|
71
|
-
* Subscribes to cache updates for a specific query hash.
|
|
72
|
-
*
|
|
73
|
-
* Uses window CustomEvents (synchronous, in-memory) so subscribers are
|
|
74
|
-
* notified immediately when `set()` is called — no IndexedDB polling needed.
|
|
75
|
-
*
|
|
76
|
-
* @param hash - The query hash to listen for updates on
|
|
77
|
-
* @param callback - Function called with the fresh data when cache is updated
|
|
78
|
-
* @returns An unsubscribe function — call it to stop listening
|
|
79
|
-
*/
|
|
80
|
-
static subscribe(hash: string, callback: (data: any) => void): () => void;
|
|
81
|
-
/**
|
|
82
|
-
* Removes a single cached query result from memory and IndexedDB.
|
|
83
|
-
* @param hash - The query hash key to remove
|
|
84
|
-
*/
|
|
85
|
-
static remove(hash: string): void;
|
|
86
|
-
/**
|
|
87
|
-
* Clears all cached query results from memory and IndexedDB.
|
|
88
|
-
* Useful for cache invalidation on logout or environment switch.
|
|
89
|
-
*/
|
|
90
|
-
static clearAll(): void;
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
* Computes a deterministic SHA-256 hash of any JSON-serializable object.
|
|
94
|
-
*
|
|
95
|
-
* To ensure that semantically identical objects always produce the same hash
|
|
96
|
-
* regardless of property insertion order, all object keys are recursively sorted
|
|
97
|
-
* before serialization. Arrays maintain their order (only object keys are sorted).
|
|
98
|
-
*
|
|
99
|
-
* @param obj - Any JSON-serializable value (object, array, string, number, etc.)
|
|
100
|
-
* @returns Hex-encoded SHA-256 hash string (64 characters)
|
|
101
|
-
*
|
|
102
|
-
* @example
|
|
103
|
-
* // These produce the same hash:
|
|
104
|
-
* await hashJsonObject({ a: 1, b: 2 });
|
|
105
|
-
* await hashJsonObject({ b: 2, a: 1 });
|
|
106
|
-
*/
|
|
107
|
-
export declare function hashJsonObject(obj: any): Promise<string>;
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { Connection, DependencyObserver } from "../app";
|
|
2
|
-
/**
|
|
3
|
-
* Observable wrapper for recursive multi-level searches following linker paths with automatic updates.
|
|
4
|
-
*/
|
|
5
|
-
declare class RecursiveSearchObservable extends DependencyObserver {
|
|
6
|
-
/** Array of linker type names defining the search path */
|
|
7
|
-
searchLinkers: string[];
|
|
8
|
-
/** Search text placeholder */
|
|
9
|
-
searchText: string;
|
|
10
|
-
/** Text to search for in linked concepts */
|
|
11
|
-
textSearch: string;
|
|
12
|
-
/** List of connection objects */
|
|
13
|
-
connections: Connection[];
|
|
14
|
-
/** List of external (linker) connection IDs */
|
|
15
|
-
externalConnectionIds: number[];
|
|
16
|
-
/** Search result data */
|
|
17
|
-
data: any;
|
|
18
|
-
/**
|
|
19
|
-
* Creates a new recursive search observable.
|
|
20
|
-
* @param id - The starting concept ID for the recursive search
|
|
21
|
-
* @param linkers - Array of linker type names defining the traversal path
|
|
22
|
-
* @param textSearch - Optional text to search for in linked concepts
|
|
23
|
-
* @param format - Output format (RAW for raw IDs, undefined for formatted compositions)
|
|
24
|
-
*/
|
|
25
|
-
constructor(id: number, linkers: string[], textSearch?: string, format?: number);
|
|
26
|
-
/**
|
|
27
|
-
* Overrides base method to track connection changes for concepts in the search results.
|
|
28
|
-
* @param id - The concept ID to track
|
|
29
|
-
*/
|
|
30
|
-
listenToEvent(id: number): void;
|
|
31
|
-
/**
|
|
32
|
-
* Executes recursive search and sets up change listeners for all found compositions.
|
|
33
|
-
* @returns Formatted search results or raw ID structure
|
|
34
|
-
*/
|
|
35
|
-
bind(): Promise<any>;
|
|
36
|
-
/**
|
|
37
|
-
* Builds the search results in the specified format.
|
|
38
|
-
* @returns Formatted composition data or raw ID structure
|
|
39
|
-
*/
|
|
40
|
-
build(): Promise<any>;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Creates an observable that performs recursive multi-level searches and updates subscribers when results change.
|
|
44
|
-
* @param id - The starting concept ID for the recursive search
|
|
45
|
-
* @param linkers - Array of linker type names defining the traversal path
|
|
46
|
-
* @param searchText - Optional text to search for in linked concepts
|
|
47
|
-
* @param format - Output format (RAW for raw IDs, undefined for formatted compositions)
|
|
48
|
-
* @returns Observable instance for the recursive search
|
|
49
|
-
*
|
|
50
|
-
* @example
|
|
51
|
-
* const observer = RecursiveSearchListener(123, ["Author", "Category"], "tutorial", RAW);
|
|
52
|
-
* observer.subscribe((results) => console.log(results));
|
|
53
|
-
*/
|
|
54
|
-
export declare function RecursiveSearchListener(id: number, linkers: string[], searchText?: string, format?: number): RecursiveSearchObservable;
|
|
55
|
-
export {};
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { FreeschemaQuery } from "../app";
|
|
2
|
-
import { DependencyObserver } from "./DepenedencyObserver";
|
|
3
|
-
/**
|
|
4
|
-
* Observable wrapper for executing free-schema queries with automatic updates.
|
|
5
|
-
* Supports complex filtering, sorting, and pagination with multiple output formats.
|
|
6
|
-
*/
|
|
7
|
-
export declare class SearchLinkMultipleAllObservable extends DependencyObserver {
|
|
8
|
-
/** The free-schema query object containing all search parameters */
|
|
9
|
-
query: FreeschemaQuery;
|
|
10
|
-
/** Encoded count information strings */
|
|
11
|
-
countInfoStrings: string[];
|
|
12
|
-
/** Sort order for results */
|
|
13
|
-
order: string;
|
|
14
|
-
/** Total count of matching results */
|
|
15
|
-
totalCount: number;
|
|
16
|
-
/** Cleanup function for cache subscription */
|
|
17
|
-
private unsubscribeCache;
|
|
18
|
-
/**
|
|
19
|
-
* Creates a new schema query observable.
|
|
20
|
-
* @param query - FreeschemaQuery object with search parameters
|
|
21
|
-
* @param token - Authentication token
|
|
22
|
-
*/
|
|
23
|
-
constructor(query: FreeschemaQuery, token: string);
|
|
24
|
-
/**
|
|
25
|
-
* Executes the query once without subscribing to updates.
|
|
26
|
-
* @returns Formatted query results
|
|
27
|
-
*/
|
|
28
|
-
run(): Promise<any>;
|
|
29
|
-
/**
|
|
30
|
-
* Executes the query and sets up change listeners for all matching compositions.
|
|
31
|
-
* @returns Formatted query results
|
|
32
|
-
*/
|
|
33
|
-
bind(): Promise<any>;
|
|
34
|
-
/**
|
|
35
|
-
* Builds the query results in the specified format.
|
|
36
|
-
* @returns Formatted query results based on the output format
|
|
37
|
-
*/
|
|
38
|
-
build(): Promise<any>;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Creates an observable that executes a free-schema query and updates subscribers when results change.
|
|
42
|
-
* @param query - FreeschemaQuery object with search, filter, sort, and pagination parameters
|
|
43
|
-
* @param token - Authentication token
|
|
44
|
-
* @returns Observable instance for the query results
|
|
45
|
-
*
|
|
46
|
-
* @example
|
|
47
|
-
* const query = new FreeschemaQuery();
|
|
48
|
-
* query.type = "BlogPost";
|
|
49
|
-
* query.outputFormat = DATAID;
|
|
50
|
-
* const observer = SchemaQueryListener(query, token);
|
|
51
|
-
* observer.subscribe((results) => console.log(results));
|
|
52
|
-
*/
|
|
53
|
-
export declare function SchemaQueryListener(query: FreeschemaQuery, token: string): SearchLinkMultipleAllObservable;
|
|
54
|
-
/**
|
|
55
|
-
* Executes a free-schema query once without creating a subscription.
|
|
56
|
-
* @param query - FreeschemaQuery object with search parameters
|
|
57
|
-
* @param token - Authentication token
|
|
58
|
-
* @returns Promise resolving to formatted query results
|
|
59
|
-
*/
|
|
60
|
-
export declare function SchemaQuery(query: FreeschemaQuery, token: string): Promise<void>;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { SearchQuery } from "../app";
|
|
2
|
-
import { DependencyObserver } from "./DepenedencyObserver";
|
|
3
|
-
/**
|
|
4
|
-
* Observable wrapper for executing multiple search queries with automatic updates.
|
|
5
|
-
*/
|
|
6
|
-
export declare class SearchLinkMultipleAllObservable extends DependencyObserver {
|
|
7
|
-
/** Array of search query conditions */
|
|
8
|
-
searchQuery: SearchQuery[];
|
|
9
|
-
/** Output format */
|
|
10
|
-
format: number;
|
|
11
|
-
/**
|
|
12
|
-
* Creates a new multi-search observable.
|
|
13
|
-
* @param searchQuery - Array of SearchQuery objects defining search conditions
|
|
14
|
-
* @param token - Authentication token
|
|
15
|
-
* @param format - Output format (DATAID by default)
|
|
16
|
-
*/
|
|
17
|
-
constructor(searchQuery: SearchQuery[], token: string, format?: number);
|
|
18
|
-
/**
|
|
19
|
-
* Executes the search queries and sets up change listeners.
|
|
20
|
-
* @returns Formatted search results
|
|
21
|
-
*/
|
|
22
|
-
bind(): Promise<any>;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Creates an observable that executes multiple search queries and updates subscribers when results change.
|
|
26
|
-
* @param searchQueries - Array of SearchQuery objects defining search conditions
|
|
27
|
-
* @param token - Authentication token
|
|
28
|
-
* @param format - Output format (DATAID by default)
|
|
29
|
-
* @returns Observable instance for the search results
|
|
30
|
-
*
|
|
31
|
-
* @example
|
|
32
|
-
* const queries = [{ composition: 123, type: "BlogPost", searchField: "title", searchText: "tutorial" }];
|
|
33
|
-
* const observer = searchLinkMultipleListener(queries, token, DATAID);
|
|
34
|
-
* observer.subscribe((results) => console.log(results));
|
|
35
|
-
*/
|
|
36
|
-
export declare function searchLinkMultipleListener(searchQueries: SearchQuery[], token?: string, format?: number): SearchLinkMultipleAllObservable;
|