mftsccs-browser 1.1.58-beta → 1.1.60-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.
- package/dist/main.bundle.js +660 -56
- package/dist/main.bundle.js.map +1 -1
- package/dist/serviceWorker.bundle.js +658 -55
- package/dist/serviceWorker.bundle.js.map +1 -1
- package/dist/types/AccessTracker/accessTracker.d.ts +63 -0
- package/dist/types/DataStructures/BaseUrl.d.ts +3 -0
- package/dist/types/Services/Search/FormatData.d.ts +21 -0
- package/dist/types/Services/Search/SearchWithTypeAndLinker.d.ts +11 -0
- package/dist/types/app.d.ts +1 -0
- package/package.json +1 -1
package/dist/main.bundle.js
CHANGED
|
@@ -1,5 +1,292 @@
|
|
|
1
1
|
/******/ var __webpack_modules__ = ({
|
|
2
2
|
|
|
3
|
+
/***/ "./src/AccessTracker/accessTracker.ts":
|
|
4
|
+
/*!********************************************!*\
|
|
5
|
+
!*** ./src/AccessTracker/accessTracker.ts ***!
|
|
6
|
+
\********************************************/
|
|
7
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
8
|
+
|
|
9
|
+
__webpack_require__.r(__webpack_exports__);
|
|
10
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
11
|
+
/* harmony export */ AccessTracker: () => (/* binding */ AccessTracker)
|
|
12
|
+
/* harmony export */ });
|
|
13
|
+
/* harmony import */ var _app__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../app */ "./src/app.ts");
|
|
14
|
+
/* harmony import */ var _DataStructures_Security_TokenStorage__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../DataStructures/Security/TokenStorage */ "./src/DataStructures/Security/TokenStorage.ts");
|
|
15
|
+
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
var _a;
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class AccessTracker {
|
|
28
|
+
/**
|
|
29
|
+
* Increments the count for a specific conceptId.
|
|
30
|
+
*/
|
|
31
|
+
static incrementConcept(conceptId) {
|
|
32
|
+
this.conceptsData[conceptId] = (this.conceptsData[conceptId] || 0) + 1;
|
|
33
|
+
this.saveDataToLocalStorage();
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Increments the count for a specific connectionId.
|
|
37
|
+
*/
|
|
38
|
+
static incrementConnection(connectionId) {
|
|
39
|
+
this.connectionsData[connectionId] = (this.connectionsData[connectionId] || 0) + 1;
|
|
40
|
+
this.saveDataToLocalStorage();
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Retrieves the top N concepts by their counts.
|
|
44
|
+
*/
|
|
45
|
+
static getTopConcepts(n) {
|
|
46
|
+
return Object.entries(this.conceptsData)
|
|
47
|
+
.map(([key, value]) => [parseInt(key), value])
|
|
48
|
+
.sort((a, b) => b[1] - a[1])
|
|
49
|
+
.slice(0, n);
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Retrieves the top N connections by their counts.
|
|
53
|
+
*/
|
|
54
|
+
static getTopConnections(n) {
|
|
55
|
+
return Object.entries(this.connectionsData)
|
|
56
|
+
.map(([key, value]) => [parseInt(key), value])
|
|
57
|
+
.sort((a, b) => b[1] - a[1])
|
|
58
|
+
.slice(0, n);
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Saves the concept and connection data to localStorage.
|
|
62
|
+
*/
|
|
63
|
+
static saveDataToLocalStorage() {
|
|
64
|
+
const data = {
|
|
65
|
+
concepts: this.conceptsData,
|
|
66
|
+
connections: this.connectionsData
|
|
67
|
+
};
|
|
68
|
+
localStorage.setItem('trackerData', JSON.stringify(data));
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Loads the concept and connection data from localStorage.
|
|
72
|
+
*/
|
|
73
|
+
static loadDataFromLocalStorage() {
|
|
74
|
+
const savedData = localStorage.getItem('trackerData');
|
|
75
|
+
if (savedData) {
|
|
76
|
+
const data = JSON.parse(savedData);
|
|
77
|
+
this.conceptsData = data.concepts || {};
|
|
78
|
+
this.connectionsData = data.connections || {};
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Syncs the concept and connection data with the server.
|
|
83
|
+
*/
|
|
84
|
+
static syncToServer(accessToken) {
|
|
85
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
86
|
+
try {
|
|
87
|
+
// console.log(`Sync started at ${new Date().toISOString()} with token: ${accessToken}`);
|
|
88
|
+
// Ensure conceptsData and connectionsData are not undefined or null
|
|
89
|
+
const conceptsToSend = this.conceptsData && Object.keys(this.conceptsData).length > 0 ? this.conceptsData : {};
|
|
90
|
+
const connectionsToSend = this.connectionsData && Object.keys(this.connectionsData).length > 0 ? this.connectionsData : {};
|
|
91
|
+
// console.log("I am getting url : ", BaseUrl.PostPrefetchConceptConnections());
|
|
92
|
+
const response = yield fetch(_app__WEBPACK_IMPORTED_MODULE_0__.BaseUrl.PostPrefetchConceptConnections(), {
|
|
93
|
+
method: 'POST',
|
|
94
|
+
headers: {
|
|
95
|
+
'Content-Type': 'application/json',
|
|
96
|
+
Authorization: `Bearer ${accessToken}`,
|
|
97
|
+
},
|
|
98
|
+
body: JSON.stringify({
|
|
99
|
+
concepts: conceptsToSend,
|
|
100
|
+
connections: connectionsToSend
|
|
101
|
+
}),
|
|
102
|
+
});
|
|
103
|
+
if (!response.ok) {
|
|
104
|
+
throw new Error('Failed to sync data to the server.');
|
|
105
|
+
}
|
|
106
|
+
const serverData = yield response.json();
|
|
107
|
+
// this.conceptsData = serverData.concepts;
|
|
108
|
+
// this.connectionsData = serverData.connections;
|
|
109
|
+
this.saveDataToLocalStorage();
|
|
110
|
+
// console.log(`Sync successful at ${new Date().toISOString()}`);
|
|
111
|
+
this.setNextSyncTime();
|
|
112
|
+
}
|
|
113
|
+
catch (error) {
|
|
114
|
+
console.error('Sync error:', error);
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Sets the next sync time based on the current time and sync interval.
|
|
120
|
+
*/
|
|
121
|
+
static setNextSyncTime() {
|
|
122
|
+
// Calculate next sync time (current time + TimeToSync interval)
|
|
123
|
+
this.nextSyncTime = Date.now() + this.TimeToSync;
|
|
124
|
+
// console.log(`Next sync scheduled at: ${new Date(this.nextSyncTime).toISOString()}`); // Log next sync time
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Starts auto-syncing to the server every specified time interval.
|
|
128
|
+
* This will automatically call `syncToServer` every 5 minutes
|
|
129
|
+
*/
|
|
130
|
+
static startAutoSync() {
|
|
131
|
+
const tokenString = _DataStructures_Security_TokenStorage__WEBPACK_IMPORTED_MODULE_1__.TokenStorage.BearerAccessToken;
|
|
132
|
+
if (tokenString) {
|
|
133
|
+
// console.log("[AUTO-SYNC] Auto-sync initialized.");
|
|
134
|
+
this.syncNow().catch(console.error);
|
|
135
|
+
}
|
|
136
|
+
setInterval(() => {
|
|
137
|
+
const currentTime = Date.now();
|
|
138
|
+
// console.log(`[CHECK] Current Time: ${new Date(currentTime).toISOString()}`);
|
|
139
|
+
if (currentTime >= this.nextSyncTime) {
|
|
140
|
+
// console.log(`[SYNC TRIGGER] Time to sync! Triggering sync at: ${new Date(currentTime).toISOString()}`);
|
|
141
|
+
this.syncNow().catch(console.error);
|
|
142
|
+
}
|
|
143
|
+
else {
|
|
144
|
+
// console.log(`[WAIT] Not time to sync yet. Next Sync Time: ${new Date(this.nextSyncTime).toISOString()}`);
|
|
145
|
+
}
|
|
146
|
+
}, 1000); // Check every second
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Sync immediately (called by setInterval when time to sync has arrived).
|
|
150
|
+
*/
|
|
151
|
+
static syncNow() {
|
|
152
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
153
|
+
const tokenString = _DataStructures_Security_TokenStorage__WEBPACK_IMPORTED_MODULE_1__.TokenStorage.BearerAccessToken;
|
|
154
|
+
if (tokenString) {
|
|
155
|
+
// console.log(`[MANUAL SYNC] Sync manually triggered at: ${new Date().toISOString()}`);
|
|
156
|
+
yield this.syncToServer(tokenString);
|
|
157
|
+
}
|
|
158
|
+
else {
|
|
159
|
+
console.warn("[MANUAL SYNC] No valid access token found. Sync aborted.");
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* Fetch suggested concepts from the server with proper error handling.
|
|
165
|
+
*/
|
|
166
|
+
static GetSuggestedConcepts(top) {
|
|
167
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
168
|
+
try {
|
|
169
|
+
const accessToken = _DataStructures_Security_TokenStorage__WEBPACK_IMPORTED_MODULE_1__.TokenStorage.BearerAccessToken;
|
|
170
|
+
// Construct the URL with the top parameter if it exists
|
|
171
|
+
const url = new URL(_app__WEBPACK_IMPORTED_MODULE_0__.BaseUrl.GetSuggestedConcepts());
|
|
172
|
+
if (top !== undefined) {
|
|
173
|
+
url.searchParams.append('top', top.toString());
|
|
174
|
+
}
|
|
175
|
+
const response = yield fetch(url.toString(), {
|
|
176
|
+
method: 'GET',
|
|
177
|
+
headers: {
|
|
178
|
+
'Content-Type': 'application/json',
|
|
179
|
+
Authorization: `Bearer ${accessToken}`,
|
|
180
|
+
},
|
|
181
|
+
});
|
|
182
|
+
if (!response.ok) {
|
|
183
|
+
const errorDetails = yield response.text();
|
|
184
|
+
throw new Error(`Failed to load concepts: ${response.status} ${response.statusText}. Details: ${errorDetails}`);
|
|
185
|
+
}
|
|
186
|
+
const concepts = (yield response.json()) || [];
|
|
187
|
+
yield this.addConceptToBinaryTree(concepts.data);
|
|
188
|
+
return concepts;
|
|
189
|
+
}
|
|
190
|
+
catch (error) {
|
|
191
|
+
if (error instanceof Error) {
|
|
192
|
+
console.error('Error fetching suggested concepts:', error.message);
|
|
193
|
+
throw new Error('Unable to fetch suggested concepts. Please try again later.');
|
|
194
|
+
}
|
|
195
|
+
else {
|
|
196
|
+
console.error('An unexpected error occurred:', error);
|
|
197
|
+
throw new Error('An unexpected error occurred while fetching suggested concepts.');
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* Fetch suggested connections from the server with proper error handling.
|
|
204
|
+
*/
|
|
205
|
+
static GetSuggestedConnections(top) {
|
|
206
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
207
|
+
try {
|
|
208
|
+
const accessToken = _DataStructures_Security_TokenStorage__WEBPACK_IMPORTED_MODULE_1__.TokenStorage.BearerAccessToken;
|
|
209
|
+
// Construct the URL with the top parameter if it exists
|
|
210
|
+
const url = new URL(_app__WEBPACK_IMPORTED_MODULE_0__.BaseUrl.GetSuggestedConnections());
|
|
211
|
+
if (top !== undefined) {
|
|
212
|
+
url.searchParams.append('top', top.toString());
|
|
213
|
+
}
|
|
214
|
+
const response = yield fetch(url.toString(), {
|
|
215
|
+
method: 'GET',
|
|
216
|
+
headers: {
|
|
217
|
+
'Content-Type': 'application/json',
|
|
218
|
+
Authorization: `Bearer ${accessToken}`,
|
|
219
|
+
},
|
|
220
|
+
});
|
|
221
|
+
if (!response.ok) {
|
|
222
|
+
const errorDetails = yield response.text();
|
|
223
|
+
throw new Error(`Failed to load connections: ${response.status} ${response.statusText}. Details: ${errorDetails}`);
|
|
224
|
+
}
|
|
225
|
+
const connections = (yield response.json()) || [];
|
|
226
|
+
yield this.addConnectionToBinaryTree(connections.data);
|
|
227
|
+
return connections;
|
|
228
|
+
}
|
|
229
|
+
catch (error) {
|
|
230
|
+
if (error instanceof Error) {
|
|
231
|
+
console.error('Error fetching suggested Connections:', error.message);
|
|
232
|
+
throw new Error('Unable to fetch suggested connections. Please try again later.');
|
|
233
|
+
}
|
|
234
|
+
else {
|
|
235
|
+
console.error('An unexpected error occurred:', error);
|
|
236
|
+
throw new Error('An unexpected error occurred while fetching suggested Connections.');
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* Add Concepts to Binary Tree
|
|
243
|
+
*/
|
|
244
|
+
static addConceptToBinaryTree(conceptsDataArray) {
|
|
245
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
246
|
+
// console.log("Concepts Data Array : ", conceptsDataArray);
|
|
247
|
+
try {
|
|
248
|
+
// console.log("Start Adding Concepts to Binary Tree...");
|
|
249
|
+
conceptsDataArray.forEach(conceptObject => {
|
|
250
|
+
// console.log("Concept Object : ", conceptObject);
|
|
251
|
+
_app__WEBPACK_IMPORTED_MODULE_0__.ConceptsData.AddConcept(conceptObject);
|
|
252
|
+
});
|
|
253
|
+
}
|
|
254
|
+
catch (error) {
|
|
255
|
+
console.error("Error on adding Concepts Data into tree");
|
|
256
|
+
}
|
|
257
|
+
});
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
* Add Concepts to Binary Tree
|
|
261
|
+
*/
|
|
262
|
+
static addConnectionToBinaryTree(connectionsDataArray) {
|
|
263
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
264
|
+
try {
|
|
265
|
+
// console.log("Start Adding Connections to Binary Tree...");
|
|
266
|
+
connectionsDataArray.forEach(connectionObject => {
|
|
267
|
+
// console.log("Connection Object : ", connectionObject);
|
|
268
|
+
_app__WEBPACK_IMPORTED_MODULE_0__.ConnectionData.AddConnection(connectionObject);
|
|
269
|
+
});
|
|
270
|
+
}
|
|
271
|
+
catch (error) {
|
|
272
|
+
console.error("Error on adding Connections Data into tree");
|
|
273
|
+
}
|
|
274
|
+
});
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
_a = AccessTracker;
|
|
278
|
+
AccessTracker.conceptsData = {};
|
|
279
|
+
AccessTracker.connectionsData = {};
|
|
280
|
+
AccessTracker.TimeToSync = 300000;
|
|
281
|
+
AccessTracker.nextSyncTime = Date.now();
|
|
282
|
+
(() => {
|
|
283
|
+
// console.log(`[INIT] Next Sync Time set to: ${new Date(this.nextSyncTime).toISOString()}`);
|
|
284
|
+
_a.startAutoSync();
|
|
285
|
+
})();
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
/***/ }),
|
|
289
|
+
|
|
3
290
|
/***/ "./src/Anomaly/anomaly.ts":
|
|
4
291
|
/*!********************************!*\
|
|
5
292
|
!*** ./src/Anomaly/anomaly.ts ***!
|
|
@@ -3747,6 +4034,15 @@ class BaseUrl {
|
|
|
3747
4034
|
return this.BASE_URL + '/api/get-preloaded-concepts';
|
|
3748
4035
|
// return this.AI_URL + '/api/get_ranked_type_id?inpage=300' || process.env.AI_URL || 'https://ai.freeschema.com/api/get_ranked_type_id?inpage=300';
|
|
3749
4036
|
}
|
|
4037
|
+
static PostPrefetchConceptConnections() {
|
|
4038
|
+
return this.NODE_URL + '/api/v1/access-tracker/sync-access-tracker';
|
|
4039
|
+
}
|
|
4040
|
+
static GetSuggestedConcepts() {
|
|
4041
|
+
return this.NODE_URL + '/api/v1/access-tracker/list-concepts-file';
|
|
4042
|
+
}
|
|
4043
|
+
static GetSuggestedConnections() {
|
|
4044
|
+
return this.NODE_URL + '/api/v1/access-tracker/list-connections-file';
|
|
4045
|
+
}
|
|
3750
4046
|
static GetAllPrefetchConnectionsUrl() {
|
|
3751
4047
|
return this.BASE_URL + '/api/get_all_connections_of_user?inpage=500';
|
|
3752
4048
|
}
|
|
@@ -6061,12 +6357,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6061
6357
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
6062
6358
|
/* harmony export */ ConnectionData: () => (/* binding */ ConnectionData)
|
|
6063
6359
|
/* harmony export */ });
|
|
6064
|
-
/* harmony import */ var
|
|
6065
|
-
/* harmony import */ var
|
|
6066
|
-
/* harmony import */ var
|
|
6067
|
-
/* harmony import */ var
|
|
6068
|
-
/* harmony import */ var
|
|
6069
|
-
/* harmony import */ var
|
|
6360
|
+
/* harmony import */ var _AccessTracker_accessTracker__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../AccessTracker/accessTracker */ "./src/AccessTracker/accessTracker.ts");
|
|
6361
|
+
/* harmony import */ var _app__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../app */ "./src/app.ts");
|
|
6362
|
+
/* harmony import */ var _Database_indexeddb__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Database/indexeddb */ "./src/Database/indexeddb.ts");
|
|
6363
|
+
/* harmony import */ var _Connection__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Connection */ "./src/DataStructures/Connection.ts");
|
|
6364
|
+
/* harmony import */ var _ConnectionBinaryTree_ConnectionBinaryTree__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ConnectionBinaryTree/ConnectionBinaryTree */ "./src/DataStructures/ConnectionBinaryTree/ConnectionBinaryTree.ts");
|
|
6365
|
+
/* harmony import */ var _ConnectionBinaryTree_ConnectionOfTheTree__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ConnectionBinaryTree/ConnectionOfTheTree */ "./src/DataStructures/ConnectionBinaryTree/ConnectionOfTheTree.ts");
|
|
6366
|
+
/* harmony import */ var _ConnectionBinaryTree_ConnectionTypeTree__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./ConnectionBinaryTree/ConnectionTypeTree */ "./src/DataStructures/ConnectionBinaryTree/ConnectionTypeTree.ts");
|
|
6070
6367
|
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
6071
6368
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
6072
6369
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -6082,6 +6379,7 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
|
|
|
6082
6379
|
|
|
6083
6380
|
|
|
6084
6381
|
|
|
6382
|
+
|
|
6085
6383
|
class ConnectionData {
|
|
6086
6384
|
constructor() {
|
|
6087
6385
|
this.name = "Connection Array";
|
|
@@ -6096,7 +6394,7 @@ class ConnectionData {
|
|
|
6096
6394
|
return contains;
|
|
6097
6395
|
}
|
|
6098
6396
|
static AddConnectionToStorage(connection) {
|
|
6099
|
-
(0,
|
|
6397
|
+
(0,_Database_indexeddb__WEBPACK_IMPORTED_MODULE_2__.UpdateToDatabase)("connection", connection);
|
|
6100
6398
|
}
|
|
6101
6399
|
static AddConnection(connection) {
|
|
6102
6400
|
// var contains = this.CheckContains(connection);
|
|
@@ -6110,9 +6408,9 @@ class ConnectionData {
|
|
|
6110
6408
|
// if(!connection.isTemp){
|
|
6111
6409
|
//UpdateToDatabase("connection", connection);
|
|
6112
6410
|
try {
|
|
6113
|
-
|
|
6114
|
-
|
|
6115
|
-
|
|
6411
|
+
_ConnectionBinaryTree_ConnectionBinaryTree__WEBPACK_IMPORTED_MODULE_4__.ConnectionBinaryTree.addConnectionToTree(connection);
|
|
6412
|
+
_ConnectionBinaryTree_ConnectionTypeTree__WEBPACK_IMPORTED_MODULE_6__.ConnectionTypeTree.addConnectionToTree(connection);
|
|
6413
|
+
_ConnectionBinaryTree_ConnectionOfTheTree__WEBPACK_IMPORTED_MODULE_5__.ConnectionOfTheTree.addConnection(connection);
|
|
6116
6414
|
}
|
|
6117
6415
|
catch (error) {
|
|
6118
6416
|
console.log("this is the error in making the connection");
|
|
@@ -6121,9 +6419,9 @@ class ConnectionData {
|
|
|
6121
6419
|
}
|
|
6122
6420
|
static AddConnectionToMemory(connection) {
|
|
6123
6421
|
if (!connection.isTemp) {
|
|
6124
|
-
|
|
6125
|
-
|
|
6126
|
-
|
|
6422
|
+
_ConnectionBinaryTree_ConnectionBinaryTree__WEBPACK_IMPORTED_MODULE_4__.ConnectionBinaryTree.addConnectionToTree(connection);
|
|
6423
|
+
_ConnectionBinaryTree_ConnectionTypeTree__WEBPACK_IMPORTED_MODULE_6__.ConnectionTypeTree.addConnectionToTree(connection);
|
|
6424
|
+
_ConnectionBinaryTree_ConnectionOfTheTree__WEBPACK_IMPORTED_MODULE_5__.ConnectionOfTheTree.addConnection(connection);
|
|
6127
6425
|
}
|
|
6128
6426
|
}
|
|
6129
6427
|
static AddToDictionary(connection) {
|
|
@@ -6136,23 +6434,23 @@ class ConnectionData {
|
|
|
6136
6434
|
// }
|
|
6137
6435
|
// }
|
|
6138
6436
|
if (connection.id != 0) {
|
|
6139
|
-
(0,
|
|
6140
|
-
|
|
6437
|
+
(0,_Database_indexeddb__WEBPACK_IMPORTED_MODULE_2__.removeFromDatabase)("connection", connection.id);
|
|
6438
|
+
_ConnectionBinaryTree_ConnectionBinaryTree__WEBPACK_IMPORTED_MODULE_4__.ConnectionBinaryTree.removeNodeFromTree(connection.id);
|
|
6141
6439
|
// ConnectionTypeTree.removeTypeConcept(connection.typeId, connection.id);
|
|
6142
|
-
|
|
6440
|
+
_ConnectionBinaryTree_ConnectionOfTheTree__WEBPACK_IMPORTED_MODULE_5__.ConnectionOfTheTree.removeNodeFromTree(connection.id);
|
|
6143
6441
|
}
|
|
6144
6442
|
}
|
|
6145
6443
|
static GetConnectionTypeOfTree() {
|
|
6146
|
-
|
|
6444
|
+
_ConnectionBinaryTree_ConnectionOfTheTree__WEBPACK_IMPORTED_MODULE_5__.ConnectionOfTheTree.node;
|
|
6147
6445
|
}
|
|
6148
6446
|
static GetConnectionByOfTheConceptAndType(ofTheConceptId, typeId) {
|
|
6149
6447
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6150
|
-
if (
|
|
6151
|
-
const res = yield (0,
|
|
6448
|
+
if (_app__WEBPACK_IMPORTED_MODULE_1__.serviceWorker) {
|
|
6449
|
+
const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_1__.sendMessage)("ConnectionData__GetConnectionByOfTheConceptAndType", { ofTheConceptId, typeId });
|
|
6152
6450
|
// console.log("data received from sw", res);
|
|
6153
6451
|
return res.data;
|
|
6154
6452
|
}
|
|
6155
|
-
let connections =
|
|
6453
|
+
let connections = _ConnectionBinaryTree_ConnectionOfTheTree__WEBPACK_IMPORTED_MODULE_5__.ConnectionOfTheTree.GetConnectionByOfTheConceptAndTypeId(ofTheConceptId, typeId);
|
|
6156
6454
|
if (connections) {
|
|
6157
6455
|
return connections;
|
|
6158
6456
|
}
|
|
@@ -6160,27 +6458,29 @@ class ConnectionData {
|
|
|
6160
6458
|
});
|
|
6161
6459
|
}
|
|
6162
6460
|
static GetConnectionByOfType(ofTheConceptId, typeId) {
|
|
6163
|
-
let connections =
|
|
6461
|
+
let connections = _ConnectionBinaryTree_ConnectionTypeTree__WEBPACK_IMPORTED_MODULE_6__.ConnectionTypeTree.GetConnectionByOfTheConceptAndTypeId(ofTheConceptId, typeId);
|
|
6164
6462
|
if (connections) {
|
|
6165
6463
|
return connections;
|
|
6166
6464
|
}
|
|
6167
6465
|
return [];
|
|
6168
6466
|
}
|
|
6169
6467
|
static GetConnectionTree() {
|
|
6170
|
-
return
|
|
6468
|
+
return _ConnectionBinaryTree_ConnectionBinaryTree__WEBPACK_IMPORTED_MODULE_4__.ConnectionBinaryTree.connectionroot;
|
|
6171
6469
|
}
|
|
6172
6470
|
static GetConnectionTypeTree() {
|
|
6173
|
-
return
|
|
6471
|
+
return _ConnectionBinaryTree_ConnectionTypeTree__WEBPACK_IMPORTED_MODULE_6__.ConnectionTypeTree.connectionTypeRoot;
|
|
6174
6472
|
}
|
|
6175
6473
|
static GetConnectionBulkData(ids, connectionArray, remainingIds) {
|
|
6176
6474
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6177
|
-
yield
|
|
6475
|
+
yield _ConnectionBinaryTree_ConnectionBinaryTree__WEBPACK_IMPORTED_MODULE_4__.ConnectionBinaryTree.getConnectionListFromIds(ids, connectionArray, remainingIds);
|
|
6178
6476
|
});
|
|
6179
6477
|
}
|
|
6180
6478
|
static GetConnection(id) {
|
|
6181
6479
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6182
|
-
|
|
6183
|
-
|
|
6480
|
+
// Increment Connection
|
|
6481
|
+
_AccessTracker_accessTracker__WEBPACK_IMPORTED_MODULE_0__.AccessTracker.incrementConnection(id);
|
|
6482
|
+
if (_app__WEBPACK_IMPORTED_MODULE_1__.serviceWorker) {
|
|
6483
|
+
const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_1__.sendMessage)('ConnectionData__GetConnection', { id });
|
|
6184
6484
|
// console.log('data received from sw', res)
|
|
6185
6485
|
return res.data;
|
|
6186
6486
|
}
|
|
@@ -6192,8 +6492,8 @@ class ConnectionData {
|
|
|
6192
6492
|
// }
|
|
6193
6493
|
// }
|
|
6194
6494
|
// return myConcept;
|
|
6195
|
-
let myConnection = new
|
|
6196
|
-
let node = yield
|
|
6495
|
+
let myConnection = new _Connection__WEBPACK_IMPORTED_MODULE_3__.Connection(0, 0, 0, 0, 0, 0, 0);
|
|
6496
|
+
let node = yield _ConnectionBinaryTree_ConnectionBinaryTree__WEBPACK_IMPORTED_MODULE_4__.ConnectionBinaryTree.getNodeFromTree(id);
|
|
6197
6497
|
if (node === null || node === void 0 ? void 0 : node.value) {
|
|
6198
6498
|
let returnedConcept = node.value;
|
|
6199
6499
|
if (returnedConcept) {
|
|
@@ -6216,8 +6516,8 @@ class ConnectionData {
|
|
|
6216
6516
|
// commented
|
|
6217
6517
|
static GetConnectionsOfCompositionLocal(id) {
|
|
6218
6518
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6219
|
-
if (
|
|
6220
|
-
const res = yield (0,
|
|
6519
|
+
if (_app__WEBPACK_IMPORTED_MODULE_1__.serviceWorker) {
|
|
6520
|
+
const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_1__.sendMessage)("ConnectionData__GetConnectionsOfCompositionLocal", { id });
|
|
6221
6521
|
// console.log("data received from sw", res);
|
|
6222
6522
|
return res.data;
|
|
6223
6523
|
}
|
|
@@ -6226,7 +6526,7 @@ class ConnectionData {
|
|
|
6226
6526
|
let connectionIds = [];
|
|
6227
6527
|
connectionIds = ConnectionData.GetConnectionByOfType(id, id);
|
|
6228
6528
|
for (let i = 0; i < connectionIds.length; i++) {
|
|
6229
|
-
let conn = yield
|
|
6529
|
+
let conn = yield _ConnectionBinaryTree_ConnectionBinaryTree__WEBPACK_IMPORTED_MODULE_4__.ConnectionBinaryTree.getNodeFromTree(connectionIds[i]);
|
|
6230
6530
|
if (conn) {
|
|
6231
6531
|
connections.push(conn.value);
|
|
6232
6532
|
}
|
|
@@ -6252,8 +6552,8 @@ class ConnectionData {
|
|
|
6252
6552
|
}
|
|
6253
6553
|
static GetConnectionsOfConcept(id) {
|
|
6254
6554
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6255
|
-
if (
|
|
6256
|
-
const res = yield (0,
|
|
6555
|
+
if (_app__WEBPACK_IMPORTED_MODULE_1__.serviceWorker) {
|
|
6556
|
+
const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_1__.sendMessage)("ConnectionData__GetConnectionsOfConcept", { id });
|
|
6257
6557
|
// console.log("data received from sw", res);
|
|
6258
6558
|
return res.data;
|
|
6259
6559
|
}
|
|
@@ -6261,7 +6561,7 @@ class ConnectionData {
|
|
|
6261
6561
|
let connections = [];
|
|
6262
6562
|
connectionIds = yield ConnectionData.GetConnectionByOfTheConceptAndType(id, id);
|
|
6263
6563
|
for (let i = 0; i < connectionIds.length; i++) {
|
|
6264
|
-
let conn = yield
|
|
6564
|
+
let conn = yield _ConnectionBinaryTree_ConnectionBinaryTree__WEBPACK_IMPORTED_MODULE_4__.ConnectionBinaryTree.getNodeFromTree(connectionIds[i]);
|
|
6265
6565
|
if (conn) {
|
|
6266
6566
|
connections.push(conn.value);
|
|
6267
6567
|
}
|
|
@@ -13909,9 +14209,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13909
14209
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
13910
14210
|
/* harmony export */ GetConnectionById: () => (/* binding */ GetConnectionById)
|
|
13911
14211
|
/* harmony export */ });
|
|
13912
|
-
/* harmony import */ var
|
|
13913
|
-
/* harmony import */ var
|
|
13914
|
-
/* harmony import */ var
|
|
14212
|
+
/* harmony import */ var _AccessTracker_accessTracker__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../AccessTracker/accessTracker */ "./src/AccessTracker/accessTracker.ts");
|
|
14213
|
+
/* harmony import */ var _Api_GetConnection__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Api/GetConnection */ "./src/Api/GetConnection.ts");
|
|
14214
|
+
/* harmony import */ var _app__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../app */ "./src/app.ts");
|
|
14215
|
+
/* harmony import */ var _DataStructures_ConnectionData__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../DataStructures/ConnectionData */ "./src/DataStructures/ConnectionData.ts");
|
|
13915
14216
|
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
13916
14217
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
13917
14218
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -13924,16 +14225,24 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
|
|
|
13924
14225
|
|
|
13925
14226
|
|
|
13926
14227
|
|
|
14228
|
+
|
|
13927
14229
|
function GetConnectionById(id) {
|
|
13928
14230
|
return __awaiter(this, void 0, void 0, function* () {
|
|
13929
|
-
|
|
13930
|
-
|
|
14231
|
+
// Add connection id in access tracker
|
|
14232
|
+
try {
|
|
14233
|
+
_AccessTracker_accessTracker__WEBPACK_IMPORTED_MODULE_0__.AccessTracker.incrementConnection(id);
|
|
14234
|
+
}
|
|
14235
|
+
catch (_a) {
|
|
14236
|
+
console.error("Error adding connections in access tracker");
|
|
14237
|
+
}
|
|
14238
|
+
if (_app__WEBPACK_IMPORTED_MODULE_2__.serviceWorker) {
|
|
14239
|
+
const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_2__.sendMessage)('GetConnectionById', { id });
|
|
13931
14240
|
// console.log('data received from sw', res)
|
|
13932
14241
|
return res.data;
|
|
13933
14242
|
}
|
|
13934
|
-
let connection = yield
|
|
14243
|
+
let connection = yield _DataStructures_ConnectionData__WEBPACK_IMPORTED_MODULE_3__.ConnectionData.GetConnection(id);
|
|
13935
14244
|
if ((connection == null || connection.id == 0) && id != null && id != undefined) {
|
|
13936
|
-
let connectionString = yield (0,
|
|
14245
|
+
let connectionString = yield (0,_Api_GetConnection__WEBPACK_IMPORTED_MODULE_1__.GetConnection)(id);
|
|
13937
14246
|
connection = connectionString;
|
|
13938
14247
|
}
|
|
13939
14248
|
return connection;
|
|
@@ -14264,10 +14573,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14264
14573
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14265
14574
|
/* harmony export */ "default": () => (/* binding */ GetTheConcept)
|
|
14266
14575
|
/* harmony export */ });
|
|
14267
|
-
/* harmony import */ var
|
|
14268
|
-
/* harmony import */ var
|
|
14269
|
-
/* harmony import */ var
|
|
14270
|
-
/* harmony import */ var
|
|
14576
|
+
/* harmony import */ var _AccessTracker_accessTracker__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../AccessTracker/accessTracker */ "./src/AccessTracker/accessTracker.ts");
|
|
14577
|
+
/* harmony import */ var _Api_GetConcept__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Api/GetConcept */ "./src/Api/GetConcept.ts");
|
|
14578
|
+
/* harmony import */ var _app__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../app */ "./src/app.ts");
|
|
14579
|
+
/* harmony import */ var _DataStructures_ConceptData__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../DataStructures/ConceptData */ "./src/DataStructures/ConceptData.ts");
|
|
14580
|
+
/* harmony import */ var _CreateDefaultConcept__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./CreateDefaultConcept */ "./src/Services/CreateDefaultConcept.ts");
|
|
14271
14581
|
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
14272
14582
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
14273
14583
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -14281,6 +14591,7 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
|
|
|
14281
14591
|
|
|
14282
14592
|
|
|
14283
14593
|
|
|
14594
|
+
|
|
14284
14595
|
/**
|
|
14285
14596
|
*
|
|
14286
14597
|
* @param id this is the id that can be used to get the concept.
|
|
@@ -14290,27 +14601,29 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
|
|
|
14290
14601
|
function GetTheConcept(id_1) {
|
|
14291
14602
|
return __awaiter(this, arguments, void 0, function* (id, userId = 999) {
|
|
14292
14603
|
try {
|
|
14293
|
-
|
|
14294
|
-
|
|
14604
|
+
// Increment count of the concept
|
|
14605
|
+
_AccessTracker_accessTracker__WEBPACK_IMPORTED_MODULE_0__.AccessTracker.incrementConcept(id);
|
|
14606
|
+
if (_app__WEBPACK_IMPORTED_MODULE_2__.serviceWorker) {
|
|
14607
|
+
const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_2__.sendMessage)('GetTheConcept', { id, userId });
|
|
14295
14608
|
// console.log('data received from sw', res)
|
|
14296
14609
|
return res.data;
|
|
14297
14610
|
}
|
|
14298
|
-
let concept = (0,
|
|
14611
|
+
let concept = (0,_CreateDefaultConcept__WEBPACK_IMPORTED_MODULE_4__.CreateDefaultConcept)();
|
|
14299
14612
|
if (id < 0) {
|
|
14300
|
-
let lconcept = yield (0,
|
|
14301
|
-
concept = (0,
|
|
14613
|
+
let lconcept = yield (0,_app__WEBPACK_IMPORTED_MODULE_2__.GetUserGhostId)(userId, id);
|
|
14614
|
+
concept = (0,_app__WEBPACK_IMPORTED_MODULE_2__.convertFromLConceptToConcept)(lconcept);
|
|
14302
14615
|
return concept;
|
|
14303
14616
|
}
|
|
14304
|
-
concept = yield
|
|
14617
|
+
concept = yield _DataStructures_ConceptData__WEBPACK_IMPORTED_MODULE_3__.ConceptsData.GetConcept(id);
|
|
14305
14618
|
if ((concept == null || concept.id == 0) && id != null && id != undefined) {
|
|
14306
|
-
let conceptString = yield (0,
|
|
14619
|
+
let conceptString = yield (0,_Api_GetConcept__WEBPACK_IMPORTED_MODULE_1__.GetConcept)(id);
|
|
14307
14620
|
concept = conceptString;
|
|
14308
14621
|
}
|
|
14309
14622
|
if (concept.id != 0) {
|
|
14310
14623
|
if (concept.type == null) {
|
|
14311
|
-
let conceptType = yield
|
|
14624
|
+
let conceptType = yield _DataStructures_ConceptData__WEBPACK_IMPORTED_MODULE_3__.ConceptsData.GetConcept(concept.typeId);
|
|
14312
14625
|
if (conceptType == null && concept.typeId != null && concept.typeId != undefined) {
|
|
14313
|
-
let typeConceptString = yield (0,
|
|
14626
|
+
let typeConceptString = yield (0,_Api_GetConcept__WEBPACK_IMPORTED_MODULE_1__.GetConcept)(concept.typeId);
|
|
14314
14627
|
let typeConcept = typeConceptString;
|
|
14315
14628
|
concept.type = typeConcept;
|
|
14316
14629
|
}
|
|
@@ -16308,8 +16621,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16308
16621
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16309
16622
|
/* harmony export */ FormatConceptsAndConnectionsNormalList: () => (/* binding */ FormatConceptsAndConnectionsNormalList),
|
|
16310
16623
|
/* harmony export */ FormatFromConnectionsAlteredArrayExternal: () => (/* binding */ FormatFromConnectionsAlteredArrayExternal),
|
|
16624
|
+
/* harmony export */ FormatFromConnectionsAlteredArrayExternalJustId: () => (/* binding */ FormatFromConnectionsAlteredArrayExternalJustId),
|
|
16311
16625
|
/* harmony export */ FormatFunctionData: () => (/* binding */ FormatFunctionData),
|
|
16312
16626
|
/* harmony export */ FormatFunctionDataForData: () => (/* binding */ FormatFunctionDataForData),
|
|
16627
|
+
/* harmony export */ FormatFunctionDataForDataJustId: () => (/* binding */ FormatFunctionDataForDataJustId),
|
|
16313
16628
|
/* harmony export */ formatFunction: () => (/* binding */ formatFunction),
|
|
16314
16629
|
/* harmony export */ formatFunctionForData: () => (/* binding */ formatFunctionForData)
|
|
16315
16630
|
/* harmony export */ });
|
|
@@ -16586,6 +16901,144 @@ function FormatFromConnectionsAlteredArrayExternal(connections_1, compositionDat
|
|
|
16586
16901
|
return mainData;
|
|
16587
16902
|
});
|
|
16588
16903
|
}
|
|
16904
|
+
/**
|
|
16905
|
+
* ############ Format is Just Id and is used for list. ############
|
|
16906
|
+
* This is helpful in building a format that has multiple mainCompositions i.e. in the context of the list
|
|
16907
|
+
* The list format is helpful because you do not have to go over each individual query.
|
|
16908
|
+
* @param connections the type connections that need (external connections) to be passed
|
|
16909
|
+
* @param compositionData this is a dictionary type of format that has all the build compositions {id: { actual data}}
|
|
16910
|
+
* @param mainComposition this is list of ids of the main composition that builds the tree
|
|
16911
|
+
* @param reverse this is the list of connections ids that needs to go to the reverse direction (to---->from)
|
|
16912
|
+
* @returns
|
|
16913
|
+
*/
|
|
16914
|
+
function FormatFromConnectionsAlteredArrayExternalJustId(connections_1, compositionData_1, mainComposition_1) {
|
|
16915
|
+
return __awaiter(this, arguments, void 0, function* (connections, compositionData, mainComposition, reverse = []) {
|
|
16916
|
+
var _a, _b, _c, _d;
|
|
16917
|
+
let startTime = new Date().getTime();
|
|
16918
|
+
let mainData = [];
|
|
16919
|
+
let myConcepts = [];
|
|
16920
|
+
for (let i = 0; i < connections.length; i++) {
|
|
16921
|
+
myConcepts.push(connections[i].toTheConceptId);
|
|
16922
|
+
myConcepts.push(connections[i].ofTheConceptId);
|
|
16923
|
+
myConcepts.push(connections[i].typeId);
|
|
16924
|
+
}
|
|
16925
|
+
connections.sort(function (x, y) {
|
|
16926
|
+
return y.id - x.id;
|
|
16927
|
+
});
|
|
16928
|
+
for (let i = 0; i < connections.length; i++) {
|
|
16929
|
+
let reverseFlag = false;
|
|
16930
|
+
let ofTheConcept = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.GetTheConcept)(connections[i].ofTheConceptId);
|
|
16931
|
+
let toTheConcept = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.GetTheConcept)(connections[i].toTheConceptId);
|
|
16932
|
+
if (reverse.includes(connections[i].id)) {
|
|
16933
|
+
reverseFlag = true;
|
|
16934
|
+
}
|
|
16935
|
+
if (reverseFlag == true) {
|
|
16936
|
+
if (ofTheConcept.id != 0 && toTheConcept.id != 0) {
|
|
16937
|
+
if (toTheConcept.id in compositionData) {
|
|
16938
|
+
let newData;
|
|
16939
|
+
let linkerConcept = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.GetTheConcept)(connections[i].typeId);
|
|
16940
|
+
let key = (_b = (_a = toTheConcept.type) === null || _a === void 0 ? void 0 : _a.characterValue) !== null && _b !== void 0 ? _b : "self";
|
|
16941
|
+
let flag = false;
|
|
16942
|
+
if (connections[i].toTheConceptId in compositionData) {
|
|
16943
|
+
flag = true;
|
|
16944
|
+
}
|
|
16945
|
+
if (connections[i].toTheConceptId in compositionData) {
|
|
16946
|
+
newData = compositionData[connections[i].toTheConceptId];
|
|
16947
|
+
let newType = typeof newData[key];
|
|
16948
|
+
if (newType == "string") {
|
|
16949
|
+
newData[key] = {};
|
|
16950
|
+
}
|
|
16951
|
+
}
|
|
16952
|
+
else {
|
|
16953
|
+
newData = {};
|
|
16954
|
+
newData[key] = {};
|
|
16955
|
+
compositionData[connections[i].toTheConceptId] = newData;
|
|
16956
|
+
}
|
|
16957
|
+
try {
|
|
16958
|
+
let isComp = compositionData[connections[i].ofTheConceptId];
|
|
16959
|
+
if (isComp) {
|
|
16960
|
+
let data = compositionData[connections[i].ofTheConceptId];
|
|
16961
|
+
data["id"] = ofTheConcept.id;
|
|
16962
|
+
let reverseCharater = linkerConcept.characterValue + "_reverse";
|
|
16963
|
+
if (Array.isArray(newData[key][reverseCharater])) {
|
|
16964
|
+
newData[key][reverseCharater].push(data);
|
|
16965
|
+
}
|
|
16966
|
+
else {
|
|
16967
|
+
if (reverseCharater.includes("_s_")) {
|
|
16968
|
+
newData[key][reverseCharater] = [];
|
|
16969
|
+
newData[key][reverseCharater].push(data);
|
|
16970
|
+
}
|
|
16971
|
+
else {
|
|
16972
|
+
newData[key][reverseCharater] = data;
|
|
16973
|
+
}
|
|
16974
|
+
}
|
|
16975
|
+
}
|
|
16976
|
+
}
|
|
16977
|
+
catch (ex) {
|
|
16978
|
+
console.log("this is error", ex);
|
|
16979
|
+
}
|
|
16980
|
+
}
|
|
16981
|
+
}
|
|
16982
|
+
}
|
|
16983
|
+
else {
|
|
16984
|
+
if (ofTheConcept.id != 0 && toTheConcept.id != 0) {
|
|
16985
|
+
if (ofTheConcept.id in compositionData) {
|
|
16986
|
+
let newData;
|
|
16987
|
+
let linkerConcept = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.GetTheConcept)(connections[i].typeId);
|
|
16988
|
+
let key = (_d = (_c = ofTheConcept.type) === null || _c === void 0 ? void 0 : _c.characterValue) !== null && _d !== void 0 ? _d : "self";
|
|
16989
|
+
let flag = false;
|
|
16990
|
+
if (connections[i].toTheConceptId in compositionData) {
|
|
16991
|
+
flag = true;
|
|
16992
|
+
}
|
|
16993
|
+
if (connections[i].ofTheConceptId in compositionData) {
|
|
16994
|
+
newData = compositionData[connections[i].ofTheConceptId];
|
|
16995
|
+
let newType = typeof newData[key];
|
|
16996
|
+
if (newType == "string") {
|
|
16997
|
+
newData[key] = {};
|
|
16998
|
+
}
|
|
16999
|
+
}
|
|
17000
|
+
else {
|
|
17001
|
+
newData = {};
|
|
17002
|
+
newData[key] = {};
|
|
17003
|
+
compositionData[connections[i].ofTheConceptId] = newData;
|
|
17004
|
+
}
|
|
17005
|
+
try {
|
|
17006
|
+
let isComp = compositionData[connections[i].toTheConceptId];
|
|
17007
|
+
if (isComp) {
|
|
17008
|
+
let data = compositionData[connections[i].toTheConceptId];
|
|
17009
|
+
data["id"] = toTheConcept.id;
|
|
17010
|
+
if (Array.isArray(newData[key][linkerConcept.characterValue])) {
|
|
17011
|
+
newData[key][linkerConcept.characterValue].push(data);
|
|
17012
|
+
}
|
|
17013
|
+
else {
|
|
17014
|
+
if (linkerConcept.characterValue.includes("_s_")) {
|
|
17015
|
+
newData[key][linkerConcept.characterValue] = [];
|
|
17016
|
+
newData[key][linkerConcept.characterValue].push(data);
|
|
17017
|
+
}
|
|
17018
|
+
else {
|
|
17019
|
+
newData[key][linkerConcept.characterValue] = data;
|
|
17020
|
+
}
|
|
17021
|
+
}
|
|
17022
|
+
}
|
|
17023
|
+
}
|
|
17024
|
+
catch (ex) {
|
|
17025
|
+
console.log("this is error", ex);
|
|
17026
|
+
}
|
|
17027
|
+
}
|
|
17028
|
+
}
|
|
17029
|
+
}
|
|
17030
|
+
}
|
|
17031
|
+
console.log("this is the main compositions", mainComposition);
|
|
17032
|
+
for (let i = 0; i < mainComposition.length; i++) {
|
|
17033
|
+
let mymainData = {};
|
|
17034
|
+
console.log("this is the main compositions DATA", compositionData[mainComposition[i]]);
|
|
17035
|
+
mymainData = compositionData[mainComposition[i]];
|
|
17036
|
+
mymainData["id"] = mainComposition[i];
|
|
17037
|
+
mainData.push(mymainData);
|
|
17038
|
+
}
|
|
17039
|
+
return mainData;
|
|
17040
|
+
});
|
|
17041
|
+
}
|
|
16589
17042
|
/**
|
|
16590
17043
|
*
|
|
16591
17044
|
* ## Format Normal ##
|
|
@@ -17006,6 +17459,127 @@ function FormatFunctionDataForData(connections_1, compositionData_1) {
|
|
|
17006
17459
|
return compositionData;
|
|
17007
17460
|
});
|
|
17008
17461
|
}
|
|
17462
|
+
/**
|
|
17463
|
+
* ## Format Just-Id ##
|
|
17464
|
+
* this function takes in connections and creates a single level objects so that all the data are added to its object/ array.
|
|
17465
|
+
* This is then passed on further for stiching.
|
|
17466
|
+
* @param connections
|
|
17467
|
+
* @param compositionData
|
|
17468
|
+
* @param reverse
|
|
17469
|
+
* @returns
|
|
17470
|
+
*/
|
|
17471
|
+
function FormatFunctionDataForDataJustId(connections_1, compositionData_1) {
|
|
17472
|
+
return __awaiter(this, arguments, void 0, function* (connections, compositionData, reverse = []) {
|
|
17473
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
17474
|
+
let myConcepts = [];
|
|
17475
|
+
for (let i = 0; i < connections.length; i++) {
|
|
17476
|
+
myConcepts.push(connections[i].toTheConceptId);
|
|
17477
|
+
myConcepts.push(connections[i].ofTheConceptId);
|
|
17478
|
+
myConcepts.push(connections[i].typeId);
|
|
17479
|
+
}
|
|
17480
|
+
connections.sort(function (x, y) {
|
|
17481
|
+
return y.id - x.id;
|
|
17482
|
+
});
|
|
17483
|
+
for (let i = 0; i < connections.length; i++) {
|
|
17484
|
+
let reverseFlag = false;
|
|
17485
|
+
let ofTheConcept = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.GetTheConcept)(connections[i].ofTheConceptId);
|
|
17486
|
+
let toTheConcept = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.GetTheConcept)(connections[i].toTheConceptId);
|
|
17487
|
+
if (reverse.includes(connections[i].id)) {
|
|
17488
|
+
reverseFlag = true;
|
|
17489
|
+
}
|
|
17490
|
+
if (reverseFlag == true) {
|
|
17491
|
+
if (ofTheConcept.id != 0 && toTheConcept.id != 0) {
|
|
17492
|
+
let newData;
|
|
17493
|
+
let linkerConcept = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.GetTheConcept)(connections[i].typeId);
|
|
17494
|
+
let key = (_b = (_a = toTheConcept.type) === null || _a === void 0 ? void 0 : _a.characterValue) !== null && _b !== void 0 ? _b : "self";
|
|
17495
|
+
if (connections[i].toTheConceptId in compositionData) {
|
|
17496
|
+
newData = compositionData[connections[i].toTheConceptId];
|
|
17497
|
+
if (!(key in newData)) {
|
|
17498
|
+
newData[key] = {};
|
|
17499
|
+
}
|
|
17500
|
+
}
|
|
17501
|
+
else {
|
|
17502
|
+
newData = {};
|
|
17503
|
+
newData[key] = {};
|
|
17504
|
+
compositionData[connections[i].toTheConceptId] = newData;
|
|
17505
|
+
}
|
|
17506
|
+
try {
|
|
17507
|
+
let mytype = (_d = (_c = ofTheConcept === null || ofTheConcept === void 0 ? void 0 : ofTheConcept.type) === null || _c === void 0 ? void 0 : _c.characterValue) !== null && _d !== void 0 ? _d : "none";
|
|
17508
|
+
let value = ofTheConcept.characterValue;
|
|
17509
|
+
let dataCharacter = linkerConcept.characterValue;
|
|
17510
|
+
// if there is not connection type defined then put the type of the destination concept.
|
|
17511
|
+
if (dataCharacter == "") {
|
|
17512
|
+
dataCharacter = mytype;
|
|
17513
|
+
dataCharacter = (0,_Common_RegexFunction__WEBPACK_IMPORTED_MODULE_1__.removeThePrefix)(dataCharacter);
|
|
17514
|
+
}
|
|
17515
|
+
let data = {
|
|
17516
|
+
"id": ofTheConcept.id,
|
|
17517
|
+
[mytype]: value
|
|
17518
|
+
};
|
|
17519
|
+
let reverseCharater = dataCharacter + "_reverse";
|
|
17520
|
+
if (reverseCharater.includes("_s_")) {
|
|
17521
|
+
// do nothing
|
|
17522
|
+
}
|
|
17523
|
+
else {
|
|
17524
|
+
if (typeof newData[key] == "string") {
|
|
17525
|
+
newData[key] = {};
|
|
17526
|
+
}
|
|
17527
|
+
newData[key][reverseCharater] = data;
|
|
17528
|
+
}
|
|
17529
|
+
}
|
|
17530
|
+
catch (ex) {
|
|
17531
|
+
console.log("this is error", ex);
|
|
17532
|
+
}
|
|
17533
|
+
}
|
|
17534
|
+
}
|
|
17535
|
+
else {
|
|
17536
|
+
if (ofTheConcept.id != 0 && toTheConcept.id != 0) {
|
|
17537
|
+
let newData;
|
|
17538
|
+
let linkerConcept = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.GetTheConcept)(connections[i].typeId);
|
|
17539
|
+
let key = (_f = (_e = ofTheConcept.type) === null || _e === void 0 ? void 0 : _e.characterValue) !== null && _f !== void 0 ? _f : "self";
|
|
17540
|
+
if (connections[i].ofTheConceptId in compositionData) {
|
|
17541
|
+
newData = compositionData[connections[i].ofTheConceptId];
|
|
17542
|
+
if (!(key in newData)) {
|
|
17543
|
+
newData[key] = {};
|
|
17544
|
+
}
|
|
17545
|
+
}
|
|
17546
|
+
else {
|
|
17547
|
+
newData = {};
|
|
17548
|
+
newData[key] = {};
|
|
17549
|
+
compositionData[connections[i].ofTheConceptId] = newData;
|
|
17550
|
+
}
|
|
17551
|
+
try {
|
|
17552
|
+
let mytype = (_h = (_g = toTheConcept === null || toTheConcept === void 0 ? void 0 : toTheConcept.type) === null || _g === void 0 ? void 0 : _g.characterValue) !== null && _h !== void 0 ? _h : "none";
|
|
17553
|
+
let value = toTheConcept.characterValue;
|
|
17554
|
+
let dataCharacter = linkerConcept.characterValue;
|
|
17555
|
+
// if there is not connection type defined then put the type of the destination concept.
|
|
17556
|
+
if (dataCharacter == "") {
|
|
17557
|
+
dataCharacter = mytype;
|
|
17558
|
+
dataCharacter = (0,_Common_RegexFunction__WEBPACK_IMPORTED_MODULE_1__.removeThePrefix)(dataCharacter);
|
|
17559
|
+
}
|
|
17560
|
+
let data = {
|
|
17561
|
+
"id": toTheConcept.id,
|
|
17562
|
+
[mytype]: value
|
|
17563
|
+
};
|
|
17564
|
+
if (dataCharacter.includes("_s_")) {
|
|
17565
|
+
// do nothing
|
|
17566
|
+
}
|
|
17567
|
+
else {
|
|
17568
|
+
if (typeof newData[key] == "string") {
|
|
17569
|
+
newData[key] = {};
|
|
17570
|
+
}
|
|
17571
|
+
newData[key][dataCharacter] = data;
|
|
17572
|
+
}
|
|
17573
|
+
}
|
|
17574
|
+
catch (ex) {
|
|
17575
|
+
console.log("this is error", ex);
|
|
17576
|
+
}
|
|
17577
|
+
}
|
|
17578
|
+
}
|
|
17579
|
+
}
|
|
17580
|
+
return compositionData;
|
|
17581
|
+
});
|
|
17582
|
+
}
|
|
17009
17583
|
|
|
17010
17584
|
|
|
17011
17585
|
/***/ }),
|
|
@@ -17551,6 +18125,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17551
18125
|
/* harmony export */ SearchWithTypeAndLinkerDataId: () => (/* binding */ SearchWithTypeAndLinkerDataId),
|
|
17552
18126
|
/* harmony export */ formatConnections: () => (/* binding */ formatConnections),
|
|
17553
18127
|
/* harmony export */ formatConnectionsDataId: () => (/* binding */ formatConnectionsDataId),
|
|
18128
|
+
/* harmony export */ formatConnectionsJustId: () => (/* binding */ formatConnectionsJustId),
|
|
17554
18129
|
/* harmony export */ formatDataArrayDataId: () => (/* binding */ formatDataArrayDataId),
|
|
17555
18130
|
/* harmony export */ formatDataArrayNormal: () => (/* binding */ formatDataArrayNormal),
|
|
17556
18131
|
/* harmony export */ formatLinkersNormal: () => (/* binding */ formatLinkersNormal)
|
|
@@ -17686,6 +18261,28 @@ function formatConnections(linkers, conceptIds, mainCompositionIds, reverse) {
|
|
|
17686
18261
|
return output;
|
|
17687
18262
|
});
|
|
17688
18263
|
}
|
|
18264
|
+
/**
|
|
18265
|
+
* ## Format JustId ##
|
|
18266
|
+
* This function fetches all the connections and then converts all the connections to the single level connections
|
|
18267
|
+
* Then those single level objects are then stiched together to create a complex json/ array.
|
|
18268
|
+
* @param linkers
|
|
18269
|
+
* @param conceptIds
|
|
18270
|
+
* @param mainCompositionIds
|
|
18271
|
+
* @param reverse
|
|
18272
|
+
* @returns
|
|
18273
|
+
*/
|
|
18274
|
+
function formatConnectionsJustId(linkers, conceptIds, mainCompositionIds, reverse) {
|
|
18275
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
18276
|
+
let prefetchConnections = yield (0,_GetCompositionBulk__WEBPACK_IMPORTED_MODULE_1__.GetConnectionDataPrefetch)(linkers);
|
|
18277
|
+
let compositionData = [];
|
|
18278
|
+
let newCompositionData = [];
|
|
18279
|
+
compositionData = yield (0,_FormatData__WEBPACK_IMPORTED_MODULE_2__.formatFunction)(prefetchConnections, compositionData, reverse);
|
|
18280
|
+
compositionData = yield (0,_FormatData__WEBPACK_IMPORTED_MODULE_2__.FormatFunctionDataForDataJustId)(prefetchConnections, compositionData, reverse);
|
|
18281
|
+
console.log("this is the composition data", compositionData);
|
|
18282
|
+
let output = yield (0,_FormatData__WEBPACK_IMPORTED_MODULE_2__.FormatFromConnectionsAlteredArrayExternalJustId)(prefetchConnections, compositionData, mainCompositionIds, reverse);
|
|
18283
|
+
return output;
|
|
18284
|
+
});
|
|
18285
|
+
}
|
|
17689
18286
|
/**
|
|
17690
18287
|
* ## Format DATA-ID ##
|
|
17691
18288
|
* This function fetches all the connections and then converts all the connections to the single level connections
|
|
@@ -20123,6 +20720,9 @@ class SearchLinkMultipleAllObservable extends _DepenedencyObserver__WEBPACK_IMPO
|
|
|
20123
20720
|
if (this.format == _Constants_FormatConstants__WEBPACK_IMPORTED_MODULE_1__.DATAID) {
|
|
20124
20721
|
this.data = yield (0,_Services_Search_SearchWithTypeAndLinker__WEBPACK_IMPORTED_MODULE_2__.formatConnectionsDataId)(this.linkers, this.conceptIds, this.mainCompositionIds, this.reverse);
|
|
20125
20722
|
}
|
|
20723
|
+
else if (this.format == _Constants_FormatConstants__WEBPACK_IMPORTED_MODULE_1__.JUSTDATA) {
|
|
20724
|
+
this.data = yield (0,_Services_Search_SearchWithTypeAndLinker__WEBPACK_IMPORTED_MODULE_2__.formatConnectionsJustId)(this.linkers, this.conceptIds, this.mainCompositionIds, this.reverse);
|
|
20725
|
+
}
|
|
20126
20726
|
else {
|
|
20127
20727
|
this.data = yield (0,_Services_Search_SearchWithTypeAndLinker__WEBPACK_IMPORTED_MODULE_2__.formatConnections)(this.linkers, this.conceptIds, this.mainCompositionIds, this.reverse);
|
|
20128
20728
|
//this.data = await formatDataArrayNormal(this.linkers, this.conceptIds, this.internalConnections, this.mainCompositionIds, this.reverse );
|
|
@@ -20213,6 +20813,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
20213
20813
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
20214
20814
|
/* harmony export */ ADMIN: () => (/* reexport safe */ _Constants_AccessConstants__WEBPACK_IMPORTED_MODULE_66__.ADMIN),
|
|
20215
20815
|
/* harmony export */ ALLID: () => (/* reexport safe */ _Constants_FormatConstants__WEBPACK_IMPORTED_MODULE_65__.ALLID),
|
|
20816
|
+
/* harmony export */ AccessTracker: () => (/* reexport safe */ _AccessTracker_accessTracker__WEBPACK_IMPORTED_MODULE_113__.AccessTracker),
|
|
20216
20817
|
/* harmony export */ AddGhostConcept: () => (/* reexport safe */ _Services_User_UserTranslation__WEBPACK_IMPORTED_MODULE_50__.AddGhostConcept),
|
|
20217
20818
|
/* harmony export */ Anomaly: () => (/* reexport safe */ _Anomaly_anomaly__WEBPACK_IMPORTED_MODULE_104__.Anomaly),
|
|
20218
20819
|
/* harmony export */ BaseUrl: () => (/* reexport safe */ _DataStructures_BaseUrl__WEBPACK_IMPORTED_MODULE_98__.BaseUrl),
|
|
@@ -20484,6 +21085,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
20484
21085
|
/* harmony import */ var _Api_Search_FreeschemaQueryApi__WEBPACK_IMPORTED_MODULE_110__ = __webpack_require__(/*! ./Api/Search/FreeschemaQueryApi */ "./src/Api/Search/FreeschemaQueryApi.ts");
|
|
20485
21086
|
/* harmony import */ var _WrapperFunctions_SchemaQueryObservable__WEBPACK_IMPORTED_MODULE_111__ = __webpack_require__(/*! ./WrapperFunctions/SchemaQueryObservable */ "./src/WrapperFunctions/SchemaQueryObservable.ts");
|
|
20486
21087
|
/* harmony import */ var _Widgets_WidgetTree__WEBPACK_IMPORTED_MODULE_112__ = __webpack_require__(/*! ./Widgets/WidgetTree */ "./src/Widgets/WidgetTree.ts");
|
|
21088
|
+
/* harmony import */ var _AccessTracker_accessTracker__WEBPACK_IMPORTED_MODULE_113__ = __webpack_require__(/*! ./AccessTracker/accessTracker */ "./src/AccessTracker/accessTracker.ts");
|
|
20487
21089
|
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
20488
21090
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
20489
21091
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -20613,6 +21215,7 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
|
|
|
20613
21215
|
|
|
20614
21216
|
|
|
20615
21217
|
|
|
21218
|
+
|
|
20616
21219
|
|
|
20617
21220
|
|
|
20618
21221
|
var serviceWorker;
|
|
@@ -20928,7 +21531,7 @@ function sendMessage(type, payload) {
|
|
|
20928
21531
|
}
|
|
20929
21532
|
// Timeout for waiting for the response (e.g., 5 seconds)
|
|
20930
21533
|
setTimeout(() => {
|
|
20931
|
-
reject(
|
|
21534
|
+
reject(`No response from service worker after timeout: ${type}`);
|
|
20932
21535
|
navigator.serviceWorker.removeEventListener("message", responseHandler);
|
|
20933
21536
|
}, 90000); // 90 sec
|
|
20934
21537
|
}
|
|
@@ -21198,6 +21801,7 @@ function processMessageQueue() {
|
|
|
21198
21801
|
/******/ var __webpack_exports__ = __webpack_require__("./src/app.ts");
|
|
21199
21802
|
/******/ var __webpack_exports__ADMIN = __webpack_exports__.ADMIN;
|
|
21200
21803
|
/******/ var __webpack_exports__ALLID = __webpack_exports__.ALLID;
|
|
21804
|
+
/******/ var __webpack_exports__AccessTracker = __webpack_exports__.AccessTracker;
|
|
21201
21805
|
/******/ var __webpack_exports__AddGhostConcept = __webpack_exports__.AddGhostConcept;
|
|
21202
21806
|
/******/ var __webpack_exports__Anomaly = __webpack_exports__.Anomaly;
|
|
21203
21807
|
/******/ var __webpack_exports__BaseUrl = __webpack_exports__.BaseUrl;
|
|
@@ -21355,7 +21959,7 @@ function processMessageQueue() {
|
|
|
21355
21959
|
/******/ var __webpack_exports__storeToDatabase = __webpack_exports__.storeToDatabase;
|
|
21356
21960
|
/******/ var __webpack_exports__subscribedListeners = __webpack_exports__.subscribedListeners;
|
|
21357
21961
|
/******/ var __webpack_exports__updateAccessToken = __webpack_exports__.updateAccessToken;
|
|
21358
|
-
/******/ export { __webpack_exports__ADMIN as ADMIN, __webpack_exports__ALLID as ALLID, __webpack_exports__AddGhostConcept as AddGhostConcept, __webpack_exports__Anomaly as Anomaly, __webpack_exports__BaseUrl as BaseUrl, __webpack_exports__BinaryTree as BinaryTree, __webpack_exports__BuilderStatefulWidget as BuilderStatefulWidget, __webpack_exports__Composition as Composition, __webpack_exports__CompositionBinaryTree as CompositionBinaryTree, __webpack_exports__CompositionNode as CompositionNode, __webpack_exports__Concept as Concept, __webpack_exports__ConceptsData as ConceptsData, __webpack_exports__Connection as Connection, __webpack_exports__ConnectionData as ConnectionData, __webpack_exports__CreateComposition as CreateComposition, __webpack_exports__CreateConnectionBetweenTwoConcepts as CreateConnectionBetweenTwoConcepts, __webpack_exports__CreateConnectionBetweenTwoConceptsGeneral as CreateConnectionBetweenTwoConceptsGeneral, __webpack_exports__CreateConnectionBetweenTwoConceptsLocal as CreateConnectionBetweenTwoConceptsLocal, __webpack_exports__CreateDefaultConcept as CreateDefaultConcept, __webpack_exports__CreateDefaultLConcept as CreateDefaultLConcept, __webpack_exports__CreateSession as CreateSession, __webpack_exports__CreateSessionVisit as CreateSessionVisit, __webpack_exports__CreateTheCompositionLocal as CreateTheCompositionLocal, __webpack_exports__CreateTheCompositionWithCache as CreateTheCompositionWithCache, __webpack_exports__CreateTheConnection as CreateTheConnection, __webpack_exports__CreateTheConnectionGeneral as CreateTheConnectionGeneral, __webpack_exports__CreateTheConnectionLocal as CreateTheConnectionLocal, __webpack_exports__DATAID as DATAID, __webpack_exports__DATAIDDATE as DATAIDDATE, __webpack_exports__DelayFunctionExecution as DelayFunctionExecution, __webpack_exports__DeleteConceptById as DeleteConceptById, __webpack_exports__DeleteConceptLocal as DeleteConceptLocal, __webpack_exports__DeleteConnectionById as DeleteConnectionById, __webpack_exports__DeleteConnectionByType as DeleteConnectionByType, __webpack_exports__DeleteUser as DeleteUser, __webpack_exports__DependencyObserver as DependencyObserver, __webpack_exports__FilterSearch as FilterSearch, __webpack_exports__FormatFromConnections as FormatFromConnections, __webpack_exports__FormatFromConnectionsAltered as FormatFromConnectionsAltered, __webpack_exports__FreeschemaQuery as FreeschemaQuery, __webpack_exports__FreeschemaQueryApi as FreeschemaQueryApi, __webpack_exports__GetAllConnectionsOfComposition as GetAllConnectionsOfComposition, __webpack_exports__GetAllConnectionsOfCompositionBulk as GetAllConnectionsOfCompositionBulk, __webpack_exports__GetAllTheConnectionsByTypeAndOfTheConcept as GetAllTheConnectionsByTypeAndOfTheConcept, __webpack_exports__GetComposition as GetComposition, __webpack_exports__GetCompositionBulk as GetCompositionBulk, __webpack_exports__GetCompositionBulkWithDataId as GetCompositionBulkWithDataId, __webpack_exports__GetCompositionFromConnectionsWithDataId as GetCompositionFromConnectionsWithDataId, __webpack_exports__GetCompositionFromConnectionsWithDataIdFromConnections as GetCompositionFromConnectionsWithDataIdFromConnections, __webpack_exports__GetCompositionFromConnectionsWithDataIdInObject as GetCompositionFromConnectionsWithDataIdInObject, __webpack_exports__GetCompositionFromConnectionsWithDataIdIndex as GetCompositionFromConnectionsWithDataIdIndex, __webpack_exports__GetCompositionFromConnectionsWithIndex as GetCompositionFromConnectionsWithIndex, __webpack_exports__GetCompositionFromConnectionsWithIndexFromConnections as GetCompositionFromConnectionsWithIndexFromConnections, __webpack_exports__GetCompositionFromMemoryWithConnections as GetCompositionFromMemoryWithConnections, __webpack_exports__GetCompositionList as GetCompositionList, __webpack_exports__GetCompositionListAll as GetCompositionListAll, __webpack_exports__GetCompositionListAllWithId as GetCompositionListAllWithId, __webpack_exports__GetCompositionListListener as GetCompositionListListener, __webpack_exports__GetCompositionListLocal as GetCompositionListLocal, __webpack_exports__GetCompositionListLocalWithId as GetCompositionListLocalWithId, __webpack_exports__GetCompositionListWithId as GetCompositionListWithId, __webpack_exports__GetCompositionListWithIdUpdated as GetCompositionListWithIdUpdated, __webpack_exports__GetCompositionListener as GetCompositionListener, __webpack_exports__GetCompositionLocal as GetCompositionLocal, __webpack_exports__GetCompositionLocalWithId as GetCompositionLocalWithId, __webpack_exports__GetCompositionWithAllIds as GetCompositionWithAllIds, __webpack_exports__GetCompositionWithCache as GetCompositionWithCache, __webpack_exports__GetCompositionWithDataIdBulk as GetCompositionWithDataIdBulk, __webpack_exports__GetCompositionWithDataIdWithCache as GetCompositionWithDataIdWithCache, __webpack_exports__GetCompositionWithId as GetCompositionWithId, __webpack_exports__GetCompositionWithIdAndDateFromMemory as GetCompositionWithIdAndDateFromMemory, __webpack_exports__GetConceptBulk as GetConceptBulk, __webpack_exports__GetConceptByCharacter as GetConceptByCharacter, __webpack_exports__GetConceptByCharacterAndCategoryLocal as GetConceptByCharacterAndCategoryLocal, __webpack_exports__GetConceptByCharacterAndType as GetConceptByCharacterAndType, __webpack_exports__GetConnectionBetweenTwoConceptsLinker as GetConnectionBetweenTwoConceptsLinker, __webpack_exports__GetConnectionBulk as GetConnectionBulk, __webpack_exports__GetConnectionById as GetConnectionById, __webpack_exports__GetConnectionDataPrefetch as GetConnectionDataPrefetch, __webpack_exports__GetConnectionOfTheConcept as GetConnectionOfTheConcept, __webpack_exports__GetLink as GetLink, __webpack_exports__GetLinkListListener as GetLinkListListener, __webpack_exports__GetLinkListener as GetLinkListener, __webpack_exports__GetLinkRaw as GetLinkRaw, __webpack_exports__GetLinkerConnectionFromConcepts as GetLinkerConnectionFromConcepts, __webpack_exports__GetLinkerConnectionToConcepts as GetLinkerConnectionToConcepts, __webpack_exports__GetRelation as GetRelation, __webpack_exports__GetRelationLocal as GetRelationLocal, __webpack_exports__GetRelationRaw as GetRelationRaw, __webpack_exports__GetTheConcept as GetTheConcept, __webpack_exports__GetTheConceptLocal as GetTheConceptLocal, __webpack_exports__GetUserGhostId as GetUserGhostId, __webpack_exports__JUSTDATA as JUSTDATA, __webpack_exports__LConcept as LConcept, __webpack_exports__LConnection as LConnection, __webpack_exports__LISTNORMAL as LISTNORMAL, __webpack_exports__LocalConceptsData as LocalConceptsData, __webpack_exports__LocalSyncData as LocalSyncData, __webpack_exports__LocalTransaction as LocalTransaction, __webpack_exports__LoginToBackend as LoginToBackend, __webpack_exports__MakeTheInstanceConcept as MakeTheInstanceConcept, __webpack_exports__MakeTheInstanceConceptLocal as MakeTheInstanceConceptLocal, __webpack_exports__MakeTheTimestamp as MakeTheTimestamp, __webpack_exports__MakeTheTypeConcept as MakeTheTypeConcept, __webpack_exports__MakeTheTypeConceptApi as MakeTheTypeConceptApi, __webpack_exports__MakeTheTypeConceptLocal as MakeTheTypeConceptLocal, __webpack_exports__NORMAL as NORMAL, __webpack_exports__PRIVATE as PRIVATE, __webpack_exports__PUBLIC as PUBLIC, __webpack_exports__PatcherStructure as PatcherStructure, __webpack_exports__RAW as RAW, __webpack_exports__RecursiveSearchApi as RecursiveSearchApi, __webpack_exports__RecursiveSearchApiNewRawFullLinker as RecursiveSearchApiNewRawFullLinker, __webpack_exports__RecursiveSearchApiRaw as RecursiveSearchApiRaw, __webpack_exports__RecursiveSearchApiRawFullLinker as RecursiveSearchApiRawFullLinker, __webpack_exports__RecursiveSearchApiWithInternalConnections as RecursiveSearchApiWithInternalConnections, __webpack_exports__RecursiveSearchListener as RecursiveSearchListener, __webpack_exports__SchemaQueryListener as SchemaQueryListener, __webpack_exports__SearchAllConcepts as SearchAllConcepts, __webpack_exports__SearchLinkInternal as SearchLinkInternal, __webpack_exports__SearchLinkInternalAll as SearchLinkInternalAll, __webpack_exports__SearchLinkMultipleAll as SearchLinkMultipleAll, __webpack_exports__SearchLinkMultipleAllObservable as SearchLinkMultipleAllObservable, __webpack_exports__SearchLinkMultipleApi as SearchLinkMultipleApi, __webpack_exports__SearchQuery as SearchQuery, __webpack_exports__SearchStructure as SearchStructure, __webpack_exports__SearchWithLinker as SearchWithLinker, __webpack_exports__SearchWithTypeAndLinker as SearchWithTypeAndLinker, __webpack_exports__SearchWithTypeAndLinkerApi as SearchWithTypeAndLinkerApi, __webpack_exports__SessionData as SessionData, __webpack_exports__Signin as Signin, __webpack_exports__Signup as Signup, __webpack_exports__SignupEntity as SignupEntity, __webpack_exports__SplitStrings as SplitStrings, __webpack_exports__StatefulWidget as StatefulWidget, __webpack_exports__SyncData as SyncData, __webpack_exports__TrashTheConcept as TrashTheConcept, __webpack_exports__UpdateComposition as UpdateComposition, __webpack_exports__UpdateCompositionLocal as UpdateCompositionLocal, __webpack_exports__UserBinaryTree as UserBinaryTree, __webpack_exports__Validator as Validator, __webpack_exports__ViewInternalData as ViewInternalData, __webpack_exports__ViewInternalDataApi as ViewInternalDataApi, __webpack_exports__WidgetTree as WidgetTree, __webpack_exports__convertFromConceptToLConcept as convertFromConceptToLConcept, __webpack_exports__convertFromLConceptToConcept as convertFromLConceptToConcept, __webpack_exports__createFormFieldData as createFormFieldData, __webpack_exports__dispatchIdEvent as dispatchIdEvent, __webpack_exports__getFromDatabaseWithType as getFromDatabaseWithType, __webpack_exports__getObjectsFromIndexDb as getObjectsFromIndexDb, __webpack_exports__init as init, __webpack_exports__recursiveFetch as recursiveFetch, __webpack_exports__recursiveFetchNew as recursiveFetchNew, __webpack_exports__searchLinkMultipleListener as searchLinkMultipleListener, __webpack_exports__sendMessage as sendMessage, __webpack_exports__serviceWorker as serviceWorker, __webpack_exports__storeToDatabase as storeToDatabase, __webpack_exports__subscribedListeners as subscribedListeners, __webpack_exports__updateAccessToken as updateAccessToken };
|
|
21962
|
+
/******/ export { __webpack_exports__ADMIN as ADMIN, __webpack_exports__ALLID as ALLID, __webpack_exports__AccessTracker as AccessTracker, __webpack_exports__AddGhostConcept as AddGhostConcept, __webpack_exports__Anomaly as Anomaly, __webpack_exports__BaseUrl as BaseUrl, __webpack_exports__BinaryTree as BinaryTree, __webpack_exports__BuilderStatefulWidget as BuilderStatefulWidget, __webpack_exports__Composition as Composition, __webpack_exports__CompositionBinaryTree as CompositionBinaryTree, __webpack_exports__CompositionNode as CompositionNode, __webpack_exports__Concept as Concept, __webpack_exports__ConceptsData as ConceptsData, __webpack_exports__Connection as Connection, __webpack_exports__ConnectionData as ConnectionData, __webpack_exports__CreateComposition as CreateComposition, __webpack_exports__CreateConnectionBetweenTwoConcepts as CreateConnectionBetweenTwoConcepts, __webpack_exports__CreateConnectionBetweenTwoConceptsGeneral as CreateConnectionBetweenTwoConceptsGeneral, __webpack_exports__CreateConnectionBetweenTwoConceptsLocal as CreateConnectionBetweenTwoConceptsLocal, __webpack_exports__CreateDefaultConcept as CreateDefaultConcept, __webpack_exports__CreateDefaultLConcept as CreateDefaultLConcept, __webpack_exports__CreateSession as CreateSession, __webpack_exports__CreateSessionVisit as CreateSessionVisit, __webpack_exports__CreateTheCompositionLocal as CreateTheCompositionLocal, __webpack_exports__CreateTheCompositionWithCache as CreateTheCompositionWithCache, __webpack_exports__CreateTheConnection as CreateTheConnection, __webpack_exports__CreateTheConnectionGeneral as CreateTheConnectionGeneral, __webpack_exports__CreateTheConnectionLocal as CreateTheConnectionLocal, __webpack_exports__DATAID as DATAID, __webpack_exports__DATAIDDATE as DATAIDDATE, __webpack_exports__DelayFunctionExecution as DelayFunctionExecution, __webpack_exports__DeleteConceptById as DeleteConceptById, __webpack_exports__DeleteConceptLocal as DeleteConceptLocal, __webpack_exports__DeleteConnectionById as DeleteConnectionById, __webpack_exports__DeleteConnectionByType as DeleteConnectionByType, __webpack_exports__DeleteUser as DeleteUser, __webpack_exports__DependencyObserver as DependencyObserver, __webpack_exports__FilterSearch as FilterSearch, __webpack_exports__FormatFromConnections as FormatFromConnections, __webpack_exports__FormatFromConnectionsAltered as FormatFromConnectionsAltered, __webpack_exports__FreeschemaQuery as FreeschemaQuery, __webpack_exports__FreeschemaQueryApi as FreeschemaQueryApi, __webpack_exports__GetAllConnectionsOfComposition as GetAllConnectionsOfComposition, __webpack_exports__GetAllConnectionsOfCompositionBulk as GetAllConnectionsOfCompositionBulk, __webpack_exports__GetAllTheConnectionsByTypeAndOfTheConcept as GetAllTheConnectionsByTypeAndOfTheConcept, __webpack_exports__GetComposition as GetComposition, __webpack_exports__GetCompositionBulk as GetCompositionBulk, __webpack_exports__GetCompositionBulkWithDataId as GetCompositionBulkWithDataId, __webpack_exports__GetCompositionFromConnectionsWithDataId as GetCompositionFromConnectionsWithDataId, __webpack_exports__GetCompositionFromConnectionsWithDataIdFromConnections as GetCompositionFromConnectionsWithDataIdFromConnections, __webpack_exports__GetCompositionFromConnectionsWithDataIdInObject as GetCompositionFromConnectionsWithDataIdInObject, __webpack_exports__GetCompositionFromConnectionsWithDataIdIndex as GetCompositionFromConnectionsWithDataIdIndex, __webpack_exports__GetCompositionFromConnectionsWithIndex as GetCompositionFromConnectionsWithIndex, __webpack_exports__GetCompositionFromConnectionsWithIndexFromConnections as GetCompositionFromConnectionsWithIndexFromConnections, __webpack_exports__GetCompositionFromMemoryWithConnections as GetCompositionFromMemoryWithConnections, __webpack_exports__GetCompositionList as GetCompositionList, __webpack_exports__GetCompositionListAll as GetCompositionListAll, __webpack_exports__GetCompositionListAllWithId as GetCompositionListAllWithId, __webpack_exports__GetCompositionListListener as GetCompositionListListener, __webpack_exports__GetCompositionListLocal as GetCompositionListLocal, __webpack_exports__GetCompositionListLocalWithId as GetCompositionListLocalWithId, __webpack_exports__GetCompositionListWithId as GetCompositionListWithId, __webpack_exports__GetCompositionListWithIdUpdated as GetCompositionListWithIdUpdated, __webpack_exports__GetCompositionListener as GetCompositionListener, __webpack_exports__GetCompositionLocal as GetCompositionLocal, __webpack_exports__GetCompositionLocalWithId as GetCompositionLocalWithId, __webpack_exports__GetCompositionWithAllIds as GetCompositionWithAllIds, __webpack_exports__GetCompositionWithCache as GetCompositionWithCache, __webpack_exports__GetCompositionWithDataIdBulk as GetCompositionWithDataIdBulk, __webpack_exports__GetCompositionWithDataIdWithCache as GetCompositionWithDataIdWithCache, __webpack_exports__GetCompositionWithId as GetCompositionWithId, __webpack_exports__GetCompositionWithIdAndDateFromMemory as GetCompositionWithIdAndDateFromMemory, __webpack_exports__GetConceptBulk as GetConceptBulk, __webpack_exports__GetConceptByCharacter as GetConceptByCharacter, __webpack_exports__GetConceptByCharacterAndCategoryLocal as GetConceptByCharacterAndCategoryLocal, __webpack_exports__GetConceptByCharacterAndType as GetConceptByCharacterAndType, __webpack_exports__GetConnectionBetweenTwoConceptsLinker as GetConnectionBetweenTwoConceptsLinker, __webpack_exports__GetConnectionBulk as GetConnectionBulk, __webpack_exports__GetConnectionById as GetConnectionById, __webpack_exports__GetConnectionDataPrefetch as GetConnectionDataPrefetch, __webpack_exports__GetConnectionOfTheConcept as GetConnectionOfTheConcept, __webpack_exports__GetLink as GetLink, __webpack_exports__GetLinkListListener as GetLinkListListener, __webpack_exports__GetLinkListener as GetLinkListener, __webpack_exports__GetLinkRaw as GetLinkRaw, __webpack_exports__GetLinkerConnectionFromConcepts as GetLinkerConnectionFromConcepts, __webpack_exports__GetLinkerConnectionToConcepts as GetLinkerConnectionToConcepts, __webpack_exports__GetRelation as GetRelation, __webpack_exports__GetRelationLocal as GetRelationLocal, __webpack_exports__GetRelationRaw as GetRelationRaw, __webpack_exports__GetTheConcept as GetTheConcept, __webpack_exports__GetTheConceptLocal as GetTheConceptLocal, __webpack_exports__GetUserGhostId as GetUserGhostId, __webpack_exports__JUSTDATA as JUSTDATA, __webpack_exports__LConcept as LConcept, __webpack_exports__LConnection as LConnection, __webpack_exports__LISTNORMAL as LISTNORMAL, __webpack_exports__LocalConceptsData as LocalConceptsData, __webpack_exports__LocalSyncData as LocalSyncData, __webpack_exports__LocalTransaction as LocalTransaction, __webpack_exports__LoginToBackend as LoginToBackend, __webpack_exports__MakeTheInstanceConcept as MakeTheInstanceConcept, __webpack_exports__MakeTheInstanceConceptLocal as MakeTheInstanceConceptLocal, __webpack_exports__MakeTheTimestamp as MakeTheTimestamp, __webpack_exports__MakeTheTypeConcept as MakeTheTypeConcept, __webpack_exports__MakeTheTypeConceptApi as MakeTheTypeConceptApi, __webpack_exports__MakeTheTypeConceptLocal as MakeTheTypeConceptLocal, __webpack_exports__NORMAL as NORMAL, __webpack_exports__PRIVATE as PRIVATE, __webpack_exports__PUBLIC as PUBLIC, __webpack_exports__PatcherStructure as PatcherStructure, __webpack_exports__RAW as RAW, __webpack_exports__RecursiveSearchApi as RecursiveSearchApi, __webpack_exports__RecursiveSearchApiNewRawFullLinker as RecursiveSearchApiNewRawFullLinker, __webpack_exports__RecursiveSearchApiRaw as RecursiveSearchApiRaw, __webpack_exports__RecursiveSearchApiRawFullLinker as RecursiveSearchApiRawFullLinker, __webpack_exports__RecursiveSearchApiWithInternalConnections as RecursiveSearchApiWithInternalConnections, __webpack_exports__RecursiveSearchListener as RecursiveSearchListener, __webpack_exports__SchemaQueryListener as SchemaQueryListener, __webpack_exports__SearchAllConcepts as SearchAllConcepts, __webpack_exports__SearchLinkInternal as SearchLinkInternal, __webpack_exports__SearchLinkInternalAll as SearchLinkInternalAll, __webpack_exports__SearchLinkMultipleAll as SearchLinkMultipleAll, __webpack_exports__SearchLinkMultipleAllObservable as SearchLinkMultipleAllObservable, __webpack_exports__SearchLinkMultipleApi as SearchLinkMultipleApi, __webpack_exports__SearchQuery as SearchQuery, __webpack_exports__SearchStructure as SearchStructure, __webpack_exports__SearchWithLinker as SearchWithLinker, __webpack_exports__SearchWithTypeAndLinker as SearchWithTypeAndLinker, __webpack_exports__SearchWithTypeAndLinkerApi as SearchWithTypeAndLinkerApi, __webpack_exports__SessionData as SessionData, __webpack_exports__Signin as Signin, __webpack_exports__Signup as Signup, __webpack_exports__SignupEntity as SignupEntity, __webpack_exports__SplitStrings as SplitStrings, __webpack_exports__StatefulWidget as StatefulWidget, __webpack_exports__SyncData as SyncData, __webpack_exports__TrashTheConcept as TrashTheConcept, __webpack_exports__UpdateComposition as UpdateComposition, __webpack_exports__UpdateCompositionLocal as UpdateCompositionLocal, __webpack_exports__UserBinaryTree as UserBinaryTree, __webpack_exports__Validator as Validator, __webpack_exports__ViewInternalData as ViewInternalData, __webpack_exports__ViewInternalDataApi as ViewInternalDataApi, __webpack_exports__WidgetTree as WidgetTree, __webpack_exports__convertFromConceptToLConcept as convertFromConceptToLConcept, __webpack_exports__convertFromLConceptToConcept as convertFromLConceptToConcept, __webpack_exports__createFormFieldData as createFormFieldData, __webpack_exports__dispatchIdEvent as dispatchIdEvent, __webpack_exports__getFromDatabaseWithType as getFromDatabaseWithType, __webpack_exports__getObjectsFromIndexDb as getObjectsFromIndexDb, __webpack_exports__init as init, __webpack_exports__recursiveFetch as recursiveFetch, __webpack_exports__recursiveFetchNew as recursiveFetchNew, __webpack_exports__searchLinkMultipleListener as searchLinkMultipleListener, __webpack_exports__sendMessage as sendMessage, __webpack_exports__serviceWorker as serviceWorker, __webpack_exports__storeToDatabase as storeToDatabase, __webpack_exports__subscribedListeners as subscribedListeners, __webpack_exports__updateAccessToken as updateAccessToken };
|
|
21359
21963
|
/******/
|
|
21360
21964
|
|
|
21361
21965
|
//# sourceMappingURL=main.bundle.js.map
|