bruce-models 7.0.9 → 7.0.12

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.
@@ -17046,8 +17046,90 @@ class NavigatorMcpWebSocketClient {
17046
17046
  }
17047
17047
  }
17048
17048
 
17049
+ var ChangeSet;
17050
+ (function (ChangeSet) {
17051
+ /**
17052
+ * Updates existing or crates new Change Set record.
17053
+ */
17054
+ function Update(params) {
17055
+ return __awaiter(this, void 0, void 0, function* () {
17056
+ let { changeSet: data, api, req: reqParams } = params;
17057
+ if (!api) {
17058
+ api = ENVIRONMENT.Api().GetBruceApi();
17059
+ }
17060
+ const url = `change` + (data.ID == null ? "" : "/" + data.ID);
17061
+ const res = yield api.POST(url, data, Api.PrepReqParams(reqParams));
17062
+ return;
17063
+ });
17064
+ }
17065
+ ChangeSet.Update = Update;
17066
+ /**
17067
+ * Deletes the specified Change Set record.
17068
+ */
17069
+ function Delete(params) {
17070
+ return __awaiter(this, void 0, void 0, function* () {
17071
+ let { id, api, req: reqParams } = params;
17072
+ if (!api) {
17073
+ api = ENVIRONMENT.Api().GetBruceApi();
17074
+ }
17075
+ yield api.DELETE(`change/${id}`, Api.PrepReqParams(reqParams));
17076
+ });
17077
+ }
17078
+ ChangeSet.Delete = Delete;
17079
+ /**
17080
+ * Gets the Change Set record by its ID.
17081
+ */
17082
+ function Get(params) {
17083
+ return __awaiter(this, void 0, void 0, function* () {
17084
+ let { id, api, req: reqParams } = params;
17085
+ if (!api) {
17086
+ api = ENVIRONMENT.Api().GetBruceApi();
17087
+ }
17088
+ reqParams = Api.PrepReqParams(reqParams);
17089
+ const prom = new Promise((res, rej) => __awaiter(this, void 0, void 0, function* () {
17090
+ try {
17091
+ const data = yield api.GET(`change/${id}`, Api.PrepReqParams(reqParams));
17092
+ res({
17093
+ changeSet: data
17094
+ });
17095
+ }
17096
+ catch (e) {
17097
+ rej(e);
17098
+ }
17099
+ }));
17100
+ return prom;
17101
+ });
17102
+ }
17103
+ ChangeSet.Get = Get;
17104
+ /**
17105
+ * Gets the list of all the Change Set records.
17106
+ */
17107
+ function GetList(params) {
17108
+ return __awaiter(this, void 0, void 0, function* () {
17109
+ let { api, req: reqParams } = params;
17110
+ if (!api) {
17111
+ api = ENVIRONMENT.Api().GetBruceApi();
17112
+ }
17113
+ reqParams = Api.PrepReqParams(reqParams);
17114
+ const prom = new Promise((res, rej) => __awaiter(this, void 0, void 0, function* () {
17115
+ try {
17116
+ const data = yield api.GET("changes", Api.PrepReqParams(reqParams));
17117
+ res({
17118
+ changeSet: data === null || data === void 0 ? void 0 : data.Items
17119
+ });
17120
+ }
17121
+ catch (e) {
17122
+ rej(e);
17123
+ }
17124
+ }));
17125
+ return prom;
17126
+ });
17127
+ }
17128
+ ChangeSet.GetList = GetList;
17129
+ })(ChangeSet || (ChangeSet = {}));
17130
+
17049
17131
  // This is updated with the package.json version on build.
17050
- const VERSION = "7.0.9";
17132
+ const VERSION = "7.0.12";
17051
17133
 
17052
- 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 };
17134
+ 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 };
17053
17135
  //# sourceMappingURL=bruce-models.es5.js.map