bruce-models 4.9.1 → 4.9.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.
@@ -8677,7 +8677,12 @@
8677
8677
  // Mapbox key. Used for Mapbox within CesiumJS and Unreal.
8678
8678
  EProgramId["Mapbox"] = "Mapbox";
8679
8679
  // Google Maps key. Used for Google Maps 3D tileset for CesiumJS and Unreal.
8680
+ // @deprecated Use GooglePhotogrammetry instead.
8680
8681
  EProgramId["Google"] = "Google";
8682
+ // Google Maps key. Used for Google Maps 3D tileset for CesiumJS and Unreal.
8683
+ EProgramId["GooglePhotogrammetry"] = "GooglePhotogrammetry";
8684
+ // Google APIs key. Used for places search, air quality, etc.
8685
+ EProgramId["GoogleApi"] = "GoogleApi";
8681
8686
  // Stadiamaps key. Used for watercolor and toner
8682
8687
  EProgramId["StadiaMaps"] = "StadiaMaps";
8683
8688
  // Thunderforest key, Used for cycle and transport and landscape
@@ -14025,6 +14030,27 @@
14025
14030
  });
14026
14031
  }
14027
14032
  DataSource.GetList = GetList;
14033
+ /**
14034
+ * Runs analysis on given data samples and provides suggested schemas and mapping.
14035
+ * @param params
14036
+ */
14037
+ function Analyze(params) {
14038
+ return __awaiter(this, void 0, void 0, function* () {
14039
+ let { api, req: reqParams } = params;
14040
+ if (!api) {
14041
+ api = exports.ENVIRONMENT.Api().GetBruceApi();
14042
+ }
14043
+ const res = yield api.POST("source/analyze", {
14044
+ "DataSamples": params.dataSamples
14045
+ }, exports.Api.PrepReqParams(reqParams));
14046
+ return {
14047
+ dataMapping: res.DataMapping,
14048
+ schemaSource: res.SchemaSource,
14049
+ schemaTarget: res.SchemaTarget
14050
+ };
14051
+ });
14052
+ }
14053
+ DataSource.Analyze = Analyze;
14028
14054
  /**
14029
14055
  * Returns cache identifier for a data source by ID.
14030
14056
  * Example: {
@@ -14055,7 +14081,7 @@
14055
14081
  })(exports.DataSource || (exports.DataSource = {}));
14056
14082
 
14057
14083
  // This is updated with the package.json version on build.
14058
- const VERSION = "4.9.1";
14084
+ const VERSION = "4.9.3";
14059
14085
 
14060
14086
  exports.VERSION = VERSION;
14061
14087
  exports.AbstractApi = AbstractApi;