bruce-models 4.0.6 → 4.0.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 +18 -1
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +18 -1
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/server/pending-action.js +17 -0
- package/dist/lib/server/pending-action.js.map +1 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/dist/types/server/pending-action.d.ts +9 -0
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -9480,6 +9480,23 @@ var PendingAction;
|
|
|
9480
9480
|
});
|
|
9481
9481
|
}
|
|
9482
9482
|
PendingAction.GetMessages = GetMessages;
|
|
9483
|
+
/**
|
|
9484
|
+
* Requests to cancel a pending action.
|
|
9485
|
+
* @param params
|
|
9486
|
+
*/
|
|
9487
|
+
function Cancel(params) {
|
|
9488
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9489
|
+
let { api, actionId, req: reqParams } = params;
|
|
9490
|
+
if (!actionId) {
|
|
9491
|
+
throw ("Action ID is required.");
|
|
9492
|
+
}
|
|
9493
|
+
if (!api) {
|
|
9494
|
+
api = ENVIRONMENT.Api().GetBruceApi();
|
|
9495
|
+
}
|
|
9496
|
+
yield api.DELETE(`pendingAction/${actionId}`, Api.PrepReqParams(reqParams));
|
|
9497
|
+
});
|
|
9498
|
+
}
|
|
9499
|
+
PendingAction.Cancel = Cancel;
|
|
9483
9500
|
})(PendingAction || (PendingAction = {}));
|
|
9484
9501
|
|
|
9485
9502
|
/**
|
|
@@ -11889,7 +11906,7 @@ var DataSource;
|
|
|
11889
11906
|
})(DataSource || (DataSource = {}));
|
|
11890
11907
|
|
|
11891
11908
|
// This is updated with the package.json version on build.
|
|
11892
|
-
const VERSION = "4.0.
|
|
11909
|
+
const VERSION = "4.0.7";
|
|
11893
11910
|
|
|
11894
11911
|
export { VERSION, AnnDocument, CustomForm, AbstractApi, Api, BruceApi, GlobalApi, GuardianApi, ApiGetters, Calculator, Bounds, BruceEvent, CacheControl, Camera, Cartes, Carto, Color, DelayQueue, Geometry, UTC, BruceVariable, LRUCache, EntityAttachmentType, EntityAttachment, EntityComment, EntityLink, EntityLod, EntityLodCategory, EntityRelationType, EntityRelation, EntitySource, EntityTag, EntityType, Entity, EntityCoords, EntityTypeVisualSettings, EntityAttribute, EntityHistoricData, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, ProjectViewLegacy, ProjectViewLegacyBookmark, PendingAction, MessageBroker, HostingLocation, Style, Tileset, Permission, Session, UserGroup, User, Account, AccountInvite, AccountFeatures, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, DataLab, ImportCad, ImportCsv, ImportJson, ImportKml, ImportedFile, Markup, Uploader, Plugin, ENVIRONMENT, DataSource };
|
|
11895
11912
|
//# sourceMappingURL=bruce-models.es5.js.map
|