bruce-models 4.9.2 → 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.
- package/dist/bruce-models.es5.js +22 -1
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +22 -1
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/data-source/data-source.js +21 -0
- package/dist/lib/data-source/data-source.js.map +1 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/dist/types/data-source/data-source.d.ts +14 -0
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -14308,6 +14308,27 @@ var DataSource;
|
|
|
14308
14308
|
});
|
|
14309
14309
|
}
|
|
14310
14310
|
DataSource.GetList = GetList;
|
|
14311
|
+
/**
|
|
14312
|
+
* Runs analysis on given data samples and provides suggested schemas and mapping.
|
|
14313
|
+
* @param params
|
|
14314
|
+
*/
|
|
14315
|
+
function Analyze(params) {
|
|
14316
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14317
|
+
let { api, req: reqParams } = params;
|
|
14318
|
+
if (!api) {
|
|
14319
|
+
api = ENVIRONMENT.Api().GetBruceApi();
|
|
14320
|
+
}
|
|
14321
|
+
const res = yield api.POST("source/analyze", {
|
|
14322
|
+
"DataSamples": params.dataSamples
|
|
14323
|
+
}, Api.PrepReqParams(reqParams));
|
|
14324
|
+
return {
|
|
14325
|
+
dataMapping: res.DataMapping,
|
|
14326
|
+
schemaSource: res.SchemaSource,
|
|
14327
|
+
schemaTarget: res.SchemaTarget
|
|
14328
|
+
};
|
|
14329
|
+
});
|
|
14330
|
+
}
|
|
14331
|
+
DataSource.Analyze = Analyze;
|
|
14311
14332
|
/**
|
|
14312
14333
|
* Returns cache identifier for a data source by ID.
|
|
14313
14334
|
* Example: {
|
|
@@ -14338,7 +14359,7 @@ var DataSource;
|
|
|
14338
14359
|
})(DataSource || (DataSource = {}));
|
|
14339
14360
|
|
|
14340
14361
|
// This is updated with the package.json version on build.
|
|
14341
|
-
const VERSION = "4.9.
|
|
14362
|
+
const VERSION = "4.9.3";
|
|
14342
14363
|
|
|
14343
14364
|
export { VERSION, AnnDocument, CustomForm, AbstractApi, Api, BruceApi, GlobalApi, GuardianApi, ApiGetters, Calculator, Bounds, BruceEvent, CacheControl, Camera, Cartes, Carto, Color, DelayQueue, Geometry, UTC, BruceVariable, LRUCache, GeoJson, EntityAttachmentType, EntityAttachment, EntityComment, EntityLink, EntityLod, EntityLodCategory, EntityRelationType, EntityRelation, EntitySource, EntityTag, EntityType, Entity, EntityCoords, EntityTypeVisualSettings, EntityAttribute, EntityHistoricData, EntityTableView, Comment, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, ProjectViewLegacy, ProjectViewLegacyBookmark, PendingAction, MessageBroker, HostingLocation, Style, Tileset, Permission, Session, UserGroup, User, Account, AccountInvite, AccountFeatures, AccountLimits, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, DataLab, ImportAssembly, ImportCad, ImportCsv, ImportJson, ImportGeoJson, ImportKml, ImportedFile, Markup, Uploader, Plugin, ENVIRONMENT, DataSource };
|
|
14344
14365
|
//# sourceMappingURL=bruce-models.es5.js.map
|