mftsccs-browser 1.1.57-beta → 1.1.58-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.
@@ -9072,6 +9072,7 @@ class FreeschemaQuery {
9072
9072
  this.name = "";
9073
9073
  this.reverse = false;
9074
9074
  this.includeInFilter = false;
9075
+ this.isOldConnectionType = false;
9075
9076
  }
9076
9077
  }
9077
9078
 
@@ -10848,6 +10849,26 @@ function HandleInternalError(error, url = "") {
10848
10849
  }
10849
10850
 
10850
10851
 
10852
+ /***/ }),
10853
+
10854
+ /***/ "./src/Services/Common/RegexFunction.ts":
10855
+ /*!**********************************************!*\
10856
+ !*** ./src/Services/Common/RegexFunction.ts ***!
10857
+ \**********************************************/
10858
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
10859
+
10860
+ __webpack_require__.r(__webpack_exports__);
10861
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
10862
+ /* harmony export */ removeThePrefix: () => (/* binding */ removeThePrefix)
10863
+ /* harmony export */ });
10864
+ function removeThePrefix(inputString) {
10865
+ if (inputString.startsWith("the_")) {
10866
+ return inputString.slice(4); // Removes the first 4 characters
10867
+ }
10868
+ return inputString; // Return as-is if it doesn't start with "the_"
10869
+ }
10870
+
10871
+
10851
10872
  /***/ }),
10852
10873
 
10853
10874
  /***/ "./src/Services/Composition/BuildComposition.ts":
@@ -16293,6 +16314,7 @@ __webpack_require__.r(__webpack_exports__);
16293
16314
  /* harmony export */ formatFunctionForData: () => (/* binding */ formatFunctionForData)
16294
16315
  /* harmony export */ });
16295
16316
  /* harmony import */ var _app__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../app */ "./src/app.ts");
16317
+ /* harmony import */ var _Common_RegexFunction__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Common/RegexFunction */ "./src/Services/Common/RegexFunction.ts");
16296
16318
  var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
16297
16319
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16298
16320
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -16303,6 +16325,7 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
16303
16325
  });
16304
16326
  };
16305
16327
 
16328
+
16306
16329
  /**
16307
16330
  * ######### Format is normal ######### used for listing. This only provides type connections.
16308
16331
  * This is helpful in building a format that has multiple mainCompositions i.e. in the context of the list
@@ -16699,13 +16722,17 @@ function formatFunctionForData(connections, compositionData, reverse) {
16699
16722
  try {
16700
16723
  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";
16701
16724
  let value = ofTheConcept.characterValue;
16725
+ let dataCharacter = linkerConcept.characterValue;
16726
+ if (dataCharacter == "") {
16727
+ dataCharacter = mytype;
16728
+ dataCharacter = (0,_Common_RegexFunction__WEBPACK_IMPORTED_MODULE_1__.removeThePrefix)(dataCharacter);
16729
+ }
16702
16730
  let data = {
16703
16731
  [mytype]: value
16704
16732
  };
16705
- let reverseCharater = linkerConcept.characterValue + "_reverse";
16733
+ let reverseCharater = dataCharacter + "_reverse";
16706
16734
  if (linkerConcept.characterValue.includes("_s_")) {
16707
- // newData[key][reverseCharater] = [];
16708
- // newData[key][reverseCharater].push(data);
16735
+ // do nothing
16709
16736
  }
16710
16737
  else {
16711
16738
  if (typeof newData[key] == "string") {
@@ -16738,18 +16765,22 @@ function formatFunctionForData(connections, compositionData, reverse) {
16738
16765
  try {
16739
16766
  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";
16740
16767
  let value = toTheConcept.characterValue;
16768
+ let dataCharacter = linkerConcept.characterValue;
16769
+ if (dataCharacter == "") {
16770
+ dataCharacter = mytype;
16771
+ dataCharacter = (0,_Common_RegexFunction__WEBPACK_IMPORTED_MODULE_1__.removeThePrefix)(dataCharacter);
16772
+ }
16741
16773
  let data = {
16742
16774
  [mytype]: value
16743
16775
  };
16744
16776
  if (linkerConcept.characterValue.includes("_s_")) {
16745
- // newData[key][linkerConcept.characterValue] = [];
16746
- // newData[key][linkerConcept.characterValue].push(data);
16777
+ // do nothing
16747
16778
  }
16748
16779
  else {
16749
16780
  if (typeof newData[key] == "string") {
16750
16781
  newData[key] = {};
16751
16782
  }
16752
- newData[key][linkerConcept.characterValue] = data;
16783
+ newData[key][dataCharacter] = data;
16753
16784
  }
16754
16785
  }
16755
16786
  catch (ex) {
@@ -16897,13 +16928,19 @@ function FormatFunctionDataForData(connections_1, compositionData_1) {
16897
16928
  try {
16898
16929
  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";
16899
16930
  let value = ofTheConcept.characterValue;
16931
+ let dataCharacter = linkerConcept.characterValue;
16932
+ // if there is not connection type defined then put the type of the destination concept.
16933
+ if (dataCharacter == "") {
16934
+ dataCharacter = mytype;
16935
+ dataCharacter = (0,_Common_RegexFunction__WEBPACK_IMPORTED_MODULE_1__.removeThePrefix)(dataCharacter);
16936
+ }
16900
16937
  let data = {
16901
16938
  "id": ofTheConcept.id,
16902
16939
  "data": {
16903
16940
  [mytype]: value
16904
16941
  }
16905
16942
  };
16906
- let reverseCharater = linkerConcept.characterValue + "_reverse";
16943
+ let reverseCharater = dataCharacter + "_reverse";
16907
16944
  if (reverseCharater.includes("_s_")) {
16908
16945
  // do nothing
16909
16946
  }
@@ -16938,20 +16975,26 @@ function FormatFunctionDataForData(connections_1, compositionData_1) {
16938
16975
  try {
16939
16976
  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";
16940
16977
  let value = toTheConcept.characterValue;
16978
+ let dataCharacter = linkerConcept.characterValue;
16979
+ // if there is not connection type defined then put the type of the destination concept.
16980
+ if (dataCharacter == "") {
16981
+ dataCharacter = mytype;
16982
+ dataCharacter = (0,_Common_RegexFunction__WEBPACK_IMPORTED_MODULE_1__.removeThePrefix)(dataCharacter);
16983
+ }
16941
16984
  let data = {
16942
16985
  "id": toTheConcept.id,
16943
16986
  "data": {
16944
16987
  [mytype]: value
16945
16988
  }
16946
16989
  };
16947
- if (linkerConcept.characterValue.includes("_s_")) {
16990
+ if (dataCharacter.includes("_s_")) {
16948
16991
  // do nothing
16949
16992
  }
16950
16993
  else {
16951
16994
  if (typeof newData[key] == "string") {
16952
16995
  newData[key] = {};
16953
16996
  }
16954
- newData[key][linkerConcept.characterValue] = data;
16997
+ newData[key][dataCharacter] = data;
16955
16998
  }
16956
16999
  }
16957
17000
  catch (ex) {