mftsccs-browser 2.2.41-beta → 2.2.43-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/README.md +8 -0
  2. package/dist/main.bundle.js +1 -1
  3. package/dist/serviceWorker.bundle.js +1 -1
  4. package/dist/types/Api/GetConnections/GetConnectionsBetweenApi.d.ts +40 -0
  5. package/dist/types/DataStructures/BaseUrl.d.ts +1 -0
  6. package/dist/types/DataStructures/FetchConnection.d.ts +64 -0
  7. package/dist/types/DataStructures/environments/environments.d.ts +44 -1
  8. package/dist/types/Services/Transaction/LocalTransaction.d.ts +75 -3
  9. package/dist/types/Widgets/WidgetCacheManager.d.ts +14 -6
  10. package/dist/types/WrapperFunctions/QueryCacheManager.d.ts +11 -2
  11. package/dist/types/app.d.ts +9 -0
  12. package/package.json +7 -4
  13. package/dist/bundle-report.html +0 -39
  14. package/dist/main.bundle.js.map +0 -1
  15. package/dist/serviceWorker.bundle.js.map +0 -1
  16. package/dist/types/Api/GetAllConcepts.d.ts +0 -11
  17. package/dist/types/Api/GetAllConnections.d.ts +0 -11
  18. package/dist/types/Api/GetAllPrefetchConnections.d.ts +0 -12
  19. package/dist/types/Api/GetConnections/GetConnectionsByTypesApi.d.ts +0 -3
  20. package/dist/types/Api/Prototype/CreatePrototype.d.ts +0 -14
  21. package/dist/types/DataStructures/ConnectionByType/GetConnectionsByType.d.ts +0 -4
  22. package/dist/types/DataStructures/PwaStorageManager.d.ts +0 -25
  23. package/dist/types/DataStructures/ReferentInfo.d.ts +0 -7
  24. package/dist/types/Database/GetConceptFromIndexDb.d.ts +0 -0
  25. package/dist/types/Drawing/ConceptDraw.d.ts +0 -1
  26. package/dist/types/Drawing/ConceptEvents.d.ts +0 -1
  27. package/dist/types/Middleware/ErrorHandling.d.ts +0 -0
  28. package/dist/types/Services/CreateCharacterBinaryTreeFromData.d.ts +0 -5
  29. package/dist/types/Services/CreateTypeTreeFromData.d.ts +0 -1
  30. package/dist/types/Services/Delete/DeleteConnectionByIdLocal.d.ts +0 -1
  31. package/dist/types/Services/GenerateHexNumber.d.ts +0 -1
  32. package/dist/types/Services/GetAccessIdOfUser.d.ts +0 -0
  33. package/dist/types/Services/GetMaximumConnectionSyncTime.d.ts +0 -2
  34. package/dist/types/Services/GetTheReferent.d.ts +0 -2
  35. package/dist/types/Services/Local/CreateConnectionListFromDatat.d.ts +0 -0
  36. package/dist/types/Services/Local/CreateLocalBinaryTypeTreeFromData.d.ts +0 -9
  37. package/dist/types/Services/Local/CreateLocalCharacterBinaryTree.d.ts +0 -9
  38. package/dist/types/Services/Mqtt/subscribeMessage.d.ts +0 -0
  39. package/dist/types/Services/PatchComposition.d.ts +0 -2
  40. package/dist/types/Services/Search/DataFormat.d.ts +0 -23
  41. package/dist/types/Services/Visualizations/VisualTree.d.ts +0 -9
  42. package/dist/types/Services/automated/auotmated-update.d.ts +0 -2
  43. package/dist/types/Visualize/index.d.ts +0 -0
  44. package/dist/types/Widgets/mainView.class.d.ts +0 -27
  45. package/dist/types/prototype/getPrototype.service.d.ts +0 -2
@@ -1,11 +0,0 @@
1
- /**
2
- * Retrieves all concepts belonging to a specific user.
3
- * Fetches user's concepts from backend and caches them in ConceptsData.
4
- *
5
- * @param userId - ID of the user whose concepts to retrieve
6
- * @returns void - Updates ConceptsData cache with user's concepts
7
- *
8
- * @example
9
- * await GetAllUserConcepts(123); // Loads all concepts for user 123
10
- */
11
- export declare function GetAllUserConcepts(userId: number): Promise<void>;
@@ -1,11 +0,0 @@
1
- /**
2
- * Retrieves all connections belonging to a specific user.
3
- * Fetches user's connections from backend and caches them in ConnectionData.
4
- *
5
- * @param userId - ID of the user whose connections to retrieve
6
- * @returns void - Updates ConnectionData cache with user's connections
7
- *
8
- * @example
9
- * await GetAllUserConnections(123); // Loads all connections for user 123
10
- */
11
- export declare function GetAllUserConnections(userId: number): Promise<void>;
@@ -1,12 +0,0 @@
1
- /**
2
- * Prefetches connections for a user with pagination.
3
- * Loads connections into local storage for improved performance.
4
- *
5
- * @param userId - ID of the user whose connections to prefetch
6
- * @param inpage - Number of connections per page
7
- * @returns void - Updates ConnectionData storage with prefetched connections
8
- *
9
- * @example
10
- * await GetAllPrefetchConnections(123, 50); // Prefetch 50 connections for user 123
11
- */
12
- export declare function GetAllPrefetchConnections(userId: number, inpage: number): Promise<void>;
@@ -1,3 +0,0 @@
1
- import { Connection } from "../../app";
2
- import { GetConnectionsByTypes } from "../../DataStructures/ConnectionByType/GetConnectionsByType";
3
- export declare function GetConnectionsByApiTypes(connectionTypes: GetConnectionsByTypes): Promise<Connection[]>;
@@ -1,14 +0,0 @@
1
- import { Prototype } from "../../DataStructures/Prototype/Prototype";
2
- /**
3
- * Creates a new prototype in the backend.
4
- * Prototypes serve as templates for creating similar concepts.
5
- *
6
- * @param prototype - Prototype object containing template definition
7
- * @returns Created Concept object representing the prototype, or undefined on error
8
- *
9
- * @example
10
- * const prototype = new Prototype();
11
- * prototype.name = "PersonTemplate";
12
- * const result = await CreatePrototypeApi(prototype);
13
- */
14
- export declare function CreatePrototypeApi(prototype: Prototype): Promise<any>;
@@ -1,4 +0,0 @@
1
- export declare class GetConnectionsByTypes {
2
- ofTheConceptId: number;
3
- connectionTypes: string[];
4
- }
@@ -1,25 +0,0 @@
1
- import { Concept } from "./Concept";
2
- import { Connection } from "./Connection";
3
- /**
4
- * Manages localStorage persistence for PWA mode.
5
- *
6
- * Strategy:
7
- * - Reads: always from memory (BinaryTree), never from localStorage at runtime
8
- * - Writes: batched and deferred to avoid blocking the main thread
9
- * - Startup: bulk load from localStorage into memory once
10
- */
11
- export declare class PwaStorageManager {
12
- private static CONCEPT_PREFIX;
13
- private static CONNECTION_PREFIX;
14
- private static writeQueue;
15
- private static deleteQueue;
16
- private static flushTimer;
17
- private static scheduleFlush;
18
- static saveConcept(concept: Concept): void;
19
- static saveConnection(connection: Connection): void;
20
- static removeConcept(id: number): void;
21
- static removeConnection(id: number): void;
22
- static loadAllConcepts(): Concept[];
23
- static loadAllConnections(): Connection[];
24
- static clearAll(): void;
25
- }
@@ -1,7 +0,0 @@
1
- export declare class ReferentInfo {
2
- conceptDataId: number;
3
- conceptDataUserId: number;
4
- characterDataId: number;
5
- characterDataUserId: number;
6
- constructor(conceptDataId: number, conceptDataUserId: number, characterDataId: number, characterDataUserId: number);
7
- }
File without changes
@@ -1 +0,0 @@
1
- export declare function DrawingLoop(): void;
@@ -1 +0,0 @@
1
- export declare function selectConceptObject(mouse_x_coordinate: number, mouse_y_coordinate: number): import("../app").Concept | null;
File without changes
@@ -1,5 +0,0 @@
1
- /**
2
- * This function creates a binary character tree in the memory from which we can search for concepts using character key
3
- * This helps us in searching concept by character faster.
4
- */
5
- export declare function CreateCharacterBinaryTreeFromData(): Promise<void>;
@@ -1 +0,0 @@
1
- export declare function CreateTypeTreeFromData(): Promise<void>;
@@ -1 +0,0 @@
1
- export declare function DeleteConnectionByIdLocal(toDeleteIds: number[]): void;
@@ -1 +0,0 @@
1
- export declare function genHexString(len: number): number;
File without changes
@@ -1,2 +0,0 @@
1
- import { Connection } from "../DataStructures/Connection";
2
- export declare function GetMaximumConnectionSyncTime(connections: Connection[]): Date;
@@ -1,2 +0,0 @@
1
- import { Concept } from "../DataStructures/Concept";
2
- export default function GetTheReferent(id: number, userId: number, referentId: number): Promise<Concept>;
@@ -1,9 +0,0 @@
1
- /**
2
- * Builds a binary search tree indexed by typeId for fast type-based concept lookup.
3
- *
4
- * Loads all local concepts from IndexedDB and organizes them into a binary tree
5
- * structure where each node is keyed by typeId. Enables O(log n) lookups by type.
6
- *
7
- * @throws Error if IndexedDB read or tree construction fails
8
- */
9
- export declare function CreateLocalBinaryTypeTreeFromData(): Promise<void>;
@@ -1,9 +0,0 @@
1
- /**
2
- * Builds a binary search tree indexed by characterValue for fast text-based concept lookup.
3
- *
4
- * Loads all local concepts from IndexedDB and organizes them into a binary tree
5
- * structure where each node is keyed by characterValue. Enables O(log n) lookups by text.
6
- *
7
- * @throws Error if IndexedDB read or tree construction fails
8
- */
9
- export declare function CreateLocalCharacterBinaryTreeFromData(): Promise<void>;
File without changes
@@ -1,2 +0,0 @@
1
- import { Concept } from "../DataStructures/Concept";
2
- export default function PatchComposition(ofConcept: Concept, MainConcept: Concept, toConcept: Concept): void;
@@ -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 FormatFunctionDataForClean(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 FormatFromConnectionsAlteredArrayExternalClean(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,9 +0,0 @@
1
- import { Concept, Connection, LocalTransaction } from "../../app";
2
- export declare class VisualTree {
3
- static concepts: Concept[];
4
- static connections: Connection[];
5
- static transactions: LocalTransaction[];
6
- static setTransaction(transaction: LocalTransaction): void;
7
- static renderVisualTree(): void;
8
- static getLocalConcepts(): Promise<void>;
9
- }
@@ -1,2 +0,0 @@
1
- import { Concept } from "../../app";
2
- export declare function UpdateData(json: any, ofConcept: Concept, typeStrings?: string[]): Promise<void>;
File without changes
@@ -1,27 +0,0 @@
1
- /**
2
- * Base view class for page-level components.
3
- *
4
- * Provides basic page functionality including title management and HTML generation.
5
- */
6
- export default class {
7
- /** Parameters passed to the view */
8
- params: any;
9
- /**
10
- * Creates a new view instance.
11
- *
12
- * @param params - Configuration parameters for the view
13
- */
14
- constructor(params: any);
15
- /**
16
- * Sets the browser document title.
17
- *
18
- * @param title - The new document title
19
- */
20
- setTitle(title: string): void;
21
- /**
22
- * Generates the HTML content for this view.
23
- *
24
- * @returns HTML string for the view
25
- */
26
- getHtml(): Promise<string>;
27
- }
@@ -1,2 +0,0 @@
1
- import { Prototype } from "../DataStructures/Prototype/Prototype";
2
- export declare function CreatePrototype(prototype: Prototype): Promise<any>;