bruce-models 4.7.9 → 4.8.0

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.
@@ -12940,6 +12940,44 @@
12940
12940
  DataLab.Run = Run;
12941
12941
  })(exports.DataLab || (exports.DataLab = {}));
12942
12942
 
12943
+ (function (ImportAssembly) {
12944
+ function Analyze(params) {
12945
+ return __awaiter(this, void 0, void 0, function* () {
12946
+ let { api, fileAnalyze, req: reqParams } = params;
12947
+ if (!api) {
12948
+ api = exports.ENVIRONMENT.Api().GetBruceApi();
12949
+ }
12950
+ return api.POST("import/analyze/assembly", fileAnalyze, exports.Api.PrepReqParams(reqParams));
12951
+ });
12952
+ }
12953
+ ImportAssembly.Analyze = Analyze;
12954
+ function ImportEntities(params) {
12955
+ return __awaiter(this, void 0, void 0, function* () {
12956
+ let { api, fileImport, req: reqParams } = params;
12957
+ if (!api) {
12958
+ api = exports.ENVIRONMENT.Api().GetBruceApi();
12959
+ }
12960
+ return api.POST("import/assembly", fileImport, exports.Api.PrepReqParams(reqParams));
12961
+ });
12962
+ }
12963
+ ImportAssembly.ImportEntities = ImportEntities;
12964
+ /**
12965
+ * Parses the completed pending action result from running "ImportEntities".
12966
+ * This will return the root entity's id if any is present.
12967
+ * @param paResult
12968
+ */
12969
+ function ParseAnalysisResult(paResult) {
12970
+ try {
12971
+ return typeof paResult == "string" ? JSON.parse(paResult) : paResult;
12972
+ }
12973
+ catch (_a) {
12974
+ // Failed to parse json.
12975
+ }
12976
+ return null;
12977
+ }
12978
+ ImportAssembly.ParseAnalysisResult = ParseAnalysisResult;
12979
+ })(exports.ImportAssembly || (exports.ImportAssembly = {}));
12980
+
12943
12981
  (function (ImportCad) {
12944
12982
  function Analyze(params) {
12945
12983
  return __awaiter(this, void 0, void 0, function* () {
@@ -12989,7 +13027,7 @@
12989
13027
  if (!api) {
12990
13028
  api = exports.ENVIRONMENT.Api().GetBruceApi();
12991
13029
  }
12992
- return api.POST("entities/importCSVWithProgress2", fileImport, exports.Api.PrepReqParams(reqParams));
13030
+ return api.POST("import/csv", fileImport, exports.Api.PrepReqParams(reqParams));
12993
13031
  });
12994
13032
  }
12995
13033
  ImportCsv.ImportEntities = ImportEntities;
@@ -13002,12 +13040,25 @@
13002
13040
  if (!api) {
13003
13041
  api = exports.ENVIRONMENT.Api().GetBruceApi();
13004
13042
  }
13005
- return api.POST("entities/importJsonWithProgress", fileImport, exports.Api.PrepReqParams(reqParams));
13043
+ return api.POST("import/json", fileImport, exports.Api.PrepReqParams(reqParams));
13006
13044
  });
13007
13045
  }
13008
13046
  ImportJson.ImportEntities = ImportEntities;
13009
13047
  })(exports.ImportJson || (exports.ImportJson = {}));
13010
13048
 
13049
+ (function (ImportGeoJson) {
13050
+ function ImportEntities(params) {
13051
+ return __awaiter(this, void 0, void 0, function* () {
13052
+ let { api, fileImport, req: reqParams } = params;
13053
+ if (!api) {
13054
+ api = exports.ENVIRONMENT.Api().GetBruceApi();
13055
+ }
13056
+ return api.POST("import/geojson", fileImport, exports.Api.PrepReqParams(reqParams));
13057
+ });
13058
+ }
13059
+ ImportGeoJson.ImportEntities = ImportEntities;
13060
+ })(exports.ImportGeoJson || (exports.ImportGeoJson = {}));
13061
+
13011
13062
  (function (ImportKml) {
13012
13063
  function ImportEntities(params) {
13013
13064
  return __awaiter(this, void 0, void 0, function* () {
@@ -13015,7 +13066,7 @@
13015
13066
  if (!api) {
13016
13067
  api = exports.ENVIRONMENT.Api().GetBruceApi();
13017
13068
  }
13018
- return api.POST("entities/importKMLWithProgress2", fileImport, exports.Api.PrepReqParams(reqParams));
13069
+ return api.POST("import/kml", fileImport, exports.Api.PrepReqParams(reqParams));
13019
13070
  });
13020
13071
  }
13021
13072
  ImportKml.ImportEntities = ImportEntities;
@@ -13865,7 +13916,7 @@
13865
13916
  })(exports.DataSource || (exports.DataSource = {}));
13866
13917
 
13867
13918
  // This is updated with the package.json version on build.
13868
- const VERSION = "4.7.9";
13919
+ const VERSION = "4.8.0";
13869
13920
 
13870
13921
  exports.VERSION = VERSION;
13871
13922
  exports.AbstractApi = AbstractApi;