From 2c30b9873c3595f0ed16a41c17ddfdb258c88a4a Mon Sep 17 00:00:00 2001 From: Ted Spence Date: Mon, 22 Jan 2024 18:28:18 -0800 Subject: [PATCH] Release 102 (#20) * Release 101 Added 5 new APIs: * File.Deletefile (DELETE /api/data/files/{fileId}) * Holiday.Queryresourceholidays (GET /api/data/holidays/resource) * Holiday.Querycountryholidays (GET /api/data/holidays/country) * Holiday.Queryglobalholidays (GET /api/data/holidays/global) * NptFiles.UploadFileToNonProjectTasks (POST /api/data/non-project-tasks/{taskId}/files) * Fix byte reference * Updates for R102 Differences between R101 and R102: * Deprecated old Discussion APIs; created new ones * Removed parameter "$select" which did not have any effect * Fix naming and ignore metadata API --- ProjectManagerClient.nuspec | 150 +++--------------- src/Clients/ApiKeyClient.cs | 6 +- src/Clients/ChangesetClient.cs | 4 +- src/Clients/DashboardClient.cs | 6 +- src/Clients/DiscussionClient.cs | 16 +- src/Clients/FileClient.cs | 41 ++++- src/Clients/HolidayClient.cs | 104 ++++++++++++ src/Clients/HomeFileClient.cs | 8 +- src/Clients/IntegrationCategoryClient.cs | 4 +- src/Clients/IntegrationClient.cs | 4 +- src/Clients/IntegrationProviderClient.cs | 27 +++- src/Clients/LicenseClient.cs | 4 +- src/Clients/MeClient.cs | 4 +- src/Clients/NptFilesClient.cs | 59 +++++++ src/Clients/ProjectChargeCodeClient.cs | 4 +- src/Clients/ProjectClient.cs | 8 +- src/Clients/ProjectCustomerClient.cs | 4 +- src/Clients/ProjectFieldClient.cs | 14 +- src/Clients/ProjectFileClient.cs | 8 +- src/Clients/ProjectFolderClient.cs | 4 +- src/Clients/ProjectMembersClient.cs | 4 +- src/Clients/ProjectPriorityClient.cs | 4 +- src/Clients/ProjectStatusClient.cs | 4 +- src/Clients/ProjectTemplateClient.cs | 4 +- src/Clients/ResourceClient.cs | 8 +- src/Clients/ResourceSkillClient.cs | 8 +- src/Clients/ResourceTeamClient.cs | 8 +- src/Clients/TagClient.cs | 8 +- src/Clients/TaskAssigneeClient.cs | 10 +- src/Clients/TaskClient.cs | 8 +- src/Clients/TaskFieldClient.cs | 14 +- src/Clients/TaskFileClient.cs | 6 +- src/Clients/TaskMetadataClient.cs | 67 ++++++++ src/Clients/TaskStatusClient.cs | 10 +- src/Clients/TaskTagClient.cs | 10 +- src/Clients/TeamsClient.cs | 6 +- src/Clients/TimesheetClient.cs | 16 +- src/Clients/UserRoleClient.cs | 6 +- src/Clients/WorkSpaceClient.cs | 6 +- src/Enums.cs | 4 +- src/IProjectManagerClient.cs | 18 ++- src/Interfaces/IApiKeyClient.cs | 6 +- src/Interfaces/IChangesetClient.cs | 4 +- src/Interfaces/IDashboardClient.cs | 6 +- src/Interfaces/IDiscussionClient.cs | 8 +- src/Interfaces/IFileClient.cs | 33 +++- src/Interfaces/IHolidayClient.cs | 63 ++++++++ src/Interfaces/IHomeFileClient.cs | 8 +- src/Interfaces/IIntegrationCategoryClient.cs | 4 +- src/Interfaces/IIntegrationClient.cs | 4 +- src/Interfaces/IIntegrationProviderClient.cs | 23 ++- src/Interfaces/ILicenseClient.cs | 4 +- src/Interfaces/IMeClient.cs | 4 +- src/Interfaces/INptFilesClient.cs | 44 +++++ src/Interfaces/IProjectChargeCodeClient.cs | 4 +- src/Interfaces/IProjectClient.cs | 7 +- src/Interfaces/IProjectCustomerClient.cs | 4 +- src/Interfaces/IProjectFieldClient.cs | 10 +- src/Interfaces/IProjectFileClient.cs | 8 +- src/Interfaces/IProjectFolderClient.cs | 4 +- src/Interfaces/IProjectMembersClient.cs | 4 +- src/Interfaces/IProjectPriorityClient.cs | 4 +- src/Interfaces/IProjectStatusClient.cs | 4 +- src/Interfaces/IProjectTemplateClient.cs | 4 +- src/Interfaces/IResourceClient.cs | 7 +- src/Interfaces/IResourceSkillClient.cs | 7 +- src/Interfaces/IResourceTeamClient.cs | 7 +- src/Interfaces/ITagClient.cs | 7 +- src/Interfaces/ITaskAssigneeClient.cs | 10 +- src/Interfaces/ITaskClient.cs | 7 +- src/Interfaces/ITaskFieldClient.cs | 12 +- src/Interfaces/ITaskFileClient.cs | 6 +- src/Interfaces/ITaskMetadataClient.cs | 42 +++++ src/Interfaces/ITaskStatusClient.cs | 10 +- src/Interfaces/ITaskTagClient.cs | 10 +- src/Interfaces/ITeamsClient.cs | 6 +- src/Interfaces/ITimesheetClient.cs | 15 +- src/Interfaces/IUserRoleClient.cs | 6 +- src/Interfaces/IWorkSpaceClient.cs | 6 +- src/Models/ApiKeyCreateDto.cs | 6 +- src/Models/ApiKeyDto.cs | 8 +- src/Models/AssigneeUpsertDto.cs | 8 +- src/Models/AuthenticationDto.cs | 6 +- src/Models/AuthenticationStatusDto.cs | 4 +- src/Models/ChangeSetStatusDto.cs | 6 +- src/Models/ChangesetGetResponseDto.cs | 4 +- src/Models/ConnectionSchemaDto.cs | 6 +- src/Models/CountryHolidayDto.cs | 46 ++++++ src/Models/CreateProjectFieldDto.cs | 6 +- src/Models/CreateProjectFieldResponseDto.cs | 4 +- src/Models/CreateResourceSkillDto.cs | 4 +- src/Models/CreateResourceTeamDto.cs | 4 +- src/Models/CreateTaskFieldDto.cs | 6 +- src/Models/DashboardSettingCreateDto.cs | 8 +- src/Models/DashboardSettingDto.cs | 8 +- src/Models/DirectLinkDto.cs | 4 +- ...teDto.cs => DiscussionCommentCreateDto.cs} | 6 +- ... => DiscussionCommentCreateResponseDto.cs} | 8 +- ...scussionDto.cs => DiscussionCommentDto.cs} | 33 ++-- ...ortInfo.cs => DiscussionCommentFileDto.cs} | 21 ++- src/Models/DiscussionEmoji.cs | 6 +- src/Models/FileDto.cs | 22 +-- src/Models/GetProjectFieldsResponseDto.cs | 8 +- src/Models/GlobalHolidayDto.cs | 41 +++++ src/Models/IdDto.cs | 4 +- src/Models/IntegrationAuthSetupDto.cs | 10 +- src/Models/IntegrationCategoryDto.cs | 8 +- .../IntegrationConnectionSchemeObjectDto.cs | 6 +- src/Models/IntegrationDto.cs | 12 +- src/Models/IntegrationInstanceDto.cs | 18 +-- src/Models/IntegrationProviderDto.cs | 14 +- src/Models/LicenseDto.cs | 8 +- src/Models/MasterConnectionSchemeDto.cs | 6 +- src/Models/NameDto.cs | 4 +- src/Models/ODataEntitySetInfo.cs | 34 ---- src/Models/ODataServiceDocument.cs | 34 ---- src/Models/PermissionOptionsDto.cs | 4 +- src/Models/ProjectChargeCodeDto.cs | 4 +- src/Models/ProjectCreateAccessDto.cs | 4 +- src/Models/ProjectCreateAccessMemberDto.cs | 6 +- src/Models/ProjectCreateDto.cs | 26 +-- src/Models/ProjectCustomerDto.cs | 4 +- src/Models/ProjectDto.cs | 51 +++--- ...ResponseDto.cs => ProjectFieldValueDto.cs} | 21 ++- src/Models/ProjectFileDto.cs | 50 ++++++ src/Models/ProjectFileTaskDto.cs | 42 +++++ src/Models/ProjectFolderDto.cs | 4 +- src/Models/ProjectManagerDto.cs | 6 +- src/Models/ProjectMemberDto.cs | 8 +- src/Models/ProjectMemberRoleDto.cs | 4 +- src/Models/ProjectPriorityDto.cs | 4 +- src/Models/ProjectStatusDto.cs | 6 +- src/Models/ProjectTemplateCategoryDto.cs | 4 +- src/Models/ProjectTemplateDto.cs | 10 +- src/Models/ProjectUpdateDto.cs | 22 +-- src/Models/ReactGridLayoutDto.cs | 4 +- src/Models/ReactGridLayoutItemDto.cs | 4 +- src/Models/ResourceApproverDto.cs | 4 +- src/Models/ResourceCreateDto.cs | 18 +-- src/Models/ResourceDto.cs | 14 +- src/Models/ResourceHolidayDto.cs | 46 ++++++ src/Models/ResourceSkillDto.cs | 4 +- src/Models/ResourceTeamDto.cs | 4 +- src/Models/ResourceUpdateDto.cs | 18 +-- src/Models/TagCreateDto.cs | 4 +- src/Models/TagDto.cs | 4 +- src/Models/TagUpdateDto.cs | 4 +- src/Models/TaskAssigneeDto.cs | 24 ++- src/Models/TaskCreateDto.cs | 24 +-- src/Models/TaskDto.cs | 45 +++--- src/Models/TaskFieldDto.cs | 10 +- src/Models/TaskFieldProjectDto.cs | 6 +- src/Models/TaskFieldValueDto.cs | 26 ++- src/Models/TaskFieldValueTaskDto.cs | 6 +- src/Models/TaskFileDto.cs | 44 +++++ src/Models/TaskMetadataSearchDto.cs | 44 +++++ ...Annotation.cs => TaskMetadataUpdateDto.cs} | 14 +- src/Models/TaskPriorityDto.cs | 4 +- src/Models/TaskProjectDto.cs | 6 +- src/Models/TaskStatusCreateDto.cs | 4 +- src/Models/TaskStatusDto.cs | 8 +- src/Models/TaskStatusUpdateDto.cs | 4 +- src/Models/TaskTagDto.cs | 4 +- src/Models/TaskTodoDto.cs | 8 +- src/Models/TaskUpdateDto.cs | 24 +-- src/Models/TimeSheetProjectDto.cs | 24 +-- src/Models/TimesheetAdminTypeDto.cs | 4 +- src/Models/TimesheetCreateRequestDto.cs | 10 +- src/Models/TimesheetDto.cs | 17 +- ...taSingletonInfo.cs => TimesheetFileDto.cs} | 21 ++- src/Models/TimesheetResourceDto.cs | 8 +- src/Models/TimesheetResponseDto.cs | 12 +- src/Models/TimesheetTaskDto.cs | 30 ++-- src/Models/TimesheetUpdateRequestDto.cs | 4 +- src/Models/UpdateProjectFieldValueDto.cs | 4 +- src/Models/UpdateRequestDto.cs | 8 +- src/Models/UpdateResourceSkillDto.cs | 4 +- src/Models/UpdateResourceTeamDto.cs | 4 +- src/Models/UpdateTaskFieldValueDto.cs | 4 +- src/Models/UserRoleDto.cs | 4 +- src/Models/WorkSpaceDto.cs | 22 +-- src/Models/WorkSpaceJoinDto.cs | 6 +- src/Models/WorkSpaceLinksDto.cs | 6 +- src/Models/WorkSpaceUserInfoDto.cs | 16 +- src/ProjectManagerClient.cs | 26 ++- 185 files changed, 1622 insertions(+), 896 deletions(-) create mode 100644 src/Clients/HolidayClient.cs create mode 100644 src/Clients/NptFilesClient.cs create mode 100644 src/Clients/TaskMetadataClient.cs create mode 100644 src/Interfaces/IHolidayClient.cs create mode 100644 src/Interfaces/INptFilesClient.cs create mode 100644 src/Interfaces/ITaskMetadataClient.cs create mode 100644 src/Models/CountryHolidayDto.cs rename src/Models/{DiscussionCreateDto.cs => DiscussionCommentCreateDto.cs} (89%) rename src/Models/{DiscussionCreateResponseDto.cs => DiscussionCommentCreateResponseDto.cs} (81%) rename src/Models/{DiscussionDto.cs => DiscussionCommentDto.cs} (71%) rename src/Models/{ODataFunctionImportInfo.cs => DiscussionCommentFileDto.cs} (51%) create mode 100644 src/Models/GlobalHolidayDto.cs delete mode 100644 src/Models/ODataEntitySetInfo.cs delete mode 100644 src/Models/ODataServiceDocument.cs rename src/Models/{ProjectFieldsValueResponseDto.cs => ProjectFieldValueDto.cs} (69%) create mode 100644 src/Models/ProjectFileDto.cs create mode 100644 src/Models/ProjectFileTaskDto.cs create mode 100644 src/Models/ResourceHolidayDto.cs create mode 100644 src/Models/TaskFileDto.cs create mode 100644 src/Models/TaskMetadataSearchDto.cs rename src/Models/{ODataTypeAnnotation.cs => TaskMetadataUpdateDto.cs} (55%) rename src/Models/{ODataSingletonInfo.cs => TimesheetFileDto.cs} (52%) diff --git a/ProjectManagerClient.nuspec b/ProjectManagerClient.nuspec index ad545e7..1b684f4 100644 --- a/ProjectManagerClient.nuspec +++ b/ProjectManagerClient.nuspec @@ -2,147 +2,49 @@ ProjectManager.SDK - 99.0.2548 + 102.0.2886 ProjectManager.SDK ProjectManager.com ProjectManager.com, Inc. docs/LICENSE https://github.com/projectmgr/projectmanager-sdk-csharp false - Software development kit for the ProjectManager.com API. for DotNet + for DotNet docs/logo.png docs/README.md ProjectManager API for DotNet - # Patch notes for 99.0.2548 + # Patch notes for 102.0.2886 - These patch notes summarize the changes from version 98.0.2363. + These patch notes summarize the changes from version 99.0.2550. - Added 2 new APIs: - * TaskField.QueryTaskFields (GET /api/data/projects/tasks/fields) - * TaskField.QueryTaskFieldValues (GET /api/data/tasks/fields/values) - - Renamed 2 old APIs: - * Renamed 'ProjectField.UpdateProjectField' to 'ProjectField.UpdateProjectFieldValue' - * Renamed 'ProjectMembers.RetrieveUserProjectMemberShip' to 'ProjectMembers.RetrieveUserProjectMembership' + Added 8 new APIs: + * File.DeleteFile (DELETE /api/data/files/{fileId}) + * Holiday.QueryResourceHolidays (GET /api/data/holidays/resource) + * Holiday.QueryCountryHolidays (GET /api/data/holidays/country) + * Holiday.QueryGlobalHolidays (GET /api/data/holidays/global) + * IntegrationProvider.DisconnectUserIntegrationProviderConnection (DELETE /api/data/integrations/providers/{providerId}/user-connection) + * NptFiles.UploadFileToNonProjectTasks (POST /api/data/non-project-tasks/{taskId}/files) + * TaskMetadata.AddMetadata (PUT /api/data/tasks/{taskId}/metadata) + * TaskMetadata.GetTasksByProjectIdAndForeignKeyId (GET /api/data/projects/{projectId}/tasks/metadata) Changes to existing APIs: - * ApiKey.CreateApiKey removed header parameter `x-integration-name` - * ApiKey.ListApiKeys removed header parameter `x-integration-name` - * ApiKey.RevokeAllApiKeys removed header parameter `x-integration-name` - * ApiKey.RevokeAPIKey removed header parameter `x-integration-name` - * Changeset.RetrieveChangeset removed header parameter `x-integration-name` - * Changeset.RetrieveCompletedChangeset removed header parameter `x-integration-name` - * Dashboard.RetrieveDashboardUserSettings removed header parameter `x-integration-name` - * Dashboard.CreateorUpdateUserDashboardSettings removed header parameter `x-integration-name` - * Discussion.RetrieveTaskComments removed header parameter `x-integration-name` - * Discussion.CreateTaskComments removed header parameter `x-integration-name` - * File.DownloadFile removed header parameter `x-integration-name` - * File.DownloadaThumbnailImage removed header parameter `x-integration-name` - * File.UpdateFile removed header parameter `x-integration-name` - * HomeFile.UploadHomeFile removed header parameter `x-integration-name` - * HomeFile.UploadHomeFileToFolder removed header parameter `x-integration-name` - * Integration.RetrieveIntegration removed header parameter `x-integration-name` - * Integration.EnableIntegration removed header parameter `x-integration-name` - * Integration.DisableIntegration removed header parameter `x-integration-name` - * Integration.RetrieveAllIntegrations removed header parameter `x-integration-name` - * IntegrationCategory.RetrieveProviderCategories removed header parameter `x-integration-name` - * IntegrationProvider.ListProviders removed header parameter `x-integration-name` - * IntegrationProvider.ActivateIntegrationProvider removed header parameter `x-integration-name` - * IntegrationProvider.UpdateIntegrationProvider removed header parameter `x-integration-name` - * IntegrationProvider.DeactivateIntegrationProvider removed header parameter `x-integration-name` - * IntegrationProvider.CreateUserIntegrationProviderConnection removed header parameter `x-integration-name` - * IntegrationProvider.UpdateUserIntegrationProviderConnection removed header parameter `x-integration-name` - * License.RetrieveLicenses removed header parameter `x-integration-name` - * License.AddLicense removed header parameter `x-integration-name` - * Me.RetrieveMe removed header parameter `x-integration-name` - * Project.QueryProjects removed header parameter `x-integration-name` - * Project.CreateProject removed header parameter `x-integration-name` - * Project.RetrieveProject removed header parameter `x-integration-name` - * Project.UpdateProject removed header parameter `x-integration-name` - * ProjectChargeCode.RetrieveChargeCodes removed header parameter `x-integration-name` - * ProjectCustomer.RetrieveProjectCustomers removed header parameter `x-integration-name` - * ProjectField.RetrieveProjectFields removed header parameter `x-integration-name` - * ProjectField.CreateProjectField removed header parameter `x-integration-name` - * ProjectField.DeleteProjectField added path parameter `fieldId` - * ProjectField.DeleteProjectField removed header parameter `x-integration-name` - * ProjectField.DeleteProjectField removed body parameter `body` - * ProjectField.UpdateProjectFieldValue changed [fieldId].Value.DataType from string to uuid - * ProjectField.UpdateProjectFieldValue removed header parameter `x-integration-name` - * ProjectField.RetrieveProjectFieldValue changed [fieldId].Value.DataType from string to uuid - * ProjectField.RetrieveProjectFieldValue removed header parameter `x-integration-name` - * ProjectField.RetrieveAllProjectFieldValues removed header parameter `x-integration-name` - * ProjectFile.UploadProjectFile removed header parameter `x-integration-name` - * ProjectFile.UploadProjectFileToFolder removed header parameter `x-integration-name` - * ProjectFolder.RetrieveProjectFolders removed header parameter `x-integration-name` - * ProjectMembers.RetrieveNewProjectMembers removed header parameter `x-integration-name` - * ProjectMembers.RetrieveProjectMembers removed header parameter `x-integration-name` - * ProjectMembers.RetrieveUserProjectMembership removed header parameter `x-integration-name` - * ProjectMembers.CreateUserProjectMembership removed header parameter `x-integration-name` - * ProjectMembers.UpdateUserProjectMembership removed header parameter `x-integration-name` - * ProjectMembers.RemoveUserProjectMembership removed header parameter `x-integration-name` - * ProjectPriority.RetrieveProjectPriorities removed header parameter `x-integration-name` - * ProjectStatus.RetrieveProjectStatuses removed header parameter `x-integration-name` - * ProjectTemplate.RetrieveProjectTemplates removed header parameter `x-integration-name` - * ProjectTemplate.RetrieveTemplateCategories removed header parameter `x-integration-name` - * Resource.CreateResource removed header parameter `x-integration-name` - * Resource.QueryResources removed header parameter `x-integration-name` - * Resource.UpdateResource removed header parameter `x-integration-name` - * Resource.RetrieveResource removed header parameter `x-integration-name` - * ResourceSkill.RetrieveResourceSkills removed header parameter `x-integration-name` - * ResourceSkill.CreateResourceSkill removed header parameter `x-integration-name` - * ResourceSkill.UpdateResourceSkill removed header parameter `x-integration-name` - * ResourceSkill.DeleteResourceSkill removed header parameter `x-integration-name` - * ResourceTeam.RetrieveResourceTeams removed header parameter `x-integration-name` - * ResourceTeam.CreateResourceTeam removed header parameter `x-integration-name` - * ResourceTeam.DeleteResourceTeam removed header parameter `x-integration-name` - * ResourceTeam.UpdateResourceTeam removed header parameter `x-integration-name` - * Tag.QueryTags removed header parameter `x-integration-name` - * Tag.CreateTag removed header parameter `x-integration-name` - * Tag.UpdateTag removed header parameter `x-integration-name` - * Task.QueryTasks removed header parameter `x-integration-name` - * Task.RetrieveTask removed header parameter `x-integration-name` - * Task.UpdateTask removed header parameter `x-integration-name` - * Task.DeleteTask removed header parameter `x-integration-name` - * Task.CreateTask removed header parameter `x-integration-name` - * Task.RetrieveTaskPriorities removed header parameter `x-integration-name` - * Task.CreateManyTasks removed header parameter `x-integration-name` - * Task.AddParentTask removed header parameter `x-integration-name` - * Task.UpdateParentTask removed header parameter `x-integration-name` - * Task.RemoveParentTask removed header parameter `x-integration-name` - * TaskAssignee.ReplaceTaskAssignees removed header parameter `x-integration-name` - * TaskAssignee.CreateOrUpdateTaskAssignee removed header parameter `x-integration-name` - * TaskAssignee.DeleteTaskAssignees removed header parameter `x-integration-name` - * TaskField.RetrieveTaskFields removed header parameter `x-integration-name` - * TaskField.CreateTaskField changed [body].Value.DataType from CreateTaskFieldDto to CreateTaskFieldRequestDto - * TaskField.CreateTaskField changed [body].Value.DataTypeRef from /docs/createtaskfielddto to /docs/createtaskfieldrequestdto - * TaskField.CreateTaskField removed header parameter `x-integration-name` - * TaskField.DeleteTaskField removed header parameter `x-integration-name` - * TaskField.RetrieveAllTaskFieldValues removed header parameter `x-integration-name` - * TaskField.RetrieveTaskFieldValue removed header parameter `x-integration-name` - * TaskField.UpdateTaskFieldValue removed header parameter `x-integration-name` - * TaskFile.UploadTaskFile removed header parameter `x-integration-name` - * TaskStatus.RetrieveTaskStatuses removed header parameter `x-integration-name` - * TaskStatus.CreateTaskStatus removed header parameter `x-integration-name` - * TaskStatus.UpdateTaskStatus removed header parameter `x-integration-name` - * TaskStatus.DeleteTaskStatus removed header parameter `x-integration-name` - * TaskTag.ReplaceTaskTags removed header parameter `x-integration-name` - * TaskTag.AddTaskTagtoTask removed header parameter `x-integration-name` - * TaskTag.RemoveTaskTagfromTask removed header parameter `x-integration-name` - * Teams.RetrievezipfileforTeamsIntegrations removed header parameter `x-integration-name` - * Timesheet.Createtimeentry removed header parameter `x-integration-name` - * Timesheet.QueryTimeSheets removed header parameter `x-integration-name` - * Timesheet.Deletetimeentry removed header parameter `x-integration-name` - * Timesheet.Updatetimeentry removed header parameter `x-integration-name` - * Timesheet.Returnsactiveadmintasksthatareusedtoreporttime removed header parameter `x-integration-name` - * UserRole.RetrieveUserRoles removed header parameter `x-integration-name` - * WorkSpace.RetrieveWorkspaces removed header parameter `x-integration-name` - * WorkSpace.InvitetoWorkspace removed header parameter `x-integration-name` + * Discussion.CreateTaskComments changed [body].Value.DataType from DiscussionCommentCreateDto to DiscussionCreateDto + * Discussion.CreateTaskComments changed [body].Value.DataTypeRef from /docs/discussioncommentcreatedto to /docs/discussioncreatedto + * Project.QueryProjects removed query parameter `$select` + * Resource.QueryResources removed query parameter `$select` + * ResourceSkill.RetrieveResourceSkills removed query parameter `$select` + * ResourceTeam.RetrieveResourceTeams removed query parameter `$select` + * Tag.QueryTags removed query parameter `$select` + * Task.QueryTasks removed query parameter `$select` + * TaskField.QueryTaskFields removed query parameter `$select` + * TaskField.QueryTaskFieldValues removed query parameter `$select` + * Timesheet.QueryTimesheets removed query parameter `$select` - Copyright 2023 - 2023 - projectmanager project management task tracking projects tasks + Copyright 2023 - 2024 + diff --git a/src/Clients/ApiKeyClient.cs b/src/Clients/ApiKeyClient.cs index 9820740..e6f88fb 100644 --- a/src/Clients/ApiKeyClient.cs +++ b/src/Clients/ApiKeyClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -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 82519f5..3a0df9b 100644 --- a/src/Clients/ChangesetClient.cs +++ b/src/Clients/ChangesetClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ diff --git a/src/Clients/DashboardClient.cs b/src/Clients/DashboardClient.cs index 42adc3e..19e8526 100644 --- a/src/Clients/DashboardClient.cs +++ b/src/Clients/DashboardClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -54,7 +54,7 @@ public async Task> RetrieveDashboardUserSetting /// /// /// User dashboard settings object - public async Task> CreateorUpdateUserDashboardSettings(DashboardSettingCreateDto body) + public async Task> CreateOrUpdateUserDashboardSettings(DashboardSettingCreateDto body) { var url = $"/api/data/dashboards/settings"; return await _client.Request(HttpMethod.Post, url, null, body, null); diff --git a/src/Clients/DiscussionClient.cs b/src/Clients/DiscussionClient.cs index 4eb093d..e7dac50 100644 --- a/src/Clients/DiscussionClient.cs +++ b/src/Clients/DiscussionClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -43,10 +43,10 @@ public DiscussionClient(ProjectManagerClient client) /// /// /// The unique ID number of the task to retrieve comments - public async Task> RetrieveTaskComments(Guid taskId) + public async Task> RetrieveTaskComments(Guid taskId) { - var url = $"/api/data/tasks/{taskId}/discussions"; - return await _client.Request(HttpMethod.Get, url, null, null, null); + var url = $"/api/data/tasks/{taskId}/comments"; + return await _client.Request(HttpMethod.Get, url, null, null, null); } /// @@ -57,10 +57,10 @@ public async Task> RetrieveTaskComments(Guid taskId /// /// The unique ID number of the task being commented upon /// The Markdown-formatted text of the comment - public async Task> CreateTaskComments(Guid taskId, DiscussionCreateDto body) + public async Task> CreateTaskComments(Guid taskId, DiscussionCommentCreateDto body) { - var url = $"/api/data/tasks/{taskId}/discussions"; - return await _client.Request(HttpMethod.Post, url, null, body, null); + var url = $"/api/data/tasks/{taskId}/comments"; + return await _client.Request(HttpMethod.Post, url, null, body, null); } } } diff --git a/src/Clients/FileClient.cs b/src/Clients/FileClient.cs index 761f9bb..57c1467 100644 --- a/src/Clients/FileClient.cs +++ b/src/Clients/FileClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -41,19 +41,25 @@ public FileClient(ProjectManagerClient client) /// /// Downloads the contents of a file that was previously uploaded to ProjectManager.com. /// - /// ProjectManager allows you to store Files connected to other elements of your Workspace such as a Project, a Task, or Home. Files are maintained separately based on the location where the file was stored. + /// ProjectManager allows you to store Files connected to other elements of your Workspace + /// such as a Project, a Task, or Home. Files are maintained separately based on the location + /// where the file was stored. /// - /// When you upload a File, please allow a few moments for the File to be processed and verified. ProjectManager may reject File uploads that contain problems such as malware. Once a File has completed the upload the process, you may retrieve it using the DownloadFile API. + /// When you upload a File, please allow a few moments for the File to be processed and verified. + /// ProjectManager may reject File uploads that contain problems such as malware. Once a File has + /// completed the upload the process, you may retrieve it using the DownloadFile API. /// + /// If successful, this API returns the file contents as an octet-stream (raw bytes). If an error + /// occurs, you will receive a JSON result with error information. /// /// The unique identifier of the document to download /// If you specify a type of `html`, processes the file using text encoding, otherwise binary - public async Task> DownloadFile(Guid documentId, string type = null) + public async Task> DownloadFile(Guid documentId, string type = null) { var url = $"/api/data/files/{documentId}/download"; var options = new Dictionary(); if (type != null) { options["type"] = type; } - return await _client.Request(HttpMethod.Get, url, options, null, null); + return await _client.Request(HttpMethod.Get, url, options, null, null); } /// @@ -65,9 +71,12 @@ public async Task> DownloadFile(Guid documentId, string type /// When uploading a file, please allow some time for the file to undergo processing and verification. /// ProjectManager may reject file uploads containing issues such as malware. Once a file has /// completed the upload process, you can retrieve its associated thumbnail using the DownloadThumbnail API. + /// + /// If successful, this API returns the file contents as an octet-stream (raw bytes). If an error + /// occurs, you will receive a JSON result with error information. /// /// The unique identifier of the document for which to download the thumbnail. - public async Task> DownloadaThumbnailImage(Guid documentId) + public async Task> DownloadAThumbnailImage(Guid documentId) { var url = $"/api/data/files/{documentId}/thumbnail"; return await _client.Request(HttpMethod.Get, url, null, null, null); @@ -80,6 +89,8 @@ public async Task> DownloadaThumbnailImage(Guid documentId) /// /// When you upload a File, please allow a few moments for the File to be processed and verified. ProjectManager may reject File uploads that contain problems such as malware. Once a File has completed the upload the process, you may retrieve it using the DownloadFile API. /// + /// This API returns a JSON response indicating success or failure. + /// /// /// The unique identifier of the File to update /// Information to change about the File and its location @@ -88,5 +99,21 @@ public async Task> UpdateFile(Guid fileId, UpdateRequestDto var url = $"/api/data/files/{fileId}"; return await _client.Request(HttpMethod.Put, url, null, body, null); } + + /// + /// In case of soft delete moves file to trash folder. For hard delete completely deletes file's metadata from pm database as well as from amazon storage + /// + /// This API returns a JSON response indicating success or failure. + /// + /// + /// The unique identifier of the File to delete + /// Param indicates that file should be hard deleted + public async Task> DeleteFile(Guid fileId, bool? hard = null) + { + var url = $"/api/data/files/{fileId}"; + var options = new Dictionary(); + if (hard != null) { options["hard"] = hard; } + return await _client.Request(HttpMethod.Delete, url, options, null, null); + } } } diff --git a/src/Clients/HolidayClient.cs b/src/Clients/HolidayClient.cs new file mode 100644 index 0000000..b414927 --- /dev/null +++ b/src/Clients/HolidayClient.cs @@ -0,0 +1,104 @@ +/*** + * 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 + */ + + + +using System; +using System.Collections.Generic; +using System.Net.Http; +using System.Threading.Tasks; +using ProjectManager.SDK.Interfaces; +using ProjectManager.SDK.Models; + + +namespace ProjectManager.SDK.Clients +{ + /// + /// API methods related to Holiday + /// + public class HolidayClient : IHolidayClient + { + private readonly ProjectManagerClient _client; + + /// + /// Constructor + /// + public HolidayClient(ProjectManagerClient client) + { + _client = client; + } + + /// + /// Retrieve a list of resource holidays that match an [OData formatted query](https://www.odata.org/). + /// + /// + /// The number of records to return + /// Skips the given number of records and then returns $top records + /// Filter the expression according to oData queries + /// Order collection by this field. + /// Include related data in the response + public async Task> QueryResourceHolidays(int? top = null, int? skip = null, string filter = null, string orderby = null, string expand = null) + { + var url = $"/api/data/holidays/resource"; + var options = new Dictionary(); + if (top != null) { options["$top"] = top; } + if (skip != null) { options["$skip"] = skip; } + if (filter != null) { options["$filter"] = filter; } + if (orderby != null) { options["$orderby"] = orderby; } + if (expand != null) { options["$expand"] = expand; } + return await _client.Request(HttpMethod.Get, url, options, null, null); + } + + /// + /// Retrieve a list of country holidays that match an [OData formatted query](https://www.odata.org/). + /// + /// + /// The number of records to return + /// Skips the given number of records and then returns $top records + /// Filter the expression according to oData queries + /// Order collection by this field. + /// Include related data in the response + public async Task> QueryCountryHolidays(int? top = null, int? skip = null, string filter = null, string orderby = null, string expand = null) + { + var url = $"/api/data/holidays/country"; + var options = new Dictionary(); + if (top != null) { options["$top"] = top; } + if (skip != null) { options["$skip"] = skip; } + if (filter != null) { options["$filter"] = filter; } + if (orderby != null) { options["$orderby"] = orderby; } + if (expand != null) { options["$expand"] = expand; } + return await _client.Request(HttpMethod.Get, url, options, null, null); + } + + /// + /// Retrieve a list of global holidays that match an [OData formatted query](https://www.odata.org/). + /// + /// + /// The number of records to return + /// Skips the given number of records and then returns $top records + /// Filter the expression according to oData queries + /// Order collection by this field. + /// Include related data in the response + public async Task> QueryGlobalHolidays(int? top = null, int? skip = null, string filter = null, string orderby = null, string expand = null) + { + var url = $"/api/data/holidays/global"; + var options = new Dictionary(); + if (top != null) { options["$top"] = top; } + if (skip != null) { options["$skip"] = skip; } + if (filter != null) { options["$filter"] = filter; } + if (orderby != null) { options["$orderby"] = orderby; } + if (expand != null) { options["$expand"] = expand; } + return await _client.Request(HttpMethod.Get, url, options, null, null); + } + } +} diff --git a/src/Clients/HomeFileClient.cs b/src/Clients/HomeFileClient.cs index 5987599..9a7bf8f 100644 --- a/src/Clients/HomeFileClient.cs +++ b/src/Clients/HomeFileClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -45,6 +45,8 @@ public HomeFileClient(ProjectManagerClient client) /// /// When you upload a File, please allow a few moments for the File to be processed and verified. ProjectManager may reject File uploads that contain problems such as malware. Once a File has completed the upload the process, you may retrieve it using the DownloadFile API. /// + /// This API returns a JSON response indicating success or failure. + /// /// /// The full path of a file to upload to the API public async Task> UploadHomeFile(string filename) @@ -62,6 +64,8 @@ public async Task> UploadHomeFile(string filename) /// /// When you upload a File, please allow a few moments for the File to be processed and verified. ProjectManager may reject File uploads that contain problems such as malware. Once a File has completed the upload the process, you may retrieve it using the DownloadFile API. /// + /// This API returns a JSON response indicating success or failure. + /// /// /// The reference to the sub folder to put the file into /// The full path of a file to upload to the API diff --git a/src/Clients/IntegrationCategoryClient.cs b/src/Clients/IntegrationCategoryClient.cs index bfeb298..79f673e 100644 --- a/src/Clients/IntegrationCategoryClient.cs +++ b/src/Clients/IntegrationCategoryClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ diff --git a/src/Clients/IntegrationClient.cs b/src/Clients/IntegrationClient.cs index 815b35c..d1879c8 100644 --- a/src/Clients/IntegrationClient.cs +++ b/src/Clients/IntegrationClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ diff --git a/src/Clients/IntegrationProviderClient.cs b/src/Clients/IntegrationProviderClient.cs index fa6ffc0..63c111f 100644 --- a/src/Clients/IntegrationProviderClient.cs +++ b/src/Clients/IntegrationProviderClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -66,6 +66,8 @@ public async Task> ActivateIntegrationProvider( /// /// Allows you to update the auth status of the provider specific connection. /// + /// An IntegrationProvider is the name of an external application or service that can be connected to ProjectManager.com. The Integrations API is intended for use by ProjectManager and its business development partners. Please contact ProjectManager's sales team to request use of this API. + /// /// /// The identifier to the provider /// Specify the auth status @@ -76,7 +78,9 @@ public async Task> UpdateIntegrationProvider(Guid providerId } /// - /// Allows you to deactivate an integration provider + /// Allows you to deactivate an integration provider. + /// + /// An IntegrationProvider is the name of an external application or service that can be connected to ProjectManager.com. The Integrations API is intended for use by ProjectManager and its business development partners. Please contact ProjectManager's sales team to request use of this API. /// /// /// The identifier to the provider @@ -91,6 +95,8 @@ public async Task> DeactivateIntegrationProvider(Guid provid /// /// This connection can be used for requests to Providers that require specific user data. /// + /// An IntegrationProvider is the name of an external application or service that can be connected to ProjectManager.com. The Integrations API is intended for use by ProjectManager and its business development partners. Please contact ProjectManager's sales team to request use of this API. + /// /// /// The unique identifier of the IntegrationProvider for which you are requesting authentication information public async Task> CreateUserIntegrationProviderConnection(Guid providerId) @@ -102,6 +108,8 @@ public async Task> CreateUserIntegrationProviderConne /// /// Allows you to update the auth status of the provider specific user connection. /// + /// An IntegrationProvider is the name of an external application or service that can be connected to ProjectManager.com. The Integrations API is intended for use by ProjectManager and its business development partners. Please contact ProjectManager's sales team to request use of this API. + /// /// /// The identifier to the provider /// Specify the auth status @@ -110,5 +118,18 @@ public async Task> UpdateUserIntegrationProviderConnection(G var url = $"/api/data/integrations/providers/{providerId}/user-connection"; return await _client.Request(HttpMethod.Put, url, null, body, null); } + + /// + /// Allows you to disconnect the provider specific user connection. + /// + /// An IntegrationProvider is the name of an external application or service that can be connected to ProjectManager.com. The Integrations API is intended for use by ProjectManager and its business development partners. Please contact ProjectManager's sales team to request use of this API. + /// + /// + /// The identifier to the provider + public async Task> DisconnectUserIntegrationProviderConnection(Guid providerId) + { + var url = $"/api/data/integrations/providers/{providerId}/user-connection"; + return await _client.Request(HttpMethod.Delete, url, null, null, null); + } } } diff --git a/src/Clients/LicenseClient.cs b/src/Clients/LicenseClient.cs index 7d77421..4a55bba 100644 --- a/src/Clients/LicenseClient.cs +++ b/src/Clients/LicenseClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ diff --git a/src/Clients/MeClient.cs b/src/Clients/MeClient.cs index 35733c1..3fd7c81 100644 --- a/src/Clients/MeClient.cs +++ b/src/Clients/MeClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ diff --git a/src/Clients/NptFilesClient.cs b/src/Clients/NptFilesClient.cs new file mode 100644 index 0000000..71c159d --- /dev/null +++ b/src/Clients/NptFilesClient.cs @@ -0,0 +1,59 @@ +/*** + * ProjectManager API for C# + * + * (c) 2023-2024 ProjectManager.com, Inc. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * + * @author ProjectManager.com + * @copyright 2023-2024 ProjectManager.com, Inc. + * @link https://github.com/projectmgr/projectmanager-sdk-csharp + */ + + + +using System; +using System.Collections.Generic; +using System.Net.Http; +using System.Threading.Tasks; +using ProjectManager.SDK.Interfaces; +using ProjectManager.SDK.Models; + + +namespace ProjectManager.SDK.Clients +{ + /// + /// API methods related to NptFiles + /// + public class NptFilesClient : INptFilesClient + { + private readonly ProjectManagerClient _client; + + /// + /// Constructor + /// + public NptFilesClient(ProjectManagerClient client) + { + _client = client; + } + + /// + /// Uploads a file to a non-project task. + /// + /// ProjectManager allows you to store Files connected to other elements of your Workspace such as a Project, a Task, or Home. Files are maintained separately based on the location where the file was stored. + /// + /// When you upload a File, please allow a few moments for the File to be processed and verified. ProjectManager may reject File uploads that contain problems such as malware. Once a File has completed the upload the process, you may retrieve it using the DownloadFile API. + /// + /// This API returns a JSON response indicating success or failure. + /// + /// + /// The reference to the task + /// The full path of a file to upload to the API + public async Task> UploadFileToNonProjectTasks(Guid taskId, string filename) + { + var url = $"/api/data/non-project-tasks/{taskId}/files"; + return await _client.Request(HttpMethod.Post, url, null, null, filename); + } + } +} diff --git a/src/Clients/ProjectChargeCodeClient.cs b/src/Clients/ProjectChargeCodeClient.cs index d643f96..2489255 100644 --- a/src/Clients/ProjectChargeCodeClient.cs +++ b/src/Clients/ProjectChargeCodeClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ diff --git a/src/Clients/ProjectClient.cs b/src/Clients/ProjectClient.cs index 4e59c7b..4669497 100644 --- a/src/Clients/ProjectClient.cs +++ b/src/Clients/ProjectClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -47,17 +47,15 @@ public ProjectClient(ProjectManagerClient client) /// The number of records to return /// Skips the given number of records and then returns $top records /// Filter the expression according to oData queries - /// Specify which properties should be returned /// Order collection by this field. /// Include related data in the response - public async Task> QueryProjects(int? top = null, int? skip = null, string filter = null, string select = null, string orderby = null, string expand = null) + public async Task> QueryProjects(int? top = null, int? skip = null, string filter = null, string orderby = null, string expand = null) { var url = $"/api/data/projects"; var options = new Dictionary(); if (top != null) { options["$top"] = top; } if (skip != null) { options["$skip"] = skip; } if (filter != null) { options["$filter"] = filter; } - if (select != null) { options["$select"] = select; } if (orderby != null) { options["$orderby"] = orderby; } if (expand != null) { options["$expand"] = expand; } return await _client.Request(HttpMethod.Get, url, options, null, null); diff --git a/src/Clients/ProjectCustomerClient.cs b/src/Clients/ProjectCustomerClient.cs index 060812d..29abb58 100644 --- a/src/Clients/ProjectCustomerClient.cs +++ b/src/Clients/ProjectCustomerClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ diff --git a/src/Clients/ProjectFieldClient.cs b/src/Clients/ProjectFieldClient.cs index 85784db..23ee650 100644 --- a/src/Clients/ProjectFieldClient.cs +++ b/src/Clients/ProjectFieldClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -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,10 +99,10 @@ 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); + return await _client.Request(HttpMethod.Get, url, null, null, null); } /// @@ -112,10 +112,10 @@ public async Task> RetrieveProjectFie /// /// /// 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); + return await _client.Request(HttpMethod.Get, url, null, null, null); } } } diff --git a/src/Clients/ProjectFileClient.cs b/src/Clients/ProjectFileClient.cs index 2965871..9a1c7c6 100644 --- a/src/Clients/ProjectFileClient.cs +++ b/src/Clients/ProjectFileClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -45,6 +45,8 @@ public ProjectFileClient(ProjectManagerClient client) /// /// When you upload a File, please allow a few moments for the File to be processed and verified. ProjectManager may reject File uploads that contain problems such as malware. Once a File has completed the upload the process, you may retrieve it using the DownloadFile API. /// + /// This API returns a JSON response indicating success or failure. + /// /// /// The reference to the project /// The full path of a file to upload to the API @@ -63,6 +65,8 @@ public async Task> UploadProjectFile(Guid projectId, string /// /// When you upload a File, please allow a few moments for the File to be processed and verified. ProjectManager may reject File uploads that contain problems such as malware. Once a File has completed the upload the process, you may retrieve it using the DownloadFile API. /// + /// This API returns a JSON response indicating success or failure. + /// /// /// The reference to the project /// The reference to the sub folder to put the file into diff --git a/src/Clients/ProjectFolderClient.cs b/src/Clients/ProjectFolderClient.cs index 719c81a..875b90b 100644 --- a/src/Clients/ProjectFolderClient.cs +++ b/src/Clients/ProjectFolderClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ diff --git a/src/Clients/ProjectMembersClient.cs b/src/Clients/ProjectMembersClient.cs index 0325a88..fd42fcb 100644 --- a/src/Clients/ProjectMembersClient.cs +++ b/src/Clients/ProjectMembersClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ diff --git a/src/Clients/ProjectPriorityClient.cs b/src/Clients/ProjectPriorityClient.cs index f934315..ce79cd4 100644 --- a/src/Clients/ProjectPriorityClient.cs +++ b/src/Clients/ProjectPriorityClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ diff --git a/src/Clients/ProjectStatusClient.cs b/src/Clients/ProjectStatusClient.cs index ef1bfca..f0b82ba 100644 --- a/src/Clients/ProjectStatusClient.cs +++ b/src/Clients/ProjectStatusClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ diff --git a/src/Clients/ProjectTemplateClient.cs b/src/Clients/ProjectTemplateClient.cs index da9976e..15ace0b 100644 --- a/src/Clients/ProjectTemplateClient.cs +++ b/src/Clients/ProjectTemplateClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ diff --git a/src/Clients/ResourceClient.cs b/src/Clients/ResourceClient.cs index 659bf22..0201c45 100644 --- a/src/Clients/ResourceClient.cs +++ b/src/Clients/ResourceClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -60,17 +60,15 @@ public async Task> CreateResource(ResourceCreateDto bod /// The number of records to return /// Skips the given number of records and then returns $top records /// Filter the expression according to oData queries - /// Specify which properties should be returned /// Order collection by this field. /// Include related data in the response - public async Task> QueryResources(int? top = null, int? skip = null, string filter = null, string select = null, string orderby = null, string expand = null) + public async Task> QueryResources(int? top = null, int? skip = null, string filter = null, string orderby = null, string expand = null) { var url = $"/api/data/resources"; var options = new Dictionary(); if (top != null) { options["$top"] = top; } if (skip != null) { options["$skip"] = skip; } if (filter != null) { options["$filter"] = filter; } - if (select != null) { options["$select"] = select; } if (orderby != null) { options["$orderby"] = orderby; } if (expand != null) { options["$expand"] = expand; } return await _client.Request(HttpMethod.Get, url, options, null, null); diff --git a/src/Clients/ResourceSkillClient.cs b/src/Clients/ResourceSkillClient.cs index 7f9f32c..e820ed2 100644 --- a/src/Clients/ResourceSkillClient.cs +++ b/src/Clients/ResourceSkillClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -47,17 +47,15 @@ public ResourceSkillClient(ProjectManagerClient client) /// The number of records to return /// Skips the given number of records and then returns $top records /// Filter the expression according to oData queries - /// Specify which properties should be returned /// Order collection by this field. /// Include related data in the response - public async Task> RetrieveResourceSkills(int? top = null, int? skip = null, string filter = null, string select = null, string orderby = null, string expand = null) + public async Task> RetrieveResourceSkills(int? top = null, int? skip = null, string filter = null, string orderby = null, string expand = null) { var url = $"/api/data/resources/skills"; var options = new Dictionary(); if (top != null) { options["$top"] = top; } if (skip != null) { options["$skip"] = skip; } if (filter != null) { options["$filter"] = filter; } - if (select != null) { options["$select"] = select; } if (orderby != null) { options["$orderby"] = orderby; } if (expand != null) { options["$expand"] = expand; } return await _client.Request(HttpMethod.Get, url, options, null, null); diff --git a/src/Clients/ResourceTeamClient.cs b/src/Clients/ResourceTeamClient.cs index daf0be1..32549a5 100644 --- a/src/Clients/ResourceTeamClient.cs +++ b/src/Clients/ResourceTeamClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -47,17 +47,15 @@ public ResourceTeamClient(ProjectManagerClient client) /// The number of records to return /// Skips the given number of records and then returns $top records /// Filter the expression according to oData queries - /// Specify which properties should be returned /// Order collection by this field. /// Include related data in the response - public async Task> RetrieveResourceTeams(int? top = null, int? skip = null, string filter = null, string select = null, string orderby = null, string expand = null) + public async Task> RetrieveResourceTeams(int? top = null, int? skip = null, string filter = null, string orderby = null, string expand = null) { var url = $"/api/data/resources/teams"; var options = new Dictionary(); if (top != null) { options["$top"] = top; } if (skip != null) { options["$skip"] = skip; } if (filter != null) { options["$filter"] = filter; } - if (select != null) { options["$select"] = select; } if (orderby != null) { options["$orderby"] = orderby; } if (expand != null) { options["$expand"] = expand; } return await _client.Request(HttpMethod.Get, url, options, null, null); diff --git a/src/Clients/TagClient.cs b/src/Clients/TagClient.cs index 11d0620..72ed87e 100644 --- a/src/Clients/TagClient.cs +++ b/src/Clients/TagClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -47,17 +47,15 @@ public TagClient(ProjectManagerClient client) /// The number of records to return /// Skips the given number of records and then returns $top records /// Filter the expression according to oData queries - /// Specify which properties should be returned /// Order collection by this field. /// Include related data in the response - public async Task> QueryTags(int? top = null, int? skip = null, string filter = null, string select = null, string orderby = null, string expand = null) + public async Task> QueryTags(int? top = null, int? skip = null, string filter = null, string orderby = null, string expand = null) { var url = $"/api/data/tags"; var options = new Dictionary(); if (top != null) { options["$top"] = top; } if (skip != null) { options["$skip"] = skip; } if (filter != null) { options["$filter"] = filter; } - if (select != null) { options["$select"] = select; } if (orderby != null) { options["$orderby"] = orderby; } if (expand != null) { options["$expand"] = expand; } return await _client.Request(HttpMethod.Get, url, options, null, null); diff --git a/src/Clients/TaskAssigneeClient.cs b/src/Clients/TaskAssigneeClient.cs index 6ab5395..178e1ab 100644 --- a/src/Clients/TaskAssigneeClient.cs +++ b/src/Clients/TaskAssigneeClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -41,7 +41,9 @@ public TaskAssigneeClient(ProjectManagerClient client) /// /// Replace all TaskAssignees on a Task with new TaskAssignees. /// - /// A TaskAssignee is an assignment of a Resource to a Task. You can assign multiple Resources to a Task and designate what proportion of their time will be allocated to this Task. + /// A TaskAssignee is an assignment of a Resource to a Task. You can assign multiple Resources to a Task and designate how much of their time will be allocated to this Task. + /// + /// In the request body, id is the id of the Resource you would like to assign to the Task, and assignedEffort is the amount of time that Resource is expected to spend on the task. assignedEffort should be entered in minutes. /// /// /// The unique identifier of the Task whose TaskAssignees will be replaced @@ -60,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/TaskClient.cs b/src/Clients/TaskClient.cs index e790251..97070f8 100644 --- a/src/Clients/TaskClient.cs +++ b/src/Clients/TaskClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -47,17 +47,15 @@ public TaskClient(ProjectManagerClient client) /// The number of records to return /// Skips the given number of records and then returns $top records /// Filter the expression according to oData queries - /// Specify which properties should be returned /// Order collection by this field. /// Include related data in the response - public async Task> QueryTasks(int? top = null, int? skip = null, string filter = null, string select = null, string orderby = null, string expand = null) + public async Task> QueryTasks(int? top = null, int? skip = null, string filter = null, string orderby = null, string expand = null) { var url = $"/api/data/tasks"; var options = new Dictionary(); if (top != null) { options["$top"] = top; } if (skip != null) { options["$skip"] = skip; } if (filter != null) { options["$filter"] = filter; } - if (select != null) { options["$select"] = select; } if (orderby != null) { options["$orderby"] = orderby; } if (expand != null) { options["$expand"] = expand; } return await _client.Request(HttpMethod.Get, url, options, null, null); diff --git a/src/Clients/TaskFieldClient.cs b/src/Clients/TaskFieldClient.cs index e0d358c..24f8aca 100644 --- a/src/Clients/TaskFieldClient.cs +++ b/src/Clients/TaskFieldClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -74,17 +74,15 @@ public async Task> CreateTaskField(Guid projectI /// The number of records to return /// Skips the given number of records and then returns $top records /// Filter the expression according to oData queries - /// Specify which properties should be returned /// Order collection by this field. /// Include related data in the response - public async Task> QueryTaskFields(int? top = null, int? skip = null, string filter = null, string select = null, string orderby = null, string expand = null) + public async Task> QueryTaskFields(int? top = null, int? skip = null, string filter = null, string orderby = null, string expand = null) { var url = $"/api/data/projects/tasks/fields"; var options = new Dictionary(); if (top != null) { options["$top"] = top; } if (skip != null) { options["$skip"] = skip; } if (filter != null) { options["$filter"] = filter; } - if (select != null) { options["$select"] = select; } if (orderby != null) { options["$orderby"] = orderby; } if (expand != null) { options["$expand"] = expand; } return await _client.Request(HttpMethod.Get, url, options, null, null); @@ -111,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); @@ -126,17 +124,15 @@ public async Task> RetrieveAllTaskFieldValues(G /// The number of records to return /// Skips the given number of records and then returns $top records /// Filter the expression according to oData queries - /// Specify which properties should be returned /// Order collection by this field. /// Include related data in the response - public async Task> QueryTaskFieldValues(int? top = null, int? skip = null, string filter = null, string select = null, string orderby = null, string expand = null) + public async Task> QueryTaskFieldValues(int? top = null, int? skip = null, string filter = null, string orderby = null, string expand = null) { var url = $"/api/data/tasks/fields/values"; var options = new Dictionary(); if (top != null) { options["$top"] = top; } if (skip != null) { options["$skip"] = skip; } if (filter != null) { options["$filter"] = filter; } - if (select != null) { options["$select"] = select; } if (orderby != null) { options["$orderby"] = orderby; } if (expand != null) { options["$expand"] = expand; } return await _client.Request(HttpMethod.Get, url, options, null, null); diff --git a/src/Clients/TaskFileClient.cs b/src/Clients/TaskFileClient.cs index a260374..7a4535e 100644 --- a/src/Clients/TaskFileClient.cs +++ b/src/Clients/TaskFileClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -45,6 +45,8 @@ public TaskFileClient(ProjectManagerClient client) /// /// When you upload a File, please allow a few moments for the File to be processed and verified. ProjectManager may reject File uploads that contain problems such as malware. Once a File has completed the upload the process, you may retrieve it using the DownloadFile API. /// + /// This API returns a JSON response indicating success or failure. + /// /// /// The reference to the task /// The full path of a file to upload to the API diff --git a/src/Clients/TaskMetadataClient.cs b/src/Clients/TaskMetadataClient.cs new file mode 100644 index 0000000..da20485 --- /dev/null +++ b/src/Clients/TaskMetadataClient.cs @@ -0,0 +1,67 @@ +/*** + * 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 + */ + + + +using System; +using System.Collections.Generic; +using System.Net.Http; +using System.Threading.Tasks; +using ProjectManager.SDK.Interfaces; +using ProjectManager.SDK.Models; + + +namespace ProjectManager.SDK.Clients +{ + /// + /// API methods related to TaskMetadata + /// + public class TaskMetadataClient : ITaskMetadataClient + { + private readonly ProjectManagerClient _client; + + /// + /// Constructor + /// + public TaskMetadataClient(ProjectManagerClient client) + { + _client = client; + } + + /// + /// Adds a metadata to a task + /// + /// + /// Task ID + /// If metadata is for system or customer, isSystem = true is only of ProjectManager + /// If false we merge with the keys + /// The metadata + public async Task> AddMetadata(Guid taskId, TaskMetadataUpdateDto body, bool? isSystem = null, bool? isOverride = null) + { + var url = $"/api/data/tasks/{taskId}/metadata"; + var options = new Dictionary(); + if (isSystem != null) { options["isSystem"] = isSystem; } + if (isOverride != null) { options["isOverride"] = isOverride; } + return await _client.Request(HttpMethod.Put, url, options, body, 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(); + if (foreignKey != null) { options["foreignKey"] = foreignKey; } + if (isSystem != null) { options["isSystem"] = isSystem; } + return await _client.Request(HttpMethod.Get, url, options, null, null); + } + } +} diff --git a/src/Clients/TaskStatusClient.cs b/src/Clients/TaskStatusClient.cs index 4dc6f6e..6b8ab90 100644 --- a/src/Clients/TaskStatusClient.cs +++ b/src/Clients/TaskStatusClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -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 8573384..a766c61 100644 --- a/src/Clients/TaskTagClient.cs +++ b/src/Clients/TaskTagClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -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/TeamsClient.cs b/src/Clients/TeamsClient.cs index 6f3186a..598c1bb 100644 --- a/src/Clients/TeamsClient.cs +++ b/src/Clients/TeamsClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -44,7 +44,7 @@ public TeamsClient(ProjectManagerClient client) /// The Teams API is intended for use by ProjectManager and its business development partners. Please /// contact ProjectManager's sales team to request use of this API. /// - public async Task> RetrievezipfileforTeamsIntegrations() + public async Task> RetrieveZipFileForTeamsIntegrations() { var url = $"/api/data/integrations/teams/application"; return await _client.Request(HttpMethod.Get, url, null, null, null); diff --git a/src/Clients/TimesheetClient.cs b/src/Clients/TimesheetClient.cs index 5f89c14..0b3b41d 100644 --- a/src/Clients/TimesheetClient.cs +++ b/src/Clients/TimesheetClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -43,7 +43,7 @@ public TimesheetClient(ProjectManagerClient client) /// /// /// Payload - public async Task> Createtimeentry(TimesheetCreateRequestDto body) + public async Task> CreateTimeEntry(TimesheetCreateRequestDto body) { var url = $"/api/data/timesheets"; return await _client.Request(HttpMethod.Post, url, null, body, null); @@ -58,17 +58,15 @@ public async Task> Createtimeentry(TimesheetCr /// The number of records to return /// Skips the given number of records and then returns $top records /// Filter the expression according to oData queries - /// Specify which properties should be returned /// 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 select = 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(); if (top != null) { options["$top"] = top; } if (skip != null) { options["$skip"] = skip; } if (filter != null) { options["$filter"] = filter; } - if (select != null) { options["$select"] = select; } if (orderby != null) { options["$orderby"] = orderby; } if (expand != null) { options["$expand"] = expand; } return await _client.Request(HttpMethod.Get, url, options, null, null); @@ -79,7 +77,7 @@ public async Task> QueryTimeSheets(int? top = null, /// /// /// time entry id - public async Task> Deletetimeentry(Guid timesheetId) + public async Task> DeleteTimeEntry(Guid timesheetId) { var url = $"/api/data/timesheets/{timesheetId}"; return await _client.Request(HttpMethod.Delete, url, null, null, null); @@ -91,7 +89,7 @@ public async Task> Deletetimeentry(Guid timesheetId) /// /// time entry id /// payload - public async Task> Updatetimeentry(Guid timesheetId, TimesheetUpdateRequestDto body) + public async Task> UpdateTimeEntry(Guid timesheetId, TimesheetUpdateRequestDto body) { var url = $"/api/data/timesheets/{timesheetId}"; return await _client.Request(HttpMethod.Put, url, null, body, null); @@ -101,7 +99,7 @@ public async Task> Updatetimeentry(Guid timesh /// Returns active admin tasks that are used to report time not related to work on projects. I.e. annual/sick leave etc /// /// - public async Task> Returnsactiveadmintasksthatareusedtoreporttime() + public async Task> ReturnsActiveAdminTasksThatAreUsedToReportTime() { var url = $"/api/data/timesheets/admin-tasks"; return await _client.Request(HttpMethod.Get, url, null, null, null); diff --git a/src/Clients/UserRoleClient.cs b/src/Clients/UserRoleClient.cs index 6fa32ee..bd2bada 100644 --- a/src/Clients/UserRoleClient.cs +++ b/src/Clients/UserRoleClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -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/Clients/WorkSpaceClient.cs b/src/Clients/WorkSpaceClient.cs index 1224238..6d37dcc 100644 --- a/src/Clients/WorkSpaceClient.cs +++ b/src/Clients/WorkSpaceClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -60,7 +60,7 @@ public async Task> RetrieveWorkspaces() /// /// The unique identifier of the Organization that you are inviting a User to joi /// Information about the user which will receive the invitation - public async Task> InvitetoWorkspace(string organizationId, WorkSpaceJoinDto body) + public async Task> InviteToWorkspace(string organizationId, WorkSpaceJoinDto body) { var url = $"/api/data/workspaces/{organizationId}/join"; return await _client.Request(HttpMethod.Post, url, null, body, null); diff --git a/src/Enums.cs b/src/Enums.cs index 86f7f17..bc3fe24 100644 --- a/src/Enums.cs +++ b/src/Enums.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ diff --git a/src/IProjectManagerClient.cs b/src/IProjectManagerClient.cs index ac13a71..ff91d27 100644 --- a/src/IProjectManagerClient.cs +++ b/src/IProjectManagerClient.cs @@ -1,15 +1,15 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com * - * @copyright 2023-2023 ProjectManager.com, Inc. - * @version 99.0.2548 + * @copyright 2023-2024 ProjectManager.com, Inc. + * @version 102.0.2886 * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -44,6 +44,10 @@ public interface IProjectManagerClient /// IFileClient File { get; } /// + /// API methods related to Holiday + /// + IHolidayClient Holiday { get; } + /// /// API methods related to HomeFile /// IHomeFileClient HomeFile { get; } @@ -68,6 +72,10 @@ public interface IProjectManagerClient /// IMeClient Me { get; } /// + /// API methods related to NptFiles + /// + INptFilesClient NptFiles { get; } + /// /// API methods related to Project /// IProjectClient Project { get; } @@ -140,6 +148,10 @@ public interface IProjectManagerClient /// ITaskFileClient TaskFile { get; } /// + /// API methods related to TaskMetadata + /// + ITaskMetadataClient TaskMetadata { get; } + /// /// API methods related to TaskStatus /// ITaskStatusClient TaskStatus { get; } diff --git a/src/Interfaces/IApiKeyClient.cs b/src/Interfaces/IApiKeyClient.cs index 2e2c093..a266bc1 100644 --- a/src/Interfaces/IApiKeyClient.cs +++ b/src/Interfaces/IApiKeyClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -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 4dbe5c2..220d571 100644 --- a/src/Interfaces/IChangesetClient.cs +++ b/src/Interfaces/IChangesetClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ diff --git a/src/Interfaces/IDashboardClient.cs b/src/Interfaces/IDashboardClient.cs index 557e1e0..e0afcea 100644 --- a/src/Interfaces/IDashboardClient.cs +++ b/src/Interfaces/IDashboardClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -39,6 +39,6 @@ public interface IDashboardClient /// /// /// User dashboard settings object - Task> CreateorUpdateUserDashboardSettings(DashboardSettingCreateDto body); + Task> CreateOrUpdateUserDashboardSettings(DashboardSettingCreateDto body); } } diff --git a/src/Interfaces/IDiscussionClient.cs b/src/Interfaces/IDiscussionClient.cs index fcebded..cad3f5c 100644 --- a/src/Interfaces/IDiscussionClient.cs +++ b/src/Interfaces/IDiscussionClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -32,7 +32,7 @@ public interface IDiscussionClient /// /// /// The unique ID number of the task to retrieve comments - Task> RetrieveTaskComments(Guid taskId); + Task> RetrieveTaskComments(Guid taskId); /// /// Adds a Markdown-formatted comment to a task. @@ -42,6 +42,6 @@ public interface IDiscussionClient /// /// The unique ID number of the task being commented upon /// The Markdown-formatted text of the comment - Task> CreateTaskComments(Guid taskId, DiscussionCreateDto body); + Task> CreateTaskComments(Guid taskId, DiscussionCommentCreateDto body); } } diff --git a/src/Interfaces/IFileClient.cs b/src/Interfaces/IFileClient.cs index 38d1da5..2e86d70 100644 --- a/src/Interfaces/IFileClient.cs +++ b/src/Interfaces/IFileClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -30,14 +30,20 @@ public interface IFileClient /// /// Downloads the contents of a file that was previously uploaded to ProjectManager.com. /// - /// ProjectManager allows you to store Files connected to other elements of your Workspace such as a Project, a Task, or Home. Files are maintained separately based on the location where the file was stored. + /// ProjectManager allows you to store Files connected to other elements of your Workspace + /// such as a Project, a Task, or Home. Files are maintained separately based on the location + /// where the file was stored. /// - /// When you upload a File, please allow a few moments for the File to be processed and verified. ProjectManager may reject File uploads that contain problems such as malware. Once a File has completed the upload the process, you may retrieve it using the DownloadFile API. + /// When you upload a File, please allow a few moments for the File to be processed and verified. + /// ProjectManager may reject File uploads that contain problems such as malware. Once a File has + /// completed the upload the process, you may retrieve it using the DownloadFile API. /// + /// If successful, this API returns the file contents as an octet-stream (raw bytes). If an error + /// occurs, you will receive a JSON result with error information. /// /// The unique identifier of the document to download /// If you specify a type of `html`, processes the file using text encoding, otherwise binary - Task> DownloadFile(Guid documentId, string type = null); + Task> DownloadFile(Guid documentId, string type = null); /// /// Downloads a thumbnail image associated with a document that was previously uploaded to ProjectManager.com. @@ -48,9 +54,12 @@ public interface IFileClient /// When uploading a file, please allow some time for the file to undergo processing and verification. /// ProjectManager may reject file uploads containing issues such as malware. Once a file has /// completed the upload process, you can retrieve its associated thumbnail using the DownloadThumbnail API. + /// + /// If successful, this API returns the file contents as an octet-stream (raw bytes). If an error + /// occurs, you will receive a JSON result with error information. /// /// The unique identifier of the document for which to download the thumbnail. - Task> DownloadaThumbnailImage(Guid documentId); + Task> DownloadAThumbnailImage(Guid documentId); /// /// Updates information about a File uploaded to your Workspace. @@ -59,9 +68,21 @@ public interface IFileClient /// /// When you upload a File, please allow a few moments for the File to be processed and verified. ProjectManager may reject File uploads that contain problems such as malware. Once a File has completed the upload the process, you may retrieve it using the DownloadFile API. /// + /// This API returns a JSON response indicating success or failure. + /// /// /// The unique identifier of the File to update /// Information to change about the File and its location Task> UpdateFile(Guid fileId, UpdateRequestDto body); + + /// + /// In case of soft delete moves file to trash folder. For hard delete completely deletes file's metadata from pm database as well as from amazon storage + /// + /// This API returns a JSON response indicating success or failure. + /// + /// + /// The unique identifier of the File to delete + /// Param indicates that file should be hard deleted + Task> DeleteFile(Guid fileId, bool? hard = null); } } diff --git a/src/Interfaces/IHolidayClient.cs b/src/Interfaces/IHolidayClient.cs new file mode 100644 index 0000000..e3f1db8 --- /dev/null +++ b/src/Interfaces/IHolidayClient.cs @@ -0,0 +1,63 @@ +/*** + * 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 + */ + + + +using System; +using System.Collections.Generic; +using System.Threading.Tasks; +using ProjectManager.SDK.Models; + + +namespace ProjectManager.SDK.Interfaces +{ + /// + /// API methods related to Holiday + /// + public interface IHolidayClient + { + + /// + /// Retrieve a list of resource holidays that match an [OData formatted query](https://www.odata.org/). + /// + /// + /// The number of records to return + /// Skips the given number of records and then returns $top records + /// Filter the expression according to oData queries + /// Order collection by this field. + /// Include related data in the response + Task> QueryResourceHolidays(int? top = null, int? skip = null, string filter = null, string orderby = null, string expand = null); + + /// + /// Retrieve a list of country holidays that match an [OData formatted query](https://www.odata.org/). + /// + /// + /// The number of records to return + /// Skips the given number of records and then returns $top records + /// Filter the expression according to oData queries + /// Order collection by this field. + /// Include related data in the response + Task> QueryCountryHolidays(int? top = null, int? skip = null, string filter = null, string orderby = null, string expand = null); + + /// + /// Retrieve a list of global holidays that match an [OData formatted query](https://www.odata.org/). + /// + /// + /// The number of records to return + /// Skips the given number of records and then returns $top records + /// Filter the expression according to oData queries + /// Order collection by this field. + /// Include related data in the response + Task> QueryGlobalHolidays(int? top = null, int? skip = null, string filter = null, string orderby = null, string expand = null); + } +} diff --git a/src/Interfaces/IHomeFileClient.cs b/src/Interfaces/IHomeFileClient.cs index eaa88e5..d9db54a 100644 --- a/src/Interfaces/IHomeFileClient.cs +++ b/src/Interfaces/IHomeFileClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -34,6 +34,8 @@ public interface IHomeFileClient /// /// When you upload a File, please allow a few moments for the File to be processed and verified. ProjectManager may reject File uploads that contain problems such as malware. Once a File has completed the upload the process, you may retrieve it using the DownloadFile API. /// + /// This API returns a JSON response indicating success or failure. + /// /// /// The full path of a file to upload to the API Task> UploadHomeFile(string filename); @@ -47,6 +49,8 @@ public interface IHomeFileClient /// /// When you upload a File, please allow a few moments for the File to be processed and verified. ProjectManager may reject File uploads that contain problems such as malware. Once a File has completed the upload the process, you may retrieve it using the DownloadFile API. /// + /// This API returns a JSON response indicating success or failure. + /// /// /// The reference to the sub folder to put the file into /// The full path of a file to upload to the API diff --git a/src/Interfaces/IIntegrationCategoryClient.cs b/src/Interfaces/IIntegrationCategoryClient.cs index 82ebc7d..f27d98b 100644 --- a/src/Interfaces/IIntegrationCategoryClient.cs +++ b/src/Interfaces/IIntegrationCategoryClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ diff --git a/src/Interfaces/IIntegrationClient.cs b/src/Interfaces/IIntegrationClient.cs index 9d86ddc..6a12c09 100644 --- a/src/Interfaces/IIntegrationClient.cs +++ b/src/Interfaces/IIntegrationClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ diff --git a/src/Interfaces/IIntegrationProviderClient.cs b/src/Interfaces/IIntegrationProviderClient.cs index ea1f09c..1cad545 100644 --- a/src/Interfaces/IIntegrationProviderClient.cs +++ b/src/Interfaces/IIntegrationProviderClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -47,13 +47,17 @@ public interface IIntegrationProviderClient /// /// Allows you to update the auth status of the provider specific connection. /// + /// An IntegrationProvider is the name of an external application or service that can be connected to ProjectManager.com. The Integrations API is intended for use by ProjectManager and its business development partners. Please contact ProjectManager's sales team to request use of this API. + /// /// /// The identifier to the provider /// Specify the auth status Task> UpdateIntegrationProvider(Guid providerId, AuthenticationDto body); /// - /// Allows you to deactivate an integration provider + /// Allows you to deactivate an integration provider. + /// + /// An IntegrationProvider is the name of an external application or service that can be connected to ProjectManager.com. The Integrations API is intended for use by ProjectManager and its business development partners. Please contact ProjectManager's sales team to request use of this API. /// /// /// The identifier to the provider @@ -64,6 +68,8 @@ public interface IIntegrationProviderClient /// /// This connection can be used for requests to Providers that require specific user data. /// + /// An IntegrationProvider is the name of an external application or service that can be connected to ProjectManager.com. The Integrations API is intended for use by ProjectManager and its business development partners. Please contact ProjectManager's sales team to request use of this API. + /// /// /// The unique identifier of the IntegrationProvider for which you are requesting authentication information Task> CreateUserIntegrationProviderConnection(Guid providerId); @@ -71,9 +77,20 @@ public interface IIntegrationProviderClient /// /// Allows you to update the auth status of the provider specific user connection. /// + /// An IntegrationProvider is the name of an external application or service that can be connected to ProjectManager.com. The Integrations API is intended for use by ProjectManager and its business development partners. Please contact ProjectManager's sales team to request use of this API. + /// /// /// The identifier to the provider /// Specify the auth status Task> UpdateUserIntegrationProviderConnection(Guid providerId, AuthenticationStatusDto body); + + /// + /// Allows you to disconnect the provider specific user connection. + /// + /// An IntegrationProvider is the name of an external application or service that can be connected to ProjectManager.com. The Integrations API is intended for use by ProjectManager and its business development partners. Please contact ProjectManager's sales team to request use of this API. + /// + /// + /// The identifier to the provider + Task> DisconnectUserIntegrationProviderConnection(Guid providerId); } } diff --git a/src/Interfaces/ILicenseClient.cs b/src/Interfaces/ILicenseClient.cs index f005be5..d9415bb 100644 --- a/src/Interfaces/ILicenseClient.cs +++ b/src/Interfaces/ILicenseClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ diff --git a/src/Interfaces/IMeClient.cs b/src/Interfaces/IMeClient.cs index f26ea20..1cb666c 100644 --- a/src/Interfaces/IMeClient.cs +++ b/src/Interfaces/IMeClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ diff --git a/src/Interfaces/INptFilesClient.cs b/src/Interfaces/INptFilesClient.cs new file mode 100644 index 0000000..bdce902 --- /dev/null +++ b/src/Interfaces/INptFilesClient.cs @@ -0,0 +1,44 @@ +/*** + * 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 + */ + + + +using System; +using System.Collections.Generic; +using System.Threading.Tasks; +using ProjectManager.SDK.Models; + + +namespace ProjectManager.SDK.Interfaces +{ + /// + /// API methods related to NptFiles + /// + public interface INptFilesClient + { + + /// + /// Uploads a file to a non-project task. + /// + /// ProjectManager allows you to store Files connected to other elements of your Workspace such as a Project, a Task, or Home. Files are maintained separately based on the location where the file was stored. + /// + /// When you upload a File, please allow a few moments for the File to be processed and verified. ProjectManager may reject File uploads that contain problems such as malware. Once a File has completed the upload the process, you may retrieve it using the DownloadFile API. + /// + /// This API returns a JSON response indicating success or failure. + /// + /// + /// The reference to the task + /// The full path of a file to upload to the API + Task> UploadFileToNonProjectTasks(Guid taskId, string filename); + } +} diff --git a/src/Interfaces/IProjectChargeCodeClient.cs b/src/Interfaces/IProjectChargeCodeClient.cs index d9eaad8..848abf4 100644 --- a/src/Interfaces/IProjectChargeCodeClient.cs +++ b/src/Interfaces/IProjectChargeCodeClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ diff --git a/src/Interfaces/IProjectClient.cs b/src/Interfaces/IProjectClient.cs index 7c87d92..eee04f2 100644 --- a/src/Interfaces/IProjectClient.cs +++ b/src/Interfaces/IProjectClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -36,10 +36,9 @@ public interface IProjectClient /// The number of records to return /// Skips the given number of records and then returns $top records /// Filter the expression according to oData queries - /// Specify which properties should be returned /// Order collection by this field. /// Include related data in the response - Task> QueryProjects(int? top = null, int? skip = null, string filter = null, string select = null, string orderby = null, string expand = null); + Task> QueryProjects(int? top = null, int? skip = null, string filter = null, string orderby = null, string expand = null); /// /// Create a new project based on the details provided. diff --git a/src/Interfaces/IProjectCustomerClient.cs b/src/Interfaces/IProjectCustomerClient.cs index a15ff5e..6513a9c 100644 --- a/src/Interfaces/IProjectCustomerClient.cs +++ b/src/Interfaces/IProjectCustomerClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ diff --git a/src/Interfaces/IProjectFieldClient.cs b/src/Interfaces/IProjectFieldClient.cs index 0e4bb77..dc92609 100644 --- a/src/Interfaces/IProjectFieldClient.cs +++ b/src/Interfaces/IProjectFieldClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -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/IProjectFileClient.cs b/src/Interfaces/IProjectFileClient.cs index cfe4060..6b44e22 100644 --- a/src/Interfaces/IProjectFileClient.cs +++ b/src/Interfaces/IProjectFileClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -34,6 +34,8 @@ public interface IProjectFileClient /// /// When you upload a File, please allow a few moments for the File to be processed and verified. ProjectManager may reject File uploads that contain problems such as malware. Once a File has completed the upload the process, you may retrieve it using the DownloadFile API. /// + /// This API returns a JSON response indicating success or failure. + /// /// /// The reference to the project /// The full path of a file to upload to the API @@ -48,6 +50,8 @@ public interface IProjectFileClient /// /// When you upload a File, please allow a few moments for the File to be processed and verified. ProjectManager may reject File uploads that contain problems such as malware. Once a File has completed the upload the process, you may retrieve it using the DownloadFile API. /// + /// This API returns a JSON response indicating success or failure. + /// /// /// The reference to the project /// The reference to the sub folder to put the file into diff --git a/src/Interfaces/IProjectFolderClient.cs b/src/Interfaces/IProjectFolderClient.cs index 6b9e50a..7fcfd97 100644 --- a/src/Interfaces/IProjectFolderClient.cs +++ b/src/Interfaces/IProjectFolderClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ diff --git a/src/Interfaces/IProjectMembersClient.cs b/src/Interfaces/IProjectMembersClient.cs index 78729cf..fdcb010 100644 --- a/src/Interfaces/IProjectMembersClient.cs +++ b/src/Interfaces/IProjectMembersClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ diff --git a/src/Interfaces/IProjectPriorityClient.cs b/src/Interfaces/IProjectPriorityClient.cs index 12d13df..3bfddda 100644 --- a/src/Interfaces/IProjectPriorityClient.cs +++ b/src/Interfaces/IProjectPriorityClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ diff --git a/src/Interfaces/IProjectStatusClient.cs b/src/Interfaces/IProjectStatusClient.cs index 7cc82a3..7d09edf 100644 --- a/src/Interfaces/IProjectStatusClient.cs +++ b/src/Interfaces/IProjectStatusClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ diff --git a/src/Interfaces/IProjectTemplateClient.cs b/src/Interfaces/IProjectTemplateClient.cs index 6a37f90..61c6ac2 100644 --- a/src/Interfaces/IProjectTemplateClient.cs +++ b/src/Interfaces/IProjectTemplateClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ diff --git a/src/Interfaces/IResourceClient.cs b/src/Interfaces/IResourceClient.cs index d1d7ea8..87e4781 100644 --- a/src/Interfaces/IResourceClient.cs +++ b/src/Interfaces/IResourceClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -45,10 +45,9 @@ public interface IResourceClient /// The number of records to return /// Skips the given number of records and then returns $top records /// Filter the expression according to oData queries - /// Specify which properties should be returned /// Order collection by this field. /// Include related data in the response - Task> QueryResources(int? top = null, int? skip = null, string filter = null, string select = null, string orderby = null, string expand = null); + Task> QueryResources(int? top = null, int? skip = null, string filter = null, string orderby = null, string expand = null); /// /// Updates an existing Resource based on information you provide. diff --git a/src/Interfaces/IResourceSkillClient.cs b/src/Interfaces/IResourceSkillClient.cs index db1078c..a107b9f 100644 --- a/src/Interfaces/IResourceSkillClient.cs +++ b/src/Interfaces/IResourceSkillClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -36,10 +36,9 @@ public interface IResourceSkillClient /// The number of records to return /// Skips the given number of records and then returns $top records /// Filter the expression according to oData queries - /// Specify which properties should be returned /// Order collection by this field. /// Include related data in the response - Task> RetrieveResourceSkills(int? top = null, int? skip = null, string filter = null, string select = null, string orderby = null, string expand = null); + Task> RetrieveResourceSkills(int? top = null, int? skip = null, string filter = null, string orderby = null, string expand = null); /// /// Create a Resource Skill. diff --git a/src/Interfaces/IResourceTeamClient.cs b/src/Interfaces/IResourceTeamClient.cs index 5c4bed7..52c10cc 100644 --- a/src/Interfaces/IResourceTeamClient.cs +++ b/src/Interfaces/IResourceTeamClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -36,10 +36,9 @@ public interface IResourceTeamClient /// The number of records to return /// Skips the given number of records and then returns $top records /// Filter the expression according to oData queries - /// Specify which properties should be returned /// Order collection by this field. /// Include related data in the response - Task> RetrieveResourceTeams(int? top = null, int? skip = null, string filter = null, string select = null, string orderby = null, string expand = null); + Task> RetrieveResourceTeams(int? top = null, int? skip = null, string filter = null, string orderby = null, string expand = null); /// /// Create a Resource Team. diff --git a/src/Interfaces/ITagClient.cs b/src/Interfaces/ITagClient.cs index 723c04e..f2a9e0b 100644 --- a/src/Interfaces/ITagClient.cs +++ b/src/Interfaces/ITagClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -36,10 +36,9 @@ public interface ITagClient /// The number of records to return /// Skips the given number of records and then returns $top records /// Filter the expression according to oData queries - /// Specify which properties should be returned /// Order collection by this field. /// Include related data in the response - Task> QueryTags(int? top = null, int? skip = null, string filter = null, string select = null, string orderby = null, string expand = null); + Task> QueryTags(int? top = null, int? skip = null, string filter = null, string orderby = null, string expand = null); /// /// Creates a new Tag based on information you provide. diff --git a/src/Interfaces/ITaskAssigneeClient.cs b/src/Interfaces/ITaskAssigneeClient.cs index fbaee26..4753835 100644 --- a/src/Interfaces/ITaskAssigneeClient.cs +++ b/src/Interfaces/ITaskAssigneeClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -30,7 +30,9 @@ public interface ITaskAssigneeClient /// /// Replace all TaskAssignees on a Task with new TaskAssignees. /// - /// A TaskAssignee is an assignment of a Resource to a Task. You can assign multiple Resources to a Task and designate what proportion of their time will be allocated to this Task. + /// A TaskAssignee is an assignment of a Resource to a Task. You can assign multiple Resources to a Task and designate how much of their time will be allocated to this Task. + /// + /// In the request body, id is the id of the Resource you would like to assign to the Task, and assignedEffort is the amount of time that Resource is expected to spend on the task. assignedEffort should be entered in minutes. /// /// /// The unique identifier of the Task whose TaskAssignees will be replaced @@ -45,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/ITaskClient.cs b/src/Interfaces/ITaskClient.cs index f96be8b..ae1263f 100644 --- a/src/Interfaces/ITaskClient.cs +++ b/src/Interfaces/ITaskClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -36,10 +36,9 @@ public interface ITaskClient /// The number of records to return /// Skips the given number of records and then returns $top records /// Filter the expression according to oData queries - /// Specify which properties should be returned /// Order collection by this field. /// Include related data in the response - Task> QueryTasks(int? top = null, int? skip = null, string filter = null, string select = null, string orderby = null, string expand = null); + Task> QueryTasks(int? top = null, int? skip = null, string filter = null, string orderby = null, string expand = null); /// /// Retrieve a Task by its unique identifier or by its short ID. A Task has both a unique identifier, which is a GUID, and a short ID, which is a small text label that is unique only within your Workspace. diff --git a/src/Interfaces/ITaskFieldClient.cs b/src/Interfaces/ITaskFieldClient.cs index ef229f2..d289e5a 100644 --- a/src/Interfaces/ITaskFieldClient.cs +++ b/src/Interfaces/ITaskFieldClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -55,10 +55,9 @@ public interface ITaskFieldClient /// The number of records to return /// Skips the given number of records and then returns $top records /// Filter the expression according to oData queries - /// Specify which properties should be returned /// Order collection by this field. /// Include related data in the response - Task> QueryTaskFields(int? top = null, int? skip = null, string filter = null, string select = null, string orderby = null, string expand = null); + Task> QueryTaskFields(int? top = null, int? skip = null, string filter = null, string orderby = null, string expand = null); /// /// Deletes a TaskField for a specific Project within your Workspace. @@ -77,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/). @@ -88,10 +87,9 @@ public interface ITaskFieldClient /// The number of records to return /// Skips the given number of records and then returns $top records /// Filter the expression according to oData queries - /// Specify which properties should be returned /// Order collection by this field. /// Include related data in the response - Task> QueryTaskFieldValues(int? top = null, int? skip = null, string filter = null, string select = null, string orderby = null, string expand = null); + Task> QueryTaskFieldValues(int? top = null, int? skip = null, string filter = null, string orderby = null, string expand = null); /// /// Retrieves the current TaskField value for a particular Task and TaskField. diff --git a/src/Interfaces/ITaskFileClient.cs b/src/Interfaces/ITaskFileClient.cs index df83e26..9d42610 100644 --- a/src/Interfaces/ITaskFileClient.cs +++ b/src/Interfaces/ITaskFileClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -34,6 +34,8 @@ public interface ITaskFileClient /// /// When you upload a File, please allow a few moments for the File to be processed and verified. ProjectManager may reject File uploads that contain problems such as malware. Once a File has completed the upload the process, you may retrieve it using the DownloadFile API. /// + /// This API returns a JSON response indicating success or failure. + /// /// /// The reference to the task /// The full path of a file to upload to the API diff --git a/src/Interfaces/ITaskMetadataClient.cs b/src/Interfaces/ITaskMetadataClient.cs new file mode 100644 index 0000000..d3190f6 --- /dev/null +++ b/src/Interfaces/ITaskMetadataClient.cs @@ -0,0 +1,42 @@ +/*** + * 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 + */ + + + +using System; +using System.Collections.Generic; +using System.Threading.Tasks; +using ProjectManager.SDK.Models; + + +namespace ProjectManager.SDK.Interfaces +{ + /// + /// API methods related to TaskMetadata + /// + public interface ITaskMetadataClient + { + + /// + /// Adds a metadata to a task + /// + /// + /// Task ID + /// If metadata is for system or customer, isSystem = true is only of ProjectManager + /// If false we merge with the keys + /// The metadata + Task> AddMetadata(Guid taskId, TaskMetadataUpdateDto body, bool? isSystem = null, bool? isOverride = null); + + Task> GetTasksByProjectIdAndForeignKeyId(Guid projectId, string foreignKey = null, bool? isSystem = null); + } +} diff --git a/src/Interfaces/ITaskStatusClient.cs b/src/Interfaces/ITaskStatusClient.cs index 1de3181..8e76a6b 100644 --- a/src/Interfaces/ITaskStatusClient.cs +++ b/src/Interfaces/ITaskStatusClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -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 aa5cdc8..4490ac6 100644 --- a/src/Interfaces/ITaskTagClient.cs +++ b/src/Interfaces/ITaskTagClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -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/ITeamsClient.cs b/src/Interfaces/ITeamsClient.cs index 98338e7..891ae37 100644 --- a/src/Interfaces/ITeamsClient.cs +++ b/src/Interfaces/ITeamsClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -33,6 +33,6 @@ public interface ITeamsClient /// The Teams API is intended for use by ProjectManager and its business development partners. Please /// contact ProjectManager's sales team to request use of this API. /// - Task> RetrievezipfileforTeamsIntegrations(); + Task> RetrieveZipFileForTeamsIntegrations(); } } diff --git a/src/Interfaces/ITimesheetClient.cs b/src/Interfaces/ITimesheetClient.cs index c4ccd9e..f98c6a8 100644 --- a/src/Interfaces/ITimesheetClient.cs +++ b/src/Interfaces/ITimesheetClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -32,7 +32,7 @@ public interface ITimesheetClient /// /// /// Payload - Task> Createtimeentry(TimesheetCreateRequestDto body); + Task> CreateTimeEntry(TimesheetCreateRequestDto body); /// /// Retrieve a list of TimeSheets that match an [OData formatted query](https://www.odata.org/). @@ -43,17 +43,16 @@ public interface ITimesheetClient /// The number of records to return /// Skips the given number of records and then returns $top records /// Filter the expression according to oData queries - /// Specify which properties should be returned /// Order collection by this field. /// Include related data in the response - Task> QueryTimeSheets(int? top = null, int? skip = null, string filter = null, string select = 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. /// /// /// time entry id - Task> Deletetimeentry(Guid timesheetId); + Task> DeleteTimeEntry(Guid timesheetId); /// /// Updates a time entry by its unique identifier. @@ -61,12 +60,12 @@ public interface ITimesheetClient /// /// time entry id /// payload - Task> Updatetimeentry(Guid timesheetId, TimesheetUpdateRequestDto body); + Task> UpdateTimeEntry(Guid timesheetId, TimesheetUpdateRequestDto body); /// /// Returns active admin tasks that are used to report time not related to work on projects. I.e. annual/sick leave etc /// /// - Task> Returnsactiveadmintasksthatareusedtoreporttime(); + Task> ReturnsActiveAdminTasksThatAreUsedToReportTime(); } } diff --git a/src/Interfaces/IUserRoleClient.cs b/src/Interfaces/IUserRoleClient.cs index 690035f..0a7c29f 100644 --- a/src/Interfaces/IUserRoleClient.cs +++ b/src/Interfaces/IUserRoleClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -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/Interfaces/IWorkSpaceClient.cs b/src/Interfaces/IWorkSpaceClient.cs index 79e6cb2..9194a50 100644 --- a/src/Interfaces/IWorkSpaceClient.cs +++ b/src/Interfaces/IWorkSpaceClient.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -45,6 +45,6 @@ public interface IWorkSpaceClient /// /// The unique identifier of the Organization that you are inviting a User to joi /// Information about the user which will receive the invitation - Task> InvitetoWorkspace(string organizationId, WorkSpaceJoinDto body); + Task> InviteToWorkspace(string organizationId, WorkSpaceJoinDto body); } } diff --git a/src/Models/ApiKeyCreateDto.cs b/src/Models/ApiKeyCreateDto.cs index 304f7bb..5dad43e 100644 --- a/src/Models/ApiKeyCreateDto.cs +++ b/src/Models/ApiKeyCreateDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -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 ca700c5..c5c0612 100644 --- a/src/Models/ApiKeyDto.cs +++ b/src/Models/ApiKeyDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -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 1aa8449..d6c957d 100644 --- a/src/Models/AssigneeUpsertDto.cs +++ b/src/Models/AssigneeUpsertDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -34,8 +34,8 @@ public class AssigneeUpsertDto : ApiModel public Guid? Id { get; set; } /// - /// The new amount of effort to assign for this Resource. + /// 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 3936c1d..a24aecf 100644 --- a/src/Models/AuthenticationDto.cs +++ b/src/Models/AuthenticationDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -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/AuthenticationStatusDto.cs b/src/Models/AuthenticationStatusDto.cs index 87854f3..2a3da07 100644 --- a/src/Models/AuthenticationStatusDto.cs +++ b/src/Models/AuthenticationStatusDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ diff --git a/src/Models/ChangeSetStatusDto.cs b/src/Models/ChangeSetStatusDto.cs index 598962d..eb3bab2 100644 --- a/src/Models/ChangeSetStatusDto.cs +++ b/src/Models/ChangeSetStatusDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -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/ChangesetGetResponseDto.cs b/src/Models/ChangesetGetResponseDto.cs index 53fa2c9..c78e1d8 100644 --- a/src/Models/ChangesetGetResponseDto.cs +++ b/src/Models/ChangesetGetResponseDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ diff --git a/src/Models/ConnectionSchemaDto.cs b/src/Models/ConnectionSchemaDto.cs index 8df3de1..aa63d7a 100644 --- a/src/Models/ConnectionSchemaDto.cs +++ b/src/Models/ConnectionSchemaDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -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 new file mode 100644 index 0000000..ef6acd3 --- /dev/null +++ b/src/Models/CountryHolidayDto.cs @@ -0,0 +1,46 @@ +/*** + * 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 +{ + + /// + /// Country holiday entry + /// + public class CountryHolidayDto : ApiModel + { + + /// + /// Holiday id + /// + public Guid? Id { get; set; } + + /// + /// Date of holiday + /// + /// This is a date-only field stored as a string in ISO 8601 (YYYY-MM-DD) format. + /// + public string Date { get; set; } + + /// + /// Country id holiday associated to + /// + public int? Countryid { get; set; } + } +} diff --git a/src/Models/CreateProjectFieldDto.cs b/src/Models/CreateProjectFieldDto.cs index 6377a53..ca4ecc9 100644 --- a/src/Models/CreateProjectFieldDto.cs +++ b/src/Models/CreateProjectFieldDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -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/CreateProjectFieldResponseDto.cs b/src/Models/CreateProjectFieldResponseDto.cs index cf62e27..a17f0e4 100644 --- a/src/Models/CreateProjectFieldResponseDto.cs +++ b/src/Models/CreateProjectFieldResponseDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ diff --git a/src/Models/CreateResourceSkillDto.cs b/src/Models/CreateResourceSkillDto.cs index ceaba01..c91d9fd 100644 --- a/src/Models/CreateResourceSkillDto.cs +++ b/src/Models/CreateResourceSkillDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ diff --git a/src/Models/CreateResourceTeamDto.cs b/src/Models/CreateResourceTeamDto.cs index 19430c4..98d8f97 100644 --- a/src/Models/CreateResourceTeamDto.cs +++ b/src/Models/CreateResourceTeamDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ diff --git a/src/Models/CreateTaskFieldDto.cs b/src/Models/CreateTaskFieldDto.cs index 283facc..ba008bb 100644 --- a/src/Models/CreateTaskFieldDto.cs +++ b/src/Models/CreateTaskFieldDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -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 ecdfdaf..8681c86 100644 --- a/src/Models/DashboardSettingCreateDto.cs +++ b/src/Models/DashboardSettingCreateDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -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 383a8e0..6ff2ed9 100644 --- a/src/Models/DashboardSettingDto.cs +++ b/src/Models/DashboardSettingDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -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/DirectLinkDto.cs b/src/Models/DirectLinkDto.cs index 1d034db..c4ac7c4 100644 --- a/src/Models/DirectLinkDto.cs +++ b/src/Models/DirectLinkDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ diff --git a/src/Models/DiscussionCreateDto.cs b/src/Models/DiscussionCommentCreateDto.cs similarity index 89% rename from src/Models/DiscussionCreateDto.cs rename to src/Models/DiscussionCommentCreateDto.cs index 8d185dc..05845c0 100644 --- a/src/Models/DiscussionCreateDto.cs +++ b/src/Models/DiscussionCommentCreateDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -26,7 +26,7 @@ namespace ProjectManager.SDK.Models /// and users should be aware that HTML embedding is not permitted due to the risk of cross-site /// attacks and other embedding challenges. /// - public class DiscussionCreateDto : ApiModel + public class DiscussionCommentCreateDto : ApiModel { /// diff --git a/src/Models/DiscussionCreateResponseDto.cs b/src/Models/DiscussionCommentCreateResponseDto.cs similarity index 81% rename from src/Models/DiscussionCreateResponseDto.cs rename to src/Models/DiscussionCommentCreateResponseDto.cs index 2d6b631..2b3ad3c 100644 --- a/src/Models/DiscussionCreateResponseDto.cs +++ b/src/Models/DiscussionCommentCreateResponseDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -26,12 +26,12 @@ namespace ProjectManager.SDK.Models /// and users should be aware that HTML embedding is not permitted due to the risk of cross-site /// attacks and other embedding challenges. /// - public class DiscussionCreateResponseDto : ApiModel + 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/DiscussionDto.cs b/src/Models/DiscussionCommentDto.cs similarity index 71% rename from src/Models/DiscussionDto.cs rename to src/Models/DiscussionCommentDto.cs index 28f611f..38b8993 100644 --- a/src/Models/DiscussionDto.cs +++ b/src/Models/DiscussionCommentDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -26,9 +26,14 @@ namespace ProjectManager.SDK.Models /// and users should be aware that HTML embedding is not permitted due to the risk of cross-site /// attacks and other embedding challenges. /// - public class DiscussionDto : ApiModel + public class DiscussionCommentDto : ApiModel { + /// + /// The unique ID of the discussion comment. + /// + public Guid? Id { get; set; } + /// /// The text of the comment to add to the discussion, in Markdown format. /// @@ -38,35 +43,39 @@ public class DiscussionDto : ApiModel /// public string Text { get; set; } - /// - /// The unique ID of the discussion comment. - /// - public Guid? DiscussionCommentId { get; set; } - /// /// 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 /// be null if no emoji reactions have been recorded on this discussion comment. /// public DiscussionEmoji[] Emoji { get; set; } + + /// + /// The list of files associated with this Comment, if any. + /// + /// This field will be present when you fetch a single object. + /// When you query for multiple objects, this field is not included in results by default. + /// To expand this field, specify the name of this field in the `$expand` parameter. + /// + public DiscussionCommentFileDto[] Files { get; set; } } } diff --git a/src/Models/ODataFunctionImportInfo.cs b/src/Models/DiscussionCommentFileDto.cs similarity index 51% rename from src/Models/ODataFunctionImportInfo.cs rename to src/Models/DiscussionCommentFileDto.cs index 5c7d50f..78849b4 100644 --- a/src/Models/ODataFunctionImportInfo.cs +++ b/src/Models/DiscussionCommentFileDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -20,15 +20,22 @@ namespace ProjectManager.SDK.Models { - public class ODataFunctionImportInfo : ApiModel + public class DiscussionCommentFileDto : ApiModel { - public ODataTypeAnnotation TypeAnnotation { get; set; } - - public string Url { get; set; } + /// + /// The identifier for this file + /// + public Guid? Id { get; set; } + /// + /// The name of the file + /// public string Name { get; set; } - public string Title { get; set; } + /// + /// The url of the file which can be used for downloading + /// + public string Url { get; set; } } } diff --git a/src/Models/DiscussionEmoji.cs b/src/Models/DiscussionEmoji.cs index 5bffdee..aceebae 100644 --- a/src/Models/DiscussionEmoji.cs +++ b/src/Models/DiscussionEmoji.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -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 1a5632c..e349f59 100644 --- a/src/Models/FileDto.cs +++ b/src/Models/FileDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -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 7e440a6..2ab0436 100644 --- a/src/Models/GetProjectFieldsResponseDto.cs +++ b/src/Models/GetProjectFieldsResponseDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -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/GlobalHolidayDto.cs b/src/Models/GlobalHolidayDto.cs new file mode 100644 index 0000000..78011a9 --- /dev/null +++ b/src/Models/GlobalHolidayDto.cs @@ -0,0 +1,41 @@ +/*** + * 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 +{ + + /// + /// Global holiday entry + /// + public class GlobalHolidayDto : ApiModel + { + + /// + /// Holiday id + /// + public Guid? Id { get; set; } + + /// + /// Date of holiday + /// + /// This is a date-only field stored as a string in ISO 8601 (YYYY-MM-DD) format. + /// + public string Date { get; set; } + } +} diff --git a/src/Models/IdDto.cs b/src/Models/IdDto.cs index c4fd835..ea7907c 100644 --- a/src/Models/IdDto.cs +++ b/src/Models/IdDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ diff --git a/src/Models/IntegrationAuthSetupDto.cs b/src/Models/IntegrationAuthSetupDto.cs index 66f5169..0266adc 100644 --- a/src/Models/IntegrationAuthSetupDto.cs +++ b/src/Models/IntegrationAuthSetupDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -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 36ac26b..ba3e00a 100644 --- a/src/Models/IntegrationCategoryDto.cs +++ b/src/Models/IntegrationCategoryDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -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 1d9a3a1..172d08b 100644 --- a/src/Models/IntegrationConnectionSchemeObjectDto.cs +++ b/src/Models/IntegrationConnectionSchemeObjectDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -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 00b36f6..c0212b1 100644 --- a/src/Models/IntegrationDto.cs +++ b/src/Models/IntegrationDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -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 c140cd9..c423b96 100644 --- a/src/Models/IntegrationInstanceDto.cs +++ b/src/Models/IntegrationInstanceDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -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 d050e27..2235916 100644 --- a/src/Models/IntegrationProviderDto.cs +++ b/src/Models/IntegrationProviderDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -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 714402c..f5bc5e3 100644 --- a/src/Models/LicenseDto.cs +++ b/src/Models/LicenseDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -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 f07efd3..89e2e9a 100644 --- a/src/Models/MasterConnectionSchemeDto.cs +++ b/src/Models/MasterConnectionSchemeDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -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/NameDto.cs b/src/Models/NameDto.cs index 0df4e6d..8e781e9 100644 --- a/src/Models/NameDto.cs +++ b/src/Models/NameDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ diff --git a/src/Models/ODataEntitySetInfo.cs b/src/Models/ODataEntitySetInfo.cs deleted file mode 100644 index 5c87de9..0000000 --- a/src/Models/ODataEntitySetInfo.cs +++ /dev/null @@ -1,34 +0,0 @@ -/*** - * ProjectManager API for C# - * - * (c) 2023-2023 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-2023 ProjectManager.com, Inc. - * @link https://github.com/projectmgr/projectmanager-sdk-csharp - */ - - - -#pragma warning disable CS8618 - -using System; - -namespace ProjectManager.SDK.Models -{ - - public class ODataEntitySetInfo : ApiModel - { - - public ODataTypeAnnotation TypeAnnotation { get; set; } - - public string Url { get; set; } - - public string Name { get; set; } - - public string Title { get; set; } - } -} diff --git a/src/Models/ODataServiceDocument.cs b/src/Models/ODataServiceDocument.cs deleted file mode 100644 index e8cb18b..0000000 --- a/src/Models/ODataServiceDocument.cs +++ /dev/null @@ -1,34 +0,0 @@ -/*** - * ProjectManager API for C# - * - * (c) 2023-2023 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-2023 ProjectManager.com, Inc. - * @link https://github.com/projectmgr/projectmanager-sdk-csharp - */ - - - -#pragma warning disable CS8618 - -using System; - -namespace ProjectManager.SDK.Models -{ - - public class ODataServiceDocument : ApiModel - { - - public ODataTypeAnnotation TypeAnnotation { get; set; } - - public ODataEntitySetInfo[] EntitySets { get; set; } - - public ODataSingletonInfo[] Singletons { get; set; } - - public ODataFunctionImportInfo[] FunctionImports { get; set; } - } -} diff --git a/src/Models/PermissionOptionsDto.cs b/src/Models/PermissionOptionsDto.cs index e5979a1..0dc8e30 100644 --- a/src/Models/PermissionOptionsDto.cs +++ b/src/Models/PermissionOptionsDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ diff --git a/src/Models/ProjectChargeCodeDto.cs b/src/Models/ProjectChargeCodeDto.cs index a0b5d01..efbd3d1 100644 --- a/src/Models/ProjectChargeCodeDto.cs +++ b/src/Models/ProjectChargeCodeDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ diff --git a/src/Models/ProjectCreateAccessDto.cs b/src/Models/ProjectCreateAccessDto.cs index 054accc..3205dcb 100644 --- a/src/Models/ProjectCreateAccessDto.cs +++ b/src/Models/ProjectCreateAccessDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ diff --git a/src/Models/ProjectCreateAccessMemberDto.cs b/src/Models/ProjectCreateAccessMemberDto.cs index d581359..fa52e1d 100644 --- a/src/Models/ProjectCreateAccessMemberDto.cs +++ b/src/Models/ProjectCreateAccessMemberDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -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 2fd19e9..8b1f940 100644 --- a/src/Models/ProjectCreateDto.cs +++ b/src/Models/ProjectCreateDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -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/ProjectCustomerDto.cs b/src/Models/ProjectCustomerDto.cs index b1ad9fa..5765943 100644 --- a/src/Models/ProjectCustomerDto.cs +++ b/src/Models/ProjectCustomerDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ diff --git a/src/Models/ProjectDto.cs b/src/Models/ProjectDto.cs index 2d9b60d..bcd3f77 100644 --- a/src/Models/ProjectDto.cs +++ b/src/Models/ProjectDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -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,19 +202,25 @@ 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 /// public bool? Favorite { get; set; } + /// + /// The TemplateId that this project was created from. + /// Will be null if no template was selected at project creation. + /// + public Guid? Creationtemplateid { get; set; } + /// /// The members of the project /// @@ -223,6 +229,15 @@ public class ProjectDto : ApiModel /// /// Project fields array with values /// - public object Fields { get; set; } + public ProjectFieldValueDto[] Fieldvalues { get; set; } + + /// + /// The list of files associated with this Project, if any. + /// + /// This field will be present when you fetch a single object. + /// When you query for multiple objects, this field is not included in results by default. + /// To expand this field, specify the name of this field in the `$expand` parameter. + /// + public ProjectFileDto[] Files { get; set; } } } diff --git a/src/Models/ProjectFieldsValueResponseDto.cs b/src/Models/ProjectFieldValueDto.cs similarity index 69% rename from src/Models/ProjectFieldsValueResponseDto.cs rename to src/Models/ProjectFieldValueDto.cs index cc6ca6d..02598b7 100644 --- a/src/Models/ProjectFieldsValueResponseDto.cs +++ b/src/Models/ProjectFieldValueDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -21,10 +21,9 @@ namespace ProjectManager.SDK.Models { /// - /// A ProjectField is a custom field defined within your Workspace for each Project. Each - /// ProjectField has a data type as well as options in how it is handled. + /// A model that contains the value for a ProjectField. /// - public class ProjectFieldsValueResponseDto : ApiModel + public class ProjectFieldValueDto : ApiModel { /// @@ -33,9 +32,9 @@ public class ProjectFieldsValueResponseDto : ApiModel public Guid? Id { get; set; } /// - /// The value currently set for this Project Field. + /// The unique Short Id of this Project Field. /// - public string Value { get; set; } + public string Shortid { get; set; } /// /// The name of this Project Field. @@ -54,18 +53,18 @@ public class ProjectFieldsValueResponseDto : ApiModel public string Type { get; set; } /// - /// The short Id of this field - human readable identity + /// The value currently set for this Project Field Value. /// - public string ShortId { get; set; } + public string Value { get; set; } /// /// 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 new file mode 100644 index 0000000..18153b3 --- /dev/null +++ b/src/Models/ProjectFileDto.cs @@ -0,0 +1,50 @@ +/*** + * 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 +{ + + public class ProjectFileDto : ApiModel + { + + /// + /// The identifier for this file + /// + public Guid? Id { get; set; } + + /// + /// The name of the file + /// + public string Name { get; set; } + + /// + /// The url of the file which can be used for downloading + /// + public string Url { get; set; } + + /// + /// The project task that this file relates to. + /// + /// This field will be present when you fetch a single object. + /// When you query for multiple objects, this field is not included in results by default. + /// To expand this field, specify the name of this field in the `$expand` parameter. + /// + public ProjectFileTaskDto Task { get; set; } + } +} diff --git a/src/Models/ProjectFileTaskDto.cs b/src/Models/ProjectFileTaskDto.cs new file mode 100644 index 0000000..e67e0f3 --- /dev/null +++ b/src/Models/ProjectFileTaskDto.cs @@ -0,0 +1,42 @@ +/*** + * 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 +{ + + public class ProjectFileTaskDto : ApiModel + { + + /// + /// The unique identifier of this Task. + /// + public Guid? Id { 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; } + + /// + /// The common name of this Task. + /// + public string Name { get; set; } + } +} diff --git a/src/Models/ProjectFolderDto.cs b/src/Models/ProjectFolderDto.cs index 7273db8..3ff80a5 100644 --- a/src/Models/ProjectFolderDto.cs +++ b/src/Models/ProjectFolderDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ diff --git a/src/Models/ProjectManagerDto.cs b/src/Models/ProjectManagerDto.cs index 32ed293..bd34745 100644 --- a/src/Models/ProjectManagerDto.cs +++ b/src/Models/ProjectManagerDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -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 6da31ef..6c146f9 100644 --- a/src/Models/ProjectMemberDto.cs +++ b/src/Models/ProjectMemberDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -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/ProjectMemberRoleDto.cs b/src/Models/ProjectMemberRoleDto.cs index 6b1cfe7..6005355 100644 --- a/src/Models/ProjectMemberRoleDto.cs +++ b/src/Models/ProjectMemberRoleDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ diff --git a/src/Models/ProjectPriorityDto.cs b/src/Models/ProjectPriorityDto.cs index ef781eb..16c1f8b 100644 --- a/src/Models/ProjectPriorityDto.cs +++ b/src/Models/ProjectPriorityDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ diff --git a/src/Models/ProjectStatusDto.cs b/src/Models/ProjectStatusDto.cs index 4bdc44c..4533497 100644 --- a/src/Models/ProjectStatusDto.cs +++ b/src/Models/ProjectStatusDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -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/ProjectTemplateCategoryDto.cs b/src/Models/ProjectTemplateCategoryDto.cs index eec9fb1..896d9c6 100644 --- a/src/Models/ProjectTemplateCategoryDto.cs +++ b/src/Models/ProjectTemplateCategoryDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ diff --git a/src/Models/ProjectTemplateDto.cs b/src/Models/ProjectTemplateDto.cs index bb80ec8..c140a16 100644 --- a/src/Models/ProjectTemplateDto.cs +++ b/src/Models/ProjectTemplateDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -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 5d2d346..d1a7b9a 100644 --- a/src/Models/ProjectUpdateDto.cs +++ b/src/Models/ProjectUpdateDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -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/ReactGridLayoutDto.cs b/src/Models/ReactGridLayoutDto.cs index 99997a3..6d2e657 100644 --- a/src/Models/ReactGridLayoutDto.cs +++ b/src/Models/ReactGridLayoutDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ diff --git a/src/Models/ReactGridLayoutItemDto.cs b/src/Models/ReactGridLayoutItemDto.cs index 7bcbd8f..d93e2de 100644 --- a/src/Models/ReactGridLayoutItemDto.cs +++ b/src/Models/ReactGridLayoutItemDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ diff --git a/src/Models/ResourceApproverDto.cs b/src/Models/ResourceApproverDto.cs index 6d50110..57c3c75 100644 --- a/src/Models/ResourceApproverDto.cs +++ b/src/Models/ResourceApproverDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ diff --git a/src/Models/ResourceCreateDto.cs b/src/Models/ResourceCreateDto.cs index 7c9aa83..68b9414 100644 --- a/src/Models/ResourceCreateDto.cs +++ b/src/Models/ResourceCreateDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -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 c76a8cc..c39a4d1 100644 --- a/src/Models/ResourceDto.cs +++ b/src/Models/ResourceDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -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 new file mode 100644 index 0000000..39b9ad5 --- /dev/null +++ b/src/Models/ResourceHolidayDto.cs @@ -0,0 +1,46 @@ +/*** + * 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 +{ + + /// + /// Resource holiday entry + /// + public class ResourceHolidayDto : ApiModel + { + + /// + /// Holiday id + /// + public Guid? Id { get; set; } + + /// + /// Date of holiday + /// + /// This is a date-only field stored as a string in ISO 8601 (YYYY-MM-DD) format. + /// + public string Date { get; set; } + + /// + /// Resource id holoday associated to + /// + public Guid? Resourceid { get; set; } + } +} diff --git a/src/Models/ResourceSkillDto.cs b/src/Models/ResourceSkillDto.cs index 2c6e840..ddb051e 100644 --- a/src/Models/ResourceSkillDto.cs +++ b/src/Models/ResourceSkillDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ diff --git a/src/Models/ResourceTeamDto.cs b/src/Models/ResourceTeamDto.cs index bf03689..4da0268 100644 --- a/src/Models/ResourceTeamDto.cs +++ b/src/Models/ResourceTeamDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ diff --git a/src/Models/ResourceUpdateDto.cs b/src/Models/ResourceUpdateDto.cs index f483e99..c81a1a0 100644 --- a/src/Models/ResourceUpdateDto.cs +++ b/src/Models/ResourceUpdateDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -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/TagCreateDto.cs b/src/Models/TagCreateDto.cs index 95c0afa..6f6b54b 100644 --- a/src/Models/TagCreateDto.cs +++ b/src/Models/TagCreateDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ diff --git a/src/Models/TagDto.cs b/src/Models/TagDto.cs index 7dcec6e..fa02307 100644 --- a/src/Models/TagDto.cs +++ b/src/Models/TagDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ diff --git a/src/Models/TagUpdateDto.cs b/src/Models/TagUpdateDto.cs index 60f4728..d11dd3e 100644 --- a/src/Models/TagUpdateDto.cs +++ b/src/Models/TagUpdateDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ diff --git a/src/Models/TaskAssigneeDto.cs b/src/Models/TaskAssigneeDto.cs index 45e5ba4..1122318 100644 --- a/src/Models/TaskAssigneeDto.cs +++ b/src/Models/TaskAssigneeDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -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,25 +67,35 @@ 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. + /// + public string Email { get; set; } + + /// + /// The allocated effort (in minutes) for this Task and Assignee. + /// + public int? Allocatedeffort { get; set; } } } diff --git a/src/Models/TaskCreateDto.cs b/src/Models/TaskCreateDto.cs index bd84f00..497acae 100644 --- a/src/Models/TaskCreateDto.cs +++ b/src/Models/TaskCreateDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -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 1de717f..bd1fc73 100644 --- a/src/Models/TaskDto.cs +++ b/src/Models/TaskDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -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,26 +201,35 @@ 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[] Fields { get; set; } + public TaskFieldValueDto[] Fieldvalues { get; set; } + + /// + /// The list of files associated with this Task, if any. + /// + /// This field will be present when you fetch a single object. + /// When you query for multiple objects, this field is not included in results by default. + /// To expand this field, specify the name of this field in the `$expand` parameter. + /// + public TaskFileDto[] Files { get; set; } } } diff --git a/src/Models/TaskFieldDto.cs b/src/Models/TaskFieldDto.cs index 9b24861..faee898 100644 --- a/src/Models/TaskFieldDto.cs +++ b/src/Models/TaskFieldDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -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 3f25d3e..dbe82fa 100644 --- a/src/Models/TaskFieldProjectDto.cs +++ b/src/Models/TaskFieldProjectDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -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 d7ce980..23b8588 100644 --- a/src/Models/TaskFieldValueDto.cs +++ b/src/Models/TaskFieldValueDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -34,7 +34,23 @@ 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. + /// + public string Name { get; set; } + + /// + /// The type of this TaskField. Valid types are the following: + /// * Text + /// * Number + /// * Date + /// * Checkbox + /// * Currency + /// * Dropdown + /// + public string Type { get; set; } /// /// The value currently set for this TaskFieldValue. @@ -44,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 181e89b..f8d4861 100644 --- a/src/Models/TaskFieldValueTaskDto.cs +++ b/src/Models/TaskFieldValueTaskDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -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/TaskFileDto.cs b/src/Models/TaskFileDto.cs new file mode 100644 index 0000000..51618c1 --- /dev/null +++ b/src/Models/TaskFileDto.cs @@ -0,0 +1,44 @@ +/*** + * 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 +{ + + /// + /// Represents a file associated with a Task in project manager + /// + public class TaskFileDto : ApiModel + { + + /// + /// The identifier for this file + /// + public Guid? Id { get; set; } + + /// + /// The name of the file + /// + public string Name { get; set; } + + /// + /// The url of the file which can be used for downloading + /// + public string Url { get; set; } + } +} diff --git a/src/Models/TaskMetadataSearchDto.cs b/src/Models/TaskMetadataSearchDto.cs new file mode 100644 index 0000000..cb4aca0 --- /dev/null +++ b/src/Models/TaskMetadataSearchDto.cs @@ -0,0 +1,44 @@ +/*** + * 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 +{ + + /// + /// Task Metadata Search DTO + /// + public class TaskMetadataSearchDto : ApiModel + { + + /// + /// Task ID + /// + public Guid? Id { get; set; } + + /// + /// Project ID + /// + public Guid? Projectid { get; set; } + + /// + /// Customer or system metadata + /// + public object Metadata { get; set; } + } +} diff --git a/src/Models/ODataTypeAnnotation.cs b/src/Models/TaskMetadataUpdateDto.cs similarity index 55% rename from src/Models/ODataTypeAnnotation.cs rename to src/Models/TaskMetadataUpdateDto.cs index ec758eb..57267ec 100644 --- a/src/Models/ODataTypeAnnotation.cs +++ b/src/Models/TaskMetadataUpdateDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -20,9 +20,15 @@ namespace ProjectManager.SDK.Models { - public class ODataTypeAnnotation : ApiModel + /// + /// Task Metadata DTO + /// + public class TaskMetadataUpdateDto : ApiModel { - public string TypeName { get; set; } + /// + /// Customer or system metadata + /// + public object Data { get; set; } } } diff --git a/src/Models/TaskPriorityDto.cs b/src/Models/TaskPriorityDto.cs index edd0636..2d62fd5 100644 --- a/src/Models/TaskPriorityDto.cs +++ b/src/Models/TaskPriorityDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ diff --git a/src/Models/TaskProjectDto.cs b/src/Models/TaskProjectDto.cs index 03b833e..8daf46f 100644 --- a/src/Models/TaskProjectDto.cs +++ b/src/Models/TaskProjectDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -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/TaskStatusCreateDto.cs b/src/Models/TaskStatusCreateDto.cs index 01caaa1..6d5ec2a 100644 --- a/src/Models/TaskStatusCreateDto.cs +++ b/src/Models/TaskStatusCreateDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ diff --git a/src/Models/TaskStatusDto.cs b/src/Models/TaskStatusDto.cs index 445a4ad..2701ce2 100644 --- a/src/Models/TaskStatusDto.cs +++ b/src/Models/TaskStatusDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -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/TaskStatusUpdateDto.cs b/src/Models/TaskStatusUpdateDto.cs index 8f78bb5..68506a3 100644 --- a/src/Models/TaskStatusUpdateDto.cs +++ b/src/Models/TaskStatusUpdateDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ diff --git a/src/Models/TaskTagDto.cs b/src/Models/TaskTagDto.cs index 947b331..238bf14 100644 --- a/src/Models/TaskTagDto.cs +++ b/src/Models/TaskTagDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ diff --git a/src/Models/TaskTodoDto.cs b/src/Models/TaskTodoDto.cs index 274ea07..2615bd1 100644 --- a/src/Models/TaskTodoDto.cs +++ b/src/Models/TaskTodoDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -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 4064d61..90606f3 100644 --- a/src/Models/TaskUpdateDto.cs +++ b/src/Models/TaskUpdateDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -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 d673116..1b972f6 100644 --- a/src/Models/TimeSheetProjectDto.cs +++ b/src/Models/TimeSheetProjectDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -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/TimesheetAdminTypeDto.cs b/src/Models/TimesheetAdminTypeDto.cs index 2c67b74..b50d434 100644 --- a/src/Models/TimesheetAdminTypeDto.cs +++ b/src/Models/TimesheetAdminTypeDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ diff --git a/src/Models/TimesheetCreateRequestDto.cs b/src/Models/TimesheetCreateRequestDto.cs index 451af26..5ee6420 100644 --- a/src/Models/TimesheetCreateRequestDto.cs +++ b/src/Models/TimesheetCreateRequestDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -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 3af0be9..f851dbd 100644 --- a/src/Models/TimesheetDto.cs +++ b/src/Models/TimesheetDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -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,6 +74,15 @@ 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. + /// + /// This field will be present when you fetch a single object. + /// When you query for multiple objects, this field is not included in results by default. + /// To expand this field, specify the name of this field in the `$expand` parameter. + /// + public TimesheetFileDto[] Files { get; set; } } } diff --git a/src/Models/ODataSingletonInfo.cs b/src/Models/TimesheetFileDto.cs similarity index 52% rename from src/Models/ODataSingletonInfo.cs rename to src/Models/TimesheetFileDto.cs index cae2535..7d59e87 100644 --- a/src/Models/ODataSingletonInfo.cs +++ b/src/Models/TimesheetFileDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -20,15 +20,22 @@ namespace ProjectManager.SDK.Models { - public class ODataSingletonInfo : ApiModel + public class TimesheetFileDto : ApiModel { - public ODataTypeAnnotation TypeAnnotation { get; set; } - - public string Url { get; set; } + /// + /// The identifier for this file + /// + public Guid? Id { get; set; } + /// + /// The name of the file + /// public string Name { get; set; } - public string Title { get; set; } + /// + /// The url of the file which can be used for downloading + /// + public string Url { get; set; } } } diff --git a/src/Models/TimesheetResourceDto.cs b/src/Models/TimesheetResourceDto.cs index 2130070..a151f54 100644 --- a/src/Models/TimesheetResourceDto.cs +++ b/src/Models/TimesheetResourceDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -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 722b55b..cea7b1b 100644 --- a/src/Models/TimesheetResponseDto.cs +++ b/src/Models/TimesheetResponseDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -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 a8f403d..3636006 100644 --- a/src/Models/TimesheetTaskDto.cs +++ b/src/Models/TimesheetTaskDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -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/TimesheetUpdateRequestDto.cs b/src/Models/TimesheetUpdateRequestDto.cs index 98fabdd..b1263af 100644 --- a/src/Models/TimesheetUpdateRequestDto.cs +++ b/src/Models/TimesheetUpdateRequestDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ diff --git a/src/Models/UpdateProjectFieldValueDto.cs b/src/Models/UpdateProjectFieldValueDto.cs index 3ea6544..584cec6 100644 --- a/src/Models/UpdateProjectFieldValueDto.cs +++ b/src/Models/UpdateProjectFieldValueDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ diff --git a/src/Models/UpdateRequestDto.cs b/src/Models/UpdateRequestDto.cs index 511e642..bc3ff0f 100644 --- a/src/Models/UpdateRequestDto.cs +++ b/src/Models/UpdateRequestDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -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/UpdateResourceSkillDto.cs b/src/Models/UpdateResourceSkillDto.cs index 330cc8d..fe19f46 100644 --- a/src/Models/UpdateResourceSkillDto.cs +++ b/src/Models/UpdateResourceSkillDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ diff --git a/src/Models/UpdateResourceTeamDto.cs b/src/Models/UpdateResourceTeamDto.cs index 94dd19f..d00ed03 100644 --- a/src/Models/UpdateResourceTeamDto.cs +++ b/src/Models/UpdateResourceTeamDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ diff --git a/src/Models/UpdateTaskFieldValueDto.cs b/src/Models/UpdateTaskFieldValueDto.cs index 85e6db0..09b3d28 100644 --- a/src/Models/UpdateTaskFieldValueDto.cs +++ b/src/Models/UpdateTaskFieldValueDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ diff --git a/src/Models/UserRoleDto.cs b/src/Models/UserRoleDto.cs index 72f274a..19cd301 100644 --- a/src/Models/UserRoleDto.cs +++ b/src/Models/UserRoleDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ diff --git a/src/Models/WorkSpaceDto.cs b/src/Models/WorkSpaceDto.cs index cc974f3..76386cc 100644 --- a/src/Models/WorkSpaceDto.cs +++ b/src/Models/WorkSpaceDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -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 80f1dbe..86bcb09 100644 --- a/src/Models/WorkSpaceJoinDto.cs +++ b/src/Models/WorkSpaceJoinDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -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 449784f..c33a7b3 100644 --- a/src/Models/WorkSpaceLinksDto.cs +++ b/src/Models/WorkSpaceLinksDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -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 b5cb211..bc1e52c 100644 --- a/src/Models/WorkSpaceUserInfoDto.cs +++ b/src/Models/WorkSpaceUserInfoDto.cs @@ -1,13 +1,13 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com - * @copyright 2023-2023 ProjectManager.com, Inc. + * @copyright 2023-2024 ProjectManager.com, Inc. * @link https://github.com/projectmgr/projectmanager-sdk-csharp */ @@ -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 5aea105..b155b6c 100644 --- a/src/ProjectManagerClient.cs +++ b/src/ProjectManagerClient.cs @@ -1,15 +1,15 @@ /*** * ProjectManager API for C# * - * (c) 2023-2023 ProjectManager.com, Inc. + * (c) 2023-2024 ProjectManager.com, Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author ProjectManager.com * - * @copyright 2023-2023 ProjectManager.com, Inc. - * @version 99.0.2548 + * @copyright 2023-2024 ProjectManager.com, Inc. + * @version 102.0.2886 * @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 = "99.0.2548"; + public const string SdkVersion = "102.0.2886"; private readonly string _apiUrl; private readonly HttpClient _client; @@ -74,6 +74,11 @@ public class ProjectManagerClient : IProjectManagerClient /// public IFileClient File { get; } + /// + /// API methods related to Holiday + /// + public IHolidayClient Holiday { get; } + /// /// API methods related to HomeFile /// @@ -104,6 +109,11 @@ public class ProjectManagerClient : IProjectManagerClient /// public IMeClient Me { get; } + /// + /// API methods related to NptFiles + /// + public INptFilesClient NptFiles { get; } + /// /// API methods related to Project /// @@ -194,6 +204,11 @@ public class ProjectManagerClient : IProjectManagerClient /// public ITaskFileClient TaskFile { get; } + /// + /// API methods related to TaskMetadata + /// + public ITaskMetadataClient TaskMetadata { get; } + /// /// API methods related to TaskStatus /// @@ -246,12 +261,14 @@ private ProjectManagerClient(string url, HttpClientHandler clientHandler) Dashboard = new DashboardClient(this); Discussion = new DiscussionClient(this); File = new FileClient(this); + Holiday = new HolidayClient(this); HomeFile = new HomeFileClient(this); Integration = new IntegrationClient(this); IntegrationCategory = new IntegrationCategoryClient(this); IntegrationProvider = new IntegrationProviderClient(this); License = new LicenseClient(this); Me = new MeClient(this); + NptFiles = new NptFilesClient(this); Project = new ProjectClient(this); ProjectChargeCode = new ProjectChargeCodeClient(this); ProjectCustomer = new ProjectCustomerClient(this); @@ -270,6 +287,7 @@ private ProjectManagerClient(string url, HttpClientHandler clientHandler) TaskAssignee = new TaskAssigneeClient(this); TaskField = new TaskFieldClient(this); TaskFile = new TaskFileClient(this); + TaskMetadata = new TaskMetadataClient(this); TaskStatus = new TaskStatusClient(this); TaskTag = new TaskTagClient(this); Teams = new TeamsClient(this);