bruce-models 7.1.5 → 7.1.7
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 +36 -1
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +36 -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 +35 -0
- package/dist/lib/entity/entity-type.js.map +1 -1
- package/dist/lib/export/export-usd.js.map +1 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/dist/types/entity/entity-type.d.ts +25 -0
- package/dist/types/export/export-usd.d.ts +2 -0
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -3527,6 +3527,41 @@ var EntityType;
|
|
|
3527
3527
|
});
|
|
3528
3528
|
}
|
|
3529
3529
|
EntityType.ExportOntology = ExportOntology;
|
|
3530
|
+
/**
|
|
3531
|
+
* Gets source dependency records for an Entity Type.
|
|
3532
|
+
* This calls: GET entityType/{entityType_id}/sourceDependencies
|
|
3533
|
+
*/
|
|
3534
|
+
function GetSourceDependencies(params) {
|
|
3535
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3536
|
+
let { api, entityTypeId, req } = params;
|
|
3537
|
+
if (!entityTypeId) {
|
|
3538
|
+
throw ("Type ID is required.");
|
|
3539
|
+
}
|
|
3540
|
+
if (!api) {
|
|
3541
|
+
api = ENVIRONMENT.Api().GetBruceApi();
|
|
3542
|
+
}
|
|
3543
|
+
const res = yield api.GET(`entityType/${entityTypeId}/sourceDependencies`, Api.PrepReqParams(req));
|
|
3544
|
+
return {
|
|
3545
|
+
sourceDependencies: ParseSourceDependenciesResponse(res)
|
|
3546
|
+
};
|
|
3547
|
+
});
|
|
3548
|
+
}
|
|
3549
|
+
EntityType.GetSourceDependencies = GetSourceDependencies;
|
|
3550
|
+
/**
|
|
3551
|
+
* Normalizes response from GetSourceDependencies.
|
|
3552
|
+
* Supports list wrappers and direct array payloads.
|
|
3553
|
+
*/
|
|
3554
|
+
function ParseSourceDependenciesResponse(response) {
|
|
3555
|
+
var _a, _b, _c, _d;
|
|
3556
|
+
const parsed = parseObject(response);
|
|
3557
|
+
const parsedResult = (_a = parseObject(parsed === null || parsed === void 0 ? void 0 : parsed.Result)) !== null && _a !== void 0 ? _a : parsed === null || parsed === void 0 ? void 0 : parsed.Result;
|
|
3558
|
+
const list = (_d = (_c = (_b = parsed === null || parsed === void 0 ? void 0 : parsed.Items) !== null && _b !== void 0 ? _b : parsedResult === null || parsedResult === void 0 ? void 0 : parsedResult.Items) !== null && _c !== void 0 ? _c : parsedResult) !== null && _d !== void 0 ? _d : parsed;
|
|
3559
|
+
if (Array.isArray(list)) {
|
|
3560
|
+
return list;
|
|
3561
|
+
}
|
|
3562
|
+
return [];
|
|
3563
|
+
}
|
|
3564
|
+
EntityType.ParseSourceDependenciesResponse = ParseSourceDependenciesResponse;
|
|
3530
3565
|
/**
|
|
3531
3566
|
* Normalizes response from ExportOntology.
|
|
3532
3567
|
* Supports both direct response payloads and wrapper shapes.
|
|
@@ -17172,7 +17207,7 @@ var ChangeSet;
|
|
|
17172
17207
|
})(ChangeSet || (ChangeSet = {}));
|
|
17173
17208
|
|
|
17174
17209
|
// This is updated with the package.json version on build.
|
|
17175
|
-
const VERSION = "7.1.
|
|
17210
|
+
const VERSION = "7.1.7";
|
|
17176
17211
|
|
|
17177
17212
|
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 };
|
|
17178
17213
|
//# sourceMappingURL=bruce-models.es5.js.map
|