Skip to content

Commit

Permalink
Release 102 (#20)
Browse files Browse the repository at this point in the history
* Release 101

Added 5 new APIs:
* File.Deletefile (DELETE /api/data/files/{fileId})
* Holiday.Queryresourceholidays (GET /api/data/holidays/resource)
* Holiday.Querycountryholidays (GET /api/data/holidays/country)
* Holiday.Queryglobalholidays (GET /api/data/holidays/global)
* NptFiles.UploadFileToNonProjectTasks (POST /api/data/non-project-tasks/{taskId}/files)

* Fix byte reference

* Updates for R102

Differences between R101 and R102:
* Deprecated old Discussion APIs; created new ones
* Removed parameter "$select" which did not have any effect

* Fix naming and ignore metadata API
  • Loading branch information
tspence authored Jan 23, 2024
1 parent 323c150 commit 2c30b98
Show file tree
Hide file tree
Showing 185 changed files with 1,622 additions and 896 deletions.
150 changes: 26 additions & 124 deletions ProjectManagerClient.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,147 +2,49 @@
<package >
<metadata>
<id>ProjectManager.SDK</id>
<version>99.0.2548</version>
<version>102.0.2886</version>
<title>ProjectManager.SDK</title>
<authors>ProjectManager.com</authors>
<owners>ProjectManager.com, Inc.</owners>
<license type="file">docs/LICENSE</license>
<projectUrl>https://github.com/projectmgr/projectmanager-sdk-csharp</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Software development kit for the ProjectManager.com API. for DotNet</description>
<description> for DotNet</description>
<icon>docs/logo.png</icon>
<readme>docs/README.md</readme>
<summary>ProjectManager API for DotNet</summary>
<releaseNotes>
# Patch notes for 99.0.2548
# Patch notes for 102.0.2886

These patch notes summarize the changes from version 98.0.2363.
These patch notes summarize the changes from version 99.0.2550.

Added 2 new APIs:
* TaskField.QueryTaskFields (GET /api/data/projects/tasks/fields)
* TaskField.QueryTaskFieldValues (GET /api/data/tasks/fields/values)

Renamed 2 old APIs:
* Renamed 'ProjectField.UpdateProjectField' to 'ProjectField.UpdateProjectFieldValue'
* Renamed 'ProjectMembers.RetrieveUserProjectMemberShip' to 'ProjectMembers.RetrieveUserProjectMembership'
Added 8 new APIs:
* File.DeleteFile (DELETE /api/data/files/{fileId})
* Holiday.QueryResourceHolidays (GET /api/data/holidays/resource)
* Holiday.QueryCountryHolidays (GET /api/data/holidays/country)
* Holiday.QueryGlobalHolidays (GET /api/data/holidays/global)
* IntegrationProvider.DisconnectUserIntegrationProviderConnection (DELETE /api/data/integrations/providers/{providerId}/user-connection)
* NptFiles.UploadFileToNonProjectTasks (POST /api/data/non-project-tasks/{taskId}/files)
* TaskMetadata.AddMetadata (PUT /api/data/tasks/{taskId}/metadata)
* TaskMetadata.GetTasksByProjectIdAndForeignKeyId (GET /api/data/projects/{projectId}/tasks/metadata)

Changes to existing APIs:
* ApiKey.CreateApiKey removed header parameter `x-integration-name`
* ApiKey.ListApiKeys removed header parameter `x-integration-name`
* ApiKey.RevokeAllApiKeys removed header parameter `x-integration-name`
* ApiKey.RevokeAPIKey removed header parameter `x-integration-name`
* Changeset.RetrieveChangeset removed header parameter `x-integration-name`
* Changeset.RetrieveCompletedChangeset removed header parameter `x-integration-name`
* Dashboard.RetrieveDashboardUserSettings removed header parameter `x-integration-name`
* Dashboard.CreateorUpdateUserDashboardSettings removed header parameter `x-integration-name`
* Discussion.RetrieveTaskComments removed header parameter `x-integration-name`
* Discussion.CreateTaskComments removed header parameter `x-integration-name`
* File.DownloadFile removed header parameter `x-integration-name`
* File.DownloadaThumbnailImage removed header parameter `x-integration-name`
* File.UpdateFile removed header parameter `x-integration-name`
* HomeFile.UploadHomeFile removed header parameter `x-integration-name`
* HomeFile.UploadHomeFileToFolder removed header parameter `x-integration-name`
* Integration.RetrieveIntegration removed header parameter `x-integration-name`
* Integration.EnableIntegration removed header parameter `x-integration-name`
* Integration.DisableIntegration removed header parameter `x-integration-name`
* Integration.RetrieveAllIntegrations removed header parameter `x-integration-name`
* IntegrationCategory.RetrieveProviderCategories removed header parameter `x-integration-name`
* IntegrationProvider.ListProviders removed header parameter `x-integration-name`
* IntegrationProvider.ActivateIntegrationProvider removed header parameter `x-integration-name`
* IntegrationProvider.UpdateIntegrationProvider removed header parameter `x-integration-name`
* IntegrationProvider.DeactivateIntegrationProvider removed header parameter `x-integration-name`
* IntegrationProvider.CreateUserIntegrationProviderConnection removed header parameter `x-integration-name`
* IntegrationProvider.UpdateUserIntegrationProviderConnection removed header parameter `x-integration-name`
* License.RetrieveLicenses removed header parameter `x-integration-name`
* License.AddLicense removed header parameter `x-integration-name`
* Me.RetrieveMe removed header parameter `x-integration-name`
* Project.QueryProjects removed header parameter `x-integration-name`
* Project.CreateProject removed header parameter `x-integration-name`
* Project.RetrieveProject removed header parameter `x-integration-name`
* Project.UpdateProject removed header parameter `x-integration-name`
* ProjectChargeCode.RetrieveChargeCodes removed header parameter `x-integration-name`
* ProjectCustomer.RetrieveProjectCustomers removed header parameter `x-integration-name`
* ProjectField.RetrieveProjectFields removed header parameter `x-integration-name`
* ProjectField.CreateProjectField removed header parameter `x-integration-name`
* ProjectField.DeleteProjectField added path parameter `fieldId`
* ProjectField.DeleteProjectField removed header parameter `x-integration-name`
* ProjectField.DeleteProjectField removed body parameter `body`
* ProjectField.UpdateProjectFieldValue changed [fieldId].Value.DataType from string to uuid
* ProjectField.UpdateProjectFieldValue removed header parameter `x-integration-name`
* ProjectField.RetrieveProjectFieldValue changed [fieldId].Value.DataType from string to uuid
* ProjectField.RetrieveProjectFieldValue removed header parameter `x-integration-name`
* ProjectField.RetrieveAllProjectFieldValues removed header parameter `x-integration-name`
* ProjectFile.UploadProjectFile removed header parameter `x-integration-name`
* ProjectFile.UploadProjectFileToFolder removed header parameter `x-integration-name`
* ProjectFolder.RetrieveProjectFolders removed header parameter `x-integration-name`
* ProjectMembers.RetrieveNewProjectMembers removed header parameter `x-integration-name`
* ProjectMembers.RetrieveProjectMembers removed header parameter `x-integration-name`
* ProjectMembers.RetrieveUserProjectMembership removed header parameter `x-integration-name`
* ProjectMembers.CreateUserProjectMembership removed header parameter `x-integration-name`
* ProjectMembers.UpdateUserProjectMembership removed header parameter `x-integration-name`
* ProjectMembers.RemoveUserProjectMembership removed header parameter `x-integration-name`
* ProjectPriority.RetrieveProjectPriorities removed header parameter `x-integration-name`
* ProjectStatus.RetrieveProjectStatuses removed header parameter `x-integration-name`
* ProjectTemplate.RetrieveProjectTemplates removed header parameter `x-integration-name`
* ProjectTemplate.RetrieveTemplateCategories removed header parameter `x-integration-name`
* Resource.CreateResource removed header parameter `x-integration-name`
* Resource.QueryResources removed header parameter `x-integration-name`
* Resource.UpdateResource removed header parameter `x-integration-name`
* Resource.RetrieveResource removed header parameter `x-integration-name`
* ResourceSkill.RetrieveResourceSkills removed header parameter `x-integration-name`
* ResourceSkill.CreateResourceSkill removed header parameter `x-integration-name`
* ResourceSkill.UpdateResourceSkill removed header parameter `x-integration-name`
* ResourceSkill.DeleteResourceSkill removed header parameter `x-integration-name`
* ResourceTeam.RetrieveResourceTeams removed header parameter `x-integration-name`
* ResourceTeam.CreateResourceTeam removed header parameter `x-integration-name`
* ResourceTeam.DeleteResourceTeam removed header parameter `x-integration-name`
* ResourceTeam.UpdateResourceTeam removed header parameter `x-integration-name`
* Tag.QueryTags removed header parameter `x-integration-name`
* Tag.CreateTag removed header parameter `x-integration-name`
* Tag.UpdateTag removed header parameter `x-integration-name`
* Task.QueryTasks removed header parameter `x-integration-name`
* Task.RetrieveTask removed header parameter `x-integration-name`
* Task.UpdateTask removed header parameter `x-integration-name`
* Task.DeleteTask removed header parameter `x-integration-name`
* Task.CreateTask removed header parameter `x-integration-name`
* Task.RetrieveTaskPriorities removed header parameter `x-integration-name`
* Task.CreateManyTasks removed header parameter `x-integration-name`
* Task.AddParentTask removed header parameter `x-integration-name`
* Task.UpdateParentTask removed header parameter `x-integration-name`
* Task.RemoveParentTask removed header parameter `x-integration-name`
* TaskAssignee.ReplaceTaskAssignees removed header parameter `x-integration-name`
* TaskAssignee.CreateOrUpdateTaskAssignee removed header parameter `x-integration-name`
* TaskAssignee.DeleteTaskAssignees removed header parameter `x-integration-name`
* TaskField.RetrieveTaskFields removed header parameter `x-integration-name`
* TaskField.CreateTaskField changed [body].Value.DataType from CreateTaskFieldDto to CreateTaskFieldRequestDto
* TaskField.CreateTaskField changed [body].Value.DataTypeRef from /docs/createtaskfielddto to /docs/createtaskfieldrequestdto
* TaskField.CreateTaskField removed header parameter `x-integration-name`
* TaskField.DeleteTaskField removed header parameter `x-integration-name`
* TaskField.RetrieveAllTaskFieldValues removed header parameter `x-integration-name`
* TaskField.RetrieveTaskFieldValue removed header parameter `x-integration-name`
* TaskField.UpdateTaskFieldValue removed header parameter `x-integration-name`
* TaskFile.UploadTaskFile removed header parameter `x-integration-name`
* TaskStatus.RetrieveTaskStatuses removed header parameter `x-integration-name`
* TaskStatus.CreateTaskStatus removed header parameter `x-integration-name`
* TaskStatus.UpdateTaskStatus removed header parameter `x-integration-name`
* TaskStatus.DeleteTaskStatus removed header parameter `x-integration-name`
* TaskTag.ReplaceTaskTags removed header parameter `x-integration-name`
* TaskTag.AddTaskTagtoTask removed header parameter `x-integration-name`
* TaskTag.RemoveTaskTagfromTask removed header parameter `x-integration-name`
* Teams.RetrievezipfileforTeamsIntegrations removed header parameter `x-integration-name`
* Timesheet.Createtimeentry removed header parameter `x-integration-name`
* Timesheet.QueryTimeSheets removed header parameter `x-integration-name`
* Timesheet.Deletetimeentry removed header parameter `x-integration-name`
* Timesheet.Updatetimeentry removed header parameter `x-integration-name`
* Timesheet.Returnsactiveadmintasksthatareusedtoreporttime removed header parameter `x-integration-name`
* UserRole.RetrieveUserRoles removed header parameter `x-integration-name`
* WorkSpace.RetrieveWorkspaces removed header parameter `x-integration-name`
* WorkSpace.InvitetoWorkspace removed header parameter `x-integration-name`
* Discussion.CreateTaskComments changed [body].Value.DataType from DiscussionCommentCreateDto to DiscussionCreateDto
* Discussion.CreateTaskComments changed [body].Value.DataTypeRef from /docs/discussioncommentcreatedto to /docs/discussioncreatedto
* Project.QueryProjects removed query parameter `$select`
* Resource.QueryResources removed query parameter `$select`
* ResourceSkill.RetrieveResourceSkills removed query parameter `$select`
* ResourceTeam.RetrieveResourceTeams removed query parameter `$select`
* Tag.QueryTags removed query parameter `$select`
* Task.QueryTasks removed query parameter `$select`
* TaskField.QueryTaskFields removed query parameter `$select`
* TaskField.QueryTaskFieldValues removed query parameter `$select`
* Timesheet.QueryTimesheets removed query parameter `$select`


</releaseNotes>
<copyright>Copyright 2023 - 2023</copyright>
<tags>projectmanager project management task tracking projects tasks</tags>
<copyright>Copyright 2023 - 2024</copyright>
<tags></tags>
<repository type="git" url="https://github.com/projectmgr/projectmanager-sdk-csharp" />
<dependencies>
<group targetFramework=".NETStandard2.0">
Expand Down
6 changes: 3 additions & 3 deletions src/Clients/ApiKeyClient.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/***
* ProjectManager API for C#
*
* (c) 2023-2023 ProjectManager.com, Inc.
* (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-2023 ProjectManager.com, Inc.
* @copyright 2023-2024 ProjectManager.com, Inc.
* @link https://github.com/projectmgr/projectmanager-sdk-csharp
*/

Expand Down Expand Up @@ -90,7 +90,7 @@ public async Task<AstroResult<string>> RevokeAllApiKeys()
///
/// </summary>
/// <param name="id">The unique identifier of the API key to revoke</param>
public async Task<AstroResult<string>> RevokeAPIKey(Guid id)
public async Task<AstroResult<string>> RevokeApiKey(Guid id)
{
var url = $"/api/data/api-keys/{id}/revoke";
return await _client.Request<string>(HttpMethod.Delete, url, null, null, null);
Expand Down
4 changes: 2 additions & 2 deletions src/Clients/ChangesetClient.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/***
* ProjectManager API for C#
*
* (c) 2023-2023 ProjectManager.com, Inc.
* (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-2023 ProjectManager.com, Inc.
* @copyright 2023-2024 ProjectManager.com, Inc.
* @link https://github.com/projectmgr/projectmanager-sdk-csharp
*/

Expand Down
6 changes: 3 additions & 3 deletions src/Clients/DashboardClient.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/***
* ProjectManager API for C#
*
* (c) 2023-2023 ProjectManager.com, Inc.
* (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-2023 ProjectManager.com, Inc.
* @copyright 2023-2024 ProjectManager.com, Inc.
* @link https://github.com/projectmgr/projectmanager-sdk-csharp
*/

Expand Down Expand Up @@ -54,7 +54,7 @@ public async Task<AstroResult<DashboardSettingDto>> RetrieveDashboardUserSetting
///
/// </summary>
/// <param name="body">User dashboard settings object</param>
public async Task<AstroResult<DashboardSettingDto>> CreateorUpdateUserDashboardSettings(DashboardSettingCreateDto body)
public async Task<AstroResult<DashboardSettingDto>> CreateOrUpdateUserDashboardSettings(DashboardSettingCreateDto body)
{
var url = $"/api/data/dashboards/settings";
return await _client.Request<DashboardSettingDto>(HttpMethod.Post, url, null, body, null);
Expand Down
16 changes: 8 additions & 8 deletions src/Clients/DiscussionClient.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/***
* ProjectManager API for C#
*
* (c) 2023-2023 ProjectManager.com, Inc.
* (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-2023 ProjectManager.com, Inc.
* @copyright 2023-2024 ProjectManager.com, Inc.
* @link https://github.com/projectmgr/projectmanager-sdk-csharp
*/

Expand Down Expand Up @@ -43,10 +43,10 @@ public DiscussionClient(ProjectManagerClient client)
///
/// </summary>
/// <param name="taskId">The unique ID number of the task to retrieve comments</param>
public async Task<AstroResult<DiscussionDto[]>> RetrieveTaskComments(Guid taskId)
public async Task<AstroResult<DiscussionCommentDto[]>> RetrieveTaskComments(Guid taskId)
{
var url = $"/api/data/tasks/{taskId}/discussions";
return await _client.Request<DiscussionDto[]>(HttpMethod.Get, url, null, null, null);
var url = $"/api/data/tasks/{taskId}/comments";
return await _client.Request<DiscussionCommentDto[]>(HttpMethod.Get, url, null, null, null);
}

/// <summary>
Expand All @@ -57,10 +57,10 @@ public async Task<AstroResult<DiscussionDto[]>> RetrieveTaskComments(Guid taskId
/// </summary>
/// <param name="taskId">The unique ID number of the task being commented upon</param>
/// <param name="body">The Markdown-formatted text of the comment</param>
public async Task<AstroResult<DiscussionCreateResponseDto>> CreateTaskComments(Guid taskId, DiscussionCreateDto body)
public async Task<AstroResult<DiscussionCommentCreateResponseDto>> CreateTaskComments(Guid taskId, DiscussionCommentCreateDto body)
{
var url = $"/api/data/tasks/{taskId}/discussions";
return await _client.Request<DiscussionCreateResponseDto>(HttpMethod.Post, url, null, body, null);
var url = $"/api/data/tasks/{taskId}/comments";
return await _client.Request<DiscussionCommentCreateResponseDto>(HttpMethod.Post, url, null, body, null);
}
}
}
Loading

0 comments on commit 2c30b98

Please sign in to comment.