mftsccs-node 0.0.56 → 0.0.58
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/README.md +1148 -11
- package/dist/bundle.js +1 -0
- package/dist/types/Api/Create/CreateTheCharacter.d.ts +45 -0
- package/dist/types/Api/Create/CreateTheConceptApi.d.ts +52 -0
- package/dist/types/Api/Create/CreateTheConnectionApi.d.ts +53 -0
- package/dist/types/Api/Create/CreateTheTextData.d.ts +58 -0
- package/dist/types/Api/Delete/DeleteConceptInBackend.d.ts +44 -0
- package/dist/types/Api/DeleteConnectionApiBulk.d.ts +56 -0
- package/dist/types/Api/DeleteTheConcept.d.ts +65 -0
- package/dist/types/Api/DeleteTheConnection.d.ts +77 -0
- package/dist/types/Api/GetAiData.d.ts +37 -0
- package/dist/types/Api/GetAllConcepts.d.ts +43 -0
- package/dist/types/Api/GetAllConceptsByType.d.ts +46 -0
- package/dist/types/Api/GetAllConnections.d.ts +49 -0
- package/dist/types/Api/GetAllConnectionsOfComposition.d.ts +82 -0
- package/dist/types/Api/GetAllConnectionsOfCompositionBulk.d.ts +93 -0
- package/dist/types/Api/GetAllLinkerConnectionsFromTheConcept.d.ts +54 -0
- package/dist/types/Api/GetAllLinkerConnectionsToTheConcept.d.ts +63 -0
- package/dist/types/Api/GetAllPrefetchConnections.d.ts +52 -0
- package/dist/types/Api/GetCharacterDataByCharacter.d.ts +33 -0
- package/dist/types/Api/GetCompositionConnectionsBetweenTwoConcepts.d.ts +41 -0
- package/dist/types/Api/GetConcept.d.ts +49 -0
- package/dist/types/Api/GetConceptBulk.d.ts +71 -0
- package/dist/types/Api/GetConceptByCharacterAndType.d.ts +78 -0
- package/dist/types/Api/GetConceptByCharacterValue.d.ts +49 -0
- package/dist/types/Api/GetConnection.d.ts +51 -0
- package/dist/types/Api/GetConnectionBulk.d.ts +48 -0
- package/dist/types/Api/GetConnectionOfTheConcept.d.ts +52 -0
- package/dist/types/Api/GetConnectionToTheConcept.d.ts +58 -0
- package/dist/types/Api/GetReservedConnectionIds.d.ts +37 -0
- package/dist/types/Api/GetReservedIds.d.ts +38 -0
- package/dist/types/Api/Login.d.ts +39 -0
- package/dist/types/Api/MakeTheNameInBackend.d.ts +40 -0
- package/dist/types/Api/MakeTheTypeConceptApi.d.ts +42 -0
- package/dist/types/Api/RecursiveSearch.d.ts +44 -0
- package/dist/types/Api/Search/FreeschemaQueryApi.d.ts +48 -0
- package/dist/types/Api/Search/Search.d.ts +68 -0
- package/dist/types/Api/Search/SearchInternalApi.d.ts +71 -0
- package/dist/types/Api/Search/SearchLinkMultipleApi.d.ts +92 -0
- package/dist/types/Api/Search/SearchWithLinker.d.ts +99 -0
- package/dist/types/Api/SearchConcept/GetConceptByCharacterAndCategoryApi.d.ts +41 -0
- package/dist/types/Api/SearchConcept/GetConceptByCharacterAndCategoryDirect.d.ts +49 -0
- package/dist/types/Api/Session/CreateSession.d.ts +47 -0
- package/dist/types/Api/Session/CreateSessionVisit.d.ts +44 -0
- package/dist/types/Api/Signin.d.ts +51 -0
- package/dist/types/Api/Signup.d.ts +47 -0
- package/dist/types/Api/View/ViewInternalDataApi.d.ts +51 -0
- package/dist/types/Constants/ApiConstants.d.ts +249 -0
- package/dist/types/Constants/FormatConstants.d.ts +87 -0
- package/dist/types/DataStructures/BaseUrl.d.ts +262 -0
- package/dist/types/DataStructures/BinaryCharacterTree.d.ts +227 -0
- package/dist/types/DataStructures/BinaryTree.d.ts +151 -0
- package/dist/types/DataStructures/BinaryTypeTree.d.ts +211 -0
- package/dist/types/DataStructures/CharacterRepository.d.ts +117 -0
- package/dist/types/DataStructures/Composition/Composition.d.ts +117 -0
- package/dist/types/DataStructures/Composition/CompositionBinaryTree.d.ts +114 -0
- package/dist/types/DataStructures/Composition/CompositionNode.d.ts +223 -0
- package/dist/types/DataStructures/Concept.d.ts +139 -0
- package/dist/types/DataStructures/ConceptData.d.ts +317 -0
- package/dist/types/DataStructures/ConceptsToDraw.d.ts +179 -0
- package/dist/types/DataStructures/Connection.d.ts +103 -0
- package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionBinaryTree.d.ts +126 -0
- package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionNode.d.ts +193 -0
- package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionTypeTree.d.ts +95 -0
- package/dist/types/DataStructures/ConnectionData.d.ts +209 -0
- package/dist/types/DataStructures/Count/CountInfo.d.ts +79 -0
- package/dist/types/DataStructures/FilterSearch.d.ts +93 -0
- package/dist/types/DataStructures/IdentifierFlags.d.ts +45 -0
- package/dist/types/DataStructures/Local/LConcept.d.ts +126 -0
- package/dist/types/DataStructures/Local/LConnection.d.ts +101 -0
- package/dist/types/DataStructures/Local/LNode.d.ts +217 -0
- package/dist/types/DataStructures/Local/LocalBinaryCharacterTree.d.ts +145 -0
- package/dist/types/DataStructures/Local/LocalBinaryTree.d.ts +147 -0
- package/dist/types/DataStructures/Local/LocalBinaryTypeTree.d.ts +160 -0
- package/dist/types/DataStructures/Local/LocalConceptData.d.ts +114 -0
- package/dist/types/DataStructures/Local/LocalConnectionData.d.ts +125 -0
- package/dist/types/DataStructures/Local/LocalSyncData.d.ts +103 -0
- package/dist/types/DataStructures/Node.d.ts +29 -0
- package/dist/types/DataStructures/PatcherStructure.d.ts +94 -0
- package/dist/types/DataStructures/ReferentInfo.d.ts +75 -0
- package/dist/types/DataStructures/ReservedIds.d.ts +111 -0
- package/dist/types/DataStructures/Responses/ErrorResponse.d.ts +236 -0
- package/dist/types/DataStructures/Responses/StandardResponses.d.ts +71 -0
- package/dist/types/DataStructures/Returner.d.ts +66 -0
- package/dist/types/DataStructures/Search/FreeschemaQuery.d.ts +187 -0
- package/dist/types/DataStructures/Search/SearchStructure.d.ts +78 -0
- package/dist/types/DataStructures/SearchQuery.d.ts +146 -0
- package/dist/types/DataStructures/Security/TokenStorage.d.ts +51 -0
- package/dist/types/DataStructures/Session/SessionData.d.ts +131 -0
- package/dist/types/DataStructures/SettingData.d.ts +37 -0
- package/dist/types/DataStructures/Settings.d.ts +31 -0
- package/dist/types/DataStructures/SigninModel.d.ts +54 -0
- package/dist/types/DataStructures/SignupModel.d.ts +54 -0
- package/dist/types/DataStructures/SyncData.d.ts +232 -0
- package/dist/types/DataStructures/TheCharacter.d.ts +100 -0
- package/dist/types/DataStructures/TheTexts.d.ts +106 -0
- package/dist/types/DataStructures/Transaction/Transaction.d.ts +320 -0
- package/dist/types/DataStructures/User/UserBinaryTree.d.ts +132 -0
- package/dist/types/DataStructures/User/UserNode.d.ts +150 -0
- package/dist/types/Database/GetConceptFromIndexDb.d.ts +9 -0
- package/dist/types/Database/NoIndexDb.d.ts +178 -0
- package/dist/types/Database/indexdblocal.d.ts +45 -0
- package/dist/types/Database/indexeddb.d.ts +46 -0
- package/dist/types/Drawing/ConceptDraw.d.ts +29 -0
- package/dist/types/Drawing/ConceptEvents.d.ts +47 -0
- package/dist/types/Helpers/CheckIfExists.d.ts +169 -0
- package/dist/types/Helpers/RemoveFromArray.d.ts +72 -0
- package/dist/types/Helpers/UniqueInsert.d.ts +29 -0
- package/dist/types/Services/CheckForConnectionDeletion.d.ts +193 -0
- package/dist/types/Services/Common/DecodeCountInfo.d.ts +57 -0
- package/dist/types/Services/Common/ErrorPosting.d.ts +51 -0
- package/dist/types/Services/Common/RegexFunction.d.ts +29 -0
- package/dist/types/Services/Composition/BuildComposition.d.ts +40 -0
- package/dist/types/Services/Composition/CompositionCache.d.ts +93 -0
- package/dist/types/Services/Composition/CreateCompositionCache.d.ts +46 -0
- package/dist/types/Services/ConceptFinding/GetConceptByCharacterAndCategory.d.ts +5 -0
- package/dist/types/Services/Conversion/ConvertConcepts.d.ts +90 -0
- package/dist/types/Services/CreateBinaryTreeFromData.d.ts +39 -0
- package/dist/types/Services/CreateCharacterBinaryTreeFromData.d.ts +43 -0
- package/dist/types/Services/CreateConnectionBetweenTwoConcepts.d.ts +211 -0
- package/dist/types/Services/CreateDefaultConcept.d.ts +117 -0
- package/dist/types/Services/CreateTheComposition.d.ts +103 -0
- package/dist/types/Services/CreateTheConcept.d.ts +184 -0
- package/dist/types/Services/CreateTheConnection.d.ts +61 -0
- package/dist/types/Services/CreateTheConnectionGeneral.d.ts +132 -0
- package/dist/types/Services/CreateTypeTreeFromData.d.ts +44 -0
- package/dist/types/Services/Delete/DeleteConnectionByType.d.ts +60 -0
- package/dist/types/Services/Delete/GetAllConnectionByType.d.ts +64 -0
- package/dist/types/Services/DeleteConcept.d.ts +137 -0
- package/dist/types/Services/DeleteConnection.d.ts +196 -0
- package/dist/types/Services/FindConeceptsFromConnection.d.ts +181 -0
- package/dist/types/Services/FindConnectionsOfCompositionBulkInMemory.d.ts +159 -0
- package/dist/types/Services/GenerateHexNumber.d.ts +65 -0
- package/dist/types/Services/GetAccessIdOfUser.d.ts +0 -0
- package/dist/types/Services/GetComposition.d.ts +342 -0
- package/dist/types/Services/GetCompositionBulk.d.ts +259 -0
- package/dist/types/Services/GetCompositionList.d.ts +132 -0
- package/dist/types/Services/GetConceptByCharacter.d.ts +87 -0
- package/dist/types/Services/GetConnections.d.ts +74 -0
- package/dist/types/Services/GetDataFromIndexDb.d.ts +81 -0
- package/dist/types/Services/GetLink.d.ts +107 -0
- package/dist/types/Services/GetLinkerConnectionFromConcept.d.ts +102 -0
- package/dist/types/Services/GetMaximumConnectionSyncTime.d.ts +59 -0
- package/dist/types/Services/GetRelation.d.ts +167 -0
- package/dist/types/Services/GetTheConcept.d.ts +73 -0
- package/dist/types/Services/GetTheReferent.d.ts +76 -0
- package/dist/types/Services/InitializeSystem.d.ts +121 -0
- package/dist/types/Services/Local/CreateConnectionListFromDatat.d.ts +0 -0
- package/dist/types/Services/Local/CreateDefaultLConcept.d.ts +50 -0
- package/dist/types/Services/Local/CreateLocalBinaryTreeFromData.d.ts +50 -0
- package/dist/types/Services/Local/CreateLocalBinaryTypeTreeFromData.d.ts +55 -0
- package/dist/types/Services/Local/CreateLocalCharacterBinaryTree.d.ts +61 -0
- package/dist/types/Services/Local/CreateTheCompositionLocal.d.ts +72 -0
- package/dist/types/Services/Local/CreateTheConceptLocal.d.ts +60 -0
- package/dist/types/Services/Local/CreateTheConnectionLocal.d.ts +58 -0
- package/dist/types/Services/Local/GetCompositionListLocal.d.ts +105 -0
- package/dist/types/Services/Local/GetCompositionLocal.d.ts +98 -0
- package/dist/types/Services/Local/GetConceptByCharacterLocal.d.ts +58 -0
- package/dist/types/Services/Local/MakeTheConceptLocal.d.ts +73 -0
- package/dist/types/Services/Local/MakeTheInstanceConceptLocal.d.ts +91 -0
- package/dist/types/Services/Local/MakeTheTypeLocal.d.ts +73 -0
- package/dist/types/Services/Local/UpdateCompositionLocal.d.ts +103 -0
- package/dist/types/Services/MakeTheCharacter.d.ts +76 -0
- package/dist/types/Services/MakeTheCharacterData.d.ts +67 -0
- package/dist/types/Services/MakeTheConcept.d.ts +2 -0
- package/dist/types/Services/MakeTheInstanceConcept.d.ts +78 -0
- package/dist/types/Services/MakeTheLocalConcept.d.ts +0 -0
- package/dist/types/Services/MakeTheName.d.ts +83 -0
- package/dist/types/Services/MakeTheTimestamp.d.ts +70 -0
- package/dist/types/Services/MakeTheTypeConcept.d.ts +71 -0
- package/dist/types/Services/Mqtt/publishMessage.d.ts +28 -0
- package/dist/types/Services/Mqtt/subscribeMessage.d.ts +23 -0
- package/dist/types/Services/PatchComposition.d.ts +107 -0
- package/dist/types/Services/Search/DataIdFormat.d.ts +104 -0
- package/dist/types/Services/Search/FormatData.d.ts +101 -0
- package/dist/types/Services/Search/JustIdFormat.d.ts +98 -0
- package/dist/types/Services/Search/SearchLinkInternal.d.ts +30 -0
- package/dist/types/Services/Search/SearchLinkMultiple.d.ts +61 -0
- package/dist/types/Services/Search/SearchWithTypeAndLinker.d.ts +101 -0
- package/dist/types/Services/Search/orderingConnections.d.ts +36 -0
- package/dist/types/Services/Security/GetRequestHeader.d.ts +10 -0
- package/dist/types/Services/SplitStrings.d.ts +51 -0
- package/dist/types/Services/UpdateComposition.d.ts +125 -0
- package/dist/types/Services/User/UserTranslation.d.ts +108 -0
- package/dist/types/Services/View/ViewInternalData.d.ts +33 -0
- package/dist/types/WrapperFunctions/SchemaQueryObservable.d.ts +159 -0
- package/dist/types/app.d.ts +162 -0
- package/package.json +1 -1
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview BaseUrl module for managing API endpoints and service URLs in CCS-JS.
|
|
3
|
+
* This module provides centralized configuration for all backend API endpoints,
|
|
4
|
+
* MQTT connections, and external services.
|
|
5
|
+
* @module DataStructures/BaseUrl
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Centralized configuration for all backend API endpoints and service URLs.
|
|
9
|
+
* Provides methods to generate fully qualified URLs for various API operations.
|
|
10
|
+
*
|
|
11
|
+
* @class BaseUrl
|
|
12
|
+
* @example
|
|
13
|
+
* ```typescript
|
|
14
|
+
* // Get concept API URL
|
|
15
|
+
* const url = BaseUrl.GetConceptUrl();
|
|
16
|
+
* fetch(url, { ... });
|
|
17
|
+
*
|
|
18
|
+
* // Change base URL for different environment
|
|
19
|
+
* BaseUrl.BASE_URL = "https://api.production.com/";
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* @remarks
|
|
23
|
+
* All URL methods return fully qualified URLs by combining BASE_URL with the endpoint path.
|
|
24
|
+
* Static properties can be modified to point to different environments or services.
|
|
25
|
+
*/
|
|
26
|
+
export declare class BaseUrl {
|
|
27
|
+
/** Base URL for the main CCS backend API server */
|
|
28
|
+
static BASE_URL: string;
|
|
29
|
+
/** URL for AI service endpoints */
|
|
30
|
+
static AI_URL: string;
|
|
31
|
+
/** MQTT broker URL for real-time messaging */
|
|
32
|
+
static MQTT_URL: string;
|
|
33
|
+
/** Node.js service URL for additional backend operations */
|
|
34
|
+
static NODE_URL: string;
|
|
35
|
+
/** Active MQTT connection instance */
|
|
36
|
+
static MQTT_CONNECTION: any;
|
|
37
|
+
/**
|
|
38
|
+
* Returns the URL for retrieving a single concept by ID.
|
|
39
|
+
* @returns {string} The concept retrieval API endpoint
|
|
40
|
+
*/
|
|
41
|
+
static GetConceptUrl(): string;
|
|
42
|
+
/**
|
|
43
|
+
* Returns the URL for retrieving a single connection by ID.
|
|
44
|
+
* @returns {string} The connection retrieval API endpoint
|
|
45
|
+
*/
|
|
46
|
+
static GetConnectionUrl(): string;
|
|
47
|
+
/**
|
|
48
|
+
* Returns the URL for retrieving multiple concepts in bulk.
|
|
49
|
+
* @returns {string} The bulk concept retrieval API endpoint
|
|
50
|
+
*/
|
|
51
|
+
static GetConceptBulkUrl(): string;
|
|
52
|
+
/**
|
|
53
|
+
* Returns the URL for retrieving multiple connections in bulk.
|
|
54
|
+
* @returns {string} The bulk connection retrieval API endpoint
|
|
55
|
+
*/
|
|
56
|
+
static GetConnectionBulkUrl(): string;
|
|
57
|
+
/**
|
|
58
|
+
* Returns the URL for retrieving all concepts belonging to a user.
|
|
59
|
+
* @returns {string} The user concepts retrieval API endpoint
|
|
60
|
+
*/
|
|
61
|
+
static GetAllConceptsOfUserUrl(): string;
|
|
62
|
+
/**
|
|
63
|
+
* Returns the URL for retrieving all connections belonging to a user.
|
|
64
|
+
* @returns {string} The user connections retrieval API endpoint
|
|
65
|
+
*/
|
|
66
|
+
static GetAllConnectionsOfUserUrl(): string;
|
|
67
|
+
/**
|
|
68
|
+
* Returns the URL for retrieving all connections of a composition.
|
|
69
|
+
* @returns {string} The composition connections retrieval API endpoint
|
|
70
|
+
*/
|
|
71
|
+
static GetAllConnectionsOfCompositionUrl(): string;
|
|
72
|
+
/**
|
|
73
|
+
* Returns the URL for retrieving composition connections in bulk.
|
|
74
|
+
* @returns {string} The bulk composition connections retrieval API endpoint
|
|
75
|
+
*/
|
|
76
|
+
static GetAllConnectionsOfCompositionBulkUrl(): string;
|
|
77
|
+
/**
|
|
78
|
+
* Returns the URL for retrieving a concept by its character value.
|
|
79
|
+
* @returns {string} The character value search API endpoint
|
|
80
|
+
*/
|
|
81
|
+
static GetConceptByCharacterValueUrl(): string;
|
|
82
|
+
/**
|
|
83
|
+
* Returns the URL for retrieving a concept by both character value and type.
|
|
84
|
+
* @returns {string} The character and type search API endpoint
|
|
85
|
+
*/
|
|
86
|
+
static GetConceptByCharacterAndTypeUrl(): string;
|
|
87
|
+
/**
|
|
88
|
+
* Returns the URL for retrieving a concept by character value and category.
|
|
89
|
+
* @returns {string} The character and category search API endpoint
|
|
90
|
+
*/
|
|
91
|
+
static GetConceptByCharacterAndCategoryUrl(): string;
|
|
92
|
+
/**
|
|
93
|
+
* Returns the URL for direct retrieval by character and category.
|
|
94
|
+
* @returns {string} The direct character and category search API endpoint
|
|
95
|
+
*/
|
|
96
|
+
static GetConceptByCharacterAndCategoryDirectUrl(): string;
|
|
97
|
+
/**
|
|
98
|
+
* Returns the URL for retrieving character information by character value.
|
|
99
|
+
* @returns {string} The character search API endpoint
|
|
100
|
+
*/
|
|
101
|
+
static GetCharacterByCharacterUrl(): string;
|
|
102
|
+
/**
|
|
103
|
+
* Returns the URL for retrieving all concepts of a specific type.
|
|
104
|
+
* @returns {string} The type-based concept search API endpoint
|
|
105
|
+
*/
|
|
106
|
+
static GetAllConceptsByTypeUrl(): string;
|
|
107
|
+
/**
|
|
108
|
+
* Returns the URL for retrieving all outgoing connections from a concept.
|
|
109
|
+
* @returns {string} The concept outgoing connections API endpoint
|
|
110
|
+
*/
|
|
111
|
+
static GetAllConnectionsOfConceptUrl(): string;
|
|
112
|
+
/**
|
|
113
|
+
* Returns the URL for retrieving all incoming connections to a concept.
|
|
114
|
+
* @returns {string} The concept incoming connections API endpoint
|
|
115
|
+
*/
|
|
116
|
+
static GetAllConnectionsToConceptUrl(): string;
|
|
117
|
+
/**
|
|
118
|
+
* Returns the URL for retrieving AI-preloaded concept data.
|
|
119
|
+
* @returns {string} The AI preloaded concepts API endpoint
|
|
120
|
+
*/
|
|
121
|
+
static GetAllAiData(): string;
|
|
122
|
+
/**
|
|
123
|
+
* Returns the URL for prefetching user connections with pagination.
|
|
124
|
+
* @returns {string} The prefetch connections API endpoint with inpage parameter
|
|
125
|
+
*/
|
|
126
|
+
static GetAllPrefetchConnectionsUrl(): string;
|
|
127
|
+
/**
|
|
128
|
+
* Returns the URL for retrieving all linker connections from a concept.
|
|
129
|
+
* @returns {string} The concept linkers API endpoint
|
|
130
|
+
*/
|
|
131
|
+
static GetAllLinkerConnectionOfConceptUrl(): string;
|
|
132
|
+
/**
|
|
133
|
+
* Returns the URL for retrieving all linker connections to a concept.
|
|
134
|
+
* @returns {string} The reverse concept linkers API endpoint
|
|
135
|
+
*/
|
|
136
|
+
static GetAllLinkerConnectionToConceptUrl(): string;
|
|
137
|
+
/**
|
|
138
|
+
* Returns the URL for deleting a concept.
|
|
139
|
+
* @returns {string} The concept deletion API endpoint
|
|
140
|
+
*/
|
|
141
|
+
static DeleteConceptUrl(): string;
|
|
142
|
+
/**
|
|
143
|
+
* Returns the URL for recursive search of concepts and connections.
|
|
144
|
+
* @returns {string} The recursive search API endpoint
|
|
145
|
+
*/
|
|
146
|
+
static RecursiveSearchUrl(): string;
|
|
147
|
+
/**
|
|
148
|
+
* Returns the URL for searching multiple links in CCS format.
|
|
149
|
+
* @returns {string} The multiple link search API endpoint
|
|
150
|
+
*/
|
|
151
|
+
static SearchLinkMultipleAllApiUrl(): string;
|
|
152
|
+
/**
|
|
153
|
+
* Returns the URL for creating names in the backend.
|
|
154
|
+
* @returns {string} The name creation API endpoint
|
|
155
|
+
*/
|
|
156
|
+
static MakeTheNameInBackendUrl(): string;
|
|
157
|
+
/**
|
|
158
|
+
* Returns the URL for user login authentication.
|
|
159
|
+
* @returns {string} The login API endpoint
|
|
160
|
+
*/
|
|
161
|
+
static LoginUrl(): string;
|
|
162
|
+
/**
|
|
163
|
+
* Returns the URL for user signup/registration.
|
|
164
|
+
* @returns {string} The signup API endpoint
|
|
165
|
+
*/
|
|
166
|
+
static SignupUrl(): string;
|
|
167
|
+
/**
|
|
168
|
+
* Returns the URL for getting composition connections between two concepts.
|
|
169
|
+
* @returns {string} The composition connection API endpoint
|
|
170
|
+
*/
|
|
171
|
+
static GetCompositionConnectionBetweenTwoConceptsUrl(): string;
|
|
172
|
+
/**
|
|
173
|
+
* Returns the URL for searching compositions.
|
|
174
|
+
* @returns {string} The composition search API endpoint
|
|
175
|
+
*/
|
|
176
|
+
static SearchCompositionsUrl(): string;
|
|
177
|
+
/**
|
|
178
|
+
* Returns the URL for searching multiple links.
|
|
179
|
+
* @returns {string} The multiple link search API endpoint
|
|
180
|
+
*/
|
|
181
|
+
static SearchLinkMultipleAll(): string;
|
|
182
|
+
/**
|
|
183
|
+
* Returns the URL for creating remote session IDs.
|
|
184
|
+
* @returns {string} The session ID creation API endpoint
|
|
185
|
+
*/
|
|
186
|
+
static CreateSessionId(): string;
|
|
187
|
+
/**
|
|
188
|
+
* Returns the URL for recording remote session visits.
|
|
189
|
+
* @returns {string} The session visit recording API endpoint
|
|
190
|
+
*/
|
|
191
|
+
static CreateSessionVisitUrl(): string;
|
|
192
|
+
/**
|
|
193
|
+
* Returns the URL for viewing internal CCS data in bulk.
|
|
194
|
+
* @returns {string} The internal data viewing API endpoint
|
|
195
|
+
*/
|
|
196
|
+
static ViewInternalDataUrl(): string;
|
|
197
|
+
/**
|
|
198
|
+
* Returns the URL for searching internal authenticated CCS compositions.
|
|
199
|
+
* @returns {string} The authenticated internal search API endpoint
|
|
200
|
+
*/
|
|
201
|
+
static SearchInternalWithAuthenticatedCcsUrl(): string;
|
|
202
|
+
/**
|
|
203
|
+
* Returns the URL for retrieving reserved concept IDs.
|
|
204
|
+
* @returns {string} The reserved IDs API endpoint
|
|
205
|
+
*/
|
|
206
|
+
static GetReservedIdUrl(): string;
|
|
207
|
+
/**
|
|
208
|
+
* Returns the URL for retrieving reserved connection IDs.
|
|
209
|
+
* @returns {string} The reserved connection IDs API endpoint
|
|
210
|
+
*/
|
|
211
|
+
static GetReservedConnectionIdUrl(): string;
|
|
212
|
+
/**
|
|
213
|
+
* Returns the URL for creating text data.
|
|
214
|
+
* @returns {string} The text data creation API endpoint
|
|
215
|
+
*/
|
|
216
|
+
static CreateTheTextDataUrl(): string;
|
|
217
|
+
/**
|
|
218
|
+
* Returns the URL for creating character data.
|
|
219
|
+
* @returns {string} The character data creation API endpoint
|
|
220
|
+
*/
|
|
221
|
+
static CreateTheCharacterDataUrl(): string;
|
|
222
|
+
/**
|
|
223
|
+
* Returns the URL for creating concepts.
|
|
224
|
+
* @returns {string} The concept creation API endpoint
|
|
225
|
+
*/
|
|
226
|
+
static CreateTheConceptUrl(): string;
|
|
227
|
+
/**
|
|
228
|
+
* Returns the URL for creating connections.
|
|
229
|
+
* @returns {string} The connection creation API endpoint
|
|
230
|
+
*/
|
|
231
|
+
static CreateTheConnectionUrl(): string;
|
|
232
|
+
/**
|
|
233
|
+
* Returns the URL for creating connections using the new endpoint.
|
|
234
|
+
* @returns {string} The new connection creation API endpoint
|
|
235
|
+
*/
|
|
236
|
+
static CreateTheConnectionNewUrl(): string;
|
|
237
|
+
/**
|
|
238
|
+
* Returns the URL for creating type concepts.
|
|
239
|
+
* @returns {string} The type concept creation API endpoint
|
|
240
|
+
*/
|
|
241
|
+
static MakeTheTypeConceptUrl(): string;
|
|
242
|
+
/**
|
|
243
|
+
* Returns the URL for deleting a single connection.
|
|
244
|
+
* @returns {string} The connection deletion API endpoint
|
|
245
|
+
*/
|
|
246
|
+
static DeleteTheConnectionUrl(): string;
|
|
247
|
+
/**
|
|
248
|
+
* Returns the URL for deleting multiple connections in bulk.
|
|
249
|
+
* @returns {string} The bulk connection deletion API endpoint
|
|
250
|
+
*/
|
|
251
|
+
static DeleteTheConnectionBulkUrl(): string;
|
|
252
|
+
/**
|
|
253
|
+
* Returns the URL for executing FreeSchema queries.
|
|
254
|
+
* @returns {string} The FreeSchema query API endpoint
|
|
255
|
+
*/
|
|
256
|
+
static FreeschemaQueryUrl(): string;
|
|
257
|
+
/**
|
|
258
|
+
* Returns the URL for retrieving type concepts by character in bulk.
|
|
259
|
+
* @returns {string} The bulk type concept retrieval API endpoint
|
|
260
|
+
*/
|
|
261
|
+
static GetConceptConnectionByType(): string;
|
|
262
|
+
}
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview BinaryCharacterTree module providing self-balancing AVL tree for concept storage by character value.
|
|
3
|
+
* This module implements an AVL tree structure for efficient concept retrieval using string-based keys
|
|
4
|
+
* with support for variant nodes (multiple concepts with the same character value).
|
|
5
|
+
* @module DataStructures/BinaryCharacterTree
|
|
6
|
+
*/
|
|
7
|
+
import { Concept } from "../DataStructures/Concept";
|
|
8
|
+
import { Node } from "./Node";
|
|
9
|
+
/**
|
|
10
|
+
* Self-balancing AVL binary tree for storing and retrieving concepts by their character value.
|
|
11
|
+
* Supports multiple concepts with the same character value through variant nodes.
|
|
12
|
+
* Provides O(log n) time complexity for insertions, deletions, and lookups.
|
|
13
|
+
*
|
|
14
|
+
* @class BinaryCharacterTree
|
|
15
|
+
* @example
|
|
16
|
+
* ```typescript
|
|
17
|
+
* // Add a concept to the tree
|
|
18
|
+
* BinaryCharacterTree.addConceptToTree(myConcept);
|
|
19
|
+
*
|
|
20
|
+
* // Retrieve a concept by character value
|
|
21
|
+
* const node = BinaryCharacterTree.getNodeFromTree("Apple");
|
|
22
|
+
* if (node) {
|
|
23
|
+
* console.log("Found:", node.value.id);
|
|
24
|
+
* }
|
|
25
|
+
*
|
|
26
|
+
* // Get concept by character and type
|
|
27
|
+
* const specificNode = await BinaryCharacterTree.getCharacterAndTypeFromTree("Apple", 5);
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* @remarks
|
|
31
|
+
* This class uses static methods and maintains a single root node for the entire tree.
|
|
32
|
+
* When multiple concepts share the same character value, they are stored as variants.
|
|
33
|
+
*/
|
|
34
|
+
export declare class BinaryCharacterTree {
|
|
35
|
+
/** Root node of the character-based binary tree, null if tree is empty */
|
|
36
|
+
static characterRoot: Node | null;
|
|
37
|
+
/**
|
|
38
|
+
* Waits for the character data loading flag to be set before proceeding.
|
|
39
|
+
* Used for synchronization when loading initial data.
|
|
40
|
+
*
|
|
41
|
+
* @returns {Promise<string>} Resolves with "done" when data is loaded, rejects with "not" after 25 seconds
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```typescript
|
|
45
|
+
* try {
|
|
46
|
+
* await BinaryCharacterTree.waitForDataToLoad();
|
|
47
|
+
* console.log("Character data loaded");
|
|
48
|
+
* } catch (error) {
|
|
49
|
+
* console.log("Character data load timeout");
|
|
50
|
+
* }
|
|
51
|
+
* ```
|
|
52
|
+
*
|
|
53
|
+
* @remarks
|
|
54
|
+
* Uses IdentifierFlags.isCharacterLoaded to determine when data is ready.
|
|
55
|
+
* Times out after 25 seconds to prevent infinite waiting.
|
|
56
|
+
*/
|
|
57
|
+
static waitForDataToLoad(): Promise<unknown>;
|
|
58
|
+
/**
|
|
59
|
+
* Recursively checks if the character data loaded flag is set.
|
|
60
|
+
* Internal helper method for waitForDataToLoad.
|
|
61
|
+
*
|
|
62
|
+
* @param {any} resolve - Promise resolve function
|
|
63
|
+
*
|
|
64
|
+
* @remarks
|
|
65
|
+
* Checks IdentifierFlags.isCharacterLoaded every 1000ms until it's true.
|
|
66
|
+
* This is an internal method used by waitForDataToLoad.
|
|
67
|
+
*/
|
|
68
|
+
static checkFlag(resolve: any): any;
|
|
69
|
+
/**
|
|
70
|
+
* Adds a node to the character-based binary tree, maintaining AVL balance.
|
|
71
|
+
* Supports adding variant nodes for concepts with the same character value.
|
|
72
|
+
*
|
|
73
|
+
* @param {Node} node - The node to add to the tree
|
|
74
|
+
* @returns {Promise<Node>} The new root node after insertion and balancing
|
|
75
|
+
*
|
|
76
|
+
* @example
|
|
77
|
+
* ```typescript
|
|
78
|
+
* const node = new Node("Apple", myConcept, null, null);
|
|
79
|
+
* await BinaryCharacterTree.addNodeToTree(node);
|
|
80
|
+
* ```
|
|
81
|
+
*
|
|
82
|
+
* @remarks
|
|
83
|
+
* If the tree is empty, the node becomes the root.
|
|
84
|
+
* If a node with the same character value exists, the new concept is added as a variant.
|
|
85
|
+
*/
|
|
86
|
+
static addNodeToTree(node: Node): Promise<Node | null>;
|
|
87
|
+
/**
|
|
88
|
+
* Removes a specific concept from a character node by character value and concept ID.
|
|
89
|
+
*
|
|
90
|
+
* @param {string} character - The character value to search for
|
|
91
|
+
* @param {number} id - The concept ID to remove
|
|
92
|
+
*
|
|
93
|
+
* @example
|
|
94
|
+
* ```typescript
|
|
95
|
+
* await BinaryCharacterTree.removeNodeByCharacter("Apple", 123);
|
|
96
|
+
* ```
|
|
97
|
+
*
|
|
98
|
+
* @remarks
|
|
99
|
+
* If multiple concepts share the same character value, only the one with matching ID is removed.
|
|
100
|
+
* Does nothing if the tree is empty.
|
|
101
|
+
*/
|
|
102
|
+
static removeNodeByCharacter(character: string, id: number): Promise<void>;
|
|
103
|
+
/**
|
|
104
|
+
* Counts the total number of nodes in the character tree.
|
|
105
|
+
*
|
|
106
|
+
* @returns {number} The total count of nodes in the tree
|
|
107
|
+
*
|
|
108
|
+
* @example
|
|
109
|
+
* ```typescript
|
|
110
|
+
* const nodeCount = BinaryCharacterTree.countNumberOfNodes();
|
|
111
|
+
* console.log(`Tree contains ${nodeCount} character nodes`);
|
|
112
|
+
* ```
|
|
113
|
+
*
|
|
114
|
+
* @remarks
|
|
115
|
+
* Recursively traverses the entire tree to count nodes.
|
|
116
|
+
* Returns 0 if the tree is empty.
|
|
117
|
+
*/
|
|
118
|
+
static countNumberOfNodes(): number;
|
|
119
|
+
/**
|
|
120
|
+
* Convenience method to add a concept to the character tree.
|
|
121
|
+
*
|
|
122
|
+
* @param {Concept} concept - The concept to add to the tree
|
|
123
|
+
*
|
|
124
|
+
* @example
|
|
125
|
+
* ```typescript
|
|
126
|
+
* BinaryCharacterTree.addConceptToTree(myConcept);
|
|
127
|
+
* ```
|
|
128
|
+
*
|
|
129
|
+
* @remarks
|
|
130
|
+
* Only adds concepts with non-empty character values.
|
|
131
|
+
* Creates a node with the concept's character value as the key.
|
|
132
|
+
*/
|
|
133
|
+
static addConceptToTree(concept: Concept): void;
|
|
134
|
+
/**
|
|
135
|
+
* Retrieves a node from the tree by its character value.
|
|
136
|
+
*
|
|
137
|
+
* @param {string} value - The character value to search for
|
|
138
|
+
* @returns {Node | null} The node if found, null otherwise
|
|
139
|
+
*
|
|
140
|
+
* @example
|
|
141
|
+
* ```typescript
|
|
142
|
+
* const node = BinaryCharacterTree.getNodeFromTree("Apple");
|
|
143
|
+
* if (node) {
|
|
144
|
+
* const concept = node.value as Concept;
|
|
145
|
+
* console.log(concept.id);
|
|
146
|
+
* }
|
|
147
|
+
* ```
|
|
148
|
+
*
|
|
149
|
+
* @remarks
|
|
150
|
+
* Uses binary search for O(log n) time complexity.
|
|
151
|
+
* Returns the main node; access variants through node.variants property.
|
|
152
|
+
*/
|
|
153
|
+
static getNodeFromTree(value: string): Node | null;
|
|
154
|
+
/**
|
|
155
|
+
* Retrieves a node from the tree by its character value (updated version).
|
|
156
|
+
* Currently identical to getNodeFromTree.
|
|
157
|
+
*
|
|
158
|
+
* @param {string} value - The character value to search for
|
|
159
|
+
* @returns {Node | null} The node if found, null otherwise
|
|
160
|
+
*
|
|
161
|
+
* @example
|
|
162
|
+
* ```typescript
|
|
163
|
+
* const node = BinaryCharacterTree.getNodeFromTreeUpdated("Apple");
|
|
164
|
+
* ```
|
|
165
|
+
*
|
|
166
|
+
* @remarks
|
|
167
|
+
* This method may be deprecated or merged with getNodeFromTree in future versions.
|
|
168
|
+
*/
|
|
169
|
+
static getNodeFromTreeUpdated(value: string): Node | null;
|
|
170
|
+
/**
|
|
171
|
+
* Retrieves a node matching both character value and type ID.
|
|
172
|
+
* Searches through variants to find the specific type match.
|
|
173
|
+
*
|
|
174
|
+
* @param {string} value - The character value to search for
|
|
175
|
+
* @param {number} typeId - The type ID to filter by
|
|
176
|
+
* @returns {Promise<Node | null>} The node matching both criteria, null if not found
|
|
177
|
+
*
|
|
178
|
+
* @example
|
|
179
|
+
* ```typescript
|
|
180
|
+
* const node = await BinaryCharacterTree.getCharacterAndTypeFromTree("Apple", 5);
|
|
181
|
+
* if (node) {
|
|
182
|
+
* console.log("Found Apple of type 5");
|
|
183
|
+
* }
|
|
184
|
+
* ```
|
|
185
|
+
*
|
|
186
|
+
* @remarks
|
|
187
|
+
* First finds the character node, then searches through variants for matching type.
|
|
188
|
+
* Returns null if no match is found.
|
|
189
|
+
*/
|
|
190
|
+
static getCharacterAndTypeFromTree(value: string, typeId: number): Promise<Node | null>;
|
|
191
|
+
/**
|
|
192
|
+
* Retrieves a node matching both character value and category ID.
|
|
193
|
+
* Searches through variants to find the specific category match.
|
|
194
|
+
*
|
|
195
|
+
* @param {string} value - The character value to search for
|
|
196
|
+
* @param {number} categoryId - The category ID to filter by
|
|
197
|
+
* @returns {Promise<Node | null>} The node matching both criteria, null if not found
|
|
198
|
+
*
|
|
199
|
+
* @example
|
|
200
|
+
* ```typescript
|
|
201
|
+
* const node = await BinaryCharacterTree.getCharacterAndCategoryFromTree("Apple", 3);
|
|
202
|
+
* if (node) {
|
|
203
|
+
* console.log("Found Apple in category 3");
|
|
204
|
+
* }
|
|
205
|
+
* ```
|
|
206
|
+
*
|
|
207
|
+
* @remarks
|
|
208
|
+
* First finds the character node, then searches through variants for matching category.
|
|
209
|
+
* Returns null if no match is found.
|
|
210
|
+
*/
|
|
211
|
+
static getCharacterAndCategoryFromTree(value: string, categoryId: number): Promise<Node | null>;
|
|
212
|
+
/**
|
|
213
|
+
* Removes a concept from the character tree by its ID.
|
|
214
|
+
*
|
|
215
|
+
* @param {number} id - The concept ID to remove
|
|
216
|
+
*
|
|
217
|
+
* @example
|
|
218
|
+
* ```typescript
|
|
219
|
+
* BinaryCharacterTree.removeConceptCharacter(123);
|
|
220
|
+
* ```
|
|
221
|
+
*
|
|
222
|
+
* @remarks
|
|
223
|
+
* After removal, the tree is automatically rebalanced to maintain AVL properties.
|
|
224
|
+
* Does nothing if the tree is empty.
|
|
225
|
+
*/
|
|
226
|
+
static removeConceptCharacter(id: number): void;
|
|
227
|
+
}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview BinaryTree module providing self-balancing AVL tree for concept storage by ID.
|
|
3
|
+
* This module implements an AVL (Adelson-Velsky and Landis) tree structure for efficient
|
|
4
|
+
* concept retrieval with O(log n) time complexity.
|
|
5
|
+
* @module DataStructures/BinaryTree
|
|
6
|
+
*/
|
|
7
|
+
import { Concept } from "../DataStructures/Concept";
|
|
8
|
+
import { Node } from "./Node";
|
|
9
|
+
/**
|
|
10
|
+
* Self-balancing AVL binary tree for storing and retrieving concepts by their numeric ID.
|
|
11
|
+
* Provides O(log n) time complexity for insertions, deletions, and lookups.
|
|
12
|
+
*
|
|
13
|
+
* @class BinaryTree
|
|
14
|
+
* @example
|
|
15
|
+
* ```typescript
|
|
16
|
+
* // Add a concept to the tree
|
|
17
|
+
* BinaryTree.addConceptToTree(myConcept);
|
|
18
|
+
*
|
|
19
|
+
* // Retrieve a concept by ID
|
|
20
|
+
* const node = await BinaryTree.getNodeFromTree(123);
|
|
21
|
+
* if (node) {
|
|
22
|
+
* console.log("Found:", node.value.characterValue);
|
|
23
|
+
* }
|
|
24
|
+
*
|
|
25
|
+
* // Count all nodes
|
|
26
|
+
* const count = BinaryTree.countNumberOfNodes();
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* @remarks
|
|
30
|
+
* This class uses static methods and maintains a single root node for the entire tree.
|
|
31
|
+
* The tree automatically balances itself using AVL rotations to maintain optimal search performance.
|
|
32
|
+
*/
|
|
33
|
+
export declare class BinaryTree {
|
|
34
|
+
/** Root node of the binary tree, null if tree is empty */
|
|
35
|
+
static root: Node | null;
|
|
36
|
+
/**
|
|
37
|
+
* Adds a node to the binary tree, maintaining AVL balance.
|
|
38
|
+
*
|
|
39
|
+
* @param {Node} node - The node to add to the tree
|
|
40
|
+
* @returns {Node} The new root node after insertion and balancing
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```typescript
|
|
44
|
+
* const node = new Node(123, myConcept, null, null);
|
|
45
|
+
* BinaryTree.addNodeToTree(node);
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
48
|
+
* @remarks
|
|
49
|
+
* If the tree is empty, the node becomes the root.
|
|
50
|
+
* Otherwise, the node is inserted and the tree is automatically balanced.
|
|
51
|
+
*/
|
|
52
|
+
static addNodeToTree(node: Node): Node | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* Waits for the data loading flag to be set before proceeding.
|
|
55
|
+
* Used for synchronization when loading initial data.
|
|
56
|
+
*
|
|
57
|
+
* @returns {Promise<string>} Resolves with "done" when data is loaded, rejects with "not" after 25 seconds
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* ```typescript
|
|
61
|
+
* try {
|
|
62
|
+
* await BinaryTree.waitForDataToLoad();
|
|
63
|
+
* console.log("Data loaded successfully");
|
|
64
|
+
* } catch (error) {
|
|
65
|
+
* console.log("Data load timeout");
|
|
66
|
+
* }
|
|
67
|
+
* ```
|
|
68
|
+
*
|
|
69
|
+
* @remarks
|
|
70
|
+
* Uses IdentifierFlags.isDataLoaded to determine when data is ready.
|
|
71
|
+
* Times out after 25 seconds to prevent infinite waiting.
|
|
72
|
+
*/
|
|
73
|
+
static waitForDataToLoad(): Promise<unknown>;
|
|
74
|
+
/**
|
|
75
|
+
* Recursively checks if the data loaded flag is set.
|
|
76
|
+
* Internal helper method for waitForDataToLoad.
|
|
77
|
+
*
|
|
78
|
+
* @param {any} resolve - Promise resolve function
|
|
79
|
+
*
|
|
80
|
+
* @remarks
|
|
81
|
+
* Checks IdentifierFlags.isDataLoaded every 1000ms until it's true.
|
|
82
|
+
* This is an internal method used by waitForDataToLoad.
|
|
83
|
+
*/
|
|
84
|
+
static checkFlag(resolve: any): any;
|
|
85
|
+
/**
|
|
86
|
+
* Convenience method to add a concept to both the ID tree and character tree.
|
|
87
|
+
*
|
|
88
|
+
* @param {Concept} concept - The concept to add to the tree
|
|
89
|
+
*
|
|
90
|
+
* @example
|
|
91
|
+
* ```typescript
|
|
92
|
+
* BinaryTree.addConceptToTree(myConcept);
|
|
93
|
+
* ```
|
|
94
|
+
*
|
|
95
|
+
* @remarks
|
|
96
|
+
* Creates a node with the concept's ID as the key and adds it to this tree.
|
|
97
|
+
* Also creates a node with the concept's character value and adds it to BinaryCharacterTree.
|
|
98
|
+
*/
|
|
99
|
+
static addConceptToTree(concept: Concept): void;
|
|
100
|
+
/**
|
|
101
|
+
* Retrieves a node from the tree by its ID.
|
|
102
|
+
*
|
|
103
|
+
* @param {number} id - The concept ID to search for
|
|
104
|
+
* @returns {Promise<Node | null>} The node if found, null otherwise
|
|
105
|
+
*
|
|
106
|
+
* @example
|
|
107
|
+
* ```typescript
|
|
108
|
+
* const node = await BinaryTree.getNodeFromTree(123);
|
|
109
|
+
* if (node) {
|
|
110
|
+
* const concept = node.value as Concept;
|
|
111
|
+
* console.log(concept.characterValue);
|
|
112
|
+
* }
|
|
113
|
+
* ```
|
|
114
|
+
*
|
|
115
|
+
* @remarks
|
|
116
|
+
* Uses binary search for O(log n) time complexity.
|
|
117
|
+
* Returns null if the tree is empty or the node is not found.
|
|
118
|
+
*/
|
|
119
|
+
static getNodeFromTree(id: number): Promise<Node | null>;
|
|
120
|
+
/**
|
|
121
|
+
* Removes a node from the tree by its ID.
|
|
122
|
+
*
|
|
123
|
+
* @param {number} id - The concept ID to remove
|
|
124
|
+
*
|
|
125
|
+
* @example
|
|
126
|
+
* ```typescript
|
|
127
|
+
* await BinaryTree.removeNodeFromTree(123);
|
|
128
|
+
* ```
|
|
129
|
+
*
|
|
130
|
+
* @remarks
|
|
131
|
+
* After removal, the tree is automatically rebalanced to maintain AVL properties.
|
|
132
|
+
* Does nothing if the tree is empty.
|
|
133
|
+
*/
|
|
134
|
+
static removeNodeFromTree(id: number): Promise<void>;
|
|
135
|
+
/**
|
|
136
|
+
* Counts the total number of nodes in the tree.
|
|
137
|
+
*
|
|
138
|
+
* @returns {number} The total count of nodes in the tree
|
|
139
|
+
*
|
|
140
|
+
* @example
|
|
141
|
+
* ```typescript
|
|
142
|
+
* const nodeCount = BinaryTree.countNumberOfNodes();
|
|
143
|
+
* console.log(`Tree contains ${nodeCount} concepts`);
|
|
144
|
+
* ```
|
|
145
|
+
*
|
|
146
|
+
* @remarks
|
|
147
|
+
* Recursively traverses the entire tree to count nodes.
|
|
148
|
+
* Returns 0 if the tree is empty.
|
|
149
|
+
*/
|
|
150
|
+
static countNumberOfNodes(): number;
|
|
151
|
+
}
|