mftsccs-browser 1.1.1 → 1.1.3
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/bundle.js +191 -112
- package/dist/bundle.js.map +1 -1
- package/dist/types/Api/Search/SearchInternalApi.d.ts +1 -1
- package/dist/types/DataStructures/BaseUrl.d.ts +1 -1
- package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionTypeNode.d.ts +10 -0
- package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionTypeTree.d.ts +16 -9
- package/dist/types/DataStructures/ConnectionData.d.ts +1 -1
- package/dist/types/DataStructures/Search/SearchStructure.d.ts +1 -0
- package/dist/types/Services/Search/SearchLinkInternal.d.ts +1 -1
- package/dist/types/app.d.ts +1 -1
- package/package.json +1 -1
package/dist/bundle.js
CHANGED
|
@@ -2355,10 +2355,10 @@ function SearchInternalApi(search_1) {
|
|
|
2355
2355
|
}
|
|
2356
2356
|
});
|
|
2357
2357
|
}
|
|
2358
|
-
function SearchInternalAllApi(
|
|
2359
|
-
return __awaiter(this,
|
|
2360
|
-
var header = (0,_Services_Security_GetRequestHeader__WEBPACK_IMPORTED_MODULE_2__.GetRequestHeaderWithAuthorization)("application/json",
|
|
2361
|
-
let queryUrl = _app__WEBPACK_IMPORTED_MODULE_0__.BaseUrl.
|
|
2358
|
+
function SearchInternalAllApi(search) {
|
|
2359
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2360
|
+
var header = (0,_Services_Security_GetRequestHeader__WEBPACK_IMPORTED_MODULE_2__.GetRequestHeaderWithAuthorization)("application/json", "");
|
|
2361
|
+
let queryUrl = _app__WEBPACK_IMPORTED_MODULE_0__.BaseUrl.SearchInternalWithCcsUrl();
|
|
2362
2362
|
queryUrl = queryUrl + '?composition=' + search.composition + '&search=' + search.search + '&internalComposition=' + search.internalComposition + '&type=' + search.type + '&inpage=' + search.inpage + '&page=' + search.page;
|
|
2363
2363
|
try {
|
|
2364
2364
|
const response = yield fetch(queryUrl, {
|
|
@@ -2524,7 +2524,7 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
|
|
|
2524
2524
|
|
|
2525
2525
|
function SearchWithTypeAndLinkerApi(searchStructure_1, searchQuery_1) {
|
|
2526
2526
|
return __awaiter(this, arguments, void 0, function* (searchStructure, searchQuery, token = "") {
|
|
2527
|
-
let queryUrl = _app__WEBPACK_IMPORTED_MODULE_0__.BaseUrl.SearchAllTypeWithLinker();
|
|
2527
|
+
let queryUrl = _app__WEBPACK_IMPORTED_MODULE_0__.BaseUrl.SearchAllTypeWithLinker(searchStructure.auth);
|
|
2528
2528
|
var header = (0,_Services_Security_GetRequestHeader__WEBPACK_IMPORTED_MODULE_2__.GetRequestHeaderWithAuthorization)("application/json", token);
|
|
2529
2529
|
queryUrl = queryUrl + '?search=' + searchStructure.search + '&type=' + searchStructure.type + '&inpage=' + searchStructure.inpage + '&page=' + searchStructure.page;
|
|
2530
2530
|
const body = JSON.stringify(searchQuery);
|
|
@@ -3070,8 +3070,13 @@ class BaseUrl {
|
|
|
3070
3070
|
static MakeTheNameInBackendUrl() {
|
|
3071
3071
|
return this.BASE_URL + '/api/make-name-from-frontend';
|
|
3072
3072
|
}
|
|
3073
|
-
static SearchAllTypeWithLinker() {
|
|
3074
|
-
|
|
3073
|
+
static SearchAllTypeWithLinker(auth = true) {
|
|
3074
|
+
if (auth) {
|
|
3075
|
+
return this.BASE_URL + '/api/search-all-with-linker-ccs';
|
|
3076
|
+
}
|
|
3077
|
+
else {
|
|
3078
|
+
return this.BASE_URL + '/api-search-compositions-internal-clean-ccs';
|
|
3079
|
+
}
|
|
3075
3080
|
}
|
|
3076
3081
|
static LoginUrl() {
|
|
3077
3082
|
return this.BASE_URL + '/api/auth/login';
|
|
@@ -3103,7 +3108,7 @@ class BaseUrl {
|
|
|
3103
3108
|
return this.BASE_URL + '/api/search-composition-internal-authenticated-ccs';
|
|
3104
3109
|
}
|
|
3105
3110
|
static SearchInternalWithCcsUrl() {
|
|
3106
|
-
return this.BASE_URL + '/api
|
|
3111
|
+
return this.BASE_URL + '/api-search-compositions-internal-clean-ccs';
|
|
3107
3112
|
}
|
|
3108
3113
|
static CreateGhostConceptApiUrl() {
|
|
3109
3114
|
return BaseUrl.NODE_URL + '/api/v1/local-concepts';
|
|
@@ -4944,6 +4949,80 @@ class ConnectionOfTheTree {
|
|
|
4944
4949
|
ConnectionOfTheTree.node = null;
|
|
4945
4950
|
|
|
4946
4951
|
|
|
4952
|
+
/***/ }),
|
|
4953
|
+
|
|
4954
|
+
/***/ "./src/DataStructures/ConnectionBinaryTree/ConnectionTypeNode.ts":
|
|
4955
|
+
/*!***********************************************************************!*\
|
|
4956
|
+
!*** ./src/DataStructures/ConnectionBinaryTree/ConnectionTypeNode.ts ***!
|
|
4957
|
+
\***********************************************************************/
|
|
4958
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
4959
|
+
|
|
4960
|
+
__webpack_require__.r(__webpack_exports__);
|
|
4961
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
4962
|
+
/* harmony export */ ConnectionTypeNode: () => (/* binding */ ConnectionTypeNode)
|
|
4963
|
+
/* harmony export */ });
|
|
4964
|
+
/* harmony import */ var _NodePrimitive__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./NodePrimitive */ "./src/DataStructures/ConnectionBinaryTree/NodePrimitive.ts");
|
|
4965
|
+
|
|
4966
|
+
class ConnectionTypeNode extends _NodePrimitive__WEBPACK_IMPORTED_MODULE_0__.NodePrimitive {
|
|
4967
|
+
constructor(key, value, leftNode, rightNode) {
|
|
4968
|
+
super(key, value, leftNode, rightNode);
|
|
4969
|
+
this.key = "";
|
|
4970
|
+
this.value = [];
|
|
4971
|
+
this.height = 1;
|
|
4972
|
+
this.key = key;
|
|
4973
|
+
this.value = value;
|
|
4974
|
+
this.leftNode = leftNode;
|
|
4975
|
+
this.rightNode = rightNode;
|
|
4976
|
+
}
|
|
4977
|
+
addNode(passedNode, node, height) {
|
|
4978
|
+
if (node == null) {
|
|
4979
|
+
node = passedNode;
|
|
4980
|
+
return node;
|
|
4981
|
+
}
|
|
4982
|
+
let LeftNode = node.leftNode;
|
|
4983
|
+
let RightNode = node.rightNode;
|
|
4984
|
+
if (node.key > passedNode.key) {
|
|
4985
|
+
node.leftNode = this.addNode(passedNode, LeftNode, height);
|
|
4986
|
+
}
|
|
4987
|
+
else if (node.key < passedNode.key) {
|
|
4988
|
+
node.rightNode = this.addNode(passedNode, RightNode, height);
|
|
4989
|
+
}
|
|
4990
|
+
else {
|
|
4991
|
+
return node;
|
|
4992
|
+
}
|
|
4993
|
+
node.height = 1 + Math.max(this.getHeight(node.leftNode), this.getHeight(node.rightNode));
|
|
4994
|
+
let balancingFactor = this.getBalanceFactor(node);
|
|
4995
|
+
if (balancingFactor > 1) {
|
|
4996
|
+
if (node.leftNode) {
|
|
4997
|
+
if (passedNode.key < node.leftNode.key) {
|
|
4998
|
+
let returner = this.rightRotate(node);
|
|
4999
|
+
return returner;
|
|
5000
|
+
}
|
|
5001
|
+
else if (passedNode.key > node.leftNode.key) {
|
|
5002
|
+
node.leftNode = this.leftRotate(node.leftNode);
|
|
5003
|
+
let returner = this.rightRotate(node);
|
|
5004
|
+
return returner;
|
|
5005
|
+
}
|
|
5006
|
+
}
|
|
5007
|
+
}
|
|
5008
|
+
if (balancingFactor < -1) {
|
|
5009
|
+
if (node.rightNode) {
|
|
5010
|
+
if (passedNode.key > node.rightNode.key) {
|
|
5011
|
+
let returner = this.leftRotate(node);
|
|
5012
|
+
return returner;
|
|
5013
|
+
}
|
|
5014
|
+
else if (passedNode.key < node.rightNode.key) {
|
|
5015
|
+
node.rightNode = this.rightRotate(node.rightNode);
|
|
5016
|
+
let returner = this.leftRotate(node);
|
|
5017
|
+
return returner;
|
|
5018
|
+
}
|
|
5019
|
+
}
|
|
5020
|
+
}
|
|
5021
|
+
return node;
|
|
5022
|
+
}
|
|
5023
|
+
}
|
|
5024
|
+
|
|
5025
|
+
|
|
4947
5026
|
/***/ }),
|
|
4948
5027
|
|
|
4949
5028
|
/***/ "./src/DataStructures/ConnectionBinaryTree/ConnectionTypeTree.ts":
|
|
@@ -4956,8 +5035,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4956
5035
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
4957
5036
|
/* harmony export */ ConnectionTypeTree: () => (/* binding */ ConnectionTypeTree)
|
|
4958
5037
|
/* harmony export */ });
|
|
4959
|
-
/* harmony import */ var
|
|
4960
|
-
/* harmony import */ var _ConnectionNode__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ConnectionNode */ "./src/DataStructures/ConnectionBinaryTree/ConnectionNode.ts");
|
|
5038
|
+
/* harmony import */ var _ConnectionTypeNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ConnectionTypeNode */ "./src/DataStructures/ConnectionBinaryTree/ConnectionTypeNode.ts");
|
|
4961
5039
|
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
4962
5040
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4963
5041
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -4968,92 +5046,90 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
|
|
|
4968
5046
|
});
|
|
4969
5047
|
};
|
|
4970
5048
|
|
|
4971
|
-
|
|
4972
5049
|
class ConnectionTypeTree {
|
|
4973
|
-
static
|
|
5050
|
+
static CreateCompositionKey(typeId) {
|
|
5051
|
+
return typeId;
|
|
5052
|
+
}
|
|
5053
|
+
/**
|
|
5054
|
+
* This is a function to add the connectionNode to the existing tree
|
|
5055
|
+
* @param connectionOfNode This is the node that needs to be added to the tree.
|
|
5056
|
+
* @returns ConnectionOfNode
|
|
5057
|
+
*/
|
|
5058
|
+
static addNodeToTree(connectionOfNode) {
|
|
4974
5059
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4975
5060
|
if (this.connectionTypeRoot == null) {
|
|
4976
|
-
this.connectionTypeRoot =
|
|
5061
|
+
this.connectionTypeRoot = connectionOfNode;
|
|
4977
5062
|
return this.connectionTypeRoot;
|
|
4978
5063
|
}
|
|
4979
5064
|
else {
|
|
4980
|
-
this.connectionTypeRoot = this.connectionTypeRoot.
|
|
5065
|
+
this.connectionTypeRoot = this.connectionTypeRoot.addNode(connectionOfNode, this.connectionTypeRoot, this.connectionTypeRoot.height);
|
|
4981
5066
|
}
|
|
4982
5067
|
return this.connectionTypeRoot;
|
|
4983
5068
|
});
|
|
4984
5069
|
}
|
|
4985
|
-
|
|
4986
|
-
|
|
4987
|
-
|
|
4988
|
-
|
|
4989
|
-
|
|
4990
|
-
|
|
4991
|
-
}, 25000);
|
|
4992
|
-
});
|
|
4993
|
-
});
|
|
4994
|
-
}
|
|
4995
|
-
static checkFlag(resolve) {
|
|
4996
|
-
if (_IdentifierFlags__WEBPACK_IMPORTED_MODULE_0__.IdentifierFlags.isConnectionTypeLoaded) {
|
|
4997
|
-
return resolve("done");
|
|
4998
|
-
}
|
|
4999
|
-
else {
|
|
5000
|
-
setTimeout(ConnectionTypeTree.checkFlag, 1000, resolve);
|
|
5001
|
-
}
|
|
5002
|
-
}
|
|
5003
|
-
;
|
|
5070
|
+
/**
|
|
5071
|
+
* This function lets you add a connection by composite key with of the concept id and type id.
|
|
5072
|
+
* This function checks if the connection already exists and then updates in the case that it does not
|
|
5073
|
+
* If the connection of the concept id and type id combination is encountered first time then a node is created.
|
|
5074
|
+
* @param connection connection that needs to be added.
|
|
5075
|
+
*/
|
|
5004
5076
|
static addConnectionToTree(connection) {
|
|
5005
|
-
if (connection.
|
|
5006
|
-
let
|
|
5007
|
-
this.
|
|
5077
|
+
if (connection.id > 0) {
|
|
5078
|
+
let key = this.CreateCompositionKey(connection.typeId);
|
|
5079
|
+
if (this.connectionTypeRoot) {
|
|
5080
|
+
// let event = new Event(`${key}`);
|
|
5081
|
+
// // console.log("dispatched the of the concecpt event", event);
|
|
5082
|
+
// dispatchEvent(event);
|
|
5083
|
+
let existingNode = this.connectionTypeRoot.getFromNode(key, this.connectionTypeRoot);
|
|
5084
|
+
if (existingNode) {
|
|
5085
|
+
let connectionList = existingNode === null || existingNode === void 0 ? void 0 : existingNode.value;
|
|
5086
|
+
if (connectionList.length == 0) {
|
|
5087
|
+
existingNode.value = [];
|
|
5088
|
+
}
|
|
5089
|
+
if (!connectionList.includes(connection.id)) {
|
|
5090
|
+
connectionList.push(connection.id);
|
|
5091
|
+
}
|
|
5092
|
+
}
|
|
5093
|
+
else {
|
|
5094
|
+
let list = [];
|
|
5095
|
+
list.push(connection.id);
|
|
5096
|
+
let connectionNode = new _ConnectionTypeNode__WEBPACK_IMPORTED_MODULE_0__.ConnectionTypeNode(key, list, null, null);
|
|
5097
|
+
this.addNodeToTree(connectionNode);
|
|
5098
|
+
}
|
|
5099
|
+
}
|
|
5100
|
+
else {
|
|
5101
|
+
let list = [];
|
|
5102
|
+
list.push(connection.id);
|
|
5103
|
+
let connectionNode = new _ConnectionTypeNode__WEBPACK_IMPORTED_MODULE_0__.ConnectionTypeNode(key, list, null, null);
|
|
5104
|
+
this.addNodeToTree(connectionNode);
|
|
5105
|
+
}
|
|
5008
5106
|
}
|
|
5009
|
-
|
|
5010
|
-
|
|
5011
|
-
if (this.connectionTypeRoot) {
|
|
5012
|
-
this.connectionTypeRoot = this.connectionTypeRoot.removeNodeWithVariants(this.connectionTypeRoot, typeId, id);
|
|
5107
|
+
else {
|
|
5108
|
+
console.log("cannot insert key id with n 0 to the connection tree", connection);
|
|
5013
5109
|
}
|
|
5014
5110
|
}
|
|
5015
|
-
static
|
|
5111
|
+
// static async removeNodeFromTree(id:number){
|
|
5112
|
+
// if(this.connectionTypeRoot){
|
|
5113
|
+
// this.connectionTypeRoot = this.connectionTypeRoot.removeNode(this.connectionTypeRoot,id);
|
|
5114
|
+
// }
|
|
5115
|
+
// }
|
|
5116
|
+
// commented
|
|
5117
|
+
// static getNodeFromTree(id:number){
|
|
5118
|
+
// if(this.connectionTypeRoot){
|
|
5119
|
+
// let Node = this.connectionTypeRoot.getFromNode(id, this.connectionTypeRoot);
|
|
5120
|
+
// return Node;
|
|
5121
|
+
// }
|
|
5122
|
+
// return this.connectionTypeRoot;
|
|
5123
|
+
// }
|
|
5124
|
+
static GetConnectionByOfTheConceptAndTypeId(ofTheConceptId) {
|
|
5125
|
+
let key = this.CreateCompositionKey(ofTheConceptId);
|
|
5016
5126
|
if (this.connectionTypeRoot) {
|
|
5017
|
-
let
|
|
5018
|
-
|
|
5019
|
-
|
|
5020
|
-
return this.connectionTypeRoot;
|
|
5021
|
-
}
|
|
5022
|
-
static getTypeVariantsFromTree(typeId) {
|
|
5023
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
5024
|
-
let connection = [];
|
|
5025
|
-
// try{
|
|
5026
|
-
// let data = await this.waitForDataToLoad();
|
|
5027
|
-
// }
|
|
5028
|
-
// catch(exception){
|
|
5029
|
-
// return connection;
|
|
5030
|
-
// }
|
|
5031
|
-
let Node = this.getNodeFromTree(typeId);
|
|
5032
|
-
if (Node) {
|
|
5033
|
-
connection.push(Node === null || Node === void 0 ? void 0 : Node.value);
|
|
5034
|
-
for (let i = 0; i < Node.variants.length; i++) {
|
|
5035
|
-
connection.push(Node.variants[i].value);
|
|
5036
|
-
}
|
|
5037
|
-
return connection;
|
|
5038
|
-
}
|
|
5039
|
-
});
|
|
5040
|
-
}
|
|
5041
|
-
static getTypeVariantsFromTreeWithUserId(typeId, userId) {
|
|
5042
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
5043
|
-
var concepts = [];
|
|
5044
|
-
var Node = this.getNodeFromTree(typeId);
|
|
5045
|
-
if (Node) {
|
|
5046
|
-
if (Node.value.userId == userId) {
|
|
5047
|
-
concepts.push(Node === null || Node === void 0 ? void 0 : Node.value);
|
|
5048
|
-
}
|
|
5049
|
-
for (let i = 0; i < Node.variants.length; i++) {
|
|
5050
|
-
if (Node.variants[i].value.userId == userId) {
|
|
5051
|
-
concepts.push(Node.variants[i].value);
|
|
5052
|
-
}
|
|
5053
|
-
}
|
|
5127
|
+
let existingNode = this.connectionTypeRoot.getFromNode(key, this.connectionTypeRoot);
|
|
5128
|
+
if (existingNode) {
|
|
5129
|
+
return existingNode.value;
|
|
5054
5130
|
}
|
|
5055
|
-
|
|
5056
|
-
|
|
5131
|
+
}
|
|
5132
|
+
return null;
|
|
5057
5133
|
}
|
|
5058
5134
|
}
|
|
5059
5135
|
ConnectionTypeTree.connectionTypeRoot = null;
|
|
@@ -5272,7 +5348,7 @@ class ConnectionData {
|
|
|
5272
5348
|
if (connection.id != 0) {
|
|
5273
5349
|
(0,_Database_indexeddb__WEBPACK_IMPORTED_MODULE_0__.removeFromDatabase)("connection", connection.id);
|
|
5274
5350
|
_ConnectionBinaryTree_ConnectionBinaryTree__WEBPACK_IMPORTED_MODULE_2__.ConnectionBinaryTree.removeNodeFromTree(connection.id);
|
|
5275
|
-
|
|
5351
|
+
// ConnectionTypeTree.removeTypeConcept(connection.typeId, connection.id);
|
|
5276
5352
|
_ConnectionBinaryTree_ConnectionOfTheTree__WEBPACK_IMPORTED_MODULE_3__.ConnectionOfTheTree.removeNodeFromTree(connection.id);
|
|
5277
5353
|
}
|
|
5278
5354
|
}
|
|
@@ -5328,28 +5404,31 @@ class ConnectionData {
|
|
|
5328
5404
|
return myConnection;
|
|
5329
5405
|
});
|
|
5330
5406
|
}
|
|
5407
|
+
// commented
|
|
5331
5408
|
static GetConnectionsOfCompositionLocal(id) {
|
|
5332
5409
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5333
5410
|
let connections = [];
|
|
5334
|
-
let
|
|
5335
|
-
|
|
5336
|
-
|
|
5337
|
-
|
|
5338
|
-
|
|
5339
|
-
connections.push(
|
|
5340
|
-
for (let i = 0; i < node.variants.length; i++) {
|
|
5341
|
-
connections.push(node.variants[i].value);
|
|
5342
|
-
}
|
|
5411
|
+
let connectionIds = [];
|
|
5412
|
+
connectionIds = _ConnectionBinaryTree_ConnectionTypeTree__WEBPACK_IMPORTED_MODULE_4__.ConnectionTypeTree.GetConnectionByOfTheConceptAndTypeId(id);
|
|
5413
|
+
for (let i = 0; i < connectionIds.length; i++) {
|
|
5414
|
+
let conn = yield _ConnectionBinaryTree_ConnectionBinaryTree__WEBPACK_IMPORTED_MODULE_2__.ConnectionBinaryTree.getNodeFromTree(connectionIds[i]);
|
|
5415
|
+
if (conn) {
|
|
5416
|
+
connections.push(conn.value);
|
|
5343
5417
|
}
|
|
5344
5418
|
}
|
|
5345
|
-
|
|
5346
|
-
//
|
|
5347
|
-
//
|
|
5348
|
-
//
|
|
5419
|
+
return connections;
|
|
5420
|
+
//let node = await ConnectionTypeTree.getNodeFromTree(id);
|
|
5421
|
+
// if(node?.value){
|
|
5422
|
+
// let returnedConnection = node.value;
|
|
5423
|
+
// if(returnedConnection){
|
|
5424
|
+
// let myConnection = returnedConnection as Connection;
|
|
5425
|
+
// connections.push(myConnection);
|
|
5426
|
+
// for(let i=0; i<node.variants.length;i++){
|
|
5427
|
+
// connections.push(node.variants[i].value);
|
|
5349
5428
|
// }
|
|
5350
5429
|
// }
|
|
5351
5430
|
// }
|
|
5352
|
-
return connections;
|
|
5431
|
+
//return connections;
|
|
5353
5432
|
});
|
|
5354
5433
|
}
|
|
5355
5434
|
static GetConnectionsOfConcept(id) {
|
|
@@ -8052,6 +8131,7 @@ class SearchStructure {
|
|
|
8052
8131
|
this.userId = 999;
|
|
8053
8132
|
this.inpage = 10;
|
|
8054
8133
|
this.page = 1;
|
|
8134
|
+
this.auth = true;
|
|
8055
8135
|
}
|
|
8056
8136
|
}
|
|
8057
8137
|
|
|
@@ -10911,8 +10991,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10911
10991
|
/* harmony export */ });
|
|
10912
10992
|
/* harmony import */ var _Api_DeleteTheConnection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Api/DeleteTheConnection */ "./src/Api/DeleteTheConnection.ts");
|
|
10913
10993
|
/* harmony import */ var _DataStructures_ConnectionBinaryTree_ConnectionBinaryTree__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../DataStructures/ConnectionBinaryTree/ConnectionBinaryTree */ "./src/DataStructures/ConnectionBinaryTree/ConnectionBinaryTree.ts");
|
|
10914
|
-
/* harmony import */ var
|
|
10915
|
-
/* harmony import */ var _GetConnections__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./GetConnections */ "./src/Services/GetConnections.ts");
|
|
10994
|
+
/* harmony import */ var _GetConnections__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./GetConnections */ "./src/Services/GetConnections.ts");
|
|
10916
10995
|
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
10917
10996
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
10918
10997
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -10925,14 +11004,13 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
|
|
|
10925
11004
|
|
|
10926
11005
|
|
|
10927
11006
|
|
|
10928
|
-
|
|
10929
11007
|
function DeleteConnectionById(id) {
|
|
10930
11008
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10931
|
-
let connection = yield (0,
|
|
11009
|
+
let connection = yield (0,_GetConnections__WEBPACK_IMPORTED_MODULE_2__.GetConnectionById)(id);
|
|
10932
11010
|
yield (0,_Api_DeleteTheConnection__WEBPACK_IMPORTED_MODULE_0__["default"])(id);
|
|
10933
11011
|
//removeFromDatabase("connection",id);
|
|
10934
11012
|
_DataStructures_ConnectionBinaryTree_ConnectionBinaryTree__WEBPACK_IMPORTED_MODULE_1__.ConnectionBinaryTree.removeNodeFromTree(id);
|
|
10935
|
-
|
|
11013
|
+
//ConnectionTypeTree.removeTypeConcept(connection.typeId,id);
|
|
10936
11014
|
});
|
|
10937
11015
|
}
|
|
10938
11016
|
|
|
@@ -11267,8 +11345,8 @@ function GetCompositionFromMemory(id) {
|
|
|
11267
11345
|
var _a, _b;
|
|
11268
11346
|
let connectionList = [];
|
|
11269
11347
|
let returnOutput = {};
|
|
11270
|
-
connectionList =
|
|
11271
|
-
|
|
11348
|
+
//connectionList = await ConnectionData.GetConnectionsOfConcept(id);
|
|
11349
|
+
connectionList = yield _DataStructures_ConnectionData__WEBPACK_IMPORTED_MODULE_3__.ConnectionData.GetConnectionsOfCompositionLocal(id);
|
|
11272
11350
|
//connectionList = ConnectionData.GetConnectionsOfComposition(id);
|
|
11273
11351
|
let compositionList = [];
|
|
11274
11352
|
for (let i = 0; i < connectionList.length; i++) {
|
|
@@ -11300,8 +11378,8 @@ function GetCompositionFromMemoryNormal(id) {
|
|
|
11300
11378
|
var _a, _b;
|
|
11301
11379
|
let connectionList = [];
|
|
11302
11380
|
let returnOutput = {};
|
|
11303
|
-
connectionList =
|
|
11304
|
-
|
|
11381
|
+
//connectionList = await ConnectionData.GetConnectionsOfConcept(id);
|
|
11382
|
+
connectionList = yield _DataStructures_ConnectionData__WEBPACK_IMPORTED_MODULE_3__.ConnectionData.GetConnectionsOfCompositionLocal(id);
|
|
11305
11383
|
//connectionList = ConnectionData.GetConnectionsOfComposition(id);
|
|
11306
11384
|
let compositionList = [];
|
|
11307
11385
|
console.log("this is the connection list that you build", connectionList);
|
|
@@ -11333,8 +11411,8 @@ function GetCompositionWithIdFromMemory(id) {
|
|
|
11333
11411
|
var _a, _b;
|
|
11334
11412
|
let connectionList = [];
|
|
11335
11413
|
let returnOutput = {};
|
|
11336
|
-
connectionList =
|
|
11337
|
-
|
|
11414
|
+
// connectionList = await ConnectionData.GetConnectionsOfConcept(id);
|
|
11415
|
+
connectionList = yield _DataStructures_ConnectionData__WEBPACK_IMPORTED_MODULE_3__.ConnectionData.GetConnectionsOfCompositionLocal(id);
|
|
11338
11416
|
let compositionList = [];
|
|
11339
11417
|
for (let i = 0; i < connectionList.length; i++) {
|
|
11340
11418
|
if (!compositionList.includes(connectionList[i].ofTheConceptId)) {
|
|
@@ -11370,8 +11448,8 @@ function GetCompositionWithIdFromMemoryNew(id) {
|
|
|
11370
11448
|
var _a, _b;
|
|
11371
11449
|
let connectionList = [];
|
|
11372
11450
|
let returnOutput = {};
|
|
11373
|
-
connectionList =
|
|
11374
|
-
|
|
11451
|
+
//connectionList = await ConnectionData.GetConnectionsOfConcept(id);
|
|
11452
|
+
connectionList = yield _DataStructures_ConnectionData__WEBPACK_IMPORTED_MODULE_3__.ConnectionData.GetConnectionsOfCompositionLocal(id);
|
|
11375
11453
|
let compositionList = [];
|
|
11376
11454
|
for (let i = 0; i < connectionList.length; i++) {
|
|
11377
11455
|
if (!compositionList.includes(connectionList[i].ofTheConceptId)) {
|
|
@@ -11409,8 +11487,8 @@ function GetCompositionWithIdAndDateFromMemory(id) {
|
|
|
11409
11487
|
var _a, _b;
|
|
11410
11488
|
let connectionList = [];
|
|
11411
11489
|
let returnOutput = {};
|
|
11412
|
-
|
|
11413
|
-
connectionList =
|
|
11490
|
+
connectionList = yield _DataStructures_ConnectionData__WEBPACK_IMPORTED_MODULE_3__.ConnectionData.GetConnectionsOfCompositionLocal(id);
|
|
11491
|
+
//connectionList = await ConnectionData.GetConnectionsOfConcept(id);
|
|
11414
11492
|
let compositionList = [];
|
|
11415
11493
|
for (let i = 0; i < connectionList.length; i++) {
|
|
11416
11494
|
if (!compositionList.includes(connectionList[i].ofTheConceptId)) {
|
|
@@ -14715,8 +14793,8 @@ function SearchLinkInternal(searchQuery_1) {
|
|
|
14715
14793
|
function SearchLinkInternalAll(searchQuery_1) {
|
|
14716
14794
|
return __awaiter(this, arguments, void 0, function* (searchQuery, token = "") {
|
|
14717
14795
|
try {
|
|
14718
|
-
let conceptsConnections = yield (0,_Api_Search_SearchInternalApi__WEBPACK_IMPORTED_MODULE_0__.
|
|
14719
|
-
let out =
|
|
14796
|
+
let conceptsConnections = yield (0,_Api_Search_SearchInternalApi__WEBPACK_IMPORTED_MODULE_0__.SearchInternalAllApi)(searchQuery);
|
|
14797
|
+
let out = conceptsConnections;
|
|
14720
14798
|
return out;
|
|
14721
14799
|
}
|
|
14722
14800
|
catch (ex) {
|
|
@@ -16811,6 +16889,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16811
16889
|
/* harmony export */ RecursiveSearchListener: () => (/* reexport safe */ _WrapperFunctions_RecursiveSearchObservable__WEBPACK_IMPORTED_MODULE_74__.RecursiveSearchListener),
|
|
16812
16890
|
/* harmony export */ SearchAllConcepts: () => (/* reexport safe */ _Api_Search_Search__WEBPACK_IMPORTED_MODULE_39__.SearchAllConcepts),
|
|
16813
16891
|
/* harmony export */ SearchLinkInternal: () => (/* reexport safe */ _Services_Search_SearchLinkInternal__WEBPACK_IMPORTED_MODULE_59__.SearchLinkInternal),
|
|
16892
|
+
/* harmony export */ SearchLinkInternalAll: () => (/* reexport safe */ _Services_Search_SearchLinkInternal__WEBPACK_IMPORTED_MODULE_59__.SearchLinkInternalAll),
|
|
16814
16893
|
/* harmony export */ SearchLinkMultipleAll: () => (/* reexport safe */ _Services_Search_SearchLinkMultiple__WEBPACK_IMPORTED_MODULE_51__.SearchLinkMultipleAll),
|
|
16815
16894
|
/* harmony export */ SearchLinkMultipleAllObservable: () => (/* reexport safe */ _WrapperFunctions_SearchLinkMultipleAllObservable__WEBPACK_IMPORTED_MODULE_69__.SearchLinkMultipleAllObservable),
|
|
16816
16895
|
/* harmony export */ SearchLinkMultipleApi: () => (/* reexport safe */ _Api_Search_SearchLinkMultipleApi__WEBPACK_IMPORTED_MODULE_2__.SearchLinkMultipleApi),
|