Skip to content

Commit

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

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

* Fix byte 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
  • Loading branch information
tspence authored Jan 23, 2024
1 parent b79a937 commit 73c22eb
Show file tree
Hide file tree
Showing 146 changed files with 1,377 additions and 538 deletions.
86 changes: 56 additions & 30 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@

<groupId>com.projectmanager</groupId>
<artifactId>projectmanagersdk</artifactId>
<version>99.0.2550</version>
<version>102.0.2886</version>

<name>ProjectManagerSDK</name>
<description>Software development kit for the ProjectManager.com API. for Java</description>
<url>https://developer.projectmanager.com/</url>
<description> for Java</description>
<url></url>

<licenses>
<license>
Expand Down Expand Up @@ -61,44 +61,40 @@
</dependency>
</dependencies>

<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
</distributionManagement>

<build>
<plugins>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.8</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<version>0.1.2</version>
<extensions>true</extensions>
<configuration>
<publishingServerId>central</publishingServerId>
<tokenEnabled>true</tokenEnabled>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.3.0</version>
<version>3.2.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.6.0</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
Expand Down Expand Up @@ -126,5 +122,35 @@
</plugins>
</build>
</profile>
<profile>
<id>build-extras</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.4</version>
<executions>
<execution>
<id>attach-sources</id>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.10.3</version>
<executions>
<execution>
<id>attach-javadocs</id>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
6 changes: 3 additions & 3 deletions src/main/java/com/projectmanager/BlobRequest.java
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>
* @copyright 2023-2023 ProjectManager.com
* @copyright 2023-2024 ProjectManager.com
* @link https://github.com/projectmgr/projectmanager-sdk-java
*/

Expand Down Expand Up @@ -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();

Expand Down
33 changes: 30 additions & 3 deletions src/main/java/com/projectmanager/ProjectManagerClient.java
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>
*
* @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
*/

Expand All @@ -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;
Expand All @@ -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;
Expand All @@ -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;
Expand All @@ -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;
Expand All @@ -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);
Expand All @@ -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);
Expand Down Expand Up @@ -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
*
Expand Down Expand Up @@ -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
*
Expand Down Expand Up @@ -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
*
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/com/projectmanager/RestRequest.java
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>
* @copyright 2023-2023 ProjectManager.com
* @copyright 2023-2024 ProjectManager.com
* @link https://github.com/projectmgr/projectmanager-sdk-java
*/

Expand Down Expand Up @@ -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();

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/projectmanager/clients/ApiKeyClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>
* @copyright 2023-2023 ProjectManager.com, Inc.
* @copyright 2023-2024 ProjectManager.com, Inc.
* @link https://github.com/projectmgr/projectmanager-sdk-java
*/

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/projectmanager/clients/ChangesetClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>
* @copyright 2023-2023 ProjectManager.com, Inc.
* @copyright 2023-2024 ProjectManager.com, Inc.
* @link https://github.com/projectmgr/projectmanager-sdk-java
*/

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/projectmanager/clients/DashboardClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>
* @copyright 2023-2023 ProjectManager.com, Inc.
* @copyright 2023-2024 ProjectManager.com, Inc.
* @link https://github.com/projectmgr/projectmanager-sdk-java
*/

Expand Down
Loading

0 comments on commit 73c22eb

Please sign in to comment.