bruce-models 0.3.8 → 0.3.9

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.
@@ -4507,6 +4507,26 @@ var ProjectViewBookmark;
4507
4507
  });
4508
4508
  }
4509
4509
  ProjectViewBookmark.Update = Update;
4510
+ function SetOrder(api, viewId, bookmarkIds) {
4511
+ return __awaiter(this, void 0, void 0, function () {
4512
+ var reqData;
4513
+ return __generator(this, function (_a) {
4514
+ switch (_a.label) {
4515
+ case 0:
4516
+ reqData = {
4517
+ "UISlide.ID": bookmarkIds,
4518
+ "DisplayOrder.Start": 0
4519
+ };
4520
+ return [4 /*yield*/, api.POST("ui.view/" + viewId + "/slides/setOrder", reqData, Api.PrepReqParams())];
4521
+ case 1:
4522
+ _a.sent();
4523
+ api.Cache.RemoveByStartsWith(GetListCacheKey(viewId));
4524
+ return [2 /*return*/];
4525
+ }
4526
+ });
4527
+ });
4528
+ }
4529
+ ProjectViewBookmark.SetOrder = SetOrder;
4510
4530
  })(ProjectViewBookmark || (ProjectViewBookmark = {}));
4511
4531
 
4512
4532
  /**