-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
These patch notes summarize the changes from version 120.0.4689. Added 7 new APIs: * Discussion.LikeAComment (POST /api/data/comments/{commentId}/like) * Discussion.RemovesAThumbsupFromAComment (DELETE /api/data/comments/{commentId}/like) * Discussion.RemoveAComment (DELETE /api/data/comments/{commentId}) * TaskTodo.GetTodosForATask (GET /api/data/tasks/{taskId}/todos) * TaskTodo.CreateATodoForATask (POST /api/data/tasks/{taskId}/todos) * TaskTodo.UpdateATodo (PUT /api/data/tasks/todos/{todoId}) * TaskTodo.DeleteATodo (DELETE /api/data/tasks/todos/{todoId}) Changes to existing APIs: * Notification.RetrieveNotifications added query parameter `senderId` * Notification.RetrieveNotifications added query parameter `notificationTypes` * Notification.RetrieveNotifications added query parameter `asFlatList` Changes to data models: * ResourceDto: Added new field `countryName` * TaskCreateDto: Added new field `isLocked` * TaskCreateDto: Added new field `isMilestone` * TaskUpdateDto: Added new field `isLocked` * TaskUpdateDto: Added new field `isMilestone` * TimesheetCreateRequestDto: Added new field `minutes` * TimesheetDto: Added new field `minutes` * TimesheetResponseDto: Added new field `minutes` * TimesheetUpdateRequestDto: Added new field `minutes` Co-authored-by: tspence <[email protected]>
- Loading branch information
1 parent
25302dc
commit 73551bb
Showing
19 changed files
with
14,953 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
/*** | ||
* ProjectManager API for C# | ||
* | ||
* (c) 2023-2024 ProjectManager.com, Inc. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
* | ||
* @author ProjectManager.com <[email protected]> | ||
* @copyright 2023-2024 ProjectManager.com, Inc. | ||
* @link https://github.com/projectmgr/projectmanager-sdk-csharp | ||
*/ | ||
|
||
|
||
|
||
using System; | ||
using System.Collections.Generic; | ||
using System.Net.Http; | ||
using System.Threading.Tasks; | ||
using ProjectManager.SDK.Interfaces; | ||
using ProjectManager.SDK.Models; | ||
|
||
|
||
namespace ProjectManager.SDK.Clients | ||
{ | ||
/// <summary> | ||
/// API methods related to TaskTodo | ||
/// </summary> | ||
public class TaskTodoClient : ITaskTodoClient | ||
{ | ||
private readonly ProjectManagerClient _client; | ||
|
||
/// <summary> | ||
/// Constructor | ||
/// </summary> | ||
public TaskTodoClient(ProjectManagerClient client) | ||
{ | ||
_client = client; | ||
} | ||
|
||
/// <summary> | ||
/// Retrieve a list of todos for a task | ||
/// </summary> | ||
/// <param name="taskId">the id of the task</param> | ||
public async Task<AstroResult<TaskTodoDto[]>> GetTodosForATask(Guid taskId) | ||
{ | ||
var url = $"/api/data/tasks/{taskId}/todos"; | ||
return await _client.Request<TaskTodoDto[]>(HttpMethod.Get, url, null); | ||
} | ||
|
||
/// <summary> | ||
/// Create a todo for a task | ||
/// </summary> | ||
/// <param name="taskId">the id of the task</param> | ||
/// <param name="body">the data for creating a todo</param> | ||
public async Task<AstroResult<TaskTodoDto>> CreateATodoForATask(Guid taskId, TaskTodoCreateDto body) | ||
{ | ||
var url = $"/api/data/tasks/{taskId}/todos"; | ||
return await _client.RequestWithBody<TaskTodoDto>(HttpMethod.Post, url, null, body); | ||
} | ||
|
||
/// <summary> | ||
/// Update a todo for a task | ||
/// </summary> | ||
/// <param name="todoId">the id of the task</param> | ||
/// <param name="body">the data for updating a todo</param> | ||
public async Task<AstroResult<TaskTodoDto>> UpdateATodo(Guid todoId, TaskTodoUpdateDto body) | ||
{ | ||
var url = $"/api/data/tasks/todos/{todoId}"; | ||
return await _client.RequestWithBody<TaskTodoDto>(HttpMethod.Put, url, null, body); | ||
} | ||
|
||
/// <summary> | ||
/// Remove a todo | ||
/// </summary> | ||
/// <param name="todoId">the id of the todo</param> | ||
public async Task<AstroResult<string>> DeleteATodo(Guid todoId) | ||
{ | ||
var url = $"/api/data/tasks/todos/{todoId}"; | ||
return await _client.Request<string>(HttpMethod.Delete, url, null); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
* @author ProjectManager.com <[email protected]> | ||
* | ||
* @copyright 2023-2024 ProjectManager.com, Inc. | ||
* @version 120.0.4689 | ||
* @version 121.0.4887 | ||
* @link https://github.com/projectmgr/projectmanager-sdk-csharp | ||
*/ | ||
|
||
|
@@ -172,6 +172,10 @@ public interface IProjectManagerClient | |
/// </summary> | ||
ITaskTagClient TaskTag { get; } | ||
/// <summary> | ||
/// API methods related to TaskTodo | ||
/// </summary> | ||
ITaskTodoClient TaskTodo { get; } | ||
/// <summary> | ||
/// API methods related to Teams | ||
/// </summary> | ||
ITeamsClient Teams { get; } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/*** | ||
* ProjectManager API for C# | ||
* | ||
* (c) 2023-2024 ProjectManager.com, Inc. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
* | ||
* @author ProjectManager.com <[email protected]> | ||
* @copyright 2023-2024 ProjectManager.com, Inc. | ||
* @link https://github.com/projectmgr/projectmanager-sdk-csharp | ||
*/ | ||
|
||
|
||
|
||
using System; | ||
using System.Collections.Generic; | ||
using System.Threading.Tasks; | ||
using ProjectManager.SDK.Models; | ||
|
||
|
||
namespace ProjectManager.SDK.Interfaces | ||
{ | ||
/// <summary> | ||
/// API methods related to TaskTodo | ||
/// </summary> | ||
public interface ITaskTodoClient | ||
{ | ||
|
||
/// <summary> | ||
/// Retrieve a list of todos for a task | ||
/// </summary> | ||
/// <param name="taskId">the id of the task</param> | ||
Task<AstroResult<TaskTodoDto[]>> GetTodosForATask(Guid taskId); | ||
|
||
/// <summary> | ||
/// Create a todo for a task | ||
/// </summary> | ||
/// <param name="taskId">the id of the task</param> | ||
/// <param name="body">the data for creating a todo</param> | ||
Task<AstroResult<TaskTodoDto>> CreateATodoForATask(Guid taskId, TaskTodoCreateDto body); | ||
|
||
/// <summary> | ||
/// Update a todo for a task | ||
/// </summary> | ||
/// <param name="todoId">the id of the task</param> | ||
/// <param name="body">the data for updating a todo</param> | ||
Task<AstroResult<TaskTodoDto>> UpdateATodo(Guid todoId, TaskTodoUpdateDto body); | ||
|
||
/// <summary> | ||
/// Remove a todo | ||
/// </summary> | ||
/// <param name="todoId">the id of the todo</param> | ||
Task<AstroResult<string>> DeleteATodo(Guid todoId); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/*** | ||
* ProjectManager API for C# | ||
* | ||
* (c) 2023-2024 ProjectManager.com, Inc. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
* | ||
* @author ProjectManager.com <[email protected]> | ||
* @copyright 2023-2024 ProjectManager.com, Inc. | ||
* @link https://github.com/projectmgr/projectmanager-sdk-csharp | ||
*/ | ||
|
||
|
||
|
||
#pragma warning disable CS8618 | ||
|
||
using System; | ||
|
||
namespace ProjectManager.SDK.Models | ||
{ | ||
|
||
/// <summary> | ||
/// The properties for creating a TaskTodo. | ||
/// </summary> | ||
public class TaskTodoCreateDto : ApiModel | ||
{ | ||
|
||
/// <summary> | ||
/// The full description of this TaskTodo. | ||
/// </summary> | ||
public string Text { get; set; } | ||
|
||
/// <summary> | ||
/// True if this TaskTodo is complete. | ||
/// </summary> | ||
public bool? Complete { get; set; } | ||
} | ||
} |
Oops, something went wrong.