bruce-models 5.9.6 → 5.9.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 +33 -5
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +33 -5
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/entity/entity.js +32 -4
- package/dist/lib/entity/entity.js.map +1 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/dist/types/entity/entity.d.ts +32 -29
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -4081,7 +4081,7 @@ var Entity;
|
|
|
4081
4081
|
OrderBy: filter.orderBy,
|
|
4082
4082
|
Filter: requestFilter,
|
|
4083
4083
|
LODType: filter.lodCategoryId,
|
|
4084
|
-
BruceEntityType: filter.entityTypeId,
|
|
4084
|
+
BruceEntityType: (!filter.entityTypeId ? null : filter.entityTypeId),
|
|
4085
4085
|
PageIndex: filter.pageIndex,
|
|
4086
4086
|
PageSize: filter.pageSize,
|
|
4087
4087
|
historicKey: historicKey,
|
|
@@ -4133,7 +4133,7 @@ var Entity;
|
|
|
4133
4133
|
urlParams.set("LODType", body.LODType);
|
|
4134
4134
|
}
|
|
4135
4135
|
if (body.BruceEntityType) {
|
|
4136
|
-
urlParams.set("BruceEntityType", body.BruceEntityType);
|
|
4136
|
+
urlParams.set("BruceEntityType", typeof body.BruceEntityType == "string" ? body.BruceEntityType : body.BruceEntityType.join(","));
|
|
4137
4137
|
}
|
|
4138
4138
|
if (body.PageIndex) {
|
|
4139
4139
|
urlParams.set("PageIndex", String(body.PageIndex));
|
|
@@ -4232,7 +4232,7 @@ var Entity;
|
|
|
4232
4232
|
expandLocation,
|
|
4233
4233
|
expandImports,
|
|
4234
4234
|
expandSources,
|
|
4235
|
-
entityTypeId: filter.entityTypeId,
|
|
4235
|
+
entityTypeId: typeof filter.entityTypeId == "string" ? filter.entityTypeId : filter.entityTypeId.join(","),
|
|
4236
4236
|
historicFrom: historicFrom,
|
|
4237
4237
|
historicKey: historicKey,
|
|
4238
4238
|
historicTo: historicTo,
|
|
@@ -4251,12 +4251,40 @@ var Entity;
|
|
|
4251
4251
|
nextPage = data.NextPage;
|
|
4252
4252
|
nextPageUrl = data.NextPageURL;
|
|
4253
4253
|
}
|
|
4254
|
+
// Callback to get the next page.
|
|
4255
|
+
let getNextPage;
|
|
4256
|
+
if (nextPage) {
|
|
4257
|
+
getNextPage = () => __awaiter(this, void 0, void 0, function* () {
|
|
4258
|
+
let urlStr = null;
|
|
4259
|
+
if (nextPageUrl.startsWith("http")) {
|
|
4260
|
+
urlStr = nextPageUrl;
|
|
4261
|
+
}
|
|
4262
|
+
else {
|
|
4263
|
+
urlStr = api.ConstructUrl({
|
|
4264
|
+
cdn: false,
|
|
4265
|
+
url: nextPageUrl
|
|
4266
|
+
});
|
|
4267
|
+
}
|
|
4268
|
+
const data = yield api.get(urlStr, Api.PrepReqParams(reqParams));
|
|
4269
|
+
// Update URL so we can re-use the same function instance.
|
|
4270
|
+
nextPageUrl = data.NextPageURL;
|
|
4271
|
+
return {
|
|
4272
|
+
entities: data.Items,
|
|
4273
|
+
totalCount: data.TotalCount,
|
|
4274
|
+
imports: data.Imports,
|
|
4275
|
+
nextPage: data.NextPage,
|
|
4276
|
+
nextPageUrl: data.NextPageURL,
|
|
4277
|
+
getNextPage: nextPageUrl ? getNextPage : null
|
|
4278
|
+
};
|
|
4279
|
+
});
|
|
4280
|
+
}
|
|
4254
4281
|
return {
|
|
4255
4282
|
entities,
|
|
4256
4283
|
totalCount,
|
|
4257
4284
|
imports,
|
|
4258
4285
|
nextPage,
|
|
4259
|
-
nextPageUrl
|
|
4286
|
+
nextPageUrl,
|
|
4287
|
+
getNextPage
|
|
4260
4288
|
};
|
|
4261
4289
|
});
|
|
4262
4290
|
}
|
|
@@ -15621,7 +15649,7 @@ var Scenario;
|
|
|
15621
15649
|
})(Scenario || (Scenario = {}));
|
|
15622
15650
|
|
|
15623
15651
|
// This is updated with the package.json version on build.
|
|
15624
|
-
const VERSION = "5.9.
|
|
15652
|
+
const VERSION = "5.9.7";
|
|
15625
15653
|
|
|
15626
15654
|
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, 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 };
|
|
15627
15655
|
//# sourceMappingURL=bruce-models.es5.js.map
|