bruce-models 1.1.8 → 1.2.0

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.
@@ -2547,7 +2547,7 @@ var EntityAttachment;
2547
2547
  if (!(data === null || data === void 0 ? void 0 : data["Entity.ID"]) || !(data === null || data === void 0 ? void 0 : data["EntityAttachmentType.ID"]) || !(data === null || data === void 0 ? void 0 : data["ClientFile.ID"])) {
2548
2548
  throw ("Entity ID, Type ID, and File ID are required.");
2549
2549
  }
2550
- const url = `entity/${data["Entity.ID"]}/attachment/${data["EntityAttachmentType.ID"]}/${data["ClientFile.ID"]}`;
2550
+ const url = `entity/${data["Entity.ID"]}/attachment/${data.oldAttachmentTypeId}/${data["ClientFile.ID"]}`;
2551
2551
  data = yield api.PUT(url, data, Api.PrepReqParams(reqParams));
2552
2552
  api.Cache.Remove(GetCacheKey(data["Entity.ID"], data["EntityAttachmentType.ID"], data["ClientFile.ID"]));
2553
2553
  api.Cache.RemoveByStartsWith(GetListCacheKey(data["Entity.ID"]));
@@ -3292,16 +3292,6 @@ var EntityType;
3292
3292
  return Api.ECacheKey.EntityType;
3293
3293
  }
3294
3294
  EntityType.GetListCacheKey = GetListCacheKey;
3295
- let EAttributeType;
3296
- (function (EAttributeType) {
3297
- EAttributeType["String"] = "String";
3298
- EAttributeType["Double"] = "Double";
3299
- EAttributeType["Integer"] = "Integer";
3300
- EAttributeType["Datetime"] = "Datetime";
3301
- EAttributeType["Structure"] = "Structure";
3302
- EAttributeType["Boolean"] = "Boolean";
3303
- EAttributeType["Geometry"] = "Geometry";
3304
- })(EAttributeType = EntityType.EAttributeType || (EntityType.EAttributeType = {}));
3305
3295
  function Get(api, typeId, reqParams) {
3306
3296
  return __awaiter(this, void 0, void 0, function* () {
3307
3297
  if (!typeId) {
@@ -4065,6 +4055,20 @@ var EntityTypeVisualSettings;
4065
4055
  })(EAction = EntityTypeVisualSettings.EAction || (EntityTypeVisualSettings.EAction = {}));
4066
4056
  })(EntityTypeVisualSettings || (EntityTypeVisualSettings = {}));
4067
4057
 
4058
+ var EntityAttribute;
4059
+ (function (EntityAttribute) {
4060
+ let EType;
4061
+ (function (EType) {
4062
+ EType["String"] = "String";
4063
+ EType["Double"] = "Double";
4064
+ EType["Integer"] = "Integer";
4065
+ EType["Datetime"] = "Datetime";
4066
+ EType["Structure"] = "Structure";
4067
+ EType["Geometry"] = "Geometry";
4068
+ EType["Dictionary"] = "Dictionary";
4069
+ })(EType = EntityAttribute.EType || (EntityAttribute.EType = {}));
4070
+ })(EntityAttribute || (EntityAttribute = {}));
4071
+
4068
4072
  /**
4069
4073
  * Describes the "Client File" concept within Bruce.
4070
4074
  * A client file is a record of a file uploaded to Bruce.
@@ -6169,5 +6173,5 @@ var Markup;
6169
6173
  })(Entity3d = Markup.Entity3d || (Markup.Entity3d = {}));
6170
6174
  })(Markup || (Markup = {}));
6171
6175
 
6172
- export { AnnDocument, CustomForm, CustomFormContent, AbstractApi, Api, BruceApi, CamApi, IdmApi, GlobalApi, Calculator, Bounds, BruceEvent, CacheControl, Camera, Cartes, Carto, Color, DelayQueue, Geometry, UTC, BruceVariable, EntityAttachmentType, EntityAttachment, EntityComment, EntityLink, EntityLod, EntityRelationType, EntityRelation, EntitySource, EntityTag, EntityType, Entity, EntityGlobe, EntityFilterGetter, BatchedDataGetter, EntityCoords, EntityTypeVisualSettings, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, PendingAction, MessageBroker, Style, TilesetEntitiesMapTiles, TilesetExtMapTiles, Tileset, Permission, Session, UserGroup, User, Account, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, DataLab, ImportCad, ImportCsv, ImportJson, ImportKml, ImportedFile, Markup };
6176
+ export { AnnDocument, CustomForm, CustomFormContent, AbstractApi, Api, BruceApi, CamApi, IdmApi, GlobalApi, Calculator, Bounds, BruceEvent, CacheControl, Camera, Cartes, Carto, Color, DelayQueue, Geometry, UTC, BruceVariable, EntityAttachmentType, EntityAttachment, EntityComment, EntityLink, EntityLod, EntityRelationType, EntityRelation, EntitySource, EntityTag, EntityType, Entity, EntityGlobe, EntityFilterGetter, BatchedDataGetter, EntityCoords, EntityTypeVisualSettings, EntityAttribute, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, PendingAction, MessageBroker, Style, TilesetEntitiesMapTiles, TilesetExtMapTiles, Tileset, Permission, Session, UserGroup, User, Account, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, DataLab, ImportCad, ImportCsv, ImportJson, ImportKml, ImportedFile, Markup };
6173
6177
  //# sourceMappingURL=bruce-models.es5.js.map