bruce-models 7.1.84 → 7.1.86
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 -4
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +27 -4
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/change-set/change-set.js +7 -3
- package/dist/lib/change-set/change-set.js.map +1 -1
- package/dist/lib/import/import-assembly.js +19 -0
- package/dist/lib/import/import-assembly.js.map +1 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/dist/types/change-set/change-set.d.ts +12 -0
- package/dist/types/import/import-assembly.d.ts +22 -5
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -8544,11 +8544,12 @@ var ChangeSet;
|
|
|
8544
8544
|
*/
|
|
8545
8545
|
function Get(params) {
|
|
8546
8546
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8547
|
-
let { id, api, req: reqParams } = params;
|
|
8547
|
+
let { id, expandCount, api, req: reqParams } = params;
|
|
8548
8548
|
if (!api) {
|
|
8549
8549
|
api = ENVIRONMENT.Api().GetBruceApi();
|
|
8550
8550
|
}
|
|
8551
|
-
|
|
8551
|
+
const query = expandCount ? "?Expand=Count" : "";
|
|
8552
|
+
return yield api.GET(`v3/change/${id}${query}`, Api.PrepReqParams(reqParams));
|
|
8552
8553
|
});
|
|
8553
8554
|
}
|
|
8554
8555
|
ChangeSet.Get = Get;
|
|
@@ -8558,7 +8559,7 @@ var ChangeSet;
|
|
|
8558
8559
|
*/
|
|
8559
8560
|
function GetList(params) {
|
|
8560
8561
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8561
|
-
let { api, req: reqParams, pageSize, pageIndex } = params;
|
|
8562
|
+
let { api, req: reqParams, pageSize, pageIndex, expandCount } = params;
|
|
8562
8563
|
if (!api) {
|
|
8563
8564
|
api = ENVIRONMENT.Api().GetBruceApi();
|
|
8564
8565
|
}
|
|
@@ -8569,6 +8570,9 @@ var ChangeSet;
|
|
|
8569
8570
|
if (pageIndex != null) {
|
|
8570
8571
|
urlParams.append("PageIndex", String(pageIndex));
|
|
8571
8572
|
}
|
|
8573
|
+
if (expandCount) {
|
|
8574
|
+
urlParams.append("Expand", "Count");
|
|
8575
|
+
}
|
|
8572
8576
|
const query = urlParams.toString();
|
|
8573
8577
|
return api.GET(query ? `v3/changes?${query}` : "v3/changes", Api.PrepReqParams(reqParams));
|
|
8574
8578
|
});
|
|
@@ -15186,6 +15190,25 @@ var ImportAssembly;
|
|
|
15186
15190
|
return null;
|
|
15187
15191
|
}
|
|
15188
15192
|
ImportAssembly.ParseAnalysisResult = ParseAnalysisResult;
|
|
15193
|
+
/**
|
|
15194
|
+
* Returns the analysis itself, wherever the API decided to put it.
|
|
15195
|
+
*/
|
|
15196
|
+
function ResolveAnalysisResult(params) {
|
|
15197
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
15198
|
+
let { api, paResult, req: reqParams } = params;
|
|
15199
|
+
const parsed = ParseAnalysisResult(paResult);
|
|
15200
|
+
const tempFileId = parsed === null || parsed === void 0 ? void 0 : parsed["Analysis.TempFile.ID"];
|
|
15201
|
+
if (!parsed || !tempFileId) {
|
|
15202
|
+
return parsed;
|
|
15203
|
+
}
|
|
15204
|
+
if (!api) {
|
|
15205
|
+
api = ENVIRONMENT.Api().GetBruceApi();
|
|
15206
|
+
}
|
|
15207
|
+
const analysis = yield api.GET("tempfile/" + tempFileId, Api.PrepReqParams(reqParams));
|
|
15208
|
+
return typeof analysis === "string" ? ParseAnalysisResult(analysis) : analysis;
|
|
15209
|
+
});
|
|
15210
|
+
}
|
|
15211
|
+
ImportAssembly.ResolveAnalysisResult = ResolveAnalysisResult;
|
|
15189
15212
|
})(ImportAssembly || (ImportAssembly = {}));
|
|
15190
15213
|
|
|
15191
15214
|
/**
|
|
@@ -20721,7 +20744,7 @@ var UrlUtils;
|
|
|
20721
20744
|
})(UrlUtils || (UrlUtils = {}));
|
|
20722
20745
|
|
|
20723
20746
|
// This is updated with the package.json version on build.
|
|
20724
|
-
const VERSION = "7.1.
|
|
20747
|
+
const VERSION = "7.1.86";
|
|
20725
20748
|
|
|
20726
20749
|
export { VERSION, Account, AccountAudit, AccountConcept, AccountFeatures, AccountInvite, AccountLimits, AccountTemplate, AccountType, AnnDocument, AbstractApi, Api, ApiGetters, BruceApi, GlobalApi, GuardianApi, Assembly, Calculator, ChangeSet, ClientFile, Bounds, BruceEvent, BruceVariable, CacheControl, Camera, Cartes, Carto, Color, DelayQueue, GeoJson, Geometry, LRUCache, UTC, CustomForm, DashboardView, DataFeed, DataLab, DataLabGroup, DataSource, DataTransform, Comment, Entity, EntityAttachment, EntityAttachmentType, EntityAttribute, EntityComment, EntityCoords, EntityHistoricData, EntityLink, EntityLod, EntityLodCategory, EntityRelation, EntityRelationType, EntitySource, EntityTableView, EntityTag, EntityType, EntityTypeRelation, EntityTypeTrigger, Ontology, OntologyDocument, ENVIRONMENT, ExportBrz, ExportCsv, ExportUsd, Hexbin, ImportAssembly, ImportCad, ImportCsv, ImportGeoJson, ImportJson, ImportKml, ImportLcc, ImportedFile, Uploader, Markup, UIMarkup, NAVIGATOR_CHAT_EVENT_ENTITY_HIGHLIGHT_APPLIED, NAVIGATOR_CHAT_EVENT_SCENE_CONTEXT_PREFETCHED, NavigatorChatClient, NavigatorMcpWebSocketClient, Plugin, ProgramKey, MenuItem, ProjectView, ProjectViewBookmark, ProjectViewBookmarkGroup, ProjectViewLegacy, ProjectViewLegacyBookmark, ProjectViewLegacyTile, ProjectViewTile, ZoomControl, Scenario, HostingLocation, MessageBroker, PendingAction, RecordChangeFeed, Style, Tileset, Tracking, Permission, Session, User, UserGroup, UserMfaMethod, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils };
|
|
20727
20750
|
//# sourceMappingURL=bruce-models.es5.js.map
|