From 1f89bb047442dcdc9045aeff1c3d6aadf61e2856 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Socha?= <31014760+lukaszsocha2@users.noreply.github.com> Date: Wed, 29 May 2024 11:44:00 +0200 Subject: [PATCH] fix: Add missing enum values to `BoxSortBy` (#953) Fixes: #952 --- Box.V2.Test.Integration/BoxFolderManagerIntegrationTest.cs | 2 +- Box.V2/Models/BoxEnums.cs | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Box.V2.Test.Integration/BoxFolderManagerIntegrationTest.cs b/Box.V2.Test.Integration/BoxFolderManagerIntegrationTest.cs index df1dce7c9..6065dc891 100644 --- a/Box.V2.Test.Integration/BoxFolderManagerIntegrationTest.cs +++ b/Box.V2.Test.Integration/BoxFolderManagerIntegrationTest.cs @@ -236,7 +236,7 @@ public async Task GetFolderItemsAsync_ForFolderWithSharedLink_ShouldReturnAllFol var sharedItems = await UserClient.SharedItemsManager.SharedItemsAsync(sharedLink.SharedLink.Url, password); var items = await UserClient.FoldersManager.GetFolderItemsAsync(sharedItems.Id, 100, sharedLink: sharedLink.SharedLink.Url, - sharedLinkPassword: password); + sharedLinkPassword: password, sort: "date"); Assert.AreEqual(items.TotalCount, 1); diff --git a/Box.V2/Models/BoxEnums.cs b/Box.V2/Models/BoxEnums.cs index 8d19bfb82..8ec124352 100644 --- a/Box.V2/Models/BoxEnums.cs +++ b/Box.V2/Models/BoxEnums.cs @@ -33,7 +33,9 @@ public enum BoxSortBy retention_policy_id, retention_policy_object_id, retention_policy_set_id, - interacted_at + interacted_at, + date, + size } ///