bruce-models 4.9.2 → 4.9.4

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.
@@ -14030,6 +14030,27 @@
14030
14030
  });
14031
14031
  }
14032
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;
14033
14054
  /**
14034
14055
  * Returns cache identifier for a data source by ID.
14035
14056
  * Example: {
@@ -14060,7 +14081,7 @@
14060
14081
  })(exports.DataSource || (exports.DataSource = {}));
14061
14082
 
14062
14083
  // This is updated with the package.json version on build.
14063
- const VERSION = "4.9.2";
14084
+ const VERSION = "4.9.4";
14064
14085
 
14065
14086
  exports.VERSION = VERSION;
14066
14087
  exports.AbstractApi = AbstractApi;