mftsccs-node 0.0.70 → 0.0.71
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 +8 -30
- package/dist/bundle.js +1 -1
- package/dist/bundle.mjs +1 -0
- package/dist/types/Api/Create/CreateTheConnectionApi.d.ts +4 -9
- package/dist/types/Api/GetAllConcepts.d.ts +0 -4
- package/dist/types/Api/GetAllLinkerConnectionsFromTheConcept.d.ts +1 -1
- package/dist/types/Api/GetAllLinkerConnectionsToTheConcept.d.ts +1 -1
- package/dist/types/Api/GetAllPrefetchConnections.d.ts +0 -3
- package/dist/types/Api/Search/FreeschemaQueryApi.d.ts +6 -5
- package/dist/types/Api/Search/Search.d.ts +4 -3
- package/dist/types/Api/Search/SearchInternalApi.d.ts +5 -4
- package/dist/types/Api/Search/SearchLinkMultipleApi.d.ts +4 -4
- package/dist/types/Api/Search/SearchWithLinker.d.ts +5 -4
- package/dist/types/Api/SearchConcept/GetConceptByCharacterAndCategoryApi.d.ts +3 -2
- package/dist/types/Api/SearchConcept/GetConceptByCharacterAndCategoryDirect.d.ts +3 -2
- package/dist/types/Api/View/ViewInternalDataApi.d.ts +3 -4
- package/dist/types/DataStructures/ReservedIds.d.ts +1 -0
- package/dist/types/Database/NoIndexDb.d.ts +32 -36
- package/dist/types/Services/Common/DecodeCountInfo.d.ts +4 -3
- package/dist/types/Services/Common/ErrorPosting.d.ts +5 -7
- package/dist/types/Services/CreateConnectionBetweenTwoConcepts.d.ts +4 -3
- package/dist/types/Services/CreateTheComposition.d.ts +2 -2
- package/dist/types/Services/CreateTheConnection.d.ts +3 -3
- package/dist/types/Services/CreateTheConnectionGeneral.d.ts +3 -3
- package/dist/types/Services/GetDataFromIndexDb.d.ts +8 -8
- package/dist/types/Services/Http/HttpClient.service.d.ts +7 -0
- package/dist/types/Services/MakeTheTimestamp.d.ts +2 -2
- package/dist/types/Services/PatchComposition.d.ts +10 -15
- package/dist/types/Services/UpdateComposition.d.ts +1 -1
- package/dist/types/app.d.ts +18 -22
- package/package.json +13 -5
package/dist/types/app.d.ts
CHANGED
|
@@ -7,23 +7,19 @@
|
|
|
7
7
|
* @see {@link https://documentation.freeschema.com} for detailed documentation
|
|
8
8
|
*/
|
|
9
9
|
export { init, updateAccessToken };
|
|
10
|
-
export { getOAuthToken, refreshOAuthToken
|
|
11
|
-
export {
|
|
10
|
+
export { getOAuthToken, refreshOAuthToken } from './Services/oauth/CallOauth.service';
|
|
11
|
+
export type { OAuthResponse } from './Services/oauth/CallOauth.service';
|
|
12
|
+
export { requestWithRetry, postWithRetry, getWithRetry, putWithRetry, deleteWithRetry, patchWithRetry, fetchWithRetry, HttpResponse, TokenRefreshError } from './Services/Http/HttpClient.service';
|
|
12
13
|
export { SplitStrings } from './Services/SplitStrings';
|
|
13
14
|
export { GetRequestHeader, GetRequestHeaderWithAuthorization } from './Services/Security/GetRequestHeader';
|
|
14
15
|
export { GetCompositionList, GetCompositionListWithId } from './Services/GetCompositionList';
|
|
15
|
-
export { GetCompositionListLocal, GetCompositionListLocalWithId } from './Services/Local/GetCompositionListLocal';
|
|
16
16
|
export { GetAllConnectionsOfComposition } from './Api/GetAllConnectionsOfComposition';
|
|
17
17
|
export { GetComposition, GetCompositionWithId, recursiveFetch, GetCompositionWithAllIds } from './Services/GetComposition';
|
|
18
|
-
export { GetCompositionLocal, GetCompositionLocalWithId } from './Services/Local/GetCompositionLocal';
|
|
19
18
|
export { default as CreateComposition } from './Services/CreateTheComposition';
|
|
20
|
-
export { CreateTheCompositionLocal } from './Services/Local/CreateTheCompositionLocal';
|
|
21
19
|
export { CreateConnectionBetweenTwoConcepts, CreateConnectionBetweenTwoConceptsGeneral } from './Services/CreateConnectionBetweenTwoConcepts';
|
|
22
20
|
export { default as GetTheConcept } from './Services/GetTheConcept';
|
|
23
21
|
export { default as MakeTheInstanceConcept } from './Services/MakeTheInstanceConcept';
|
|
24
|
-
export { MakeTheInstanceConceptLocal } from './Services/Local/MakeTheInstanceConceptLocal';
|
|
25
22
|
export { storeToDatabase, getFromDatabaseWithType, getFromDatabaseWithTypeOld } from './Database/NoIndexDb';
|
|
26
|
-
export { createTheConnection as CreateTheConnection } from './Services/CreateTheConnection';
|
|
27
23
|
export { default as GetConceptByCharacter } from './Services/GetConceptByCharacter';
|
|
28
24
|
export { GetLink, GetLinkRaw } from './Services/GetLink';
|
|
29
25
|
export { CreateDefaultConcept } from './Services/CreateDefaultConcept';
|
|
@@ -54,12 +50,9 @@ export {} from './Api/GetConceptByCharacterAndType';
|
|
|
54
50
|
export { GetRelation, GetRelationRaw } from './Services/GetRelation';
|
|
55
51
|
export { recursiveFetchNew } from './Services/Composition/BuildComposition';
|
|
56
52
|
export { CreateTheCompositionWithCache } from './Services/Composition/CreateCompositionCache';
|
|
57
|
-
export { CreateDefaultLConcept } from './Services/Local/CreateDefaultLConcept';
|
|
58
53
|
export { CreateTheConnectionGeneral, CreateConnection } from './Services/CreateTheConnectionGeneral';
|
|
59
|
-
export { CreateTheConnectionLocal } from './Services/Local/CreateTheConnectionLocal';
|
|
60
54
|
export { GetUserGhostId, AddGhostConcept, GetUserGhostConnectionId, AddGhostConnection } from './Services/User/UserTranslation';
|
|
61
55
|
export { SearchLinkMultipleAll, FormatFromConnections } from './Services/Search/SearchLinkMultiple';
|
|
62
|
-
export { UpdateCompositionLocal } from './Services/Local/UpdateCompositionLocal';
|
|
63
56
|
export { GetCompositionFromConnectionsWithDataIdInObject } from './Services/GetCompositionBulk';
|
|
64
57
|
export { ViewInternalData } from './Services/View/ViewInternalData';
|
|
65
58
|
export { convertFromLConceptToConcept } from './Services/Conversion/ConvertConcepts';
|
|
@@ -80,9 +73,9 @@ export { ConceptsData } from './DataStructures/ConceptData';
|
|
|
80
73
|
export { ConnectionData } from './DataStructures/ConnectionData';
|
|
81
74
|
export { BinaryTree } from './DataStructures/BinaryTree';
|
|
82
75
|
export { SearchQuery } from './DataStructures/SearchQuery';
|
|
83
|
-
export { SignupModel } from './DataStructures/SignupModel';
|
|
84
|
-
export { SigninModel } from './DataStructures/SigninModel';
|
|
85
|
-
export { FreeschemaResponse } from './DataStructures/Responses/StandardResponses';
|
|
76
|
+
export type { SignupModel } from './DataStructures/SignupModel';
|
|
77
|
+
export type { SigninModel } from './DataStructures/SigninModel';
|
|
78
|
+
export type { FreeschemaResponse } from './DataStructures/Responses/StandardResponses';
|
|
86
79
|
export { PatcherStructure } from './DataStructures/PatcherStructure';
|
|
87
80
|
export { SessionData } from './DataStructures/Session/SessionData';
|
|
88
81
|
export { Composition } from './DataStructures/Composition/Composition';
|
|
@@ -100,9 +93,11 @@ export { SchemaQueryListener } from './WrapperFunctions/SchemaQueryObservable';
|
|
|
100
93
|
export { FreeschemaQuery } from './DataStructures/Search/FreeschemaQuery';
|
|
101
94
|
export { GiveConnection, GetAllTheConnectionsByTypeAndOfTheConcept } from './Services/Delete/GetAllConnectionByType';
|
|
102
95
|
export { GetConnectionsBetweenApi } from './Api/GetConnections/GetConnectionsBetweenApi';
|
|
103
|
-
export {
|
|
96
|
+
export { buildFetchConnection } from './DataStructures/FetchConnection';
|
|
97
|
+
export type { FetchConnection, FetchConnectionQuery } from './DataStructures/FetchConnection';
|
|
104
98
|
export { DATAID, NORMAL, JUSTDATA, ALLID, DATAIDDATE, RAW, LISTNORMAL, DATAV2 } from './Constants/FormatConstants';
|
|
105
|
-
export { Transaction
|
|
99
|
+
export { Transaction } from './DataStructures/Transaction/Transaction';
|
|
100
|
+
export type { InnerActions } from './DataStructures/Transaction/Transaction';
|
|
106
101
|
export { ReservedIds, ReservedConnectionIds } from './DataStructures/ReservedIds';
|
|
107
102
|
/**
|
|
108
103
|
* Updates the bearer access token used for authenticating API requests to the backend.
|
|
@@ -127,11 +122,11 @@ declare function updateAccessToken(accessToken?: string): void;
|
|
|
127
122
|
*
|
|
128
123
|
* 1. Sets up base URLs for the main API and AI services
|
|
129
124
|
* 2. Stores the authentication token for API requests (or obtains one via OAuth)
|
|
130
|
-
* 3. Initializes the system
|
|
125
|
+
* 3. Initializes the system and process-local compatibility store
|
|
131
126
|
* 4. Creates binary trees from concept data for efficient querying (by ID, character, and type)
|
|
132
|
-
* 5. Creates local binary trees for
|
|
133
|
-
* 6. Loads connection data from
|
|
134
|
-
* 7. Loads local connection data
|
|
127
|
+
* 5. Creates local binary trees for compatibility with frontend-origin APIs
|
|
128
|
+
* 6. Loads connection data from process-local storage into memory
|
|
129
|
+
* 7. Loads local connection data from process-local storage
|
|
135
130
|
*
|
|
136
131
|
* All data loading operations run in parallel for optimal performance. The IdentifierFlags
|
|
137
132
|
* are updated as each operation completes to indicate which data structures are ready for use.
|
|
@@ -188,8 +183,9 @@ declare function updateAccessToken(accessToken?: string): void;
|
|
|
188
183
|
* ```
|
|
189
184
|
*
|
|
190
185
|
* @remarks
|
|
191
|
-
* The initialization process
|
|
192
|
-
*
|
|
186
|
+
* The initialization process returns a Promise that resolves after OAuth setup,
|
|
187
|
+
* system initialization, and all cache hydration tasks complete. IdentifierFlags
|
|
188
|
+
* are also updated for consumers that poll readiness:
|
|
193
189
|
* - `isDataLoaded`, `isCharacterLoaded`, `isTypeLoaded` - Remote concept data ready
|
|
194
190
|
* - `isLocalDataLoaded`, `isLocalTypeLoaded`, `isLocalCharacterLoaded` - Local concept data ready
|
|
195
191
|
* - `isConnectionLoaded`, `isConnectionTypeLoaded` - Remote connection data ready
|
|
@@ -201,4 +197,4 @@ declare function updateAccessToken(accessToken?: string): void;
|
|
|
201
197
|
* @see CreateBinaryTreeFromData for concept tree creation
|
|
202
198
|
* @see https://documentation.freeschema.com/#installation for setup guide
|
|
203
199
|
*/
|
|
204
|
-
declare function init(url?: string, nodeUrl?: string, applicationName?: string, config?: CCSConfig): void
|
|
200
|
+
declare function init(url?: string, nodeUrl?: string, applicationName?: string, config?: CCSConfig): Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,10 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mftsccs-node",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.71",
|
|
4
4
|
"environment": "production",
|
|
5
5
|
"description": "Full Pack of concept and connection system",
|
|
6
6
|
"main": "dist/bundle.js",
|
|
7
|
+
"module": "dist/bundle.mjs",
|
|
7
8
|
"types": "dist/types/app.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/types/app.d.ts",
|
|
12
|
+
"import": "./dist/bundle.mjs",
|
|
13
|
+
"require": "./dist/bundle.js",
|
|
14
|
+
"default": "./dist/bundle.js"
|
|
15
|
+
},
|
|
16
|
+
"./dist/*": "./dist/*",
|
|
17
|
+
"./package.json": "./package.json"
|
|
18
|
+
},
|
|
8
19
|
"files": [
|
|
9
20
|
"dist",
|
|
10
21
|
"LICENSE",
|
|
@@ -14,10 +25,7 @@
|
|
|
14
25
|
"scripts": {
|
|
15
26
|
"start": "npx webpack",
|
|
16
27
|
"dev": "webpack --env NODE_ENV=development --mode development",
|
|
17
|
-
"build": "webpack --config webpack.config.js
|
|
18
|
-
"watch": "webpack --config webpack.config.js --env NODE_ENV=development --env watch=true --mode development",
|
|
19
|
-
"schemaquery:test": "npm run build -- --env watch=false && node scripts/run-schema-query.js",
|
|
20
|
-
"schemaquery:test:built": "node scripts/run-schema-query.js"
|
|
28
|
+
"build": "webpack --config webpack.config.js"
|
|
21
29
|
},
|
|
22
30
|
"devDependencies": {
|
|
23
31
|
"dotenv-webpack": "^8.0.1",
|