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.
- package/dist/bruce-models.es5.js +27 -1
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +27 -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/lib/program-key/program-key.js +5 -0
- package/dist/lib/program-key/program-key.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/dist/types/program-key/program-key.d.ts +2 -0
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -8841,7 +8841,12 @@ var ProgramKey;
|
|
|
8841
8841
|
// Mapbox key. Used for Mapbox within CesiumJS and Unreal.
|
|
8842
8842
|
EProgramId["Mapbox"] = "Mapbox";
|
|
8843
8843
|
// Google Maps key. Used for Google Maps 3D tileset for CesiumJS and Unreal.
|
|
8844
|
+
// @deprecated Use GooglePhotogrammetry instead.
|
|
8844
8845
|
EProgramId["Google"] = "Google";
|
|
8846
|
+
// Google Maps key. Used for Google Maps 3D tileset for CesiumJS and Unreal.
|
|
8847
|
+
EProgramId["GooglePhotogrammetry"] = "GooglePhotogrammetry";
|
|
8848
|
+
// Google APIs key. Used for places search, air quality, etc.
|
|
8849
|
+
EProgramId["GoogleApi"] = "GoogleApi";
|
|
8845
8850
|
// Stadiamaps key. Used for watercolor and toner
|
|
8846
8851
|
EProgramId["StadiaMaps"] = "StadiaMaps";
|
|
8847
8852
|
// Thunderforest key, Used for cycle and transport and landscape
|
|
@@ -14303,6 +14308,27 @@ var DataSource;
|
|
|
14303
14308
|
});
|
|
14304
14309
|
}
|
|
14305
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;
|
|
14306
14332
|
/**
|
|
14307
14333
|
* Returns cache identifier for a data source by ID.
|
|
14308
14334
|
* Example: {
|
|
@@ -14333,7 +14359,7 @@ var DataSource;
|
|
|
14333
14359
|
})(DataSource || (DataSource = {}));
|
|
14334
14360
|
|
|
14335
14361
|
// This is updated with the package.json version on build.
|
|
14336
|
-
const VERSION = "4.9.
|
|
14362
|
+
const VERSION = "4.9.3";
|
|
14337
14363
|
|
|
14338
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 };
|
|
14339
14365
|
//# sourceMappingURL=bruce-models.es5.js.map
|