Skip to content

Commit

Permalink
Release 115 (#35)
Browse files Browse the repository at this point in the history
# Patch notes for 115.0.4328

These patch notes summarize the changes from version 114.0.4169.

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`
  • Loading branch information
tspence authored Aug 19, 2024
1 parent 3a413cf commit d3f31ac
Show file tree
Hide file tree
Showing 12 changed files with 229 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ jobs:

- name: Push generated package to GitHub registry
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
run: nuget push *.nupkg -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{ secrets.NUGET_API_KEY }}
run: nuget push *.nupkg -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{ secrets.NUGET_API_KEY }}
File renamed without changes.
29 changes: 16 additions & 13 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>114.0.4169</version>
<version>115.0.4328</version>
<title>ProjectManager.SDK</title>
<authors>ProjectManager.com</authors>
<owners>ProjectManager.com, Inc.</owners>
Expand All @@ -14,20 +14,23 @@
<readme>docs/README.md</readme>
<summary>ProjectManager API for DotNet</summary>
<releaseNotes>
# Patch notes for 114.0.4169
# Patch notes for 115.0.4328

These patch notes summarize the changes from version 112.0.3856.
These patch notes summarize the changes from version 114.0.4169.

Added 9 new APIs:
* Notification.RetrieveNotifications (GET /api/data/notifications)
* Notification.NotificationCount (GET /api/data/notifications/count)
* Notification.UnreadNotificationCount (GET /api/data/notifications/unreadcount)
* Notification.DeleteAllNotifications (DELETE /api/data/notifications/deleteall)
* Notification.MarkNotificationRead (POST /api/data/notifications/{id}/markread)
* Notification.ReadAllNotifications (POST /api/data/notifications/markallread)
* Notification.DeleteNotification (DELETE /api/data/notifications/delete/{id})
* Notification.MarkNotificationUnread (POST /api/data/notifications/{id}/markunread)
* Resource.CreateManyResources (POST /api/data/resources/bulk)
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`

Deprecated 1 old APIs:
* TaskMetadata.GetTaskMetadata
Expand Down
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 114.0.4169
* @version 115.0.4328
* @link https://github.com/projectmgr/projectmanager-sdk-csharp
*/

Expand Down
59 changes: 59 additions & 0 deletions src/Models/ExportDueDateFilterDto.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
/***
* 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>
/// Due Date Filter Settings
/// </summary>
public class ExportDueDateFilterDto : ApiModel
{

/// <summary>
/// Include items without a due date
/// </summary>
public bool? IncludeNoDueDate { get; set; }

/// <summary>
/// Include items with a due date in the past
/// </summary>
public bool? IncludeOverdue { get; set; }

/// <summary>
/// Include items with a due date of today
/// </summary>
public bool? IncludeToday { get; set; }

/// <summary>
/// Include items due within the current week
/// </summary>
public bool? IncludeThisWeek { get; set; }

/// <summary>
/// Include items due within the next week
/// </summary>
public bool? IncludeNextWeek { get; set; }

/// <summary>
/// Include items due later
/// </summary>
public bool? IncludeLater { get; set; }
}
}
64 changes: 64 additions & 0 deletions src/Models/ExportPriorityFilterDto.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
/***
* 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>
/// Priority filter settings
/// </summary>
public class ExportPriorityFilterDto : ApiModel
{

/// <summary>
/// Include items with no priority
/// </summary>
public bool? IsNone { get; set; }

/// <summary>
/// Include items with very low priority
/// </summary>
public bool? IsVeryLow { get; set; }

/// <summary>
/// Include items with low priority
/// </summary>
public bool? IsLow { get; set; }

/// <summary>
/// Include items with medium priority
/// </summary>
public bool? IsMedium { get; set; }

/// <summary>
/// Include items with high priority
/// </summary>
public bool? IsHigh { get; set; }

/// <summary>
/// Include items with very high priority
/// </summary>
public bool? IsVeryHigh { get; set; }

/// <summary>
/// Include items with critical priority
/// </summary>
public bool? IsCritical { get; set; }
}
}
12 changes: 1 addition & 11 deletions src/Models/NotificationDto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,7 @@ public class NotificationDto : ApiModel
/// <summary>
/// The unique identifier of this notification
/// </summary>
public Guid? NotificationId { get; set; }

/// <summary>
/// The unique identifier of the workspace for this notification
/// </summary>
public Guid? BusinessId { get; set; }

/// <summary>
/// The unique identifier of the recipient of this notification
/// </summary>
public Guid? UserId { get; set; }
public Guid? Id { get; set; }

/// <summary>
/// The unique identifier of the sender of this notification
Expand Down
5 changes: 5 additions & 0 deletions src/Models/ResourcesCreateDto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ namespace ProjectManager.SDK.Models
public class ResourcesCreateDto : ApiModel
{

/// <summary>
/// When creating a user they will also be added to the projectIds specified. If null or empty the user will be invited but no access will be given to any projects.
/// </summary>
public Guid[] ProjectIds { get; set; }

public ResourceCreateDto[] Users { get; set; }
}
}
39 changes: 39 additions & 0 deletions src/Models/RiskExportProgressFilterDto.cs
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>
/// Risk Progress Filter Settings
/// </summary>
public class RiskExportProgressFilterDto : ApiModel
{

/// <summary>
/// Include risks that are open
/// </summary>
public bool? IsOpen { get; set; }

/// <summary>
/// Include risks that are closed
/// </summary>
public bool? IsClosed { get; set; }
}
}
32 changes: 31 additions & 1 deletion src/Models/RiskExportSettingsDto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class RiskExportSettingsDto : ApiModel
/// Format to export to, currently csv and excel are supported
///
/// Valid options are:
/// * csv
/// * Csv
/// * excel
/// </summary>
public string Format { get; set; }
Expand Down Expand Up @@ -73,5 +73,35 @@ public class RiskExportSettingsDto : ApiModel
/// * desc
/// </summary>
public string OrderDirection { get; set; }

/// <summary>
/// Timezone offset in minutes
/// </summary>
public int? TimeZoneOffset { get; set; }

/// <summary>
/// Specify the due date filter for the export. If left null, no due date filter will be applied
/// </summary>
public ExportDueDateFilterDto DueDateFilter { get; set; }

/// <summary>
/// Specify the priority filter for the export. If left null, no priority filter will be applied
/// </summary>
public ExportPriorityFilterDto PriorityFilter { get; set; }

/// <summary>
/// Specify the progress filter for the export. If left null, no progress filter will be applied
/// </summary>
public RiskExportProgressFilterDto ProgressFilter { get; set; }

/// <summary>
/// A list of resourceIds to filter the risks by assignees. If left null or empty this will be ignored
/// </summary>
public Guid[] Assignees { get; set; }

/// <summary>
/// A list of tagIds to filter the risks by tags. If left null or empty this will be ignored
/// </summary>
public Guid[] Tags { get; set; }
}
}
11 changes: 10 additions & 1 deletion src/Models/TaskDto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,19 @@ public class TaskDto : ApiModel
public string Wbs { get; set; }

/// <summary>
/// Task Color as set in the Gantt
/// The hexadecimal RRGGBB Task Color as set in the Gantt. This value is read-only; to set this value,
/// change the `Theme` field.
/// </summary>
public string Color { get; set; }

/// <summary>
/// Color theme definition for this Task.
///
/// eg. Blue, Brown, DarkBlue, DarkGrey, Gold, Green, Grey, LightBrown, LightGreen,
/// LightGrey, LightPurple, LightYellow, Magenta, Mauve, Navy, Orange, Purple, Red.
/// </summary>
public string Theme { get; set; }

/// <summary>
/// The actual cost of this Task to date, if known.
/// </summary>
Expand Down
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 114.0.4169
* @version 115.0.4328
* @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 = "114.0.4169";
public const string SdkVersion = "115.0.4328";

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

0 comments on commit d3f31ac

Please sign in to comment.