bruce-models 7.1.4 → 7.1.5
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 +57 -1
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +57 -1
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/entity/entity-type.js +56 -0
- package/dist/lib/entity/entity-type.js.map +1 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/dist/types/entity/entity-type.d.ts +62 -0
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -3236,6 +3236,7 @@ var EntityAttribute;
|
|
|
3236
3236
|
*/
|
|
3237
3237
|
var EntityType;
|
|
3238
3238
|
(function (EntityType) {
|
|
3239
|
+
const EXPORT_ONTOLOGY_ENDPOINT = "entityType/ontology/export";
|
|
3239
3240
|
/**
|
|
3240
3241
|
* Gets an entity type record.
|
|
3241
3242
|
* @param params
|
|
@@ -3511,6 +3512,47 @@ var EntityType;
|
|
|
3511
3512
|
});
|
|
3512
3513
|
}
|
|
3513
3514
|
EntityType.SuggestDataSchemaByPrompt = SuggestDataSchemaByPrompt;
|
|
3515
|
+
/**
|
|
3516
|
+
* Exports Entity Type ontology data.
|
|
3517
|
+
* This calls: POST entityType/ontology/export
|
|
3518
|
+
*/
|
|
3519
|
+
function ExportOntology(params) {
|
|
3520
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3521
|
+
let { api, ontologyExport, req } = params;
|
|
3522
|
+
if (!api) {
|
|
3523
|
+
api = ENVIRONMENT.Api().GetBruceApi();
|
|
3524
|
+
}
|
|
3525
|
+
const res = yield api.POST(EXPORT_ONTOLOGY_ENDPOINT, ontologyExport !== null && ontologyExport !== void 0 ? ontologyExport : {}, req ? Api.PrepReqParams(req) : undefined);
|
|
3526
|
+
return ParseExportOntologyResponse(res);
|
|
3527
|
+
});
|
|
3528
|
+
}
|
|
3529
|
+
EntityType.ExportOntology = ExportOntology;
|
|
3530
|
+
/**
|
|
3531
|
+
* Normalizes response from ExportOntology.
|
|
3532
|
+
* Supports both direct response payloads and wrapper shapes.
|
|
3533
|
+
*/
|
|
3534
|
+
function ParseExportOntologyResponse(response) {
|
|
3535
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9;
|
|
3536
|
+
const parsed = parseObject(response);
|
|
3537
|
+
const parsedResult = (_c = (_b = parseObject((_a = parsed === null || parsed === void 0 ? void 0 : parsed.Result) !== null && _a !== void 0 ? _a : parsed === null || parsed === void 0 ? void 0 : parsed.ExportResult)) !== null && _b !== void 0 ? _b : parsed === null || parsed === void 0 ? void 0 : parsed.Result) !== null && _c !== void 0 ? _c : parsed === null || parsed === void 0 ? void 0 : parsed.ExportResult;
|
|
3538
|
+
const pendingActionId = (_j = (_h = (_g = (_e = (_d = parsed === null || parsed === void 0 ? void 0 : parsed.PendingActionID) !== null && _d !== void 0 ? _d : parsed === null || parsed === void 0 ? void 0 : parsed["PendingAction.ID"]) !== null && _e !== void 0 ? _e : (_f = parsed === null || parsed === void 0 ? void 0 : parsed.PendingAction) === null || _f === void 0 ? void 0 : _f.ID) !== null && _g !== void 0 ? _g : parsedResult === null || parsedResult === void 0 ? void 0 : parsedResult.PendingActionID) !== null && _h !== void 0 ? _h : parsedResult === null || parsedResult === void 0 ? void 0 : parsedResult["PendingAction.ID"]) !== null && _j !== void 0 ? _j : (_k = parsedResult === null || parsedResult === void 0 ? void 0 : parsedResult.PendingAction) === null || _k === void 0 ? void 0 : _k.ID;
|
|
3539
|
+
const tempFileId = (_p = (_o = (_l = parsed === null || parsed === void 0 ? void 0 : parsed["TempFile.ID"]) !== null && _l !== void 0 ? _l : (_m = parsed === null || parsed === void 0 ? void 0 : parsed.TempFile) === null || _m === void 0 ? void 0 : _m.ID) !== null && _o !== void 0 ? _o : parsedResult === null || parsedResult === void 0 ? void 0 : parsedResult["TempFile.ID"]) !== null && _p !== void 0 ? _p : (_q = parsedResult === null || parsedResult === void 0 ? void 0 : parsedResult.TempFile) === null || _q === void 0 ? void 0 : _q.ID;
|
|
3540
|
+
const tempFileUrl = (_u = (_t = (_r = parsed === null || parsed === void 0 ? void 0 : parsed["TempFile.URL"]) !== null && _r !== void 0 ? _r : (_s = parsed === null || parsed === void 0 ? void 0 : parsed.TempFile) === null || _s === void 0 ? void 0 : _s.URL) !== null && _t !== void 0 ? _t : parsedResult === null || parsedResult === void 0 ? void 0 : parsedResult["TempFile.URL"]) !== null && _u !== void 0 ? _u : (_v = parsedResult === null || parsedResult === void 0 ? void 0 : parsedResult.TempFile) === null || _v === void 0 ? void 0 : _v.URL;
|
|
3541
|
+
const clientFileId = (_z = (_y = (_w = parsed === null || parsed === void 0 ? void 0 : parsed["ClientFile.ID"]) !== null && _w !== void 0 ? _w : (_x = parsed === null || parsed === void 0 ? void 0 : parsed.ClientFile) === null || _x === void 0 ? void 0 : _x.ID) !== null && _y !== void 0 ? _y : parsedResult === null || parsedResult === void 0 ? void 0 : parsedResult["ClientFile.ID"]) !== null && _z !== void 0 ? _z : (_0 = parsedResult === null || parsedResult === void 0 ? void 0 : parsedResult.ClientFile) === null || _0 === void 0 ? void 0 : _0.ID;
|
|
3542
|
+
const clientFileUrl = (_4 = (_3 = (_1 = parsed === null || parsed === void 0 ? void 0 : parsed["ClientFile.URL"]) !== null && _1 !== void 0 ? _1 : (_2 = parsed === null || parsed === void 0 ? void 0 : parsed.ClientFile) === null || _2 === void 0 ? void 0 : _2.URL) !== null && _3 !== void 0 ? _3 : parsedResult === null || parsedResult === void 0 ? void 0 : parsedResult["ClientFile.URL"]) !== null && _4 !== void 0 ? _4 : (_5 = parsedResult === null || parsedResult === void 0 ? void 0 : parsedResult.ClientFile) === null || _5 === void 0 ? void 0 : _5.URL;
|
|
3543
|
+
return {
|
|
3544
|
+
pendingActionId: pendingActionId,
|
|
3545
|
+
tempFileId: tempFileId,
|
|
3546
|
+
tempFileUrl: tempFileUrl,
|
|
3547
|
+
clientFileId: clientFileId,
|
|
3548
|
+
clientFileUrl: clientFileUrl,
|
|
3549
|
+
entityTypeOntology: (_7 = (_6 = parsed === null || parsed === void 0 ? void 0 : parsed.EntityTypeOntology) !== null && _6 !== void 0 ? _6 : parsedResult === null || parsedResult === void 0 ? void 0 : parsedResult.EntityTypeOntology) !== null && _7 !== void 0 ? _7 : parsedResult,
|
|
3550
|
+
warnings: (_8 = parsed === null || parsed === void 0 ? void 0 : parsed.Warnings) !== null && _8 !== void 0 ? _8 : parsedResult === null || parsedResult === void 0 ? void 0 : parsedResult.Warnings,
|
|
3551
|
+
errors: (_9 = parsed === null || parsed === void 0 ? void 0 : parsed.Errors) !== null && _9 !== void 0 ? _9 : parsedResult === null || parsedResult === void 0 ? void 0 : parsedResult.Errors,
|
|
3552
|
+
raw: parsed
|
|
3553
|
+
};
|
|
3554
|
+
}
|
|
3555
|
+
EntityType.ParseExportOntologyResponse = ParseExportOntologyResponse;
|
|
3514
3556
|
/**
|
|
3515
3557
|
* Returns cache identifier for an entity type.
|
|
3516
3558
|
* Example: {
|
|
@@ -3568,6 +3610,20 @@ var EntityType;
|
|
|
3568
3610
|
}
|
|
3569
3611
|
EntityType.GetListCacheKey = GetListCacheKey;
|
|
3570
3612
|
})(EntityType || (EntityType = {}));
|
|
3613
|
+
function parseObject(data) {
|
|
3614
|
+
if (data == null || data == undefined) {
|
|
3615
|
+
return null;
|
|
3616
|
+
}
|
|
3617
|
+
if (typeof data == "string") {
|
|
3618
|
+
try {
|
|
3619
|
+
return JSON.parse(data);
|
|
3620
|
+
}
|
|
3621
|
+
catch (_a) {
|
|
3622
|
+
return null;
|
|
3623
|
+
}
|
|
3624
|
+
}
|
|
3625
|
+
return data;
|
|
3626
|
+
}
|
|
3571
3627
|
/**
|
|
3572
3628
|
* Adds expected internal structure items even if they aren't there.
|
|
3573
3629
|
* Our API should be including them but this is a safety net.
|
|
@@ -17116,7 +17172,7 @@ var ChangeSet;
|
|
|
17116
17172
|
})(ChangeSet || (ChangeSet = {}));
|
|
17117
17173
|
|
|
17118
17174
|
// This is updated with the package.json version on build.
|
|
17119
|
-
const VERSION = "7.1.
|
|
17175
|
+
const VERSION = "7.1.5";
|
|
17120
17176
|
|
|
17121
17177
|
export { VERSION, Assembly, 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, EntityAttribute, EntityHistoricData, EntityTableView, Comment, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, ProjectViewLegacy, ProjectViewLegacyBookmark, ProjectViewBookmarkGroup, PendingAction, MessageBroker, HostingLocation, Style, Tileset, Permission, Session, UserGroup, User, UserMfaMethod, Account, AccountInvite, AccountFeatures, AccountLimits, AccountTemplate, AccountType, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, DataLab, DataLabGroup, ImportAssembly, ImportCad, ImportCsv, ImportJson, ImportGeoJson, ImportKml, ImportedFile, ExportBrz, ExportUsd, Markup, Uploader, Plugin, ENVIRONMENT, DataSource, Scenario, Tracking, NavigatorChatClient, NavigatorMcpWebSocketClient, ChangeSet };
|
|
17122
17178
|
//# sourceMappingURL=bruce-models.es5.js.map
|