Skip to content

Commit

Permalink
# Patch notes for 116.0.4391 (#37)
Browse files Browse the repository at this point in the history
These patch notes summarize the changes from version 115.0.4330.

Added 1 new APIs:
* Resource.ResendInviteEmail (GET /api/data/resources/{resourceId}/resendinvite)

Changes to data models:
* TimesheetDto: Added new field `resourceId`
* TimesheetDto: Added new field `taskId`
* TimesheetDto: Added new field `projectId`
* UserError: Added new field `statusCode`

Co-authored-by: tspence <[email protected]>
  • Loading branch information
github-actions[bot] and tspence authored Sep 2, 2024
1 parent bba57ea commit f0c614e
Show file tree
Hide file tree
Showing 8 changed files with 14,288 additions and 24 deletions.
25 changes: 10 additions & 15 deletions ProjectManagerClient.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package >
<metadata>
<id>ProjectManager.SDK</id>
<version>115.0.4330</version>
<version>116.0.4391</version>
<title>ProjectManager.SDK</title>
<authors>ProjectManager.com</authors>
<owners>ProjectManager.com, Inc.</owners>
Expand All @@ -14,23 +14,18 @@
<readme>docs/README.md</readme>
<summary>ProjectManager API for DotNet</summary>
<releaseNotes>
# Patch notes for 115.0.4330
# Patch notes for 116.0.4391

These patch notes summarize the changes from version 114.0.4166.
These patch notes summarize the changes from version 115.0.4330.

Added 1 new APIs:
* Resource.ResendInviteEmail (GET /api/data/resources/{resourceId}/resendinvite)

Changes to data models:
* NotificationDto: Added new field `id`
* NotificationDto: Removed field `notificationId`
* NotificationDto: Removed field `businessId`
* NotificationDto: Removed field `userId`
* ResourcesCreateDto: Added new field `projectIds`
* RiskExportSettingsDto: Added new field `timeZoneOffset`
* RiskExportSettingsDto: Added new field `dueDateFilter`
* RiskExportSettingsDto: Added new field `priorityFilter`
* RiskExportSettingsDto: Added new field `progressFilter`
* RiskExportSettingsDto: Added new field `assignees`
* RiskExportSettingsDto: Added new field `tags`
* TaskDto: Added new field `theme`
* TimesheetDto: Added new field `resourceId`
* TimesheetDto: Added new field `taskId`
* TimesheetDto: Added new field `projectId`
* UserError: Added new field `statusCode`


</releaseNotes>
Expand Down
14 changes: 14 additions & 0 deletions src/Clients/ResourceClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,5 +128,19 @@ public async Task<AstroResult<ResourcesDto>> CreateManyResources(ResourcesCreate
var url = $"/api/data/resources/bulk";
return await _client.Request<ResourcesDto>(HttpMethod.Post, url, null, body, null);
}

/// <summary>
/// Resend Invite Email to a Resource within your Workspace.
///
/// When you create a Resource that is a person, ProjectManager sends that person an email inviting them to join
/// your Workspace. If that email is accidentally deleted or sent to a spam folder, you can request this email
/// be sent again using this API.
/// </summary>
/// <param name="resourceId">The unique identifier of the Resource to send an invitation email</param>
public async Task<AstroResult<string>> ResendInviteEmail(Guid resourceId)
{
var url = $"/api/data/resources/{resourceId}/resendinvite";
return await _client.Request<string>(HttpMethod.Get, url, null, null, null);
}
}
}
2 changes: 1 addition & 1 deletion src/IProjectManagerClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* @author ProjectManager.com <[email protected]>
*
* @copyright 2023-2024 ProjectManager.com, Inc.
* @version 115.0.4330
* @version 116.0.4391
* @link https://github.com/projectmgr/projectmanager-sdk-csharp
*/

Expand Down
10 changes: 10 additions & 0 deletions src/Interfaces/IResourceClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,15 @@ public interface IResourceClient
/// </summary>
/// <param name="body">The details for the new Resources to create</param>
Task<AstroResult<ResourcesDto>> CreateManyResources(ResourcesCreateDto body);

/// <summary>
/// Resend Invite Email to a Resource within your Workspace.
///
/// When you create a Resource that is a person, ProjectManager sends that person an email inviting them to join
/// your Workspace. If that email is accidentally deleted or sent to a spam folder, you can request this email
/// be sent again using this API.
/// </summary>
/// <param name="resourceId">The unique identifier of the Resource to send an invitation email</param>
Task<AstroResult<string>> ResendInviteEmail(Guid resourceId);
}
}
34 changes: 28 additions & 6 deletions src/Models/TimesheetDto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,33 +21,55 @@ namespace ProjectManager.SDK.Models
{

/// <summary>
/// Created Time entry response data
/// A Timesheet entry is a single record that contains information about time spent by a person on a task. Each
/// Timesheet entry object contains information about one task/day/person combination. A fully completed Timesheet
/// will often contain multiple records for the same date range which must be combined to produce a finished
/// Timesheet.
/// </summary>
public class TimesheetDto : ApiModel
{

/// <summary>
/// TimesheetId
/// A unique identifier of a timesheet data entry
/// </summary>
public Guid? Id { get; set; }

/// <summary>
/// Date of time entry
/// The unique identifier of the resource who is preparing this Timesheet. You can filter on this value to measure
/// the total work performed by this specific Resource.
/// </summary>
public Guid? ResourceId { get; set; }

/// <summary>
/// The unique identifier of the task worked on for this Timesheet. You can filter on this value to measure the
/// total work performed against a specific Task.
/// </summary>
public Guid? TaskId { get; set; }

/// <summary>
/// The unique identifier of the project worked on for this Timesheet. You can filter on this value to measure the
/// total work performed against a specific Project.
/// </summary>
public Guid? ProjectId { get; set; }

/// <summary>
/// The date of this time entry record. You can filter on this value to obtain Timesheet data for a specific date
/// range.
/// </summary>
public DateTime? Date { get; set; }

/// <summary>
/// Notes
/// Notes associated with this Timesheet, if any
/// </summary>
public string Notes { get; set; }

/// <summary>
/// Shows if timesheet approved
/// True if this Timesheet was approved by a person with the role of a Timesheet approver
/// </summary>
public bool? Approved { get; set; }

/// <summary>
/// Total Hours
/// Total Hours spent on this Task by this Resource on this specific Date
/// </summary>
public decimal? Hours { get; set; }

Expand Down
2 changes: 2 additions & 0 deletions src/Models/UserError.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,7 @@ public class UserError : ApiModel
public string Email { get; set; }

public string Reason { get; set; }

public HttpStatusCode StatusCode { get; set; }

Check failure on line 30 in src/Models/UserError.cs

View workflow job for this annotation

GitHub Actions / Update NuGet package

The type or namespace name 'HttpStatusCode' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 30 in src/Models/UserError.cs

View workflow job for this annotation

GitHub Actions / Update NuGet package

The type or namespace name 'HttpStatusCode' could not be found (are you missing a using directive or an assembly reference?)
}
}
4 changes: 2 additions & 2 deletions src/ProjectManagerClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* @author ProjectManager.com <[email protected]>
*
* @copyright 2023-2024 ProjectManager.com, Inc.
* @version 115.0.4330
* @version 116.0.4391
* @link https://github.com/projectmgr/projectmanager-sdk-csharp
*/

Expand Down Expand Up @@ -39,7 +39,7 @@ public class ProjectManagerClient : IProjectManagerClient
/// <summary>
/// The version of the SDK
/// </summary>
public const string SdkVersion = "115.0.4330";
public const string SdkVersion = "116.0.4391";

private readonly string _apiUrl;
private readonly HttpClient _client;
Expand Down
Loading

0 comments on commit f0c614e

Please sign in to comment.