From 73c22eb1a00d53da3aa4001bdaa8321afe939582 Mon Sep 17 00:00:00 2001 From: Ted Spence Date: Mon, 22 Jan 2024 18:28:26 -0800 Subject: [PATCH] Release 102 (#9) * 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 blob request * Update 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 --- pom.xml | 86 +++++++++----- .../java/com/projectmanager/BlobRequest.java | 6 +- .../projectmanager/ProjectManagerClient.java | 33 +++++- .../java/com/projectmanager/RestRequest.java | 6 +- .../projectmanager/clients/ApiKeyClient.java | 4 +- .../clients/ChangesetClient.java | 4 +- .../clients/DashboardClient.java | 4 +- .../clients/DiscussionClient.java | 22 ++-- .../projectmanager/clients/FileClient.java | 43 +++++-- .../projectmanager/clients/HolidayClient.java | 109 ++++++++++++++++++ .../clients/HomeFileClient.java | 8 +- .../clients/IntegrationCategoryClient.java | 4 +- .../clients/IntegrationClient.java | 4 +- .../clients/IntegrationProviderClient.java | 29 ++++- .../projectmanager/clients/LicenseClient.java | 4 +- .../com/projectmanager/clients/MeClient.java | 4 +- .../clients/NptFilesClient.java | 64 ++++++++++ .../clients/ProjectChargeCodeClient.java | 4 +- .../projectmanager/clients/ProjectClient.java | 8 +- .../clients/ProjectCustomerClient.java | 4 +- .../clients/ProjectFieldClient.java | 18 +-- .../clients/ProjectFileClient.java | 8 +- .../clients/ProjectFolderClient.java | 4 +- .../clients/ProjectMembersClient.java | 4 +- .../clients/ProjectPriorityClient.java | 4 +- .../clients/ProjectStatusClient.java | 4 +- .../clients/ProjectTemplateClient.java | 4 +- .../clients/ResourceClient.java | 8 +- .../clients/ResourceSkillClient.java | 8 +- .../clients/ResourceTeamClient.java | 8 +- .../com/projectmanager/clients/TagClient.java | 8 +- .../clients/TaskAssigneeClient.java | 8 +- .../projectmanager/clients/TaskClient.java | 8 +- .../clients/TaskFieldClient.java | 12 +- .../clients/TaskFileClient.java | 6 +- .../clients/TaskMetadataClient.java | 80 +++++++++++++ .../clients/TaskStatusClient.java | 4 +- .../projectmanager/clients/TaskTagClient.java | 4 +- .../projectmanager/clients/TeamsClient.java | 4 +- .../clients/TimesheetClient.java | 8 +- .../clients/UserRoleClient.java | 4 +- .../clients/WorkSpaceClient.java | 4 +- .../models/ApiKeyCreateDto.java | 4 +- .../com/projectmanager/models/ApiKeyDto.java | 4 +- .../models/AssigneeUpsertDto.java | 8 +- .../models/AuthenticationDto.java | 4 +- .../models/AuthenticationStatusDto.java | 4 +- .../models/ChangeSetStatusDto.java | 4 +- .../models/ChangesetGetResponseDto.java | 4 +- .../models/ConnectionSchemaDto.java | 4 +- .../models/CountryHolidayDto.java | 66 +++++++++++ .../models/CreateProjectFieldDto.java | 4 +- .../models/CreateProjectFieldResponseDto.java | 4 +- .../models/CreateResourceSkillDto.java | 4 +- .../models/CreateResourceTeamDto.java | 4 +- .../models/CreateTaskFieldDto.java | 4 +- .../models/DashboardSettingCreateDto.java | 4 +- .../models/DashboardSettingDto.java | 4 +- .../projectmanager/models/DirectLinkDto.java | 4 +- ...o.java => DiscussionCommentCreateDto.java} | 6 +- ...> DiscussionCommentCreateResponseDto.java} | 6 +- ...sionDto.java => DiscussionCommentDto.java} | 53 ++++++--- ...nfo.java => DiscussionCommentFileDto.java} | 43 +++---- .../models/DiscussionEmoji.java | 4 +- .../com/projectmanager/models/FileDto.java | 4 +- .../models/GetProjectFieldsResponseDto.java | 4 +- .../models/GlobalHolidayDto.java | 53 +++++++++ .../java/com/projectmanager/models/IdDto.java | 4 +- .../models/IntegrationAuthSetupDto.java | 4 +- .../models/IntegrationCategoryDto.java | 4 +- .../IntegrationConnectionSchemeObjectDto.java | 4 +- .../projectmanager/models/IntegrationDto.java | 4 +- .../models/IntegrationInstanceDto.java | 4 +- .../models/IntegrationProviderDto.java | 4 +- .../com/projectmanager/models/LicenseDto.java | 4 +- .../models/MasterConnectionSchemeDto.java | 4 +- .../com/projectmanager/models/NameDto.java | 4 +- .../models/ODataServiceDocument.java | 68 ----------- .../models/PermissionOptionsDto.java | 4 +- .../models/ProjectChargeCodeDto.java | 4 +- .../models/ProjectCreateAccessDto.java | 4 +- .../models/ProjectCreateAccessMemberDto.java | 4 +- .../models/ProjectCreateDto.java | 4 +- .../models/ProjectCustomerDto.java | 4 +- .../com/projectmanager/models/ProjectDto.java | 50 ++++++-- ...onseDto.java => ProjectFieldValueDto.java} | 37 +++--- .../projectmanager/models/ProjectFileDto.java | 84 ++++++++++++++ .../models/ProjectFileTaskDto.java | 65 +++++++++++ .../models/ProjectFolderDto.java | 4 +- .../models/ProjectManagerDto.java | 4 +- .../models/ProjectMemberDto.java | 4 +- .../models/ProjectMemberRoleDto.java | 4 +- .../models/ProjectPriorityDto.java | 4 +- .../models/ProjectStatusDto.java | 4 +- .../models/ProjectTemplateCategoryDto.java | 4 +- .../models/ProjectTemplateDto.java | 4 +- .../models/ProjectUpdateDto.java | 4 +- .../models/ReactGridLayoutDto.java | 4 +- .../models/ReactGridLayoutItemDto.java | 4 +- .../models/ResourceApproverDto.java | 4 +- .../models/ResourceCreateDto.java | 4 +- .../projectmanager/models/ResourceDto.java | 4 +- .../models/ResourceHolidayDto.java | 66 +++++++++++ .../models/ResourceSkillDto.java | 4 +- .../models/ResourceTeamDto.java | 4 +- .../models/ResourceUpdateDto.java | 4 +- .../projectmanager/models/TagCreateDto.java | 4 +- .../com/projectmanager/models/TagDto.java | 4 +- .../projectmanager/models/TagUpdateDto.java | 4 +- .../models/TaskAssigneeDto.java | 30 ++++- .../projectmanager/models/TaskCreateDto.java | 4 +- .../com/projectmanager/models/TaskDto.java | 35 ++++-- .../projectmanager/models/TaskFieldDto.java | 4 +- .../models/TaskFieldProjectDto.java | 4 +- .../models/TaskFieldValueDto.java | 42 ++++++- .../models/TaskFieldValueTaskDto.java | 4 +- ...ataEntitySetInfo.java => TaskFileDto.java} | 46 ++++---- .../models/TaskMetadataSearchDto.java | 66 +++++++++++ ...tation.java => TaskMetadataUpdateDto.java} | 21 ++-- .../models/TaskPriorityDto.java | 4 +- .../projectmanager/models/TaskProjectDto.java | 4 +- .../models/TaskStatusCreateDto.java | 4 +- .../projectmanager/models/TaskStatusDto.java | 4 +- .../models/TaskStatusUpdateDto.java | 4 +- .../com/projectmanager/models/TaskTagDto.java | 4 +- .../projectmanager/models/TaskTodoDto.java | 4 +- .../projectmanager/models/TaskUpdateDto.java | 4 +- .../models/TimeSheetProjectDto.java | 4 +- .../models/TimesheetAdminTypeDto.java | 4 +- .../models/TimesheetCreateRequestDto.java | 4 +- .../projectmanager/models/TimesheetDto.java | 25 +++- ...nImportInfo.java => TimesheetFileDto.java} | 43 +++---- .../models/TimesheetResourceDto.java | 4 +- .../models/TimesheetResponseDto.java | 4 +- .../models/TimesheetTaskDto.java | 4 +- .../models/TimesheetUpdateRequestDto.java | 4 +- .../models/UpdateProjectFieldValueDto.java | 4 +- .../models/UpdateRequestDto.java | 4 +- .../models/UpdateResourceSkillDto.java | 4 +- .../models/UpdateResourceTeamDto.java | 4 +- .../models/UpdateTaskFieldValueDto.java | 4 +- .../projectmanager/models/UserRoleDto.java | 4 +- .../projectmanager/models/WorkSpaceDto.java | 4 +- .../models/WorkSpaceJoinDto.java | 4 +- .../models/WorkSpaceLinksDto.java | 4 +- .../models/WorkSpaceUserInfoDto.java | 4 +- 146 files changed, 1377 insertions(+), 538 deletions(-) create mode 100644 src/main/java/com/projectmanager/clients/HolidayClient.java create mode 100644 src/main/java/com/projectmanager/clients/NptFilesClient.java create mode 100644 src/main/java/com/projectmanager/clients/TaskMetadataClient.java create mode 100644 src/main/java/com/projectmanager/models/CountryHolidayDto.java rename src/main/java/com/projectmanager/models/{DiscussionCreateDto.java => DiscussionCommentCreateDto.java} (92%) rename src/main/java/com/projectmanager/models/{DiscussionCreateResponseDto.java => DiscussionCommentCreateResponseDto.java} (90%) rename src/main/java/com/projectmanager/models/{DiscussionDto.java => DiscussionCommentDto.java} (76%) rename src/main/java/com/projectmanager/models/{ODataSingletonInfo.java => DiscussionCommentFileDto.java} (57%) create mode 100644 src/main/java/com/projectmanager/models/GlobalHolidayDto.java delete mode 100644 src/main/java/com/projectmanager/models/ODataServiceDocument.java rename src/main/java/com/projectmanager/models/{ProjectFieldsValueResponseDto.java => ProjectFieldValueDto.java} (86%) create mode 100644 src/main/java/com/projectmanager/models/ProjectFileDto.java create mode 100644 src/main/java/com/projectmanager/models/ProjectFileTaskDto.java create mode 100644 src/main/java/com/projectmanager/models/ResourceHolidayDto.java rename src/main/java/com/projectmanager/models/{ODataEntitySetInfo.java => TaskFileDto.java} (57%) create mode 100644 src/main/java/com/projectmanager/models/TaskMetadataSearchDto.java rename src/main/java/com/projectmanager/models/{ODataTypeAnnotation.java => TaskMetadataUpdateDto.java} (51%) rename src/main/java/com/projectmanager/models/{ODataFunctionImportInfo.java => TimesheetFileDto.java} (57%) diff --git a/pom.xml b/pom.xml index 1268afa..243bd74 100644 --- a/pom.xml +++ b/pom.xml @@ -6,11 +6,11 @@ com.projectmanager projectmanagersdk - 99.0.2550 + 102.0.2886 ProjectManagerSDK - Software development kit for the ProjectManager.com API. for Java - https://developer.projectmanager.com/ + for Java + @@ -61,44 +61,40 @@ + + + ossrh + https://oss.sonatype.org/content/repositories/snapshots + + + + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.8 + true + + ossrh + https://s01.oss.sonatype.org/ + true + + + + release - - org.sonatype.central - central-publishing-maven-plugin - 0.1.2 - true - - central - true - - org.apache.maven.plugins maven-source-plugin - 3.3.0 + 3.2.1 attach-sources - - jar-no-fork - - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 3.6.0 - - - attach-javadocs - - jar - @@ -126,5 +122,35 @@ + + build-extras + + true + + + + + org.apache.maven.plugins + maven-source-plugin + 2.4 + + + attach-sources + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.10.3 + + + attach-javadocs + + + + + + \ No newline at end of file diff --git a/src/main/java/com/projectmanager/BlobRequest.java b/src/main/java/com/projectmanager/BlobRequest.java index 44301d3..4efdabb 100644 --- a/src/main/java/com/projectmanager/BlobRequest.java +++ b/src/main/java/com/projectmanager/BlobRequest.java @@ -1,13 +1,13 @@ /** * ProjectManager API for Java * - * (c) 2023-2023 ProjectManager.com + * (c) 2023-2024 ProjectManager.com * * 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 + * @copyright 2023-2024 ProjectManager.com * @link https://github.com/projectmgr/projectmanager-sdk-java */ @@ -148,7 +148,7 @@ public void AddBody(Object body) { } request.addHeader("SdkName", "Java"); - request.addHeader("SdkVersion", "99.0.2550.0"); + request.addHeader("SdkVersion", "102.0.2886.0"); String applicationName = this.client.getAppName(); diff --git a/src/main/java/com/projectmanager/ProjectManagerClient.java b/src/main/java/com/projectmanager/ProjectManagerClient.java index b952cf1..24bf331 100644 --- a/src/main/java/com/projectmanager/ProjectManagerClient.java +++ b/src/main/java/com/projectmanager/ProjectManagerClient.java @@ -1,15 +1,15 @@ /*** * ProjectManager API for Java * - * (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.2550 + * @copyright 2023-2024 ProjectManager.com, Inc. + * @version 102.0.2886 * @link https://github.com/projectmgr/projectmanager-sdk-java */ @@ -21,12 +21,14 @@ import com.projectmanager.clients.DashboardClient; import com.projectmanager.clients.DiscussionClient; import com.projectmanager.clients.FileClient; +import com.projectmanager.clients.HolidayClient; import com.projectmanager.clients.HomeFileClient; import com.projectmanager.clients.IntegrationClient; import com.projectmanager.clients.IntegrationCategoryClient; import com.projectmanager.clients.IntegrationProviderClient; import com.projectmanager.clients.LicenseClient; import com.projectmanager.clients.MeClient; +import com.projectmanager.clients.NptFilesClient; import com.projectmanager.clients.ProjectClient; import com.projectmanager.clients.ProjectChargeCodeClient; import com.projectmanager.clients.ProjectCustomerClient; @@ -45,6 +47,7 @@ import com.projectmanager.clients.TaskAssigneeClient; import com.projectmanager.clients.TaskFieldClient; import com.projectmanager.clients.TaskFileClient; +import com.projectmanager.clients.TaskMetadataClient; import com.projectmanager.clients.TaskStatusClient; import com.projectmanager.clients.TaskTagClient; import com.projectmanager.clients.TeamsClient; @@ -68,12 +71,14 @@ public class ProjectManagerClient { private DashboardClient dashboard; private DiscussionClient discussion; private FileClient file; + private HolidayClient holiday; private HomeFileClient homeFile; private IntegrationClient integration; private IntegrationCategoryClient integrationCategory; private IntegrationProviderClient integrationProvider; private LicenseClient license; private MeClient me; + private NptFilesClient nptFiles; private ProjectClient project; private ProjectChargeCodeClient projectChargeCode; private ProjectCustomerClient projectCustomer; @@ -92,6 +97,7 @@ public class ProjectManagerClient { private TaskAssigneeClient taskAssignee; private TaskFieldClient taskField; private TaskFileClient taskFile; + private TaskMetadataClient taskMetadata; private TaskStatusClient taskStatus; private TaskTagClient taskTag; private TeamsClient teams; @@ -108,12 +114,14 @@ private ProjectManagerClient(@NotNull String serverUri) this.dashboard = new DashboardClient(this); this.discussion = new DiscussionClient(this); this.file = new FileClient(this); + this.holiday = new HolidayClient(this); this.homeFile = new HomeFileClient(this); this.integration = new IntegrationClient(this); this.integrationCategory = new IntegrationCategoryClient(this); this.integrationProvider = new IntegrationProviderClient(this); this.license = new LicenseClient(this); this.me = new MeClient(this); + this.nptFiles = new NptFilesClient(this); this.project = new ProjectClient(this); this.projectChargeCode = new ProjectChargeCodeClient(this); this.projectCustomer = new ProjectCustomerClient(this); @@ -132,6 +140,7 @@ private ProjectManagerClient(@NotNull String serverUri) this.taskAssignee = new TaskAssigneeClient(this); this.taskField = new TaskFieldClient(this); this.taskFile = new TaskFileClient(this); + this.taskMetadata = new TaskMetadataClient(this); this.taskStatus = new TaskStatusClient(this); this.taskTag = new TaskTagClient(this); this.teams = new TeamsClient(this); @@ -170,6 +179,12 @@ private ProjectManagerClient(@NotNull String serverUri) * @return A collection containing the {@link com.projectmanager.clients.FileClient client} methods in the API. */ public @NotNull FileClient getFileClient() { return this.file; } + /** + * A collection of API methods relating to Holiday + * + * @return A collection containing the {@link com.projectmanager.clients.HolidayClient client} methods in the API. + */ + public @NotNull HolidayClient getHolidayClient() { return this.holiday; } /** * A collection of API methods relating to HomeFile * @@ -206,6 +221,12 @@ private ProjectManagerClient(@NotNull String serverUri) * @return A collection containing the {@link com.projectmanager.clients.MeClient client} methods in the API. */ public @NotNull MeClient getMeClient() { return this.me; } + /** + * A collection of API methods relating to NptFiles + * + * @return A collection containing the {@link com.projectmanager.clients.NptFilesClient client} methods in the API. + */ + public @NotNull NptFilesClient getNptFilesClient() { return this.nptFiles; } /** * A collection of API methods relating to Project * @@ -314,6 +335,12 @@ private ProjectManagerClient(@NotNull String serverUri) * @return A collection containing the {@link com.projectmanager.clients.TaskFileClient client} methods in the API. */ public @NotNull TaskFileClient getTaskFileClient() { return this.taskFile; } + /** + * A collection of API methods relating to TaskMetadata + * + * @return A collection containing the {@link com.projectmanager.clients.TaskMetadataClient client} methods in the API. + */ + public @NotNull TaskMetadataClient getTaskMetadataClient() { return this.taskMetadata; } /** * A collection of API methods relating to TaskStatus * diff --git a/src/main/java/com/projectmanager/RestRequest.java b/src/main/java/com/projectmanager/RestRequest.java index c9d5376..700abd3 100644 --- a/src/main/java/com/projectmanager/RestRequest.java +++ b/src/main/java/com/projectmanager/RestRequest.java @@ -1,13 +1,13 @@ /** * ProjectManager API for Java * - * (c) 2023-2023 ProjectManager.com + * (c) 2023-2024 ProjectManager.com * * 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 + * @copyright 2023-2024 ProjectManager.com * @link https://github.com/projectmgr/projectmanager-sdk-java */ @@ -148,7 +148,7 @@ public void AddBody(Object body) { } request.addHeader("SdkName", "Java"); - request.addHeader("SdkVersion", "99.0.2550.0"); + request.addHeader("SdkVersion", "102.0.2886.0"); String applicationName = this.client.getAppName(); diff --git a/src/main/java/com/projectmanager/clients/ApiKeyClient.java b/src/main/java/com/projectmanager/clients/ApiKeyClient.java index e08ce0a..c0a967a 100644 --- a/src/main/java/com/projectmanager/clients/ApiKeyClient.java +++ b/src/main/java/com/projectmanager/clients/ApiKeyClient.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/clients/ChangesetClient.java b/src/main/java/com/projectmanager/clients/ChangesetClient.java index c0f5637..ddfbe21 100644 --- a/src/main/java/com/projectmanager/clients/ChangesetClient.java +++ b/src/main/java/com/projectmanager/clients/ChangesetClient.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/clients/DashboardClient.java b/src/main/java/com/projectmanager/clients/DashboardClient.java index 0ce1b0b..b0b4356 100644 --- a/src/main/java/com/projectmanager/clients/DashboardClient.java +++ b/src/main/java/com/projectmanager/clients/DashboardClient.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/clients/DiscussionClient.java b/src/main/java/com/projectmanager/clients/DiscussionClient.java index 10a9d44..d248fbf 100644 --- a/src/main/java/com/projectmanager/clients/DiscussionClient.java +++ b/src/main/java/com/projectmanager/clients/DiscussionClient.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ @@ -22,10 +22,10 @@ import org.jetbrains.annotations.Nullable; import com.google.gson.reflect.TypeToken; import com.projectmanager.AstroResult; -import com.projectmanager.models.DiscussionDto; +import com.projectmanager.models.DiscussionCommentDto; -import com.projectmanager.models.DiscussionCreateResponseDto; -import com.projectmanager.models.DiscussionCreateDto; +import com.projectmanager.models.DiscussionCommentCreateResponseDto; +import com.projectmanager.models.DiscussionCommentCreateDto; /** * Contains all methods related to Discussion @@ -50,11 +50,11 @@ public DiscussionClient(@NotNull ProjectManagerClient client) { * @param taskId The unique ID number of the task to retrieve comments * @return A {@link com.projectmanager.AstroResult} containing the results */ - public @NotNull AstroResult retrieveTaskComments(@NotNull String taskId) + public @NotNull AstroResult retrieveTaskComments(@NotNull String taskId) { - RestRequest r = new RestRequest(this.client, "GET", "/api/data/tasks/{taskId}/discussions"); + RestRequest r = new RestRequest(this.client, "GET", "/api/data/tasks/{taskId}/comments"); r.AddPath("{taskId}", taskId == null ? "" : taskId.toString()); - return r.Call(new TypeToken>() {}.getType()); + return r.Call(new TypeToken>() {}.getType()); } /** @@ -66,11 +66,11 @@ public DiscussionClient(@NotNull ProjectManagerClient client) { * @param body The Markdown-formatted text of the comment * @return A {@link com.projectmanager.AstroResult} containing the results */ - public @NotNull AstroResult createTaskComments(@NotNull String taskId, @NotNull DiscussionCreateDto body) + public @NotNull AstroResult createTaskComments(@NotNull String taskId, @NotNull DiscussionCommentCreateDto body) { - RestRequest r = new RestRequest(this.client, "POST", "/api/data/tasks/{taskId}/discussions"); + RestRequest r = new RestRequest(this.client, "POST", "/api/data/tasks/{taskId}/comments"); r.AddPath("{taskId}", taskId == null ? "" : taskId.toString()); if (body != null) { r.AddBody(body); } - return r.Call(new TypeToken>() {}.getType()); + return r.Call(new TypeToken>() {}.getType()); } } diff --git a/src/main/java/com/projectmanager/clients/FileClient.java b/src/main/java/com/projectmanager/clients/FileClient.java index afbe3bb..e503627 100644 --- a/src/main/java/com/projectmanager/clients/FileClient.java +++ b/src/main/java/com/projectmanager/clients/FileClient.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ @@ -45,20 +45,27 @@ public FileClient(@NotNull 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. * * @param documentId The unique identifier of the document to download * @param type If you specify a type of `html`, processes the file using text encoding, otherwise binary * @return A {@link com.projectmanager.AstroResult} containing the results */ - public @NotNull AstroResult downloadFile(@NotNull String documentId, @Nullable String type) + public @NotNull AstroResult downloadFile(@NotNull String documentId, @Nullable String type) { - RestRequest r = new RestRequest(this.client, "GET", "/api/data/files/{documentId}/download"); + BlobRequest r = new BlobRequest(this.client, "GET", "/api/data/files/{documentId}/download"); r.AddPath("{documentId}", documentId == null ? "" : documentId.toString()); if (type != null) { r.AddQuery("type", type.toString()); } - return r.Call(new TypeToken>() {}.getType()); + return r.Call(new TypeToken>() {}.getType()); } /** @@ -71,6 +78,9 @@ public FileClient(@NotNull ProjectManagerClient client) { * 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. + * * @param documentId The unique identifier of the document for which to download the thumbnail. * @return A {@link com.projectmanager.AstroResult} containing the results */ @@ -88,6 +98,8 @@ public FileClient(@NotNull 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. + * * @param fileId The unique identifier of the File to update * @param body Information to change about the File and its location * @return A {@link com.projectmanager.AstroResult} containing the results @@ -99,4 +111,21 @@ public FileClient(@NotNull ProjectManagerClient client) { if (body != null) { r.AddBody(body); } return r.Call(new TypeToken>() {}.getType()); } + + /** + * 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. + * + * @param fileId The unique identifier of the File to delete + * @param hard Param indicates that file should be hard deleted + * @return A {@link com.projectmanager.AstroResult} containing the results + */ + public @NotNull AstroResult deletefile(@NotNull String fileId, @Nullable Boolean hard) + { + RestRequest r = new RestRequest(this.client, "DELETE", "/api/data/files/{fileId}"); + r.AddPath("{fileId}", fileId == null ? "" : fileId.toString()); + if (hard != null) { r.AddQuery("hard", hard.toString()); } + return r.Call(new TypeToken>() {}.getType()); + } } diff --git a/src/main/java/com/projectmanager/clients/HolidayClient.java b/src/main/java/com/projectmanager/clients/HolidayClient.java new file mode 100644 index 0000000..5c2894a --- /dev/null +++ b/src/main/java/com/projectmanager/clients/HolidayClient.java @@ -0,0 +1,109 @@ + +/** + * ProjectManager API for Java + * + * (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-java + */ + + +package com.projectmanager.clients; + +import com.projectmanager.ProjectManagerClient; +import com.projectmanager.RestRequest; +import com.projectmanager.BlobRequest; +import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; +import com.google.gson.reflect.TypeToken; +import com.projectmanager.AstroResult; +import com.projectmanager.models.ResourceHolidayDto; + +import com.projectmanager.models.CountryHolidayDto; +import com.projectmanager.models.GlobalHolidayDto; + +/** + * Contains all methods related to Holiday + */ +public class HolidayClient +{ + private ProjectManagerClient client; + + /** + * Constructor for the Holiday API collection + * + * @param client A {@link com.projectmanager.ProjectManagerClient} platform client + */ + public HolidayClient(@NotNull ProjectManagerClient client) { + super(); + this.client = client; + } + + /** + * Retrieve a list of resource holidays that match an [OData formatted query](https://www.odata.org/). + * + * @param top The number of records to return + * @param skip Skips the given number of records and then returns $top records + * @param filter Filter the expression according to oData queries + * @param orderby Order collection by this field. + * @param expand Include related data in the response + * @return A {@link com.projectmanager.AstroResult} containing the results + */ + public @NotNull AstroResult queryresourceholidays(@Nullable Integer top, @Nullable Integer skip, @Nullable String filter, @Nullable String orderby, @Nullable String expand) + { + RestRequest r = new RestRequest(this.client, "GET", "/api/data/holidays/resource"); + if (top != null) { r.AddQuery("$top", top.toString()); } + if (skip != null) { r.AddQuery("$skip", skip.toString()); } + if (filter != null) { r.AddQuery("$filter", filter.toString()); } + if (orderby != null) { r.AddQuery("$orderby", orderby.toString()); } + if (expand != null) { r.AddQuery("$expand", expand.toString()); } + return r.Call(new TypeToken>() {}.getType()); + } + + /** + * Retrieve a list of country holidays that match an [OData formatted query](https://www.odata.org/). + * + * @param top The number of records to return + * @param skip Skips the given number of records and then returns $top records + * @param filter Filter the expression according to oData queries + * @param orderby Order collection by this field. + * @param expand Include related data in the response + * @return A {@link com.projectmanager.AstroResult} containing the results + */ + public @NotNull AstroResult querycountryholidays(@Nullable Integer top, @Nullable Integer skip, @Nullable String filter, @Nullable String orderby, @Nullable String expand) + { + RestRequest r = new RestRequest(this.client, "GET", "/api/data/holidays/country"); + if (top != null) { r.AddQuery("$top", top.toString()); } + if (skip != null) { r.AddQuery("$skip", skip.toString()); } + if (filter != null) { r.AddQuery("$filter", filter.toString()); } + if (orderby != null) { r.AddQuery("$orderby", orderby.toString()); } + if (expand != null) { r.AddQuery("$expand", expand.toString()); } + return r.Call(new TypeToken>() {}.getType()); + } + + /** + * Retrieve a list of global holidays that match an [OData formatted query](https://www.odata.org/). + * + * @param top The number of records to return + * @param skip Skips the given number of records and then returns $top records + * @param filter Filter the expression according to oData queries + * @param orderby Order collection by this field. + * @param expand Include related data in the response + * @return A {@link com.projectmanager.AstroResult} containing the results + */ + public @NotNull AstroResult queryglobalholidays(@Nullable Integer top, @Nullable Integer skip, @Nullable String filter, @Nullable String orderby, @Nullable String expand) + { + RestRequest r = new RestRequest(this.client, "GET", "/api/data/holidays/global"); + if (top != null) { r.AddQuery("$top", top.toString()); } + if (skip != null) { r.AddQuery("$skip", skip.toString()); } + if (filter != null) { r.AddQuery("$filter", filter.toString()); } + if (orderby != null) { r.AddQuery("$orderby", orderby.toString()); } + if (expand != null) { r.AddQuery("$expand", expand.toString()); } + return r.Call(new TypeToken>() {}.getType()); + } +} diff --git a/src/main/java/com/projectmanager/clients/HomeFileClient.java b/src/main/java/com/projectmanager/clients/HomeFileClient.java index 75b4fb4..1304bac 100644 --- a/src/main/java/com/projectmanager/clients/HomeFileClient.java +++ b/src/main/java/com/projectmanager/clients/HomeFileClient.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ @@ -49,6 +49,8 @@ public HomeFileClient(@NotNull 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. + * * @param filename The full path of a file to upload to the API * @return A {@link com.projectmanager.AstroResult} containing the results */ @@ -67,6 +69,8 @@ public HomeFileClient(@NotNull 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. + * * @param folderId The reference to the sub folder to put the file into * @param filename The full path of a file to upload to the API * @return A {@link com.projectmanager.AstroResult} containing the results diff --git a/src/main/java/com/projectmanager/clients/IntegrationCategoryClient.java b/src/main/java/com/projectmanager/clients/IntegrationCategoryClient.java index 4c968aa..7ef7867 100644 --- a/src/main/java/com/projectmanager/clients/IntegrationCategoryClient.java +++ b/src/main/java/com/projectmanager/clients/IntegrationCategoryClient.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/clients/IntegrationClient.java b/src/main/java/com/projectmanager/clients/IntegrationClient.java index 4ff70e4..8c7495b 100644 --- a/src/main/java/com/projectmanager/clients/IntegrationClient.java +++ b/src/main/java/com/projectmanager/clients/IntegrationClient.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/clients/IntegrationProviderClient.java b/src/main/java/com/projectmanager/clients/IntegrationProviderClient.java index ee68b5b..2574c50 100644 --- a/src/main/java/com/projectmanager/clients/IntegrationProviderClient.java +++ b/src/main/java/com/projectmanager/clients/IntegrationProviderClient.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ @@ -77,6 +77,8 @@ public IntegrationProviderClient(@NotNull ProjectManagerClient client) { /** * 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. + * * @param providerId The identifier to the provider * @param body Specify the auth status * @return A {@link com.projectmanager.AstroResult} containing the results @@ -90,7 +92,9 @@ public IntegrationProviderClient(@NotNull ProjectManagerClient client) { } /** - * 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. * * @param providerId The identifier to the provider * @return A {@link com.projectmanager.AstroResult} containing the results @@ -107,6 +111,8 @@ public IntegrationProviderClient(@NotNull ProjectManagerClient client) { * * 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. + * * @param providerId The unique identifier of the IntegrationProvider for which you are requesting authentication information * @return A {@link com.projectmanager.AstroResult} containing the results */ @@ -120,6 +126,8 @@ public IntegrationProviderClient(@NotNull ProjectManagerClient client) { /** * 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. + * * @param providerId The identifier to the provider * @param body Specify the auth status * @return A {@link com.projectmanager.AstroResult} containing the results @@ -131,4 +139,19 @@ public IntegrationProviderClient(@NotNull ProjectManagerClient client) { if (body != null) { r.AddBody(body); } return r.Call(new TypeToken>() {}.getType()); } + + /** + * 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. + * + * @param providerId The identifier to the provider + * @return A {@link com.projectmanager.AstroResult} containing the results + */ + public @NotNull AstroResult disconnectUserIntegrationProviderConnection(@NotNull String providerId) + { + RestRequest r = new RestRequest(this.client, "DELETE", "/api/data/integrations/providers/{providerId}/user-connection"); + r.AddPath("{providerId}", providerId == null ? "" : providerId.toString()); + return r.Call(new TypeToken>() {}.getType()); + } } diff --git a/src/main/java/com/projectmanager/clients/LicenseClient.java b/src/main/java/com/projectmanager/clients/LicenseClient.java index 57eae06..ae25aeb 100644 --- a/src/main/java/com/projectmanager/clients/LicenseClient.java +++ b/src/main/java/com/projectmanager/clients/LicenseClient.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/clients/MeClient.java b/src/main/java/com/projectmanager/clients/MeClient.java index b0144ae..8ddcc19 100644 --- a/src/main/java/com/projectmanager/clients/MeClient.java +++ b/src/main/java/com/projectmanager/clients/MeClient.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/clients/NptFilesClient.java b/src/main/java/com/projectmanager/clients/NptFilesClient.java new file mode 100644 index 0000000..a1d9119 --- /dev/null +++ b/src/main/java/com/projectmanager/clients/NptFilesClient.java @@ -0,0 +1,64 @@ + +/** + * ProjectManager API for Java + * + * (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-java + */ + + +package com.projectmanager.clients; + +import com.projectmanager.ProjectManagerClient; +import com.projectmanager.RestRequest; +import com.projectmanager.BlobRequest; +import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; +import com.google.gson.reflect.TypeToken; +import com.projectmanager.AstroResult; +import com.projectmanager.models.FileDto; + + +/** + * Contains all methods related to NptFiles + */ +public class NptFilesClient +{ + private ProjectManagerClient client; + + /** + * Constructor for the NptFiles API collection + * + * @param client A {@link com.projectmanager.ProjectManagerClient} platform client + */ + public NptFilesClient(@NotNull ProjectManagerClient client) { + super(); + this.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. + * + * @param taskId The reference to the task + * @param filename The full path of a file to upload to the API + * @return A {@link com.projectmanager.AstroResult} containing the results + */ + public @NotNull AstroResult uploadFileToNonProjectTasks(@NotNull String taskId, @NotNull byte[] filename) + { + RestRequest r = new RestRequest(this.client, "POST", "/api/data/non-project-tasks/{taskId}/files"); + r.AddPath("{taskId}", taskId == null ? "" : taskId.toString()); + return r.Call(new TypeToken>() {}.getType()); + } +} diff --git a/src/main/java/com/projectmanager/clients/ProjectChargeCodeClient.java b/src/main/java/com/projectmanager/clients/ProjectChargeCodeClient.java index 52f420e..a0ab882 100644 --- a/src/main/java/com/projectmanager/clients/ProjectChargeCodeClient.java +++ b/src/main/java/com/projectmanager/clients/ProjectChargeCodeClient.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/clients/ProjectClient.java b/src/main/java/com/projectmanager/clients/ProjectClient.java index 69110cf..436d785 100644 --- a/src/main/java/com/projectmanager/clients/ProjectClient.java +++ b/src/main/java/com/projectmanager/clients/ProjectClient.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ @@ -52,18 +52,16 @@ public ProjectClient(@NotNull ProjectManagerClient client) { * @param top The number of records to return * @param skip Skips the given number of records and then returns $top records * @param filter Filter the expression according to oData queries - * @param select Specify which properties should be returned * @param orderby Order collection by this field. * @param expand Include related data in the response * @return A {@link com.projectmanager.AstroResult} containing the results */ - public @NotNull AstroResult queryProjects(@Nullable Integer top, @Nullable Integer skip, @Nullable String filter, @Nullable String select, @Nullable String orderby, @Nullable String expand) + public @NotNull AstroResult queryProjects(@Nullable Integer top, @Nullable Integer skip, @Nullable String filter, @Nullable String orderby, @Nullable String expand) { RestRequest r = new RestRequest(this.client, "GET", "/api/data/projects"); if (top != null) { r.AddQuery("$top", top.toString()); } if (skip != null) { r.AddQuery("$skip", skip.toString()); } if (filter != null) { r.AddQuery("$filter", filter.toString()); } - if (select != null) { r.AddQuery("$select", select.toString()); } if (orderby != null) { r.AddQuery("$orderby", orderby.toString()); } if (expand != null) { r.AddQuery("$expand", expand.toString()); } return r.Call(new TypeToken>() {}.getType()); diff --git a/src/main/java/com/projectmanager/clients/ProjectCustomerClient.java b/src/main/java/com/projectmanager/clients/ProjectCustomerClient.java index d78c750..da34a63 100644 --- a/src/main/java/com/projectmanager/clients/ProjectCustomerClient.java +++ b/src/main/java/com/projectmanager/clients/ProjectCustomerClient.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/clients/ProjectFieldClient.java b/src/main/java/com/projectmanager/clients/ProjectFieldClient.java index aa423cc..9f40a53 100644 --- a/src/main/java/com/projectmanager/clients/ProjectFieldClient.java +++ b/src/main/java/com/projectmanager/clients/ProjectFieldClient.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ @@ -27,7 +27,7 @@ import com.projectmanager.models.CreateProjectFieldDto; import com.projectmanager.models.UpdateProjectFieldValueDto; -import com.projectmanager.models.ProjectFieldsValueResponseDto; +import com.projectmanager.models.ProjectFieldValueDto; /** * Contains all methods related to ProjectField @@ -117,12 +117,12 @@ public ProjectFieldClient(@NotNull ProjectManagerClient client) { * @param fieldId The unique identifier or short ID of the ProjectField of the value to retrieve * @return A {@link com.projectmanager.AstroResult} containing the results */ - public @NotNull AstroResult retrieveProjectFieldValue(@NotNull String projectId, @NotNull String fieldId) + public @NotNull AstroResult retrieveProjectFieldValue(@NotNull String projectId, @NotNull String fieldId) { - RestRequest r = new RestRequest(this.client, "GET", "/api/data/projects/{projectId}/fields/{fieldId}"); + RestRequest r = new RestRequest(this.client, "GET", "/api/data/projects/{projectId}/fields/{fieldId}"); r.AddPath("{projectId}", projectId == null ? "" : projectId.toString()); r.AddPath("{fieldId}", fieldId == null ? "" : fieldId.toString()); - return r.Call(new TypeToken>() {}.getType()); + return r.Call(new TypeToken>() {}.getType()); } /** @@ -133,10 +133,10 @@ public ProjectFieldClient(@NotNull ProjectManagerClient client) { * @param projectId The unique identifier of the Project for which we want ProjectField values * @return A {@link com.projectmanager.AstroResult} containing the results */ - public @NotNull AstroResult retrieveAllProjectFieldValues(@NotNull String projectId) + public @NotNull AstroResult retrieveAllProjectFieldValues(@NotNull String projectId) { - RestRequest r = new RestRequest(this.client, "GET", "/api/data/projects/{projectId}/fields"); + RestRequest r = new RestRequest(this.client, "GET", "/api/data/projects/{projectId}/fields"); r.AddPath("{projectId}", projectId == null ? "" : projectId.toString()); - return r.Call(new TypeToken>() {}.getType()); + return r.Call(new TypeToken>() {}.getType()); } } diff --git a/src/main/java/com/projectmanager/clients/ProjectFileClient.java b/src/main/java/com/projectmanager/clients/ProjectFileClient.java index 4d7cb00..a636789 100644 --- a/src/main/java/com/projectmanager/clients/ProjectFileClient.java +++ b/src/main/java/com/projectmanager/clients/ProjectFileClient.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ @@ -49,6 +49,8 @@ public ProjectFileClient(@NotNull 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. + * * @param projectId The reference to the project * @param filename The full path of a file to upload to the API * @return A {@link com.projectmanager.AstroResult} containing the results @@ -69,6 +71,8 @@ public ProjectFileClient(@NotNull 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. + * * @param projectId The reference to the project * @param folderId The reference to the sub folder to put the file into * @param filename The full path of a file to upload to the API diff --git a/src/main/java/com/projectmanager/clients/ProjectFolderClient.java b/src/main/java/com/projectmanager/clients/ProjectFolderClient.java index 0c7f6a5..e79a284 100644 --- a/src/main/java/com/projectmanager/clients/ProjectFolderClient.java +++ b/src/main/java/com/projectmanager/clients/ProjectFolderClient.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/clients/ProjectMembersClient.java b/src/main/java/com/projectmanager/clients/ProjectMembersClient.java index c99f4a2..2d091c4 100644 --- a/src/main/java/com/projectmanager/clients/ProjectMembersClient.java +++ b/src/main/java/com/projectmanager/clients/ProjectMembersClient.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/clients/ProjectPriorityClient.java b/src/main/java/com/projectmanager/clients/ProjectPriorityClient.java index ab467b6..ea5b43a 100644 --- a/src/main/java/com/projectmanager/clients/ProjectPriorityClient.java +++ b/src/main/java/com/projectmanager/clients/ProjectPriorityClient.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/clients/ProjectStatusClient.java b/src/main/java/com/projectmanager/clients/ProjectStatusClient.java index 33b44bf..0fb83af 100644 --- a/src/main/java/com/projectmanager/clients/ProjectStatusClient.java +++ b/src/main/java/com/projectmanager/clients/ProjectStatusClient.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/clients/ProjectTemplateClient.java b/src/main/java/com/projectmanager/clients/ProjectTemplateClient.java index 95b6924..1afbd3a 100644 --- a/src/main/java/com/projectmanager/clients/ProjectTemplateClient.java +++ b/src/main/java/com/projectmanager/clients/ProjectTemplateClient.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/clients/ResourceClient.java b/src/main/java/com/projectmanager/clients/ResourceClient.java index 98b4170..a67a668 100644 --- a/src/main/java/com/projectmanager/clients/ResourceClient.java +++ b/src/main/java/com/projectmanager/clients/ResourceClient.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ @@ -67,18 +67,16 @@ public ResourceClient(@NotNull ProjectManagerClient client) { * @param top The number of records to return * @param skip Skips the given number of records and then returns $top records * @param filter Filter the expression according to oData queries - * @param select Specify which properties should be returned * @param orderby Order collection by this field. * @param expand Include related data in the response * @return A {@link com.projectmanager.AstroResult} containing the results */ - public @NotNull AstroResult queryResources(@Nullable Integer top, @Nullable Integer skip, @Nullable String filter, @Nullable String select, @Nullable String orderby, @Nullable String expand) + public @NotNull AstroResult queryResources(@Nullable Integer top, @Nullable Integer skip, @Nullable String filter, @Nullable String orderby, @Nullable String expand) { RestRequest r = new RestRequest(this.client, "GET", "/api/data/resources"); if (top != null) { r.AddQuery("$top", top.toString()); } if (skip != null) { r.AddQuery("$skip", skip.toString()); } if (filter != null) { r.AddQuery("$filter", filter.toString()); } - if (select != null) { r.AddQuery("$select", select.toString()); } if (orderby != null) { r.AddQuery("$orderby", orderby.toString()); } if (expand != null) { r.AddQuery("$expand", expand.toString()); } return r.Call(new TypeToken>() {}.getType()); diff --git a/src/main/java/com/projectmanager/clients/ResourceSkillClient.java b/src/main/java/com/projectmanager/clients/ResourceSkillClient.java index a1f03a2..0a35865 100644 --- a/src/main/java/com/projectmanager/clients/ResourceSkillClient.java +++ b/src/main/java/com/projectmanager/clients/ResourceSkillClient.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ @@ -52,18 +52,16 @@ public ResourceSkillClient(@NotNull ProjectManagerClient client) { * @param top The number of records to return * @param skip Skips the given number of records and then returns $top records * @param filter Filter the expression according to oData queries - * @param select Specify which properties should be returned * @param orderby Order collection by this field. * @param expand Include related data in the response * @return A {@link com.projectmanager.AstroResult} containing the results */ - public @NotNull AstroResult retrieveResourceSkills(@Nullable Integer top, @Nullable Integer skip, @Nullable String filter, @Nullable String select, @Nullable String orderby, @Nullable String expand) + public @NotNull AstroResult retrieveResourceSkills(@Nullable Integer top, @Nullable Integer skip, @Nullable String filter, @Nullable String orderby, @Nullable String expand) { RestRequest r = new RestRequest(this.client, "GET", "/api/data/resources/skills"); if (top != null) { r.AddQuery("$top", top.toString()); } if (skip != null) { r.AddQuery("$skip", skip.toString()); } if (filter != null) { r.AddQuery("$filter", filter.toString()); } - if (select != null) { r.AddQuery("$select", select.toString()); } if (orderby != null) { r.AddQuery("$orderby", orderby.toString()); } if (expand != null) { r.AddQuery("$expand", expand.toString()); } return r.Call(new TypeToken>() {}.getType()); diff --git a/src/main/java/com/projectmanager/clients/ResourceTeamClient.java b/src/main/java/com/projectmanager/clients/ResourceTeamClient.java index 318207d..68a3194 100644 --- a/src/main/java/com/projectmanager/clients/ResourceTeamClient.java +++ b/src/main/java/com/projectmanager/clients/ResourceTeamClient.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ @@ -52,18 +52,16 @@ public ResourceTeamClient(@NotNull ProjectManagerClient client) { * @param top The number of records to return * @param skip Skips the given number of records and then returns $top records * @param filter Filter the expression according to oData queries - * @param select Specify which properties should be returned * @param orderby Order collection by this field. * @param expand Include related data in the response * @return A {@link com.projectmanager.AstroResult} containing the results */ - public @NotNull AstroResult retrieveResourceTeams(@Nullable Integer top, @Nullable Integer skip, @Nullable String filter, @Nullable String select, @Nullable String orderby, @Nullable String expand) + public @NotNull AstroResult retrieveResourceTeams(@Nullable Integer top, @Nullable Integer skip, @Nullable String filter, @Nullable String orderby, @Nullable String expand) { RestRequest r = new RestRequest(this.client, "GET", "/api/data/resources/teams"); if (top != null) { r.AddQuery("$top", top.toString()); } if (skip != null) { r.AddQuery("$skip", skip.toString()); } if (filter != null) { r.AddQuery("$filter", filter.toString()); } - if (select != null) { r.AddQuery("$select", select.toString()); } if (orderby != null) { r.AddQuery("$orderby", orderby.toString()); } if (expand != null) { r.AddQuery("$expand", expand.toString()); } return r.Call(new TypeToken>() {}.getType()); diff --git a/src/main/java/com/projectmanager/clients/TagClient.java b/src/main/java/com/projectmanager/clients/TagClient.java index a40f1de..3276e86 100644 --- a/src/main/java/com/projectmanager/clients/TagClient.java +++ b/src/main/java/com/projectmanager/clients/TagClient.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ @@ -52,18 +52,16 @@ public TagClient(@NotNull ProjectManagerClient client) { * @param top The number of records to return * @param skip Skips the given number of records and then returns $top records * @param filter Filter the expression according to oData queries - * @param select Specify which properties should be returned * @param orderby Order collection by this field. * @param expand Include related data in the response * @return A {@link com.projectmanager.AstroResult} containing the results */ - public @NotNull AstroResult queryTags(@Nullable Integer top, @Nullable Integer skip, @Nullable String filter, @Nullable String select, @Nullable String orderby, @Nullable String expand) + public @NotNull AstroResult queryTags(@Nullable Integer top, @Nullable Integer skip, @Nullable String filter, @Nullable String orderby, @Nullable String expand) { RestRequest r = new RestRequest(this.client, "GET", "/api/data/tags"); if (top != null) { r.AddQuery("$top", top.toString()); } if (skip != null) { r.AddQuery("$skip", skip.toString()); } if (filter != null) { r.AddQuery("$filter", filter.toString()); } - if (select != null) { r.AddQuery("$select", select.toString()); } if (orderby != null) { r.AddQuery("$orderby", orderby.toString()); } if (expand != null) { r.AddQuery("$expand", expand.toString()); } return r.Call(new TypeToken>() {}.getType()); diff --git a/src/main/java/com/projectmanager/clients/TaskAssigneeClient.java b/src/main/java/com/projectmanager/clients/TaskAssigneeClient.java index 984f2f8..00d3faa 100644 --- a/src/main/java/com/projectmanager/clients/TaskAssigneeClient.java +++ b/src/main/java/com/projectmanager/clients/TaskAssigneeClient.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ @@ -47,7 +47,9 @@ public TaskAssigneeClient(@NotNull 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. * * @param taskId The unique identifier of the Task whose TaskAssignees will be replaced * @param body The new list of TaskAssignees for this Task diff --git a/src/main/java/com/projectmanager/clients/TaskClient.java b/src/main/java/com/projectmanager/clients/TaskClient.java index c2e17cf..8c9bf76 100644 --- a/src/main/java/com/projectmanager/clients/TaskClient.java +++ b/src/main/java/com/projectmanager/clients/TaskClient.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ @@ -54,18 +54,16 @@ public TaskClient(@NotNull ProjectManagerClient client) { * @param top The number of records to return * @param skip Skips the given number of records and then returns $top records * @param filter Filter the expression according to oData queries - * @param select Specify which properties should be returned * @param orderby Order collection by this field. * @param expand Include related data in the response * @return A {@link com.projectmanager.AstroResult} containing the results */ - public @NotNull AstroResult queryTasks(@Nullable Integer top, @Nullable Integer skip, @Nullable String filter, @Nullable String select, @Nullable String orderby, @Nullable String expand) + public @NotNull AstroResult queryTasks(@Nullable Integer top, @Nullable Integer skip, @Nullable String filter, @Nullable String orderby, @Nullable String expand) { RestRequest r = new RestRequest(this.client, "GET", "/api/data/tasks"); if (top != null) { r.AddQuery("$top", top.toString()); } if (skip != null) { r.AddQuery("$skip", skip.toString()); } if (filter != null) { r.AddQuery("$filter", filter.toString()); } - if (select != null) { r.AddQuery("$select", select.toString()); } if (orderby != null) { r.AddQuery("$orderby", orderby.toString()); } if (expand != null) { r.AddQuery("$expand", expand.toString()); } return r.Call(new TypeToken>() {}.getType()); diff --git a/src/main/java/com/projectmanager/clients/TaskFieldClient.java b/src/main/java/com/projectmanager/clients/TaskFieldClient.java index ba64c4f..5c3bf39 100644 --- a/src/main/java/com/projectmanager/clients/TaskFieldClient.java +++ b/src/main/java/com/projectmanager/clients/TaskFieldClient.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ @@ -86,18 +86,16 @@ public TaskFieldClient(@NotNull ProjectManagerClient client) { * @param top The number of records to return * @param skip Skips the given number of records and then returns $top records * @param filter Filter the expression according to oData queries - * @param select Specify which properties should be returned * @param orderby Order collection by this field. * @param expand Include related data in the response * @return A {@link com.projectmanager.AstroResult} containing the results */ - public @NotNull AstroResult queryTaskFields(@Nullable Integer top, @Nullable Integer skip, @Nullable String filter, @Nullable String select, @Nullable String orderby, @Nullable String expand) + public @NotNull AstroResult queryTaskFields(@Nullable Integer top, @Nullable Integer skip, @Nullable String filter, @Nullable String orderby, @Nullable String expand) { RestRequest r = new RestRequest(this.client, "GET", "/api/data/projects/tasks/fields"); if (top != null) { r.AddQuery("$top", top.toString()); } if (skip != null) { r.AddQuery("$skip", skip.toString()); } if (filter != null) { r.AddQuery("$filter", filter.toString()); } - if (select != null) { r.AddQuery("$select", select.toString()); } if (orderby != null) { r.AddQuery("$orderby", orderby.toString()); } if (expand != null) { r.AddQuery("$expand", expand.toString()); } return r.Call(new TypeToken>() {}.getType()); @@ -143,18 +141,16 @@ public TaskFieldClient(@NotNull ProjectManagerClient client) { * @param top The number of records to return * @param skip Skips the given number of records and then returns $top records * @param filter Filter the expression according to oData queries - * @param select Specify which properties should be returned * @param orderby Order collection by this field. * @param expand Include related data in the response * @return A {@link com.projectmanager.AstroResult} containing the results */ - public @NotNull AstroResult queryTaskFieldValues(@Nullable Integer top, @Nullable Integer skip, @Nullable String filter, @Nullable String select, @Nullable String orderby, @Nullable String expand) + public @NotNull AstroResult queryTaskFieldValues(@Nullable Integer top, @Nullable Integer skip, @Nullable String filter, @Nullable String orderby, @Nullable String expand) { RestRequest r = new RestRequest(this.client, "GET", "/api/data/tasks/fields/values"); if (top != null) { r.AddQuery("$top", top.toString()); } if (skip != null) { r.AddQuery("$skip", skip.toString()); } if (filter != null) { r.AddQuery("$filter", filter.toString()); } - if (select != null) { r.AddQuery("$select", select.toString()); } if (orderby != null) { r.AddQuery("$orderby", orderby.toString()); } if (expand != null) { r.AddQuery("$expand", expand.toString()); } return r.Call(new TypeToken>() {}.getType()); diff --git a/src/main/java/com/projectmanager/clients/TaskFileClient.java b/src/main/java/com/projectmanager/clients/TaskFileClient.java index d456cd5..a3ba1c8 100644 --- a/src/main/java/com/projectmanager/clients/TaskFileClient.java +++ b/src/main/java/com/projectmanager/clients/TaskFileClient.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ @@ -49,6 +49,8 @@ public TaskFileClient(@NotNull 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. + * * @param taskId The reference to the task * @param filename The full path of a file to upload to the API * @return A {@link com.projectmanager.AstroResult} containing the results diff --git a/src/main/java/com/projectmanager/clients/TaskMetadataClient.java b/src/main/java/com/projectmanager/clients/TaskMetadataClient.java new file mode 100644 index 0000000..3c7f5b1 --- /dev/null +++ b/src/main/java/com/projectmanager/clients/TaskMetadataClient.java @@ -0,0 +1,80 @@ + +/** + * ProjectManager API for Java + * + * (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-java + */ + + +package com.projectmanager.clients; + +import com.projectmanager.ProjectManagerClient; +import com.projectmanager.RestRequest; +import com.projectmanager.BlobRequest; +import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; +import com.google.gson.reflect.TypeToken; +import com.projectmanager.AstroResult; + +import com.projectmanager.models.TaskMetadataUpdateDto; +import com.projectmanager.models.TaskMetadataSearchDto; + +/** + * Contains all methods related to TaskMetadata + */ +public class TaskMetadataClient +{ + private ProjectManagerClient client; + + /** + * Constructor for the TaskMetadata API collection + * + * @param client A {@link com.projectmanager.ProjectManagerClient} platform client + */ + public TaskMetadataClient(@NotNull ProjectManagerClient client) { + super(); + this.client = client; + } + + /** + * Adds a metadata to a task + * + * @param taskId Task ID + * @param isSystem If metadata is for system or customer, isSystem = true is only of ProjectManager + * @param isOverride If false we merge with the keys + * @param body The metadata + * @return A {@link com.projectmanager.AstroResult} containing the results + */ + public @NotNull AstroResult addMetadata(@NotNull String taskId, @Nullable Boolean isSystem, @Nullable Boolean isOverride, @NotNull TaskMetadataUpdateDto body) + { + RestRequest r = new RestRequest(this.client, "PUT", "/api/data/tasks/{taskId}/metadata"); + r.AddPath("{taskId}", taskId == null ? "" : taskId.toString()); + if (isSystem != null) { r.AddQuery("isSystem", isSystem.toString()); } + if (isOverride != null) { r.AddQuery("isOverride", isOverride.toString()); } + if (body != null) { r.AddBody(body); } + return r.Call(new TypeToken>() {}.getType()); + } + + /** + * + * @param foreignKey Foreign Key ID + * @param projectId Project ID + * @param isSystem If metadata is for system or customer, isSystem = true is only of ProjectManager + * @return A {@link com.projectmanager.AstroResult} containing the results + */ + public @NotNull AstroResult gettasksbyprojectIDandforeignkeyID(@Nullable String foreignKey, @NotNull String projectId, @Nullable Boolean isSystem) + { + RestRequest r = new RestRequest(this.client, "GET", "/api/data/projects/{projectId}/tasks/metadata"); + if (foreignKey != null) { r.AddQuery("foreignKey", foreignKey.toString()); } + r.AddPath("{projectId}", projectId == null ? "" : projectId.toString()); + if (isSystem != null) { r.AddQuery("isSystem", isSystem.toString()); } + return r.Call(new TypeToken>() {}.getType()); + } +} diff --git a/src/main/java/com/projectmanager/clients/TaskStatusClient.java b/src/main/java/com/projectmanager/clients/TaskStatusClient.java index 4b19d7a..1581b51 100644 --- a/src/main/java/com/projectmanager/clients/TaskStatusClient.java +++ b/src/main/java/com/projectmanager/clients/TaskStatusClient.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/clients/TaskTagClient.java b/src/main/java/com/projectmanager/clients/TaskTagClient.java index b747664..b51f398 100644 --- a/src/main/java/com/projectmanager/clients/TaskTagClient.java +++ b/src/main/java/com/projectmanager/clients/TaskTagClient.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/clients/TeamsClient.java b/src/main/java/com/projectmanager/clients/TeamsClient.java index f80978d..6a99caf 100644 --- a/src/main/java/com/projectmanager/clients/TeamsClient.java +++ b/src/main/java/com/projectmanager/clients/TeamsClient.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/clients/TimesheetClient.java b/src/main/java/com/projectmanager/clients/TimesheetClient.java index 6622380..b4721a8 100644 --- a/src/main/java/com/projectmanager/clients/TimesheetClient.java +++ b/src/main/java/com/projectmanager/clients/TimesheetClient.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ @@ -67,18 +67,16 @@ public TimesheetClient(@NotNull ProjectManagerClient client) { * @param top The number of records to return * @param skip Skips the given number of records and then returns $top records * @param filter Filter the expression according to oData queries - * @param select Specify which properties should be returned * @param orderby Order collection by this field. * @param expand Include related data in the response * @return A {@link com.projectmanager.AstroResult} containing the results */ - public @NotNull AstroResult queryTimeSheets(@Nullable Integer top, @Nullable Integer skip, @Nullable String filter, @Nullable String select, @Nullable String orderby, @Nullable String expand) + public @NotNull AstroResult queryTimeSheets(@Nullable Integer top, @Nullable Integer skip, @Nullable String filter, @Nullable String orderby, @Nullable String expand) { RestRequest r = new RestRequest(this.client, "GET", "/api/data/timesheets"); if (top != null) { r.AddQuery("$top", top.toString()); } if (skip != null) { r.AddQuery("$skip", skip.toString()); } if (filter != null) { r.AddQuery("$filter", filter.toString()); } - if (select != null) { r.AddQuery("$select", select.toString()); } if (orderby != null) { r.AddQuery("$orderby", orderby.toString()); } if (expand != null) { r.AddQuery("$expand", expand.toString()); } return r.Call(new TypeToken>() {}.getType()); diff --git a/src/main/java/com/projectmanager/clients/UserRoleClient.java b/src/main/java/com/projectmanager/clients/UserRoleClient.java index fdeb486..5c6a030 100644 --- a/src/main/java/com/projectmanager/clients/UserRoleClient.java +++ b/src/main/java/com/projectmanager/clients/UserRoleClient.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/clients/WorkSpaceClient.java b/src/main/java/com/projectmanager/clients/WorkSpaceClient.java index 7ff102b..266f536 100644 --- a/src/main/java/com/projectmanager/clients/WorkSpaceClient.java +++ b/src/main/java/com/projectmanager/clients/WorkSpaceClient.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/ApiKeyCreateDto.java b/src/main/java/com/projectmanager/models/ApiKeyCreateDto.java index 2fd3ae9..d660d45 100644 --- a/src/main/java/com/projectmanager/models/ApiKeyCreateDto.java +++ b/src/main/java/com/projectmanager/models/ApiKeyCreateDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/ApiKeyDto.java b/src/main/java/com/projectmanager/models/ApiKeyDto.java index b21d74e..dda1c38 100644 --- a/src/main/java/com/projectmanager/models/ApiKeyDto.java +++ b/src/main/java/com/projectmanager/models/ApiKeyDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/AssigneeUpsertDto.java b/src/main/java/com/projectmanager/models/AssigneeUpsertDto.java index d613b10..aa823d6 100644 --- a/src/main/java/com/projectmanager/models/AssigneeUpsertDto.java +++ b/src/main/java/com/projectmanager/models/AssigneeUpsertDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ @@ -41,13 +41,13 @@ public class AssigneeUpsertDto */ public void setId(@NotNull String value) { this.id = value; } /** - * 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. * * @return The field assignedEffort */ public @NotNull Integer getAssignedEffort() { return this.assignedEffort; } /** - * 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. * * @param value The new value for assignedEffort */ diff --git a/src/main/java/com/projectmanager/models/AuthenticationDto.java b/src/main/java/com/projectmanager/models/AuthenticationDto.java index e1a1170..c258e47 100644 --- a/src/main/java/com/projectmanager/models/AuthenticationDto.java +++ b/src/main/java/com/projectmanager/models/AuthenticationDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/AuthenticationStatusDto.java b/src/main/java/com/projectmanager/models/AuthenticationStatusDto.java index ac60d78..f0fbc44 100644 --- a/src/main/java/com/projectmanager/models/AuthenticationStatusDto.java +++ b/src/main/java/com/projectmanager/models/AuthenticationStatusDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/ChangeSetStatusDto.java b/src/main/java/com/projectmanager/models/ChangeSetStatusDto.java index 7beee25..4c667da 100644 --- a/src/main/java/com/projectmanager/models/ChangeSetStatusDto.java +++ b/src/main/java/com/projectmanager/models/ChangeSetStatusDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/ChangesetGetResponseDto.java b/src/main/java/com/projectmanager/models/ChangesetGetResponseDto.java index 83b8721..0658c74 100644 --- a/src/main/java/com/projectmanager/models/ChangesetGetResponseDto.java +++ b/src/main/java/com/projectmanager/models/ChangesetGetResponseDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/ConnectionSchemaDto.java b/src/main/java/com/projectmanager/models/ConnectionSchemaDto.java index d8727fd..cdb8e5b 100644 --- a/src/main/java/com/projectmanager/models/ConnectionSchemaDto.java +++ b/src/main/java/com/projectmanager/models/ConnectionSchemaDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/CountryHolidayDto.java b/src/main/java/com/projectmanager/models/CountryHolidayDto.java new file mode 100644 index 0000000..d0f74c3 --- /dev/null +++ b/src/main/java/com/projectmanager/models/CountryHolidayDto.java @@ -0,0 +1,66 @@ + +/** + * ProjectManager API for Java + * + * (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-java + */ + + +package com.projectmanager.models; + +import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; + +/** + * Country holiday entry + */ +public class CountryHolidayDto +{ + private @NotNull String id; + private @NotNull String date; + private @NotNull Integer countryId; + + /** + * Holiday id + * + * @return The field id + */ + public @NotNull String getId() { return this.id; } + /** + * Holiday id + * + * @param value The new value for id + */ + public void setId(@NotNull String value) { this.id = value; } + /** + * Date of holiday + * + * @return The field date + */ + public @NotNull String getDate() { return this.date; } + /** + * Date of holiday + * + * @param value The new value for date + */ + public void setDate(@NotNull String value) { this.date = value; } + /** + * Country id holiday associated to + * + * @return The field countryId + */ + public @NotNull Integer getCountryId() { return this.countryId; } + /** + * Country id holiday associated to + * + * @param value The new value for countryId + */ + public void setCountryId(@NotNull Integer value) { this.countryId = value; } +}; diff --git a/src/main/java/com/projectmanager/models/CreateProjectFieldDto.java b/src/main/java/com/projectmanager/models/CreateProjectFieldDto.java index 88afa93..57be044 100644 --- a/src/main/java/com/projectmanager/models/CreateProjectFieldDto.java +++ b/src/main/java/com/projectmanager/models/CreateProjectFieldDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/CreateProjectFieldResponseDto.java b/src/main/java/com/projectmanager/models/CreateProjectFieldResponseDto.java index 24b3ebd..6ef0992 100644 --- a/src/main/java/com/projectmanager/models/CreateProjectFieldResponseDto.java +++ b/src/main/java/com/projectmanager/models/CreateProjectFieldResponseDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/CreateResourceSkillDto.java b/src/main/java/com/projectmanager/models/CreateResourceSkillDto.java index 3500f86..5bbeadc 100644 --- a/src/main/java/com/projectmanager/models/CreateResourceSkillDto.java +++ b/src/main/java/com/projectmanager/models/CreateResourceSkillDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/CreateResourceTeamDto.java b/src/main/java/com/projectmanager/models/CreateResourceTeamDto.java index eb30694..4a6c39d 100644 --- a/src/main/java/com/projectmanager/models/CreateResourceTeamDto.java +++ b/src/main/java/com/projectmanager/models/CreateResourceTeamDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/CreateTaskFieldDto.java b/src/main/java/com/projectmanager/models/CreateTaskFieldDto.java index c0f9111..f2579e6 100644 --- a/src/main/java/com/projectmanager/models/CreateTaskFieldDto.java +++ b/src/main/java/com/projectmanager/models/CreateTaskFieldDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/DashboardSettingCreateDto.java b/src/main/java/com/projectmanager/models/DashboardSettingCreateDto.java index 0743c85..7a493d5 100644 --- a/src/main/java/com/projectmanager/models/DashboardSettingCreateDto.java +++ b/src/main/java/com/projectmanager/models/DashboardSettingCreateDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/DashboardSettingDto.java b/src/main/java/com/projectmanager/models/DashboardSettingDto.java index cfc58ea..c753c60 100644 --- a/src/main/java/com/projectmanager/models/DashboardSettingDto.java +++ b/src/main/java/com/projectmanager/models/DashboardSettingDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/DirectLinkDto.java b/src/main/java/com/projectmanager/models/DirectLinkDto.java index 780c6e9..b993f07 100644 --- a/src/main/java/com/projectmanager/models/DirectLinkDto.java +++ b/src/main/java/com/projectmanager/models/DirectLinkDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/DiscussionCreateDto.java b/src/main/java/com/projectmanager/models/DiscussionCommentCreateDto.java similarity index 92% rename from src/main/java/com/projectmanager/models/DiscussionCreateDto.java rename to src/main/java/com/projectmanager/models/DiscussionCommentCreateDto.java index 9bb5899..6e9f34d 100644 --- a/src/main/java/com/projectmanager/models/DiscussionCreateDto.java +++ b/src/main/java/com/projectmanager/models/DiscussionCommentCreateDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ @@ -24,7 +24,7 @@ * 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 +public class DiscussionCommentCreateDto { private @Nullable String text; diff --git a/src/main/java/com/projectmanager/models/DiscussionCreateResponseDto.java b/src/main/java/com/projectmanager/models/DiscussionCommentCreateResponseDto.java similarity index 90% rename from src/main/java/com/projectmanager/models/DiscussionCreateResponseDto.java rename to src/main/java/com/projectmanager/models/DiscussionCommentCreateResponseDto.java index 7f96835..3ee02d8 100644 --- a/src/main/java/com/projectmanager/models/DiscussionCreateResponseDto.java +++ b/src/main/java/com/projectmanager/models/DiscussionCommentCreateResponseDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ @@ -24,7 +24,7 @@ * 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 +public class DiscussionCommentCreateResponseDto { private @NotNull String discussionCommentId; diff --git a/src/main/java/com/projectmanager/models/DiscussionDto.java b/src/main/java/com/projectmanager/models/DiscussionCommentDto.java similarity index 76% rename from src/main/java/com/projectmanager/models/DiscussionDto.java rename to src/main/java/com/projectmanager/models/DiscussionCommentDto.java index 0e2731a..eeb8981 100644 --- a/src/main/java/com/projectmanager/models/DiscussionDto.java +++ b/src/main/java/com/projectmanager/models/DiscussionCommentDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ @@ -24,16 +24,29 @@ * 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 +public class DiscussionCommentDto { + private @NotNull String id; private @Nullable String text; - private @NotNull String discussionCommentId; private @NotNull String authorId; private @Nullable String authorName; private @NotNull String createDate; private @Nullable String modifyDate; private @Nullable DiscussionEmoji[] emoji; + private @Nullable DiscussionCommentFileDto[] files; + /** + * The unique ID of the discussion comment. + * + * @return The field id + */ + public @NotNull String getId() { return this.id; } + /** + * The unique ID of the discussion comment. + * + * @param value The new value for id + */ + public void setId(@NotNull String value) { this.id = value; } /** * The text of the comment to add to the discussion, in Markdown format. * @@ -54,18 +67,6 @@ public class DiscussionDto * @param value The new value for text */ public void setText(@Nullable String value) { this.text = value; } - /** - * The unique ID of the discussion comment. - * - * @return The field discussionCommentId - */ - public @NotNull String getDiscussionCommentId() { return this.discussionCommentId; } - /** - * The unique ID of the discussion comment. - * - * @param value The new value for discussionCommentId - */ - public void setDiscussionCommentId(@NotNull String value) { this.discussionCommentId = value; } /** * The unique ID of the resource that wrote this comment. * @@ -128,4 +129,24 @@ public class DiscussionDto * @param value The new value for emoji */ public void setEmoji(@Nullable DiscussionEmoji[] value) { this.emoji = value; } + /** + * 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. + * + * @return The field files + */ + public @Nullable DiscussionCommentFileDto[] getFiles() { return this.files; } + /** + * 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. + * + * @param value The new value for files + */ + public void setFiles(@Nullable DiscussionCommentFileDto[] value) { this.files = value; } }; diff --git a/src/main/java/com/projectmanager/models/ODataSingletonInfo.java b/src/main/java/com/projectmanager/models/DiscussionCommentFileDto.java similarity index 57% rename from src/main/java/com/projectmanager/models/ODataSingletonInfo.java rename to src/main/java/com/projectmanager/models/DiscussionCommentFileDto.java index b4906da..b0c45e5 100644 --- a/src/main/java/com/projectmanager/models/ODataSingletonInfo.java +++ b/src/main/java/com/projectmanager/models/DiscussionCommentFileDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ @@ -18,51 +18,46 @@ import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; -public class ODataSingletonInfo +public class DiscussionCommentFileDto { - private @Nullable ODataTypeAnnotation typeAnnotation; - private @Nullable String url; + private @NotNull String id; private @Nullable String name; - private @Nullable String title; + private @Nullable String url; /** + * The identifier for this file * - * @return The field typeAnnotation - */ - public @Nullable ODataTypeAnnotation getTypeAnnotation() { return this.typeAnnotation; } - /** - * - * @param value The new value for typeAnnotation - */ - public void setTypeAnnotation(@Nullable ODataTypeAnnotation value) { this.typeAnnotation = value; } - /** - * - * @return The field url + * @return The field id */ - public @Nullable String getUrl() { return this.url; } + public @NotNull String getId() { return this.id; } /** + * The identifier for this file * - * @param value The new value for url + * @param value The new value for id */ - public void setUrl(@Nullable String value) { this.url = value; } + public void setId(@NotNull String value) { this.id = value; } /** + * The name of the file * * @return The field name */ public @Nullable String getName() { return this.name; } /** + * The name of the file * * @param value The new value for name */ public void setName(@Nullable String value) { this.name = value; } /** + * The url of the file which can be used for downloading * - * @return The field title + * @return The field url */ - public @Nullable String getTitle() { return this.title; } + public @Nullable String getUrl() { return this.url; } /** + * The url of the file which can be used for downloading * - * @param value The new value for title + * @param value The new value for url */ - public void setTitle(@Nullable String value) { this.title = value; } + public void setUrl(@Nullable String value) { this.url = value; } }; diff --git a/src/main/java/com/projectmanager/models/DiscussionEmoji.java b/src/main/java/com/projectmanager/models/DiscussionEmoji.java index e3baed9..f6da644 100644 --- a/src/main/java/com/projectmanager/models/DiscussionEmoji.java +++ b/src/main/java/com/projectmanager/models/DiscussionEmoji.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/FileDto.java b/src/main/java/com/projectmanager/models/FileDto.java index 062b0b4..2d1c59d 100644 --- a/src/main/java/com/projectmanager/models/FileDto.java +++ b/src/main/java/com/projectmanager/models/FileDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/GetProjectFieldsResponseDto.java b/src/main/java/com/projectmanager/models/GetProjectFieldsResponseDto.java index 1cf7371..189248f 100644 --- a/src/main/java/com/projectmanager/models/GetProjectFieldsResponseDto.java +++ b/src/main/java/com/projectmanager/models/GetProjectFieldsResponseDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/GlobalHolidayDto.java b/src/main/java/com/projectmanager/models/GlobalHolidayDto.java new file mode 100644 index 0000000..759e884 --- /dev/null +++ b/src/main/java/com/projectmanager/models/GlobalHolidayDto.java @@ -0,0 +1,53 @@ + +/** + * ProjectManager API for Java + * + * (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-java + */ + + +package com.projectmanager.models; + +import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; + +/** + * Global holiday entry + */ +public class GlobalHolidayDto +{ + private @NotNull String id; + private @NotNull String date; + + /** + * Holiday id + * + * @return The field id + */ + public @NotNull String getId() { return this.id; } + /** + * Holiday id + * + * @param value The new value for id + */ + public void setId(@NotNull String value) { this.id = value; } + /** + * Date of holiday + * + * @return The field date + */ + public @NotNull String getDate() { return this.date; } + /** + * Date of holiday + * + * @param value The new value for date + */ + public void setDate(@NotNull String value) { this.date = value; } +}; diff --git a/src/main/java/com/projectmanager/models/IdDto.java b/src/main/java/com/projectmanager/models/IdDto.java index 0e3989d..75cd656 100644 --- a/src/main/java/com/projectmanager/models/IdDto.java +++ b/src/main/java/com/projectmanager/models/IdDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/IntegrationAuthSetupDto.java b/src/main/java/com/projectmanager/models/IntegrationAuthSetupDto.java index 084f93f..cee66ad 100644 --- a/src/main/java/com/projectmanager/models/IntegrationAuthSetupDto.java +++ b/src/main/java/com/projectmanager/models/IntegrationAuthSetupDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/IntegrationCategoryDto.java b/src/main/java/com/projectmanager/models/IntegrationCategoryDto.java index 36d2da6..f68e3ec 100644 --- a/src/main/java/com/projectmanager/models/IntegrationCategoryDto.java +++ b/src/main/java/com/projectmanager/models/IntegrationCategoryDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/IntegrationConnectionSchemeObjectDto.java b/src/main/java/com/projectmanager/models/IntegrationConnectionSchemeObjectDto.java index 3791f43..6ec9d4d 100644 --- a/src/main/java/com/projectmanager/models/IntegrationConnectionSchemeObjectDto.java +++ b/src/main/java/com/projectmanager/models/IntegrationConnectionSchemeObjectDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/IntegrationDto.java b/src/main/java/com/projectmanager/models/IntegrationDto.java index 290da87..9543611 100644 --- a/src/main/java/com/projectmanager/models/IntegrationDto.java +++ b/src/main/java/com/projectmanager/models/IntegrationDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/IntegrationInstanceDto.java b/src/main/java/com/projectmanager/models/IntegrationInstanceDto.java index 1430daf..0425820 100644 --- a/src/main/java/com/projectmanager/models/IntegrationInstanceDto.java +++ b/src/main/java/com/projectmanager/models/IntegrationInstanceDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/IntegrationProviderDto.java b/src/main/java/com/projectmanager/models/IntegrationProviderDto.java index 57b7cd8..5928e4c 100644 --- a/src/main/java/com/projectmanager/models/IntegrationProviderDto.java +++ b/src/main/java/com/projectmanager/models/IntegrationProviderDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/LicenseDto.java b/src/main/java/com/projectmanager/models/LicenseDto.java index 3f685fb..182b939 100644 --- a/src/main/java/com/projectmanager/models/LicenseDto.java +++ b/src/main/java/com/projectmanager/models/LicenseDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/MasterConnectionSchemeDto.java b/src/main/java/com/projectmanager/models/MasterConnectionSchemeDto.java index 8b30b6a..1422fb0 100644 --- a/src/main/java/com/projectmanager/models/MasterConnectionSchemeDto.java +++ b/src/main/java/com/projectmanager/models/MasterConnectionSchemeDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/NameDto.java b/src/main/java/com/projectmanager/models/NameDto.java index 9aa90d9..89df5dc 100644 --- a/src/main/java/com/projectmanager/models/NameDto.java +++ b/src/main/java/com/projectmanager/models/NameDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/ODataServiceDocument.java b/src/main/java/com/projectmanager/models/ODataServiceDocument.java deleted file mode 100644 index 31438e7..0000000 --- a/src/main/java/com/projectmanager/models/ODataServiceDocument.java +++ /dev/null @@ -1,68 +0,0 @@ - -/** - * ProjectManager API for Java - * - * (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-java - */ - - -package com.projectmanager.models; - -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; - -public class ODataServiceDocument -{ - private @Nullable ODataTypeAnnotation typeAnnotation; - private @Nullable ODataEntitySetInfo[] entitySets; - private @Nullable ODataSingletonInfo[] singletons; - private @Nullable ODataFunctionImportInfo[] functionImports; - - /** - * - * @return The field typeAnnotation - */ - public @Nullable ODataTypeAnnotation getTypeAnnotation() { return this.typeAnnotation; } - /** - * - * @param value The new value for typeAnnotation - */ - public void setTypeAnnotation(@Nullable ODataTypeAnnotation value) { this.typeAnnotation = value; } - /** - * - * @return The field entitySets - */ - public @Nullable ODataEntitySetInfo[] getEntitySets() { return this.entitySets; } - /** - * - * @param value The new value for entitySets - */ - public void setEntitySets(@Nullable ODataEntitySetInfo[] value) { this.entitySets = value; } - /** - * - * @return The field singletons - */ - public @Nullable ODataSingletonInfo[] getSingletons() { return this.singletons; } - /** - * - * @param value The new value for singletons - */ - public void setSingletons(@Nullable ODataSingletonInfo[] value) { this.singletons = value; } - /** - * - * @return The field functionImports - */ - public @Nullable ODataFunctionImportInfo[] getFunctionImports() { return this.functionImports; } - /** - * - * @param value The new value for functionImports - */ - public void setFunctionImports(@Nullable ODataFunctionImportInfo[] value) { this.functionImports = value; } -}; diff --git a/src/main/java/com/projectmanager/models/PermissionOptionsDto.java b/src/main/java/com/projectmanager/models/PermissionOptionsDto.java index c547157..ff9cee2 100644 --- a/src/main/java/com/projectmanager/models/PermissionOptionsDto.java +++ b/src/main/java/com/projectmanager/models/PermissionOptionsDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/ProjectChargeCodeDto.java b/src/main/java/com/projectmanager/models/ProjectChargeCodeDto.java index 9707e53..1576a1b 100644 --- a/src/main/java/com/projectmanager/models/ProjectChargeCodeDto.java +++ b/src/main/java/com/projectmanager/models/ProjectChargeCodeDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/ProjectCreateAccessDto.java b/src/main/java/com/projectmanager/models/ProjectCreateAccessDto.java index 94ca90b..05430e1 100644 --- a/src/main/java/com/projectmanager/models/ProjectCreateAccessDto.java +++ b/src/main/java/com/projectmanager/models/ProjectCreateAccessDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/ProjectCreateAccessMemberDto.java b/src/main/java/com/projectmanager/models/ProjectCreateAccessMemberDto.java index 5f5d1d2..27074cc 100644 --- a/src/main/java/com/projectmanager/models/ProjectCreateAccessMemberDto.java +++ b/src/main/java/com/projectmanager/models/ProjectCreateAccessMemberDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/ProjectCreateDto.java b/src/main/java/com/projectmanager/models/ProjectCreateDto.java index dbacfc8..b61eb82 100644 --- a/src/main/java/com/projectmanager/models/ProjectCreateDto.java +++ b/src/main/java/com/projectmanager/models/ProjectCreateDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/ProjectCustomerDto.java b/src/main/java/com/projectmanager/models/ProjectCustomerDto.java index d94d744..d90c0aa 100644 --- a/src/main/java/com/projectmanager/models/ProjectCustomerDto.java +++ b/src/main/java/com/projectmanager/models/ProjectCustomerDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/ProjectDto.java b/src/main/java/com/projectmanager/models/ProjectDto.java index df88e65..c2419c0 100644 --- a/src/main/java/com/projectmanager/models/ProjectDto.java +++ b/src/main/java/com/projectmanager/models/ProjectDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ @@ -50,8 +50,10 @@ public class ProjectDto private @NotNull String createDate; private @NotNull Boolean isTemplate; private @NotNull Boolean favorite; + private @Nullable String creationTemplateId; private @Nullable ProjectMemberDto[] members; - private @Nullable Object fields; + private @Nullable ProjectFieldValueDto[] fieldValues; + private @Nullable ProjectFileDto[] files; /** * The unique identifier of the Project. This value is set by the system and cannot @@ -449,6 +451,20 @@ public class ProjectDto * @param value The new value for favorite */ public void setFavorite(@NotNull Boolean value) { this.favorite = value; } + /** + * The TemplateId that this project was created from. + * Will be null if no template was selected at project creation. + * + * @return The field creationTemplateId + */ + public @Nullable String getCreationTemplateId() { return this.creationTemplateId; } + /** + * The TemplateId that this project was created from. + * Will be null if no template was selected at project creation. + * + * @param value The new value for creationTemplateId + */ + public void setCreationTemplateId(@Nullable String value) { this.creationTemplateId = value; } /** * The members of the project * @@ -464,13 +480,33 @@ public class ProjectDto /** * Project fields array with values * - * @return The field fields + * @return The field fieldValues */ - public @Nullable Object getFields() { return this.fields; } + public @Nullable ProjectFieldValueDto[] getFieldValues() { return this.fieldValues; } /** * Project fields array with values * - * @param value The new value for fields + * @param value The new value for fieldValues + */ + public void setFieldValues(@Nullable ProjectFieldValueDto[] value) { this.fieldValues = value; } + /** + * 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. + * + * @return The field files + */ + public @Nullable ProjectFileDto[] getFiles() { return this.files; } + /** + * 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. + * + * @param value The new value for files */ - public void setFields(@Nullable Object value) { this.fields = value; } + public void setFiles(@Nullable ProjectFileDto[] value) { this.files = value; } }; diff --git a/src/main/java/com/projectmanager/models/ProjectFieldsValueResponseDto.java b/src/main/java/com/projectmanager/models/ProjectFieldValueDto.java similarity index 86% rename from src/main/java/com/projectmanager/models/ProjectFieldsValueResponseDto.java rename to src/main/java/com/projectmanager/models/ProjectFieldValueDto.java index 1f325b2..76b7054 100644 --- a/src/main/java/com/projectmanager/models/ProjectFieldsValueResponseDto.java +++ b/src/main/java/com/projectmanager/models/ProjectFieldValueDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ @@ -19,16 +19,15 @@ import org.jetbrains.annotations.Nullable; /** - * 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 +public class ProjectFieldValueDto { private @NotNull String id; - private @Nullable String value; + private @Nullable String shortId; private @Nullable String name; private @Nullable String type; - private @Nullable String shortId; + private @Nullable String value; private @NotNull String createdDate; private @NotNull String modifiedDate; @@ -45,17 +44,17 @@ public class ProjectFieldsValueResponseDto */ public void setId(@NotNull String value) { this.id = value; } /** - * The value currently set for this Project Field. + * The unique Short Id of this Project Field. * - * @return The field value + * @return The field shortId */ - public @Nullable String getValue() { return this.value; } + public @Nullable String getShortId() { return this.shortId; } /** - * The value currently set for this Project Field. + * The unique Short Id of this Project Field. * - * @param value The new value for value + * @param value The new value for shortId */ - public void setValue(@Nullable String value) { this.value = value; } + public void setShortId(@Nullable String value) { this.shortId = value; } /** * The name of this Project Field. * @@ -93,17 +92,17 @@ public class ProjectFieldsValueResponseDto */ public void setType(@Nullable String value) { this.type = value; } /** - * The short Id of this field - human readable identity + * The value currently set for this Project Field Value. * - * @return The field shortId + * @return The field value */ - public @Nullable String getShortId() { return this.shortId; } + public @Nullable String getValue() { return this.value; } /** - * The short Id of this field - human readable identity + * The value currently set for this Project Field Value. * - * @param value The new value for shortId + * @param value The new value for value */ - public void setShortId(@Nullable String value) { this.shortId = value; } + public void setValue(@Nullable String value) { this.value = value; } /** * Date and time (in UTC) that this TaskField was created. * diff --git a/src/main/java/com/projectmanager/models/ProjectFileDto.java b/src/main/java/com/projectmanager/models/ProjectFileDto.java new file mode 100644 index 0000000..7c6ef12 --- /dev/null +++ b/src/main/java/com/projectmanager/models/ProjectFileDto.java @@ -0,0 +1,84 @@ + +/** + * ProjectManager API for Java + * + * (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-java + */ + + +package com.projectmanager.models; + +import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; + +public class ProjectFileDto +{ + private @NotNull String id; + private @Nullable String name; + private @Nullable String url; + private @Nullable ProjectFileTaskDto task; + + /** + * The identifier for this file + * + * @return The field id + */ + public @NotNull String getId() { return this.id; } + /** + * The identifier for this file + * + * @param value The new value for id + */ + public void setId(@NotNull String value) { this.id = value; } + /** + * The name of the file + * + * @return The field name + */ + public @Nullable String getName() { return this.name; } + /** + * The name of the file + * + * @param value The new value for name + */ + public void setName(@Nullable String value) { this.name = value; } + /** + * The url of the file which can be used for downloading + * + * @return The field url + */ + public @Nullable String getUrl() { return this.url; } + /** + * The url of the file which can be used for downloading + * + * @param value The new value for url + */ + public void setUrl(@Nullable String value) { this.url = value; } + /** + * 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. + * + * @return The field task + */ + public @Nullable ProjectFileTaskDto getTask() { return this.task; } + /** + * 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. + * + * @param value The new value for task + */ + public void setTask(@Nullable ProjectFileTaskDto value) { this.task = value; } +}; diff --git a/src/main/java/com/projectmanager/models/ProjectFileTaskDto.java b/src/main/java/com/projectmanager/models/ProjectFileTaskDto.java new file mode 100644 index 0000000..bd98144 --- /dev/null +++ b/src/main/java/com/projectmanager/models/ProjectFileTaskDto.java @@ -0,0 +1,65 @@ + +/** + * ProjectManager API for Java + * + * (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-java + */ + + +package com.projectmanager.models; + +import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; + +public class ProjectFileTaskDto +{ + private @NotNull String id; + private @Nullable String shortId; + private @Nullable String name; + + /** + * The unique identifier of this Task. + * + * @return The field id + */ + public @NotNull String getId() { return this.id; } + /** + * The unique identifier of this Task. + * + * @param value The new value for id + */ + public void setId(@NotNull String value) { this.id = value; } + /** + * A short ID that can be used to refer to this Task. This short ID is + * guaranteed to be unique within your Workspace. + * + * @return The field shortId + */ + public @Nullable String getShortId() { return this.shortId; } + /** + * A short ID that can be used to refer to this Task. This short ID is + * guaranteed to be unique within your Workspace. + * + * @param value The new value for shortId + */ + public void setShortId(@Nullable String value) { this.shortId = value; } + /** + * The common name of this Task. + * + * @return The field name + */ + public @Nullable String getName() { return this.name; } + /** + * The common name of this Task. + * + * @param value The new value for name + */ + public void setName(@Nullable String value) { this.name = value; } +}; diff --git a/src/main/java/com/projectmanager/models/ProjectFolderDto.java b/src/main/java/com/projectmanager/models/ProjectFolderDto.java index a7c1da5..c94c97e 100644 --- a/src/main/java/com/projectmanager/models/ProjectFolderDto.java +++ b/src/main/java/com/projectmanager/models/ProjectFolderDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/ProjectManagerDto.java b/src/main/java/com/projectmanager/models/ProjectManagerDto.java index 5624bf0..6fad5d0 100644 --- a/src/main/java/com/projectmanager/models/ProjectManagerDto.java +++ b/src/main/java/com/projectmanager/models/ProjectManagerDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/ProjectMemberDto.java b/src/main/java/com/projectmanager/models/ProjectMemberDto.java index 5b7c460..241eabb 100644 --- a/src/main/java/com/projectmanager/models/ProjectMemberDto.java +++ b/src/main/java/com/projectmanager/models/ProjectMemberDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/ProjectMemberRoleDto.java b/src/main/java/com/projectmanager/models/ProjectMemberRoleDto.java index bc271bd..1b218f6 100644 --- a/src/main/java/com/projectmanager/models/ProjectMemberRoleDto.java +++ b/src/main/java/com/projectmanager/models/ProjectMemberRoleDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/ProjectPriorityDto.java b/src/main/java/com/projectmanager/models/ProjectPriorityDto.java index ccf3062..cb6f867 100644 --- a/src/main/java/com/projectmanager/models/ProjectPriorityDto.java +++ b/src/main/java/com/projectmanager/models/ProjectPriorityDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/ProjectStatusDto.java b/src/main/java/com/projectmanager/models/ProjectStatusDto.java index d5c3dc2..e2d13e1 100644 --- a/src/main/java/com/projectmanager/models/ProjectStatusDto.java +++ b/src/main/java/com/projectmanager/models/ProjectStatusDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/ProjectTemplateCategoryDto.java b/src/main/java/com/projectmanager/models/ProjectTemplateCategoryDto.java index 3fef245..5f70390 100644 --- a/src/main/java/com/projectmanager/models/ProjectTemplateCategoryDto.java +++ b/src/main/java/com/projectmanager/models/ProjectTemplateCategoryDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/ProjectTemplateDto.java b/src/main/java/com/projectmanager/models/ProjectTemplateDto.java index 2ef21ae..d3f3aa8 100644 --- a/src/main/java/com/projectmanager/models/ProjectTemplateDto.java +++ b/src/main/java/com/projectmanager/models/ProjectTemplateDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/ProjectUpdateDto.java b/src/main/java/com/projectmanager/models/ProjectUpdateDto.java index 59f67fa..c070368 100644 --- a/src/main/java/com/projectmanager/models/ProjectUpdateDto.java +++ b/src/main/java/com/projectmanager/models/ProjectUpdateDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/ReactGridLayoutDto.java b/src/main/java/com/projectmanager/models/ReactGridLayoutDto.java index 52c8450..9089b18 100644 --- a/src/main/java/com/projectmanager/models/ReactGridLayoutDto.java +++ b/src/main/java/com/projectmanager/models/ReactGridLayoutDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/ReactGridLayoutItemDto.java b/src/main/java/com/projectmanager/models/ReactGridLayoutItemDto.java index ab5de74..50c306d 100644 --- a/src/main/java/com/projectmanager/models/ReactGridLayoutItemDto.java +++ b/src/main/java/com/projectmanager/models/ReactGridLayoutItemDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/ResourceApproverDto.java b/src/main/java/com/projectmanager/models/ResourceApproverDto.java index e288e8a..0315b2f 100644 --- a/src/main/java/com/projectmanager/models/ResourceApproverDto.java +++ b/src/main/java/com/projectmanager/models/ResourceApproverDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/ResourceCreateDto.java b/src/main/java/com/projectmanager/models/ResourceCreateDto.java index 5847fde..ba335bd 100644 --- a/src/main/java/com/projectmanager/models/ResourceCreateDto.java +++ b/src/main/java/com/projectmanager/models/ResourceCreateDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/ResourceDto.java b/src/main/java/com/projectmanager/models/ResourceDto.java index bee41f0..b4fb888 100644 --- a/src/main/java/com/projectmanager/models/ResourceDto.java +++ b/src/main/java/com/projectmanager/models/ResourceDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/ResourceHolidayDto.java b/src/main/java/com/projectmanager/models/ResourceHolidayDto.java new file mode 100644 index 0000000..ed940ed --- /dev/null +++ b/src/main/java/com/projectmanager/models/ResourceHolidayDto.java @@ -0,0 +1,66 @@ + +/** + * ProjectManager API for Java + * + * (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-java + */ + + +package com.projectmanager.models; + +import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; + +/** + * Resource holiday entry + */ +public class ResourceHolidayDto +{ + private @NotNull String id; + private @NotNull String date; + private @NotNull String resourceId; + + /** + * Holiday id + * + * @return The field id + */ + public @NotNull String getId() { return this.id; } + /** + * Holiday id + * + * @param value The new value for id + */ + public void setId(@NotNull String value) { this.id = value; } + /** + * Date of holiday + * + * @return The field date + */ + public @NotNull String getDate() { return this.date; } + /** + * Date of holiday + * + * @param value The new value for date + */ + public void setDate(@NotNull String value) { this.date = value; } + /** + * Resource id holoday associated to + * + * @return The field resourceId + */ + public @NotNull String getResourceId() { return this.resourceId; } + /** + * Resource id holoday associated to + * + * @param value The new value for resourceId + */ + public void setResourceId(@NotNull String value) { this.resourceId = value; } +}; diff --git a/src/main/java/com/projectmanager/models/ResourceSkillDto.java b/src/main/java/com/projectmanager/models/ResourceSkillDto.java index e91127d..6f57c28 100644 --- a/src/main/java/com/projectmanager/models/ResourceSkillDto.java +++ b/src/main/java/com/projectmanager/models/ResourceSkillDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/ResourceTeamDto.java b/src/main/java/com/projectmanager/models/ResourceTeamDto.java index 504f697..c6eeadf 100644 --- a/src/main/java/com/projectmanager/models/ResourceTeamDto.java +++ b/src/main/java/com/projectmanager/models/ResourceTeamDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/ResourceUpdateDto.java b/src/main/java/com/projectmanager/models/ResourceUpdateDto.java index cabc2cc..1d8461d 100644 --- a/src/main/java/com/projectmanager/models/ResourceUpdateDto.java +++ b/src/main/java/com/projectmanager/models/ResourceUpdateDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/TagCreateDto.java b/src/main/java/com/projectmanager/models/TagCreateDto.java index 233c8ae..bb246de 100644 --- a/src/main/java/com/projectmanager/models/TagCreateDto.java +++ b/src/main/java/com/projectmanager/models/TagCreateDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/TagDto.java b/src/main/java/com/projectmanager/models/TagDto.java index ad2ad3d..29066c9 100644 --- a/src/main/java/com/projectmanager/models/TagDto.java +++ b/src/main/java/com/projectmanager/models/TagDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/TagUpdateDto.java b/src/main/java/com/projectmanager/models/TagUpdateDto.java index cc34b8d..a269263 100644 --- a/src/main/java/com/projectmanager/models/TagUpdateDto.java +++ b/src/main/java/com/projectmanager/models/TagUpdateDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/TaskAssigneeDto.java b/src/main/java/com/projectmanager/models/TaskAssigneeDto.java index f179343..711f0fe 100644 --- a/src/main/java/com/projectmanager/models/TaskAssigneeDto.java +++ b/src/main/java/com/projectmanager/models/TaskAssigneeDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ @@ -34,6 +34,8 @@ public class TaskAssigneeDto private @Nullable String lastName; private @Nullable String shortName; private @Nullable String avatarUrl; + private @Nullable String email; + private @Nullable Integer allocatedEffort; /** * The unique identifier of this TaskAssignee @@ -177,4 +179,28 @@ public class TaskAssigneeDto * @param value The new value for avatarUrl */ public void setAvatarUrl(@Nullable String value) { this.avatarUrl = value; } + /** + * The email address for the resource. It can be empty if the resource does not have a login. + * + * @return The field email + */ + public @Nullable String getEmail() { return this.email; } + /** + * The email address for the resource. It can be empty if the resource does not have a login. + * + * @param value The new value for email + */ + public void setEmail(@Nullable String value) { this.email = value; } + /** + * The allocated effort (in minutes) for this Task and Assignee. + * + * @return The field allocatedEffort + */ + public @Nullable Integer getAllocatedEffort() { return this.allocatedEffort; } + /** + * The allocated effort (in minutes) for this Task and Assignee. + * + * @param value The new value for allocatedEffort + */ + public void setAllocatedEffort(@Nullable Integer value) { this.allocatedEffort = value; } }; diff --git a/src/main/java/com/projectmanager/models/TaskCreateDto.java b/src/main/java/com/projectmanager/models/TaskCreateDto.java index f80da0a..02304ac 100644 --- a/src/main/java/com/projectmanager/models/TaskCreateDto.java +++ b/src/main/java/com/projectmanager/models/TaskCreateDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/TaskDto.java b/src/main/java/com/projectmanager/models/TaskDto.java index 37cd35c..fcc471f 100644 --- a/src/main/java/com/projectmanager/models/TaskDto.java +++ b/src/main/java/com/projectmanager/models/TaskDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ @@ -50,7 +50,8 @@ public class TaskDto private @Nullable Double plannedCost; private @Nullable Integer plannedDuration; private @Nullable Integer plannedEffort; - private @Nullable TaskFieldValueDto[] fields; + private @Nullable TaskFieldValueDto[] fieldValues; + private @Nullable TaskFileDto[] files; /** * The unique identifier of this Task. @@ -469,13 +470,33 @@ public class TaskDto /** * Task fields array with values * - * @return The field fields + * @return The field fieldValues */ - public @Nullable TaskFieldValueDto[] getFields() { return this.fields; } + public @Nullable TaskFieldValueDto[] getFieldValues() { return this.fieldValues; } /** * Task fields array with values * - * @param value The new value for fields + * @param value The new value for fieldValues */ - public void setFields(@Nullable TaskFieldValueDto[] value) { this.fields = value; } + public void setFieldValues(@Nullable TaskFieldValueDto[] value) { this.fieldValues = value; } + /** + * 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. + * + * @return The field files + */ + public @Nullable TaskFileDto[] getFiles() { return this.files; } + /** + * 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. + * + * @param value The new value for files + */ + public void setFiles(@Nullable TaskFileDto[] value) { this.files = value; } }; diff --git a/src/main/java/com/projectmanager/models/TaskFieldDto.java b/src/main/java/com/projectmanager/models/TaskFieldDto.java index 0d20e1e..43d3ac9 100644 --- a/src/main/java/com/projectmanager/models/TaskFieldDto.java +++ b/src/main/java/com/projectmanager/models/TaskFieldDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/TaskFieldProjectDto.java b/src/main/java/com/projectmanager/models/TaskFieldProjectDto.java index dc1105a..faccc2a 100644 --- a/src/main/java/com/projectmanager/models/TaskFieldProjectDto.java +++ b/src/main/java/com/projectmanager/models/TaskFieldProjectDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/TaskFieldValueDto.java b/src/main/java/com/projectmanager/models/TaskFieldValueDto.java index 233dda5..aadb417 100644 --- a/src/main/java/com/projectmanager/models/TaskFieldValueDto.java +++ b/src/main/java/com/projectmanager/models/TaskFieldValueDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ @@ -25,6 +25,8 @@ public class TaskFieldValueDto { private @NotNull String id; private @Nullable String shortId; + private @Nullable String name; + private @Nullable String type; private @Nullable String value; private @NotNull String createdDate; private @NotNull String modifiedDate; @@ -54,6 +56,42 @@ public class TaskFieldValueDto * @param value The new value for shortId */ public void setShortId(@Nullable String value) { this.shortId = value; } + /** + * The name of this Project Field. + * + * @return The field name + */ + public @Nullable String getName() { return this.name; } + /** + * The name of this Project Field. + * + * @param value The new value for name + */ + public void setName(@Nullable String value) { this.name = value; } + /** + * The type of this TaskField. Valid types are the following: + * * Text + * * Number + * * Date + * * Checkbox + * * Currency + * * Dropdown + * + * @return The field type + */ + public @Nullable String getType() { return this.type; } + /** + * The type of this TaskField. Valid types are the following: + * * Text + * * Number + * * Date + * * Checkbox + * * Currency + * * Dropdown + * + * @param value The new value for type + */ + public void setType(@Nullable String value) { this.type = value; } /** * The value currently set for this TaskFieldValue. * diff --git a/src/main/java/com/projectmanager/models/TaskFieldValueTaskDto.java b/src/main/java/com/projectmanager/models/TaskFieldValueTaskDto.java index dcbf7e0..366b7f5 100644 --- a/src/main/java/com/projectmanager/models/TaskFieldValueTaskDto.java +++ b/src/main/java/com/projectmanager/models/TaskFieldValueTaskDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/ODataEntitySetInfo.java b/src/main/java/com/projectmanager/models/TaskFileDto.java similarity index 57% rename from src/main/java/com/projectmanager/models/ODataEntitySetInfo.java rename to src/main/java/com/projectmanager/models/TaskFileDto.java index cef4675..9896ad3 100644 --- a/src/main/java/com/projectmanager/models/ODataEntitySetInfo.java +++ b/src/main/java/com/projectmanager/models/TaskFileDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ @@ -18,51 +18,49 @@ import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; -public class ODataEntitySetInfo +/** + * Represents a file associated with a Task in project manager + */ +public class TaskFileDto { - private @Nullable ODataTypeAnnotation typeAnnotation; - private @Nullable String url; + private @NotNull String id; private @Nullable String name; - private @Nullable String title; + private @Nullable String url; /** + * The identifier for this file * - * @return The field typeAnnotation - */ - public @Nullable ODataTypeAnnotation getTypeAnnotation() { return this.typeAnnotation; } - /** - * - * @param value The new value for typeAnnotation - */ - public void setTypeAnnotation(@Nullable ODataTypeAnnotation value) { this.typeAnnotation = value; } - /** - * - * @return The field url + * @return The field id */ - public @Nullable String getUrl() { return this.url; } + public @NotNull String getId() { return this.id; } /** + * The identifier for this file * - * @param value The new value for url + * @param value The new value for id */ - public void setUrl(@Nullable String value) { this.url = value; } + public void setId(@NotNull String value) { this.id = value; } /** + * The name of the file * * @return The field name */ public @Nullable String getName() { return this.name; } /** + * The name of the file * * @param value The new value for name */ public void setName(@Nullable String value) { this.name = value; } /** + * The url of the file which can be used for downloading * - * @return The field title + * @return The field url */ - public @Nullable String getTitle() { return this.title; } + public @Nullable String getUrl() { return this.url; } /** + * The url of the file which can be used for downloading * - * @param value The new value for title + * @param value The new value for url */ - public void setTitle(@Nullable String value) { this.title = value; } + public void setUrl(@Nullable String value) { this.url = value; } }; diff --git a/src/main/java/com/projectmanager/models/TaskMetadataSearchDto.java b/src/main/java/com/projectmanager/models/TaskMetadataSearchDto.java new file mode 100644 index 0000000..9cb1c6c --- /dev/null +++ b/src/main/java/com/projectmanager/models/TaskMetadataSearchDto.java @@ -0,0 +1,66 @@ + +/** + * ProjectManager API for Java + * + * (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-java + */ + + +package com.projectmanager.models; + +import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; + +/** + * Task Metadata Search DTO + */ +public class TaskMetadataSearchDto +{ + private @NotNull String id; + private @NotNull String projectId; + private @Nullable Object metadata; + + /** + * Task ID + * + * @return The field id + */ + public @NotNull String getId() { return this.id; } + /** + * Task ID + * + * @param value The new value for id + */ + public void setId(@NotNull String value) { this.id = value; } + /** + * Project ID + * + * @return The field projectId + */ + public @NotNull String getProjectId() { return this.projectId; } + /** + * Project ID + * + * @param value The new value for projectId + */ + public void setProjectId(@NotNull String value) { this.projectId = value; } + /** + * Customer or system metadata + * + * @return The field metadata + */ + public @Nullable Object getMetadata() { return this.metadata; } + /** + * Customer or system metadata + * + * @param value The new value for metadata + */ + public void setMetadata(@Nullable Object value) { this.metadata = value; } +}; diff --git a/src/main/java/com/projectmanager/models/ODataTypeAnnotation.java b/src/main/java/com/projectmanager/models/TaskMetadataUpdateDto.java similarity index 51% rename from src/main/java/com/projectmanager/models/ODataTypeAnnotation.java rename to src/main/java/com/projectmanager/models/TaskMetadataUpdateDto.java index c2795c2..69ec47f 100644 --- a/src/main/java/com/projectmanager/models/ODataTypeAnnotation.java +++ b/src/main/java/com/projectmanager/models/TaskMetadataUpdateDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ @@ -18,18 +18,23 @@ import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; -public class ODataTypeAnnotation +/** + * Task Metadata DTO + */ +public class TaskMetadataUpdateDto { - private @Nullable String typeName; + private @Nullable Object data; /** + * Customer or system metadata * - * @return The field typeName + * @return The field data */ - public @Nullable String getTypeName() { return this.typeName; } + public @Nullable Object getData() { return this.data; } /** + * Customer or system metadata * - * @param value The new value for typeName + * @param value The new value for data */ - public void setTypeName(@Nullable String value) { this.typeName = value; } + public void setData(@Nullable Object value) { this.data = value; } }; diff --git a/src/main/java/com/projectmanager/models/TaskPriorityDto.java b/src/main/java/com/projectmanager/models/TaskPriorityDto.java index f67bf85..82217ec 100644 --- a/src/main/java/com/projectmanager/models/TaskPriorityDto.java +++ b/src/main/java/com/projectmanager/models/TaskPriorityDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/TaskProjectDto.java b/src/main/java/com/projectmanager/models/TaskProjectDto.java index 002c75f..7ba062e 100644 --- a/src/main/java/com/projectmanager/models/TaskProjectDto.java +++ b/src/main/java/com/projectmanager/models/TaskProjectDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/TaskStatusCreateDto.java b/src/main/java/com/projectmanager/models/TaskStatusCreateDto.java index 11b761e..bc42089 100644 --- a/src/main/java/com/projectmanager/models/TaskStatusCreateDto.java +++ b/src/main/java/com/projectmanager/models/TaskStatusCreateDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/TaskStatusDto.java b/src/main/java/com/projectmanager/models/TaskStatusDto.java index eb00e8a..35e95ce 100644 --- a/src/main/java/com/projectmanager/models/TaskStatusDto.java +++ b/src/main/java/com/projectmanager/models/TaskStatusDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/TaskStatusUpdateDto.java b/src/main/java/com/projectmanager/models/TaskStatusUpdateDto.java index f068c34..65f89b2 100644 --- a/src/main/java/com/projectmanager/models/TaskStatusUpdateDto.java +++ b/src/main/java/com/projectmanager/models/TaskStatusUpdateDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/TaskTagDto.java b/src/main/java/com/projectmanager/models/TaskTagDto.java index 52cf951..c3257e8 100644 --- a/src/main/java/com/projectmanager/models/TaskTagDto.java +++ b/src/main/java/com/projectmanager/models/TaskTagDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/TaskTodoDto.java b/src/main/java/com/projectmanager/models/TaskTodoDto.java index 1db0b66..11b950e 100644 --- a/src/main/java/com/projectmanager/models/TaskTodoDto.java +++ b/src/main/java/com/projectmanager/models/TaskTodoDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/TaskUpdateDto.java b/src/main/java/com/projectmanager/models/TaskUpdateDto.java index d24492a..ea923ae 100644 --- a/src/main/java/com/projectmanager/models/TaskUpdateDto.java +++ b/src/main/java/com/projectmanager/models/TaskUpdateDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/TimeSheetProjectDto.java b/src/main/java/com/projectmanager/models/TimeSheetProjectDto.java index 2bd8841..e1e83de 100644 --- a/src/main/java/com/projectmanager/models/TimeSheetProjectDto.java +++ b/src/main/java/com/projectmanager/models/TimeSheetProjectDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/TimesheetAdminTypeDto.java b/src/main/java/com/projectmanager/models/TimesheetAdminTypeDto.java index 91ebdd9..423c88e 100644 --- a/src/main/java/com/projectmanager/models/TimesheetAdminTypeDto.java +++ b/src/main/java/com/projectmanager/models/TimesheetAdminTypeDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/TimesheetCreateRequestDto.java b/src/main/java/com/projectmanager/models/TimesheetCreateRequestDto.java index f7c3688..8545d78 100644 --- a/src/main/java/com/projectmanager/models/TimesheetCreateRequestDto.java +++ b/src/main/java/com/projectmanager/models/TimesheetCreateRequestDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/TimesheetDto.java b/src/main/java/com/projectmanager/models/TimesheetDto.java index 1118e63..7c6c0bc 100644 --- a/src/main/java/com/projectmanager/models/TimesheetDto.java +++ b/src/main/java/com/projectmanager/models/TimesheetDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ @@ -33,6 +33,7 @@ public class TimesheetDto private @Nullable TimeSheetProjectDto project; private @Nullable TimesheetResourceDto resource; private @Nullable TimesheetAdminTypeDto adminType; + private @Nullable TimesheetFileDto[] files; /** * TimesheetId @@ -154,4 +155,24 @@ public class TimesheetDto * @param value The new value for adminType */ public void setAdminType(@Nullable TimesheetAdminTypeDto value) { this.adminType = value; } + /** + * 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. + * + * @return The field files + */ + public @Nullable TimesheetFileDto[] getFiles() { return this.files; } + /** + * 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. + * + * @param value The new value for files + */ + public void setFiles(@Nullable TimesheetFileDto[] value) { this.files = value; } }; diff --git a/src/main/java/com/projectmanager/models/ODataFunctionImportInfo.java b/src/main/java/com/projectmanager/models/TimesheetFileDto.java similarity index 57% rename from src/main/java/com/projectmanager/models/ODataFunctionImportInfo.java rename to src/main/java/com/projectmanager/models/TimesheetFileDto.java index 9b69420..b15ac6a 100644 --- a/src/main/java/com/projectmanager/models/ODataFunctionImportInfo.java +++ b/src/main/java/com/projectmanager/models/TimesheetFileDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ @@ -18,51 +18,46 @@ import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; -public class ODataFunctionImportInfo +public class TimesheetFileDto { - private @Nullable ODataTypeAnnotation typeAnnotation; - private @Nullable String url; + private @NotNull String id; private @Nullable String name; - private @Nullable String title; + private @Nullable String url; /** + * The identifier for this file * - * @return The field typeAnnotation - */ - public @Nullable ODataTypeAnnotation getTypeAnnotation() { return this.typeAnnotation; } - /** - * - * @param value The new value for typeAnnotation - */ - public void setTypeAnnotation(@Nullable ODataTypeAnnotation value) { this.typeAnnotation = value; } - /** - * - * @return The field url + * @return The field id */ - public @Nullable String getUrl() { return this.url; } + public @NotNull String getId() { return this.id; } /** + * The identifier for this file * - * @param value The new value for url + * @param value The new value for id */ - public void setUrl(@Nullable String value) { this.url = value; } + public void setId(@NotNull String value) { this.id = value; } /** + * The name of the file * * @return The field name */ public @Nullable String getName() { return this.name; } /** + * The name of the file * * @param value The new value for name */ public void setName(@Nullable String value) { this.name = value; } /** + * The url of the file which can be used for downloading * - * @return The field title + * @return The field url */ - public @Nullable String getTitle() { return this.title; } + public @Nullable String getUrl() { return this.url; } /** + * The url of the file which can be used for downloading * - * @param value The new value for title + * @param value The new value for url */ - public void setTitle(@Nullable String value) { this.title = value; } + public void setUrl(@Nullable String value) { this.url = value; } }; diff --git a/src/main/java/com/projectmanager/models/TimesheetResourceDto.java b/src/main/java/com/projectmanager/models/TimesheetResourceDto.java index f12365b..9cf189c 100644 --- a/src/main/java/com/projectmanager/models/TimesheetResourceDto.java +++ b/src/main/java/com/projectmanager/models/TimesheetResourceDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/TimesheetResponseDto.java b/src/main/java/com/projectmanager/models/TimesheetResponseDto.java index a161084..49a61a3 100644 --- a/src/main/java/com/projectmanager/models/TimesheetResponseDto.java +++ b/src/main/java/com/projectmanager/models/TimesheetResponseDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/TimesheetTaskDto.java b/src/main/java/com/projectmanager/models/TimesheetTaskDto.java index f9350ca..eb2b13c 100644 --- a/src/main/java/com/projectmanager/models/TimesheetTaskDto.java +++ b/src/main/java/com/projectmanager/models/TimesheetTaskDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/TimesheetUpdateRequestDto.java b/src/main/java/com/projectmanager/models/TimesheetUpdateRequestDto.java index b1a639f..bae97b7 100644 --- a/src/main/java/com/projectmanager/models/TimesheetUpdateRequestDto.java +++ b/src/main/java/com/projectmanager/models/TimesheetUpdateRequestDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/UpdateProjectFieldValueDto.java b/src/main/java/com/projectmanager/models/UpdateProjectFieldValueDto.java index 71506dc..8e6d80d 100644 --- a/src/main/java/com/projectmanager/models/UpdateProjectFieldValueDto.java +++ b/src/main/java/com/projectmanager/models/UpdateProjectFieldValueDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/UpdateRequestDto.java b/src/main/java/com/projectmanager/models/UpdateRequestDto.java index 986e3b3..43772ec 100644 --- a/src/main/java/com/projectmanager/models/UpdateRequestDto.java +++ b/src/main/java/com/projectmanager/models/UpdateRequestDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/UpdateResourceSkillDto.java b/src/main/java/com/projectmanager/models/UpdateResourceSkillDto.java index 6d8e692..8396e82 100644 --- a/src/main/java/com/projectmanager/models/UpdateResourceSkillDto.java +++ b/src/main/java/com/projectmanager/models/UpdateResourceSkillDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/UpdateResourceTeamDto.java b/src/main/java/com/projectmanager/models/UpdateResourceTeamDto.java index d4b5e08..b9cdee3 100644 --- a/src/main/java/com/projectmanager/models/UpdateResourceTeamDto.java +++ b/src/main/java/com/projectmanager/models/UpdateResourceTeamDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/UpdateTaskFieldValueDto.java b/src/main/java/com/projectmanager/models/UpdateTaskFieldValueDto.java index 5fc3d57..8045cc8 100644 --- a/src/main/java/com/projectmanager/models/UpdateTaskFieldValueDto.java +++ b/src/main/java/com/projectmanager/models/UpdateTaskFieldValueDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/UserRoleDto.java b/src/main/java/com/projectmanager/models/UserRoleDto.java index 981cadc..5daab55 100644 --- a/src/main/java/com/projectmanager/models/UserRoleDto.java +++ b/src/main/java/com/projectmanager/models/UserRoleDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/WorkSpaceDto.java b/src/main/java/com/projectmanager/models/WorkSpaceDto.java index 7844de7..0bdfdb8 100644 --- a/src/main/java/com/projectmanager/models/WorkSpaceDto.java +++ b/src/main/java/com/projectmanager/models/WorkSpaceDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/WorkSpaceJoinDto.java b/src/main/java/com/projectmanager/models/WorkSpaceJoinDto.java index 5834c59..c139ca3 100644 --- a/src/main/java/com/projectmanager/models/WorkSpaceJoinDto.java +++ b/src/main/java/com/projectmanager/models/WorkSpaceJoinDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/WorkSpaceLinksDto.java b/src/main/java/com/projectmanager/models/WorkSpaceLinksDto.java index 8ad7643..e884a81 100644 --- a/src/main/java/com/projectmanager/models/WorkSpaceLinksDto.java +++ b/src/main/java/com/projectmanager/models/WorkSpaceLinksDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */ diff --git a/src/main/java/com/projectmanager/models/WorkSpaceUserInfoDto.java b/src/main/java/com/projectmanager/models/WorkSpaceUserInfoDto.java index 3810173..3ef6605 100644 --- a/src/main/java/com/projectmanager/models/WorkSpaceUserInfoDto.java +++ b/src/main/java/com/projectmanager/models/WorkSpaceUserInfoDto.java @@ -2,13 +2,13 @@ /** * ProjectManager API for Java * - * (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-java */