diff --git a/ProjectManagerClient.nuspec b/ProjectManagerClient.nuspec index 35e4b9c..2c834be 100644 --- a/ProjectManagerClient.nuspec +++ b/ProjectManagerClient.nuspec @@ -2,53 +2,36 @@ ProjectManager.SDK - 102.0.2887 + 102.0.2949 ProjectManager.SDK ProjectManager.com ProjectManager.com, Inc. docs/LICENSE https://github.com/projectmgr/projectmanager-sdk-csharp false - for DotNet + Software development kit for the ProjectManager.com API. for DotNet docs/logo.png docs/README.md ProjectManager API for DotNet - # Patch notes for 102.0.2887 - - Added XMLDOC to the automated SDK build-and-publish process. - - # Patch notes for 102.0.2886 + # Patch notes for 102.0.2949 - These patch notes summarize the changes from version 99.0.2550. + These patch notes summarize the changes from version 102.0.2886. - 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) + Added 2 new APIs: + * Changeset.RetrieveChangesetsByProjectID (GET /api/data/changesets/{projectId}/changesets) + * Project.DeleteProject (DELETE /api/data/projects/{projectId}) - Changes to existing APIs: - * 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` + Deprecated 1 old APIs: + * TaskMetadata.GetTaskMetadata + + Fixed capitalization for data schema models and API methods - the previous build caused some items + to be incorrectly lowercased when they were already in PascalCase form. Copyright 2023 - 2024 - + projectmanager project management task tracking projects tasks diff --git a/src/Clients/ApiKeyClient.cs b/src/Clients/ApiKeyClient.cs index e6f88fb..68e4d94 100644 --- a/src/Clients/ApiKeyClient.cs +++ b/src/Clients/ApiKeyClient.cs @@ -90,7 +90,7 @@ public async Task> RevokeAllApiKeys() /// /// /// The unique identifier of the API key to revoke - public async Task> RevokeApiKey(Guid id) + public async Task> RevokeAPIKey(Guid id) { var url = $"/api/data/api-keys/{id}/revoke"; return await _client.Request(HttpMethod.Delete, url, null, null, null); diff --git a/src/Clients/ChangesetClient.cs b/src/Clients/ChangesetClient.cs index 3a0df9b..3c3a46e 100644 --- a/src/Clients/ChangesetClient.cs +++ b/src/Clients/ChangesetClient.cs @@ -69,5 +69,23 @@ public async Task> RetrieveCompletedChanges var url = $"/api/data/changesets/{changeSetId}/poll"; return await _client.Request(HttpMethod.Get, url, null, null, null); } + + /// + /// Retrieve Changesets by Project ID + /// + /// + /// + /// + /// + /// + public async Task> RetrieveChangesetsByProjectID(Guid projectId, int? version = null, int? page = null, int? take = null) + { + var url = $"/api/data/changesets/{projectId}/changesets"; + var options = new Dictionary(); + if (version != null) { options["version"] = version; } + if (page != null) { options["page"] = page; } + if (take != null) { options["take"] = take; } + return await _client.Request(HttpMethod.Get, url, options, null, null); + } } } diff --git a/src/Clients/ProjectClient.cs b/src/Clients/ProjectClient.cs index 4669497..4697a02 100644 --- a/src/Clients/ProjectClient.cs +++ b/src/Clients/ProjectClient.cs @@ -102,5 +102,21 @@ public async Task> UpdateProject(Guid projectId, ProjectUpda var url = $"/api/data/projects/{projectId}"; return await _client.Request(HttpMethod.Put, url, null, body, null); } + + /// + /// Delete a project based on the details provided. + /// + /// A Project is a collection of Tasks that contributes towards a goal. Within a Project, Tasks represent individual items of work that team members must complete. The sum total of Tasks within a Project represents the work to be completed for that Project. + /// + /// + /// The unique identifier of the Project to delete + /// Hard delete project true or false + public async Task> DeleteProject(Guid projectId, bool? hardDelete = null) + { + var url = $"/api/data/projects/{projectId}"; + var options = new Dictionary(); + if (hardDelete != null) { options["hardDelete"] = hardDelete; } + return await _client.Request(HttpMethod.Delete, url, options, null, null); + } } } diff --git a/src/Clients/ProjectFieldClient.cs b/src/Clients/ProjectFieldClient.cs index 23ee650..d7a6fda 100644 --- a/src/Clients/ProjectFieldClient.cs +++ b/src/Clients/ProjectFieldClient.cs @@ -85,7 +85,7 @@ public async Task> DeleteProjectField(string fieldId) /// The unique identifier of the Project that contains this ProjectField /// The unique identifier or short ID of this ProjectField /// The new information for this ProjectField - public async Task> UpdateProjectfieldValue(Guid projectId, string fieldId, UpdateProjectFieldValueDto body) + public async Task> UpdateProjectFieldValue(Guid projectId, string fieldId, UpdateProjectFieldValueDto body) { var url = $"/api/data/projects/{projectId}/fields/{fieldId}"; return await _client.Request(HttpMethod.Put, url, null, body, null); @@ -99,7 +99,7 @@ public async Task> UpdateProjectfieldValue(Guid projectId, s /// /// The unique identifier of the Project of the value to retrieve /// The unique identifier or short ID of the ProjectField of the value to retrieve - public async Task> RetrieveProjectfieldValue(Guid projectId, string fieldId) + public async Task> RetrieveProjectFieldValue(Guid projectId, string fieldId) { var url = $"/api/data/projects/{projectId}/fields/{fieldId}"; return await _client.Request(HttpMethod.Get, url, null, null, null); @@ -112,7 +112,7 @@ public async Task> RetrieveProjectfieldValue(G /// /// /// The unique identifier of the Project for which we want ProjectField values - public async Task> RetrieveAllProjectfieldValues(Guid projectId) + public async Task> RetrieveAllProjectFieldValues(Guid projectId) { var url = $"/api/data/projects/{projectId}/fields"; return await _client.Request(HttpMethod.Get, url, null, null, null); diff --git a/src/Clients/TaskAssigneeClient.cs b/src/Clients/TaskAssigneeClient.cs index 178e1ab..94b2e2b 100644 --- a/src/Clients/TaskAssigneeClient.cs +++ b/src/Clients/TaskAssigneeClient.cs @@ -62,7 +62,7 @@ public async Task> ReplaceTaskAssignees(Guid tas /// /// The unique identifier of the Task to add or update an assignment /// List of Assignee data - public async Task> CreateOrUpdateTaskassignee(Guid taskId, AssigneeUpsertDto[] body) + public async Task> CreateOrUpdateTaskAssignee(Guid taskId, AssigneeUpsertDto[] body) { var url = $"/api/data/tasks/{taskId}/assignees"; return await _client.Request(HttpMethod.Put, url, null, body, null); diff --git a/src/Clients/TaskFieldClient.cs b/src/Clients/TaskFieldClient.cs index 24f8aca..23b0b3e 100644 --- a/src/Clients/TaskFieldClient.cs +++ b/src/Clients/TaskFieldClient.cs @@ -109,7 +109,7 @@ public async Task> DeleteTaskField(Guid projectId, Guid fiel /// /// /// The unique identifier of the Task for which we want TaskField values - public async Task> RetrieveAllTaskfieldValues(Guid taskId) + public async Task> RetrieveAllTaskFieldValues(Guid taskId) { var url = $"/api/data/tasks/{taskId}/fields/values"; return await _client.Request(HttpMethod.Get, url, null, null, null); diff --git a/src/Clients/TaskMetadataClient.cs b/src/Clients/TaskMetadataClient.cs index 581d27a..cb8d864 100644 --- a/src/Clients/TaskMetadataClient.cs +++ b/src/Clients/TaskMetadataClient.cs @@ -55,14 +55,7 @@ public async Task> AddMetadata(Guid taskId, TaskMetadataUpda return await _client.Request(HttpMethod.Put, url, options, body, null); } - /// - /// Retrieve metadata about tasks for a project - /// - /// The unique ID of the project - /// The foreign key of the project - /// A flag indicating whether this is a system call - /// - public async Task> GetTasksByProjectIdAndForeignKeyId(Guid projectId, string foreignKey = null, bool? isSystem = null) + public async Task> GetTasksByProjectIDAndForeignKeyID(Guid projectId, string foreignKey = null, bool? isSystem = null) { var url = $"/api/data/projects/{projectId}/tasks/metadata"; var options = new Dictionary(); diff --git a/src/Clients/TaskStatusClient.cs b/src/Clients/TaskStatusClient.cs index 6b8ab90..695de17 100644 --- a/src/Clients/TaskStatusClient.cs +++ b/src/Clients/TaskStatusClient.cs @@ -59,7 +59,7 @@ public async Task> RetrieveTaskStatuses(Guid projec /// /// The unique identifier of the Project for the new TaskStatus /// Information about the new TaskStatus level to create within this Project - public async Task> CreateTaskstatus(Guid projectId, TaskStatusCreateDto body) + public async Task> CreateTaskStatus(Guid projectId, TaskStatusCreateDto body) { var url = $"/api/data/projects/{projectId}/tasks/statuses"; return await _client.Request(HttpMethod.Post, url, null, body, null); @@ -73,7 +73,7 @@ public async Task> CreateTaskstatus(Guid projectId, T /// /// The unique identifier of the Project for the new TaskStatus /// Information about the existing TaskStatus level to update within this Project - public async Task> UpdateTaskstatus(Guid projectId, TaskStatusUpdateDto body) + public async Task> UpdateTaskStatus(Guid projectId, TaskStatusUpdateDto body) { var url = $"/api/data/projects/{projectId}/tasks/statuses"; return await _client.Request(HttpMethod.Put, url, null, body, null); @@ -87,7 +87,7 @@ public async Task> UpdateTaskstatus(Guid projectId, T /// /// The unique identifier of the Project for the TaskStatus level to delete /// The Id of the TaskStatus level to be removed. - public async Task> DeleteTaskstatus(Guid projectId, Guid taskStatusId) + public async Task> DeleteTaskStatus(Guid projectId, Guid taskStatusId) { var url = $"/api/data/projects/{projectId}/tasks/statuses/{taskStatusId}"; return await _client.Request(HttpMethod.Delete, url, null, null, null); diff --git a/src/Clients/TaskTagClient.cs b/src/Clients/TaskTagClient.cs index a766c61..3e2acd9 100644 --- a/src/Clients/TaskTagClient.cs +++ b/src/Clients/TaskTagClient.cs @@ -46,7 +46,7 @@ public TaskTagClient(ProjectManagerClient client) /// /// The unique identifier of the Task for which we will replace TaskTags /// The replacement list of TaskTags for this Task - public async Task> ReplaceTasktags(Guid taskId, NameDto[] body) + public async Task> ReplaceTaskTags(Guid taskId, NameDto[] body) { var url = $"/api/data/tasks/{taskId}/tags"; return await _client.Request(HttpMethod.Post, url, null, body, null); @@ -60,7 +60,7 @@ public async Task> ReplaceTasktags(Guid taskId, /// /// The unique identifier of the Task for which we will add TaskTags /// The new TaskTags to add to this Task - public async Task> AddTasktagToTask(Guid taskId, NameDto[] body) + public async Task> AddTaskTagToTask(Guid taskId, NameDto[] body) { var url = $"/api/data/tasks/{taskId}/tags"; return await _client.Request(HttpMethod.Put, url, null, body, null); @@ -74,7 +74,7 @@ public async Task> AddTasktagToTask(Guid taskId, /// /// The unique identifier of the Task for which we will remove existing TaskTags /// The TaskTags to remove from this Task - public async Task> RemoveTasktagFromTask(Guid taskId, NameDto[] body) + public async Task> RemoveTaskTagFromTask(Guid taskId, NameDto[] body) { var url = $"/api/data/tasks/{taskId}/tags"; return await _client.Request(HttpMethod.Delete, url, null, body, null); diff --git a/src/Clients/TimesheetClient.cs b/src/Clients/TimesheetClient.cs index 0b3b41d..0f0a261 100644 --- a/src/Clients/TimesheetClient.cs +++ b/src/Clients/TimesheetClient.cs @@ -60,7 +60,7 @@ public async Task> CreateTimeEntry(TimesheetCr /// Filter the expression according to oData queries /// Order collection by this field. /// Include related data in the response - public async Task> QueryTimesheets(int? top = null, int? skip = null, string filter = null, string orderby = null, string expand = null) + public async Task> QueryTimeSheets(int? top = null, int? skip = null, string filter = null, string orderby = null, string expand = null) { var url = $"/api/data/timesheets"; var options = new Dictionary(); diff --git a/src/Clients/UserRoleClient.cs b/src/Clients/UserRoleClient.cs index bd2bada..3579592 100644 --- a/src/Clients/UserRoleClient.cs +++ b/src/Clients/UserRoleClient.cs @@ -44,7 +44,7 @@ public UserRoleClient(ProjectManagerClient client) /// A UserRole is a name for a privilege level granted to a specific User. The 'Global Admin' UserRole is granted to the owner of the Workspace, and this UserRole cannot be changed. You can choose which UserRole applies to a User within your Workspace. /// /// - public async Task> RetrieveUserroles() + public async Task> RetrieveUserRoles() { var url = $"/api/data/users/roles"; return await _client.Request(HttpMethod.Get, url, null, null, null); diff --git a/src/Enums.cs b/src/Enums.cs index 5f30491..bc3fe24 100644 --- a/src/Enums.cs +++ b/src/Enums.cs @@ -21,14 +21,7 @@ namespace ProjectManager.SDK /// public static class DashboardTypeValues { - /// - /// The "My Summary" dashboard - /// public const string MySummary = "MySummary"; - - /// - /// The portfolio summary dashboard - /// public const string PortfolioSummary = "PortfolioSummary"; } @@ -37,24 +30,9 @@ public static class DashboardTypeValues /// public static class ProjectPermissionValues { - /// - /// Represents a guest user within the project - /// public const string Guest = "Guest"; - - /// - /// Represents a collaborator who can make some changes to a project - /// public const string Collaborate = "Collaborate"; - - /// - /// Represents an editor who can make most changes to a project - /// public const string Editor = "Editor"; - - /// - /// Represents a manager who can make all changes to a project - /// public const string Manager = "Manager"; } @@ -63,24 +41,9 @@ public static class ProjectPermissionValues /// public static class StateValues { - /// - /// Indicates that work has not yet started - /// public const string NotStarted = "NotStarted"; - - /// - /// Some work has started, but it is not yet completed - /// public const string InProgress = "InProgress"; - - /// - /// Completed successfully - /// public const string Success = "Success"; - - /// - /// Failed - /// public const string Fail = "Fail"; } } diff --git a/src/IProjectManagerClient.cs b/src/IProjectManagerClient.cs index ff91d27..5495cb6 100644 --- a/src/IProjectManagerClient.cs +++ b/src/IProjectManagerClient.cs @@ -9,7 +9,7 @@ * @author ProjectManager.com * * @copyright 2023-2024 ProjectManager.com, Inc. - * @version 102.0.2886 + * @version 102.0.2949 * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ diff --git a/src/Interfaces/IApiKeyClient.cs b/src/Interfaces/IApiKeyClient.cs index a266bc1..80d7c99 100644 --- a/src/Interfaces/IApiKeyClient.cs +++ b/src/Interfaces/IApiKeyClient.cs @@ -67,6 +67,6 @@ public interface IApiKeyClient /// /// /// The unique identifier of the API key to revoke - Task> RevokeApiKey(Guid id); + Task> RevokeAPIKey(Guid id); } } diff --git a/src/Interfaces/IChangesetClient.cs b/src/Interfaces/IChangesetClient.cs index 220d571..841c593 100644 --- a/src/Interfaces/IChangesetClient.cs +++ b/src/Interfaces/IChangesetClient.cs @@ -50,5 +50,15 @@ public interface IChangesetClient /// /// The unique ID number of the Changeset to retrieve Task> RetrieveCompletedChangeset(Guid changeSetId); + + /// + /// Retrieve Changesets by Project ID + /// + /// + /// + /// + /// + /// + Task> RetrieveChangesetsByProjectID(Guid projectId, int? version = null, int? page = null, int? take = null); } } diff --git a/src/Interfaces/IProjectClient.cs b/src/Interfaces/IProjectClient.cs index eee04f2..5467ed1 100644 --- a/src/Interfaces/IProjectClient.cs +++ b/src/Interfaces/IProjectClient.cs @@ -69,5 +69,15 @@ public interface IProjectClient /// The unique identifier of the Project to update /// All non-null fields in this object will replace previous data within the Project Task> UpdateProject(Guid projectId, ProjectUpdateDto body); + + /// + /// Delete a project based on the details provided. + /// + /// A Project is a collection of Tasks that contributes towards a goal. Within a Project, Tasks represent individual items of work that team members must complete. The sum total of Tasks within a Project represents the work to be completed for that Project. + /// + /// + /// The unique identifier of the Project to delete + /// Hard delete project true or false + Task> DeleteProject(Guid projectId, bool? hardDelete = null); } } diff --git a/src/Interfaces/IProjectFieldClient.cs b/src/Interfaces/IProjectFieldClient.cs index dc92609..5c6631f 100644 --- a/src/Interfaces/IProjectFieldClient.cs +++ b/src/Interfaces/IProjectFieldClient.cs @@ -62,7 +62,7 @@ public interface IProjectFieldClient /// The unique identifier of the Project that contains this ProjectField /// The unique identifier or short ID of this ProjectField /// The new information for this ProjectField - Task> UpdateProjectfieldValue(Guid projectId, string fieldId, UpdateProjectFieldValueDto body); + Task> UpdateProjectFieldValue(Guid projectId, string fieldId, UpdateProjectFieldValueDto body); /// /// Retrieves the current ProjectField value for a particular Project and ProjectField. @@ -72,7 +72,7 @@ public interface IProjectFieldClient /// /// The unique identifier of the Project of the value to retrieve /// The unique identifier or short ID of the ProjectField of the value to retrieve - Task> RetrieveProjectfieldValue(Guid projectId, string fieldId); + Task> RetrieveProjectFieldValue(Guid projectId, string fieldId); /// /// Retrieves all ProjectField values for a particular Project. @@ -81,6 +81,6 @@ public interface IProjectFieldClient /// /// /// The unique identifier of the Project for which we want ProjectField values - Task> RetrieveAllProjectfieldValues(Guid projectId); + Task> RetrieveAllProjectFieldValues(Guid projectId); } } diff --git a/src/Interfaces/ITaskAssigneeClient.cs b/src/Interfaces/ITaskAssigneeClient.cs index 4753835..4e4bc9a 100644 --- a/src/Interfaces/ITaskAssigneeClient.cs +++ b/src/Interfaces/ITaskAssigneeClient.cs @@ -47,7 +47,7 @@ public interface ITaskAssigneeClient /// /// The unique identifier of the Task to add or update an assignment /// List of Assignee data - Task> CreateOrUpdateTaskassignee(Guid taskId, AssigneeUpsertDto[] body); + Task> CreateOrUpdateTaskAssignee(Guid taskId, AssigneeUpsertDto[] body); /// /// Remove one or more TaskAssignees from a Task. diff --git a/src/Interfaces/ITaskFieldClient.cs b/src/Interfaces/ITaskFieldClient.cs index d289e5a..cc550d6 100644 --- a/src/Interfaces/ITaskFieldClient.cs +++ b/src/Interfaces/ITaskFieldClient.cs @@ -76,7 +76,7 @@ public interface ITaskFieldClient /// /// /// The unique identifier of the Task for which we want TaskField values - Task> RetrieveAllTaskfieldValues(Guid taskId); + Task> RetrieveAllTaskFieldValues(Guid taskId); /// /// Retrieve a list of TaskFieldValues that match an [OData formatted query](https://www.odata.org/). diff --git a/src/Interfaces/ITaskMetadataClient.cs b/src/Interfaces/ITaskMetadataClient.cs index 981370d..138261a 100644 --- a/src/Interfaces/ITaskMetadataClient.cs +++ b/src/Interfaces/ITaskMetadataClient.cs @@ -37,13 +37,6 @@ public interface ITaskMetadataClient /// The metadata Task> AddMetadata(Guid taskId, TaskMetadataUpdateDto body, bool? isSystem = null, bool? isOverride = null); - /// - /// Retrieve metadata about tasks for a project - /// - /// The unique ID of the project - /// The foreign key of the project - /// A flag indicating whether this is a system call - /// - Task> GetTasksByProjectIdAndForeignKeyId(Guid projectId, string foreignKey = null, bool? isSystem = null); + Task> GetTasksByProjectIDAndForeignKeyID(Guid projectId, string foreignKey = null, bool? isSystem = null); } } diff --git a/src/Interfaces/ITaskStatusClient.cs b/src/Interfaces/ITaskStatusClient.cs index 8e76a6b..eb88b67 100644 --- a/src/Interfaces/ITaskStatusClient.cs +++ b/src/Interfaces/ITaskStatusClient.cs @@ -44,7 +44,7 @@ public interface ITaskStatusClient /// /// The unique identifier of the Project for the new TaskStatus /// Information about the new TaskStatus level to create within this Project - Task> CreateTaskstatus(Guid projectId, TaskStatusCreateDto body); + Task> CreateTaskStatus(Guid projectId, TaskStatusCreateDto body); /// /// Updates an existing TaskStatus level for a specific Project within your Workspace. @@ -54,7 +54,7 @@ public interface ITaskStatusClient /// /// The unique identifier of the Project for the new TaskStatus /// Information about the existing TaskStatus level to update within this Project - Task> UpdateTaskstatus(Guid projectId, TaskStatusUpdateDto body); + Task> UpdateTaskStatus(Guid projectId, TaskStatusUpdateDto body); /// /// The endpoint is used to delete a TaskStatus. @@ -64,6 +64,6 @@ public interface ITaskStatusClient /// /// The unique identifier of the Project for the TaskStatus level to delete /// The Id of the TaskStatus level to be removed. - Task> DeleteTaskstatus(Guid projectId, Guid taskStatusId); + Task> DeleteTaskStatus(Guid projectId, Guid taskStatusId); } } diff --git a/src/Interfaces/ITaskTagClient.cs b/src/Interfaces/ITaskTagClient.cs index 4490ac6..4bf40a7 100644 --- a/src/Interfaces/ITaskTagClient.cs +++ b/src/Interfaces/ITaskTagClient.cs @@ -35,7 +35,7 @@ public interface ITaskTagClient /// /// The unique identifier of the Task for which we will replace TaskTags /// The replacement list of TaskTags for this Task - Task> ReplaceTasktags(Guid taskId, NameDto[] body); + Task> ReplaceTaskTags(Guid taskId, NameDto[] body); /// /// Add one or more new TaskTags to a Task. @@ -45,7 +45,7 @@ public interface ITaskTagClient /// /// The unique identifier of the Task for which we will add TaskTags /// The new TaskTags to add to this Task - Task> AddTasktagToTask(Guid taskId, NameDto[] body); + Task> AddTaskTagToTask(Guid taskId, NameDto[] body); /// /// Removes one or more existing TaskTags from a Task. @@ -55,6 +55,6 @@ public interface ITaskTagClient /// /// The unique identifier of the Task for which we will remove existing TaskTags /// The TaskTags to remove from this Task - Task> RemoveTasktagFromTask(Guid taskId, NameDto[] body); + Task> RemoveTaskTagFromTask(Guid taskId, NameDto[] body); } } diff --git a/src/Interfaces/ITimesheetClient.cs b/src/Interfaces/ITimesheetClient.cs index f98c6a8..9da1ccf 100644 --- a/src/Interfaces/ITimesheetClient.cs +++ b/src/Interfaces/ITimesheetClient.cs @@ -45,7 +45,7 @@ public interface ITimesheetClient /// Filter the expression according to oData queries /// Order collection by this field. /// Include related data in the response - Task> QueryTimesheets(int? top = null, int? skip = null, string filter = null, string orderby = null, string expand = null); + Task> QueryTimeSheets(int? top = null, int? skip = null, string filter = null, string orderby = null, string expand = null); /// /// Delete time entry by id. diff --git a/src/Interfaces/IUserRoleClient.cs b/src/Interfaces/IUserRoleClient.cs index 0a7c29f..a78fc84 100644 --- a/src/Interfaces/IUserRoleClient.cs +++ b/src/Interfaces/IUserRoleClient.cs @@ -33,6 +33,6 @@ public interface IUserRoleClient /// A UserRole is a name for a privilege level granted to a specific User. The 'Global Admin' UserRole is granted to the owner of the Workspace, and this UserRole cannot be changed. You can choose which UserRole applies to a User within your Workspace. /// /// - Task> RetrieveUserroles(); + Task> RetrieveUserRoles(); } } diff --git a/src/Models/ApiKeyCreateDto.cs b/src/Models/ApiKeyCreateDto.cs index 5dad43e..27b9fd6 100644 --- a/src/Models/ApiKeyCreateDto.cs +++ b/src/Models/ApiKeyCreateDto.cs @@ -29,6 +29,6 @@ public class ApiKeyCreateDto : ApiModel /// /// Name of token /// - public string Tokenname { get; set; } + public string TokenName { get; set; } } } diff --git a/src/Models/ApiKeyDto.cs b/src/Models/ApiKeyDto.cs index c5c0612..b3061a1 100644 --- a/src/Models/ApiKeyDto.cs +++ b/src/Models/ApiKeyDto.cs @@ -34,7 +34,7 @@ public class ApiKeyDto : ApiModel /// /// Created by user id /// - public Guid? Createdby { get; set; } + public Guid? CreatedBy { get; set; } /// /// Expires date @@ -44,7 +44,7 @@ public class ApiKeyDto : ApiModel /// /// Bearer Key /// - public string Apikey { get; set; } + public string ApiKey { get; set; } /// /// Name of token diff --git a/src/Models/AssigneeUpsertDto.cs b/src/Models/AssigneeUpsertDto.cs index d6c957d..ff113c5 100644 --- a/src/Models/AssigneeUpsertDto.cs +++ b/src/Models/AssigneeUpsertDto.cs @@ -36,6 +36,6 @@ public class AssigneeUpsertDto : ApiModel /// /// The new amount of effort to assign for this Resource. This value is measured in minutes. /// - public int? Assignedeffort { get; set; } + public int? AssignedEffort { get; set; } } } diff --git a/src/Models/AuthenticationDto.cs b/src/Models/AuthenticationDto.cs index a24aecf..9916cbb 100644 --- a/src/Models/AuthenticationDto.cs +++ b/src/Models/AuthenticationDto.cs @@ -34,6 +34,6 @@ public class AuthenticationDto : ApiModel /// /// Authenication scheme /// - public object Authscheme { get; set; } + public object AuthScheme { get; set; } } } diff --git a/src/Models/ChangeSetResponseDto.cs b/src/Models/ChangeSetResponseDto.cs new file mode 100644 index 0000000..4a523ec --- /dev/null +++ b/src/Models/ChangeSetResponseDto.cs @@ -0,0 +1,109 @@ +/*** + * 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 + * @copyright 2023-2024 ProjectManager.com, Inc. + * @link https://github.com/projectmgr/projectmanager-sdk-csharp + */ + + + +#pragma warning disable CS8618 + +using System; + +namespace ProjectManager.SDK.Models +{ + + /// + /// The project task change set + /// + public class ChangeSetResponseDto : ApiModel + { + + /// + /// Project Changeset ID + /// + public int? ProjectChangeSetId { get; set; } + + /// + /// The unique identifier of this Changeset + /// + public Guid? Id { get; set; } + + /// + /// Project ID + /// + public Guid? ProjectId { get; set; } + + /// + /// Task version + /// + public int? Version { get; set; } + + /// + /// Created by GUID + /// + public Guid? CreateBy { get; set; } + + /// + /// Created date + /// + public DateTime? CreateDate { get; set; } + + /// + /// Change set action + /// + public string Actions { get; set; } + + /// + /// Change set in json string + /// + public string ChangeSets { get; set; } + + /// + /// Processed date + /// + public DateTime? ProcessDate { get; set; } + + /// + /// If process was successful + /// + public bool? Success { get; set; } + + /// + /// Error message + /// + public string Exception { get; set; } + + /// + /// UI ID + /// + public Guid? ClientId { get; set; } + + /// + /// Changeset JSON data + /// + public string JsonData { get; set; } + + /// + /// Is change set from UNDO + /// + public bool? IsUndo { get; set; } + + /// + /// The state of the changeset + /// + public int? State { get; set; } + + /// + /// Business ID + /// + public Guid? BusinessId { get; set; } + } +} diff --git a/src/Models/ChangeSetStatusDto.cs b/src/Models/ChangeSetStatusDto.cs index eb3bab2..8021782 100644 --- a/src/Models/ChangeSetStatusDto.cs +++ b/src/Models/ChangeSetStatusDto.cs @@ -29,7 +29,7 @@ public class ChangeSetStatusDto : ApiModel /// /// The unique identifier of this Changeset /// - public Guid? Changesetid { get; set; } + public Guid? ChangeSetId { get; set; } /// /// The unique identifier of the entity affected by this Changeset. For example, if this diff --git a/src/Models/ConnectionSchemaDto.cs b/src/Models/ConnectionSchemaDto.cs index aa63d7a..2ae2c19 100644 --- a/src/Models/ConnectionSchemaDto.cs +++ b/src/Models/ConnectionSchemaDto.cs @@ -39,6 +39,6 @@ public class ConnectionSchemaDto : ApiModel /// /// This class contains the AuthScheme to use to authenticate with the Integration Provider. /// - public object Authscheme { get; set; } + public object AuthScheme { get; set; } } } diff --git a/src/Models/CountryHolidayDto.cs b/src/Models/CountryHolidayDto.cs index ef6acd3..835bef4 100644 --- a/src/Models/CountryHolidayDto.cs +++ b/src/Models/CountryHolidayDto.cs @@ -41,6 +41,6 @@ public class CountryHolidayDto : ApiModel /// /// Country id holiday associated to /// - public int? Countryid { get; set; } + public int? CountryId { get; set; } } } diff --git a/src/Models/CreateProjectFieldDto.cs b/src/Models/CreateProjectFieldDto.cs index ca4ecc9..f68a339 100644 --- a/src/Models/CreateProjectFieldDto.cs +++ b/src/Models/CreateProjectFieldDto.cs @@ -54,6 +54,6 @@ public class CreateProjectFieldDto : ApiModel /// /// The short Id of this field - human readable identity /// - public string Shortid { get; set; } + public string ShortId { get; set; } } } diff --git a/src/Models/CreateTaskFieldDto.cs b/src/Models/CreateTaskFieldDto.cs index ba008bb..d1ce17d 100644 --- a/src/Models/CreateTaskFieldDto.cs +++ b/src/Models/CreateTaskFieldDto.cs @@ -59,6 +59,6 @@ public class CreateTaskFieldDto : ApiModel /// /// The short Id of this field - human readable identity /// - public string Shortid { get; set; } + public string ShortId { get; set; } } } diff --git a/src/Models/DashboardSettingCreateDto.cs b/src/Models/DashboardSettingCreateDto.cs index 8681c86..9f2b019 100644 --- a/src/Models/DashboardSettingCreateDto.cs +++ b/src/Models/DashboardSettingCreateDto.cs @@ -34,7 +34,7 @@ public class DashboardSettingCreateDto : ApiModel /// /// User ID /// - public Guid? Userid { get; set; } + public Guid? UserId { get; set; } /// /// Either custom or one of DashboardType enum @@ -44,6 +44,6 @@ public class DashboardSettingCreateDto : ApiModel /// /// React grid layout configuration /// - public ReactGridLayoutDto Reactgridlayout { get; set; } + public ReactGridLayoutDto ReactGridLayout { get; set; } } } diff --git a/src/Models/DashboardSettingDto.cs b/src/Models/DashboardSettingDto.cs index 6ff2ed9..a089e88 100644 --- a/src/Models/DashboardSettingDto.cs +++ b/src/Models/DashboardSettingDto.cs @@ -34,7 +34,7 @@ public class DashboardSettingDto : ApiModel /// /// User ID /// - public Guid? Userid { get; set; } + public Guid? UserId { get; set; } /// /// Either custom or one of DashboardType enum @@ -44,6 +44,6 @@ public class DashboardSettingDto : ApiModel /// /// React grid layout configuration /// - public ReactGridLayoutDto Reactgridlayout { get; set; } + public ReactGridLayoutDto ReactGridLayout { get; set; } } } diff --git a/src/Models/DiscussionCommentCreateResponseDto.cs b/src/Models/DiscussionCommentCreateResponseDto.cs index 2b3ad3c..0c27ba8 100644 --- a/src/Models/DiscussionCommentCreateResponseDto.cs +++ b/src/Models/DiscussionCommentCreateResponseDto.cs @@ -32,6 +32,6 @@ public class DiscussionCommentCreateResponseDto : ApiModel /// /// The unique identifier of the discussion comment created. /// - public Guid? Discussioncommentid { get; set; } + public Guid? DiscussionCommentId { get; set; } } } diff --git a/src/Models/DiscussionCommentDto.cs b/src/Models/DiscussionCommentDto.cs index 38b8993..38c696b 100644 --- a/src/Models/DiscussionCommentDto.cs +++ b/src/Models/DiscussionCommentDto.cs @@ -46,22 +46,22 @@ public class DiscussionCommentDto : ApiModel /// /// The unique ID of the resource that wrote this comment. /// - public Guid? Authorid { get; set; } + public Guid? AuthorId { get; set; } /// /// The unique ID of the resource that wrote this comment. /// - public string Authorname { get; set; } + public string AuthorName { get; set; } /// /// The timestamp when the comment was created. /// - public DateTime? Createdate { get; set; } + public DateTime? CreateDate { get; set; } /// /// The timestamp when the comment was modified, if it is different from the create date. /// - public DateTime? Modifydate { get; set; } + public DateTime? ModifyDate { get; set; } /// /// The list of emoji reactions to this discussion comment, if any. This object will diff --git a/src/Models/DiscussionCommentFileDto.cs b/src/Models/DiscussionCommentFileDto.cs index 754a6f4..78849b4 100644 --- a/src/Models/DiscussionCommentFileDto.cs +++ b/src/Models/DiscussionCommentFileDto.cs @@ -20,9 +20,6 @@ namespace ProjectManager.SDK.Models { - /// - /// Discussion comment file - /// public class DiscussionCommentFileDto : ApiModel { diff --git a/src/Models/DiscussionEmoji.cs b/src/Models/DiscussionEmoji.cs index aceebae..8fb8636 100644 --- a/src/Models/DiscussionEmoji.cs +++ b/src/Models/DiscussionEmoji.cs @@ -34,6 +34,6 @@ public class DiscussionEmoji : ApiModel /// /// The list of user IDs of the users who tagged these emoji /// - public Guid[] Userids { get; set; } + public Guid[] UserIds { get; set; } } } diff --git a/src/Models/FileDto.cs b/src/Models/FileDto.cs index e349f59..7b5257a 100644 --- a/src/Models/FileDto.cs +++ b/src/Models/FileDto.cs @@ -34,37 +34,37 @@ public class FileDto : ApiModel /// /// If specified this file belongs to a project. The value is the id of this project /// - public Guid? Projectid { get; set; } + public Guid? ProjectId { get; set; } /// /// If specified, the file has been associated with this task. /// - public Guid? Taskid { get; set; } + public Guid? TaskId { get; set; } /// /// The reference for who uploaded the file /// - public Guid? Ownerid { get; set; } + public Guid? OwnerId { get; set; } /// /// The UTC time the file was created. /// - public DateTime? Createddate { get; set; } + public DateTime? CreatedDate { get; set; } /// /// A reference to the folder /// - public Guid? Folderid { get; set; } + public Guid? FolderId { get; set; } /// /// The type of the file /// - public string Filetype { get; set; } + public string FileType { get; set; } /// /// A user friendly label for the file type /// - public string Filetypelabel { get; set; } + public string FileTypeLabel { get; set; } /// /// Size of the file in bytes @@ -74,7 +74,7 @@ public class FileDto : ApiModel /// /// Path to download the file /// - public string Downloadpath { get; set; } + public string DownloadPath { get; set; } /// /// Is the file in the trash can @@ -94,6 +94,6 @@ public class FileDto : ApiModel /// /// Id of owner of parent entity /// - public Guid? Entityownerid { get; set; } + public Guid? EntityOwnerId { get; set; } } } diff --git a/src/Models/GetProjectFieldsResponseDto.cs b/src/Models/GetProjectFieldsResponseDto.cs index 2ab0436..215bda4 100644 --- a/src/Models/GetProjectFieldsResponseDto.cs +++ b/src/Models/GetProjectFieldsResponseDto.cs @@ -66,7 +66,7 @@ public class GetProjectFieldsResponseDto : ApiModel /// /// The entity type of the Field, either `projects` or `tasks`. /// - public string Entitytype { get; set; } + public string EntityType { get; set; } /// /// A list of options for use of this Field. This is only valid if @@ -81,6 +81,6 @@ public class GetProjectFieldsResponseDto : ApiModel /// /// The short Id of this field - human readable identity /// - public string Shortid { get; set; } + public string ShortId { get; set; } } } diff --git a/src/Models/IntegrationAuthSetupDto.cs b/src/Models/IntegrationAuthSetupDto.cs index 0266adc..1a14001 100644 --- a/src/Models/IntegrationAuthSetupDto.cs +++ b/src/Models/IntegrationAuthSetupDto.cs @@ -29,16 +29,16 @@ public class IntegrationAuthSetupDto : ApiModel /// /// Master Connection for provider /// - public string Masterconnection { get; set; } + public string MasterConnection { get; set; } /// /// UserConnection for Provider. /// - public string Userconnection { get; set; } + public string UserConnection { get; set; } /// /// Master Connection scheme for Provider. /// - public object Masterconnectionschema { get; set; } + public object MasterConnectionSchema { get; set; } } } diff --git a/src/Models/IntegrationCategoryDto.cs b/src/Models/IntegrationCategoryDto.cs index ba3e00a..d5b0a64 100644 --- a/src/Models/IntegrationCategoryDto.cs +++ b/src/Models/IntegrationCategoryDto.cs @@ -39,11 +39,11 @@ public class IntegrationCategoryDto : ApiModel /// /// A short identifier that uniquely identifies this Integration Category. /// - public string Shortid { get; set; } + public string ShortId { get; set; } /// /// A list of short identifiers for Integrations available within this Integration Category. /// - public string[] Integrationshortids { get; set; } + public string[] IntegrationShortIds { get; set; } } } diff --git a/src/Models/IntegrationConnectionSchemeObjectDto.cs b/src/Models/IntegrationConnectionSchemeObjectDto.cs index 172d08b..97719ff 100644 --- a/src/Models/IntegrationConnectionSchemeObjectDto.cs +++ b/src/Models/IntegrationConnectionSchemeObjectDto.cs @@ -39,6 +39,6 @@ public class IntegrationConnectionSchemeObjectDto : ApiModel /// /// Send to the client true/false /// - public bool? Sendtoclient { get; set; } + public bool? SendToClient { get; set; } } } diff --git a/src/Models/IntegrationDto.cs b/src/Models/IntegrationDto.cs index c0212b1..fc701bd 100644 --- a/src/Models/IntegrationDto.cs +++ b/src/Models/IntegrationDto.cs @@ -45,7 +45,7 @@ public class IntegrationDto : ApiModel /// /// A short ID that uniquely identifies this Integration /// - public string Shortid { get; set; } + public string ShortId { get; set; } /// /// True if this Integration allows multiple Instances. @@ -53,7 +53,7 @@ public class IntegrationDto : ApiModel /// An example of a multi-Instance Integration is one that can be connected to many /// different folders or channels within a remote application. /// - public bool? Ismultiinstance { get; set; } + public bool? IsMultiInstance { get; set; } /// /// Extra configuration metadata for this Instance. @@ -63,7 +63,7 @@ public class IntegrationDto : ApiModel /// /// The list of SKUS for this Integration. /// - public string[] Licenseskus { get; set; } + public string[] LicenseSkus { get; set; } /// /// For multi-Instance Integrations, this contains the list of IntegrationInstances. @@ -83,6 +83,6 @@ public class IntegrationDto : ApiModel /// /// True if the integration is auto-enabled /// - public bool? Autoenabled { get; set; } + public bool? AutoEnabled { get; set; } } } diff --git a/src/Models/IntegrationInstanceDto.cs b/src/Models/IntegrationInstanceDto.cs index c423b96..07ee9fb 100644 --- a/src/Models/IntegrationInstanceDto.cs +++ b/src/Models/IntegrationInstanceDto.cs @@ -35,36 +35,36 @@ public class IntegrationInstanceDto : ApiModel /// /// A short ID that uniquely identifies this IntegrationInstance /// - public string Integrationshortid { get; set; } + public string IntegrationShortId { get; set; } /// /// The unique identifier of the user who enabled this IntegrationInstance /// - public Guid? Enabledby { get; set; } + public Guid? EnabledBy { get; set; } /// /// Timestamp when this record was created /// - public DateTime? Createdate { get; set; } + public DateTime? CreateDate { get; set; } /// /// Timestamp when this record was most recently modified /// - public DateTime? Modifydate { get; set; } + public DateTime? ModifyDate { get; set; } /// /// The id of the project manager project this instance is related to /// - public Guid? Projectid { get; set; } + public Guid? ProjectId { get; set; } /// /// The identifier in the integration provider, could be a reference to a file, task, project. /// - public string Provideritemid { get; set; } + public string ProviderItemId { get; set; } /// /// The name of the item in the integration provider. /// - public string Provideritemname { get; set; } + public string ProviderItemName { get; set; } } } diff --git a/src/Models/IntegrationProviderDto.cs b/src/Models/IntegrationProviderDto.cs index 2235916..f8d7b93 100644 --- a/src/Models/IntegrationProviderDto.cs +++ b/src/Models/IntegrationProviderDto.cs @@ -40,7 +40,7 @@ public class IntegrationProviderDto : ApiModel /// /// A short ID that uniquely identifies this Provider. /// - public string Shortid { get; set; } + public string ShortId { get; set; } /// /// A short summary of this Provider and their service. @@ -55,12 +55,12 @@ public class IntegrationProviderDto : ApiModel /// /// A list of available license SKUs for this Provider. /// - public string[] Licenseskus { get; set; } + public string[] LicenseSkus { get; set; } /// /// A list of category IDs that this Provider exists within. /// - public string[] Categoryshortids { get; set; } + public string[] CategoryShortIds { get; set; } /// /// True if this Provider is available for use. @@ -80,11 +80,11 @@ public class IntegrationProviderDto : ApiModel /// /// The list of available AuthSetup for this Provider. /// - public IntegrationAuthSetupDto Authsetup { get; set; } + public IntegrationAuthSetupDto AuthSetup { get; set; } /// /// Flag whether user/workspace needs to be setup in Workato /// - public bool? Createinworkato { get; set; } + public bool? CreateInWorkato { get; set; } } } diff --git a/src/Models/LicenseDto.cs b/src/Models/LicenseDto.cs index f5bc5e3..10b42d3 100644 --- a/src/Models/LicenseDto.cs +++ b/src/Models/LicenseDto.cs @@ -35,12 +35,12 @@ public class LicenseDto : ApiModel /// /// The SKU code of this License, used for billing purposes. /// - public string Licensesku { get; set; } + public string LicenseSku { get; set; } /// /// The SKU code of the bundle of this License, used for billing purposes. /// - public string Bundlesku { get; set; } + public string BundleSku { get; set; } /// /// True if this license is optional. diff --git a/src/Models/MasterConnectionSchemeDto.cs b/src/Models/MasterConnectionSchemeDto.cs index 89e2e9a..cd00500 100644 --- a/src/Models/MasterConnectionSchemeDto.cs +++ b/src/Models/MasterConnectionSchemeDto.cs @@ -39,6 +39,6 @@ public class MasterConnectionSchemeDto : ApiModel /// /// Send to the client true/false /// - public bool? Sendtoclient { get; set; } + public bool? SendToClient { get; set; } } } diff --git a/src/Models/ProjectCreateAccessMemberDto.cs b/src/Models/ProjectCreateAccessMemberDto.cs index fa52e1d..d46367a 100644 --- a/src/Models/ProjectCreateAccessMemberDto.cs +++ b/src/Models/ProjectCreateAccessMemberDto.cs @@ -29,7 +29,7 @@ public class ProjectCreateAccessMemberDto : ApiModel /// /// Member's id /// - public Guid? Userid { get; set; } + public Guid? UserId { get; set; } /// /// Member's role in the project diff --git a/src/Models/ProjectCreateDto.cs b/src/Models/ProjectCreateDto.cs index 8b1f940..013d028 100644 --- a/src/Models/ProjectCreateDto.cs +++ b/src/Models/ProjectCreateDto.cs @@ -44,46 +44,46 @@ public class ProjectCreateDto : ApiModel /// /// The unique identifier of the folder of this project, or null if not assigned. /// - public Guid? Folderid { get; set; } + public Guid? FolderId { get; set; } /// /// If you wish to grant access to this Project to a selected list of people during creation, /// provide a list of ProjectMembers here. If you do not specify anyone, this Project will /// be available to only yourself. /// - public ProjectCreateAccessDto Projectaccess { get; set; } + public ProjectCreateAccessDto ProjectAccess { get; set; } /// /// The unique identifier of the customer for this project, or null if not customer specific /// - public Guid? Customerid { get; set; } + public Guid? CustomerId { get; set; } /// /// The unique identifier of the manager of this project, or null if not assigned. /// - public Guid? Managerid { get; set; } + public Guid? ManagerId { get; set; } /// /// The unique identifier of the ChargeCode for this Project, if one has been selected. /// - public Guid? Chargecodeid { get; set; } + public Guid? ChargeCodeId { get; set; } /// /// The ProjectStatus chosen for this Project, if one has been selected. /// - public Guid? Statusid { get; set; } + public Guid? StatusId { get; set; } /// /// The ProjectPriority level of this Project, if one has been selected. /// - public Guid? Priorityid { get; set; } + public Guid? PriorityId { get; set; } /// /// The default hourly rate for work on this Project. This rate will be used /// if an assignee working on this Project does not have an hourly rate configured /// in their profile. /// - public decimal? Hourlyrate { get; set; } + public decimal? HourlyRate { get; set; } /// /// The proposed budget for this Project. @@ -96,7 +96,7 @@ public class ProjectCreateDto : ApiModel /// /// You can edit the StatusUpdate field on the Portfolio page of the application. /// - public string Statusupdate { get; set; } + public string StatusUpdate { get; set; } /// /// True if this Project is a template that will be reused as a framework @@ -119,7 +119,7 @@ public class ProjectCreateDto : ApiModel /// This field does not support custom templates. You must choose from a list of /// ProjectManager-supplied templates. /// - public Guid? Templateid { get; set; } + public Guid? TemplateId { get; set; } /// /// The target planned completion date for this Project, or null if one has @@ -128,7 +128,7 @@ public class ProjectCreateDto : ApiModel /// /// This is a date-only field stored as a string in ISO 8601 (YYYY-MM-DD) format. /// - public string Targetdate { get; set; } + public string TargetDate { get; set; } /// /// True if this Project is marked as favorite for current user diff --git a/src/Models/ProjectDto.cs b/src/Models/ProjectDto.cs index bcd3f77..f6067a2 100644 --- a/src/Models/ProjectDto.cs +++ b/src/Models/ProjectDto.cs @@ -49,7 +49,7 @@ public class ProjectDto : ApiModel /// name can be edited in the Project Settings page within the application /// and can be any text you wish. /// - public string Shortcode { get; set; } + public string ShortCode { get; set; } /// /// A short identifier that uniquely identifies this Project within your Workspace @@ -63,7 +63,7 @@ public class ProjectDto : ApiModel /// /// This code is automatically assigned for you and cannot be changed. /// - public string Shortid { get; set; } + public string ShortId { get; set; } /// /// If this Project is grouped within a ProjectFolder, this contains the ProjectFolder information. @@ -82,7 +82,7 @@ public class ProjectDto : ApiModel /// /// This is a date-only field stored as a string in ISO 8601 (YYYY-MM-DD) format. /// - public string Startdate { get; set; } + public string StartDate { get; set; } /// /// The latest planned or actual finish date of tasks on the project. @@ -91,7 +91,7 @@ public class ProjectDto : ApiModel /// /// This is a date-only field stored as a string in ISO 8601 (YYYY-MM-DD) format. /// - public string Enddate { get; set; } + public string EndDate { get; set; } /// /// The target planned completion date for this Project, or null if one has @@ -100,7 +100,7 @@ public class ProjectDto : ApiModel /// /// This is a date-only field stored as a string in ISO 8601 (YYYY-MM-DD) format. /// - public string Targetdate { get; set; } + public string TargetDate { get; set; } /// /// A calculated field of the estimated date on which this Project is @@ -112,7 +112,7 @@ public class ProjectDto : ApiModel /// /// This is a date-only field stored as a string in ISO 8601 (YYYY-MM-DD) format. /// - public string Plannedstartdate { get; set; } + public string PlannedStartDate { get; set; } /// /// A calculated field of the estimated date on which this Project is @@ -124,7 +124,7 @@ public class ProjectDto : ApiModel /// /// This is a date-only field stored as a string in ISO 8601 (YYYY-MM-DD) format. /// - public string Plannedfinishdate { get; set; } + public string PlannedFinishDate { get; set; } /// /// A calculated field of the actual date on which this Project started. @@ -135,7 +135,7 @@ public class ProjectDto : ApiModel /// /// This is a date-only field stored as a string in ISO 8601 (YYYY-MM-DD) format. /// - public string Actualstartdate { get; set; } + public string ActualStartDate { get; set; } /// /// A calculated field of the actual date on which this Project finished. @@ -146,7 +146,7 @@ public class ProjectDto : ApiModel /// /// This is a date-only field stored as a string in ISO 8601 (YYYY-MM-DD) format. /// - public string Actualfinishdate { get; set; } + public string ActualFinishDate { get; set; } /// /// The ProjectPriority level of this Project, if defined. @@ -156,7 +156,7 @@ public class ProjectDto : ApiModel /// /// The ChargeCode of this Project, if defined. /// - public ProjectChargeCodeDto Chargecode { get; set; } + public ProjectChargeCodeDto ChargeCode { get; set; } /// /// Information about the manager of this project, if one has been assigned. @@ -178,7 +178,7 @@ public class ProjectDto : ApiModel /// if an assignee working on this Project does not have an hourly rate configured /// in their profile. /// - public decimal? Hourlyrate { get; set; } + public decimal? HourlyRate { get; set; } /// /// Contains an optional status update for Projects that can be used to summarize @@ -186,7 +186,7 @@ public class ProjectDto : ApiModel /// /// You can edit the StatusUpdate field on the Portfolio page of the application. /// - public string Statusupdate { get; set; } + public string StatusUpdate { get; set; } /// /// The timestamp in UTC when the Project was most recently modified. @@ -194,7 +194,7 @@ public class ProjectDto : ApiModel /// This field is automatically determined by the system when this Project is modified /// and cannot be directly changed by the user. /// - public DateTime? Modifydate { get; set; } + public DateTime? ModifyDate { get; set; } /// /// The timestamp in UTC when the Project was created. @@ -202,13 +202,13 @@ public class ProjectDto : ApiModel /// This field is automatically determined by the system when this Project is created /// and cannot be changed by the user. /// - public DateTime? Createdate { get; set; } + public DateTime? CreateDate { get; set; } /// /// True if this Project is a template that will be reused as a framework /// for future Projects. /// - public bool? Istemplate { get; set; } + public bool? IsTemplate { get; set; } /// /// True if this Project is marked as favorite for current user @@ -219,7 +219,7 @@ public class ProjectDto : ApiModel /// The TemplateId that this project was created from. /// Will be null if no template was selected at project creation. /// - public Guid? Creationtemplateid { get; set; } + public Guid? CreationTemplateId { get; set; } /// /// The members of the project @@ -229,7 +229,7 @@ public class ProjectDto : ApiModel /// /// Project fields array with values /// - public ProjectFieldValueDto[] Fieldvalues { get; set; } + public ProjectFieldValueDto[] FieldValues { get; set; } /// /// The list of files associated with this Project, if any. diff --git a/src/Models/ProjectFieldValueDto.cs b/src/Models/ProjectFieldValueDto.cs index 02598b7..6bf323e 100644 --- a/src/Models/ProjectFieldValueDto.cs +++ b/src/Models/ProjectFieldValueDto.cs @@ -34,7 +34,7 @@ public class ProjectFieldValueDto : ApiModel /// /// The unique Short Id of this Project Field. /// - public string Shortid { get; set; } + public string ShortId { get; set; } /// /// The name of this Project Field. @@ -60,11 +60,11 @@ public class ProjectFieldValueDto : ApiModel /// /// Date and time (in UTC) that this TaskField was created. /// - public DateTime? Createddate { get; set; } + public DateTime? CreatedDate { get; set; } /// /// Date and time (in UTC) that this TaskField was last modified. /// - public DateTime? Modifieddate { get; set; } + public DateTime? ModifiedDate { get; set; } } } diff --git a/src/Models/ProjectFileDto.cs b/src/Models/ProjectFileDto.cs index 6ee9525..18153b3 100644 --- a/src/Models/ProjectFileDto.cs +++ b/src/Models/ProjectFileDto.cs @@ -20,9 +20,6 @@ namespace ProjectManager.SDK.Models { - /// - /// Project File - /// public class ProjectFileDto : ApiModel { diff --git a/src/Models/ProjectFileTaskDto.cs b/src/Models/ProjectFileTaskDto.cs index 38ec890..1a0e3ad 100644 --- a/src/Models/ProjectFileTaskDto.cs +++ b/src/Models/ProjectFileTaskDto.cs @@ -20,9 +20,6 @@ namespace ProjectManager.SDK.Models { - /// - /// A file attached to a project and task - /// public class ProjectFileTaskDto : ApiModel { @@ -35,7 +32,7 @@ public class ProjectFileTaskDto : ApiModel /// A short ID that can be used to refer to this Task. This short ID is /// guaranteed to be unique within your Workspace. /// - public string Shortid { get; set; } + public string ShortId { get; set; } /// /// The common name of this Task. diff --git a/src/Models/ProjectManagerDto.cs b/src/Models/ProjectManagerDto.cs index bd34745..e6f9193 100644 --- a/src/Models/ProjectManagerDto.cs +++ b/src/Models/ProjectManagerDto.cs @@ -44,6 +44,6 @@ public class ProjectManagerDto : ApiModel /// /// Avatar's url /// - public string Avatarurl { get; set; } + public string AvatarUrl { get; set; } } } diff --git a/src/Models/ProjectMemberDto.cs b/src/Models/ProjectMemberDto.cs index 6c146f9..0b68605 100644 --- a/src/Models/ProjectMemberDto.cs +++ b/src/Models/ProjectMemberDto.cs @@ -46,7 +46,7 @@ public class ProjectMemberDto : ApiModel /// /// Avatar URL /// - public string Avatarurl { get; set; } + public string AvatarUrl { get; set; } /// /// The current permission of the user @@ -61,6 +61,6 @@ public class ProjectMemberDto : ApiModel /// /// Specifies the permissions that you can set against the project member. This changes based on who is logged in and the role they have. /// - public PermissionOptionsDto Permissionoptions { get; set; } + public PermissionOptionsDto PermissionOptions { get; set; } } } diff --git a/src/Models/ProjectStatusDto.cs b/src/Models/ProjectStatusDto.cs index 4533497..6b110bf 100644 --- a/src/Models/ProjectStatusDto.cs +++ b/src/Models/ProjectStatusDto.cs @@ -41,6 +41,6 @@ public class ProjectStatusDto : ApiModel /// /// Is this a deleted status /// - public bool? Isdeleted { get; set; } + public bool? IsDeleted { get; set; } } } diff --git a/src/Models/ProjectTemplateDto.cs b/src/Models/ProjectTemplateDto.cs index c140a16..8ced0d6 100644 --- a/src/Models/ProjectTemplateDto.cs +++ b/src/Models/ProjectTemplateDto.cs @@ -60,7 +60,7 @@ public class ProjectTemplateDto : ApiModel /// /// The preview image path for this ProjectTemplate. /// - public string Previewimage { get; set; } + public string PreviewImage { get; set; } /// /// The overall order of this ProjectTemplate. @@ -75,11 +75,11 @@ public class ProjectTemplateDto : ApiModel /// Custom templates are Templates that have been created from existing /// Project definitions. /// - public bool? Iscustom { get; set; } + public bool? IsCustom { get; set; } /// /// The web default view of the template. /// - public string Defaultview { get; set; } + public string DefaultView { get; set; } } } diff --git a/src/Models/ProjectUpdateDto.cs b/src/Models/ProjectUpdateDto.cs index d1a7b9a..abcde4b 100644 --- a/src/Models/ProjectUpdateDto.cs +++ b/src/Models/ProjectUpdateDto.cs @@ -48,48 +48,48 @@ public class ProjectUpdateDto : ApiModel /// /// This is a date-only field stored as a string in ISO 8601 (YYYY-MM-DD) format. /// - public string Targetdate { get; set; } + public string TargetDate { get; set; } /// /// To move this Project into a ProjectFolder, set this to the unique identifier of the /// ProjectFolder. /// - public Guid? Folderid { get; set; } + public Guid? FolderId { get; set; } /// /// To assign this Project to a ProjectCustomer, set this to the unique identifier of the /// ProjectCustomer. /// - public Guid? Customerid { get; set; } + public Guid? CustomerId { get; set; } /// /// To assign this Project to a ProjectManager, set this to the unique identifier of the /// ProjectManager. /// - public Guid? Managerid { get; set; } + public Guid? ManagerId { get; set; } /// /// To set the ChargeCode for this Project, set this to the unique identifier of the /// ChargeCode to use for this Project. /// - public Guid? Chargecodeid { get; set; } + public Guid? ChargeCodeId { get; set; } /// /// To change the ProjectStatus of this Project, set this to the unique identifier of the /// ProjectStatus. /// - public Guid? Statusid { get; set; } + public Guid? StatusId { get; set; } /// /// To change the ProjectPriority of this Project, set this to the unique identifier of the /// ProjectPriority. /// - public Guid? Priorityid { get; set; } + public Guid? PriorityId { get; set; } /// /// To change the hourly rate of this Project, set this to the new amount. /// - public decimal? Hourlyrate { get; set; } + public decimal? HourlyRate { get; set; } /// /// To change the budget of this Project, set this to the new amount. @@ -99,7 +99,7 @@ public class ProjectUpdateDto : ApiModel /// /// To update the Project's status text, set this to the new status text. /// - public string Statusupdate { get; set; } + public string StatusUpdate { get; set; } /// /// Mark this project as favorite for the logged in user. diff --git a/src/Models/ResourceCreateDto.cs b/src/Models/ResourceCreateDto.cs index 68b9414..68d980f 100644 --- a/src/Models/ResourceCreateDto.cs +++ b/src/Models/ResourceCreateDto.cs @@ -35,14 +35,14 @@ public class ResourceCreateDto : ApiModel /// /// Applies to personnel Resources only. /// - public string Firstname { get; set; } + public string FirstName { get; set; } /// /// The last name of the person Resource. /// /// Applies to personnel Resources only. /// - public string Lastname { get; set; } + public string LastName { get; set; } /// /// The email address of this Resource. @@ -52,7 +52,7 @@ public class ResourceCreateDto : ApiModel /// /// The basic hourly rate for this Resource. /// - public decimal? Hourlyrate { get; set; } + public decimal? HourlyRate { get; set; } /// /// The phone number associated with this Resource. @@ -74,7 +74,7 @@ public class ResourceCreateDto : ApiModel /// A text field indicating the country in which this Resource is located. /// This value must be one of the following: US, NZ, AU. /// - public string Countrycode { get; set; } + public string CountryCode { get; set; } /// /// Free-form text notes about this Resource. You may use this field to store extra @@ -87,16 +87,16 @@ public class ResourceCreateDto : ApiModel /// /// Applies to personnel Resources only. /// - public Guid? Roleid { get; set; } + public Guid? RoleId { get; set; } /// /// The list of ResourceTeams to which this Resource belongs. /// - public Guid[] Teamids { get; set; } + public Guid[] TeamIds { get; set; } /// /// The list of ResourceSkills possessed by this Resource. /// - public Guid[] Skillids { get; set; } + public Guid[] SkillIds { get; set; } } } diff --git a/src/Models/ResourceDto.cs b/src/Models/ResourceDto.cs index c39a4d1..e9f86df 100644 --- a/src/Models/ResourceDto.cs +++ b/src/Models/ResourceDto.cs @@ -40,14 +40,14 @@ public class ResourceDto : ApiModel /// /// Applies to personnel Resources only. /// - public string Firstname { get; set; } + public string FirstName { get; set; } /// /// The last name of the person Resource. /// /// Applies to personnel Resources only. /// - public string Lastname { get; set; } + public string LastName { get; set; } /// /// If this Resource is a person who can log on to ProjectManager.com, this value should be the email address of the @@ -61,7 +61,7 @@ public class ResourceDto : ApiModel /// /// The basic hourly rate for this Resource. /// - public decimal? Hourlyrate { get; set; } + public decimal? HourlyRate { get; set; } /// /// The phone number associated with this Resource. @@ -112,7 +112,7 @@ public class ResourceDto : ApiModel /// /// Applies to personnel Resources only. /// - public DateTime? Onlinedatetime { get; set; } + public DateTime? OnlineDateTime { get; set; } /// /// The Role privileges associated with this Resource. @@ -128,6 +128,6 @@ public class ResourceDto : ApiModel /// For personnel Resources, setting this value to False will make this user unable /// to access this Workspace. /// - public bool? Isactive { get; set; } + public bool? IsActive { get; set; } } } diff --git a/src/Models/ResourceHolidayDto.cs b/src/Models/ResourceHolidayDto.cs index 39b9ad5..cdcb81b 100644 --- a/src/Models/ResourceHolidayDto.cs +++ b/src/Models/ResourceHolidayDto.cs @@ -41,6 +41,6 @@ public class ResourceHolidayDto : ApiModel /// /// Resource id holoday associated to /// - public Guid? Resourceid { get; set; } + public Guid? ResourceId { get; set; } } } diff --git a/src/Models/ResourceUpdateDto.cs b/src/Models/ResourceUpdateDto.cs index c81a1a0..b4f55d5 100644 --- a/src/Models/ResourceUpdateDto.cs +++ b/src/Models/ResourceUpdateDto.cs @@ -35,14 +35,14 @@ public class ResourceUpdateDto : ApiModel /// /// Applies to personnel Resources only. /// - public string Firstname { get; set; } + public string FirstName { get; set; } /// /// The last name of the person Resource. /// /// Applies to personnel Resources only. /// - public string Lastname { get; set; } + public string LastName { get; set; } /// /// The email address of this Resource. @@ -54,7 +54,7 @@ public class ResourceUpdateDto : ApiModel /// /// The basic hourly rate for this Resource. /// - public decimal? Hourlyrate { get; set; } + public decimal? HourlyRate { get; set; } /// /// The phone number associated with this Resource. @@ -76,7 +76,7 @@ public class ResourceUpdateDto : ApiModel /// A text field indicating the country in which this Resource is located. /// This value must be one of the following: US, NZ, AU. /// - public string Countrycode { get; set; } + public string CountryCode { get; set; } /// /// Free-form text notes about this Resource. You may use this field to store extra @@ -89,16 +89,16 @@ public class ResourceUpdateDto : ApiModel /// /// Applies to personnel Resources only. /// - public Guid? Roleid { get; set; } + public Guid? RoleId { get; set; } /// /// The list of ResourceTeams to which this Resource belongs. /// - public Guid[] Teamids { get; set; } + public Guid[] TeamIds { get; set; } /// /// The list of ResourceSkills possessed by this Resource. /// - public Guid[] Skillids { get; set; } + public Guid[] SkillIds { get; set; } } } diff --git a/src/Models/TaskAssigneeDto.cs b/src/Models/TaskAssigneeDto.cs index 1122318..2b27612 100644 --- a/src/Models/TaskAssigneeDto.cs +++ b/src/Models/TaskAssigneeDto.cs @@ -51,7 +51,7 @@ public class TaskAssigneeDto : ApiModel /// /// True if this TaskAssignee is currently active with the Project. /// - public bool? Isactive { get; set; } + public bool? IsActive { get; set; } /// /// The color that will be used to represent this TaskAssignee visually. @@ -67,26 +67,26 @@ public class TaskAssigneeDto : ApiModel /// /// For personnel TaskAssignees only. /// - public string Firstname { get; set; } + public string FirstName { get; set; } /// /// The last or family name of this TaskAssignee. /// /// For personnel TaskAssignees only. /// - public string Lastname { get; set; } + public string LastName { get; set; } /// /// A shortened version of the name of this TaskAssignee. This is used in areas /// where the Initials are too short but the full name is too long. /// - public string Shortname { get; set; } + public string ShortName { get; set; } /// /// A link to an Avatar for this TaskAssignee. Avatars are small images or representations /// that can be used to visually identify this TaskAssignee at a glance. /// - public string Avatarurl { get; set; } + public string AvatarUrl { get; set; } /// /// The email address for the resource. It can be empty if the resource does not have a login. @@ -96,6 +96,6 @@ public class TaskAssigneeDto : ApiModel /// /// The allocated effort (in minutes) for this Task and Assignee. /// - public int? Allocatedeffort { get; set; } + public int? AllocatedEffort { get; set; } } } diff --git a/src/Models/TaskCreateDto.cs b/src/Models/TaskCreateDto.cs index 497acae..9cca5c8 100644 --- a/src/Models/TaskCreateDto.cs +++ b/src/Models/TaskCreateDto.cs @@ -46,17 +46,17 @@ public class TaskCreateDto : ApiModel /// This value can be edited manually in the Gantt chart view of the application, /// or can be selected on the Task Detail page within the Kanban board. /// - public int? Percentcomplete { get; set; } + public int? PercentComplete { get; set; } /// /// The unique identifier of the TaskStatus for this Task /// - public Guid? Statusid { get; set; } + public Guid? StatusId { get; set; } /// /// A numerical value representing the Priority of this Task /// - public int? Priorityid { get; set; } + public int? PriorityId { get; set; } /// /// A list of unique identifiers of TaskAssignees to be assigned to this Task @@ -68,41 +68,41 @@ public class TaskCreateDto : ApiModel /// /// This is a date-only field stored as a string in ISO 8601 (YYYY-MM-DD) format. /// - public string Plannedstartdate { get; set; } + public string PlannedStartDate { get; set; } /// /// The date when work on this Task is expected to complete. /// /// This is a date-only field stored as a string in ISO 8601 (YYYY-MM-DD) format. /// - public string Plannedfinishdate { get; set; } + public string PlannedFinishDate { get; set; } /// /// The planned duration (in minutes) for this Task. Cannot be negative. /// - public int? Plannedduration { get; set; } + public int? PlannedDuration { get; set; } /// /// The planned effort (in minutes) for this Task. Cannot be negative. /// - public int? Plannedeffort { get; set; } + public int? PlannedEffort { get; set; } /// /// The planned cost for this Task. Cannot be negative. /// - public decimal? Plannedcost { get; set; } + public decimal? PlannedCost { get; set; } /// /// The date when work on this Task actually started, if known. /// /// This is a date-only field stored as a string in ISO 8601 (YYYY-MM-DD) format. /// - public string Actualstartdate { get; set; } + public string ActualStartDate { get; set; } /// /// The actual cost of this Task to date, if known. /// - public decimal? Actualcost { get; set; } + public decimal? ActualCost { get; set; } /// /// Color theme definition for this task. diff --git a/src/Models/TaskDto.cs b/src/Models/TaskDto.cs index bd1fc73..ebb8eef 100644 --- a/src/Models/TaskDto.cs +++ b/src/Models/TaskDto.cs @@ -46,7 +46,7 @@ public class TaskDto : ApiModel /// /// The unique identifier of the Project to which this Task belongs. /// - public Guid? Projectid { get; set; } + public Guid? ProjectId { get; set; } /// /// The list of assignees who are to work on this Task, if any. @@ -62,7 +62,7 @@ public class TaskDto : ApiModel /// A short ID that can be used to refer to this Task. This short ID is /// guaranteed to be unique within your Workspace. /// - public string Shortid { get; set; } + public string ShortId { get; set; } /// /// The common name of this Task. @@ -94,7 +94,7 @@ public class TaskDto : ApiModel /// /// This is a date-only field stored as a string in ISO 8601 (YYYY-MM-DD) format. /// - public string Plannedstartdate { get; set; } + public string PlannedStartDate { get; set; } /// /// The date when work on this Task is expected to complete. @@ -111,7 +111,7 @@ public class TaskDto : ApiModel /// /// This is a date-only field stored as a string in ISO 8601 (YYYY-MM-DD) format. /// - public string Plannedfinishdate { get; set; } + public string PlannedFinishDate { get; set; } /// /// If set, this is the actual date when work began on the Task. @@ -128,7 +128,7 @@ public class TaskDto : ApiModel /// /// This is a date-only field stored as a string in ISO 8601 (YYYY-MM-DD) format. /// - public string Actualstartdate { get; set; } + public string ActualStartDate { get; set; } /// /// If set, this is the actual date when work was completed on this Task. @@ -145,17 +145,17 @@ public class TaskDto : ApiModel /// /// This is a date-only field stored as a string in ISO 8601 (YYYY-MM-DD) format. /// - public string Actualfinishdate { get; set; } + public string ActualFinishDate { get; set; } /// /// The timestamp in UTC when this Task was most recently modified. /// - public DateTime? Modifydate { get; set; } + public DateTime? ModifyDate { get; set; } /// /// The timestamp in UTC when this Task was created. /// - public DateTime? Createdate { get; set; } + public DateTime? CreateDate { get; set; } /// /// The numerical percentage, from 0-100, representing the percentage completion @@ -165,7 +165,7 @@ public class TaskDto : ApiModel /// This value can be edited manually in the Gantt chart view of the application, /// or can be selected on the Task Detail page within the Kanban board. /// - public int? Percentcomplete { get; set; } + public int? PercentComplete { get; set; } /// /// True if this Task is the parent of multiple Tasks underneath it. A parent Task @@ -175,12 +175,12 @@ public class TaskDto : ApiModel /// You can create a summary Task in the Gantt chart view of the application by /// adding child tasks underneath a parent Task. /// - public bool? Issummary { get; set; } + public bool? IsSummary { get; set; } /// /// Return the priority of a task /// - public int? Priorityid { get; set; } + public int? PriorityId { get; set; } /// /// The WBS (Work Breakdown Structure) number for this task within the Gantt chart hierarchy. See [What @@ -201,27 +201,27 @@ public class TaskDto : ApiModel /// /// The actual cost of this Task to date, if known. /// - public decimal? Actualcost { get; set; } + public decimal? ActualCost { get; set; } /// /// The planned cost for this Task. Cannot be negative. /// - public decimal? Plannedcost { get; set; } + public decimal? PlannedCost { get; set; } /// /// The planned duration (in minutes) for this Task. /// - public int? Plannedduration { get; set; } + public int? PlannedDuration { get; set; } /// /// The planned effort (in minutes) for this Task. /// - public int? Plannedeffort { get; set; } + public int? PlannedEffort { get; set; } /// /// Task fields array with values /// - public TaskFieldValueDto[] Fieldvalues { get; set; } + public TaskFieldValueDto[] FieldValues { get; set; } /// /// The list of files associated with this Task, if any. diff --git a/src/Models/TaskFieldDto.cs b/src/Models/TaskFieldDto.cs index faee898..b8e4aff 100644 --- a/src/Models/TaskFieldDto.cs +++ b/src/Models/TaskFieldDto.cs @@ -69,7 +69,7 @@ public class TaskFieldDto : ApiModel /// /// The short Id of this TaskField - human readable identity /// - public string Shortid { get; set; } + public string ShortId { get; set; } /// /// The Project to which this TaskField belongs. @@ -79,11 +79,11 @@ public class TaskFieldDto : ApiModel /// /// Date and time (in UTC) that this TaskField was created. /// - public DateTime? Createddate { get; set; } + public DateTime? CreatedDate { get; set; } /// /// Date and time (in UTC) that this TaskField was last modified. /// - public DateTime? Modifieddate { get; set; } + public DateTime? ModifiedDate { get; set; } } } diff --git a/src/Models/TaskFieldProjectDto.cs b/src/Models/TaskFieldProjectDto.cs index dbe82fa..0cd0933 100644 --- a/src/Models/TaskFieldProjectDto.cs +++ b/src/Models/TaskFieldProjectDto.cs @@ -34,7 +34,7 @@ public class TaskFieldProjectDto : ApiModel /// /// The ShortId of this Project. /// - public string Shortid { get; set; } + public string ShortId { get; set; } /// /// The common name of this Project. diff --git a/src/Models/TaskFieldValueDto.cs b/src/Models/TaskFieldValueDto.cs index 23b8588..fb1f73f 100644 --- a/src/Models/TaskFieldValueDto.cs +++ b/src/Models/TaskFieldValueDto.cs @@ -34,7 +34,7 @@ public class TaskFieldValueDto : ApiModel /// /// The unique Short Id of this TaskField. /// - public string Shortid { get; set; } + public string ShortId { get; set; } /// /// The name of this Project Field. @@ -60,12 +60,12 @@ public class TaskFieldValueDto : ApiModel /// /// Date and time (in UTC) that this TaskField was created. /// - public DateTime? Createddate { get; set; } + public DateTime? CreatedDate { get; set; } /// /// Date and time (in UTC) that this TaskField was last modified. /// - public DateTime? Modifieddate { get; set; } + public DateTime? ModifiedDate { get; set; } /// /// The Task to which this Value belongs. diff --git a/src/Models/TaskFieldValueTaskDto.cs b/src/Models/TaskFieldValueTaskDto.cs index f8d4861..9717355 100644 --- a/src/Models/TaskFieldValueTaskDto.cs +++ b/src/Models/TaskFieldValueTaskDto.cs @@ -34,7 +34,7 @@ public class TaskFieldValueTaskDto : ApiModel /// /// The unique Short Id of this Task. /// - public string Shortid { get; set; } + public string ShortId { get; set; } /// /// The common name of this Task. diff --git a/src/Models/TaskMetadataSearchDto.cs b/src/Models/TaskMetadataSearchDto.cs index cb4aca0..32787fb 100644 --- a/src/Models/TaskMetadataSearchDto.cs +++ b/src/Models/TaskMetadataSearchDto.cs @@ -34,7 +34,7 @@ public class TaskMetadataSearchDto : ApiModel /// /// Project ID /// - public Guid? Projectid { get; set; } + public Guid? ProjectId { get; set; } /// /// Customer or system metadata diff --git a/src/Models/TaskProjectDto.cs b/src/Models/TaskProjectDto.cs index 8daf46f..1cc80f7 100644 --- a/src/Models/TaskProjectDto.cs +++ b/src/Models/TaskProjectDto.cs @@ -36,7 +36,7 @@ public class TaskProjectDto : ApiModel /// /// The ShortId of this Project. /// - public string Shortid { get; set; } + public string ShortId { get; set; } /// /// The common name of this Project. diff --git a/src/Models/TaskStatusDto.cs b/src/Models/TaskStatusDto.cs index 2701ce2..00c217b 100644 --- a/src/Models/TaskStatusDto.cs +++ b/src/Models/TaskStatusDto.cs @@ -36,7 +36,7 @@ public class TaskStatusDto : ApiModel /// /// The unique identifier of the Project to which this TaskStatus belongs. /// - public Guid? Projectid { get; set; } + public Guid? ProjectId { get; set; } /// /// The name of this TaskStatus. @@ -52,6 +52,6 @@ public class TaskStatusDto : ApiModel /// /// True if a Task in this TaskStatus is considered done. /// - public bool? Isdone { get; set; } + public bool? IsDone { get; set; } } } diff --git a/src/Models/TaskTodoDto.cs b/src/Models/TaskTodoDto.cs index 2615bd1..287bfda 100644 --- a/src/Models/TaskTodoDto.cs +++ b/src/Models/TaskTodoDto.cs @@ -45,11 +45,11 @@ public class TaskTodoDto : ApiModel /// /// The timestamp in UTC when this object was created. /// - public DateTime? Createdate { get; set; } + public DateTime? CreateDate { get; set; } /// /// The timestamp in UTC when this object was last modified. /// - public DateTime? Modifydate { get; set; } + public DateTime? ModifyDate { get; set; } } } diff --git a/src/Models/TaskUpdateDto.cs b/src/Models/TaskUpdateDto.cs index 90606f3..68c3b0f 100644 --- a/src/Models/TaskUpdateDto.cs +++ b/src/Models/TaskUpdateDto.cs @@ -46,17 +46,17 @@ public class TaskUpdateDto : ApiModel /// This value can be edited manually in the Gantt chart view of the application, /// or can be selected on the Task Detail page within the Kanban board. /// - public int? Percentcomplete { get; set; } + public int? PercentComplete { get; set; } /// /// The TaskStatus assigned to this Task. /// - public Guid? Statusid { get; set; } + public Guid? StatusId { get; set; } /// /// The unique identifier of the TaskPriority /// - public int? Priorityid { get; set; } + public int? PriorityId { get; set; } /// /// The date when work on this Task is planned to begin. @@ -73,7 +73,7 @@ public class TaskUpdateDto : ApiModel /// /// This is a date-only field stored as a string in ISO 8601 (YYYY-MM-DD) format. /// - public string Plannedstartdate { get; set; } + public string PlannedStartDate { get; set; } /// /// The date when work on this Task is expected to complete. @@ -90,22 +90,22 @@ public class TaskUpdateDto : ApiModel /// /// This is a date-only field stored as a string in ISO 8601 (YYYY-MM-DD) format. /// - public string Plannedfinishdate { get; set; } + public string PlannedFinishDate { get; set; } /// /// The planned duration (in minutes) for this Task. Cannot be negative. /// - public int? Plannedduration { get; set; } + public int? PlannedDuration { get; set; } /// /// The planned effort (in minutes) for this Task. Cannot be negative. /// - public int? Plannedeffort { get; set; } + public int? PlannedEffort { get; set; } /// /// The planned cost for this Task. Cannot be negative. /// - public decimal? Plannedcost { get; set; } + public decimal? PlannedCost { get; set; } /// /// If set, this is the actual date when work began on the Task. @@ -122,12 +122,12 @@ public class TaskUpdateDto : ApiModel /// /// This is a date-only field stored as a string in ISO 8601 (YYYY-MM-DD) format. /// - public string Actualstartdate { get; set; } + public string ActualStartDate { get; set; } /// /// If set, this represents the actual tracked cost for this Task. /// - public decimal? Actualcost { get; set; } + public decimal? ActualCost { get; set; } /// /// Color theme definition for this task. diff --git a/src/Models/TimeSheetProjectDto.cs b/src/Models/TimeSheetProjectDto.cs index 1b972f6..f0ecf58 100644 --- a/src/Models/TimeSheetProjectDto.cs +++ b/src/Models/TimeSheetProjectDto.cs @@ -48,7 +48,7 @@ public class TimeSheetProjectDto : ApiModel /// name can be edited in the Project Settings page within the application /// and can be any text you wish. /// - public string Shortcode { get; set; } + public string ShortCode { get; set; } /// /// A short identifier that uniquely identifies this Project within your Workspace @@ -62,28 +62,28 @@ public class TimeSheetProjectDto : ApiModel /// /// This code is automatically assigned for you and cannot be changed. /// - public string Shortid { get; set; } + public string ShortId { get; set; } /// /// The earliest planned or actual start date of tasks on the project. /// /// This field is calculated automatically and cannot be changed. /// - public DateTime? Startdate { get; set; } + public DateTime? StartDate { get; set; } /// /// The latest planned or actual finish date of tasks on the project. /// /// This field is calculated automatically and cannot be changed. /// - public DateTime? Enddate { get; set; } + public DateTime? EndDate { get; set; } /// /// The target planned completion date for this Project, or null if one has /// not been selected. This value can be updated in the Project Settings /// page or the Portfolio Project page within the application. /// - public DateTime? Targetdate { get; set; } + public DateTime? TargetDate { get; set; } /// /// The proposed budget for this Project. @@ -95,7 +95,7 @@ public class TimeSheetProjectDto : ApiModel /// if an assignee working on this Project does not have an hourly rate configured /// in their profile. /// - public decimal? Hourlyrate { get; set; } + public decimal? HourlyRate { get; set; } /// /// Contains an optional status update for Projects that can be used to summarize @@ -103,22 +103,22 @@ public class TimeSheetProjectDto : ApiModel /// /// You can edit the StatusUpdate field on the Portfolio page of the application. /// - public string Statusupdate { get; set; } + public string StatusUpdate { get; set; } /// /// The timestamp in UTC when the Project was most recently modified. /// - public DateTime? Modifydate { get; set; } + public DateTime? ModifyDate { get; set; } /// /// The timestamp in UTC when the Project was created. /// - public DateTime? Createdate { get; set; } + public DateTime? CreateDate { get; set; } /// /// True if this Project is a template that will be reused as a framework /// for future Projects. /// - public bool? Istemplate { get; set; } + public bool? IsTemplate { get; set; } } } diff --git a/src/Models/TimesheetCreateRequestDto.cs b/src/Models/TimesheetCreateRequestDto.cs index 5ee6420..43c0401 100644 --- a/src/Models/TimesheetCreateRequestDto.cs +++ b/src/Models/TimesheetCreateRequestDto.cs @@ -41,17 +41,17 @@ public class TimesheetCreateRequestDto : ApiModel /// /// Task id that time reported to /// - public Guid? Taskid { get; set; } + public Guid? TaskId { get; set; } /// /// Admin task id that time reportsed to /// - public Guid? Admintypeid { get; set; } + public Guid? AdminTypeId { get; set; } /// /// Resource id that time reported to /// - public Guid? Resourceid { get; set; } + public Guid? ResourceId { get; set; } /// /// Notes diff --git a/src/Models/TimesheetDto.cs b/src/Models/TimesheetDto.cs index f851dbd..c83c9cd 100644 --- a/src/Models/TimesheetDto.cs +++ b/src/Models/TimesheetDto.cs @@ -54,7 +54,7 @@ public class TimesheetDto : ApiModel /// /// Date and time (in UTC) that this timesheet entry was last modified. /// - public DateTime? Modifieddate { get; set; } + public DateTime? ModifiedDate { get; set; } /// /// The task associated with this timesheet entry @@ -74,7 +74,7 @@ public class TimesheetDto : ApiModel /// /// The administration type associated with this timesheet entry /// - public TimesheetAdminTypeDto Admintype { get; set; } + public TimesheetAdminTypeDto AdminType { get; set; } /// /// The list of files associated with this Timesheet, if any. diff --git a/src/Models/TimesheetFileDto.cs b/src/Models/TimesheetFileDto.cs index d173bd7..7d59e87 100644 --- a/src/Models/TimesheetFileDto.cs +++ b/src/Models/TimesheetFileDto.cs @@ -20,9 +20,6 @@ namespace ProjectManager.SDK.Models { - /// - /// A file attached to a timesheet - /// public class TimesheetFileDto : ApiModel { diff --git a/src/Models/TimesheetResourceDto.cs b/src/Models/TimesheetResourceDto.cs index a151f54..d3a75b4 100644 --- a/src/Models/TimesheetResourceDto.cs +++ b/src/Models/TimesheetResourceDto.cs @@ -40,14 +40,14 @@ public class TimesheetResourceDto : ApiModel /// /// Applies to personnel Resources only. /// - public string Firstname { get; set; } + public string FirstName { get; set; } /// /// The last name of the person Resource. /// /// Applies to personnel Resources only. /// - public string Lastname { get; set; } + public string LastName { get; set; } /// /// The email address of this Resource. diff --git a/src/Models/TimesheetResponseDto.cs b/src/Models/TimesheetResponseDto.cs index cea7b1b..53449fc 100644 --- a/src/Models/TimesheetResponseDto.cs +++ b/src/Models/TimesheetResponseDto.cs @@ -34,22 +34,22 @@ public class TimesheetResponseDto : ApiModel /// /// associated task id /// - public Guid? Taskid { get; set; } + public Guid? TaskId { get; set; } /// /// associated project id /// - public Guid? Projectid { get; set; } + public Guid? ProjectId { get; set; } /// /// resource id time entry entered /// - public Guid? Resourceid { get; set; } + public Guid? ResourceId { get; set; } /// /// admin task id /// - public Guid? Timesheetadmintypeid { get; set; } + public Guid? TimesheetAdminTypeId { get; set; } /// /// Date of time entry diff --git a/src/Models/TimesheetTaskDto.cs b/src/Models/TimesheetTaskDto.cs index 3636006..75cd378 100644 --- a/src/Models/TimesheetTaskDto.cs +++ b/src/Models/TimesheetTaskDto.cs @@ -36,13 +36,13 @@ public class TimesheetTaskDto : ApiModel /// /// The unique identifier of the Project to which this Task belongs. /// - public Guid? Projectid { get; set; } + public Guid? ProjectId { get; set; } /// /// A short ID that can be used to refer to this Task. This short ID is /// guaranteed to be unique within your Workspace. /// - public string Shortid { get; set; } + public string ShortId { get; set; } /// /// The common name of this Task. @@ -67,7 +67,7 @@ public class TimesheetTaskDto : ApiModel /// savings time). This project is considered overdue on 12:01 AM July 6th 2023 in /// US Pacific time. /// - public DateTime? Plannedstartdate { get; set; } + public DateTime? PlannedStartDate { get; set; } /// /// The date when work on this Task is expected to complete. @@ -82,7 +82,7 @@ public class TimesheetTaskDto : ApiModel /// savings time). This project is considered overdue on 12:01 AM July 6th 2023 in /// US Pacific time. /// - public DateTime? Plannedfinishdate { get; set; } + public DateTime? PlannedFinishDate { get; set; } /// /// If set, this is the actual date when work began on the Task. @@ -97,7 +97,7 @@ public class TimesheetTaskDto : ApiModel /// savings time). This project is considered overdue on 12:01 AM July 6th 2023 in /// US Pacific time. /// - public DateTime? Actualstartdate { get; set; } + public DateTime? ActualStartDate { get; set; } /// /// If set, this is the actual date when work was completed on this Task. @@ -112,17 +112,17 @@ public class TimesheetTaskDto : ApiModel /// savings time). This project is considered overdue on 12:01 AM July 6th 2023 in /// US Pacific time. /// - public DateTime? Actualfinishdate { get; set; } + public DateTime? ActualFinishDate { get; set; } /// /// The timestamp in UTC when this Task was most recently modified. /// - public DateTime? Modifydate { get; set; } + public DateTime? ModifyDate { get; set; } /// /// The timestamp in UTC when this Task was created. /// - public DateTime? Createdate { get; set; } + public DateTime? CreateDate { get; set; } /// /// The numerical percentage, from 0-100, representing the percentage completion @@ -132,7 +132,7 @@ public class TimesheetTaskDto : ApiModel /// This value can be edited manually in the Gantt chart view of the application, /// or can be selected on the Task Detail page within the Kanban board. /// - public int? Percentcomplete { get; set; } + public int? PercentComplete { get; set; } /// /// True if this Task is the parent of multiple Tasks underneath it. A parent Task @@ -142,12 +142,12 @@ public class TimesheetTaskDto : ApiModel /// You can create a summary Task in the Gantt chart view of the application by /// adding child tasks underneath a parent Task. /// - public bool? Issummary { get; set; } + public bool? IsSummary { get; set; } /// /// Return the priority of a task /// - public int? Priorityid { get; set; } + public int? PriorityId { get; set; } /// /// The WBS (Work Breakdown Structure) number for this task within the Gantt chart hierarchy. See [What @@ -168,11 +168,11 @@ public class TimesheetTaskDto : ApiModel /// /// The actual cost of this Task to date, if known. /// - public decimal? Actualcost { get; set; } + public decimal? ActualCost { get; set; } /// /// The planned cost for this Task. Cannot be negative. /// - public decimal? Plannedcost { get; set; } + public decimal? PlannedCost { get; set; } } } diff --git a/src/Models/UpdateRequestDto.cs b/src/Models/UpdateRequestDto.cs index bc3ff0f..a81ae5d 100644 --- a/src/Models/UpdateRequestDto.cs +++ b/src/Models/UpdateRequestDto.cs @@ -40,11 +40,11 @@ public class UpdateRequestDto : ApiModel /// /// To assign this File to a Task, specify the TaskId here. /// - public Guid? Taskid { get; set; } + public Guid? TaskId { get; set; } /// /// To move this File to a new Folder, specify the Folder's unique identifier here. /// - public Guid? Folderid { get; set; } + public Guid? FolderId { get; set; } } } diff --git a/src/Models/WorkSpaceDto.cs b/src/Models/WorkSpaceDto.cs index 76386cc..e731d8b 100644 --- a/src/Models/WorkSpaceDto.cs +++ b/src/Models/WorkSpaceDto.cs @@ -41,23 +41,23 @@ public class WorkSpaceDto : ApiModel /// /// The unique DNS domain of this Workspace. /// - public string Customproductdomain { get; set; } + public string CustomProductDomain { get; set; } /// /// TODO - What is this value? /// - public Guid? Customerid { get; set; } + public Guid? CustomerId { get; set; } /// /// This value is set to true if the user who retrieves this Workspace object via an API call is /// the owner of this Workspace. /// - public bool? Isowner { get; set; } + public bool? IsOwner { get; set; } /// /// The organization code used for authentication systems for this Workspace. /// - public string Organizationid { get; set; } + public string OrganizationId { get; set; } /// /// The RGB color in the format `#RRGGBB` for this Workspace. @@ -67,26 +67,26 @@ public class WorkSpaceDto : ApiModel /// /// The role of the current user within this Workspace. /// - public string Rolename { get; set; } + public string RoleName { get; set; } /// /// The timestamp when the Workspace was created. /// - public DateTime? Registerdate { get; set; } + public DateTime? RegisterDate { get; set; } /// /// True if the user has accepted an invitation to this Workspace. /// - public bool? Isinviteaccepted { get; set; } + public bool? IsInviteAccepted { get; set; } /// /// The unique identifier of the BusinessUser that is the owner of this Workspace. /// - public Guid? Businessuserid { get; set; } + public Guid? BusinessUserId { get; set; } /// /// True if this Workspace has an active subscription; false if this is a free trial. /// - public bool? Ispaid { get; set; } + public bool? IsPaid { get; set; } } } diff --git a/src/Models/WorkSpaceJoinDto.cs b/src/Models/WorkSpaceJoinDto.cs index 86bcb09..aac6c96 100644 --- a/src/Models/WorkSpaceJoinDto.cs +++ b/src/Models/WorkSpaceJoinDto.cs @@ -31,6 +31,6 @@ public class WorkSpaceJoinDto : ApiModel /// /// The unique identifier of the BusinessUser to invite to this Workspace. /// - public Guid? Businessuserid { get; set; } + public Guid? BusinessUserId { get; set; } } } diff --git a/src/Models/WorkSpaceLinksDto.cs b/src/Models/WorkSpaceLinksDto.cs index c33a7b3..663c459 100644 --- a/src/Models/WorkSpaceLinksDto.cs +++ b/src/Models/WorkSpaceLinksDto.cs @@ -34,6 +34,6 @@ public class WorkSpaceLinksDto : ApiModel /// /// This is the link to the api for this business. Some endpoints may need this value. /// - public string Workspaceapi { get; set; } + public string WorkSpaceApi { get; set; } } } diff --git a/src/Models/WorkSpaceUserInfoDto.cs b/src/Models/WorkSpaceUserInfoDto.cs index bc1e52c..9157632 100644 --- a/src/Models/WorkSpaceUserInfoDto.cs +++ b/src/Models/WorkSpaceUserInfoDto.cs @@ -36,7 +36,7 @@ public class WorkSpaceUserInfoDto : ApiModel /// /// The email address of the currently logged in user. /// - public string Emailaddress { get; set; } + public string EmailAddress { get; set; } /// /// The unique identity of the currently logged in user. @@ -46,27 +46,27 @@ public class WorkSpaceUserInfoDto : ApiModel /// /// The full name of the currently logged in user. /// - public string Fullname { get; set; } + public string FullName { get; set; } /// /// The name of the Workspace that the current user has logged onto. For most companies, the workspace /// name will be the name of the business. /// - public string Workspacename { get; set; } + public string WorkSpaceName { get; set; } /// /// The user's role within the current Workspace. /// - public string Rolename { get; set; } + public string RoleName { get; set; } /// /// True if this user is considered a global administrator of the current Workspace. /// - public bool? Isglobaladmin { get; set; } + public bool? IsGlobalAdmin { get; set; } /// /// True if this user is considered an account administrator of the current Workspace. /// - public bool? Isaccountadministrator { get; set; } + public bool? IsAccountAdministrator { get; set; } } } diff --git a/src/ProjectManagerClient.cs b/src/ProjectManagerClient.cs index b155b6c..778ae90 100644 --- a/src/ProjectManagerClient.cs +++ b/src/ProjectManagerClient.cs @@ -9,7 +9,7 @@ * @author ProjectManager.com * * @copyright 2023-2024 ProjectManager.com, Inc. - * @version 102.0.2886 + * @version 102.0.2949 * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -39,7 +39,7 @@ public class ProjectManagerClient : IProjectManagerClient /// /// The version of the SDK /// - public const string SdkVersion = "102.0.2886"; + public const string SdkVersion = "102.0.2949"; private readonly string _apiUrl; private readonly HttpClient _client;